An ICP-MS dynamic calibration method and system based on multi-source noise decomposition and adaptive Kalman filtering
By employing a dynamic calibration method combining multi-source noise decomposition and adaptive Kalman filtering, the problems of signal drift and noise interference in the detection of trace and ultra-trace elements by ICP-MS are solved. This method achieves high-precision concentration estimation and dynamic detection limit calculation, thereby improving the reliability and interpretability of the detection results.
Patent Information
- Application Number
- CN202611052466.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-24
AI Technical Summary
ICP-MS faces the coupling effect of multiple interference factors such as instrument signal drift, matrix effect and high frequency noise in the detection of trace and ultra-trace elements. Traditional calibration methods are difficult to effectively separate and suppress various interferences, resulting in a decrease in quantitative accuracy. In particular, the relative error is amplified sharply in low concentration samples, and even false positive or false negative conclusions may occur.
A dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering is adopted. Common factors, individual drift and specific noise are extracted through mathematical transformation, a combined internal standard model is constructed, and Kalman filtering is used for real-time adjustment to establish an observation noise model, so as to achieve accurate decomposition and correction of ICP-MS response signal.
It significantly improves the accuracy and robustness of ICP-MS in simultaneous multi-element analysis, eliminates the negative concentration problem of low-concentration samples, provides real-time uncertainty and dynamic detection limit for each sample, and enhances the reliability and interpretability of detection results.
Smart Images

Figure CN123155643A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chemical instrument data processing, and in particular to an ICP-MS dynamic calibration method and system based on multi-source noise decomposition and adaptive Kalman filtering. Background Technology
[0002] Inductively coupled plasma mass spectrometry (ICP-MS), with its sub-ng / L detection limits, wide dynamic linear range spanning nine orders of magnitude, and simultaneous multi-element analysis capabilities, has become the preferred technology for trace and ultra-trace element detection, playing an irreplaceable role in environmental monitoring, food safety, geological exploration, and biomedicine. Particularly in typical applications such as heavy metal detection in grains, water quality analysis, and soil pollution assessment, ICP-MS enables highly sensitive determination of toxic and hazardous elements, providing crucial technical support for public health protection and environmental risk management.
[0003] However, ICP-MS faces the combined effects of multiple interference factors during actual measurements, including instrument signal drift, matrix effects, and high-frequency noise. Based on the analysis of this invention, these interferences can be classified into the following three categories according to their sources and characteristics: 1. Common noise: This refers to the response fluctuations shared by all elements, mainly originating from changes in the overall instrument status, such as fluctuations in sample introduction efficiency, plasma temperature drift, unstable RF power, and progressive contamination of the interface cone. The characteristic of this type of noise is that it affects all elements simultaneously, causing their responses to exhibit a highly coordinated trend. It is the component that contributes the largest variance to all noise.
[0004] 2. Drift: A trend term unique to each internal standard element that changes slowly over time, mainly stemming from the different response characteristics of internal standards with different mass numbers in terms of space charge effect, mass discrimination effect, and detector gain difference. The decay rates of light-mass and heavy-mass internal standards are often inconsistent, and this difference may exhibit non-linear characteristics. The existence of individual drift means that even after deducting common factors, the residual sequences of each internal standard still have significant trend components.
[0005] 3. Specific noise: The remaining random fluctuations mainly come from counting and statistical fluctuations, i.e. Poisson noise, electronic circuit noise, and short-term random disturbances during the measurement process.
[0006] The aforementioned interfering factors do not act independently, but rather are superimposed and coupled. This coupling effect causes the instrument response to exhibit complex dynamic characteristics, combining long-term trend drift with high-frequency random fluctuations. Traditional static calibration methods are unable to effectively separate and suppress various interferences, leading to a severe decrease in quantitative accuracy. In particular, the relative error is amplified sharply in low-concentration samples, and even false positive or false negative conclusions may occur.
[0007] Currently, the internal standard method and standard curve method are mainly used for calibration. The internal standard method selects an internal standard element with a mass number close to that of the analyte and calculates the signal ratio to offset instrument fluctuations and matrix effects. However, the effectiveness of this method is highly dependent on the strict synchronization of the response behavior of the internal standard and the analyte. When the mass range of the analyte is wide, a single internal standard is difficult to cover all target elements. Moreover, the internal standard signal itself contains three components: common drift, individual drift, and random noise. Traditional ratio methods cannot distinguish these components, leading to unreasonable calibration methods.
[0008] The standard curve method establishes a concentration-response curve using standard solutions at the beginning of the measurement, and then calculates the concentrations of all unknown samples using this fixed curve. This method implicitly assumes that the instrument sensitivity remains constant throughout the measurement process, but in reality, the sensitivity decays continuously and can accelerate. To mitigate this problem, sample-standard interpolation or repeated standard calibration has been developed in practice, but drift within the calibration interval still cannot be fully compensated for, the ability to fit nonlinear drift is limited, and increasing the standard frequency reduces sample throughput.
[0009] In addition to the aforementioned drawbacks, neither the internal standard method nor the standard curve method can provide the real-time uncertainty for each sample. Their global detection limits are insufficient to reflect the actual increase in measurement variance of low-concentration samples, leading to lag in quality control. Low-concentration sample detection often results in negative concentration estimates, causing confusion for data interpretation and regulatory judgment.
[0010] To address the aforementioned shortcomings of existing methods, this invention proposes an ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering. Summary of the Invention
[0011] To address the aforementioned technical problems, this invention provides an ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering, comprising the following steps: Step S1: Select N time nodes to obtain raw data during the continuous measurement process of plasma mass spectrometry. The data at each time node k includes the raw count sequence of at least one analyte element and the raw count of at least one internal standard element. Step S2: Perform mathematical transformation on the original counting sequence of each internal standard element obtained in step S1 to obtain the preprocessed internal standard response sequence; Step S3: Extract common factors from the preprocessed internal standard response sequence obtained in Step S2, calculate the loading vector, and use the loading vector to restore the common factors to the original counting scale, thus constructing the combined internal standard original counting model C. raw ; Step S4: After subtracting the common factor and individual drift trend term from the preprocessed internal standard response sequence, the specific noise sequence of each internal standard element is obtained. The variance of each specific noise sequence is obtained by distribution fitting, and the combined internal standard counting model C is calculated according to the error propagation law. raw Random fluctuation variance Var(C) raw ); Step S5: Combine the variance of the original counts of the element to be tested with the random fluctuation variance Var(C) obtained in step S4. raw The observation noise of sample points with unknown concentrations is obtained by fusing the data using the error propagation formula. Step S6: Plot a standard curve with sample concentration as the abscissa and the ratio of sample response to internal standard response as the ordinate. Use the slope a and intercept b of the standard curve as the state vector describing the instrument state, establish the state equation and observation equation, and use an adaptive algorithm to adjust the process noise covariance matrix Q and observation noise covariance matrix R in real time. Perform Kalman filtering recursion on each measurement point in sequence, and output the sample concentration estimate and its corresponding dynamic detection limit and quantitation limit.
[0012] The Kalman filter recursion in step S6 includes the following steps: Prediction steps: Based on the state estimate at time point (k-1), predict the state vector at time point k, obtaining prior estimates of the slope a and intercept b at time point k, denoted as ak and ak, respectively. pred and b pred ; Concentration estimation steps: Based on the prior estimate a pred and b pred Calculate the concentration estimate at the k-th time point and its corresponding dynamic limit of detection and limit of quantitation; Update steps: If the current time point is a standard sample point with a known concentration, the prior estimate is corrected using the true concentration of the standard sample point to obtain the posterior estimate of the slope a and intercept b at the k-th time point; if the k-th time point is a sample point with an unknown concentration, the state vector remains unchanged, and the prior estimate is directly used as the posterior estimate of the k-th time point.
[0013] Output steps: The posterior estimate is used as the input to the prediction step at the next time point to drive the Kalman filter recursion at subsequent time points; repeat the above prediction step, concentration estimation step and update step until all N time points are processed, and output the concentration estimate of each unknown sample and its corresponding dynamic limit of detection and limit of quantitation.
[0014] The mathematical transformation process in step S2 includes any one of the following processing methods: normalization, logarithmic transformation, centering, or standardization, or a combination of two or more processing methods.
[0015] In step S3, the method for extracting common factors is principal component analysis, the common factors are the first principal component scores of the principal component analysis, and the loading vector is the loading of the first principal component.
[0016] The method for extracting the individual drift trend term in step S4 includes any one or a combination of methods such as smoothed spline, locally weighted regression, curve fitting, or moving average. The distribution model used for distribution fitting of the specific noise sequence in step S4 is any one or a combination of methods among normal distribution, Poisson distribution, Gaussian mixture distribution, Laplace distribution, or t-distribution.
[0017] In step S4, the combined internal standard C raw Random fluctuation variance Var(C) raw ) is calculated using the following formula:
[0018] Among them, w i Let σ be the load of the i-th internal index element. i Let be the specific noise standard deviation of the i-th internal standard element, and n be the number of internal standard elements, where n≥1.
[0019] Among them, the observation noise R of the unknown concentration sample point in step S5 unknow Calculated using the following formula:
[0020] Where y is the original count of the element to be tested obtained in step S1 and C raw The ratio, Var(raw) analyte () represents the variance of the original count to be measured obtained in step S1; The Var (raw) in step S5 analyte The variance can be obtained through any of the following methods: based on the original count itself using a Poisson distribution model, based on statistical analysis of historical data, or based on variance estimation of repeated measures of the same sample or blank sample.
[0021] The adaptive algorithm in step S6 is any one or a combination of multiple methods, including sliding window-based information covariance matching, maximum likelihood estimation, expectation-maximization (EM) algorithm, Bayesian estimation, or covariance matching.
[0022] The method for matching information covariance based on a sliding window specifically includes the following steps: Step S61: Define the sliding window length L, and calculate the sample covariance S of the innovation sequence within the window.k ; Step S62: Calculate the theoretical innovation covariance S k Then according to S k With S k The ratio adjustment process involves the diagonal elements of the noise covariance matrix Q, and upper and lower limits are set.
[0023] The formula for calculating the concentration estimate in step S6 is as follows: The formula for calculating the concentration estimate in step S6 is as follows:
[0024] in, x estimated For the concentration estimate, a pred and b pred For the predicted state variables; Correspondingly, the dynamic detection limit in step S6 is LOD = 3 × σ x The dynamic limit of quantitation is LOQ = 10 × σ. x , σ x The standard deviation of concentration estimated by Kalman filtering.
[0025] This invention also discloses a system based on the aforementioned ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering, comprising: Data acquisition module: used to execute step S1 and acquire raw data at multiple time points during the ICP-MS continuous measurement process; Data preprocessing module: used to perform step S2, and to perform mathematical transformation on the original counting sequence; Combined internal standard modeling module: used to execute steps S3 and S4, and construct a combined internal standard model and a mixed internal standard specific noise model; Kalman filter calibration module: used to perform steps S5 and S6 to realize observation noise modeling, state estimation, noise adaptation and concentration calculation; Result output module: used to output the execution result of step S6, output concentration estimate, dynamic detection limit, and quantitation limit.
[0026] Implementing the embodiments of this invention has the following beneficial effects: ① It accurately decomposes the three sources of noise in the internal standard signal, improving accuracy and system correction effect. This scheme decomposes the ICP-MS internal standard response signal into three components with different physical meanings: common factors, individual drift, and specific noise. Compared with the traditional internal standard ratio method that mixes the three types of noise together, this invention directly cancels common noise by combining internal standards, compensates for sample drift through Kalman filtering, and incorporates specific noise into the observation noise model, performing hierarchical and targeted correction, which significantly improves the accuracy and robustness of simultaneous multi-element analysis. ② It constructs an observation noise model that integrates noise propagation, achieving accurate covariance matching of Kalman filtering. This scheme integrates the variance of the combined internal standard specific noise obtained by decomposition with the Poisson count variance of the analyte itself through the error propagation formula, establishing an observation noise model that accurately matches the current measurement conditions. This allows for adaptive adjustment of the observation noise based on the actual count level of each measurement point, thereby obtaining a more reasonable filter gain and a more accurate concentration uncertainty, laying a solid foundation for subsequent dynamic detection limit calculation. ③ Eliminates the negative concentration problem in low-concentration samples, improving data interpretability. Traditional standard curve methods often produce negative concentration estimates when processing near-zero concentration blank samples due to instrument drift and noise coupling. This invention, through adaptive Kalman filtering dynamic tracking and accurate modeling of observation noise, ensures that all concentration estimates for process blank samples are positive and closer to the theoretical zero value, solving the negative value problem in low-concentration trace analysis and improving the reliability and acceptability of detection results. ④ Provides real-time uncertainty and dynamic detection limit for each sample, enabling refined quality control. Traditional methods can only provide a global average precision or a fixed detection limit based on blank samples, failing to reflect the actual noise level and instrument status of each sample at the measurement time. This invention, based on the state covariance estimated by Kalman filtering and the fused observation noise, calculates the individualized variance of each concentration estimate using the Delta method, thereby obtaining the standard uncertainty, dynamic detection limit, and dynamic quantitation limit for each sample. Attached Figure Description
[0027] Figure 1 This is a schematic block diagram of the steps in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the original count of the internal standard in step S31 of embodiment 3 of the present invention; Figure 3 This is a schematic diagram of the specific noise distribution and normal fit in Embodiment 3 of the present invention; Figure 4 This is a comparative diagram of the present invention and the fixed curve method in Embodiment 3 of the present invention. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
[0029] Example 1 like Figure 1 As shown, an ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering includes the following steps: Step S1: Using time as a node, acquire the raw data during the continuous measurement process of plasma mass spectrometry. The data at each time node includes the raw count sequence of at least one analyte element and the raw count of at least one internal standard element. Step S2: Perform mathematical transformation on the original counting sequence of each internal standard element obtained in step S1 to obtain the preprocessed internal standard response sequence; Step S3: Extract common factors from the preprocessed internal standard response sequence obtained in Step S2, calculate the loading vector, and use the loading vector to restore the common factors to the original counting scale, thus constructing the combined internal standard original counting model C. raw ; Step S4: After subtracting the common factor and individual drift trend term from the preprocessed internal standard response sequence, the specific noise sequence of each internal standard element is obtained. The variance of each specific noise sequence is obtained by distribution fitting, and the combined internal standard counting model C is calculated according to the error propagation law. raw Random fluctuation variance Var(C) raw ); Step S5: Compare the variance of the original counts of the element to be tested with Var(C) obtained in step S4. raw The observation noise of sample points with unknown concentrations is obtained by fusing the data using the error propagation formula. Step S6: Using the slope a and intercept b of the standard curve as the state vector describing the instrument state, establish the state equation and observation equation. Use an adaptive algorithm to adjust the process noise covariance matrix Q and observation noise covariance matrix R in real time. Perform Kalman filtering recursion on each measurement point in sequence, calculate the concentration estimate of each sample and its corresponding dynamic detection limit and quantitation limit, and output the results.
[0030] Specifically, the mathematical transformation process in step S2 includes any one of the following processing methods: normalization, logarithmic transformation, centering, or standardization, or a combination of two or more processing methods.
[0031] Specifically, the method for extracting common factors in step S3 is principal component analysis, the common factors are the first principal component scores of the principal component analysis, and the loading vector is the loading of the first principal component.
[0032] Specifically, the method for extracting the individual drift trend term in step S4 includes any one or a combination of methods such as smoothed splines, locally weighted regression, curve fitting, or moving average.
[0033] The distribution model used for distribution fitting of the specific noise sequence in step S4 is any one or a combination of methods among normal distribution, Poisson distribution, Gaussian mixture distribution, Laplace distribution, or t-distribution.
[0034] Specifically, the combined internal standard C in step S4 raw Random fluctuation variance Var(C) raw ) is calculated using the following formula:
[0035] in, w i Let i be the load of the i-th internal index element. σ i Let be the specific noise standard deviation of the i-th internal standard element, and n be the number of internal standard elements, where n≥1.
[0036] The observation noise R of the unknown concentration sample point in step S5 unknow Calculated using the following formula:
[0037] Where y is the original count of the element to be tested obtained in step S1 and C raw The ratio, Var(raw) analyte () represents the variance of the original count to be measured obtained in step S1; The Var (raw) in step S5 analyte The variance can be obtained through any of the following methods: based on the original count itself using a Poisson distribution model, based on statistical analysis of historical data, or based on variance estimation of repeated measures of the same sample or blank sample.
[0038] It should be noted that the real-time data accumulated through long-term experiments, and the Var(raw) obtained based on statistical methods, are used to calculate the data. analyte ) Specifically, the adaptive algorithm in step S6 is any one or a combination of multiple methods, such as the sliding window-based information covariance matching method, the maximum likelihood estimation method, the expectation-maximization (EM) algorithm, the Bayesian estimation method, or the covariance matching method.
[0039] Specifically, the method for matching information covariance based on a sliding window includes the following steps: Step S61: Define the sliding window length L, and calculate the sample covariance S of the innovation sequence within the window. k; Step S62: Calculate the theoretical innovation covariance S k Then according to S k With S k The ratio adjustment process involves the diagonal elements of the noise covariance matrix Q, and upper and lower limits are set.
[0040] The formula for calculating the concentration estimate in step S6 is as follows:
[0041] in, x estimated For the concentration estimate, a pred and b pred For the predicted state variables; Correspondingly, the dynamic detection limit LOD = 3 × σ x The dynamic limit of quantitation (LOQ) is 10 × σ. x , σ x The standard deviation of concentration estimated by Kalman filtering.
[0042] Example 2 This embodiment, based on Embodiment 1, discloses a system capable of implementing Embodiment 1. Specifically, it discloses a system based on a multi-source noise decomposition and adaptive Kalman filtering ICP-MS dynamic calibration method, comprising: Data acquisition module: used to execute step S1 and acquire raw data at multiple time points during the ICP-MS continuous measurement process.
[0043] Data preprocessing module: used to perform step S2, and to perform mathematical transformation on the original counting sequence.
[0044] Combined internal standard modeling module: used to execute steps S3 and S4 to construct a combined internal standard model and a mixed internal standard specific noise model.
[0045] Kalman filter calibration module: used to perform steps S5 and S6 to realize observation noise modeling, state estimation, noise adaptation and concentration calculation.
[0046] Result output module: used to output the execution result of step S6, output concentration estimate, dynamic detection limit, and quantitation limit.
[0047] The system provided in this embodiment, which is based on multi-source noise decomposition and adaptive Kalman filtering for dynamic calibration of ICP-MS, can be widely used in food safety (e.g., heavy metal detection in grains, vegetables, and aquatic products), environmental protection (e.g., trace element analysis in water, soil, and atmospheric particulate matter), geological exploration (e.g., rare element determination in minerals and rocks), and biomedicine (e.g., trace element analysis in biological samples).
[0048] Compared with existing technologies, this invention can effectively eliminate the negative value problem in low concentration detection, significantly reduce drift error in long-term measurement, provide real-time uncertainty for each sample, and realize continuous monitoring of instrument status, significantly improving the quantitative analysis performance of ICP-MS in complex dynamic environments, and has extremely high industrial application value.
[0049] Example 3 This embodiment, based on Embodiments 1 and 2, discloses an example of applying the system and method disclosed in Embodiments 1 and 2 to actual testing, thereby illustrating the feasibility and technical effects of this solution.
[0050] Taking the ICP-MS determination of three heavy metals—arsenic (As), cadmium (Cd), and lead (Pb)—in grain samples as an example, germanium was selected as the internal standard element. 74 Ge, indium 115 In and rhenium 187 Re.
[0051] The measurement sequence contains 48 time points, and each time point records the sample identification code, Ge raw count, As raw count, Cd raw count, In raw count, Re raw count, and Pb raw count.
[0052] This includes multiple standard samples with known concentrations. In this embodiment, the standard sample concentrations include 0 ug / L, 0.1 ug / L, 0.5 ug / L, 1 ug / L, 5 ug / L, 10 ug / L, and multiple unknown samples. The reagent blank samples in this embodiment are numbered KB1~KB6, the process blank samples are numbered sykb-1~sykb-11, the quality control samples are numbered B1-1~B2-3, and the spiked samples are numbered jb1-1~jb3-3, etc., as shown in Table 1 below.
[0053] Table 1:
[0054] To better illustrate the specific implementation of the method disclosed in Embodiment 1 in this embodiment, the following will describe the steps S1 to S6 disclosed in Embodiment 1 step by step.
[0055] Step S1: Using time as a node, acquire the raw data during the continuous plasma mass spectrometry measurement process. The data at each time node k includes the raw count sequence of at least one analyte element and the raw count of at least one internal standard element. Where k = 1, 2, ..., N, and N is the total number of measurement points; Raw data from multiple time points during continuous ICP-MS measurement are acquired. Data at each time point includes the raw counts of the measured elements As, Cd, and Pb, as well as the raw counts of the internal standard elements Ge, In, and Re. The data is stored in a matrix format, with rows representing time points 1 to 48, and columns representing different elements.
[0056] Step S2: Perform mathematical transformation on the original counting sequence of each internal standard element obtained in step S1 to obtain the preprocessed internal standard response sequence.
[0057] The original count sequence of each internal index element is normalized by dividing the count at each time point of each internal index by the count at the first time point (B1) of that internal index, thus obtaining the normalized internal index sequence.
[0058]
[0059]
[0060] Where t=1, 2, ..., 48. It should be noted that this embodiment uses the normalization method, but it is not the only method in the data preprocessing stage. Other methods such as logarithm taking, centering, or standardization can also be used for data preprocessing. This example is not limited to these methods.
[0061] It should be noted that, for step S2, in addition to normalization, logarithmic transformation can also be used, i.e.
[0062] By employing logarithmic transformation, multiplicative drift can be converted into additive drift, making subsequent PCA decomposition more suitable for certain non-stationary signals.
[0063] Step S3: Extract the common factor c from the preprocessed internal standard response sequence obtained in Step S2, calculate the loading vector, and use the loading vector to restore the common factor to the original counting scale, thus constructing the combined internal standard original counting model C. raw .
[0064] Step S31: Arrange the three normalized index sequences obtained in step S2 into a matrix Y, as shown in the following formula:
[0065] The matrix Y is subjected to mean-reduction processing to obtain Yi. demean .
[0066] Step S32: For the Y demean Principal component analysis is performed to obtain the first principal component score and the loading vector w. Specifically,
[0067] Taking this embodiment as an example, the calculated The total variance explained by its common factors is 97.53%.
[0068] The common factors are restored to the original counting scale, and a combined internal standard original counting model C is constructed. raw ,
[0069] like Figure 2 (A) shows the raw counts of the three internal standards, which exhibit similar fluctuation trends. Figure 2 (B) shows C raw Over time, its fluctuations become smoother and represent common drift. Figure 2 (C) shows a comparison between the normalized internal standards and the common factors, indicating that the common factors successfully extracted the synergistic changes of the three internal standards.
[0070] Step S4: After subtracting the common factor and individual drift trend term from the preprocessed internal standard response sequence, the specific noise sequence of each internal standard element is obtained. The variance of each specific noise sequence is obtained by distribution fitting, and the combined internal standard counting model C is calculated according to the error propagation law. raw Random fluctuation variance Var(C) raw ).
[0071] Step S41: Subtract the common factor from each preprocessed internal standard response sequence to obtain the residual sequence.
[0072] Where i is the internal index element, which is Ge in this embodiment, In, Re, and c is the common factor extracted in step S2. w i This is the load vector corresponding to the internal index element.
[0073] After obtaining the residual sequence, a smooth spline fit is performed on the residual sequence corresponding to each internal standard sequence to obtain its trend term d. i In this embodiment, the smoothing parameter p for the smooth spline fitting is set to 0.9999. Restoring individual drift to the original counting scale:
[0074] Where, d i (t) represents the trend term at time point t, raw i (1) is the original count for the first time of the internal standard.
[0075] It should be noted that step S41 of this embodiment can also use local weighted regression instead of smooth spline fitting. Local weighted regression uses a local subset of the vicinity for each fitting point to perform weighted linear regression. The weights are determined by the distance between them. This method can also effectively extract nonlinear trend terms and has good robustness to outliers. The local weighted regression mentioned above is a prior art in this field and is not the focus of this solution, so it will not be described in detail.
[0076] Step S42: Subtract individual drift from the residual sequence to obtain the specific noise sequence:
[0077] in, ε i It is a specific noise sequence. R i It is a residual sequence. d i For individual drift.
[0078] After restoring to the original counting scale, the standard deviation of each internal standard specific noise is calculated. In this embodiment, the standard deviation is: σ Ge =4.35cps σ In =15.67cps σ Re =16.79cps For each specific noise sequence, a normal distribution was fitted, and the results are as follows: Figure 3 As shown, its histogram matches the normal distribution curve well, which proves that the normality assumption is reasonable.
[0079] It should be noted that a Poisson distribution can be used instead of a normal distribution for fitting, and for low counts, the Poisson distribution is more accurate than the normal distribution. In this case, the parameters of the single internal standard specific noise model are the mean of the Poisson distribution. In this embodiment, the variance is used as the mean, and the error propagation formula is still used for multi-internal standard synthesis.
[0080] Step S43: According to the error propagation law, combine the internal standard C. raw The random fluctuation variance is:
[0081] In this embodiment, Var(C) is calculated. raw The variance of 195.22 reflects the inherent random fluctuation of the combined internal standard under the influence of no common factors and individual drift, and is an important component of the subsequent Kalman filter observation noise model.
[0082] Step S5: Compare the variance of the original counts of the element to be tested with Var(C) obtained in step S4.raw The observation noise of sample points with unknown concentrations is obtained by fusing the data using the error propagation formula. Step S51: Calculate the combined internal standard correction ratio For the element to be tested, taking As as an example, calculate its original count and the original count C of the combined internal standard described in step 31. raw The ratio of the two values is used to obtain the corrected response value y. As .
[0083]
[0084] Similarly, calculate y Cd and y Pb This ratio eliminates sensitivity fluctuations caused by common factors by combining internal standards.
[0085] Step S52: Construct an initial estimate of the observation noise of the element to be measured.
[0086] Based on the statistical distribution characteristics of the original counts of the element to be measured, its variance is calculated and used as an initial estimation parameter for the observation noise of the element itself. Since the counting process follows a Poisson distribution, the variance is approximately equal to the original counts themselves.
[0087] The estimated parameters are used for subsequent fusion with combined internal standard-specific noise.
[0088] Step S53: Construct the observation noise model of the Kalman filter. The hybrid internal standard-specific noise model obtained in step 5 is fused with the initial estimate of the observation noise of the analyte element obtained in step 7, serving as the prior benchmark for the observation noise covariance matrix R in Kalman filtering. For sample points with unknown concentrations, the observation noise R... unknow Determined by the error propagation formula:
[0089] Where y is the original count of the element to be tested obtained in step S1 and C raw The ratio, i.e., y=raw analyte / C raw Var(raw) analyte Take the Poisson variance, which equals the original count, Var(C raw ) represents the combined internal standard random fluctuation variance calculated in step 5.
[0090] This formula unifies the fluctuations in the count of the element to be measured and the specific noise of the combined internal standard into a single framework, achieving accurate covariance matching between the observation noise and the current measurement conditions.
[0091] For standard sample points with known concentrations, the observation noise R is the sample variance of the ratio of multiple standard sample points within the same concentration group. If there is only one standard sample point for a certain concentration, the average variance of the fitting residuals of all standard sample points is used as the default value.
[0092] Step S6: Using the slope a and intercept b of the standard curve as the state vector describing the instrument state, establish the state equation and observation equation. Use an adaptive algorithm to adjust the process noise covariance matrix Q and observation noise covariance matrix R in real time. Perform Kalman filtering recursion on each measurement point in sequence, calculate the concentration estimate of each sample and its corresponding dynamic detection limit and quantitation limit, and output the results.
[0093] Step S61: Construct the state vector and state equation for the Kalman filter. The slope 'a' and intercept 'b' of the standard curve will be used as the state vector describing the instrument's state.
[0094] Where, θ k Let a be the state vector. k The slope of the standard curve at time node k, b k This is the intercept of the standard curve at time node k.
[0095] Assuming the state vector follows a random walk process, establish the state equation:
[0096] in, Let be the process noise at the k-th time point, which follows a normal distribution with zero mean and covariance matrix Q, i.e. Its covariance matrix This reflects the rate of change of instrument sensitivity and baseline drift, where q a Let q be the process noise variance of the slope. b The process noise variance is the intercept. Initial state. It is obtained by least-squares fitting of the first set of standard sample points.
[0097] Step S62: Construct the observation equations for the Kalman filter. For standard sample points with known concentrations, establish an observation equation and convert the observed values... That is, the ratio obtained in step S5, and the state vector and known concentration. Related:
[0098] in, y k The observation value at the k-th time point is... y k =rawanalyte,k / C raw,k ; θ k This is the state vector at the k-th time point; H k For the first k The observation matrix (design matrix) at each time point; for standard sample points, H k =[ x k [,1], where x k This is the known true concentration value of the standard sample point; Let be the observation noise at the k-th time point, which follows a mean of zero and a variance of . R k The normal distribution, i.e. .
[0099] Step S63: Adaptive Q-axis of process noise covariance matrix The sliding window method is used to adjust the process noise covariance matrix Q in real time based on the difference between the actual covariance and the theoretical covariance of the innovation sequence within the window. The specific steps are as follows: Step S631: Define the sliding window length L, which is 5 in this embodiment, and calculate the information only for the standard sample points. e k :
[0100] in, The predicted state vector at the k-th time point is obtained from the prediction step in step S65.
[0101] Theoretical Information Covariance S k for:
[0102] in, The predicted state covariance matrix at the k-th time point is obtained from the prediction step in step S65; Step S632: When the cumulative number of standard sample points reaches L, calculate the actual variance of the innovation within the window. :
[0103] Wherein, var(e) k-L+1 , ..., e k () represents the variance of L consecutive innovation values at time k; Step S633: Calculate the adjustment factor ,in This represents the mean of the theoretical covariance within the window.
[0104] Step S634: Update the process noise matrix:
[0105] Where 0.5 and 2 are the preset lower and upper limits of the adjustment factor, respectively, which are empirical values derived from the improved version of the adaptive strong tracking filter or Sage-Husa adaptive filter; min and max are the minimum and maximum values, respectively.
[0106] And restrict diagonal elements to [10 -9 10 -5 Within the specified range, to ensure filtering stability.
[0107] It should be noted that, in addition to the sliding window method, this embodiment can also use the expectation-maximization algorithm, which estimates the process noise covariance Q by iteratively maximizing the likelihood function. This is suitable for scenarios where standard sample points are sparse but high-precision estimation is required.
[0108] Step S64: Adaptive observation of noise R For a standard sample point, the sample variance of the ratio y of multiple measurements at the same concentration point is used as the observation noise R for that point. k .
[0109] If a concentration has only a single standard point, then the average variance of the fitted residuals from all standard points is used.
[0110] For unknown sample points, the fusion formula in step S53 is applied to dynamically calculate R based on the original count of the current point and the mixed noise model in step 5. unknow .
[0111] Step S65: Kalman Filtering Recursion and Concentration Estimation For each measurement point, i.e., in chronological order, the Kalman filter prediction step, concentration estimation step, update step, and output step are executed sequentially. Prediction steps:
[0112] in, Let be the predicted state vector at time point k. This is the updated state vector at time point k-1. Let be the predicted state covariance matrix at the k-th time point. Let be the updated state covariance matrix at time point k-1.
[0113] Therefore, the predicted state vector at time point k is:
[0114] Concentration estimation steps: Using the predicted state ( , ) and current observations Calculate the estimated concentration at this point:
[0115] Meanwhile, the variance of the concentration estimate was calculated using the Delta method. Its standard deviation is:
[0116]
[0117] The dynamic detection limit LOD k and Limit of Quantification (LOQ) k They are respectively:
[0118] The update steps include two sub-steps: calculating the Kalman gain and updating the state and covariance.
[0119] Calculate the Kalman gain K k :
[0120] Among them, K k The Kalman gain at time k; P k|k-1 H is the predicted state covariance matrix at the k-th time point; k R is the observation matrix at time k; T is the mathematical symbol for the matrix transpose; k Let be the measurement noise covariance matrix at time k.
[0121] Update state and covariance:
[0122]
[0123] Where I is the identity matrix. In this embodiment, I is a square matrix with all elements on the main diagonal being 1 and all other elements being 0.
[0124] If the current point is an unknown sample point, then the state and covariance remain unchanged:
[0125]
[0126] like Figure 4 As shown in (A), it compares the concentration estimation of As element fixed curve method with that of this method. It can be seen that the estimated value of this method is closer to the true value of 1.0 μg / L in the later stage, such as time point 48.
[0127] like Figure 4 As shown in (B), the concentration estimated by this method and its dynamic LOD / LOQ are illustrated.
[0128] like Figure 4 As shown in (C), the slope a estimated by this method changes over time. It can be seen from the figure that the slope a slowly decreases from 0.032 to 0.031, while the slope of the fixed curve remains constant, which leads to the prediction bias in the later stages.
[0129] like Figure 4 As shown in (D), the adaptive observation noise R is larger in the low concentration region, mainly due to noise contribution, while in the high concentration region, R is smaller, mainly due to state contribution.
[0130] Output steps: Outputs the concentration estimate, standard uncertainty, dynamic limit of detection, and limit of quantitation for each unknown sample. It also outputs the slope of the Kalman filter estimate over time for instrument condition monitoring and maintenance alerts.
[0131] Comparison of experimental results and effects To better illustrate the beneficial effects of this solution through this embodiment, a comparative experiment is conducted below, specifically comparing the KF solution of this solution with the traditional fixed standard curve method OLS.
[0132] Comparison 1: Comparison of prediction accuracy for standard points: Four 1.0 μg / L standard samples were distributed at different stages of the measurement sequence, and the results are shown in Table 2.
[0133] Table 2:
[0134] As can be seen, the absolute error of the method of the present invention at the later standard points is only 0.0083 μg / L, which is about 90% lower than the traditional fixed standard curve method, proving that it has excellent long-term drift tracking capability.
[0135] Comparison 2: Comparison of analytical capabilities for low-concentration blank samples: The 11 process blank samples, namely sykb-1 to sykb-11, were analyzed, and the results are shown in Table 3.
[0136] Table 3:
[0137] As can be seen, the KF method of this invention eliminates the negative concentration problem in the detection of process blank As. The traditional fixed standard curve OLS method has eight negative values, and the mean value of the KF method is closer to the theoretical 0 value, which significantly improves the reliability and data interpretability of low concentration trace analysis.
[0138] Comparison 3: Comparison of precision of repeated samples The B1 series quality control samples (n=3) and the jb1 series spiked samples (n=3) were analyzed, and the results are shown in Table 4.
[0139]
[0140] As can be seen, the relative standard deviation (RSD) of the KF method is less than or equal to that of the traditional OLS, and it is significantly improved on the B1 series, with a reduction of 20% to 30%, which proves that it has better repeatability and precision.
[0141] It should be noted that the jb1 series spiked samples are based on samples with known concentrations. Before sample processing, a certain amount of mixed standard solution of As, Cd and Pb is added to each sample. In this embodiment, the spike concentration is 0.1 μg / L, based on the fixed volume.
[0142] The purpose of spiked samples is to evaluate the recovery rate of the method at a certain concentration level.
[0143] Comparison 4: Comparison of the accuracy of instrument condition monitoring The slope estimated by the Kalman filter changes over time as follows: Figure 3 As shown in (C), the initial slope is 0.0321, which eventually decreases to 0.0309, with a cumulative relative change of 3.7%. This slope change curve reflects the attenuation trend of the instrument's sensitivity and can provide a quantitative reference for maintenance reminders issued by the data processing system to the operator.
[0144] In practical applications, operators can pre-set warning thresholds for relative slope changes, such as 5% or 10%, based on the instrument's historical performance data and the quality control requirements of specific analytical methods.
[0145] The data processing system will monitor the slope change rate in real time. When the cumulative change exceeds the preset threshold, the system will automatically issue a maintenance reminder signal, prompting the operator to check the cone orifice, clean the sample injection system, or re-optimize the instrument parameters.
[0146] The rate of change of the slope is calculated by the following formula: Rate of change of slope = | ( a k - a 0) / a 0|×100% Among them, a k The slope is estimated using the Kalman filter at the k-th time point, where a0 is the initial slope. A maintenance alert is triggered when the rate of change of the slope exceeds a preset threshold.
[0147] This feature helps to transform the traditional scheduled maintenance model into an on-demand maintenance model, which can reduce unnecessary downtime maintenance and improve instrument operating efficiency while ensuring data quality.
[0148] Based on the four comparison methods mentioned above, it is fully demonstrated that the proposed KF method has better accuracy than traditional methods, especially the traditional fixed standard curve method OLS.
[0149] Of course, the above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be used to limit the scope of protection of the present invention. All modifications made according to the spirit and essence of the main technical solution of the present invention should be covered within the scope of protection of the present invention.
Claims
1. A dynamic calibration method for ICP-MS based on multi-source noise decomposition and adaptive Kalman filtering, characterized in that, Includes the following steps: Step S1: Select N time nodes to obtain raw data during the continuous measurement process of plasma mass spectrometry. The data at each time node k includes the raw count sequence of at least one analyte element and the raw count of at least one internal standard element. Step S2: Perform mathematical transformation on the original counting sequence of each internal standard element obtained in step S1 to obtain the preprocessed internal standard response sequence; Step S3: Extract common factors from the preprocessed internal standard response sequence obtained in Step S2, calculate the loading vector, and use the loading vector to restore the common factors to the original counting scale, thus constructing the combined internal standard original counting model C. raw ; Step S4: After subtracting the common factor and individual drift trend term from the preprocessed internal standard response sequence, the specific noise sequence of each internal standard element is obtained. The variance of each specific noise sequence is obtained by distribution fitting, and the combined internal standard counting model C is calculated according to the error propagation law. raw Random fluctuation variance Var(C) raw ); Step S5: Combine the variance of the original counts of the element to be tested with the random fluctuation variance Var(C) obtained in step S4. raw The observation noise of sample points with unknown concentrations is obtained by fusing the data using the error propagation formula. Step S6: Plot a standard curve with sample concentration as the abscissa and the ratio of sample response to internal standard response as the ordinate. Use the slope a and intercept b of the standard curve as the state vector describing the instrument state, establish the state equation and observation equation, and use an adaptive algorithm to adjust the process noise covariance matrix Q and observation noise covariance matrix R in real time. Perform Kalman filtering recursion on each measurement point in sequence, and output the sample concentration estimate and its corresponding dynamic detection limit and quantitation limit.
2. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The Kalman filter recursion in step S6 includes the following steps: Prediction steps: Based on the state estimate at time point (k-1), predict the state vector at time point k, obtaining prior estimates of the slope a and intercept b at time point k, denoted as ak and ak, respectively. pred and b pred ; Concentration estimation steps: Based on the prior estimate a pred and b pred Calculate the concentration estimate at the k-th time point and its corresponding dynamic limit of detection and limit of quantitation; Update steps: If the current time point is a standard sample point with a known concentration, the prior estimate is corrected using the true concentration of the standard sample point to obtain the posterior estimate of the slope a and intercept b at the k-th time point; if the k-th time point is a sample point with an unknown concentration, the state vector remains unchanged, and the prior estimate is directly used as the posterior estimate of the k-th time point. Output steps: The posterior estimate is used as the input to the prediction step at the next time point to drive the Kalman filter recursion at subsequent time points; repeat the above prediction step, concentration estimation step and update step until all N time points are processed, and output the concentration estimate of each unknown sample and its corresponding dynamic limit of detection and limit of quantitation.
3. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The method for extracting common factors in step S3 is principal component analysis, where the common factors are the first principal component scores of the principal component analysis, and the loading vector is the loading of the first principal component.
4. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The method for extracting the individual drift trend term in step S4 includes any one or a combination of methods such as smoothed spline, locally weighted regression, curve fitting, or moving average. The distribution model used for distribution fitting of the specific noise sequence in step S4 is any one or a combination of methods among normal distribution, Poisson distribution, Gaussian mixture distribution, Laplace distribution, or t-distribution.
5. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The combined internal standard C in step S4 raw Random fluctuation variance Var(C) raw ) is calculated using the following formula: Among them, w i Let σ be the load of the i-th internal index element. i Let be the specific noise standard deviation of the i-th internal standard element, and n be the number of internal standard elements, where n≥1.
6. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The observation noise R of the unknown concentration sample point in step S5 unknow Calculated using the following formula: Where y is the original count of the element to be tested obtained in step S1 and C raw The ratio, i.e., y=raw analyte / C raw Var (raw) analyte () represents the variance of the original count to be measured obtained in step S1; The Var (raw) in step S5 analyte Obtained through any of the following methods: Based on the Poisson distribution model, the value is taken as the original count itself, that is, Var(raw) analyte =raw analyte ; Statistical analysis based on historical data; Variance estimation based on repeated measurements of the same sample or blank sample.
7. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The adaptive algorithm in step S6 is any one or a combination of multiple methods, such as the sliding window-based information covariance matching method, the maximum likelihood estimation method, the expectation-maximization (EM) algorithm, the Bayesian estimation method, or the covariance matching method.
8. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 7, characterized in that, The method for matching information covariance based on a sliding window specifically includes the following steps: Step S61: Define the sliding window length L, and calculate the sample covariance S of the innovation sequence within the window. k ; Step S62: Calculate the theoretical innovation covariance S k Then according to S k With S k The ratio adjustment process involves the diagonal elements of the noise covariance matrix Q, and upper and lower limits are set.
9. The ICP-MS dynamic calibration method based on multi-source noise decomposition and adaptive Kalman filtering according to claim 1, characterized in that, The formula for calculating the concentration estimate in step S6 is as follows: Among them, X estimated For the concentration estimate, a pred and b pred These are the prior estimates of the slope a and intercept b at the k-th time point obtained in the Kalman filter prediction step, respectively. Correspondingly, the dynamic detection limit LOD = 3 × σ x The dynamic limit of quantitation (LOQ) is 10 × σ. x , σ x The standard deviation of concentration estimated by Kalman filtering.
10. A system based on the ICP-MS dynamic calibration method according to claims 1-9, characterized in that, include: Data acquisition module: used to execute step S1 and acquire raw data at multiple time points during the ICP-MS continuous measurement process; Data preprocessing module: used to perform step S2, and to perform mathematical transformation on the original counting sequence; Combined internal standard modeling module: used to execute steps S3 and S4, and construct a combined internal standard model and a mixed internal standard specific noise model; Kalman filter calibration module: used to perform steps S5 and S6 to realize observation noise modeling, state estimation, noise adaptation and concentration calculation; Result output module: used to output the execution result of step S6, output concentration estimate, dynamic detection limit, and quantitation limit.
