Literature DB >> 28607956

A wavelet-based Gaussian method for energy dispersive X-ray fluorescence spectrum.

Pan Liu1, Xiaoyan Deng1,2, Xin Tang1, Shijian Shen1.   

Abstract

This paper presents a wavelet-based Gaussian method (WGM) for the peak intensity estimation of energy dispersive X-ray fluorescence (EDXRF). The relationship between the parameters of Gaussian curve and the wavelet coefficients of Gaussian peak point is firstly established based on the Mexican hat wavelet. It is found that the Gaussian parameters can be accurately calculated by any two wavelet coefficients at the peak point which has to be known. This fact leads to a local Gaussian estimation method for spectral peaks, which estimates the Gaussian parameters based on the detail wavelet coefficients of Gaussian peak point. The proposed method is tested via simulated and measured spectra from an energy X-ray spectrometer, and compared with some existing methods. The results prove that the proposed method can directly estimate the peak intensity of EDXRF free from the background information, and also effectively distinguish overlap peaks in EDXRF spectrum.

Entities:  

Keywords:  Analytical chemistry; Applied mathematics; Statistical physics

Year:  2017        PMID: 28607956      PMCID: PMC5454144          DOI: 10.1016/j.heliyon.2017.e00311

Source DB:  PubMed          Journal:  Heliyon        ISSN: 2405-8440


Introduction

X-ray fluorescence analysis is widely used for elemental and chemical analysis which provides both qualitative and quantitative compositional information of various samples, particularly in the study of metal, materials, ceramics, archaeology, geology and many other areas (Van Grieken and Markowicz, 2002). However, the EDXRF spectrum is inevitably interfered by background because of the complicated condition of X-ray spectrum generation. Main background sources, including the Compton scattering, the Rayleigh scattering, the interaction between the characteristic X-rays and instrument noise etc, considerably complicate spectra processing. The focus of EDXRF analysis is to develop simple, efficient and economic methods, which can reproduce the target X-ray spectrum free from the background. The current idea for EDXRF analysis is to estimate the target X-ray spectrum by subtracting background from the original EDXRF spectrum. Since the background is usually viewed as a continuous and smooth curve, it can be estimated by curve fitting methods after using peak striping approach to remove the rapidly varying structure in a spectrum. A number of approaches for background subtraction have been reported, such as peak clipping algorithms (Ryan et al., 1988; Morhác and Matousek, 2008), interpolation or least squares fitting algorithms (Yi et al., 2015; Vekemans et al., 1995; Brunetti and Steger, 2000; Garratt-reed and Bell, 2013), physical model approximate methods (Zhang et al., 2012; Tan and Brown, 2002), digital filters and wavelet methods (Tan and Brown, 2002; Shao et al., 2003; Galloway et al., 2009; Zhao and Wang, 2014; Daubechies, 1992; Stoffer and Holschneider, 1997). Especially wavelet method, it shows great prospect in spectral analysis, a comprehensive overview of applications of wavelet transform and wavelet-packet transform in spectral analysis were provided by Hoang (2014). The grate advantages of wavelet analysis are noise removal and resolution enhancement. Zhao et al. proposed a background subtraction approach based on complex wavelet transform, where the background is obtained at one specific low-frequency scale (Zhao and Wang, 2014). Ryan et al. proposed a statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP) by a multi-pass peak clipping loop, which is considered as one of the most efficient approach to eliminate the background (Ryan et al., 1988). Despite the promising performance, most of those methods are relied on the iterative calculation or complicated processing. In particular, these wavelet-based methods require selecting suitable decomposition scales manually. Therefore, the previous methods are not suitable for automatic batched analyzing spectrum. In this study, a local algorithm is provided for estimating the target spectral peaks from the original EDXRF spectrum by using the Mexican hat wavelet and Gaussian function. Particularly, the proposed algorithm is constructed by using two wavelet coefficients of Gaussian peak point and looks very simple, and also reveals a robust effectiveness on controlling the background and distinguishing overlap peaks.

Methods

The wavelet transform (WT) (Daubechies, 1992) provides a way of analyzing the local behavior of a function. One of the main aspects of the WT which is also the great advantage for our purpose is the ability to reveal the scaling behavior. The continuous wavelet transform (CWT) of f(t) is defined as follows where is the conjugate of , and is the family of functions defined as In the Eq. (2), is called the wavelet function, the scaling a(>0)adapts the width of the wavelet kernel to the microscopic resolution required, and the parameter b determines the location of analyze wavelet. The WT is sometimes referred as the “mathematical microscope” due to ability to capture the time-frequency local behavior of the function f(t). Our objective is to estimate spectral peak by using the Gaussian curve, which referred as a function of the following form: This study proposes a wavelet-based algorithm to estimate the height parameter A and the width parameter σ. Our algorithm is obtained via the Mexican hat wavelet which is defined as The is the second derivative of Gaussian function with support on interval [-5, 5], and satisfied as Submit Eqs. (3) and (4) to Eq. (1), and let b = t0, by computing the integral Eq. (1), it is easily to obtain that where and W (a,t0) is the wavelet transform of Gaussian peak point t0. Suppose that s is an another scale factor satisfying s ≠ a, we have that It follows from Eqs. (6) and (7) that where It is found that the Gaussian parameters can be calculated by any two different wavelet coefficients at the peak point t0. Our objective is to estimate EDXRF peak which is always interfered by background and adjacent peaks. Here let f(t) be the target peak and t0 the peak point, and C(t) express the background and adjacent peaks. It is well known from the properties of wavelet transform that W(a, t0) = W(a, t0) + W(a, t0). If approximates to a constant in the neighborhood of peak point t0, then W(a, t0) ≈ 0 and W+(a, t0) ≈ W(a, t0), i.e. the effect of background and adjacent peaks on wavelet coefficient is better inhibited. To guarantee the local information used as little as possible, the small scales a and s are preferred. Let a = 1; s = 2, we obtain the following formulations And Where The above formulations provide us with a local method to estimate the parameters of Gaussian curve. Assuming that there is a spectral series , the wavelet-based Gaussian method (WGM) can be summarized as follows: (1) Smooth the original spectrum and determine the positions of spectral peaks. Here a bi-directional smoothness method is proposed: In this study we let m = 5; (2) Implement the continuous wavelet transform on the scales 1 and 2, and obtain the wavelet coefficients of the peak points; (3) Estimate the width parameter σ and height parameter A at every peak point by the Eqs. (9)–(11); (4) Reproduce the estimated peaks with the estimated Gaussian parameters, and calculate the peak intensities i.e. the net peak areas by . Note that the presented algorithm avoids iterative computation, and also does not need to select wavelet decomposition scales manually. For EDXRF spectrum, x corresponds to the number of counts in channel k, and σ is given in channels. It is easily found that the key of the proposed algorithm lies on the estimate of the width σ, which determines the estimate accuracy of the height A. By the way, the estimated Gaussian parameters are expressed by and throughout this paper.

Results and discussions

Gaussian parameter estimates to single peak

In order to verify the validity of the method presented in this paper, we firstly test the interference of the width σ of the simulated spectrum on the estimated and . The relative error used in this study is defined as where is the estimate of D. The simulated spectrums are obtained from Gaussian curves with A = 60 and σ ranging from 2 to 1000, the estimated parameters and are calculated by the proposed algorithm in this paper. The results are shown in Fig. 1, and also part of numerical results is provided in Table 1. The relative errors of the width and height parameters are less than 5%, and less than 1% when the σ ranges from 5 to 450. It can be noted that the height A of the simulated spectrum has no effect on the estimated results. Generally, the relative error increases as the width increasing for the simulated spectrum width σ > 74.
Fig. 1

The relative errors of the estimated parameters and , here the simulated spectrum parameters A = 60 and ranging from 2 to 1000. The blue line for and the black one for .

Table 1

The relative errors of the estimated parameters with A = 60.

δ234510204080160320
σ^2.0893.064.055.0410.0320.0340.0580.09160.25321.1
E(σ)(%)4.41.971.150.760.270.140.1130.1160.1560.343
A^57.6458.9359.3959.6159.959.9859.9960.0260.0760.3
E(A)(%)4.41.7831.0170.650.1670.0030.0020.0030.1170.5
The relative errors of the estimated parameters and , here the simulated spectrum parameters A = 60 and ranging from 2 to 1000. The blue line for and the black one for . The relative errors of the estimated parameters with A = 60.

Gaussian parameter estimates to overlap peaks

The next thing we do is to test the capacity of distinguishing overlap peaks. Seven Gaussian peaks are chosen as the target peaks, as shown in Fig. 2(a), and the simulated spectrum is constructed by superposing the seven Gaussian peaks which is shown in Fig. 2(b). The estimated peaks are obtained by the WGM method presented in this paper, as shown in Fig. 2(c). For simplicity, we would explain the situation by the estimate of the width. In Fig. 2, the isolated peak P1 is reproduced most accurately with the relative error is less than 0.2%. The peak P6 is completely superimposed by the peak P7, however a relative error of 0.4% is obtained. The overlap peaks P2, P3, P4, P5 and P7 are effectively reproduced with the relative errors are less than 2%. The mutual influence of overlapping peaks is too complex to give a quantitative description, some numerical results are provided in Table 2. Generally, the estimate with a large width σ, gives a relatively large error when two overlap peaks have similar magnitude, P6 and P7 in Fig. 2 are in the case. It is also found that the estimate with small height A generates a larger error when its widths are similar, as P4 and P5 shown in Fig. 2.
Fig. 2

(a) The target peaks and its parameters shown in Table 2. (b) The simulated spectrum by superposing seven Gaussian peaks shown in Fig. 2(a). (c) The estimated peaks by the algorithm presented in this paper.

Table 2

The parameters of target peaks, the estimated and the relative errors.

P1P2P3P4P5P6P7
σ5091025252090
A140100100901406060
σ^50.05778.95179.962424.599924.829619.922788.6625
E(σ)(%)0.11540.53670.3761.66040.68150.391.4861
(a) The target peaks and its parameters shown in Table 2. (b) The simulated spectrum by superposing seven Gaussian peaks shown in Fig. 2(a). (c) The estimated peaks by the algorithm presented in this paper. The parameters of target peaks, the estimated and the relative errors. Since the Eq. (8) involves 21 adjacent channels for a specified peak, the distance between two adjacent peaks may create a significant effect on the estimates of overlap peaks. Consider the peak P2 as an example and let D represent the distance between P2 and P3, the relative errors of the estimated parameter are 0.28%, 0.54%, 6.9%; 11.6% and 18.3% corresponding to the distance D = 50, 40, 30, 20 and 10, respectively. Generally, the proposed method can provide a better result when the distance between two adjacent peak points is greater than 40 channels.

Peak intensity estimates to simulated spectrum with background

To further test the proposed method, another two simulated spectrums are created by superposing background and the above seven Gaussian peaks. Here Gaussian background and polynomial background are chosen for testing, which are defined as follows and The obtained spectrums are shown in Figs. 3(a) and 4(a), respectively.
Fig. 3

(a) The simulated spectrum by superposing the seven Gaussian peaks shown in Fig.2(a) and the Gaussian background defined by Eq. (14). (b) The original peaks (black) and the estimated peaks (blue)by WGM. (c) The original peaks (black) and the estimated peaks (blue) by GMM. (d) The original peaks (black) and the estimated peaks (blue) by SNIP-G.

Fig. 4

(a) The simulated spectrum by superposing the seven Gaussian peaks shown in Fig. 2(a) and the polynomial background defined by Eq. (15). (b) The original peaks (black) and the estimated peaks (blue) by WGM. (c) The original peaks (black) and the estimated peaks (blue) by GMM. (d) The original peaks (black) and the estimated peaks (blue) by SNIP-G.

(a) The simulated spectrum by superposing the seven Gaussian peaks shown in Fig.2(a) and the Gaussian background defined by Eq. (14). (b) The original peaks (black) and the estimated peaks (blue)by WGM. (c) The original peaks (black) and the estimated peaks (blue) by GMM. (d) The original peaks (black) and the estimated peaks (blue) by SNIP-G. (a) The simulated spectrum by superposing the seven Gaussian peaks shown in Fig. 2(a) and the polynomial background defined by Eq. (15). (b) The original peaks (black) and the estimated peaks (blue) by WGM. (c) The original peaks (black) and the estimated peaks (blue) by GMM. (d) The original peaks (black) and the estimated peaks (blue) by SNIP-G. Two simulated spectrums are respectively processed by the wavelet-based Gaussian method (WGM), Gaussian mixture modeling (GMM) (Andrzej et al., 2015) and SNIPG (Ryan et al., 1988). The estimated peaks are shown in Figs. 3 and 4, and the estimates of peak intensities are given in Tables 3 and 4, where Fig. 3 and Table 3 are associated with Gaussian background, Fig. 4 and Table 4 are for polynomial background.
Table 3

Estimated intensities of peaks for WGM, GMM and SNIP-G with Gaussian background, and their relative errors expressed by E(W), E(G) and E(S) respectively.

P1P2P3P4P5P6P7
True175462256250756408773300813536
WGM175672194245853198542292912913
E(W)(%)0.12.725.72.62.64.6
GMM176472383262560538452339411576
E(G)0.55.64.77.33.712.814.5
SNIP-G170892197245854678344235111341
E(S)(%)2.62.723.14.92116
Table 4

Estimated intensities of peaks for WGM, GMM and SNIP-G with polynomial background, and their relative errors expressed by E(W), E(G) and E(S) respectively.

P1P2P3P4P5P6P7
True175462256250756408773300813536
WGM175672194245853198542292912913
E(W)(%)0.12.725.72.62.64.6
GMM169062583272561538152369412076
E(G)3.614.58.79.17.122.810.8
SNIP-G167482194245852568613286111902
E(S)(%)4.52.726.81.84.912.1
Estimated intensities of peaks for WGM, GMM and SNIP-G with Gaussian background, and their relative errors expressed by E(W), E(G) and E(S) respectively. Estimated intensities of peaks for WGM, GMM and SNIP-G with polynomial background, and their relative errors expressed by E(W), E(G) and E(S) respectively. Note that the GMM method is implemented after the baseline is corrected using the Matlab function ‘msbackadj' with routine and default parameters, and the SNIP-G method consists of the background subtraction by SNIP and the peak intensify estimation by Gaussian fitting. Next we provide some analysis on the experimental results. Firstly, It is found from Figs. 3(b) and 4(b) that the WGM method can effectively eliminate background interference. Compared with the non-background case, a simple computation shows that only the relative errors of three peaks are larger, the relative error varies from 0.1154% to 0.3994% at P1 and from 0.5367% to 0.54% at P2 with polynomial background, and from 1.4861% to 1.5027% at P7 with Gaussian background. Compared with the GMM and SNIP-G methods, WGM yields better accuracy than GMM and SNIP-G, apart from at the peak point P5 with SNIP-G (see Tables 3 and 4). Secondly, it can be seen from Tables 1 and 2 that WGM achieves the same estimates of peak intensities for both Gaussian background and polynomial background, and GMM and SNIP-G are sensitive to the backgrounds which reveal a big deviation between Gaussian background and polynomial background. Thirdly, it is also found that WGM is obviously superior to GMM and SNIP-G for overlapping peak identification, especially for the peak with a big width parameter σ. For example, WGM, GMM and SBIP-G respectively yield the relative errors 4.6%; 14.5% and 16% at the peak point P7 with Gaussian background (see Table 3). However, the accuracies of GMM and SNIP-G is not acceptable.

Peak intensity estimates to experimental spectrum

To further verify the effectiveness of the proposed method, the WGM method is tested on actual spectrums from an EDXRF detector with lead content detection, and also compared with the GMM and SNIP-G methods. The tested sample consists of seven gypsum slices with different lead content, which are specially prepared for this experiment by mixing the gypsum in molten state with lead acetate. The weight of each gypsum slice ranges from 0.397 to 0.404 g and thickness from 0.128 to 0.13 cm, the lead content is pre-measured by inductively coupled plasma atomic emission spectrometry (ICP-AES), shown in Table 5.
Table 5

Lead content of samples measured by ICP-AES.

Sample NumberNo.1No.2No.3No.4No.5No.6No.7
Content(mg/kg)9.992330.756648.808961.423773.655678.634789.2233
Lead content of samples measured by ICP-AES. The EDXRF system consists of a mini-X ray tube (10-50kv, 5-200_A), a Si-PIN detector (145–230 eV FWHM at 5.9 KeV) and a computer for data acquisition and evaluation. The mini-X ray tube includes the X-ray fluorescence probe and the preamplifier, the probe is equipped with collimator and filter. The collimator will avoid noise, and improve spectral quality. The filter can effectively reduce the interference of the background and other characteristic spectrum. The measured X-ray spectrums are obtained with 30 kV voltage, 100 μA current and 120 s test time. The critical excitation energy of is 10.55 KeV. The relationship between channel and energy is shown in Fig. 5.
Fig. 5

Relationship between channel (x) and energy (y): y = 0.021x + 0.001 with determination coefficient R2 = 0.9998.

Relationship between channel (x) and energy (y): y = 0.021x + 0.001 with determination coefficient R2 = 0.9998. The original spectrums are firstly to implement a bi-directional smoothness with m = 5 as shown in Fig. 6, and then processed by WGM, GMM and SNIP-G, respectively. The estimated peaks are shown in Figs. 7, 8 and 9, where Fig. 7 is for WGM method, Fig. 8 for GMM method and Fig. 9 for SNIP-G method.
Fig. 6

(a) The original EDXRF spectrum for lead content detection. (b) The bi-directional smoothness spectrum with m = 5.

Fig. 7

The estimated peaks by WGM method presented in this paper.

Fig. 8

The estimated peaks by GMM method.

Fig. 9

The estimated peaks by SNIP-G method.

(a) The original EDXRF spectrum for lead content detection. (b) The bi-directional smoothness spectrum with m = 5. The estimated peaks by WGM method presented in this paper. The estimated peaks by GMM method. The estimated peaks by SNIP-G method. The estimates of net peak areas are given in Table 6. Note that the net peak area of each sample is computed by the average of three measurements.
Table 6

Estimated net peak areas with WGM, GMM and SNIP-G methods, respectively.

SampleNo. 1No. 2No. 3No. 4No. 5No. 6No. 7
WGM138.92332.08511.45641.8181783.03838.56945.41
GMM171.38344.72526.2618.7621725.65775.64892.32
SNIP-G155.36294.15498.87628.421739.65848.29966.42
Estimated net peak areas with WGM, GMM and SNIP-G methods, respectively. The linear regression models between lead content and net peak area corresponding to WGM,GMM and SNIP-G methods are respectively established by the use of sample No. 1, No. 3, No. 5 and No. 7, and the related results can be found in Fig. 10, in which the net peak area is the abscissas and lead content is the ordinate. These models are used to predict the lead contents of the sample No. 2, No. 4 and No. 6, and the results are shown in Table 7.
Fig. 10

The linear regression models between lead content and peak intensity corresponding to the WGM, GMM and SNIP-G methods, and the determination coefficients R2 = 0.9972, 0.9824 and 0.9824, respectively.

Table 7

Predictive lead contents for GWM, GMM and SNIP-G methods, and their relative errors expressed by E(W), E(G) and E(S) respectively.

SampleNo. 2No. 4No. 6
Actual content30.756661.423778.6347
WGM(E(W))31.3749(2.01%)60.5523(1.42%)78.7086(0.57%)
GMM(E(G))34.0505(10.71%)61.0435(0.62%)76.4961(2.72%)
SNIP-G(E(S))28.0381(8.84%)59.7937(2.65%)80.6841(2.61%)
The linear regression models between lead content and peak intensity corresponding to the WGM, GMM and SNIP-G methods, and the determination coefficients R2 = 0.9972, 0.9824 and 0.9824, respectively. Predictive lead contents for GWM, GMM and SNIP-G methods, and their relative errors expressed by E(W), E(G) and E(S) respectively. Despite all of the WGM,GMM and SNIP-G methods achieve high accurate prediction, it can be found from Table 7 that the WGM is more stable than GMM and SNIP-G methods. Both of GMM and SNIP-G methods are not suitable for automatic batched analyzing spectrum since they require iterative calculation, and Fig. 8 corresponding to GMM method includes some interference peaks, which require a manually-operated method to estimate the target peak.

Conclusions

In this paper we propose a wavelet-based Gaussian method (WGM) for the peak intensity estimate of EDXRF spectrum. The proposed method has determined formula and is suitable for automatic batched analyzing spectrum. Experiments on simulated and measured spectrums demonstrate that WGM can eliminate background and distinguish overlap peaks effectively. Since WGM involves 21 adjacent channels for a specified peak, it may lead to a large estimate error when the distance between two adjacent peak points is smaller than 20 channels. In many cases, however, this disadvantage can be overcome by the interpolation method to increase the number of channels. Meanwhile, smooth pre-treatments are usually necessary for reducing pseudo peaks and noise since WGM is relied on the high-frequency wavelet coefficients.

Declarations

Author contribution statement

Pan Liu: Performed the experiments; Analyzed and interpreted the data. Xiaoyan Deng: Conceived and designed the experiments; Wrote the paper. Xin Tang: Conceived and designed the experiments. Shijian Shen: Contributed reagents, materials, analysis tools or data.

Funding statement

This work was supported by Fundamental Research Funds for the Central Universities of China under grant No. 2662015PY046 and National Natural Science Foundation of China (NSFC) under grant No. 11671161.

Competing interest statement

The authors declare no conflict of interest.

Additional information

No additional information is available for this paper.
  4 in total

1.  Wavelet: a new trend in chemistry.

Authors:  Xue-Guang Shao; Alexander Kai-Man Leung; Foo-Tim Chau
Journal:  Acc Chem Res       Date:  2003-04       Impact factor: 22.384

2.  Peak clipping algorithms for background estimation in spectroscopic data.

Authors:  Miroslav Morhác; Vladislav Matousek
Journal:  Appl Spectrosc       Date:  2008-01       Impact factor: 2.388

3.  An iterative algorithm for background removal in spectroscopy by wavelet transforms.

Authors:  C M Galloway; E C Le Ru; P G Etchegoin
Journal:  Appl Spectrosc       Date:  2009-12       Impact factor: 2.388

4.  Signal Partitioning Algorithm for Highly Efficient Gaussian Mixture Modeling in Mass Spectrometry.

Authors:  Andrzej Polanski; Michal Marczyk; Monika Pietrowska; Piotr Widlak; Joanna Polanska
Journal:  PLoS One       Date:  2015-07-31       Impact factor: 3.240

  4 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.