Water content detection device for strawberry substrate production and detection method thereof
Through near-infrared spectroscopy technology and partial least squares regression model, the problem of the detection accuracy of strawberry matrix moisture content is solved, and non-contact and high-precision detection of strawberry matrix moisture content is achieved, and the production quality of strawberry matrix is improved.
Patent Information
- Application Number
- CN202410952886.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
AI Technical Summary
Traditional strawberry matrix moisture content detection methods require direct contact with the matrix, and the measurement accuracy is susceptible to environmental factors, resulting in inaccurate measurement results and affecting the production quality of strawberry matrix.
The near-infrared spectrometer is used to obtain the spectral information of the strawberry matrix, extract the characteristic spectral bands through baseline correction and first-order differential processing, establish a partial least squares regression model, realize non-contact detection of the water content of the strawberry matrix, and display the water content in real time through the display module. Value and provides historical data storage and trend analysis capabilities.
It improves detection accuracy and stability, realizes non-contact and high-precision detection of the water content of strawberry matrix, and enhances the efficiency of strawberry matrix production quality management.
Smart Images

Figure CN118937270A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of strawberry matrix water content detection, in particular to a strawberry matrix production water content detection device and a detection method thereof. Background Art
[0002] The moisture content detection device in strawberry substrate production is a device specially used to measure the moisture content in soilless cultivation substrates. In the process of strawberry substrate production, the moisture content of the substrate is one of the important factors affecting the production quality of strawberry substrates. Traditional moisture content detection methods mainly include dielectric method and conductivity method. When selecting a suitable moisture content detection device, the specific characteristics of the strawberry substrate need to be considered to ensure the accuracy of the measurement results.
[0003] These methods usually require direct contact with the substrate, and the measurement accuracy is easily affected by environmental factors (such as temperature, humidity, etc.), resulting in inaccurate measurement results and affecting the quality of strawberry substrate production. Therefore, a moisture content detection device and a detection method for strawberry substrate production are proposed to address the above problems. Summary of the invention
[0004] The purpose of the present invention is to provide a device and method for detecting the moisture content of strawberry matrix production, so as to solve the problem that the measurement accuracy of the device for detecting the moisture content in direct contact with the matrix is easily affected by environmental factors (such as temperature, humidity, etc.), resulting in inaccurate measurement results and affecting the production quality of the strawberry matrix.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A device and method for detecting moisture content in strawberry matrix production, comprising the following steps:
[0007] Ⅰ. Obtain spectral information of strawberry matrix using near infrared spectrometer with wavelength range of 800nm to 2500nm;
[0008] Ⅱ. Perform baseline correction and first-order differential processing on the spectral information to extract characteristic spectral bands;
[0009] The baseline correction formula is:
[0010] S corrected =S original -Baseline
[0011] In the formula, S corrected is the corrected spectrum, S original is the original spectrum, Baseline is the baseline;
[0012] The first-order differential processing formula is:
[0013] Sdifferentiated (i) = S(i+1) - S(i)
[0014] In the formula, S differentiated (i) is the differential spectrum value at the i-th point, S(i) is the spectrum value at the i-th point, and S(i+1) is the spectrum value at the i+1-th point;
[0015] III. Establish a partial least squares regression model based on the extracted characteristic spectral bands;
[0016] The partial least squares regression model formula is:
[0017]
[0018] In the formula, is the predicted water content value, x i is the value of the i-th characteristic spectral band, b i is the regression coefficient, b 0 is the bias term;
[0019] IV. Calculate the water content of the strawberry matrix based on the model.
[0020] As a further optimization of the present invention, the baseline correction and first-order differential processing steps include performing baseline correction and first-order differential processing on the spectrum to eliminate the influence of background noise and spectrum drift.
[0021] As a further optimized content of the present invention, the partial least squares regression model is established based on multiple characteristic spectral bands to improve the accuracy of water content prediction.
[0022] As a further optimized content of the present invention, in the moisture content calculation step, the moisture content value is displayed in real time, and historical data storage and trend analysis functions are provided to facilitate users to perform long-term monitoring and analysis.
[0023] As a further optimization of the present invention, the near-infrared spectrometer used in the step of acquiring the spectral information can transmit data to a cloud platform via a wireless network to achieve remote monitoring and data analysis.
[0024] As further optimized content of the present invention, it includes: a near-infrared spectrometer, which is used to obtain spectral information of a strawberry matrix, with a wavelength range of 800nm to 2500nm; a data processing module, which is used to perform baseline correction and first-order differential processing on the obtained spectral information, and extract characteristic spectral bands; a model building module, which is used to establish a partial least squares regression model based on the extracted characteristic spectral bands; and a display module, which is used to display the moisture content of the matrix and has historical data storage and trend analysis functions.
[0025] As a further optimized content of the present invention, wherein: the data processing module includes a baseline correction unit and a differential processing unit, which are used to perform baseline correction and first-order differential processing.
[0026] As a further optimization of the present invention, the model building module uses a partial least squares regression method to build a water content prediction model based on multiple characteristic spectral bands to improve the accuracy of the prediction.
[0027] As a further optimized content of the present invention, the display module can not only display the real-time water content value, but also provide historical data storage and trend analysis functions to facilitate users to perform long-term monitoring and analysis.
[0028] As a further optimized content of the present invention, it includes: a data interface module for transmitting the detection data to an external device or a cloud platform to achieve remote monitoring and data sharing.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] In the present invention, near-infrared spectroscopy technology is used for non-contact detection, and baseline correction and first-order differential processing are used to effectively eliminate the influence of background noise and spectral drift, thereby improving detection accuracy and stability. In addition, the detection device can display the water content value in real time, and has historical data storage and trend analysis functions, which is convenient for users to perform long-term monitoring and data analysis, thereby improving management efficiency and further improving the quality of strawberry matrix production. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flow chart of a method for detecting moisture content in strawberry matrix production according to the present invention;
[0032] Figure 2 The present invention is a structural block diagram of a device and method for detecting moisture content in strawberry matrix production. DETAILED DESCRIPTION
[0033] See also Figure 1-2 , the present invention provides a technical solution:
[0034] A device and method for detecting moisture content in strawberry matrix production, the device comprising a near infrared spectrometer, a data processing module, a model building module and a display module;
[0035] Acquisition of spectral information:
[0036] A near-infrared spectrometer (wavelength range 800nm to 2500nm) was used to collect spectral information of strawberry matrices with different water contents;
[0037] Data processing:
[0038] Perform baseline correction and first-order differential processing on the collected spectral information. The baseline correction formula is:
[0039] S corrected =S original -Baseline
[0040] The first-order differential processing formula is:
[0041] S differentiated (i) = S(i+1) - S(i)
[0042] Model establishment: Based on the extracted characteristic spectral bands, the partial least squares regression method is used to establish a water content prediction model. The partial least squares regression model formula is:
[0043]
[0044] Data measurement and display: The established model is used to calculate the moisture content of the strawberry matrix, and the real-time moisture content value is displayed through the display module, which also has the functions of historical data storage and trend analysis;
[0045] Experimental data:
[0046] In the experiment, strawberry matrix samples with different water contents were collected, and spectral information was obtained by near-infrared spectrometer. The above method was used for processing and modeling. The results are shown in the following table:
[0047] Sample No. Actual moisture content (%) Predicted moisture content (%) Prediction error (%) S1 20.5 20.3 0.2 S2 30.2 30.0 0.2 S3 40.0 39.8 0.2 S4 50.1 50.3 0.2 S5 60.3 60.5 0.2
[0048] Experimental results and analysis:
[0049] Through the above experimental steps and data processing, it can be seen that:
[0050] The moisture content detection device based on near-infrared spectroscopy technology can accurately measure the moisture content of the strawberry matrix, with a small prediction error of about 0.2%;
[0051] The data processing module effectively eliminates the influence of background noise and spectral drift through baseline correction and first-order differential processing, thereby improving detection accuracy;
[0052] The real-time display and historical data storage functions of the display module help users conduct long-term monitoring and trend analysis;
[0053] Through this device and method, the limitations of traditional contact moisture content detection methods are solved, and non-contact, high-precision detection of strawberry matrix moisture content is achieved, which is of great significance for moisture management in the strawberry matrix production process.
[0054] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. The above is only a preferred implementation of the present invention. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the protection scope of the present invention.
Claims
1. A method for detecting the moisture content of strawberry matrix production, characterized in that: The following steps are involved: I. Obtaining spectral information of the strawberry matrix using a near infrared spectrometer with a wavelength range of 800nm to 2500nm; II. Perform baseline correction and first-order differential processing on the spectral information to extract characteristic spectral bands; The baseline correction formula is: S corrected =S oiginal -Baseline In the formula, S corrected is the corrected spectrum, S original is the original spectrum, Baseline is the baseline; The first-order differential processing formula is: S differentiated (i)=S(i+1)-S(i) In the formula, S differentiated (i) is the differential spectrum value at the i-th point, S(i) is the spectrum value at the i-th point, and S(i+1) is the spectrum value at the i+1-th point; III. Establish a partial least squares regression model based on the extracted characteristic spectral bands; The partial least squares regression model formula is: In the formula, is the predicted water content value, x i is the value of the i-th characteristic spectral band, b i is the regression coefficient, b0 is the bias term; IV. Calculate the water content of the strawberry matrix based on the model.
2. The method for detecting water content of strawberry matrix production according to claim 1, characterized in that: The baseline correction and first-order differential processing steps include performing baseline correction and first-order differential processing on the spectrum to eliminate the influence of background noise and spectrum drift.
3. The method for detecting water content of strawberry matrix production according to claim 1, characterized in that: The partial least squares regression model is established based on multiple characteristic spectral bands to improve the accuracy of water content prediction.
4. The method for detecting water content of strawberry matrix production according to claim 1, characterized in that: In the moisture content calculation step, the moisture content value is displayed in real time, and historical data storage and trend analysis functions are provided to facilitate users to perform long-term monitoring and analysis.
5. The method for detecting water content of strawberry matrix production according to claim 1, characterized in that: The near-infrared spectrometer used in the step of acquiring the spectral information can transmit data to a cloud platform via a wireless network to achieve remote monitoring and data analysis.
6. The water content detection device for strawberry matrix production according to claim 1, characterized in that: include: A near-infrared spectrometer is used to obtain spectral information of the strawberry matrix, with a wavelength range of 800nm to 2500nm; a data processing module is used to perform baseline correction and first-order differential processing on the obtained spectral information and extract characteristic spectral bands; The model building module is used to build a partial least squares regression model based on the extracted characteristic spectral bands; the display module is used to display the water content of the matrix and has historical data storage and trend analysis functions.
7. The water content detection device for strawberry matrix production according to claim 6, characterized in that: The data processing module includes a baseline correction unit and a differential processing unit, which are used to perform baseline correction and first-order differential processing.
8. The water content detection device for strawberry matrix production according to claim 6, characterized in that: The model building module uses a partial least squares regression method to build a water content prediction model based on multiple characteristic spectral bands to improve the accuracy of the prediction.
9. The water content detection device for strawberry matrix production according to claim 6, characterized in that: The display module can not only display the real-time water content value, but also provide historical data storage and trend analysis functions to facilitate users to perform long-term monitoring and analysis.
10. The water content detection device for strawberry matrix production according to claim 6, characterized in that: Includes a data interface module for transmitting detection data to external devices or cloud platforms to achieve remote monitoring and data sharing.
