A method and system for accurately measuring the composition content of molybdenum-iron alloy
By constructing an adaptive kernel regression model and using the sample reliability coefficient and regression contribution, the problem of impurities and band overlap in the measurement of phosphorus content in molybdenum-iron alloys was solved, and the accuracy of the measurement results was improved.
Patent Information
- Application Number
- CN202410763907.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Due to the influence of impurities and spectral overlap, the existing method for measuring the phosphorus content of ferromolybdenum alloys has poor reliability of the nuclear regression model and insufficient accuracy of the measurement results.
By obtaining spectral data of multiple test samples with known phosphorus content, the target band and sample reliability coefficient are determined, and a nuclear regression model is constructed based on the regression contribution to reduce the impact of impurities and band overlap and improve the accuracy of phosphorus content analysis.
It realizes adaptive analysis of phosphorus content in molybdenum-iron alloys, improves the reliability of the nuclear regression model and the accuracy of measurement results, and effectively avoids errors caused by impurities and band overlap.
Smart Images

Figure CN118329807B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spectral analysis, and in particular to a method and system for accurately measuring the component content of a molybdenum-iron alloy. Background Art
[0002] Ferro-molybdenum alloy is an important industrial material, usually used to manufacture parts with high strength, wear resistance and corrosion resistance. In the production and application of ferro-molybdenum alloy, the phosphorus content is a key quality indicator and needs to be accurately measured. The widely used phosphorus detection method is ammonium molybdate spectrophotometry, which is based on linear regression analysis to achieve specific measurement of phosphorus content.
[0003] In this way, due to the influence of various impurities and the certain overlap between the spectrum of the molybdenum matrix and the spectrum of the phosphorus element, the nuclear regression model is susceptible to errors such as the influence of impurities and band overlap, which makes the reliability of the nuclear regression model poor and the measurement results of the phosphorus content analysis insufficiently accurate. Summary of the invention
[0004] In order to solve the technical problems in the related art that the anomaly is caused by the influence of various impurities, the certain overlap between the spectrum of the molybdenum matrix and the spectrum of the phosphorus element, etc., which makes the nuclear regression model susceptible to the interference of errors such as the influence of impurities and the influence of band overlap, thereby making the reliability of the nuclear regression model poor and the accuracy of the measurement results obtained by the phosphorus content analysis insufficient, the present invention provides a method and system for accurately measuring the component content of molybdenum-iron alloy, and the technical scheme adopted is specifically as follows:
[0005] The present invention provides a method for accurately measuring the component content of molybdenum-iron alloy, the method comprising:
[0006] Acquire spectral data of at least two test samples with known phosphorus content, and use the bands affected by phosphorus in the spectral data as target bands, each target band having a reflectance corresponding to the spectral analysis;
[0007] Select any one spectral data as the data to be tested, and determine the sample reliability coefficient of the data to be tested according to the difference in phosphorus content between the data to be tested and other spectral data in the test sample and the reflectivity numerical characteristics of all target bands;
[0008] In the same target band, the correlation between reflectance and phosphorus content is weighted according to the sample reliability coefficient of all spectral data, and the adjusted correlation coefficient between reflectance and phosphorus content of all spectral data in the corresponding target band is obtained;
[0009] Determine the regression contribution of each target band according to the adjusted correlation coefficient of any target band and the correlation between the reflectance of the corresponding target band and other target bands in the spectral data;
[0010] According to the sample reliability coefficient of each spectral data and the regression contribution of each target band, the influence factor of each spectral data in each target band is determined;
[0011] According to the influencing factors of all spectral data in all target bands, a kernel regression model is constructed. The phosphorus content of the test samples with unknown phosphorus content is analyzed according to the kernel regression model to obtain the measurement results.
[0012] Furthermore, the method for obtaining the sample reliability coefficient of the data to be tested includes:
[0013] Any other spectral data except the data to be measured is used as comparison data;
[0014] Determine the sample difference degree between the data to be tested and the comparison data according to the numerical difference, numerical correlation and phosphorus content difference of the reflectance of the data to be tested and the comparison data in all target bands;
[0015] The sample reliability coefficient of the data to be tested is determined according to the sample difference degree between the data to be tested and all the comparison data, wherein the mean value of the sample difference degree between the data to be tested and all the comparison data is determined, the mean value is negatively correlated with the sample reliability coefficient, and the value of the sample reliability coefficient of the data to be tested is a normalized value.
[0016] Furthermore, the sample difference degree between the test data and the comparison data includes:
[0017] The difference in phosphorus content between the data to be tested and the comparison data is used as an actual content difference indicator;
[0018] Obtaining the correlation between the reflectance of the measured data and the comparison data in all target bands as the first correlation index;
[0019] The average of the reflectivity differences between the data to be tested and the comparison data in all target bands is used as the reflectivity difference index between the data to be tested and the comparison data;
[0020] The degree of sample difference between the data to be tested and the comparison data is determined according to the first related index, the actual content difference index and the reflectivity difference index, wherein the first related index and the reflectivity difference index are positively correlated with the sample difference degree, and the actual content difference index is negatively correlated with the sample difference degree.
[0021] Furthermore, the method for obtaining the adjusted correlation coefficient includes:
[0022] Based on the Pearson correlation coefficient calculation formula, the sample reliability coefficient is used as the weight of the covariance accumulation in the numerator of the corresponding Pearson correlation coefficient calculation formula, and weighted processing is performed to obtain the adjusted correlation coefficient between the reflectivity of the target band and the phosphorus content, wherein the value range of the adjusted correlation coefficient is non-negative.
[0023] Furthermore, the method for obtaining the regression contribution of the target band includes:
[0024] In all the spectral data, the correlation between the reflectances of any two target bands in different spectral data is determined as a second correlation index of the two target bands;
[0025] Take any target band as the analysis band, determine the regression contribution of the analysis band according to the adjusted correlation coefficient of the analysis band and the second correlation index between the analysis band and other target bands, update the analysis band, and obtain the regression contribution of each target band.
[0026] Furthermore, the step of determining the regression contribution of the analysis band according to the adjusted correlation coefficient of the analysis band and the second correlation index between the analysis band and other target bands includes:
[0027] The average of the second correlation indexes of the analysis band and all other target bands is taken as the correlation coefficient of the analysis band;
[0028] The ratio of the adjusted correlation coefficient of the analysis band to the correlation coefficient of the analysis band is taken as the regression contribution of the analysis band.
[0029] Furthermore, the influencing factors of each spectral data in each target band include:
[0030] The sample reliability coefficient of the spectral data and the regression contribution of the target band are numerically fused to obtain the impact factor of the corresponding spectral data in the corresponding target band.
[0031] Furthermore, the kernel regression model is constructed according to the influencing factors of all spectral data in all target bands, including:
[0032] Based on the Gaussian kernel function, the influencing factor is weighted as the weight of the variance in the covariance matrix to obtain the spectral regression function of each spectral data;
[0033] The spectral regression functions of all spectral data are combined into a kernel regression model.
[0034] Furthermore, the kernel regression model is used to analyze the phosphorus content of the test sample with unknown phosphorus content to obtain the measurement results, including:
[0035] Input the test sample with unknown phosphorus content into each spectral regression function to determine each analytical result;
[0036] All analysis results are numerically integrated to determine the measurement result.
[0037] The present invention also provides a precise measurement system for the component content of molybdenum-iron alloy, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the computer program.
[0038] The present invention has the following beneficial effects:
[0039] The embodiment of the present invention obtains the spectral data of multiple test samples with known phosphorus content, determines the target band and the reflectivity of the spectral analysis of each target band, and divides it into a band dimension and a data dimension, determines the sample reliability coefficient of each spectral data in the data dimension, and the sample reliability coefficient can effectively characterize the normal degree of the spectral waveform of the test sample corresponding to the spectral data, and determines the regression contribution of each target band in the band dimension, and the regression contribution represents the weight of each target band when performing phosphorus content detection, thereby, combining the sample reliability coefficient of each spectral data and the regression contribution of each target band, determining the influencing factor, and constructing a kernel regression model based on the influencing factor, realizing adaptive analysis of phosphorus content, and obtaining a measurement result. The embodiment of the present invention aims to construct an adaptive kernel regression model that meets the measurement of phosphorus content in molybdenum-iron alloy, so as to facilitate more accurate phosphorus content analysis, therefore, by determining the influencing factor of the spectral data in the corresponding target band, weight analysis is performed on each target band of each spectral data, so that the kernel regression model can effectively avoid the interference of errors such as impurity influence and band overlap influence, improve the reliability of the kernel regression model, and enhance the accuracy of the measurement results obtained by subsequent phosphorus content analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A flow chart of a method for accurately measuring the composition content of a molybdenum-iron alloy provided by one embodiment of the present invention;
[0042] Figure 2 A schematic flow chart of a method for obtaining a sample reliability coefficient of test data provided by an embodiment of the present invention;
[0043] Figure 3 A schematic flow chart of a method for obtaining the regression contribution of a target band provided by an embodiment of the present invention;
[0044] Figure 4 A schematic flow chart of a method for obtaining a kernel regression model provided by one embodiment of the present invention;
[0045] Figure 5 A schematic flow chart of a method for obtaining measurement results provided by an embodiment of the present invention;
[0046] Figure 6 A structural diagram of a system for accurately measuring the composition content of ferro-molybdenum alloy provided by one embodiment of the present invention;
[0047] Figure 7 A schematic diagram of the structure of a device for accurately measuring the component content of ferromolybdenum alloy provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method and system for accurately measuring the component content of a molybdenum-iron alloy proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0049] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0050] The specific scheme of the method for accurately measuring the component content of molybdenum-iron alloy provided by the present invention is described in detail below with reference to the accompanying drawings.
[0051] See also Figure 1 , which shows a flow chart of a method for accurately measuring the component content of a molybdenum-iron alloy provided by an embodiment of the present invention, the method comprising:
[0052] S101: Acquire spectral data of at least two test samples with known phosphorus content, and use the bands affected by phosphorus in the spectral data as target bands, each target band having a reflectance corresponding to the spectral analysis.
[0053] A specific implementation scenario of the embodiment of the present invention is to perform a component analysis on a molybdenum-iron alloy. In the production and application scenarios of molybdenum-iron alloys, the content of phosphorus is a key quality indicator, which directly affects the mechanical properties, corrosion resistance and processing properties of the alloy. During the preparation process, the content of phosphorus in the alloy needs to be controlled to be within an appropriate range to obtain good performance and stability of the alloy. Therefore, it is necessary to detect the content of phosphorus.
[0054] It is understandable that the currently widely used phosphorus detection method is ammonium molybdate spectrophotometry, which obtains test samples with known phosphorus content and uses kernel regression to construct a corresponding regression model to achieve a simple prediction of the phosphorus content in molybdenum-iron alloy. In the process of preparing molybdenum-iron alloy sample solution, due to the overlap between the spectrum of the molybdenum matrix and the spectrum of the phosphorus element, a large amount of molybdenum matrix will have a certain impact on the phosphorus element spectrum, and the presence of bubbles, impurities and other factors in the test solution sample will also affect the analysis effect of the phosphorus element.
[0055] In the embodiment of the present invention, a plurality of standard test samples with known phosphorus content are obtained respectively, and the absorption rate of the ith spectral data is recorded as , the band resolution of the spectral data is 1 nm. Of course, in other embodiments of the present invention, the band resolution can also be set according to actual needs, and there is no limitation on this.
[0056] It should be noted that the traditional characteristic band of phosphorus content is generally around 700nm. Here, 700nm is taken as the center, and the bands of 100nm on both sides are taken as target bands. The response value of each spectral data in the target band is its corresponding reflection intensity data, that is, the reflectivity of the spectral analysis.
[0057] S102: Select any spectral data as the data to be tested, and determine the sample reliability coefficient of the data to be tested according to the difference in phosphorus content between the data to be tested and other spectral data in the test sample and the reflectivity numerical characteristics of all target bands.
[0058] In the embodiment of the present invention, any spectral data is used as the data to be tested for specific analysis, and any one of the spectral data other than the data to be tested is selected as the comparison data, that is, the data to be tested and the comparison data are any two spectral data.
[0059] In some embodiments of the present invention, the reflectivity numerical feature may be specifically, for example, a numerical difference feature and a numerical correlation feature. The present invention may combine the corresponding reflectivity numerical difference feature, numerical correlation feature and phosphorus content difference to implement the analysis of the sample reliability coefficient, and the specific process thereof is described in the subsequent embodiments.
[0060] In other embodiments of the present invention, the reflectivity value can also be used as an outlier for specific analysis, that is, the reflectivity values of all target bands are detected for outliers, so as to determine the outlier coefficient under each target band, and then the analysis of the sample reliability coefficient is realized. In other embodiments of the present invention, the analysis of the sample reliability coefficient can also be realized by combining the method of numerical cluster analysis, or the method of difference between numerical value and average value, which will not be further limited or elaborated.
[0061] S103: In the same target band, the correlation between the reflectance and the phosphorus content is weighted according to the sample reliability coefficient of all spectral data to obtain the adjusted correlation coefficient between the reflectance and the phosphorus content of all spectral data in the corresponding target band.
[0062] In the embodiment of the present invention, the sample reliability coefficient represents the normality of the spectral data. Based on the sample reliability coefficient as a weight, a weighted analysis can be performed on the correlation between the reflectance and the phosphorus content to determine the adjusted correlation coefficient. The specific weighted analysis can be a weighted addition or a weighted multiplication, which is not limited.
[0063] The correlation between reflectivity and phosphorus content can be calculated using the Pearson correlation coefficient, or using Spearman or Kendall correlation analysis, etc., without limitation.
[0064] Furthermore, in some embodiments of the present invention, a specific example is given in the form of Pearson correlation coefficient and weighted addition, and a method for obtaining the adjusted correlation coefficient includes: based on the Pearson correlation coefficient calculation formula, using the sample reliability coefficient as the weight of the covariance accumulation in the numerator of the corresponding Pearson correlation coefficient calculation formula, and performing weighted processing to obtain the adjusted correlation coefficient of the reflectivity of the target band and the phosphorus content, wherein the value range of the adjusted correlation coefficient is non-negative.
[0065] Among them, since the test samples are affected by other factors such as bubbles or band overlap, their spectral data cannot represent their true concentration. Therefore, the regression analysis needs to be weighted. The analysis of the sample reliability coefficient can be used as a weight to achieve weighted correlation analysis. The formula for adjusting the correlation coefficient is shown below:
[0066] ;
[0067] In the formula, Indicates the first Target band The adjusted correlation coefficient between the reflectivity and phosphorus content, Represents the phosphorus content of all spectral data, Indicates The sample reliability coefficient of the spectral data is represents the number of all spectral data, Indicates The reflectance of the spectral data is Target band The value size of Represents the reflectance of all spectral data in Target band The mean value of Indicates The phosphorus content of the spectral data is represents the mean value of phosphorus content of all spectral data, Represents the standard deviation function.
[0068] Among them, since the value of the Pearson correlation coefficient is [-1,1], in order to facilitate subsequent analysis, the present invention can adjust the value range of the correlation coefficient to a non-negative number. In some implementations, the Pearson correlation coefficient can be normalized, or a linear mapping method can be used to map it within the range of non-negative numbers, and there is no limitation on this. In the embodiment of the present invention, by Add 1 to adjust the correlation coefficient to a non-negative value.
[0069] Since the larger the sample reliability coefficient, the more normal the spectral data of the test sample is, the higher the reliability is, and the less affected by bubbles or band overlap is, the embodiment of the present invention can use the sample reliability coefficient as the weight of the covariance accumulation in the numerator of the corresponding Pearson correlation coefficient calculation formula, and perform weighted processing to obtain the adjusted correlation coefficient between the reflectivity of the target band and the phosphorus content.
[0070] S104: Determine the regression contribution of each target band according to the adjusted correlation coefficient of any target band and the correlation between the reflectance of the corresponding target band and other target bands in the spectral data.
[0071] It can be understood that the larger the value of the adjusted correlation coefficient is, the higher the correlation between the reflectance of the target band and the phosphorus content is, that is, the higher the regression contribution rate of the corresponding target band is, and the higher the correlation between the reflectance of the target band and other target bands in the spectral data is, the higher the correlation between the spectral data response value under a single target band and the response values of the remaining target bands is, which means that there are multiple similar spectral data that contribute to the concentration of the substance in the same way and may be greatly affected by a single impurity. In this case, the corresponding contribution degree should be appropriately reduced, and the lower the regression contribution of the target band, thereby realizing the analysis of the regression contribution of the target band.
[0072] In an embodiment of the present invention, the correlation can still be calculated using the Pearson correlation coefficient, and the correlation between the reflectance of any target band and other target bands in the spectral data is determined in a normalized manner, and then, the regression contribution of the target band is determined in combination with the adjusted correlation coefficient of any target band.
[0073] Specifically, a unified value of the correlation between the reflectance of the target band and all other target bands in the spectral data can be calculated. The unified value can be, for example, a mean value, or a mode value, etc. Then, the ratio of the adjusted correlation coefficient to the unified value is normalized as the regression contribution of the analysis band. The specific implementation process can be referred to the subsequent embodiments.
[0074] S105: Determine the influence factor of each spectral data in each target band according to the sample reliability coefficient of each spectral data and the regression contribution of each target band.
[0075] In the embodiment of the present invention, since the sample reliability coefficient of the spectral data characterizes the numerical credibility of the spectral data in all target bands, the larger the value, the higher the normality of the spectral data in all target bands. The regression contribution rate of the target band is analyzed in the band dimension to determine the impact of impurities in the corresponding band. The larger the value, the less the target band is affected by impurities and band overlap, and the higher the accuracy of the regression analysis based on the target band. Therefore, the present invention can combine the sample reliability coefficient of the spectral data and the regression contribution of the target band to determine the impact factor, which is an impact indicator for comprehensive analysis in the two dimensions of spectral data and target band.
[0076] In the embodiment of the present invention, the sample reliability coefficient of the spectral data and the regression contribution of the target band are numerically fused to obtain the influence factor of the corresponding spectral data in the corresponding target band.
[0077] Among them, numerical fusion can be specifically, for example, a positively correlated numerical fusion analysis, that is, the numerical fusion in the embodiment of the present invention is a corresponding positive correlation analysis, and the product of the sample reliability coefficient of the spectral data and the regression contribution of the target band can be directly calculated, and then, the maximum and minimum value normalization processing is performed to obtain the influence factor of the spectral data in the corresponding target band.
[0078] Furthermore, in some implementations of the present invention, the formula corresponding to the numerical fusion of the sample reliability coefficient of the spectral data and the regression contribution of the target band may be specifically, for example, as follows:
[0079] ;
[0080] In the formula, Indicates The spectral data are in The impact factor under the target band, Indicates The sample reliability coefficient of the spectral data is Indicates The regression contribution of each target band is Represents the normalization function. For the case where the sample reliability coefficient of the spectral data is high and the target band has a high contribution to the regression, a higher impact factor value is assigned to it.
[0081] S106: A kernel regression model is constructed according to the influencing factors of all spectral data in all target bands, and the phosphorus content of the test sample with unknown phosphorus content is analyzed according to the kernel regression model to obtain a measurement result.
[0082] The kernel regression model may be specifically a Gaussian kernel regression model, for example. In the embodiment of the present invention, the influencing factors of all spectral data in all target bands may be combined to construct a Gaussian kernel regression model for realizing phosphorus content analysis.
[0083] In the embodiment of the present invention, the kernel regression model is a regression model obtained by analyzing the spectral data corresponding to all test samples with known phosphorus content. Combined with the above analysis, the kernel regression model is realized through the two dimensions of spectral data and target band.
[0084] The embodiment of the present invention aims to construct a kernel regression model that is suitable for measuring the phosphorus content in molybdenum-iron alloy. Therefore, by determining the influencing factors of the spectral data in the corresponding target band, a weight analysis is performed on each target band of each spectral data, so that the kernel regression model can effectively avoid interference from errors such as impurity influence and band overlap, thereby improving the reliability of the kernel regression model and enhancing the accuracy of the measurement results obtained by subsequent phosphorus content analysis.
[0085] Combination Figure 2 , a specific embodiment is given to illustrate step S102, Figure 2 A schematic flow chart of a method for obtaining a sample reliability coefficient of test data provided by an embodiment of the present invention.
[0086] S201: Determine the sample difference degree between the data to be tested and the comparison data according to the numerical difference, numerical correlation and phosphorus content difference of the reflectance of the data to be tested and the comparison data in all target bands.
[0087] In the embodiment of the present invention, the numerical correlation and the numerical difference are used as the numerical features of the reflectivity, and then, the difference in phosphorus content, the numerical correlation of the reflectivity and the numerical difference of the reflectivity are combined to realize the analysis of the degree of difference of the samples.
[0088] Furthermore, in some embodiments of the present invention, the difference in phosphorus content between the data to be tested and the comparison data is taken as an actual content difference index; the correlation between the reflectances of the data to be tested and the comparison data in all target bands is obtained as a first correlation index; the average of the difference in reflectances between the data to be tested and the comparison data in all target bands is taken as a reflectance difference index between the data to be tested and the comparison data; the degree of sample difference between the data to be tested and the comparison data is determined based on the first correlation index, the actual content difference index and the reflectance difference index, wherein the first correlation index and the reflectance difference index are positively correlated with the degree of sample difference, and the actual content difference index is negatively correlated with the degree of sample difference.
[0089] In the embodiment of the present invention, the test samples corresponding to the test data and the comparison data are all samples with known phosphorus content, and thus, the absolute value of the difference in the known phosphorus content can be used as an actual content difference indicator.
[0090] In an embodiment of the present invention, the correlation can be obtained specifically as, for example, the Pearson correlation coefficient, that is, the reflectances in different bands are sorted according to the band values to obtain a band reflectance sequence for each spectral data, and the correlation between the band reflectance sequences of the data to be tested and the comparison data is calculated to obtain a first correlation index between the data to be tested and the comparison data.
[0091] Among them, the Pearson correlation coefficient is a correlation calculation method well known in the art. Of course, other calculation methods can also be used to calculate the correlation, such as a dynamic time warping algorithm, etc., and there is no limitation to this.
[0092] It can be understood that if the absolute values of the differences in reflectivity between the test data and the comparison data in different target bands are different, the average of the absolute values of the differences in reflectivity in all target bands is used as the reflectivity difference index between the test data and the comparison data.
[0093] In the embodiment of the present invention, the sample difference degree between the test data and the comparison data can be determined by combining the first related index, the actual content difference index and the reflectivity difference index. The first related index and the reflectivity difference index are positively correlated with the sample difference degree, and the actual content difference index is negatively correlated with the sample difference degree.
[0094] Among them, a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0095] It should be noted that in order to ensure that the calculation result of the degree of rejection is meaningful, when the negative correlation is a division relationship, a parameter adjustment factor greater than 0 needs to be added to the denominator to prevent the denominator from being 0. The value of the parameter adjustment factor is set by the implementer according to the actual situation, and this application does not impose any special restrictions. It is determined by the actual application, and this application does not impose any special restrictions.
[0096] Therefore, the embodiment of the present invention can calculate the product of the first correlation index and the reflectance difference index as the reflectance numerical characteristic coefficient, and then use the ratio of the reflectance numerical characteristic coefficient to the actual content difference index as the sample difference degree.
[0097] Among them, the larger the value of the reflectivity difference index, the larger the phosphorus content corresponding to the tested data and the comparison data, or the spectral data of a certain test sample is affected by a large noise, resulting in a large deviation in the result; the larger the first related index, the more likely it is that the difference between the two is not caused by impurities or band overlap, but is caused by the actual difference in phosphorus content. Therefore, when the first related index is large and the actual content difference index is small, it means that it is still affected by bubbles or band overlap.
[0098] S202: Determine the sample reliability coefficient of the data to be tested according to the sample difference between the data to be tested and all the comparison data.
[0099] The sample difference degree between the test data and the comparison data represents the difference between the two data during spectral analysis. The sample difference degree between the test data and all the comparison data can be comprehensively considered to analyze the outlier of the test data in all spectral data.
[0100] The higher the outlier of the data to be tested among all the spectral data is, the lower the reliability of the data to be tested itself is, thereby determining the sample reliability coefficient of the data to be tested.
[0101] In the embodiment of the present invention, the mean of the sample difference between the test data and all the comparison data can be calculated, wherein the mean is negatively correlated with the sample reliability coefficient, and the value of the sample reliability coefficient of the test data is a normalized value.
[0102] That is to say, the mean can be normalized by negative correlation, so as to obtain the sample reliability coefficient of the data to be tested. In one embodiment of the present invention, the normalization process can be specifically, for example, a maximum and minimum value normalization process, and the normalization in the subsequent steps can all adopt the maximum and minimum value normalization process. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of values, which will not be described in detail.
[0103] In the embodiment of the present invention, the exp(-x) function can be used to calculate the sample reliability coefficient of the data to be tested, wherein exp represents an exponential function with the natural constant e as the base, and x represents the mean value of the sample difference between the data to be tested and all the comparison data, thereby achieving normalization of negative correlation.
[0104] The embodiment of the present invention realizes numerical analysis by taking the numerical correlation and numerical difference of reflectivity as the numerical characteristics of reflectivity. According to the numerical analysis and the actual difference in phosphorus content, the degree to which the test samples are affected by factors such as impurities or band overlap is specifically analyzed to obtain the degree of sample difference. In combination with the degree of sample difference between the test data and all comparative data, the reliability of the test data itself is analyzed. That is, the larger the sample reliability coefficient, the smaller the degree to which the test sample is affected by factors such as impurities or band overlap, and the more reliable the test sample itself is.
[0105] Combination Figure 3 , a specific embodiment is given to illustrate step S104, Figure 3 A schematic flow chart of a method for obtaining the regression contribution of a target band provided by an embodiment of the present invention.
[0106] S301: Determine, in all spectral data, the correlation between the reflectances of any two target bands in different spectral data as a second correlation index between the two target bands.
[0107] Among them, the correlation can also be analyzed using the Pearson correlation coefficient or the dynamic time warping algorithm to obtain the second correlation index of any two target bands. It should be noted that, in order to facilitate subsequent analysis, the value range of the second correlation index can be adjusted to (0,1) to avoid calculation problems caused by the second correlation index being negative or 0. The specific adjustment process can be, for example, linear mapping, and there is no restriction on this.
[0108] S302: taking any target band as an analysis band, determining the regression contribution of the analysis band according to the adjusted correlation coefficient of the analysis band and the second correlation index between the analysis band and other target bands, updating the analysis band, and obtaining the regression contribution of each target band.
[0109] In the embodiment of the present invention, the analysis band and other target bands have corresponding second correlation indicators, and analysis can be performed based on the overall numerical characteristics of the second correlation indicators of the analysis band and other target bands, that is, under the band dimension, the correlation between any target band and other target bands is determined, and then combined with the adjusted correlation coefficient of the target band itself, the regression contribution analysis of the target band is realized.
[0110] It can be understood that the analysis process of the overall numerical characteristics of the second related indicators of the analysis band and other target bands can be, for example, a numerical comprehensive analysis of all second related indicators, such as mean analysis, median analysis and mode analysis.
[0111] Furthermore, in some embodiments of the present invention, the regression contribution of the analysis band is determined based on the adjusted correlation coefficient of the analysis band and the second correlation indicators between the analysis band and other target bands, including: taking the mean of the second correlation indicators between the analysis band and all other target bands as the correlation coefficient of the analysis band; taking the ratio of the adjusted correlation coefficient of the analysis band to the correlation coefficient of the analysis band as the regression contribution of the analysis band.
[0112] That is to say, taking the mean as the overall numerical feature, the correlation coefficient is calculated by calculating the mean of the second correlation index of the analysis band and all other target bands. The larger the correlation coefficient, the higher the correlation between the analysis band and all other target bands, indicating that there are multiple similar spectral data that contribute to the concentration of the substance in the same way and may be greatly affected by a single impurity, that is, the smaller the contribution of the analysis band to the regression.
[0113] The present invention accurately analyzes the regression contribution by determining the second correlation index and adjusting the correlation coefficient, so that the regression contribution can effectively characterize the regression contribution ability of each target band and improve the accuracy of subsequent regression analysis.
[0114] Combination Figure 4 , Figure 4 A schematic flow chart of a method for obtaining a kernel regression model provided by an embodiment of the present invention.
[0115] S401: Based on the Gaussian kernel function, the influencing factor is used as the weight of the variance in the covariance matrix to obtain the spectral regression function of each spectral data.
[0116] In the embodiment of the present invention, the Gaussian kernel function is a technology well known to those skilled in the art. The covariance matrix in the Gaussian kernel function can characterize the features under the corresponding dimension. Thus, by weighting the influencing factors, a specific regression function can be constructed.
[0117] Further, in some embodiments of the present invention, the kernel regression selects a Gaussian kernel function, and for the first Spectral data, the reflectance of multiple target bands in its characteristic band interval is used as the mean vector of the Gaussian kernel function , the covariance matrix of the Gaussian kernel function is for:
[0118] ;
[0119] Where n represents the index of the target band, and its value is a positive integer. Indicates The spectral data are in Impact factors in target bands; It represents the initial variance size, and the preset value can be 0.8, which is set according to the actual situation. Then, by weighting the initial variance, the covariance matrix corresponding to each spectral data is obtained.
[0120] In the embodiment of the present invention, a Gaussian regression function of each spectral data is constructed as a spectral regression function according to the covariance matrix corresponding to each spectral data. The specific process is the conventional Gaussian regression function construction process, which will not be further described.
[0121] S402: The spectral regression functions of all spectral data are combined into a kernel regression model.
[0122] In an embodiment of the present invention, each spectral data corresponds to a spectral regression function. The embodiment of the present invention can combine the spectral regression functions of all spectral data to obtain a kernel regression model. The combination method can be, for example, directly integrating the functions to obtain a function group. Alternatively, all spectral regression functions can be uniformly organized into one function, and the function can be used as a kernel regression model. There is no limitation to this.
[0123] The present invention realizes the change of the spectral regression function by weighting the influencing factors, so that the spectral regression function can effectively combine the characteristics of multiple spectral data to obtain a more adaptive spectral regression function with better processing effect, thereby improving the reliability of the kernel regression model itself.
[0124] It is understandable that after step S402, a specific analysis can be performed based on the kernel regression model, and the kernel regression model can be obtained by directly integrating the functions to obtain the function group, see Figure 5 , Figure 5 A flow chart of a method for obtaining a measurement result provided by an embodiment of the present invention. After step S402, the method further includes:
[0125] S501: Input the test sample with unknown phosphorus content into each spectral regression function to determine each analysis result.
[0126] In the embodiment of the present invention, the test sample with unknown phosphorus content is input into each spectral regression function in the function group corresponding to the kernel regression model, and the corresponding analysis result is obtained through processing by each spectral regression function.
[0127] That is to say, in the embodiment of the present invention, each spectral regression function obtains a corresponding analysis result, thereby obtaining multiple analysis results.
[0128] S502: Numerically integrate all analysis results to determine measurement results.
[0129] In an embodiment of the present invention, numerical integration can specifically be to average the numerical values of all analysis results as the measurement result, or, in other embodiments of the present invention, the median of all analysis results can be used as the measurement result, or, the parts of the analysis results with larger and smaller numerical values can be removed, and the remaining parts can be averaged as the measurement result, without limitation.
[0130] The embodiment of the present invention inputs a test sample with unknown phosphorus content into each spectral regression function, determines the analysis result, and numerically integrates the measurement result. It can then combine the spectral regression functions of multiple spectral data to determine the final measurement result, ensure the accuracy of the final measurement result, and achieve accurate measurement of the phosphorus content in the molybdenum-iron alloy.
[0131] On the other hand, the embodiment of the present invention also provides a precise measurement system for the composition content of molybdenum-iron alloy, see Figure 6 , Figure 6 This is a structural diagram of a system for accurately measuring the component content of a molybdenum-iron alloy provided in one embodiment of the present invention. The system includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program 603, the steps of the aforementioned method for accurately measuring the component content of a molybdenum-iron alloy are implemented.
[0132] On the other hand, see Figure 7 , Figure 7 The present invention is a schematic diagram of a structure of a device for accurately measuring the content of components of a molybdenum-iron alloy provided by an embodiment of the present invention. The present invention also provides a device for accurately measuring the content of components of a molybdenum-iron alloy, the device comprising:
[0133] An acquisition module 701 is used to acquire spectral data of at least two test samples with known phosphorus content, and use the bands affected by phosphorus in the spectral data as target bands, each target band having a reflectance corresponding to the spectral analysis;
[0134] The sample analysis module 702 is used to select a spectral data as the test data, and determine the sample reliability coefficient of the test data according to the difference in phosphorus content between the test data and other spectral data in the test sample and the reflectivity numerical characteristics of all target bands;
[0135] The band analysis module 703 is used to weight the correlation between the reflectance and the phosphorus content according to the sample reliability coefficient of all spectral data in the same target band, and obtain the adjusted correlation coefficient between the reflectance and the phosphorus content of all spectral data in the corresponding target band;
[0136] A determination module 704 is used to determine the regression contribution of each target band according to the adjusted correlation coefficient of any target band and the correlation between the reflectance of the corresponding target band and other target bands in the spectral data;
[0137] An integration module 705 is used to determine the influence factor of each spectral data in each target band according to the sample reliability coefficient of each spectral data and the regression contribution of each target band;
[0138] The measurement module 706 is used to construct a kernel regression model according to the influencing factors of all spectral data in all target bands, and perform phosphorus content analysis on the test sample with unknown phosphorus content according to the kernel regression model to obtain measurement results.
[0139] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the precise measurement device for the component content of molybdenum-iron alloy provided in the above embodiment and the precise measurement method for the component content of molybdenum-iron alloy provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0140] It should be understood that the device provided in this embodiment is used to execute the above-mentioned method for accurately measuring the component content of molybdenum-iron alloy, and thus can achieve the same effect as the above-mentioned implementation method.
[0141] On the other hand, this embodiment also provides a computer-readable storage medium, which stores a computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a method for accurately measuring the component content of a molybdenum-iron alloy provided in the above embodiment.
[0142] On the other hand, this embodiment further provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a method for accurately measuring the component content of a molybdenum-iron alloy provided in the above embodiment.
[0143] Among them, the system, computer-readable storage medium, and computer program product provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0144] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0145] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0146] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for accurately measuring the content of components of molybdenum-iron alloy, characterized in that: The method comprises: Acquire spectral data of at least two test samples with known phosphorus content, and use the bands affected by phosphorus in the spectral data as target bands, each target band having a reflectance corresponding to the spectral analysis; Select any one spectral data as the data to be tested, and determine the sample reliability coefficient of the data to be tested according to the difference in phosphorus content between the data to be tested and other spectral data in the test sample and the reflectivity numerical characteristics of all target bands; In the same target band, the correlation between reflectance and phosphorus content is weighted according to the sample reliability coefficient of all spectral data, and the adjusted correlation coefficient between reflectance and phosphorus content of all spectral data in the corresponding target band is obtained; Determine the regression contribution of each target band according to the adjusted correlation coefficient of any target band and the correlation between the reflectance of the corresponding target band and other target bands in the spectral data; According to the sample reliability coefficient of each spectral data and the regression contribution of each target band, the influence factor of each spectral data in each target band is determined; According to the influencing factors of all spectral data in all target bands, a kernel regression model is constructed, and the phosphorus content of the test samples with unknown phosphorus content is analyzed according to the kernel regression model to obtain the measurement results; The method for obtaining the sample reliability coefficient of the data to be tested includes: Any other spectral data except the data to be measured is used as comparison data; Determine the sample difference degree between the data to be tested and the comparison data according to the numerical difference, numerical correlation and phosphorus content difference of the reflectance of the data to be tested and the comparison data in all target bands; Determine the sample reliability coefficient of the data to be tested according to the sample difference degree between the data to be tested and all the comparison data, wherein the mean value of the sample difference degree between the data to be tested and all the comparison data is determined, the mean value is negatively correlated with the sample reliability coefficient, and the value of the sample reliability coefficient of the data to be tested is a normalized value; The sample difference between the data to be tested and the comparison data includes: The difference in phosphorus content between the data to be tested and the comparison data is used as an actual content difference indicator; Obtaining the correlation between the reflectance of the measured data and the comparison data in all target bands as the first correlation index; The average of the reflectivity differences between the data to be tested and the comparison data in all target bands is used as the reflectivity difference index between the data to be tested and the comparison data; Determine the sample difference degree between the test data and the comparison data according to the first related index, the actual content difference index and the reflectivity difference index, wherein the first related index and the reflectivity difference index are positively correlated with the sample difference degree, and the actual content difference index is negatively correlated with the sample difference degree; The method for obtaining the regression contribution of the target band includes: In all the spectral data, the correlation between the reflectances of any two target bands in different spectral data is determined as a second correlation index of the two target bands; Taking any target band as the analysis band, determining the regression contribution of the analysis band according to the adjusted correlation coefficient of the analysis band and the second correlation index between the analysis band and other target bands, updating the analysis band, and obtaining the regression contribution of each target band; The step of determining the regression contribution of the analysis band according to the adjusted correlation coefficient of the analysis band and the second correlation index between the analysis band and other target bands includes: The average of the second correlation indexes of the analysis band and all other target bands is taken as the correlation coefficient of the analysis band; The ratio of the adjusted correlation coefficient of the analysis band to the correlation coefficient of the analysis band is taken as the regression contribution of the analysis band.
2. The method for accurately measuring the component content of a molybdenum-iron alloy according to claim 1, characterized in that: The method for obtaining the adjusted correlation coefficient includes: Based on the Pearson correlation coefficient calculation formula, the sample reliability coefficient is used as the weight of the covariance accumulation in the numerator of the corresponding Pearson correlation coefficient calculation formula, and weighted processing is performed to obtain the adjusted correlation coefficient between the reflectivity of the target band and the phosphorus content, wherein the value range of the adjusted correlation coefficient is non-negative.
3. The method for accurately measuring the component content of a molybdenum-iron alloy according to claim 1, characterized in that: The influencing factors of each spectral data in each target band include: The sample reliability coefficient of the spectral data and the regression contribution of the target band are numerically fused to obtain the impact factor of the corresponding spectral data in the corresponding target band.
4. The method for accurately measuring the component content of a molybdenum-iron alloy according to claim 1, characterized in that: The kernel regression model is constructed based on the influencing factors of all spectral data in all target bands, including: Based on the Gaussian kernel function, the influencing factor is weighted as the weight of the variance in the covariance matrix to obtain the spectral regression function of each spectral data; The spectral regression functions of all spectral data are combined into a kernel regression model.
5. The method for accurately measuring the component content of a molybdenum-iron alloy according to claim 4, characterized in that: The kernel regression model is used to analyze the phosphorus content of the test sample with unknown phosphorus content to obtain the measurement results, including: Input the test sample with unknown phosphorus content into each spectral regression function to determine each analytical result; All analysis results are numerically integrated to determine the measurement result.
6. A precise measurement system for the composition content of molybdenum-iron alloy, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
