Method and system for detecting trace elements in milk powder based on spectral analysis

By distinguishing the near-infrared absorption spectrum bands of milk powder samples and analyzing and adjusting the influence of lead elements, the analysis accuracy problem caused by the overlap of lead elements and copper elements in the existing technology is solved, and the accurate detection and stirring of the copper element content in milk powder is achieved. The evaluation of uniformity improves quality control in the milk powder production process.

CN118758893BActive Publication Date: 2024-11-05SHAANXI SHENGTANG DAIRY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411237618.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-11-05
Estimated Expiration
2044-09-05

AI Technical Summary

Technical Problem

When the existing spectral analysis method detects the copper element content in milk powder, due to the overlap of the characteristic bands between lead and copper elements, the analysis accuracy is poor, which affects the evaluation of the stirring uniformity of the milk powder and the stirring effect in the production process.

Method used

By obtaining the near-infrared absorption spectrum of milk powder samples, distinguishing between non-overlapping bands and overlapping bands, using non-overlapping bands to reflect the copper content, and analyzing the degree of influence of lead elements through enhanced spectra, adjusting the absorbance of overlapping bands, and eliminating the analysis of lead elements on copper content Influence, thus accurately reflect the uneven distribution of copper elements in milk powder.

Benefits of technology

It improves the accuracy of analysis of copper content in milk powder, accurately evaluates the stirring uniformity of milk powder and the stirring effect during the production process, ensures the uniformity of copper element distribution, and improves the quality of milk powder production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758893B_ABST
    Figure CN118758893B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of spectral analysis, and in particular to a method and system for detecting trace elements in milk powder based on spectral analysis. The method first obtains the near-infrared absorption spectra of milk powder samples at different positions in a milk powder mixer of a batch of milk powder to be tested, and obtains characteristic bands of copper elements, wherein the characteristic bands include non-overlapping bands and overlapping bands, and obtains the copper content evaluation value of the non-overlapping bands according to the distribution of the absorbance of the near-infrared absorption spectrum of the target sample in the non-overlapping bands; adjusts the absorbance of the near-infrared absorption spectrum of the target sample in the overlapping bands, and adjusts the distribution of the absorbance in the overlapping bands according to the near-infrared absorption spectrum of the target sample, and obtains the copper content evaluation value of the overlapping bands; and stirs the batch of milk powder to be tested according to the difference in the copper content evaluation values ​​of different milk powder samples in each characteristic band. The present invention can improve the analysis accuracy of the copper content of the milk powder sample and improve the effect of stirring the milk powder.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of spectral analysis, and in particular to a method and system for detecting trace elements in milk powder based on spectral analysis. Background Art

[0002] Copper is one of the essential trace elements for the human body. For infants and young children, an appropriate intake of a certain amount of copper is very important for their physical development. Too high or too low a copper content in milk powder will have a serious negative impact on the development of infants and young children. During the milk powder production process, if the mixing is uneven, the copper content in different milk powder products will vary greatly, seriously affecting the growth and development of infants and young children.

[0003] In the related art, spectral analysis is usually performed on milk powder samples at different positions in a milk powder mixer, and then the difference in copper content of milk powder samples at different positions is analyzed to evaluate whether they are mixed evenly. However, in spectral analysis, due to the overlapping of characteristic bands of lead and copper elements, the lead element present in the milk powder will affect the analysis of the copper content, resulting in poor analysis accuracy of the copper content of milk powder samples by existing methods, which leads to poor treatment effect of the mixing link in the milk powder production process. Summary of the invention

[0004] In order to solve the technical problem that the existing method has poor analysis accuracy for the copper content of milk powder at different positions, the purpose of the present invention is to provide a method and system for detecting trace elements in milk powder based on spectral analysis. The technical scheme adopted is as follows:

[0005] The present invention proposes a method for detecting trace elements in milk powder based on spectral analysis, the method comprising:

[0006] Acquire near-infrared absorption spectra of milk powder samples of the tested batch of milk powder at different positions in the milk powder mixer, and simultaneously acquire multiple characteristic bands of the copper element, wherein the near-infrared absorption spectrum includes absorbances at different wavelengths, and the characteristic bands include non-overlapping bands and overlapping bands;

[0007] Taking any milk powder sample as a target sample, obtaining the copper content evaluation value of the target sample in each non-overlapping band according to the distribution of absorbance at each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample;

[0008] According to the change of the absorbance of each wavelength in each overlapping band of the enhanced spectrum of the target sample, the influence degree of the lead element in each overlapping band is obtained; based on the influence degree, the absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is adjusted to obtain the adjusted absorbance of each wavelength in each overlapping band; according to the distribution of the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample, the copper content evaluation value of the target sample in each overlapping band is obtained;

[0009] According to the difference in the copper content evaluation values ​​in each characteristic band among different milk powder samples, the degree of heterogeneity of the tested batch of milk powder is obtained.

[0010] Further, obtaining the copper content evaluation value of the target sample in each non-overlapping band includes:

[0011] The absorbance of all wavelengths of the near-infrared absorption spectrum of the target sample in each non-overlapping band is integrated and normalized to obtain a first evaluation value of the target sample in each non-overlapping band;

[0012] Normalizing the maximum absorbance of all wavelengths of the near-infrared absorption spectrum of the target sample in each non-overlapping band to obtain a second evaluation value of the target sample in each non-overlapping band;

[0013] The first evaluation value and the second evaluation value of the target sample in each non-overlapping band are integrated to obtain the copper content evaluation value of the target sample in each non-overlapping band.

[0014] Furthermore, obtaining the influence of the lead element in each overlapping band includes:

[0015] Taking any overlapping band as a target overlapping band, obtaining a first impact factor of the lead element in the target overlapping band according to the difference in absorbance of adjacent wavelengths of the enhanced spectrum of the target sample in the target overlapping band;

[0016] Obtaining a second impact factor of the lead element in the target overlapping band according to the distribution of absorbance of each wavelength of the enhanced spectrum of the target sample in the target overlapping band;

[0017] According to the first influencing factor and the second influencing factor, the influence degree of the lead element in the target overlapping band is obtained, and the first influencing factor and the second influencing factor are both negatively correlated with the influence degree, and the influence degree is a normalized value.

[0018] Furthermore, obtaining the first impact factor of the lead element in the target overlapping band includes:

[0019] Taking any two adjacent wavelengths in the target overlapping band as a wavelength group, obtaining the absorbance difference value of each wavelength group in the target overlapping band according to the difference in absorbance of the two wavelengths in each wavelength group in the target overlapping band of the enhanced spectrum of the target sample;

[0020] The overall level of the absorbance difference values ​​of all wavelength groups in the target overlapping band is analyzed to obtain the first influencing factor of the lead element in the target overlapping band.

[0021] Furthermore, obtaining the second influencing factor of the lead element in the target overlapping band includes:

[0022] The absorbances of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band are integrated and normalized to obtain a first coefficient of the enhanced spectrum of the target sample in the target overlapping band;

[0023] Normalizing the maximum absorbance of all wavelengths of the enhanced spectrum of the target sample in each overlapping band to obtain a second coefficient of the enhanced spectrum of the target sample in the target overlapping band;

[0024] The first coefficient and the second coefficient are integrated to obtain a second impact factor of the lead element in the target overlapping band.

[0025] Further, obtaining the adjusted absorbance of each wavelength in each overlapping band includes:

[0026] Any wavelength in the target overlapping band is used as the target wavelength;

[0027] The product value of the influence degree of the lead element in the target overlapping band and the absorbance of the target wavelength of the near-infrared absorption spectrum of the target sample in the target overlapping band is used as the absorbance adjustment amount of the target wavelength;

[0028] The difference between the absorbance of the target sample's near infrared absorption spectrum at the target wavelength in the target overlapping band and the absorbance adjustment amount is used as the adjusted absorbance of the target sample's near infrared absorption spectrum at the target wavelength in the target overlapping band.

[0029] Further, obtaining the copper content evaluation value of the target sample in each overlapping band includes:

[0030] The adjusted absorbances of all wavelengths of the near-infrared absorption spectrum of the target sample in each overlapping band are integrated and normalized to obtain a third evaluation value of the target sample in each overlapping band;

[0031] Normalizing the maximum value of the adjusted absorbance at all wavelengths of the near-infrared absorption spectrum of the target sample in each overlapping band to obtain a fourth evaluation value of the target sample in each overlapping band;

[0032] The third evaluation value and the fourth evaluation value of the target sample in each overlapping band are integrated to obtain the copper content evaluation value of the target sample in each overlapping band.

[0033] Furthermore, obtaining the degree of heterogeneity of the batch of milk powder to be tested includes:

[0034] Analyze the overall level of the copper content evaluation value of the target sample in all characteristic bands to obtain the overall evaluation value of the target sample;

[0035] Taking any two milk powder samples as a sample group, and obtaining the difference degree of copper content in each sample group according to the difference of the overall evaluation values ​​of the two milk powder samples in each sample group;

[0036] According to the difference degree of the copper content in all sample groups, the heterogeneity degree of the milk powder batch to be tested is obtained.

[0037] Further, obtaining the degree of heterogeneity of the batch of milk powder to be tested according to the degree of difference in the copper content of all sample groups includes:

[0038] The overall level of the copper content difference of all sample groups is analyzed and normalized to obtain the degree of heterogeneity of the batch of milk powder to be tested.

[0039] The present invention also proposes a milk powder trace element detection system based on spectral analysis, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing any one of the steps of a milk powder trace element detection method based on spectral analysis when executing the computer program.

[0040] The present invention has the following beneficial effects:

[0041] The present invention takes into account that the existing methods have poor analysis accuracy for the copper content of milk powder at different positions, and therefore first obtains the near-infrared absorption spectra of milk powder samples at different positions in the milk powder mixer of the milk powder batch to be tested, and simultaneously obtains multiple characteristic bands of the copper element. Considering that the absorbance in the characteristic band in the near-infrared absorption spectrum of the target sample has a certain positive correlation with the copper content reflected by it, and the non-overlapping bands are not affected by the lead element, the copper content of the target sample in each non-overlapping band can be first reflected by the copper content evaluation value of each non-overlapping band. Since the overlapping bands indicate that the characteristic bands between the copper element and the lead element appear The overlapping phenomenon indicates that the copper content analysis in the overlapping bands will be affected by the lead element. Therefore, the degree of influence is firstly used to reflect the degree of influence of the lead element on the copper content analysis in the overlapping bands, and then the absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is adjusted, and the copper content evaluation value of each overlapping band is used to accurately reflect the copper content of the target sample in each overlapping band, thereby eliminating the influence of the lead element on the copper content analysis, and the degree of unevenness is used to accurately reflect the degree of uneven distribution of the copper element in the mixing process of milk powder production, thereby improving the effect of mixing treatment during milk powder production. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] 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.

[0043] Figure 1 A flow chart of a method for detecting trace elements in milk powder based on spectral analysis provided by one embodiment of the present invention;

[0044] Figure 2 A schematic diagram of a near-infrared absorption spectrum of a milk powder sample provided by an embodiment of the present invention;

[0045] Figure 3 A flow chart of a method for obtaining the influence of lead element in each overlapping band provided by one embodiment of the present invention;

[0046] Figure 4 This is a flow chart of a method for obtaining the degree of unevenness of a batch of milk powder to be tested provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0047] 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 a method and system for detecting trace elements in milk powder based on spectral analysis proposed by the present invention, its specific implementation, structure, features and effects, in conjunction 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.

[0048] 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.

[0049] The specific scheme of a method and system for detecting trace elements in milk powder based on spectral analysis provided by the present invention is described in detail below with reference to the accompanying drawings.

[0050] See also Figure 1 , which shows a flow chart of a method for detecting trace elements in milk powder based on spectral analysis provided by one embodiment of the present invention, the method comprising:

[0051] Step S1: obtaining near-infrared absorption spectra of milk powder samples of a tested batch of milk powder at different positions in a milk powder mixer, and simultaneously obtaining a plurality of characteristic bands of the copper element, wherein the near-infrared absorption spectrum includes absorbances at different wavelengths, and the characteristic bands include non-overlapping bands and overlapping bands.

[0052] Copper is one of the essential trace elements for the human body. For infants and young children, proper intake of copper is very important for physical development. Too high or too low copper content in milk powder will have a serious negative impact on the development of infants and young children. In the milk powder production process, if the stirring is uneven, the copper content in different milk powder products will be quite different. For example, the copper content of one part of the product is higher, while the copper content of another part of the product is lower, which seriously affects the growth and development of infants and young children. In the related art, spectral analysis is usually performed on milk powder at different positions in a milk powder mixer, and then the difference in copper content of milk powder at different positions is analyzed to evaluate whether it is stirred evenly. However, in the spectral analysis, the lead element present in the milk powder will affect the analysis of the copper content, resulting in poor analysis accuracy of the copper content of milk powder at different positions by the existing method, thereby reducing the processing effect of the stirring link in the milk powder production process. Therefore, an embodiment of the present invention proposes a milk powder trace element detection method based on spectral analysis to solve this problem.

[0053] The stirring link of milk powder is a relatively important link in the milk powder production process. Whether the milk powder is fully stirred is the key to ensuring the uniform distribution of copper in the milk powder. Therefore, in the embodiment of the present invention, first, in the process of producing the batch of milk powder to be tested, a plurality of milk powder samples are selected from different positions in the milk powder mixer. The value range of the number of milk powder samples is an integer of 50 to 100. In one embodiment of the present invention, the number of milk powder samples is set to 50. The number of milk powder samples can also be set by the implementer according to the specific implementation scenario, which is not limited here.

[0054] After obtaining multiple milk powder samples, the near-infrared spectrometer can be used to collect the spectral data of each milk powder sample to obtain the near-infrared absorption spectrum of each milk powder sample. Figure 2 , which shows a schematic diagram of the near-infrared absorption spectrum of a milk powder sample provided by an embodiment of the present invention. The spectral data in the near-infrared absorption spectrum represents the absorption intensity of the milk powder sample to light of different wavelengths, that is, the horizontal axis of the near-infrared absorption spectrum represents the wavelength, and the vertical axis represents the absorbance. In an embodiment of the present invention, the sampling interval of the near-infrared absorption spectrum is set to 1nm, that is, the spectral data is collected once every 1nm of wavelength. The sampling interval can also be set by the implementer according to the specific implementation scenario, which is not limited here.

[0055] Since the selection of characteristic bands is of key significance for improving the analysis accuracy and efficiency during the spectral analysis process, the embodiment of the present invention also needs to obtain multiple characteristic bands of the copper element. There are many methods for selecting the characteristic bands. For example, the original spectrum of the copper element can be transformed to obtain a transformed spectrum, and the original spectrum and the transformed spectrum can be subjected to correlation analysis and stepwise regression analysis to determine the characteristic bands of the copper element. Generally speaking, the characteristic bands of the copper element in the near-infrared absorption spectrum are bands such as 350-550nm, 800-1200nm and 1300-1500nm. Since there is an overlap between some characteristic bands of the copper element and the characteristic bands of the lead element during the spectral analysis process, which affects the accuracy of the subsequent copper content analysis of the milk powder sample, the embodiment of the present invention also needs to obtain the characteristic bands of the lead element, and among all the characteristic bands of the copper element, the characteristic bands that overlap with the characteristic bands of the lead element are used as the overlapping bands of the copper element, and the characteristic bands that do not overlap are used as the non-overlapping bands of the copper element. The selection of the characteristic bands of the copper element and the lead element is a technical means well known to those skilled in the art, which will not be elaborated here.

[0056] For example: suppose 1-10nm is a characteristic band of copper element, and lead element has a characteristic band of 5-15nm. At this time, there is an overlap between the band of 1-10nm and the band of 5-15nm, so the characteristic band of 1-10nm is regarded as the overlapping band.

[0057] Step S2: taking any milk powder sample as a target sample, and obtaining the copper content evaluation value of the target sample in each non-overlapping band according to the distribution of absorbance at each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample.

[0058] The purpose of the embodiment of the present invention is to evaluate whether the mixing is uniform based on the copper content of milk powder samples at different positions in a milk powder mixer. In the subsequent steps, any milk powder sample can be analyzed. Therefore, any milk powder sample is first used as a target sample. Considering that the absorbance in a certain characteristic band in the near-infrared absorption spectrum of the target sample has a certain positive correlation with the copper content reflected by the characteristic band, and the non-overlapping bands indicate that there is no overlap in the characteristic bands between the copper element and the lead element, it means that when the copper content in the target sample is analyzed in the non-overlapping bands, it is basically not affected by the lead element. Therefore, the distribution of the absorbance of each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample can be analyzed, and the copper content evaluation value of each non-overlapping band obtained reflects the copper content of the target sample in each non-overlapping band.

[0059] Preferably, in one embodiment of the present invention, the method for obtaining the copper content evaluation value of the target sample in each non-overlapping band specifically includes:

[0060] Firstly, since the greater the absorbance of each wavelength in the non-overlapping band, the greater the copper content that can be reflected by the non-overlapping band, the absorbance of all wavelengths in the near-infrared absorption spectrum of the target sample in each non-overlapping band can be integrated and normalized to obtain the first evaluation value of the target sample in each non-overlapping band. The larger the first evaluation value, the greater the level of absorbance of all wavelengths in the near-infrared absorption spectrum of the target sample in each non-overlapping band, and further the greater the copper content reflected by each non-overlapping band, which provides a data basis for the subsequent calculation of the copper content evaluation value of the target sample in each non-overlapping band.

[0061] In an embodiment of the present invention, the sum of the absorbances of all wavelengths in each non-overlapping band of the near-infrared absorption spectrum of the target sample can be used as the total absorbance of the near-infrared absorption spectrum in each non-overlapping band, so as to realize the integration of the absorbances of all wavelengths in the near-infrared absorption spectrum of the target sample in each non-overlapping band, and the total absorbance of each non-overlapping band is used as the numerator, and the maximum value of the total absorbance of the near-infrared absorption spectrum in all non-overlapping bands is used as the denominator, and the ratio is used as the first evaluation value of the target sample in each non-overlapping band to realize normalization processing. In other embodiments of the present invention, the maximum and minimum value normalization processing method can also be used, which is not limited here.

[0062] Then, the larger the maximum value of the absorbance of all wavelengths in each non-overlapping band of the near-infrared absorption spectrum of the target sample, the larger the absorbance of each wavelength in the non-overlapping band is, which further indicates that the copper content reflected in each non-overlapping band is greater. Therefore, the maximum value of the absorbance of all wavelengths in each non-overlapping band of the near-infrared absorption spectrum of the target sample is normalized to obtain the second evaluation value of the target sample in each non-overlapping band. The larger the second evaluation value is, the greater the copper content reflected in each non-overlapping band is, which provides a data basis for the subsequent calculation of the copper content evaluation value of the target sample in each non-overlapping band.

[0063] In one embodiment of the present invention, the maximum absorbance of all wavelengths in the near-infrared absorption spectrum of the target sample in each non-overlapping band is used as the numerator, the maximum absorbance of the near-infrared absorption spectrum in all non-overlapping bands is used as the denominator, and the ratio is used as the second evaluation value of the target sample in each non-overlapping band to achieve normalization processing. In other embodiments of the present invention, the maximum and minimum normalization processing method can also be used, which is not limited here.

[0064] Finally, through the above analysis, it can be seen that the larger the first evaluation value and the second evaluation value of the target sample in each non-overlapping band, the greater the copper content reflected in each non-overlapping band. Therefore, the first evaluation value and the second evaluation value of the target sample in each non-overlapping band are combined to obtain the copper content evaluation value of the target sample in each non-overlapping band. The larger the copper content evaluation value of each non-overlapping band, the greater the copper content of the target sample in each non-overlapping band.

[0065] In an embodiment of the present invention, the product value or sum value of the first evaluation value and the second evaluation value of the target sample in each non-overlapping band can be used as the copper content evaluation value of the target sample in each non-overlapping band to achieve a combination of the two, which is not limited here.

[0066] The expression of the copper content evaluation value of the target sample in each non-overlapping band can be specifically expressed as:

[0067] ;

[0068] in, Indicates that the target sample is The copper content evaluation value of non-overlapping bands; Indicates the near infrared absorption spectrum of the target sample at The total absorbance of non-overlapping bands; Indicates the near infrared absorption spectrum of the target sample at The total absorbance of non-overlapping bands; Indicates the number of non-overlapping bands; It represents the maximum value function; Indicates a collection symbol; The near infrared absorption spectrum of the target sample is The maximum value of the absorbance at all wavelengths in non-overlapping bands; The near infrared absorption spectrum of the target sample is The maximum value of the absorbance at all wavelengths in non-overlapping bands; Indicates that the target sample is The first evaluation value of non-overlapping bands; Indicates that the target sample is The second evaluation value of non-overlapping bands.

[0069] The copper content evaluation value of each milk powder sample in each non-overlapping band can be obtained by the same method as above.

[0070] Step S3: According to the change of the absorbance of each wavelength in each overlapping band of the enhanced spectrum of the target sample, the influence of the lead element in each overlapping band is obtained; based on the influence degree, the absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is adjusted to obtain the adjusted absorbance of each wavelength in each overlapping band; according to the distribution of the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample, the copper content evaluation value of the target sample in each overlapping band is obtained.

[0071] Since the overlapping bands indicate that the characteristic bands between the copper element and the lead element overlap, it means that the analysis of the copper content in the overlapping bands will be affected by the lead element. Specifically, the presence of the lead element will cause the absorbance of the near-infrared absorption spectrum of the target sample in the overlapping bands to be higher. If the above method is directly used to calculate the copper content evaluation value of the target sample in each overlapping band, the calculation result will be higher, thereby reducing the accuracy of subsequent analysis. Therefore, the embodiment of the present invention first enhances the near-infrared absorption spectrum of the target sample to obtain an enhanced spectrum of the target sample, so that some weak spectral changes in the near-infrared absorption spectrum of the target sample are amplified, thereby improving the accuracy of subsequent analysis of the degree of influence of the lead element.

[0072] Preferably, in one embodiment of the present invention, the near-infrared absorption spectrum of the target sample can be subjected to second-order difference processing to obtain an enhanced spectrum of the target sample. Second-order difference processing is a technical means well known to those skilled in the art and will not be elaborated here. In other embodiments of the present invention, existing enhancement methods such as Savitzky-Golay smoothing filtering or multivariate scattering correction may also be used, which are not limited here.

[0073] Compared with the near-infrared absorption spectrum of copper, the absorbance at each wavelength and the degree of absorbance change in the near-infrared absorption spectrum of lead are smaller. Therefore, when the lead element in the overlapping band has an impact on the copper content detection, it means that the lead content reflected by the overlapping band is greater than the copper content, which will cause the absorbance of the enhanced spectrum of the target sample at each wavelength in the overlapping band and the degree of absorbance change to be relatively small. Therefore, the change of absorbance at each wavelength in each overlapping band of the enhanced spectrum of the target sample can be analyzed, and the degree of influence obtained can be used to reflect the degree of influence of the lead element in the analysis of the copper content in the overlapping band, so as to facilitate the subsequent elimination of the influence of the lead element on the copper content detection of the target sample based on the degree of influence, and improve the accuracy of the subsequent calculation and analysis of the degree of unevenness of the batch of milk powder to be tested.

[0074] Preferably, in one embodiment of the present invention, the method for obtaining the influence degree of the lead element in each overlapping band specifically includes:

[0075] See also Figure 3 , which shows a flow chart of a method for obtaining the influence of lead elements in each overlapping band provided by an embodiment of the present invention.

[0076] Step S301: taking any overlapping band as a target overlapping band, and obtaining a first impact factor of the lead element in the target overlapping band according to the difference in absorbance of adjacent wavelengths of the enhanced spectrum of the target sample in the target overlapping band.

[0077] First, any overlapping band is taken as the target overlapping band. From the above analysis, it can be seen that when the lead element in the overlapping band has an influence on the copper content detection, it will cause the degree of change of the absorbance of the enhanced spectrum of the target sample at each wavelength in the target overlapping band to be relatively small. Therefore, the degree of change of the absorbance of the enhanced spectrum of the target sample in the target overlapping band can be analyzed, and the first influence factor of the lead element in the target overlapping band is obtained according to the difference in absorbance of adjacent wavelengths of the enhanced spectrum of the target sample in the target overlapping band. The smaller the first influence factor, the smaller the degree of change of the absorbance of the enhanced spectrum of the target sample in the target overlapping band, and further the greater the influence of the lead element in the target overlapping band on the copper content detection, which provides a data basis for the subsequent accurate calculation of the influence of the lead element in the target overlapping band.

[0078] Preferably, in one embodiment of the present invention, the method for obtaining the first impact factor of the lead element in the target overlapping band specifically includes:

[0079] Any two adjacent wavelengths in the target overlapping band are taken as a wavelength group. The smaller the difference in absorbance between the two wavelengths in the wavelength group, the smaller the change in absorbance between the two wavelengths in the wavelength group. Therefore, the absorbance difference value of each wavelength group in the target overlapping band can be obtained according to the difference in absorbance between the two wavelengths in each wavelength group in the target overlapping band of the enhanced spectrum of the target sample. The smaller the absorbance difference value, the smaller the change in absorbance between the two wavelengths in the wavelength group in the enhanced spectrum of the target sample, which provides a data basis for the subsequent analysis of the change in absorbance of the enhanced spectrum of the target sample in the target overlapping band.

[0080] In one embodiment of the present invention, the absolute value of the difference in absorbance of the enhanced spectrum of the target sample at two wavelengths in each wavelength group in the target overlapping band can be used as the absorbance difference value of each wavelength group in the target overlapping band to analyze the difference between the two.

[0081] Then, the overall level of the absorbance difference values ​​of all wavelength groups in the target overlapping band can be analyzed to obtain the first influencing factor of the lead element in the target overlapping band. The smaller the first influencing factor, the smaller the degree of change in the absorbance of the enhanced spectrum of the target sample at each wavelength in the target overlapping band, which further indicates that the lead element in the target overlapping band has a greater impact on the copper content detection.

[0082] In an embodiment of the present invention, the average value or median value of the absorbance difference values ​​of all wavelength groups in the target overlapping band can be used as the first influencing factor of the lead element in the target overlapping band to achieve an overall level analysis of the absorbance difference values ​​of all wavelength groups in the target overlapping band, which is not limited here.

[0083] The expression of the first impact factor of the lead element in the target overlapping band can be specifically, for example, as follows:

[0084] ;

[0085] in, Indicates the first impact factor of lead element in the target overlapping band; and They represent the enhanced spectrum of the target sample in the target overlapping band. The absorbance of two wavelengths in a wavelength group; Indicates the number of wavelength groups in the target overlapping bands.

[0086] Step S302: Obtaining a second impact factor of the lead element in the target overlapping band according to the distribution of absorbance at each wavelength in the target overlapping band of the enhanced spectrum of the target sample.

[0087] From the above analysis, it can be seen that when the lead element in the overlapping band has an impact on the copper content detection, it means that the lead element content reflected by the overlapping band is greater than the copper element content. At this time, the absorbance of the enhanced spectrum of the target sample at each wavelength in the target overlapping band will be relatively small. Therefore, according to the distribution of the absorbance of the enhanced spectrum of the target sample at each wavelength in the target overlapping band, the second influencing factor of the lead element in the target overlapping band can be obtained. The smaller the second influencing factor, the smaller the absorbance of the enhanced spectrum of the target sample at each wavelength in the target overlapping band, and further the greater the influence of the lead element in the target overlapping band on the copper content detection, which provides a data basis for the subsequent accurate calculation of the influence of the lead element in the target overlapping band.

[0088] Preferably, in one embodiment of the present invention, the method for obtaining the second impact factor of the lead element in the target overlapping band specifically includes:

[0089] Similar to the above-mentioned process of analyzing the copper content evaluation value of the target sample in each non-overlapping band, first, the absorbance of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band is integrated and normalized to obtain the first coefficient of the enhanced spectrum of the target sample in the target overlapping band. The smaller the first coefficient is, the less copper content reflected by the enhanced spectrum of the target sample in the target overlapping band, and the greater the lead content reflected by it, which further indicates that the lead element in the target overlapping band has a greater impact on the copper content detection, providing a data basis for the subsequent calculation of the second influencing factor of the lead element in the target overlapping band.

[0090] In an embodiment of the present invention, the sum of the absorbances of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band can be used as the total absorbance of the enhanced spectrum in the target overlapping band, so as to realize the integration of the absorbances of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band. The total absorbance of the target overlapping band is used as the numerator, the maximum value of the total absorbance of the enhanced spectrum in all overlapping bands is used as the denominator, and the ratio is used as the first coefficient of the enhanced spectrum of the target sample in the target overlapping band to realize normalization processing. In other embodiments of the present invention, the maximum and minimum value normalization processing method can also be used, which is not limited here.

[0091] Then, the maximum absorbance of the enhanced spectrum of the target sample at all wavelengths in each overlapping band is normalized to obtain the second coefficient of the enhanced spectrum of the target sample in the target overlapping band. Similarly, the smaller the second coefficient is, the less copper content reflected by the enhanced spectrum of the target sample in the target overlapping band, and the greater the lead content reflected, indicating that the lead element in the target overlapping band has a greater influence on the copper content detection, thereby providing a data basis for the subsequent calculation of the second influencing factor of the lead element in the target overlapping band.

[0092] In one embodiment of the present invention, the maximum value of the absorbance of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band is used as the numerator, the maximum value of the absorbance of the enhanced spectrum of the target sample in all overlapping bands is used as the denominator, and the ratio is used as the second coefficient of the enhanced spectrum of the target sample in the target overlapping band to achieve normalization processing. In other embodiments of the present invention, the maximum and minimum normalization processing method can also be used, which is not limited here.

[0093] Finally, the first coefficient and the second coefficient are combined to obtain the second impact factor of the lead element in the target overlapping band.

[0094] In an embodiment of the present invention, the product value or sum of the first coefficient and the second coefficient of the enhanced spectrum of the target sample in the target overlapping band can be used as the second influencing factor of the lead element in the target overlapping band to achieve a combination of the two, which is not limited here.

[0095] The expression of the second impact factor of the lead element in the target overlapping band can be specifically, for example, as follows:

[0096] ;

[0097] in, Indicates the second impact factor of lead element in the target overlapping band; It represents the total absorbance of the enhanced spectrum of the target sample in the target overlapping band; Indicates the enhanced spectrum of the target sample at The total absorbance of the overlapping bands; Indicates the number of overlapping bands; represents the maximum value function; Indicates a collection symbol; It represents the maximum value of the absorbance of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band; Indicates the enhanced spectrum of the target sample at The maximum absorbance of all wavelengths in the overlapping bands; represents the first coefficient of the enhanced spectrum of the target sample in the target overlapping band; The second coefficient representing the enhanced spectrum of the target sample in the target overlapping band.

[0098] Step S303: Obtain the influence degree of the lead element in the target overlapping band according to the first influence factor and the second influence factor. The first influence factor and the second influence factor are both negatively correlated with the influence degree, and the influence degree is a normalized value.

[0099] From the above analysis, it can be seen that the smaller the first influencing factor and the second influencing factor of the lead element in the target overlapping band are, the greater the influence of the lead element on the copper content detection in the target overlapping band is. Therefore, the first influencing factor and the second influencing factor of the lead element in the target overlapping band can be combined to obtain the influence degree of the lead element in the target overlapping band, among which the first influencing factor and the second influencing factor are negatively correlated with the influence degree, and the influence degree is a normalized value.

[0100] It should be noted that the 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.

[0101] In one embodiment of the present invention, the normalization processing can be specifically, for example, maximum and minimum value normalization processing, and the normalization in subsequent steps can all adopt maximum and minimum value normalization processing. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of numerical values, which will not be described in detail.

[0102] The expression of the influence of lead element in the target overlapping band can be specifically expressed as:

[0103] ;

[0104] in, Indicates the influence of lead element in the target overlapping band; Indicates the first impact factor of lead element in the target overlapping band; Indicates the second impact factor of lead element in the target overlapping band; represents the normalization function; Indicates the preset adjustment parameter to prevent the denominator from being 0. The value range is usually In one embodiment of the present invention, Set to 0.01, The specific value of can also be set by the implementer according to the specific implementation scenario and is not limited here.

[0105] From the above analysis, it can be seen that the influence of lead element on the analysis of copper content in overlapping bands is specifically manifested in that the presence of lead element will cause the absorbance of the near-infrared absorption spectrum of the target sample in the overlapping bands to be higher. Therefore, based on the influence of lead element in each overlapping band, the absorbance of each wavelength in the near-infrared absorption spectrum of the target sample in each overlapping band can be adjusted to obtain the adjusted absorbance of each wavelength in the near-infrared absorption spectrum in each overlapping band. Subsequently, based on the adjusted absorbance of each wavelength in the overlapping band, the copper content reflected in the overlapping band can be accurately analyzed to eliminate the interference of lead element on the copper content analysis.

[0106] Preferably, in one embodiment of the present invention, the method for obtaining the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample specifically includes:

[0107] First, any wavelength in the target overlapping band is taken as the target wavelength. The presence of lead element will cause the absorbance of the near-infrared absorption spectrum of the target sample in the overlapping band to be higher, and the greater the influence of the lead element, the greater the degree of deviation. Therefore, the product value of the influence of the lead element in the target overlapping band and the absorbance of the target wavelength of the near-infrared absorption spectrum of the target sample in the target overlapping band can be used as the absorbance adjustment amount of the target wavelength, and then the difference between the absorbance of the target wavelength of the near-infrared absorption spectrum of the target sample in the target overlapping band and the absorbance adjustment amount is used as the adjusted absorbance of the target wavelength of the near-infrared absorption spectrum of the target sample in the target overlapping band.

[0108] The expression of the adjusted absorbance of the near-infrared absorption spectrum of the target sample at the target wavelength in the target overlapping band can be specifically, for example, as follows:

[0109] ;

[0110] in, represents the adjusted absorbance of the target wavelength in the target overlapping band of the near infrared absorption spectrum of the target sample; It represents the absorbance of the target wavelength in the target overlapping band of the near infrared absorption spectrum of the target sample; Indicates the influence of lead element in the target overlapping band.

[0111] The same method as above can be used to obtain the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample, thereby eliminating the influence of the lead element on the copper content detection. Then, by analogy with the calculation process of the copper content evaluation value of the target sample in each non-overlapping band, the distribution of the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is analyzed, and the copper content evaluation value of the target sample in each overlapping band is accurately calculated. The copper content evaluation value of each overlapping band reflects the copper content of the target sample in each overlapping band.

[0112] Preferably, in one embodiment of the present invention, the method for obtaining the copper content evaluation value of the target sample in each overlapping band specifically includes:

[0113] Similar to the above-mentioned process of analyzing the copper content evaluation value of the target sample in each non-overlapping band, the adjusted absorbance of all wavelengths of the near-infrared absorption spectrum of the target sample in each overlapping band is first integrated and normalized to obtain the third evaluation value of the target sample in each overlapping band. The larger the third evaluation value, the greater the copper content reflected by each overlapping band, thereby providing a data basis for the subsequent calculation of the copper content evaluation value of the target sample in each overlapping band.

[0114] In an embodiment of the present invention, the sum of the adjusted absorbances of all wavelengths in each non-overlapping band of the near-infrared absorption spectrum of the target sample can be used as the total adjusted absorbance of the near-infrared absorption spectrum in each overlapping band, so as to realize the integration of the adjusted absorbances of all wavelengths in each overlapping band of the near-infrared absorption spectrum of the target sample, and the total adjusted absorbance of each overlapping band is used as the numerator, the maximum value of the total adjusted absorbance of the near-infrared absorption spectrum in all overlapping bands is used as the denominator, and the ratio is used as the third evaluation value of the target sample in each overlapping band to realize normalization processing. In other embodiments of the present invention, the maximum and minimum value normalization processing method can also be used, which is not limited here.

[0115] Then, the maximum value of the adjusted absorbance of all wavelengths in each overlapping band of the near-infrared absorption spectrum of the target sample is normalized to obtain the fourth evaluation value of the target sample in each overlapping band. Similarly, the larger the fourth evaluation value, the greater the copper content reflected by each overlapping band, which provides a data basis for the subsequent calculation of the copper content evaluation value of the target sample in each overlapping band.

[0116] In one embodiment of the present invention, the maximum absorbance of the near-infrared absorption spectrum of the target sample at all wavelengths in each overlapping band is used as the numerator, the maximum absorbance of the near-infrared absorption spectrum in all overlapping bands is used as the denominator, and the ratio is used as the fourth evaluation value of the target sample in each overlapping band to achieve normalization processing. In other embodiments of the present invention, the maximum and minimum normalization processing method can also be used, which is not limited here.

[0117] Then, the third evaluation value and the fourth evaluation value of the target sample in each overlapping band are integrated to obtain the copper content evaluation value of the target sample in each overlapping band.

[0118] In an embodiment of the present invention, the product or sum of the third evaluation value and the fourth evaluation value of the target sample in each overlapping band can be used as the copper content evaluation value of the target sample in each overlapping band to achieve a combination of the two, which is not limited here.

[0119] The expression of the copper content evaluation value of the target sample in each overlapping band can be specifically, for example, as follows:

[0120] ;

[0121] in, Indicates that the target sample is The copper content evaluation value of the overlapping bands; Indicates the near infrared absorption spectrum of the target sample at The total adjusted absorbance of the overlapping bands; Indicates the near infrared absorption spectrum of the target sample at The total adjusted absorbance of the overlapping bands; Indicates the number of overlapping bands; It represents the maximum value function; Represents a collection symbol; Indicates the near infrared absorption spectrum of the target sample at The maximum value of the adjusted absorbance at all wavelengths in the overlapping bands; Indicates the near infrared absorption spectrum of the target sample at The maximum value of the adjusted absorbance at all wavelengths in the overlapping bands; Indicates that the target sample is The third evaluation value of the overlapping bands; Indicates that the target sample is The fourth evaluation value of the overlapping bands.

[0122] The copper content evaluation value of each milk powder sample in each overlapping band can be obtained by the same method as above. Combined with the copper content evaluation value of each milk powder sample in each non-overlapping band obtained above, the copper content evaluation value of each milk powder sample in each characteristic band is obtained.

[0123] Step S4: Obtain the degree of non-uniformity of the batch of milk powder to be tested according to the differences in the copper content evaluation values ​​in each characteristic band between different milk powder samples.

[0124] Through the above analysis process, the influence of lead element on the copper content detection of milk powder samples was eliminated, and the copper content evaluation value of each milk powder sample in each characteristic band was obtained. The larger the copper content evaluation value, the greater the copper content reflected by the characteristic band of the milk powder sample, and the greater the difference in copper content of each milk powder sample, the more uneven the distribution of copper element in the test batch of milk powder in the milk powder mixer, which further indicates that the mixing effect is poor. Therefore, the difference in copper content evaluation values ​​in each characteristic band between different milk powder samples can be analyzed, and the degree of uneven distribution of copper element in the test batch of milk powder can be reflected by the obtained unevenness. The greater the unevenness, the more uneven the distribution of copper element in the test batch of milk powder.

[0125] Preferably, in one embodiment of the present invention, the method for obtaining the degree of unevenness of the batch of milk powder to be tested specifically includes:

[0126] See also Figure 4 , which shows a flow chart of a method for obtaining the degree of unevenness of a batch of milk powder to be tested provided by an embodiment of the present invention.

[0127] Step S401: Analyze the overall level of the copper content evaluation value of the target sample in all characteristic bands to obtain the overall evaluation value of the target sample.

[0128] Since the larger the copper content evaluation value of the milk powder sample in each characteristic band, the more copper content of the milk powder sample reflected by each characteristic band, the overall level of the copper content evaluation value of the target sample in all characteristic bands can be analyzed to obtain the overall evaluation value of the target sample. The larger the overall evaluation value, the more copper content in the target sample.

[0129] In an embodiment of the present invention, the average or median of the copper content evaluation values ​​of the target sample in all characteristic bands can be used as the overall evaluation value of the target sample to achieve an overall level analysis of the copper content evaluation values ​​of the target sample in all characteristic bands. This is not limited here, and the overall evaluation value of each milk powder sample can be obtained by the same method as above.

[0130] Step S402: taking any two milk powder samples as a sample group, and obtaining the difference degree of copper content in each sample group according to the difference of the overall evaluation values ​​of the two milk powder samples in each sample group.

[0131] Since each milk powder sample is taken from a different position of the milk powder batch to be tested, the greater the difference in copper content of each milk powder sample, the more uneven the distribution of copper in the milk powder batch to be tested. Therefore, any two milk powder samples can be used as a sample group, and the difference in the copper content of each sample group can be obtained based on the difference in the overall evaluation value of the two milk powder samples in each sample group. The greater the difference in copper content, the greater the difference in copper content between the two milk powder samples in the sample group. This provides a data basis for the subsequent calculation of the unevenness of the milk powder batch to be tested.

[0132] In one embodiment of the present invention, the absolute value of the difference between the overall evaluation values ​​of two milk powder samples in each sample group can be used as the degree of difference in copper content of each sample group to analyze the difference between the two.

[0133] Step S403: Obtain the degree of non-uniformity of the batch of milk powder to be tested according to the degree of difference in copper content of all sample groups.

[0134] The greater the difference in copper content in each sample group, the greater the difference in copper content between the two milk powder samples in the sample group. Therefore, the degree of unevenness of the milk powder batch to be tested can be obtained based on the degree of difference in copper content in all sample groups. The greater the degree of unevenness, the greater the overall level of difference in copper content in all sample groups, which in turn indicates that the copper content distribution in the milk powder batch to be tested is more uneven.

[0135] Preferably, in one embodiment of the present invention, the method for obtaining the degree of unevenness of the batch of milk powder to be tested further comprises:

[0136] The overall level of copper content differences in all sample groups was analyzed and normalized to obtain the degree of heterogeneity of the tested batch of milk powder.

[0137] In the embodiment of the present invention, the average value or median of the copper content difference of all sample groups can be used as the unevenness of the batch of milk powder to be tested to achieve the overall level analysis of the copper content difference of all sample groups, which is not limited here.

[0138] The expression for the degree of non-uniformity of the batch of milk powder to be tested can be specifically, for example, as follows:

[0139] ;

[0140] in, Indicates the degree of unevenness of the batch of milk powder to be tested; and Respectively represent The overall evaluation value of two milk powder samples in a sample group; Indicates The degree of difference in copper content among the sample groups; represents the number of sample groups; Represents the normalization function.

[0141] After obtaining the unevenness degree of the tested batch of milk powder, the stirring effect of the tested batch of milk powder can be evaluated based on the unevenness degree.

[0142] In one embodiment of the present invention, a threshold value can be set. If the unevenness is greater than a preset threshold value, it means that the uniformity of the distribution of copper elements in the tested batch of milk powder is relatively poor, which further means that the stirring effect of the tested batch of milk powder is poor. In this case, it is necessary to continue stirring the tested batch of milk powder in the milk powder mixer. At the same time, after each stirring, the above-mentioned calculation and analysis process can be used to determine whether it is necessary to continue stirring until the expected stirring effect is achieved. In one embodiment of the present invention, the preset threshold value is set to 0.5. The specific value of the preset threshold value can also be set by the implementer according to the specific implementation scenario, which is not limited here.

[0143] An embodiment of the present invention provides a milk powder trace element detection system based on spectral analysis, the system comprising a memory, a processor and a computer program, wherein the memory is used to store the corresponding computer program, the processor is used to run the corresponding computer program, and when the computer program runs in the processor, the method described in steps S1 to S4 can be implemented.

[0144] In summary, the embodiment of the present invention first obtains the near-infrared absorption spectra of the milk powder samples of the tested batch of milk powder at different positions in the milk powder mixer, and simultaneously obtains multiple characteristic bands of the copper element, wherein the near-infrared absorption spectrum includes absorbances of different wavelengths, and the characteristic bands include non-overlapping bands and overlapping bands; any milk powder sample is taken as a target sample, and according to the distribution of absorbances of each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample, an evaluation value of the copper content of the target sample in each non-overlapping band is obtained; the near-infrared absorption spectrum of the target sample is enhanced to obtain an enhanced spectrum of the target sample; and according to the distribution of absorbances of each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample, an evaluation value of the copper content of the target sample in each non-overlapping band is obtained. The influence degree of lead element in each overlapping band is obtained by measuring the change of absorbance of each wavelength in the overlapping bands; based on the influence degree, the absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is adjusted to obtain the adjusted absorbance of each wavelength in each overlapping band; according to the distribution of the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample, the copper content evaluation value of the target sample in each overlapping band is obtained; according to the difference in the copper content evaluation values ​​of different milk powder samples in each characteristic band, the unevenness degree of the batch of milk powder to be tested is obtained; and based on the unevenness degree, the batch of milk powder to be tested is stirred.

[0145] It should be noted that the sequence of the above embodiments of the present invention is for description only 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 detecting trace elements in milk powder based on spectral analysis, characterized in that: The method comprises: Acquire near-infrared absorption spectra of milk powder samples of the tested batch of milk powder at different positions in the milk powder mixer, and simultaneously acquire multiple characteristic bands of the copper element, wherein the near-infrared absorption spectrum includes absorbances at different wavelengths, and the characteristic bands include non-overlapping bands and overlapping bands; Taking any milk powder sample as a target sample, obtaining the copper content evaluation value of the target sample in each non-overlapping band according to the distribution of absorbance at each wavelength in each non-overlapping band of the near-infrared absorption spectrum of the target sample; According to the change of the absorbance of each wavelength in each overlapping band of the enhanced spectrum of the target sample, the influence degree of the lead element in each overlapping band is obtained; based on the influence degree, the absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample is adjusted to obtain the adjusted absorbance of each wavelength in each overlapping band; according to the distribution of the adjusted absorbance of each wavelength in each overlapping band of the near-infrared absorption spectrum of the target sample, the copper content evaluation value of the target sample in each overlapping band is obtained; According to the difference in the copper content evaluation values ​​in each characteristic band between different milk powder samples, the degree of unevenness of the tested batch of milk powder is obtained; The degree of influence of lead element in each overlapping band is obtained as follows: Taking any overlapping band as a target overlapping band, obtaining a first impact factor of the lead element in the target overlapping band according to the difference in absorbance of adjacent wavelengths of the enhanced spectrum of the target sample in the target overlapping band; Obtaining a second impact factor of the lead element in the target overlapping band according to the distribution of absorbance of each wavelength of the enhanced spectrum of the target sample in the target overlapping band; Obtaining the influence degree of the lead element in the target overlapping band according to the first influence factor and the second influence factor, wherein both the first influence factor and the second influence factor are negatively correlated with the influence degree, and the influence degree is a normalized value; The step of obtaining the first influencing factor of the lead element in the target overlapping band comprises: Taking any two adjacent wavelengths in the target overlapping band as a wavelength group, obtaining the absorbance difference value of each wavelength group in the target overlapping band according to the difference in absorbance of the two wavelengths in each wavelength group in the target overlapping band of the enhanced spectrum of the target sample; Analyzing the overall level of the absorbance difference values ​​of all wavelength groups in the target overlapping band to obtain the first impact factor of the lead element in the target overlapping band; The obtaining of the second influencing factor of the lead element in the target overlapping band comprises: The absorbances of the enhanced spectrum of the target sample at all wavelengths in the target overlapping band are integrated and normalized to obtain a first coefficient of the enhanced spectrum of the target sample in the target overlapping band; Normalizing the maximum absorbance of all wavelengths of the enhanced spectrum of the target sample in each overlapping band to obtain a second coefficient of the enhanced spectrum of the target sample in the target overlapping band; The first coefficient and the second coefficient are combined to obtain a second impact factor of the lead element in the target overlapping band; The step of obtaining the adjusted absorbance of each wavelength in each overlapping band comprises: Any wavelength in the target overlapping band is used as the target wavelength; The product value of the influence degree of the lead element in the target overlapping band and the absorbance of the target wavelength of the near-infrared absorption spectrum of the target sample in the target overlapping band is used as the absorbance adjustment amount of the target wavelength; The difference between the absorbance of the target sample's near infrared absorption spectrum at the target wavelength in the target overlapping band and the absorbance adjustment amount is used as the adjusted absorbance of the target sample's near infrared absorption spectrum at the target wavelength in the target overlapping band; The step of obtaining the copper content evaluation value of the target sample in each overlapping band comprises: The adjusted absorbances of all wavelengths of the near-infrared absorption spectrum of the target sample in each overlapping band are integrated and normalized to obtain a third evaluation value of the target sample in each overlapping band; Normalizing the maximum value of the adjusted absorbance at all wavelengths of the near-infrared absorption spectrum of the target sample in each overlapping band to obtain a fourth evaluation value of the target sample in each overlapping band; The third evaluation value and the fourth evaluation value of the target sample in each overlapping band are integrated to obtain the copper content evaluation value of the target sample in each overlapping band.

2. The method for detecting trace elements in milk powder based on spectral analysis according to claim 1, characterized in that: The step of obtaining the copper content evaluation value of the target sample in each non-overlapping band comprises: The absorbance of all wavelengths of the near-infrared absorption spectrum of the target sample in each non-overlapping band is integrated and normalized to obtain a first evaluation value of the target sample in each non-overlapping band; Normalizing the maximum absorbance of all wavelengths of the near-infrared absorption spectrum of the target sample in each non-overlapping band to obtain a second evaluation value of the target sample in each non-overlapping band; The first evaluation value and the second evaluation value of the target sample in each non-overlapping band are integrated to obtain the copper content evaluation value of the target sample in each non-overlapping band.

3. The method for detecting trace elements in milk powder based on spectral analysis according to claim 1, characterized in that: The unevenness of the batch of milk powder to be tested comprises: Analyze the overall level of the copper content evaluation value of the target sample in all characteristic bands to obtain the overall evaluation value of the target sample; Taking any two milk powder samples as a sample group, and obtaining the difference degree of copper content in each sample group according to the difference of the overall evaluation values ​​of the two milk powder samples in each sample group; According to the difference degree of the copper content in all sample groups, the heterogeneity degree of the milk powder batch to be tested is obtained.

4. The method for detecting trace elements in milk powder based on spectral analysis according to claim 3, characterized in that: The method of obtaining the degree of heterogeneity of the batch of milk powder to be tested according to the degree of difference in the copper content of all sample groups comprises: The overall level of the copper content difference of all sample groups is analyzed and normalized to obtain the degree of heterogeneity of the batch of milk powder to be tested.

5. A milk powder trace element detection system based on spectral analysis, 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 4 are implemented.

Citation Information

Patent Citations

  • Method for simultaneously measuring activities of various enzymes by using multi-wavelength absorbing single channel

    CN102879343A

  • Goat milk tea preparation device with mixing structure and preparation method thereof

    CN113967438A

  • Simple determination of seed weights in crops using near infrared reflectance spectroscopy

    KR100934410B1

  • Method for quantifying the composition of fatty acid in perilla frutescens using nir

    KR1020100086217A

  • A method for distinguishing overlapping absorption bands of an infrared spectrum from one another

    WO1990010851A1