A nondestructive detection system and method for pineapple sugar content based on near infrared spectroscopy
By collecting pineapple sample and blank absorption spectra in near-infrared spectroscopy, an evaluation accuracy index is generated, which solves the problems of detection error and noise interference and improves the accuracy and credibility of pineapple sugar content detection.
Patent Information
- Application Number
- CN202410768234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Near-infrared spectroscopy has errors and noise interference in the detection results of pineapple sugar content, which affects the credibility of the measurement results, and the aging and loss of the instrument components will change the detection performance.
By collecting the sugar content value and blank absorption spectrum of the pineapple sample, the prediction accuracy coefficient and the baseline noise evaluation index are generated. Combined with the correlation analysis, the pineapple sugar content evaluation accuracy index is generated, and the pineapple sugar content accuracy confidence is output to reflect the accuracy of the test results.
The accuracy and reliability of near-infrared spectroscopy in detecting pineapple sugar content are improved, noise interference is reduced, and the reliability of detection results is enhanced.
Smart Images

Figure CN118443620B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of pineapple sugar content detection, in particular to a pineapple sugar content nondestructive detection system and method based on near infrared spectroscopy. Background Art
[0002] There are many methods for testing the sugar content of pineapples, including juice extraction, test paper method, near-infrared spectroscopy, etc. Among them, near-infrared spectroscopy is a very effective method that can quickly and non-destructively detect the sugar content in food samples. Near-infrared spectroscopy is based on the absorption characteristics of samples to near-infrared light. It uses the absorption, scattering and reflection characteristics of near-infrared light when interacting with samples, combined with the sugar content value of the sample to establish a learning model, thereby analyzing the information of the subsequent sugar content components of the pineapple sample. This spectrum ranges between visible light and mid-infrared light, with a wavelength of approximately 780 nanometers to 2500 nanometers.
[0003] After the sugar content model is determined by near-infrared spectroscopy, there is a certain error between the model and the actual detected sugar content value. At the same time, when using near-infrared spectroscopy detection equipment for spectral acquisition and analysis, the status or loss of instrument components will affect the detection capability. For example, the aging of optical components, the offset of the optical path, the attenuation of the light source, the wear of the probe, etc. will cause changes in the instrument's detection performance, resulting in noise mixed in the measured results, thereby affecting the measurement results and causing the measurement results to have low credibility.
[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention
[0005] The object of the present invention is to provide a pineapple sugar content nondestructive detection system and method based on near infrared spectroscopy to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A nondestructive detection method for pineapple sugar content based on near infrared spectroscopy, the specific steps comprising:
[0008] S1, from collected from the pineapples to be tested pineapple samples and numbered them, ;
[0009] S2, collect the Brix value of pineapple sample and carry out pre-treatment, generate evaluation determination coefficient and evaluation stability coefficient, described evaluation determination coefficient reflects the fit of Brix predicted value and Brix measured value that near infrared spectroscopy detection method detects pineapple sample, and described evaluation stability coefficient reflects the stability of Brix predicted value that near infrared spectroscopy detection method detects pineapple sample;
[0010] S3, preprocessing the evaluation determination coefficient and the evaluation stability coefficient to generate a prediction accuracy coefficient, wherein the prediction accuracy coefficient reflects the accuracy of the sugar content prediction value detected by the near infrared spectroscopy detection method;
[0011] S4, collecting a blank absorption spectrum of a near infrared spectroscopy detection method;
[0012] S5, pre-processing the blank absorption spectrum measured by the collected near-infrared spectroscopy detection method to generate a baseline noise evaluation index, wherein the baseline noise evaluation index reflects the influence degree of absorbance noise of the instrument used in the near-infrared absorption spectroscopy detection method;
[0013] S6, pre-processing the prediction accuracy coefficient and the baseline noise evaluation index to generate a pineapple sugar content assessment accuracy index, wherein the pineapple sugar content assessment accuracy index reflects the accuracy of the pineapple sugar content detected by near infrared spectroscopy;
[0014] S7. Compare the pineapple sugar content assessment accuracy index with the pineapple sugar content assessment threshold, and output the pineapple sugar content accuracy confidence, which reflects the detection accuracy of the pineapple sugar content.
[0015] Further, in S2, the sugar content value includes a sugar content prediction value and a sugar content measurement value, the sugar content prediction value is obtained by near infrared spectroscopy detection, and the sugar content measurement value is obtained by measuring with a sugar content meter. The predicted and measured values of sugar content of pineapples are respectively and express.
[0016] Furthermore, a correlation analysis is performed on the predicted sugar content and the measured sugar content to generate the predicted sugar content mean value and the measured sugar content mean value, based on the following formula:
[0017] ;
[0018] in is the predicted value of the mean sugar content, is a sugar content mean value measurement value, the sugar content mean value prediction value reflects the sugar content mean value of the pineapple sample detected by the near infrared spectroscopy detection method, and the sugar content mean value measurement value reflects the sugar content mean value of the pineapple sample measured by a sugar content measuring instrument;
[0019] Prediction of sugar content in pineapple , Sugar content measurement value and mean sugar content measurements Conduct correlation analysis to generate evaluation determination coefficients , the formula based on is:
[0020] ;
[0021] Among them, the evaluation determination coefficient It reflects the fit between the predicted value of sugar content of pineapple samples detected by near infrared spectroscopy and the measured value of sugar content;
[0022] Prediction of sugar content in pineapple , Sugar content average measurement value and the predicted value of mean sugar content Conduct correlation analysis to generate evaluation stability coefficients , the formula based on is: ;
[0023] Among them, the evaluation stability coefficient This reflects the stability of the predicted value of the sugar content of pineapple samples detected by near-infrared spectroscopy.
[0024] Furthermore, the stability coefficient and the evaluation coefficient of determination Perform correlation analysis to generate prediction accuracy coefficients , the formula based on is:
[0025] ;
[0026] in, To predict the accuracy coefficient, is the stable weight factor of the near infrared spectroscopy detection method, The value range is , the prediction accuracy coefficient This reflects the accuracy of the predicted value of sugar content detected by near-infrared spectroscopy.
[0027] Furthermore, the blank absorption spectrum is a near-infrared absorption spectrum of wavelength-absorbance when there is no sample in the light path measured by infrared spectroscopy detection method, and the blank absorption spectrum is wavelength point, The wavelength points are Said that The absorbance at a wavelength is given by express.
[0028] Further, in S5, correlation analysis is performed on the blank absorption spectrum, and an absorbance fitting value is generated by least squares fitting, based on the formula:
[0029] in, For the The absorbance fitting value at each wavelength point, and The constant term generated for the least squares fit;
[0030] Set the air absorbance spectrum The absorbance at a wavelength is given by Indicates that the absorbance fitting value and the air absorbance spectrum The absorbance at each wavelength Correlation analysis was performed to generate the baseline noise evaluation index. The formula used was:
[0031] ;
[0032] in, is the baseline noise evaluation index, is the instrument noise weight factor, The value range is The baseline noise evaluation index reflects the influence of the absorbance noise of the instrument used in the near-infrared absorption spectroscopy detection method.
[0033] Furthermore, the correlation analysis of the prediction accuracy coefficient and the baseline noise evaluation index was performed to generate the pineapple sugar content evaluation accuracy index based on the following formula:
[0034] ;
[0035] in, It is a pineapple sugar content assessment accuracy index, which reflects the accuracy of the pineapple sugar content detected by near infrared spectroscopy.
[0036] Furthermore, the pineapple sugar content assessment threshold is ,when When , the accuracy level of pineapple sugar content is level 1, and the confidence level of pineapple sugar content is 95%; when When , the accuracy level of pineapple sugar content is level 2, and the confidence level of pineapple sugar content is 80%; when When , the accuracy level of pineapple sugar content is level 3, and the confidence level of pineapple sugar content is 60%; when When the pineapple sugar content accuracy level is level four, the pineapple sugar content accuracy confidence level is 0%, and the pineapple sugar content accuracy confidence level reflects the detection accuracy of the pineapple sugar content.
[0037] The present invention also provides a pineapple sugar content non-destructive detection system based on near infrared spectroscopy, which is used to perform a pineapple sugar content non-destructive detection method based on near infrared spectroscopy, comprising:
[0038] A sample collection module, wherein the sample collection module is used to collect pineapple samples;
[0039] A data acquisition module, wherein the data acquisition module is used to collect the Brix value of the pineapple sample;
[0040] A first analysis module, the first analysis module is used to pre-process the sugar content value of the pineapple sample collected by the data collection module to generate a prediction accuracy coefficient;
[0041] A blank spectrum acquisition module, wherein the blank spectrum acquisition module is used to acquire a blank absorption spectrum;
[0042] A second analysis module, the second analysis module is used to pre-process the blank absorption spectrum collected by the blank spectrum collection module to generate a baseline noise evaluation index;
[0043] A third analysis module, the third analysis module is used to pre-process the prediction accuracy coefficient and the baseline noise evaluation index collected by the first analysis module and the second analysis module to generate a pineapple sugar content evaluation accuracy index;
[0044] A confidence assessment module is used to compare the pineapple sugar content assessment accuracy index with the pineapple sugar content assessment threshold, and output the pineapple sugar content accuracy confidence.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] The present invention proposes for the first time to conduct a correlation analysis between the detection result and the actual value of the sugar content of the pineapple, and generate a prediction accuracy coefficient, which reflects the deviation of the sugar content value measured by the near-infrared spectroscopy method; the instrument noise is also analyzed, and a baseline noise evaluation index reflecting the degree of influence of the absorbance noise of the instrument used in the near-infrared absorption spectroscopy detection method is generated by collecting a blank absorption spectrum of the near-infrared spectroscopy detection method, and a correlation analysis is conducted between the prediction accuracy coefficient and the baseline noise evaluation index to generate a pineapple sugar content evaluation accuracy index reflecting the accuracy of the pineapple sugar content detected by the near-infrared spectroscopy method, and the pineapple sugar content accuracy confidence is output, so as to evaluate the accuracy of the pineapple sugar content value detected by the near-infrared spectroscopy. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of the overall method flow of the present invention;
[0048] Figure 2 It is a system module diagram of the present invention. DETAILED DESCRIPTION
[0049] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0050] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0051] Example:
[0052] See also Figure 1 , the present invention provides a technical solution:
[0053] A non-destructive detection method for pineapple sugar content based on near infrared spectroscopy. When the light generated by the instrument is irradiated on the sample, the light interacts with the substance and follows a specific law to transfer the photon energy of a specific frequency to the substance. The quantitative analysis of sugar content by near infrared spectroscopy is based on the relationship between the near infrared light absorption intensity of the pineapple sample and the light-absorbing particles, and takes into account the relationship between the number of light-absorbing particles in the sample and the total number of sample particles. The absorption of a given light by a molecule is recorded by an instrument to obtain a molecular absorption spectrum, and a model training is performed on the molecular absorption spectrum and the actual pineapple sugar content, so as to determine the pineapple sugar content value for subsequent detection.
[0054] The invention performs correlation analysis on the detection result and the actual value of the sugar content of the pineapple to generate a prediction accuracy coefficient, and the prediction accuracy coefficient reflects the deviation degree of the sugar content value measured by the near infrared spectroscopy method.
[0055] When general equipment is collecting and analyzing spectra, the status or loss of instrument components will affect the detection capability of the equipment. For example, the aging of optical components, the deviation of the optical path, the attenuation of the light source, the wear of the probe, etc. will cause changes in the instrument's detection performance, resulting in noise mixed in the measured results, thus affecting the measurement results.
[0056] In view of the above, the specific steps of the present invention include:
[0057] Step 1: From collected from the pineapples to be tested pineapple samples and numbered them, , The pineapples to be tested are the entire set of pineapples whose sugar content is to be determined by near infrared spectroscopy. The number is much greater than ; Take samples of some pineapple samples from the pineapple for testing, and use the results as a reference to map the entire set of pineapples to be tested;
[0058] Step 2: Collect the sugar content value of the pineapple sample and pre-process it to generate the evaluation determination coefficient and the evaluation stability coefficient;
[0059] The sugar content value includes a sugar content prediction value and a sugar content measurement value. The sugar content prediction value is obtained by near infrared spectroscopy detection, and the sugar content measurement value is obtained by measuring with a sugar content measuring instrument. The predicted and measured values of sugar content of pineapples are respectively and express;
[0060] The predicted sugar content and the measured sugar content are correlated and the average sugar content predicted value and the average sugar content measured value are generated. The formula is as follows:
[0061] ;
[0062] in is the predicted value of the mean sugar content, is a sugar content mean value measurement value, the sugar content mean value prediction value reflects the sugar content mean value of the pineapple sample detected by the near infrared spectroscopy detection method, and the sugar content mean value measurement value reflects the sugar content mean value of the pineapple sample measured by a sugar content measuring instrument;
[0063] Prediction of sugar content in pineapple , Sugar content measurement value and mean sugar content measurements Conduct correlation analysis to generate evaluation determination coefficients , the formula based on is:
[0064] ;
[0065] Among them, the evaluation determination coefficient It reflects the fit between the predicted value of sugar content of pineapple sample detected by near infrared spectroscopy and the measured value of sugar content. The closer it is to 0, the better the fit between the predicted value of the sugar content of the pineapple sample detected by the near infrared spectroscopy and the measured value of the sugar content, and the more accurate the predicted value of the sugar content;
[0066] Prediction of sugar content in pineapple , Sugar content average measurement value and the predicted value of mean sugar content Conduct correlation analysis to generate evaluation stability coefficients , the formula based on is: ;
[0067] Among them, the evaluation stability coefficient It reflects the stability of the predicted value of the sugar content of pineapple samples detected by near infrared spectroscopy. The closer it is to 0, the better the stability of the predicted value of the sugar content of the pineapple sample detected by near-infrared spectroscopy, and the more accurate the predicted value of the sugar content.
[0068] Step 3: Preprocess the evaluation determination coefficient and evaluation stability coefficient to generate the prediction accuracy coefficient;
[0069] Evaluation of stability coefficient and the evaluation coefficient of determination Perform correlation analysis to generate prediction accuracy coefficients , the formula based on is:
[0070] ;
[0071] in, To predict the accuracy coefficient, is the stable weight factor of the near infrared spectroscopy detection method, The value range is , the prediction accuracy coefficient It reflects the accuracy of the predicted value of sugar content detected by near infrared spectroscopy. The closer it is to 0, the more accurate the predicted value of the sugar content of the pineapple sample detected by near-infrared spectroscopy is.
[0072] Since the sugar content measurement value is measured by the sugar content detector, and the sugar content detector detection value is related to the detection position, it can only be used as a reference value and cannot accurately reflect the sugar content value of the pineapple. When the near-infrared spectroscopy method is used to detect the sugar content of the pineapple, the baseline noise generated by the instrument will interfere with the near-infrared spectrum. Therefore, the present invention combines the visibility noise generated by the instrument used in the near-infrared spectroscopy method to evaluate and analyze the detection data of the near-infrared spectroscopy method, as follows:
[0073] Step 4: Collecting a blank absorption spectrum of the near infrared spectroscopy detection method;
[0074] The blank absorption spectrum is a near-infrared absorption spectrum of wavelength-absorbance when there is no sample in the light path measured by near-infrared spectroscopy detection method. wavelength point, The wavelength points are Said that The absorbance at a wavelength is given by express;
[0075] Step 5: pre-processing the blank absorption spectrum obtained by the near infrared spectroscopy detection method to generate a baseline noise evaluation index;
[0076] The blank absorption spectrum was subjected to correlation analysis, and the absorbance fitting value was generated by least square fitting, based on the formula: ;
[0077] in, For the The absorbance fitting value at each wavelength point, and The constant term generated for the least squares fit;
[0078] Set the air absorbance spectrum The absorbance at a wavelength is given by Indicates that the absorbance fitting value and the air absorbance spectrum The absorbance at each wavelength Correlation analysis was performed to generate the baseline noise evaluation index. The formula used was:
[0079] ;
[0080] in, is the baseline noise evaluation index, is the instrument noise weight factor, The value range is The baseline noise evaluation index reflects the influence of the absorbance noise of the instrument used in the near infrared absorption spectroscopy detection method. The closer the value is to 0, the less interference the baseline noise generated by the instrument will cause on the near-infrared spectrum.
[0081] Step 6: Preprocess the prediction accuracy coefficient and the baseline noise evaluation index to generate a pineapple sugar content evaluation accuracy index;
[0082] The correlation analysis of the prediction accuracy coefficient and the baseline noise evaluation index was performed to generate the pineapple sugar content evaluation accuracy index based on the following formula:
[0083] ;
[0084] in, It is a pineapple sugar content assessment accuracy index, which reflects the accuracy of the pineapple sugar content detected by near infrared spectroscopy.
[0085] Step 7: Compare the pineapple sugar content evaluation accuracy index with the pineapple sugar content evaluation threshold, and output the pineapple sugar content accuracy confidence level;
[0086] The pineapple sugar content evaluation threshold is ,when When , the accuracy level of pineapple sugar content is level 1, and the confidence level of pineapple sugar content is 95%; when When , the accuracy level of pineapple sugar content is level 2, and the confidence level of pineapple sugar content is 80%; when When , the accuracy level of pineapple sugar content is level 3, and the confidence level of pineapple sugar content is 60%; when When , the accuracy level of pineapple sugar content is level four, and the accuracy confidence level of pineapple sugar content is 0%.
[0087] Reference Figure 2 The present invention also provides a pineapple sugar content non-destructive detection system based on near infrared spectroscopy, which is used to perform a pineapple sugar content non-destructive detection method based on near infrared spectroscopy, comprising:
[0088] A sample collection module, wherein the sample collection module is used to collect pineapple samples;
[0089] A data acquisition module, wherein the data acquisition module is used to collect the Brix value of the pineapple sample;
[0090] A first analysis module, the first analysis module is used to pre-process the sugar content value of the pineapple sample collected by the data collection module to generate a prediction accuracy coefficient;
[0091] A blank spectrum acquisition module, wherein the blank spectrum acquisition module is used to acquire a blank absorption spectrum;
[0092] A second analysis module, the second analysis module is used to pre-process the blank absorption spectrum collected by the blank spectrum collection module to generate a baseline noise evaluation index;
[0093] A third analysis module, the third analysis module is used to pre-process the prediction accuracy coefficient and the baseline noise evaluation index collected by the first analysis module and the second analysis module to generate a pineapple sugar content evaluation accuracy index;
[0094] A confidence assessment module is used to compare the pineapple sugar content assessment accuracy index with the pineapple sugar content assessment threshold, and output the pineapple sugar content accuracy confidence.
[0095] Pineapple sugar content assessment threshold The value is 0.056. When , the accuracy level of pineapple sugar content is level 1, and the confidence level of pineapple sugar content is 95%; when When , the accuracy level of pineapple sugar content is level 2, and the confidence level of pineapple sugar content is 80%; when When , the accuracy level of pineapple sugar content is level 3, and the confidence level of pineapple sugar content is 60%; when When the pineapple sugar content accuracy level is level four, the pineapple sugar content accuracy confidence is 0%, the pineapple sugar content accuracy confidence reflects the detection accuracy of the pineapple sugar content, the higher the percentage of the pineapple sugar content accuracy confidence, the better the detection accuracy of the pineapple sugar content measured by near-infrared spectroscopy, and when the pineapple sugar content accuracy confidence is 0%, it means that the pineapple sugar content measured by near-infrared spectroscopy is unreliable.
[0096] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0097] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.
[0098] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A non-destructive detection method for pineapple sugar content based on near infrared spectroscopy. It is characterized in that The specific steps include: S1, from collected from the pineapples to be tested pineapple samples and numbered them, ; S2, collect the Brix value of pineapple sample and carry out pre-treatment, generate evaluation determination coefficient and evaluation stability coefficient, described evaluation determination coefficient reflects the fit of Brix predicted value and Brix measured value that near infrared spectroscopy detection method detects pineapple sample, and described evaluation stability coefficient reflects the stability of Brix predicted value that near infrared spectroscopy detection method detects pineapple sample; In S2, the sugar content value includes a sugar content prediction value and a sugar content measurement value, wherein the sugar content prediction value is obtained by near infrared spectroscopy detection, and the sugar content measurement value is obtained by measuring with a sugar content measuring instrument. The predicted and measured values of sugar content of pineapples are respectively and express; The predicted sugar content and the measured sugar content are correlated and the average sugar content predicted value and the average sugar content measured value are generated. The formula is as follows: in is the predicted value of the mean sugar content, is a sugar content average measurement value, the sugar content average prediction value reflects the sugar content average value of the pineapple sample detected by the near infrared spectroscopy detection method, and the sugar content average measurement value reflects the sugar content average value of the pineapple sample measured by a sugar content measuring instrument; Prediction of sugar content in pineapple , Sugar content measurement value and mean sugar content measurements Conduct correlation analysis to generate evaluation determination coefficients , the formula based on is: Among them, the evaluation determination coefficient It reflects the fit between the predicted value of sugar content of pineapple samples detected by near infrared spectroscopy and the measured value of sugar content; Prediction of sugar content in pineapple , Sugar content average measurement value and the predicted value of mean sugar content Conduct correlation analysis to generate evaluation stability coefficients , the formula based on is: Among them, the evaluation stability coefficient This reflects the stability of the predicted value of the sugar content of pineapple samples detected by near infrared spectroscopy; S3, preprocessing the evaluation determination coefficient and the evaluation stability coefficient to generate a prediction accuracy coefficient, wherein the prediction accuracy coefficient reflects the accuracy of the sugar content prediction value detected by the near infrared spectroscopy detection method; Evaluation of stability coefficient and the evaluation coefficient of determination Perform correlation analysis to generate prediction accuracy coefficients , the formula based on is: in, To predict the accuracy coefficient, is the stable weight factor of the near infrared spectroscopy detection method, The value range is , the prediction accuracy coefficient This reflects the accuracy of the predicted value of sugar content detected by near infrared spectroscopy; S4, collecting a blank absorption spectrum of a near infrared spectroscopy detection method; The blank absorption spectrum is a near-infrared absorption spectrum of wavelength-absorbance when there is no sample in the light path measured by near-infrared spectroscopy detection method. wavelength point, The wavelength points are Said that The absorbance at a wavelength is given by express; S5, pre-processing the blank absorption spectrum measured by the collected near-infrared spectroscopy detection method to generate a baseline noise evaluation index, wherein the baseline noise evaluation index reflects the influence degree of absorbance noise of the instrument used in the near-infrared absorption spectroscopy detection method; In S5, correlation analysis is performed on the blank absorption spectrum, and an absorbance fitting value is generated by least squares fitting, based on the formula: in, For the The absorbance fitting value at each wavelength point, and The constant term generated for the least squares fit; Air absorbance spectrum The absorbance at a wavelength is given by Indicates that the absorbance fitting value and the air absorbance spectrum The absorbance at each wavelength Correlation analysis was performed to generate the baseline noise evaluation index. The formula used was: in, is the baseline noise evaluation index, is the instrument noise weight factor, The value range is , the baseline noise evaluation index reflects the influence degree of absorbance noise of the instrument used in the near infrared absorption spectroscopy detection method; S6, pre-processing the prediction accuracy coefficient and the baseline noise evaluation index to generate a pineapple sugar content assessment accuracy index, wherein the pineapple sugar content assessment accuracy index reflects the accuracy of the pineapple sugar content detected by near infrared spectroscopy; The correlation analysis of the prediction accuracy coefficient and the baseline noise evaluation index was performed to generate the pineapple sugar content evaluation accuracy index based on the following formula: in, is a pineapple sugar content assessment accuracy index, which reflects the accuracy of the pineapple sugar content detected by near infrared spectroscopy; S7. Compare the pineapple sugar content assessment accuracy index with the pineapple sugar content assessment threshold, and output the pineapple sugar content accuracy confidence, which reflects the detection accuracy of the pineapple sugar content.
2. A nondestructive detection method for pineapple sugar content based on near infrared spectroscopy according to claim 1, Features: The pineapple sugar content evaluation threshold is ,when When , the accuracy level of pineapple sugar content is level 1, and the confidence level of pineapple sugar content is 95%; when When , the accuracy level of pineapple sugar content is level 2, and the confidence level of pineapple sugar content is 80%; when When , the accuracy level of pineapple sugar content is level 3, and the confidence level of pineapple sugar content is 60%; when When the pineapple sugar content accuracy level is level four, the pineapple sugar content accuracy confidence level is 0%, and the pineapple sugar content accuracy confidence level reflects the detection accuracy of the pineapple sugar content.
3. A pineapple sugar content non-destructive detection system based on near infrared spectroscopy, used for executing a pineapple sugar content non-destructive detection method based on near infrared spectroscopy according to claim 1, It is characterized in that include: A sample collection module, wherein the sample collection module is used to collect pineapple samples; A data acquisition module, wherein the data acquisition module is used to collect the Brix value of the pineapple sample; A first analysis module, the first analysis module is used to pre-process the sugar content value of the pineapple sample collected by the data collection module to generate a prediction accuracy coefficient; A blank spectrum acquisition module, wherein the blank spectrum acquisition module is used to acquire a blank absorption spectrum; A second analysis module, the second analysis module is used to pre-process the blank absorption spectrum collected by the blank spectrum collection module to generate a baseline noise evaluation index; A third analysis module, the third analysis module is used to pre-process the prediction accuracy coefficient and the baseline noise evaluation index collected by the first analysis module and the second analysis module to generate a pineapple sugar content evaluation accuracy index; A confidence assessment module is used to compare the pineapple sugar content assessment accuracy index with the pineapple sugar content assessment threshold, and output the pineapple sugar content accuracy confidence.
