Method for determining component content of agricultural product

By collecting and processing spectral data of agricultural products and training linear regression models, it solves the time-consuming problem of traditional agricultural product component content detection, achieves fast and accurate component content determination, and improves detection efficiency.

CN118549360APending Publication Date: 2024-08-27SHENZHEN VISPEK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311479796.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, the detection of agricultural product ingredient content requires professional and technical personnel to operate, is time-consuming and has low timeliness, and cannot quickly and accurately detect the ingredient content of agricultural products.

Method used

By collecting the original spectral characteristic data of agricultural products, using spectrometers and lenses for calibration, training a linear regression model (such as elasticnet model) to predict the component content, and generating a model to quickly and accurately measure the component content of agricultural products.

Benefits of technology

It achieves rapid and accurate determination of the ingredients of agricultural products, reduces detection time, improves detection efficiency, and solves the shortcomings of traditional methods that require professional and technical personnel to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549360A
    Figure CN118549360A
Patent Text Reader

Abstract

The invention relates to an agricultural product component content determination method which comprises the following steps: acquiring original spectral characteristic data of the agricultural product component content by using a spectrograph, training a linear regression model by using the corrected original spectral characteristic data, predicting the agricultural product component content by using the linear regression model, and evaluating the feasibility of the model. The method solves the problems that a traditional method for measuring the content of the components of the agricultural products needs to be operated and analyzed by professional technicians and is long in time consumption and low in timeliness, and the content of the components of the agricultural products can be efficiently and accurately measured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of agricultural product component content detection, and in particular to a method for determining the content of agricultural product components. Background Art

[0002] The ingredients in agricultural products play a vital role in human growth and development, immune system maintenance, and the normal functioning of various biochemical processes. Therefore, it is of great significance to accurately detect the content of ingredients in agricultural products. At present, there are biochemical methods, immunological methods, mass spectrometry, colorimetry, and high performance liquid chromatography methods for detecting the content of ingredients in agricultural products. The above methods all detect the specific chemical molecular structure and quantitatively detect the content of ingredients in agricultural products, which requires professional and technical personnel to operate and analyze, is time-consuming, and has low timeliness. In order to solve the above problems, the present invention collects the original spectral feature data of agricultural products through a spectrometer, annotates the component content of the processed original spectral features to form training data, and uses the training data with component content labels to train a machine learning model to obtain the component content of the agricultural products to be tested. The present invention proposes a method for determining the component content of agricultural products. Summary of the invention

[0003] The purpose of the present invention is to provide a method for determining the content of agricultural product ingredients. The present invention solves the problem that biochemical detection, immunological method, mass spectrometry, colorimetry and high performance liquid chromatography require professional technicians to operate and analyze, which is time-consuming and has low timeliness.

[0004] The present invention discloses a method for determining the content of agricultural product components, comprising the following steps:

[0005] Step 1: In order to quickly and accurately predict the content of the agricultural products to be tested, it is necessary to first collect the original spectral characteristic data of the agricultural products. The specific collection method is as follows:

[0006] ① Grind the agricultural products into powdered solids with a grinder. If the agricultural products are shelled, they need to be shelled and then ground into powdered solids with a grinder.

[0007] ②Put the powdered solids of agricultural products into a small beaker and compact them.

[0008] ③ Use a spectrometer to collect the original spectral characteristic data of the compacted powdered solid in a small beaker.

[0009] The principle of spectral method for detecting the content of agricultural product ingredients is that different compounds have different absorption spectra. The spectral data with ingredient content labels are used to train the artificial intelligence model, and the model is used to predict the content of the ingredients in the agricultural products to be tested.

[0010] The original spectral characteristic data of the agricultural product is [a1, a2, ..., a 44], each piece of original spectral characteristic data of agricultural products is 44-dimensional, where a1~a8 are ultraviolet light, a9~a 21 is visible light, a 22 ~a 44 It is near infrared light.

[0011] Different material components of agricultural products have their own specific spectral characteristics in ultraviolet, visible light and near-infrared light.

[0012] Step 2: Calibrate the original spectral feature data of agricultural products collected in step 1. The processed data with component content labels constitutes training data. The specific processing process is as follows:

[0013] Calibration processing: Due to the differences between each spectrometer device, each lighting device cannot be made exactly the same, so there is a problem of station error in the spectral data; in order to solve the above-mentioned station error problem, the following correction plan was developed.

[0014] In the station error, it is manifested as: two devices measure two objects and obtain four spectral data; although there are differences in the data of the same object between the two devices, the spectral data ratio (or other operations) of different objects under the same device is consistent with the ratio of another device.

[0015] Correction materials: lenses;

[0016] Calibration scheme: When each spectrometer equipment leaves the factory, the lens is collected once as a calibration spectrum;

[0017] Assume that we now have the original spectral characteristic data S of agricultural products and the spectral characteristic data J of lenses.

[0018] The calibration method is as follows:

[0019] s=S / J

[0020] The subsequent processing steps are carried out according to the corrected agricultural product spectral data.

[0021] Each spectrometer device collects spectral data of agricultural products and uses the lens spectral data to calibrate the original spectral data of agricultural products.

[0022] Step 3: For the training data in step 2, use the training data to train a linear regression model to generate a model, and use the linear regression model to predict the content of the agricultural product ingredients to be tested. The specific description is as follows:

[0023] The linear regression model selected by the present invention is the elasticnet model, and regularization and ridge regression are used to estimate the L1 and L2 parameters in the model.

[0024] Step 4: Evaluate the accuracy of the model generated in step 3. The specific calculation process is as follows:

[0025] The accuracy indicators of the model generated in step 3 are mean square error (mse), root mean square error (rmse), mean absolute error (mae) and r2 score indicators.

[0026] Mean square error (mse) is the mean of the sum of squares of the errors between the predicted data and the original data.

[0027] Root Mean Square Error (rmse) calculates the root of the mean square error.

[0028] The mean absolute error mae (Mean Absolute Error) is the average of the absolute errors, which can better reflect the actual situation of the prediction value error.

[0029] The coefficient of determination R2 (coefficient of determination), also known as the coefficient of determination or goodness of fit, is a measure of how well the regression equation explains the changes in the dependent variable, or how well the equation fits the observed values.

[0030] The smaller the mean square error (mse), root mean square error (rmse), and mean absolute error (mae), the better the model effect.

[0031] The r2 score is a value less than or equal to 1. The closer it is to 1, the better the model effect.

[0032] The beneficial effects of the present invention are:

[0033] 1. It solves the problem that the traditional method of measuring the content of agricultural products requires professional technicians to operate and analyze, which is time-consuming and has low timeliness.

[0034] 2. Able to measure the content of agricultural products efficiently and accurately. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0036] Figure 1 A flow chart of a method for determining the content of agricultural product ingredients.

[0037] Figure 2 Evaluation index of corn moisture content model.

[0038] Figure 3 Model evaluation index of corn protein content.

[0039] Figure 4 Corn starch content model evaluation index.

[0040] Figure 5 Evaluation index of soybean moisture content model.

[0041] Figure 6 Model evaluation index of soybean protein content.

[0042] Figure 7 Evaluation index of wheat moisture content model.

[0043] Table 1 Original spectral characteristics of corn, soybean and wheat collected by the spectrometer.

[0044] Table 2 Model prediction results. DETAILED DESCRIPTION

[0045] The present invention is further described below in conjunction with a specific implementation process, but the protection scope of the present invention is not limited thereby.

[0046] In order to solve the problem that traditional biochemical detection, immunology, mass spectrometry, colorimetry and high performance liquid chromatography require professional technicians to operate and analyze, which is time-consuming and has low timeliness, combined with Figure 1-Figure 7 Table 1 and Table 2 describe the present invention in detail, and the specific implementation steps are as follows:

[0047] Implementation Example 1

[0048] It can measure the moisture, protein and starch content of corn, soybean and wheat.

[0049] like Figure 1 As shown, the present invention discloses a method for determining the content of agricultural product ingredients, comprising the following steps:

[0050] Step 1: In order to quickly and accurately predict the moisture, protein and starch content of corn, soybean and wheat agricultural products, it is necessary to first collect the original spectral feature data of corn, soybean and wheat agricultural products. The specific collection method is as follows:

[0051] 1. Grind corn and soybean agricultural products into powdery solids with grinders respectively, and husk the wheat and grind it into powdery solids with grinders.

[0052] 2. Place the powdered solids of corn, soybean and wheat agricultural products into small beakers respectively and compact them.

[0053] 3. Use a spectrometer to collect the original spectral feature data of the compacted corn, soybean and wheat powder solids in the small beaker one by one. Table 1 lists the original feature data of parts 1 to 6 of the 44 dimensional features.

[0054] Table 1 Original spectral characteristics of corn, soybean and wheat collected by spectrometer

[0055]

[0056]

[0057] Step 2: Calibrate the original spectral feature data of corn, soybean and wheat agricultural products collected in step 1. The processed data with component content labels constitute the training data, as shown in Table 2.

[0058] The spectrometer collects the lens spectrum as follows:

[0059] [31428,41432,42743,53218,159719,210122,198374,249445,557542,607304,550940,601211,300757,351760,557569,608352,610383,660149,548891,599686,539281,590059,530157,579921,629690,6 80470,589062,638830,576586,627725,600244,650007,553948,603753,581521,631758,593640,643724,581480,631245,594351,643684,462826,512570], According to the correction method, the feature data 1-6 in Table 2 are obtained, which is only part of the training data and part of the spectral feature data.

[0060] Step 3: For the training data in step 2, use the training data in Table 2 to train the linear regression model to generate corn moisture, protein and starch content models; soybean moisture and protein content models; wheat moisture content models. Use the corn moisture, protein and starch content models, soybean moisture and protein content models, and wheat moisture content models to predict corn moisture, protein and starch content; predict soybean moisture and protein content; and wheat moisture content. For example, the columns of predicted moisture, predicted protein, and predicted starch in Table 2.

[0061] Table 2 Model prediction results

[0062]

[0063]

[0064] The moisture, protein and starch contents predicted by the model in Table 2 are very consistent with the actual values. The prediction effect is very good.

[0065] The evaluation indexes of corn moisture, protein and starch content model are as follows: Figure 2 , Figure 3 as well as Figure 4 ;

[0066] from Figure 2 It can be concluded that the corn moisture content model can accurately predict the corn moisture content.

[0067] from Figure 3 It can be concluded that the corn protein content model can accurately predict the corn protein content.

[0068] from Figure 4 It can be concluded that the corn starch content model can accurately predict the corn starch content.

[0069] Soybean moisture and protein content model evaluation indicators such as Figure 5 , Figure 6 ;

[0070] from Figure 5 It can be concluded that the soybean moisture content model can accurately predict the soybean moisture content.

[0071] from Figure 6 It can be concluded that the soybean protein content model can accurately predict the soybean protein content.

[0072] Evaluation indexes of wheat moisture content model such as Figure 7 ;

[0073] from Figure 7 It can be concluded that the wheat moisture content model can accurately predict the wheat moisture content.

[0074] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0075] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure should be limited by the appended claims.

Claims

1. A method for determining the content of agricultural product ingredients. The present invention relates to the technical field of agricultural product ingredient content detection, and specifically to a method for determining the content of agricultural product ingredients. Its characteristics are: The steps include: Step 1: In order to quickly and accurately predict the content of the components of the agricultural products to be tested, it is necessary to first collect the original spectral characteristic data of the agricultural products. Step 2: Calibrate the original spectral feature data of agricultural products collected in step 1, and the processed data with component content labels constitute training data. Step 3: For the training data in step 2, use the training data to train a linear regression model to generate a model, and use the linear regression model to predict the content of the agricultural product ingredients to be tested. The specific description is as follows: The linear regression model selected by the present invention is the elasticnet model, and regularization and ridge regression are used to estimate the L1 and L2 parameters in the model. Step 4: Evaluate the accuracy of the model generated in step 3. The specific calculation process is as follows: The accuracy indicators of the model generated in step 3 are mean square error (mse), root mean square error (rmse), mean absolute error (mae) and r2 score indicators. Mean square error (mse) is the mean of the sum of squares of the errors between the predicted data and the original data. Root Mean Square Error (rmse) calculates the root of the mean square error. The mean absolute error mae (Mean Absolute Error) is the average of the absolute errors, which can better reflect the actual situation of the prediction value error. The coefficient of determination R2 (coefficient of determination), also known as the coefficient of determination or goodness of fit, is a measure of how well the regression equation explains the changes in the dependent variable, or how well the equation fits the observed values. The smaller the mean square error (mse), root mean square error (rmse), and mean absolute error (mae), the better the model effect. The r2 score is a value less than or equal to 1. The closer it is to 1, the better the model effect.

2. According to the method for determining the content of agricultural product ingredients described in claim 1, It is characterized in that In step 1 above, the specific collection method is as follows: ① Grind the agricultural products into powdered solids with a grinder. If the agricultural products are shelled, they need to be shelled and then ground into powdered solids with a grinder. ②Put the powdered solids of agricultural products into a small beaker and compact them. ③ Use a spectrometer to collect the original spectral characteristic data of the compacted powdered solid in a small beaker. The principle of spectral method for detecting the content of agricultural product ingredients is that different compounds have different absorption spectra. The spectral data with ingredient content labels are used to train the artificial intelligence model, and the model is used to predict the content of the ingredients in the agricultural products to be tested. The original spectral characteristic data of the agricultural product is [a 1 ,a 2 ,…,a 44 ], each piece of original spectral feature data of agricultural products is 44-dimensional, where a 1 ~a 8 is ultraviolet light, a 9 ~a 21 is visible light, a 22 ~a 44 It is near infrared light. Different material components of agricultural products have their own specific spectral characteristics in ultraviolet, visible light and near-infrared light.

3. According to the method for determining the content of agricultural product ingredients in claim 1, Its characteristics are: In step 2 above, the specific processing process is as follows: Calibration processing: Due to the differences between each spectrometer device, each lighting device cannot be made exactly the same, so there is a station error problem in the spectral data; in order to solve the above station error problem, the following correction plan was developed. In the station error, it is manifested as: two devices measure two objects and obtain four spectral data; although there are differences in the data of the same object between the two devices, the spectral data ratio (or other operations) of different objects under the same device is consistent with the ratio of another device. Correction materials: lenses; Calibration scheme: When each spectrometer equipment leaves the factory, the lens is collected once as a calibration spectrum; Assume that we now have the original spectral characteristic data S of agricultural products and the spectral characteristic data J of lenses. The calibration method is as follows: s=S / J The subsequent processing steps are carried out according to the corrected agricultural product spectral data. Each spectrometer device collects spectral data of agricultural products and uses the lens spectral data to calibrate the original spectral data of agricultural products.

Citation Information

Cited By

  • Intelligent foot health monitoring system and method based on micro spectrum technology

    CN119326375A