Random weight neural network soft measurement method for ore element grade based on XRF

Through the random weight neural network soft measurement method of ore element grade based on XRF, RVFL neural network is used to predict ilmenite element grade, which solves the problem of low accuracy of gradient descent neural network in predicting ilmenite element grade data and achieves More efficient and accurate iron grade detection.

CN118332393BActive Publication Date: 2024-10-15SHENYANG LONGJI INTELLIGENT TECH RES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410297770.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2024-10-15
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

The neural network based on gradient descent in the existing technology has low accuracy and low efficiency in predicting ilmenite element grade data, and the existing matrix effect correction method has limitations, making it difficult to achieve rapid and accurate detection at the mineral processing site.

Method used

The ore element grade random weight neural network soft measurement method based on XRF is used, which is constructed through the RVFL neural network. The XRF method is used to obtain the characteristic peak area data of the elements to be measured and the interference elements, and the input weight matrix and bias matrix are randomly assigned to calculate the optimal Solve the weights, conduct training and testing, and achieve efficient prediction of iron element grade.

Benefits of technology

It improves the accuracy and efficiency of iron element grade prediction, reduces errors, is suitable for real-time detection at mineral processing sites, and achieves higher accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332393B_ABST
    Figure CN118332393B_ABST
Patent Text Reader

Abstract

The present invention provides a random weight neural network soft measurement method for ore element grade based on XRF, comprising: inputting the characteristic peak area data of the element to be measured obtained in real time by the XRF method and the characteristic peak area data of m interfering elements corresponding to the element to be measured into the constructed RVFL neural network, and outputting the corresponding grade prediction value of the element to be measured. The random weight neural network soft measurement method for ore element content based on XRF provided by the present invention, wherein the construction of the RVFL neural network includes: calculating the optimal solution of the weight β from the input layer and the hidden layer to the output layer, the random weight neural network of the present invention only needs to train the output weight of the network, and other weights are randomly set, and the entire training process does not require the gradient information of the network, which overcomes the slow convergence speed and local minimum problems of the neural network based on gradient descent, and has high measurement accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of X-ray fluorescence spectrum element detection, and in particular to a random weight neural network soft measurement method for ore element grade based on XRF. Background Art

[0002] my country has rich ilmenite resources, which are distributed in 20 provinces and regions. There are both rock mines and placer mines, of which rock mines account for the majority. Ilmenite concentrate can be directly used as the raw material for the production of titanium dioxide by the sulfuric acid method, but it will produce a large amount of ferrous sulfate and dilute sulfuric acid. These two byproducts have low utilization value, and direct discharge will cause environmental pollution. Therefore, efficiently analyzing the grade of required elements in ilmenite ore is the top priority for improving mineral processing efficiency and reducing environmental pollution. Compared with the chemical titration method with a long preparation sampling time, EDXRF analysis has the advantages of being faster, more convenient, and pollution-free, which is more in line with the current concept of smart mines. How to improve the accuracy of detection based on these advantages has been the focus of research by practitioners for decades. When analyzing the relationship between the elements to be measured and the grade, the influence of the matrix effect is the main source of analytical error. At present, the methods for eliminating the matrix effect are mainly divided into two categories, experimental correction method and mathematical correction method. In order to meet the purpose of real-time detection on site, it can only be started from a mathematical perspective. With the rapid development of computer technology, many scholars have applied neural network technology to the matrix effect correction process of X-ray fluorescence analysis. In the existing technology, most EDXRF element analysis instruments come with a variety of correction software packages. Using the empirical influence coefficient method to make the base correction curve requires a large number of standard samples, which not only requires a wide range of element types, but also covers the concentration gradients of the elements. Therefore, in the absence of standard samples, the error will be large; the basic parameter method does not need to rely on a large number of standard samples, but it is very challenging to the accuracy of the field model configuration parameters. For example, the mass itself has a relative error of 5% to 10%, and the difference between different algorithms in certain intervals can reach 30% to 40%; in the past ten years, the scientific community has found that the values ​​of fluorescence yield and spectral line scores of elements in different compounds are quite different, and these parameters in the existing basic parameter method software are all fixed values, which will also cause errors. When applied in actual ore dressing plants, in order to achieve rapid detection, the surface effect, particle size and structural effect of the ore sample must be taken into account. Both mathematical correction methods have certain limitations.

[0003] With the development and popularization of intelligent technology, the research on matrix effect correction has been further developed, and many researchers have conducted research in different algorithms and neural networks. The gradient descent-based neural network has a strong enough nonlinear function approximation ability to meet the correction conditions of the matrix effect when using EDXRF technology. The mathematical model established can be used to describe this nonlinear correlation to achieve the correction research of the matrix effect between the elements and complete the element grade estimation of the sample to be tested. However, it has problems such as being unable to jump out of the local optimum, slow convergence speed, and dependence on the initial weight threshold. Summary of the invention

[0004] In view of this, the present invention proposes an XRF-based random weight neural network soft measurement method for ore element grade, aiming to solve the problem of low accuracy and low efficiency in predicting iron grade data using gradient descent-based neural network training in the prior art.

[0005] The present invention proposes a random weight neural network soft measurement method for ore element grade based on XRF, comprising: inputting characteristic peak area data of the element to be measured obtained in real time by the XRF method and characteristic peak area data of m types of interfering elements corresponding to the element to be measured into a constructed RVFL neural network, and outputting the corresponding grade prediction value of the element to be measured; wherein the construction of the RVFL neural network includes:

[0006] The characteristic peak area data of the element to be measured and m interfering elements corresponding to the element to be measured in n target samples are measured by XRF method, and the grade data of the element to be measured in the aforementioned target samples are obtained by manual analysis, and the characteristic peak area data of the element to be measured and the m interfering elements corresponding to the element to be measured and the grade data of the element to be measured constitute the sample data for training the RVFL neural network, wherein n and m are both positive integers, and n>m; and the randomly assigned input weight matrix W and bias matrix B are determined, the optimal solution of the weight β from the input layer and the hidden layer to the output layer is calculated, and the input layer with the number of nodes A, the hidden layer with the number of enhanced nodes L and the output layer with the number of nodes D are set, wherein A=m+1, and the number of enhanced nodes L is given by the empirical formula Determine, where c is a positive integer ranging from 1 to 10, A is a positive integer greater than or equal to 2, and D is a positive integer greater than or equal to 1.

[0007] Furthermore, in the above-mentioned XRF-based ore element grade random weight neural network soft measurement method, the training process of the RVFL neural network includes:

[0008] Step 1: Divide the above sample data into training set data and test set data, and after normalization, construct the randomly assigned input weight matrix W and bias matrix B:

[0009]

[0010] B=(b1 … b i … b L ) 1*L , where: A represents the number of input layer nodes, L represents the number of hidden layer enhancement nodes;

[0011] Step 2: Calculate the superposition H of the hidden layer output matrix and the single sample input matrix in the training set based on the input weight matrix W and the bias matrix B. A+L (x) = H(x) + x, and the output H of the RVFL neural network is obtained based on this A+L (x)β;

[0012] Step 3: According to the output H of the RVFL neural network A+L (x)β calculates the optimal solution of the weight β from the input layer and the hidden layer to the output layer, and the parameter-optimized RVFL neural network is obtained, where the objective function β for calculating the optimal solution of β is * for:

[0013] Where T is the output of the training set samples; ||·|| is the Euclidean norm;

[0014] Step 4: Use the normalized training set data to train the RVFL neural network after parameter optimization obtained in step 3 to obtain a trained RVFL neural network, input the normalized test set data into the trained RVFL neural network for testing, obtain the grade prediction value of the element to be tested in the test set sample, and compare the grade prediction value of the element to be tested output by the RVFL neural network model with the grade data of the element to be tested output by the test set sample to obtain the determination coefficient R 2 and root mean square error RMSE.

[0015] Furthermore, in the above-mentioned XRF-based random weight neural network soft measurement method for ore element grade, in the step 1, the sample data corresponding to the first k target samples in the target sample data are used as a training set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of m interfering elements corresponding to the element to be measured are used as the training set input, and the grade data of the element to be measured manually tested is used as the training set output, and the sample data corresponding to the last nk target samples are used as a test set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of m interfering elements that have the greatest impact on the element to be measured are used as the test set input, and the grade data of the element to be measured manually tested is used as the test set output; wherein, k>nk.

[0016] Further, in the above soft sensor method for ore element grade based on XRF using a random weight neural network, the calculation formula for normalizing the training set and test set data is as follows:

[0017] X norm =(X - min(X)) / (max(X) - min(X)), where

[0018] X represents the original input value of each column element in N samples, min(X) represents the minimum value of each column element's data, max(X) represents the maximum value of each column element's data, and X norm is the normalized value.

[0019] Further, in the above soft sensor method for ore element grade based on XRF using a random weight neural network, in step 2, before calculating the superposition of the hidden layer output matrix and the input matrix of a single sample in the training set, an operation of deleting redundant nodes in the hidden layer is determined according to the linear correlation of the existing hidden layer nodes.

[0020] Further, in the above soft sensor method for ore element grade based on XRF using a random weight neural network, the operation of deleting redundant nodes in the hidden layer includes:

[0021] Calculate the rank rank(H(x)) of the hidden layer output matrix H(x) containing L enhanced nodes; if rank(H(x)) < L, then calculate the norm of each column vector of the matrix H(x), and then delete the columns corresponding to the L - rank(H(x)) elements with the largest norms in H(x) to obtain a new hidden layer output matrix H * (x), and the corresponding number of hidden layer nodes becomes L * = rank(H(x)).

[0022] Further, in the above soft sensor method for ore element grade based on XRF using a random weight neural network, in step (2), the calculation formula for the hidden layer output matrix is as follows:

[0023] H(x) = [h1(x), …, h i (x), … h L (x)], where h i (x) is the output of the i-th hidden layer node, which is expressed as:

[0024] h i (x) = g(w i , b i , x) = g(x * w i + b i ), w i ∈W, b i ∈B;

[0025] in,

[0026]

[0027] Furthermore, in the above-mentioned XRF-based ore element grade random weight neural network soft measurement method, in the step (2), the output of the RVFL neural network includes two parts:

[0028] One part is the direct link between the input layer and the output layer, expressed as x j represents the j-th dimension input data, β j represents the weight between the jth input layer and the output layer; the other part is the nonlinear mapping from the hidden layer to the output layer, which can be expressed as: w i and b i Represent the weight and bias between the i-th hidden layer node and the input layer, g i represents the activation function of the i-th hidden layer node, β i represents the weight between the i-th hidden layer node and the output layer; β is the weight between the input layer and the output layer j and the weight β between the hidden layer and the output layer i Therefore, the output of the RVFL neural network is:

[0029] Furthermore, in the above-mentioned XRF-based ore element grade random weight neural network soft measurement method, in the step (3), the least squares method is used to solve the optimal solution of the objective function to obtain:

[0030] Among them, T is the output matrix of the training set sample data, When there are N training samples, H A+L (X) is represented as follows:

[0031]

[0032] Among them, X is the input data matrix of N training samples, x NA is the input data of the A-th dimension element of the N-th training sample, h L (·) is the output of the Lth node in the hidden layer.

[0033] Furthermore, in the above-mentioned XRF-based ore element grade random weight neural network soft measurement method, the determination coefficient R 2 and root mean square error RMSE are determined according to the following formulas:

[0034]

[0035] in,

[0036] y i is the grade data of the elements to be tested in the test set samples, is the predicted value of the element grade to be tested output by the RVFL neural network model, y m is the average value of the grade data of the element to be tested in all test set samples, and N is the number of test set samples.

[0037] The present invention extracts the main elements in the ore from the X-ray fluorescence spectrum to perform qualitative identification of the components, and introduces a random weight RVFL neural network analysis algorithm to perform matrix correction and quantitative calculation on the grade of the elements to be measured in the ore; the grade of the elements to be measured can be analyzed in a more real-time, efficient and green manner, with high stability and efficiency; the random weight neural network is introduced to analyze the errors caused by the mutual influence of matrix elements, and the fitting result is more accurate than that of traditional empirical analysis, and the instrument is more applicable to the mineral processing site environment than the basic parameter method. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0039] Figure 1 A flow chart of a random weight neural network soft measurement method for ore element grade based on XRF provided in an embodiment of the present invention;

[0040] Figure 2 A flow chart of a random weight neural network RVFL algorithm provided in an embodiment of the present invention;

[0041] Figure 3 This is a diagram showing the prediction results of the iron grade training set in an embodiment of the present invention;

[0042] Figure 4 This is a diagram showing the prediction results of the iron grade test set in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0044] See also Figure 1 The XRF-based random weight neural network soft measurement method for ore element grade in an embodiment of the present invention includes:

[0045] The characteristic peak area data of the element to be measured obtained in real time by the XRF method and the characteristic peak area data of m interfering elements corresponding to the element to be measured are input into the constructed RVFL neural network, and the corresponding grade prediction value of the element to be measured can be output; wherein, the construction of the RVFL neural network includes:

[0046] The characteristic peak area data of the element to be measured and m interfering elements corresponding to the element to be measured in n target samples are measured by XRF method, and the grade data of the element to be measured in the aforementioned target samples are obtained by manual analysis. The characteristic peak area data of the element to be measured and the m interfering elements corresponding to the element to be measured and the grade data of the element to be measured constitute the sample data for training the RVFL neural network; wherein n and m are both positive integers, and n>m; and the randomly assigned input weight matrix W and bias matrix B are determined, the optimal solution of the weight β from the input layer and the hidden layer to the output layer is calculated, and the input layer with the number of nodes A, the hidden layer with the number of enhanced nodes L and the output layer with the number of nodes D are set; wherein A=m+1, and the number of enhanced nodes L is given by the empirical formula Determine, where c is a positive integer and its value is 1-10, A is a positive integer greater than or equal to 2, D is a positive integer greater than or equal to 1, and L is preferably 10.

[0047] Specifically, the element to be measured can be any element that can obtain a characteristic peak through XRF measurement. In this embodiment, the element to be measured is preferably iron. n is the number of samples of the element to be measured, and m is the number of interfering elements in ilmenite that have the greatest impact on the grade (content) of iron. Both n and m are positive integers, and n is greater than m. XRF (X-ray fluorescence spectrometry) is a technology widely used in material component analysis. Its fast speed, high accuracy and easy operation make it irreplaceable in the field of mineral processing. The embodiment of the present invention can extract the main elements in the ore from the X-ray fluorescence spectrum for qualitative identification of the components, and introduce a neural network analysis algorithm to perform matrix correction and quantitative calculation of the iron grade.

[0048] Figure 1 In the above formula, d represents the number of input layer nodes, that is, the number of characteristic variables of input data (4 in the embodiment of the present invention), j represents the number of hidden layer enhancement nodes, and m represents the number of output layer nodes, that is, the output data has only one characteristic, that is, the iron grade (1 in the embodiment of the present invention). X represents the input data of the model, and f represents the output of the RVFL neural network model.

[0049] In specific implementation, the characteristic X-ray intensity data of the element to be measured and the interfering elements are measured by XRF fluorescence spectrometer, and the laboratory obtains the true grade value of the element to be measured through manual analysis method.

[0050] The feature selection method with the maximum information correlation coefficient was used to screen out the interfering elements that have the greatest impact on the elements to be measured. More specifically, in order to improve the accuracy of the iron grade estimation in ilmenite, 41 ilmenite samples were collected on site, and the characteristic peak area data of the element Fe to be measured in each target sample, as well as the characteristic peak area data of four interfering elements such as Ca, Ti, Mn and Cr corresponding to the element Fe to be measured, were measured by XRF fluorescence spectrometer. The grade of the Fe element was determined by manual laboratory testing, and the average value of three tests was taken as the true grade value of the iron element.

[0051] The feature selection method based on the maximum mutual information coefficient is used to screen out the best features. The maximum mutual information value of the Ca element is calculated to be the smallest. It can be considered that the correlation between the characteristic variable data of the Ca element and the Fe element grade is not very large, so the characteristic variables of the Ca element with low correlation are deleted, so that the interfering elements become Ti, Mn and Cr, achieving the effect of dimensionality reduction and eliminating redundant features. In this embodiment, mutual information is used to measure the correlation index between two random variables. The correlation between each characteristic variable in the input data (4 elements in the sample in this embodiment) and the output data is judged. The larger the maximum mutual information value, the greater the correlation between the two variables, and the input variable with low correlation is removed.

[0052] The sample data consisting of the characteristic peak area data of the element to be measured and the m interfering elements corresponding to the element to be measured and the grade data of the element to be measured in the aforementioned target sample obtained by manual assay are randomly divided into a training set and a test set, the sample data corresponding to the first k target samples are the training set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of the m interfering elements corresponding to the element to be measured are used as the training set input, and the grade data of the element to be measured obtained by manual assay are used as the training set output, the sample data corresponding to the last nk target samples are the test set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of the m interfering elements having the greatest impact on the element to be measured are used as the test set input, and the grade data of the element to be measured obtained by manual assay are used as the test set output; wherein, k>nk.

[0053] For example, for 41 ilmenite samples collected on-site, the data corresponding to the first 33 target samples can be used as a training set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of the three interfering elements corresponding to the element to be measured are the training set input, and the content data of the element to be measured are the training set output; the data corresponding to the last 8 target samples are a test set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of the three interfering elements corresponding to the element to be measured are the test set input, and the content data of the element to be measured are the test set output.

[0054] The random weight neural network algorithm adopts RVFLNN (neural vector function chain neural network), in which there is a straight link between the input layer and the output layer, the weight and bias parameters of the connection between the input layer and the hidden layer are randomly selected from a certain range, and the weight of the connection between the hidden layer and the output layer is calculated by the least square method. The RVFL neural network is constructed in MATLAB software. Since there is 1 element to be measured and 3 interference elements, the input layer is generated as one layer, so the number of nodes in the input layer is A=4; the hidden layer is one layer, L is preferably 10, and since there is only iron grade data, the output layer is generated as one layer, so the number of nodes in the output layer is D=1.

[0055] See also Figure 2 , the training process of the RVFL neural network includes:

[0056] Step 1: Divide the above sample data into training set data and test set data, and after normalization, construct the randomly assigned input weight matrix W and bias matrix B:

[0057]

[0058] B=(b1 … b i … b L ) 1*L , where: A represents the number of input layer nodes, L represents the number of hidden layer enhancement nodes.

[0059] Specifically, the four feature variable data of the test set and the training set are normalized to the interval [0,1]. The calculation formula for normalization is: Xnorm = (X-min(X)) / (max(X)-min(X)) where X represents the original input value of each column element in the N samples, min(X) represents the minimum value of each column element, max(X) represents the maximum value of each column element, and Xnorm is the normalized value. The weights w and bias b connecting the input layer and the hidden layer are randomly assigned in the interval [-1,1] to generate the input weight matrix W and bias matrix B.

[0060] Step 2: Calculate the superposition H of the hidden layer output matrix and the single sample input matrix in the training set based on the input weight matrix W and the bias matrix B. A+L (x) = H(x) + x, and the output H of the RVFL neural network is obtained based on this A+L (x)β.

[0061] In specific implementation, the calculation formula of the hidden layer output matrix is ​​as follows:

[0062] H(x)=[h1(x),…,h i (x), …h L (x)], where h i (x) is the output of the i-th hidden layer node, which is expressed as:

[0063] h i (x) = g(w i ,b i ,x)=g(x*w i +b i ),w i ∈W,b i ∈B; In this embodiment, the Sigmoid function is used, that is:

[0064] x*w i +b i Bring-in The x in the equation can be used to obtain g(x), and then h i (x), and finally obtain H(x), where x is the input data of a single sample in the training set, so that H A+L (x).

[0065] Furthermore, the output of the RVFL neural network consists of two parts: one part is the direct link between the input layer and the output layer, expressed as The other part is that the hidden layer is nonlinearly mapped to the output layer, which can be expressed as x j represents the j-th dimension input data, βj represents the weight between the jth input layer and the output layer, w i and b i Represent the weight and bias between the i-th hidden layer node and the input layer, g i represents the activation function of the i-th hidden layer node, β i represents the weight between the i-th hidden layer node and the output layer; therefore, the output of the RVFL neural network is:

[0066] Step 3: According to the output H of the RVFL neural network A+L (x)β calculates the optimal solution β of the weight β of the input layer and the hidden layer to the output layer * The parameter-optimized RVFL neural network can be obtained, and the objective function β of the optimal solution of β can be calculated. * Determined by the following formula:

[0067] Where T is the output of the training set samples; ||·|| is the Euclidean norm.

[0068] Specifically, the output matrix T of the neural network model and the training set sample data is used to minimize the square difference as the evaluation training error (objective function), and the solution that minimizes the objective function is the optimal solution. That is, the weight β is solved by minimizing the approximate square difference.

[0069] In the specific implementation, the least squares method is used to solve the optimal solution of the objective function and obtain:

[0070] is the matrix H A+L The Moore-Penrose generalized inverse matrix of , the superscript T is the transpose of the matrix, and T is the output of the training set sample data.

[0071] , where T is the output matrix of the training set sample data, When there are N training samples, H A+L As shown below:

[0072]

[0073] Among them, A is the type of input element, which is 4; t i The true grade value of the iron element, i.e., the content, output for each training set sample; X is the input data matrix of N training samples, x is a row vector of X, and x NA is the input data of the A-th dimension element of the N-th training sample, h L (·) is the output of the Lth enhancement node in the hidden layer.

[0074] It can be seen that: in this embodiment, only the output weights of the neural network need to be trained, and other weights are randomly set. The entire training process does not require the gradient information of the network, which overcomes the slow convergence speed and local minimum problems of the neural network based on gradient descent. Compared with the neural network structure determined by experience in the past, the embodiment of the present invention uses a feature selection method to screen out several interfering elements that have the greatest impact on the iron element, and uses them together with the iron element as the input variable of the random weight neural network, and the real iron grade value is used as the output variable. The random weight neural network is used to perform regression prediction analysis of the iron grade, which greatly improves the prediction accuracy of the iron grade and can meet the requirements of on-site production.

[0075] Step 4: Use the normalized training set data to train the RVFL neural network after parameter optimization obtained in step 3 to obtain a trained RVFL neural network, input the normalized test set data into the trained RVFL neural network for testing, obtain the grade prediction value of the element to be tested in the test set sample, and compare the grade prediction value of the element to be tested output by the RVFL neural network model with the grade data of the element to be tested output by the test set sample to obtain the determination coefficient R 2 and root mean square error RMSE.

[0076] Specifically, the determination coefficient R 2 and root mean square error RMSE are determined according to the following formulas:

[0077]

[0078] in,

[0079] y i is the grade data of the elements to be tested in the test set samples, is the predicted value of the element grade to be tested output by the RVFL neural network model, y m is the average value of the grade data of the element to be tested in all test set samples, and N is the number of test set samples.

[0080] The embodiments of the present invention are mainly used in various ore dressing plants to meet the needs of iron grade detection in ilmenite. On the one hand, it can use the X-ray fluorescence spectrum detection principle to quickly detect and identify elements, and on the other hand, it can estimate the grade of iron elements in real time and accurately to meet the requirements of ore dressing and production links. This is particularly important for realizing the concept of smart mines and guiding efficient and green production.

[0081] See also Figure 3 and Figure 4, in the embodiment of the present invention, the predicted iron grade value of the test set is very close to the true iron grade data measured manually, indicating that the accuracy of the grade value of the iron element predicted by the RVFL neural network model in the present invention is relatively high. Moreover, the coefficient of determination and root mean square error of the test set are not much different from those of the training set, indicating that the RVFL neural network model in the present invention has high generalization ability.

[0082] In the above embodiment, in step S2, before calculating the superposition of the output matrix of the hidden layer and the input matrix of the training set samples, the deletion operation of redundant nodes in the hidden layer is determined according to the linear correlation of the existing hidden layer nodes.

[0083] Specifically, the deletion operation of redundant nodes in the hidden layer includes:

[0084] Calculate the rank rank(H(x)) of the output matrix H(x) of the hidden layer containing L enhanced nodes; if rank(H(x)) < L, then calculate the norm of each column vector of the matrix H(x), and then delete the L-rank(H(x)) column vectors with the largest norms in H(x) (each column represents the output matrix of each hidden layer node) to obtain a new hidden layer output matrix H*(x), and the corresponding number of hidden layer nodes becomes L* = rank(H(x)).

[0085] Obviously, the soft sensor method for element grade random weight neural network based on XRF provided in this embodiment can obtain better training results when the optimized RVFL neural network is trained by calculating the output weights of the random weight RVFL neural network, thereby improving the prediction accuracy and stability of the content of the element to be measured; the process of the present invention is concise and easy to operate, and can accurately fit the complex relationship between the X-ray fluorescence intensity value and the element content of the ore elements, and simply and effectively quantitatively predict the content of the elements contained in the object to be measured.

[0086] The present invention can extract each main element from the X-ray fluorescence spectrum for component qualitative identification, introduce the random weight RVFL neural network analysis algorithm to perform matrix correction and quantitative calculation on the iron element grade; it can analyze the iron element grade in the pulp more real-time, efficiently and greenly, with high stability and high efficiency. The random weight neural network is introduced to analyze the error caused by the mutual influence of matrix elements, and the fitting result is more accurate than the traditional empirical analysis, and the applicability of the instrument to the beneficiation site environment is stronger than that of the fundamental parameter method.

[0087] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A random weight neural network soft measurement method for ore element grade based on XRF, characterized in that: include: The characteristic peak area data of the element to be measured obtained in real time by the XRF method and the characteristic peak area data of m interfering elements corresponding to the element to be measured are input into the constructed RVFL neural network, and the corresponding grade prediction value of the element to be measured can be output; wherein, the construction of the RVFL neural network includes: The characteristic peak area data of the element to be measured and m interfering elements corresponding to the element to be measured in n target samples are measured by XRF method, and the grade data of the element to be measured in the aforementioned target samples are obtained by manual analysis, and the characteristic peak area data of the element to be measured and the m interfering elements corresponding to the element to be measured and the grade data of the element to be measured constitute the sample data for training the RVFL neural network, wherein n and m are both positive integers, and n>m; and the randomly assigned input weight matrix W and bias matrix B are determined, the optimal solution of the weight β from the input layer and the hidden layer to the output layer is calculated, and the input layer with the number of nodes A, the hidden layer with the number of enhanced nodes L and the output layer with the number of nodes D are set, wherein A=m+1, and the number of enhanced nodes L is given by the empirical formula Determine, where c is a positive integer ranging from 1 to 10, A is a positive integer greater than or equal to 2, and D is a positive integer greater than or equal to 1; The training process of the RVFL neural network includes: Step 1: Divide the above sample data into training set data and test set data, and after normalization, construct the randomly assigned input weight matrix W and bias matrix B: B=(b1 … b i … b L ) 1*L , where: A represents the number of input layer nodes, L represents the number of hidden layer enhancement nodes; Step 2: Calculate the superposition H of the hidden layer output matrix and the single sample input matrix in the training set based on the input weight matrix W and the bias matrix B. A+L (x) = H(x) + x, and the output H of the RVFL neural network is obtained based on this A+L (x) β; before calculating the superposition of the hidden layer output matrix and the single sample input matrix in the training set, determining to delete redundant nodes in the hidden layer according to the linear correlation of the existing hidden layer nodes; the deleting operation of redundant nodes in the hidden layer includes: Calculate the rank rank(H(x)) of the output matrix H(x) of the hidden layer containing L enhanced nodes; if rank(H(x)) < L, then calculate the norm of each column vector of the matrix H(x), and then delete the columns corresponding to the L - rank(H(x)) elements with the largest norms in H(x) to obtain a new hidden layer output matrix H * (x), and the number of corresponding hidden layer nodes becomes L * = rank(H(x)); Step 3: According to the output H of the RVFL neural network A+L (x)β calculates the optimal solution of the weight β from the input layer and the hidden layer to the output layer, and the parameter-optimized RVFL neural network is obtained, where the objective function β for calculating the optimal solution of β is * for: Where T is the output of the training set samples; ||·|| is the Euclidean norm; Step 4: Use the normalized training set data to train the RVFL neural network after parameter optimization obtained in step 3 to obtain a trained RVFL neural network, input the normalized test set data into the trained RVFL neural network for testing, obtain the grade prediction value of the element to be tested in the test set sample, and compare the grade prediction value of the element to be tested output by the RVFL neural network model with the grade data of the element to be tested output by the test set sample to obtain the determination coefficient R 2 and root mean square error RMSE.

2. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 1 is characterized in that: In the step 1, the sample data corresponding to the first k target samples in the target sample data are used as a training set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of m interfering elements corresponding to the element to be measured are used as training set inputs, and the grade data of the element to be measured manually tested is used as a training set output; the sample data corresponding to the last nk target samples are used as a test set, wherein the characteristic peak area data of the element to be measured and the characteristic peak area data of m interfering elements that have the greatest impact on the element to be measured are used as test set inputs, and the grade data of the element to be measured manually tested is used as a test set output; wherein, k>nk.

3. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 1 is characterized in that: The calculation formula for normalizing the training set and test set data is: X norm =(X-min(X)) / (max(X)-min(X)) where, X represents the original input value of each column element in N samples, min(X) represents the minimum value of each column element, max(X) represents the maximum value of each column element, X norm is the normalized value.

4. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 1 is characterized in that: In step (2), the calculation formula of the hidden layer output matrix is ​​as follows: H(x)=[h1(x),…,h i (x), …h L (x)], where h i (x) is the output of the i-th hidden layer node, which is expressed as: h i (x)=g(w i ,b i ,x)=g(x*w i +b i ),w i ∈W,b i ∈B; in, 5. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 4 is characterized in that: In step (2), the output of the RVFL neural network includes two parts: One part is the direct link between the input layer and the output layer, expressed as x j represents the j-th dimension input data, β j represents the weight between the jth input layer and the output layer; the other part is the nonlinear mapping from the hidden layer to the output layer, which can be expressed as: w i and b i Represent the weight and bias between the i-th hidden layer node and the input layer, g i represents the activation function of the i-th hidden layer node, β i represents the weight between the i-th hidden layer node and the output layer; β is the weight between the input layer and the output layer j and the weight β between the hidden layer and the output layer i Therefore, the output of the RVFL neural network is:

6. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 1 is characterized in that: In step (3), the least squares method is used to find the optimal solution of the objective function, and the following is obtained: Among them, T is the output matrix of the training set sample data, When there are N training samples, H A+L (X) is represented as follows: Among them, X is the input data matrix of N training samples, x NA is the input data of the A-th dimension element of the N-th training sample, h L (·) is the output of the Lth node in the hidden layer.

7. The XRF-based random weight neural network soft measurement method for ore element grade according to claim 1 is characterized in that: The coefficient of determination R 2 and root mean square error RMSE are determined according to the following formulas: in, y i is the grade data of the elements to be tested in the test set samples, is the predicted value of the element grade to be tested output by the RVFL neural network model, y m is the average value of the grade data of the element to be tested in all test set samples, and N is the number of test set samples.