XRF trace element quantitative analysis method based on ISOMAP-ELM
Through the ISOMAP-ELM model, the problems of overlapping element spectral lines and information uncertainty in XRF spectral analysis are solved, the accuracy and precision of quantitative analysis are improved, and efficient quantitative prediction of trace element content is achieved.
Patent Information
- Application Number
- CN202210579311.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In XRF spectral analysis, peak count overlap between element spectral lines and uncertainty in element information lead to inaccurate quantitative analysis results, and traditional methods lack effective data inspection and processing.
An algorithm based on a combination of isometric feature mapping (ISOMAP) and extreme learning machine (ELM) is used to construct an analysis model of peak characteristic information and elemental content of sample elements, and the accuracy of quantitative analysis results is improved through the ISOMAP-ELM model.
It improves the accuracy of elemental quantitative analysis, reduces errors caused by environmental background effects and statistical fluctuations, and achieves high-precision quantitative prediction of elemental content in the analyte.
Smart Images

Figure CN114994109B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of element detection, and in particular to an XRF trace element quantitative analysis method based on ISOMAP-ELM. Background Art
[0002] With the gradual development of energy spectrum science research, online quantitative detection technology has become a new development trend. After nearly a decade of refined and expanded research, X-ray fluorescence spectrometry (XRF) has become a new analytical technique for elemental content analysis. Due to its rapid, non-destructive, high-speed detection, simple processing and operation, and ability to quickly and accurately determine multiple elemental components in an analyte, this technique has been widely used in various fields, including metallurgy, building materials, soil, traditional Chinese medicine, and non-ferrous metals.
[0003] When using XRF spectrometers to perform precise qualitative and accurate quantitative analysis of trace elements, problems such as peak count overlap between element spectral lines, uncertainty in element information, and high element detection limits can occur. In the case of spectral line overlap interference, how to improve the accuracy of element quantitative analysis results has become the focus of the present invention. Therefore, isometric mapping (ISOMAP) and extreme learning machine (ELM) are combined with algorithms to apply to the quantitative analysis of elements, solving the problems of inaccurate calculations and lack of data verification of traditional X-ray fluorescence spectrometers, aiming to provide an alternative inspection method for the quantitative analysis of X-ray fluorescence spectrometer results. Summary of the Invention
[0004] In response to the problems existing in the above-mentioned prior art, the present invention provides a method for predicting the element content contained in a test object based on the isointerval feature mapping-extreme learning machine (ISOMAP-ELM) algorithm. This method is based on the isointerval feature mapping (ISOMAP) dimensionality reduction and extreme learning machine (ELM) prediction algorithm in machine learning, establishes the peak characteristic information of the sample elements and the element content analysis model, improves the accuracy of the quantitative analysis results, and ultimately realizes the quantitative prediction of the element content information contained in the substance.
[0005] To achieve the above object, the present invention proposes an XRF trace element quantitative analysis method based on ISOMAP-ELM, which comprises the following steps:
[0006] Step 1: Determine the standard sample set: Assuming that there are n samples to be tested in the standard sample set, take the union of all elements (elements 12 to 92 in the periodic table) that can be identified by an ED-XRF fluorescence spectrometer (i.e., energy dispersive X-ray fluorescence spectrometer) to form the element set contained in these n samples to be tested, that is, the element set A with the content in the standard sample set;
[0007] Step 2: Read in element peak value information and content information: Take any sample to be tested as the sample to be identified, and use the ED-XRF fluorescence spectrometer to test the corresponding element peak value information and content information in the element set A to obtain the measured component value (or peak count) X and content value Y of each element.
[0008] Step 3: Determine the input and output of the ISOMAP-ELM model: Construct the ISOMAP-ELM model, and call the element that needs to be quantitatively analyzed the target element, and the element that interferes with the target element the interference element. The measured component value matrix X composed of all the target elements and their corresponding interference elements in the element set A is ac As the input of ISOMAP-ELM model, the measured content value matrix Y a1 As the output of the ISOMAP-ELM model, the measured component value matrix X ac Is a matrix containing a samples to be tested, each sample to be tested consists of c elements of component values, X ac The first column of the matrix is the measured component value of a single target element, and the remaining c-1 columns are the composition of other target elements and the interfering elements corresponding to all target elements; the measured content value matrix Y a1 It is a matrix containing a samples to be tested, each of which consists of a single target element concentration value.
[0009] Step 4: Divide the training set and test set: From the a samples to be tested in step 3, randomly divide 80% of the samples as the training set (the input matrix of the training set is represented by X nm , the output matrix of the training set is represented as Y n1 ), and the remaining 20% of the samples are used as the test set (the input matrix of the test set is represented as X pq , the output matrix of the test set is represented as Y p1 ); Matrix X nm 、Y n1 、X pq 、Y p1 The element values in the table represent the actual content of the elements;
[0010] Step 5: XRF spectrum data normalization: input matrix X for the training set respectively nm And the test set input matrix X pqPerform normalization to obtain the normalized matrix and Output matrix Y for the training set respectively n1 And the test set output matrix Y p1 Perform normalization to obtain the normalized matrix and (matrix and Both represent the normalized matrix of the true content matrix). The process of normalizing the matrix is as follows:
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019] Where i = 1, 2, ..., n, j = 1, 2, ..., m, e = 1, 2, ..., p, f = 1, 2, ..., q. min Input matrix X for the training set nm The minimum value in x max Input matrix X for the training set nm The maximum value in y min Output matrix Y for the training set n1 The minimum value in y max Output matrix Y for the training set n1 The maximum value in x′ min Input matrix X for the test set pq The minimum value in x′ max Input matrix X for the test set pq The maximum value in y′ min Output matrix Y for the test set p1 The minimum value in y′ max Output matrix Y for the test set p1 The maximum value in . Represents the training set input matrix X nm The component value of the jth element in the i-th sample, Represents the training set input matrix Xnm The normalized component value of the jth element in the i-th sample. Represents the training set output matrix Y n1 The target element content value of the i-th sample in Represents the training set output matrix Y n1 The normalized content value of the target element in the i-th sample. Represents the test set input matrix X pq The component value of the fth element in the eth sample, Represents the test set input matrix X pq The normalized component value of the fth element in the eth sample. Represents the test set output matrix Y p1 The target element content value of the e-th sample in Represents the test set output matrix Y p1 The normalized content value of the target element in the e-th sample in , and the superscript T represents the transpose of the matrix.
[0020] Step 6: Calculate the geodesic distance matrix D G :Set the low-dimensional dimension d of the principal component to be extracted and the nearest neighbor value h. Use Euclidean distance to measure the similarity of each sample point in the training set and construct a data neighborhood graph G of h nearest neighbors. In the data neighborhood graph G, calculate the geodesic distance matrix D between the sample points G . Use the sample points on graph G and sample points ( and The shortest path between the sample points in the training set represents the geodesic distance Get the geodesic distance matrix D G :
[0021]
[0022]
[0023] Where, u=1,2,...,n,v=1,2,...,m,r=1,2,...,n,s=1,2,...,m, All are sample points in the training set.
[0024] Step 7: Calculate the centralized inner product matrix B. The calculation formula of the centralized inner product matrix B is as follows:
[0025]
[0026] Where I is the n-order unit matrix and E is the n-dimensional column vector of element 1.
[0027] Step 8: Calculate the normalized matrix Component matrix after ISOMAP dimensionality reduction Let Λ be the diagonal matrix consisting of the largest d eigenvalues of the centralized inner product matrix B, a′=(a1,..,a d ) is the eigenvector corresponding to the d eigenvalues, and the matrix reduced to l dimensions can be obtained by calculation With l-dimensional matrix Reflects the original m-dimensional input matrix X nm The information expressed, the matrix after dimensionality reduction The calculation formula is as follows:
[0028]
[0029] a′=(a1,..,a d ) (13)
[0030]
[0031] Where a′ is the eigenvector of the diagonal matrix Λ, is the component value of the lth column in the nth sample after dimensionality reduction, is the component vector of the nth sample after dimensionality reduction.
[0032] Step 9: Construct ISOMAP-ELM content prediction model: transform the element component value matrix of the l-dimensional training set after dimensionality reduction into As input, the single target element content Y in the training set n1 As the output, the ELM input layer has t (t = l) neurons and the output layer has 1 neuron. Initially, four variables are randomly generated: input weight w, hidden layer neuron threshold b, number of hidden layer neurons k, and activation function g of hidden layer neurons. The output is weight β. The matrix sizes of input weight w, hidden layer neuron threshold b, and output weight β are:
[0033]
[0034] b=[b1 b2 ... b k ] 1×k (16)
[0035]
[0036] Where w kt is the connection weight between the kth neuron in the input layer and the tth neuron in the hidden layer, b k represents the kth hidden layer neuron threshold, w k represents the input weight vector of the kth neuron, β k1is the connection weight between the kth neuron in the hidden layer and the neuron in the output layer;
[0037] Step 10: Set the activation function to g(x) and calculate the output matrix H of the hidden layer of the training set. The calculation formula is:
[0038]
[0039] Step 11: Calculate the connection weight β between the hidden layer and the output layer to complete the training of the ISOMAP-ELM content prediction model and obtain the trained ISOMAP-ELM content prediction model. The calculation formula of the connection weight β is:
[0040]
[0041] Where, is the true content matrix after normalization of the target elements in the training set.
[0042] Step 12: Target element content prediction: Substitute the spectral data of the test set samples into the trained ISOMAP-ELM content prediction model to predict the normalized target element content prediction value matrix. ( Indicates the actual content of the element. Represents the predicted content. The superiority of the ISOMAP-ELM algorithm can only be demonstrated by making the predicted content closer to the actual content of the element). Target element content prediction value matrix The calculation formula is:
[0043]
[0044]
[0045] Where H′ is the output matrix of the hidden layer of the test set, Represents the predicted value of the content of the pth sample.
[0046] Step 13: Denormalize XRF spectrum data: Output the normalized test set target element content into a matrix Perform denormalization to obtain the denormalized matrix The process of denormalizing a matrix is as follows:
[0047]
[0048]
[0049] Where e is the number of rows in the test set output matrix and e = 1, 2, ..., p. Represents the output matrix of the test set after denormalization The predicted value of the target element content of the e-th sample, Represents the test set output matrix The predicted value of the target element content in the e-th sample.
[0050] Step 14: Subtract the target element content calculated in step 13 (i.e., the output matrix of the test set after denormalization) and the actual content of the target element (ie, the test set output matrix) Y p1 Compare and find the coefficient of determination (R 2 ). R 2 The calculation formula is:
[0051]
[0052]
[0053] Where e is the number of rows in the test set output matrix and e = 1, 2, ..., p. is the true value of the target element content in the e-th sample in the test set, is the predicted value of the target element content in the e-th sample after the test set is denormalized, is the average value of the true value of the target element content in the e-th sample in the test set.
[0054] The ISOMAP-ELM-based XRF trace element quantitative analysis method proposed in the present invention is scientific and reasonable, with a simple process, easy operation, high prediction accuracy, and intuitive and easy-to-understand results. The calculation method of the present invention has the characteristics of high detection precision and high prediction accuracy. By establishing the relationship between element component values and element contents, it solves the problems of X-ray fluorescence spectrum peak overlap interference and traditional instrument measurement methods inaccurate, reduces the impact of environmental background, reduces the error caused by statistical fluctuations, and realizes quantitative prediction of the element content contained in the object to be tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 Flow chart of the XRF trace element quantitative analysis method based on ISOMAP-ELM of the present invention;
[0056] Figure 2 This is the spectrum of the standard soil sample of the present invention;
[0057] Figure 3 This is a graph showing the prediction results of soil Pb content based on the ISOMAP-ELM model of the present invention. DETAILED DESCRIPTION
[0058] The specific implementation manner and working principle of the present invention will be further described in detail below with reference to the accompanying drawings.
[0059] This embodiment provides an XRF trace element quantitative analysis method based on ISOMAP-ELM. The workflow of the method is as follows: Figure 1 As shown in Figure 2, the specific steps for obtaining element information in standard soil samples are as follows:
[0060] Step 1: Determine a soil sample set. Suppose the soil sample set contains n soil samples, namely sample 1, sample 2, ..., and sample 57. Take all elements that can be identified by the spectrometer to form the element set A contained in the soil sample. Ultimately, a total of 57 element sets A1 to A57 are obtained. That is, the union of A1 to A57 is the element set A contained in the soil sample set. Element set A is the element library of elements 12 to 92 in the periodic table.
[0061] Step 2: Use 57 national standard samples as standard samples, including GSS series soil composition analysis standard materials, GBW series soil composition analysis standard materials and GSD stream sediment composition analysis standard materials, namely GSS-1 to GSS-27, GSS-32, GBW0070003 to GBW0070006, GSD-2a to GSD-33. The XRF fluorescence spectrometer can simultaneously obtain the XRF spectrum of the sample and the element component value X and content value Y contained in the sample. The XRF spectrum of the standard soil sample is as follows: Figure 2 shown.
[0062] Step 3: From element set A, the union of the target element and its corresponding interfering element is selected as the input variable for the ISOMAP-ELM model. In this example, the eight soil-damaging elements studied are: 23(V), 24(Cr), 25(Mn), 27(Co), 29(Cu), 30(Zn), 48(Cd), and 82(Pb). The composition information of some standard soil samples is shown in Table 1.
[0063] Table 1 Composition information of some standard soil samples
[0064]
[0065]
[0066] Taking 57 standard soil samples as an example, the component content of the target elements is recorded. At this time, the original data collection is completed. The detailed information is shown in Table 2.
[0067] Table 2 Contents of some trace elements in national standard soil samples (ppm)
[0068]
[0069]
[0070] The measured composition matrix of the target element and its interfering elements was used as the input to the ISOMAP-ELM model, and the Pb content matrix of the target element was used as the output. Details of the interfering elements are shown in Table 3.
[0071] Table 3 Main interfering elements of target elements
[0072]
[0073] For example, when predicting the content of lead (Pb) as a target element, the ISOMAP-ELM model input is a 57×19 component data matrix, i.e., a matrix containing 57 samples, each consisting of 19 component values (the union of all target elements and their corresponding interfering elements). Similarly, the ISOMAP-ELM model output is a 57×1 component data matrix, i.e., a matrix containing 57 samples, each consisting of the content value of a single target element (Pb).
[0074] Step 4: Divide the training set and test set: Randomly divide 45 samples from the 57 samples as the training set (the training set input matrix X nm The size is 45×19, and the training set output matrix Y n1 The size of the training set is 45×1), and the remaining 12 samples are used as the test set (the training set input matrix X pq The size is 12×19, and the training set output matrix Y p1 The size of the matrix X is 12×1); nm 、Y n1 、X pq 、Y p1 The element values in the table represent the actual content of the elements;
[0075] Step 5: XRF spectrum data normalization: input matrix X for the training set respectively nm And the test set input matrix X pq Perform normalization to obtain the normalized matrix and Output matrix Y for the training set respectively n1 And the test set output matrix Y p1 Perform normalization to obtain the normalized matrix and (matrix and Both represent the normalized matrix of the true content matrix). The process of normalizing the matrix is as follows:
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084] Where i = 1, 2, ..., n, j = 1, 2, ..., m, e = 1, 2, ..., p, f = 1, 2, ..., q. min Input matrix X for the training set nm The minimum value in x max Input matrix X for the training set nm The maximum value in y min Output matrix Y for the training set n1 The minimum value in y max Output matrix Y for the training set n1 The maximum value in x′ min Input matrix X for the test set pq The minimum value in x′ max Input matrix X for the test set pq The maximum value in y′ min Output matrix Y for the test set p1 The minimum value in y′ max Output matrix Y for the test set p1 The maximum value in . Represents the training set input matrix X nm The component value of the jth element in the i-th sample, Represents the training set input matrix X nm The normalized component value of the jth element in the i-th sample. Represents the training set output matrix Y n1 The target element content value of the i-th sample in Represents the training set output matrix Y n1 The normalized content value of the target element in the i-th sample. Represents the test set input matrix X pq The component value of the fth element in the eth sample, Represents the test set input matrix X pqThe normalized component value of the fth element in the eth sample. Represents the test set output matrix Y p1 The target element content value of the e-th sample in Represents the test set output matrix Y p1 The normalized content value of the target element in the e-th sample in , and the superscript T represents the transpose of the matrix.
[0085] Step 6: Calculate the geodesic distance matrix D G :Set the low-dimensional dimension d of the principal component to be extracted and the nearest neighbor value h. Use Euclidean distance to measure the similarity of each sample point in the training set and construct a data neighborhood graph G of h nearest neighbors. In the data neighborhood graph G, calculate the geodesic distance matrix D between the sample points G . Use the sample points on graph G and sample points ( and The shortest path between the sample points in the training set represents the geodesic distance Get the geodesic distance matrix D G :
[0086]
[0087]
[0088] Where, u=1,2,...,n,v=1,2,...,m,r=1,2,...,n,s=1,2,...,m, All are sample points in the training set.
[0089] Step 7: Calculate the centralized inner product matrix B. The calculation formula of the centralized inner product matrix B is as follows:
[0090]
[0091] Where I is the n-order unit matrix and E is the n-dimensional column vector of element 1.
[0092] Step 8: Calculate the normalized matrix Component matrix after ISOMAP dimensionality reduction Let Λ be the diagonal matrix consisting of the largest d eigenvalues of the centralized inner product matrix B, a′=(a1,..,a d ) is the eigenvector corresponding to the d eigenvalues, and the matrix reduced to l dimensions can be obtained by calculation With l-dimensional matrix Reflects the original m-dimensional input matrix X nm The information expressed, the matrix after dimensionality reduction The calculation formula is as follows:
[0093]
[0094] a′=(a1,..,a d ) (13)
[0095]
[0096] Where a′ is the eigenvector of the diagonal matrix Λ, is the component value of the lth column in the nth sample after dimensionality reduction, is the component vector of the nth sample after dimensionality reduction.
[0097] Step 9: Construct ISOMAP-ELM content prediction model: transform the element component value matrix of the l-dimensional training set after dimensionality reduction into As input, the single target element content Y in the training set n1 As the output, the ELM input layer has t (t = l) neurons and the output layer has 1 neuron. Initially, four variables are randomly generated: input weight w, hidden layer neuron threshold b, number of hidden layer neurons k, and activation function g of hidden layer neurons. The output is weight β. The matrix sizes of input weight w, hidden layer neuron threshold b, and output weight β are:
[0098]
[0099] b=[b1 b2 ... b k ] 1×k (16)
[0100]
[0101] Where w kt is the connection weight between the kth neuron in the input layer and the tth neuron in the hidden layer, b k represents the kth hidden layer neuron threshold, w k represents the input weight vector of the kth neuron, β k1 is the connection weight between the kth neuron in the hidden layer and the neuron in the output layer;
[0102] Step 10: Set the activation function to g(x) and calculate the output matrix H of the hidden layer of the training set. The calculation formula is:
[0103]
[0104] Step 11: Calculate the connection weight β between the hidden layer and the output layer to complete the training of the ISOMAP-ELM content prediction model and obtain the trained ISOMAP-ELM content prediction model. The calculation formula of the connection weight β is:
[0105]
[0106] Where, is the true content matrix after normalization of the target elements in the training set.
[0107] Step 12: Target element content prediction: Substitute the spectral data of the test set samples into the trained ISOMAP-ELM content prediction model to predict the normalized target element content prediction value matrix. ( Indicates the actual content of the element. Represents the predicted content. The superiority of the ISOMAP-ELM algorithm can only be demonstrated by making the predicted content closer to the actual content of the element). Target element content prediction value matrix The calculation formula is:
[0108]
[0109]
[0110] Where H′ is the output matrix of the hidden layer of the test set, Represents the predicted value of the content of the pth sample.
[0111] Step 13: Denormalize XRF spectrum data: Output the normalized test set target element content into a matrix Perform denormalization to obtain the denormalized matrix The process of denormalizing a matrix is as follows:
[0112]
[0113]
[0114] Where e is the number of rows in the test set output matrix and e = 1, 2, ..., p. Represents the output matrix of the test set after denormalization The predicted value of the target element content of the e-th sample, Represents the test set output matrix The normalized predicted value of the target element content in the e-th sample.
[0115] Step 14: Subtract the target element content calculated in step 13 (i.e., the output matrix of the test set after denormalization) and the actual content of the target element (ie, the test set output matrix) Y p1 Compare and find the coefficient of determination (R 2 ). R 2 The calculation formula is:
[0116]
[0117]
[0118] Where e is the number of rows in the test set output matrix and e = 1, 2, ..., p. is the true value of the target element content in the e-th sample in the test set, is the predicted value of the target element content in the e-th sample after the test set is denormalized, is the average value of the true value of the target element content in the e-th sample in the test set.
[0119] Taking the trace element Pb as an example, its content prediction results are as follows: Figure 3 As shown in the figure, the traditional partial least squares regression (PLSR) method and the standard soil sample element determination coefficient R based on the ISOMAP-ELM method will be used. 2 Results comparison, detailed information is shown in Table 4:
[0120] Table 4 Determination coefficient R for the prediction of element content in the standard soil sample test set 2 Comparison of results
[0121]
[0122]
[0123] Compared to the partial least squares regression (PLSR) method, the ISOMAP-ELM-based XRF trace element quantitative prediction results are more consistent with the actual element content results. This shows that the ISOMAP-ELM method effectively solves the problem of spectral line overlap and improves the accuracy of element quantitative analysis results, demonstrating the superiority of the method of the present invention.
[0124] The above description is only a specific embodiment of the present invention. Any feature disclosed in this specification, unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes; all disclosed features, or all steps in the methods or processes, except for mutually exclusive features and / or steps, can be combined in any way; any non-essential additions or replacements made by those skilled in the art based on the technical features of the technical solution of the present invention fall within the scope of protection of the present invention.
Claims
1. An XRF trace element quantitative analysis method based on ISOMAP-ELM, characterized in that: The method comprises the following steps: Step 1: Determine the standard sample set: Assuming that there are n samples to be tested in the standard sample set, take the union of all elements that can be identified by the ED-XRF fluorescence spectrometer to form the element set contained in these n samples to be tested, that is, the element set A with the content in the standard sample set is obtained; Step 2: Read in the element peak information and content information: Take any sample to be tested as the sample to be identified, test the corresponding element peak information and content information in the element set A through the ED-XRF fluorescence spectrometer, and obtain the peak count X and content value Y of each element; Step 3: Determine the input and output of the ISOMAP-ELM model: Construct the ISOMAP-ELM model, call the element that needs to be quantitatively analyzed the target element, call the element that interferes with the target element the interference element, and calculate the peak count matrix X composed of all the target elements and their corresponding interference elements in the element set A. ac As the input of ISOMAP-ELM model, the measured content value matrix Y a1 As the output of the ISOMAP-ELM model, the peak count matrix X ac is a matrix containing a samples to be tested, each of which consists of c elements of component values. ac The first column of the matrix is the peak count X of a single target element, and the remaining c-1 columns are the composition of other target elements and the interfering elements corresponding to all target elements; the measured content value matrix Y a1 is a matrix containing a samples to be tested, each of which consists of a single target element concentration value; Step 4: Divide the training set and the test set: From the a samples to be tested in step 3, randomly divide 80% of the samples as the training set and the remaining 20% of the samples as the test set. The input matrix of the training set is represented by X nm The output matrix of the training set is represented as Y n1 , the input matrix of the test set is represented as X pq , the output matrix of the test set is represented as Y p1 ; Matrix X nm , Y n1 , X pq , Y p1 The element values in the table all represent the measured content of the elements; Step 5: XRF spectrum data normalization: Input matrix X for the training set nm And the test set input matrix X pq Perform normalization to obtain the normalized matrix and Output matrix Y for the training set respectively n1 And the test set output matrix Y p1 Perform normalization to obtain the normalized matrix and The process of normalizing the matrix is as follows: Where, i = 1, 2, ..., n, j = 1, 2, ..., m, e = 1, 2, ..., p, f = 1, 2, ..., q; x min Input matrix X for the training set nm The minimum value in x max Input matrix X for the training set nm The maximum value in y min Output matrix Y for the training set n1 The minimum value in y max Output matrix Y for the training set n1 The maximum value among min Input matrix X for the test set pq The minimum value in max Input matrix X for the test set pq The maximum value in y′ min Output matrix Y for the test set p1 The minimum value in y′ max Output matrix Y for the test set p1 The maximum value in ; Represents the training set input matrix X nm The component value of the jth element in the i-th sample, Represents the training set input matrix X nm The normalized component value of the jth element in the i-th sample; Represents the training set output matrix Y n1 The target element content value of the i-th sample in Represents the training set output matrix Y n1 The normalized content value of the target element in the i-th sample; Represents the test set input matrix X pq The component value of the fth element in the eth sample, Represents the test set input matrix X pq The normalized component value of the fth element in the eth sample; Represents the test set output matrix Y p1 The target element content value of the e-th sample in Represents the test set output matrix Y p1 The normalized content value of the target element of the e-th sample in ; the superscript T indicates the transpose of the matrix; Step 6: Obtain the geodesic distance matrix D G :Set the low-dimensional dimension d of the principal component to be extracted, the nearest neighbor value h, use the Euclidean distance to measure the similarity of each sample point in the training set, build the data neighborhood graph G of h nearest neighbors, and calculate the geodesic distance matrix D between the sample points in the data neighborhood graph G G , using the sample points on graph G and sample points The shortest path between represents the geodesic distance Get the geodesic distance matrix D G : Where, u=1,2,...,n,v=1,2,...,m,r=1,2,...,n,s=1,2,...,m, All are sample points in the training set; Step 7: Calculate the centralized inner product matrix B. The calculation formula of the centralized inner product matrix B is as follows: Where I is the n-order unit matrix, E is an n-dimensional column vector with all elements being 1; Step 8: Calculate the normalized matrix Component matrix after ISOMAP dimensionality reduction Let Λ be the diagonal matrix consisting of the largest d eigenvalues of the centralized inner product matrix B, a′=(a1,..,a d ) is the eigenvector corresponding to the d eigenvalues, and the matrix reduced to l dimensions is obtained by calculation With l-dimensional matrix Reflects the original m-dimensional input matrix X nm The information expressed, the component matrix after dimensionality reduction The calculation formula is as follows: a′=(a1,..,a d ) (13) Where a′ is the eigenvector of the diagonal matrix Λ, is the component value of the lth column in the nth sample after dimensionality reduction, is the component vector of the nth sample after dimensionality reduction; Step 9: Construct ISOMAP-ELM content prediction model: transform the element component value matrix of the l-dimensional training set after dimension reduction As input, the single target element content Y of the training set n1 As the output, the ELM input layer in the ISOMAP-ELM content prediction model has t neurons and 1 neuron in the output layer, where t = l; the four variables of input weight w, hidden layer neuron threshold b, hidden layer neuron number k and hidden layer neuron activation function g are initially randomly generated, and the output is weight β; the matrices of input weight w, hidden layer neuron threshold b and output weight β are expressed as: b=[b1 b2...b k ] 1×k (16) In the formula, w kt is the connection weight between the kth neuron in the input layer and the tth neuron in the hidden layer, b k represents the threshold value of the kth hidden layer neuron, w k represents the input weight vector of the kth neuron, β k1 is the connection weight between the kth neuron in the hidden layer and the neuron in the output layer; Step 10: Set the activation function to g(x) and calculate the output matrix H of the hidden layer of the training set. The calculation formula is: Step 11: Solve the weight β, complete the training of the ISOMAP-ELM content prediction model, and obtain the trained ISOMAP-ELM content prediction model. The calculation formula of the weight β is: Step 12: Target element content prediction: Substitute the spectral data of the test set samples into the trained ISOMAP-ELM content prediction model to predict the normalized target element content prediction value matrix matrix The calculation formula is: Where H′ is the output matrix of the hidden layer of the test set, Represents the predicted value of the content of the pth sample in the test set; Step 13: Denormalize XRF spectrum data: Denormalize the target element content prediction value matrix of the test set Perform denormalization to obtain the denormalized matrix Pair Matrix The process of denormalization is as follows: Where e is the number of rows in the test set output matrix and e = 1, 2, ..., p, Represents the denormalized matrix The predicted value of the target element content of the e-th sample in Representation Matrix The predicted value of the target element content in the e-th sample; Step 14: Denormalize the matrix calculated in step 13 The predicted value of the target element content in the test set output matrix Y p1 Compare the measured content of the target element in the 2 , R 2 The calculation formula is: Where e is the matrix Y p1 The number of rows and e=1,2,...,p, is the measured content value of the target element in the e-th sample in the test set, For the matrix The predicted value of the target element content of the e-th sample in is the average value of the measured content of the target element in the e-th sample in the test set.
2. The XRF trace element quantitative analysis method based on ISOMAP-ELM according to claim 1, characterized in that: Said n=57, m=19.
3. The XRF trace element quantitative analysis method based on ISOMAP-ELM according to claim 2, characterized in that: The samples to be tested in the standard sample set include GSS series soil component analysis standard materials, GBW series soil component analysis standard materials and GSD stream sediment component analysis standard materials.
4. The XRF trace element quantitative analysis method based on ISOMAP-ELM according to claim 3, characterized in that: All target elements studied in the element set A include vanadium (V), chromium (Cr), manganese (Mn), cobalt (Co), copper (Cu), zinc (Zn), cadmium (Cd), and lead (Pb).
5. The XRF trace element quantitative analysis method based on ISOMAP-ELM according to claim 4, characterized in that: The single target element is lead (Pb).
Citation Information
Patent Citations
Failure prediction method of roller bearing based on partial least squares extreme learning machine
CN109827777A
XRF element quantitative analysis method based on PCA-SVR
CN113848225A
Evaluation of optical coherence tomographic data prior to segmentation
WO2015028559A1
