Iteratively calculated complementary background fitting

By iteratively combining different background algorithms, the method addresses the inaccuracies in estimating background radiation, enhancing the precision of peak intensity calculations and quantitative analysis in X-ray spectroscopy.

WO2025214878A1PCT designated stage Publication Date: 2025-10-16PANALYTICAL BV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2025/059179
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-08
Filing Date
2025-04-03
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

Existing methods for determining background spectra in X-ray spectroscopy, such as the SNIP algorithm and iteratively fitted orthogonal polynomials, fail to accurately estimate background radiation in the presence of broad continuum features, leading to inaccurate peak intensity calculations and subsequent quantitative analysis.

Method used

A method involving multiple iterations of different background algorithms, including SNIP and iteratively fitted orthogonal polynomials, to form a combined background spectrum for deconvolution, using linear combinations and fitting functions like cubic splines, to accurately estimate background radiation.

Benefits of technology

This approach provides a more accurate estimation of background radiation, resulting in improved peak intensity calculations and enhanced quantitative analysis by reducing underestimation and fluctuations, thereby improving the accuracy of elemental identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2025059179_16102025_PF_FP_ABST
    Figure EP2025059179_16102025_PF_FP_ABST
Patent Text Reader

Abstract

There is provided a method of analysis of detected X-ray spectra in an instrument, comprising applying a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum, subtracting the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum, applying a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is different from the first background algorithm, forming an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum and using the estimated background spectrum as an input into a deconvolution model.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Iteratively Calculated complementary background fitting

[0002] Field of Invention

[0003] The invention relates to a method of analysis of X-ray spectra such as those obtained by energy dispersive or wavelength dispersive spectroscopy and to related apparatus and computer program products.

[0004] Background to the Invention

[0005] In order to obtain a quantitative analysis of a sample, it is necessary to provide an accurate quantitative determination of the characteristic X-ray fluorescent line intensities emitted by the sample’s elements. In an energy dispersive measurement, and due to the limited detector resolution, the detected characteristic lines will form a spectrum, which, in the most general case, comprises of overlapping, gaussian-like peaks. The intensity of each characteristic line will be proportional to the area of its corresponding peak. In addition, the measured X-ray spectrum will also include a background component under the peaks, due to scattered radiation of the excitation source. For quantitative analysis, the peak net areas are required, i.e. the net area of the relevant peak, after background radiation and contributions of other overlapping peaks have been taken into account.

[0006] Consequently, analysis of energy dispersive (ED) as well as wavelength dispersive (WD) spectra often involves an estimate of the background spectrum. For ED spectra, once the background spectrum has been calculated, the measured spectrum and the precalculated background spectrum are used as inputs in a deconvolution process to extract the peaks net intensities. Alternatively, instead of a precalculated background, an analytical function or another measured spectrum, or part of a spectrum, can be used as the background component and fitted with the peaks during the deconvolution process.

[0007] Consequently, an accurate estimate of the background spectrum allows an accurate quantitative analysis to be executed. i Different algorithms can be used to estimate the background spectrum. A popular algorithm is the sensitive non-linear peak clipping (SNIP) algorithm, which is fast, and easy to implement. Although the SNIP algorithm generally provides a good background estimate, a drawback is that the estimate tends to be more inaccurate in the presence of broad continuum background features such as those produced by scattering of bremstrahlung radiation from low Z matrices. In these instances, the SNIP algorithm tends to underestimate the background radiation.

[0008] Alternative algorithms for estimating the background radiation rely on the use of iteratively fitted orthogonal polynomials of a predefined degree (Steenstrup 1981 ). However, a disadvantage of polynomial fitting is that it can result in significant fluctuations, particularly if higher order polynomials are applied.

[0009] It would therefore be desirable to develop an improved and more accurate method of determining the background component prior to deconvolution and extraction of net peak intensities.

[0010] Summary

[0011] According to the invention there is provided a method of analysis of detected X-ray spectra in an instrument, comprising: detecting an X-ray spectrum from a sample; applying a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtracting the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; applying a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is different from the first background algorithm; forming an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum using the estimated background spectrum as an input into a deconvolution model to extract the net intensities. Optionally, each of the first background algorithm and the second background algorithm are one of a sensitive non-linear peak clipping algorithm, iteratively fitted orthogonal polynomials or an exponential polynomial fitting function or a a set of cardinal cubic B-spline fitting functions.

[0012] The method may further comprise: subtracting the second partial background spectrum from the first net spectrum to form a second net spectrum; applying a third iteration of a third background algorithm to the second net spectrum to determine a third partial background spectrum, wherein the estimated background spectrum comprises a linear combination of the first partial background spectrum, the second partial background spectrum and the third partial background spectrum.

[0013] The estimated background spectrum may comprise a linear combination of the first partial background radiation and the second partial background radiation with a background fitting function, the background fitting function comprising at least one of one of a linear polynomial, an exponential polynomial and a cubic spline.

[0014] According to a second aspect of the invention there is provided a computer program product for measuring X-ray spectra, the computer program product adapted, when run on a computer connected to and controlling an instrument to carry out the steps of: detecting an X-ray spectrum from a sample; applying a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtracting the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; applying a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is same or different from the first background algorithm; forming an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum using the estimated background spectrum as an input into a deconvolution model to extract the net intensities..

[0015] According to a third aspect of the invention there is provided an apparatus for measuring X-ray spectra, the apparatus comprising an instrument for measuring X- ray scattering and a controller arranged to control the instrument to carry out the steps of: detecting an X-ray spectrum from a sample; apply a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtract the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; apply a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is same or different from the first background algorithm; form an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum using the estimated background spectrum as an input into a deconvolution model to extract the net intensities..

[0016] Brief description of the drawings

[0017] For a better understanding of the invention, the invention will now be described purely by way of example, with reference to the accompanying drawings in which:

[0018] Figure 1 is a flow diagram of an embodiment of a method according to the invention;

[0019] Figure 2 illustrates a detected spectrum and first partial background spectrum;

[0020] Figure 3 illustrates a net spectra after the first partial background spectra is subtracted;

[0021] Figure 4 depicts a second partial background spectrum;

[0022] Figure 5 illustrates a combined background spectrum;

[0023] Figure 6 is a highly schematic representation of an embodiment of an apparatus;

[0024] Figure 7 depicts some spectra in accordance with the invention;

[0025] Figure 8 depicts some spectra in accordance with the invention;

[0026] Figure 9 depicts some spectra in accordance with the invention;

[0027] Figure 10 depicts some spectra in accordance with the invention;

[0028] Figure 11 depicts some spectra in accordance with the prior art; and Figure 12 depicts some spectra in accordance with the invention.

[0029] Detailed description

[0030] For a better understanding specific embodiments will now be described, purely by way of example.

[0031] Calculation of background spectra is one of the steps employed in the qualitative analysis of X-ray spectra. By determining an accurate background spectrum accurate net intensities can be calculated. Sometimes, where net peak intensities are obtained by means of deconvolution, background calculation is usually performed in advance and the computed background component is kept fixed. Alternatively, the background component can be introduced in the form of an analytical function and fitted simultaneously with the peaks.

[0032] Apart from the measured and predefined background spectrum, deconvolution, requires in addition, a number of line groups to be defined. Definition of line groups in turn, process via the identification of the elements which emitted the characteristic fluorescent lines that resulted in the observed peaks in the measured spectrum.

[0033] In automated industrial XRF analysis, line groups and elements are defined after a peak search I peak match process. In a peak search process, peak-like structures are identified, and flagged as candidate peaks. Rejection or acceptance of these peaks involves several criteria, with peak significance being one of them. Peak significance is usually defined as the ratio of the peak height to the precalculated background.

[0034] Evidently, a poorly calculated background spectrum will result into false positives (more peaks) or false negatives (fewer peaks) being identified. Both cases will have a negative impact on the subsequent match process. An excess or lack of elements will be observed, leading to a deconvolution model which deviates significantly from the optimal one. In combination with the under, or overestimated background, the deconvolution process will return inaccurate net intensities. These intensities along with the corresponding elements are the input for the quantification process. Therefore, proper determination of the background can be a decisive factor for the final quantitative analysis.

[0035] There are several different background calculation algorithms, the most popular of which is the sensitive non-linear peak clipping (SNIP) algorithm which is fast, robust and easy to implement. It generally gives a good approximation of the background spectrum. However, it tends to underestimate the actual background in the presence of broad continuum features such as those produced by scattering of continuous radiation from low Z matrices.

[0036] Alternative algorithms for estimating the background radiation rely on the use of iteratively fitted orthogonal polynomials (Steenstrup S. J Appl Crystallogr 14:226, 1981 ). However, a disadvantage of polynomial fitting is that it can result in significant fluctuations, particularly if higher order polynomials are applied.

[0037] As an alternative, a linear polynomial function and exponential polynomial or set of cubic splines could equally be used.

[0038] A further alternative is the use of a (previously) measured background spectrum, or part of a spectrum, as a partial background spectrum.

[0039] Referring to Figure 6, an embodiment includes XRF measurement apparatus 110 into which a sample or samples 120 may be inserted for measurement. The XRF measurement apparatus is connected to a controller 100 which contains a computer program product 130 for controlling the controller 100 and in turn measurement apparatus 120. The XRF measurement apparatus 110 in this embodiment is commercially available XRF measurement apparatus and so will not be described further.

[0040] It should be noted that Figure 6 is highly schematic and the controller 110 may be, for example within the casing of the measurement apparatus 100. The computer program product 130 may include multiple separate programs. Further, those skilled in the art will realise that the controller 100 may include one or more processors, data storage, and networks. Embodiments provide a way of removing background spectra to leave the intensities of the sample itself.

[0041] In a first step 10 (see Figure 1 ), a sample is placed in measurement apparatus and a spectrum is measured, or detected. The intensity values are recorded as a function of energy, in a number of contiguous energy bands, creating a spectrum of measured intensity values over a plurality of bins, each bin corresponding to an energy range.

[0042] In a second step 11 , a first background algorithm is applied to the detected spectrum. In one embodiment this may be a SNIP algorithm. The first algorithm determines a first partial background spectrum.

[0043] In a third step 12 the first partial background spectrum is subtracted from the detected spectrum. A second background algorithm is then applied to the resulting spectrum at step 13. Preferably the second background algorithm is a different algorithm from the first background algorithm. Examples of background algorithms are iteratively applied orthogonal polynomials exponential polynomials and cubic splines. By using different background algorithms in a complementary manner the advantages of both background algorithms can be harnessed.

[0044] The background spectrum is then estimated 14 using the first and second partial background spectra. Finally, the detected spectrum is deconvolved 15 using as input the estimated background spectra determined in the previous steps. This reveals the net intensities of the peaks.

[0045] Prior to the deconvolution process, elements and their lines can be determined by comparing the peaks’ positions (energies or wavelengths) to those of existing libraries. The elements and their lines are also used as input into the deconvolution process.

[0046] Using both the SNIP algorithm to determine a first partial background spectrum and another algorithm, for example, the iterative orthogonal polynomial fitting to determine a second partial background spectrum results in a total background spectrum of:

[0047] Thus, the SNIP function covers the largest part of background variation while the additional fitting function acts as a refining term.

[0048] The degree of polynomial, k, is a free parameter and can be set by the user to a fixed value, or be automatically detected depending on the significance of the next term In addition, it could be increased by one, after a preset increase in the number of bins included in the region of interest.

[0049] The estimation of the background spectrum is a combination of the first and second partial background spectra. However, this can be achieved in a number of ways.

[0050] Both the first and second partial background spectra can be added and kept fixed during the deconvolution: this is the simplest implementation. As a variation, both the first and second partial background spectra can be added but each with its own scale parameter.

[0051] In an alternative implementation the first partial background spectrum can be fixed and the linear polynomial of the second partial background spectrum can be refined during deconvolution.

[0052] As a further alternative, background components from both determinations can be summed and linear polynomial refinement applied with a polynomial of maximum third degree during deconvolution.

[0053] Alternatively, the total background can be fitted with a non linear fitting function and the determined parameters applied as start values with appropriate constraints during deconvolution.

[0054] In summary, any linear combination of the partial background spectra components can with any suitable background fitting function (linear polynomial, exponential polynomial, cubic splines....) be used, where in the most general case the fitting function is introduced either as a summing or as multiplication term.

[0055] Examples

[0056] In the example first presented below, a typical spectrum is used , corresponding to a geological sample.

[0057] Figure 2 depicts a detected spectrum, with a plurality of peaks. A SNIP algorithm is then applied to the spectrum and the first partial background spectrum is shown as a smooth function. However, as can be seen, the background spectrum is underestimated at higher energies. This is because the SNIP algorithm is less good at describing globally narrow and broad spectrum background features.

[0058] The first partial background spectrum, detected in the earlier step, is then subtracted from the detected spectrum to generate a net spectrum and this is shown in Figure 3.

[0059] Next, a second background algorithm is applied to the net spectrum to generate a second partial background spectrum. In this example, the iterative orthogonal polynomial fitting algorithm is applied and the resulting second partial background spectrum is shown in Figure 4 (using a different scale from earlier figures).

[0060] Figure 5 illustrates the combined background spectrum combined using a linear combination of a SNIP algorithm and the resulting background spectrum after iterative orthogonal polynomial fitting algorithm Also shown in Figure 5 are the residuals after the deconvolution process.

[0061] Figures 7 to 10 depict spectra processed in accordance with the invention and, as a contrast, Figures 11 and 12 depict spectra processed according to the prior art.

[0062] Figure 7 depicts a measured spectrum, the first partial background calculated using the SNIP algorithm and the net spectrum after the background has been subtracted. As can be seen there is an undercalculation of the background radiation over keV. A second background algorithm is then applied to the net spectrum to generate a second partial background spectrum. In this example, the second background algorithm is iterative orthogonal polynomials. An estimated background spectrum is then formed of the first partial background spectrum and a second partial background spectrum. Figure 8 depicts the estimated background spectrum and the measured spectrum. As can be seen, the estimated background spectrum provides a very good global estimation of the background radiation.

[0063] Peaks are then determined (shown in the net spectrum) and from their positions, lines and elements are identified, as shown in Figure 9. The deconvolution input is prepared and the elements’ lines are input into the deconvolution model together with the estimated background spectrum. As the background radiation has not been underestimated, the correct elements and lines are input into the deconvolution model. Deconvolution is therefore optimal and accurate net intensities are obtained, as depicted in Figure 10

[0064] Figures 11 and 12 depicts the identified elements after using only a SNIP background algorithm (i.e. after only the step depicted in Figure 7). As can be seen in Figure 11 , far more peaks and consequently elements have been identified. Figure 12 depicts the deconvoluted spectrum. As can be seen, there are several erroneously fitted peaks in Figure 12 compared to the more accurate representation of Figure 10.

[0065] Various further aspects and embodiments of the present invention will be apparent to those skilled in the art in view of the present disclosure.

[0066] “and / or” where used herein is to be taken as specific disclosure of each of the two specified features or components with or without the other. For example “A and / or B” is to be taken as specific disclosure of each of (i) A, (ii) B and (iii) A and B, just as if each is set out individually herein.

[0067] Unless context dictates otherwise, the descriptions and definitions of the features set out above are not limited to any particular aspect or embodiment of the invention and apply equally to all aspects and embodiments which are described. It will further be appreciated by those skilled in the art that although the invention has been described by way of example with reference to several embodiments. It is not limited to the disclosed embodiments and that alternative embodiments could be constructed without departing from the scope of the invention as defined in the appended claims.

Claims

Claims1 . A method of analysis of detected X-ray spectra in an instrument, comprising: detecting an X-ray spectrum from a sample; applying a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtracting the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; applying a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is different from the first background algorithm; forming an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum; using the estimated background spectrum as an input into a deconvolution model.

2. A method according to claim 1 , wherein each of the first background algorithm and the second background algorithm are one of a sensitive non-linear peak clipping algorithm, an iterative fitting function based on a polynomial function (i.e iterative orthogonal polynomials fitting algorithm), a cardinal cubic B-spline fitting functions, and a measured spectrum.

3. A method according to either claim 1 or claim 2 further comprising: subtracting the second partial background spectrum from the first net spectrum to form a second net spectrum; applying a third iteration of a third background algorithm to the second net spectrum to determine a third partial background spectrum, wherein the estimated background spectrum comprises a linear combination of the the first partial background spectrum, the second partial background spectrum and the third partial background spectrum.

4. A method according to any one of the preceding claims wherein the estimated background spectrum comprises a linear combination of the first partial background spectrum and the second partial background spectrum with a background fittingfunction, the background fitting function comprising at least one of one of a linear polynomial, an exponential polynomial and a set of cubic splines.

5. A computer program product for measuring X-ray spectra, the computer program product adapted, when run on a computer connected to and controlling an instrument to carry out the steps of: detecting an X-ray spectrum from a sample; applying a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtracting the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; applying a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is different from the first background algorithm; forming an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum using the estimated background spectrum as an input into a deconvolution model. 6.A computer program product for measuring X-ray spectra according to claim 5, wherein each of the first background algorithm and the second background algorithm are one of a sensitive non-linear peak clipping algorithm, an iterative fitting function based on a polynomial function, a cardinal cubic B-spline fitting functions or a measured spectrum.

7. A computer program product according to either claim 5 or claim 6, the method further comprising: subtracting the second partial background spectrum from the first net spectrum to form a second net spectrum; applying a third iteration of a third background algorithm to the second net spectrum to determine a third partial background spectrum, wherein the estimated background spectrum comprises a linear combination of the first partial background spectrum, the second partial background spectrum and the third partial background spectrum.

8. A computer program product for measuring X-ray spectra according to any one of claims 5 to 7, wherein the estimated background spectrum comprises a linear combination of the first partial background radiation and the second partial background radiation with a background fitting function, the background fitting function comprising at least one of one of a linear polynomial, an exponential polynomial and a set of cubic splines.

9. Apparatus for measuring X-ray spectra, the apparatus comprising an instrument for measuring X-ray scattering and a controller arranged to control the instrument to carry out the steps of: detect an X-ray spectrum from a sample; apply a first iteration of a first background algorithm to the detected X-ray spectrum to determine a first partial background spectrum; subtract the first partial background spectrum from the detected X-ray spectrum to form a first net spectrum; apply a second iteration of a second background algorithm to the first net spectrum to determine a second partial background spectrum wherein the second background algorithm is different from the first background algorithm; form an estimated background spectrum comprising linear combination of the first partial background spectrum and the second partial background spectrum using the estimated background spectrum as an input into a deconvolution model.

10. Apparatus according to claim 9, wherein each of the first background algorithm and the second background algorithm are one of a sensitive non-linear peak clipping algorithm, an iterative fitting function based on a polynomial function, a cardinal cubic B-spline fitting function and a measured spectrum.

11. Apparatus according to either claim 9 or claim 10 the controller being further configured to: subtracting the second partial background spectrum from the first net spectrum to form a second net spectrum; applying a third iteration of a third background algorithm to the second net spectrum to determine a third partial background spectrum,wherein the estimated background spectrum comprises a linear combination of the first partial background spectrum, the second partial background spectrum and the third partial background spectrum.

12. Apparatus according to any one of the preceding claims wherein the estimated background spectrum comprises a linear combination of the first partial background spectrum a second partial background spectrum and a background fitting function, the background fitting function comprising at least one of one of a linear polynomial, an exponential polynomial and a set of cubic splines.