Method for detecting content of resistant starch based on near infrared spectrum
The detection of resistant starch content through near-infrared spectroscopy and convolutional neural network model solves the problems of tedious steps and high cost in traditional methods, and achieves fast and accurate detection of resistant starch, which is suitable for the detection of rice and other foods.
Patent Information
- Application Number
- CN202410776180.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-13
AI Technical Summary
The traditional chemical method used to measure the resistant starch content of rice flour has the problems of tedious experimental steps, long measurement cycle and high cost, which is especially inconvenient in the process of large-scale sample and variety selection.
A convolutional neural network model based on near-infrared spectroscopy is used to detect resistant starch content. By constructing a training set, training model, evaluating key bands and predicting the resistant starch content in samples, the SHAP interpreter and AlexNet model are used to improve detection accuracy. and efficiency.
It achieves rapid and accurate detection of resistant starch content, reduces detection costs, and improves detection efficiency and accuracy.
Smart Images

Figure CN118641502A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data analysis and processing, and in particular to a method for detecting resistant starch content based on near infrared spectroscopy. Background Art
[0002] Near-infrared spectroscopy is a modern spectral analysis technology that integrates spectral analysis, computer and chemometrics. It uses the vibration absorption characteristics of hydrogen-containing groups such as CH, NH, OH and SH in organic matter in the near-infrared spectral region, combined with chemometrics and other methods to qualitatively or quantitatively determine one or more chemical components in the sample.
[0003] Resistant starch (RS) is also called resistant starch and indigestible starch. It cannot be enzymatically hydrolyzed in the small intestine. Resistant starch has important physiological functions. It can reduce postprandial blood sugar and insulin response, increase the body's sensitivity to insulin, prevent constipation and colon cancer, reduce serum cholesterol and triglyceride levels, reduce and control body weight, and promote mineral absorption. Resistant starch exists in some natural foods, such as potatoes, bananas, rice, etc.
[0004] Traditional methods for detecting resistant starch mainly include enzyme-direct method (Englyst method, Champ method), ultrasound-enzyme method (Berry method), microwave-enzyme method ( method), in vitro assay (McCleary method), etc.
[0005] A Chinese patent document with publication number CN102533938A discloses an improved method for determining the resistant starch content of rice, comprising the following steps: a. weighing 0.1000 g of rice flour, adding 40 mg of α-amylase (Sigma A-3176), and stirring evenly; b. adding 4 mL of sodium maleate buffer solution and 10 μL of amyloglucosidase (AGM), mixing and configuring into a starch hydrolysis mixture; c. adding 15-35 μL of an antibiotic solution or an antibiotic mixture to 4 μL of the starch hydrolysis mixture; d. performing enzymatic hydrolysis at room temperature for more than 8 hours, and then detecting the glucose content.
[0006] A Chinese patent document with publication number CN111487385A discloses an in vitro detection method for the content of modified starch with high digestion resistance, which comprises the following steps: S1: chewing 1g of food 12 to 17 times, each chewing for 15s; S2: incubating with 50g / L of pepsin; S3: incubating with α-amylase and trypsin solution; S4: using 80% ethanol precipitation, centrifuging at 3000rpm for 30min, filtering multiple times to obtain a filtrate and a precipitate respectively; S5: processing the filtrate by glucose oxidase method to obtain soluble starch; S6: processing the precipitate to obtain amyloglucosidase incubation; S7: centrifuging the soluble starch and amyloglucosidase at 3000rpm for 30min, filtering and collecting the filtrate; S8: repeating step S7 multiple times to obtain resistant starch by glucose oxidase method.
[0007] Traditional chemical methods have many inconveniences in measuring the resistant starch content of rice flour, such as cumbersome experimental steps, long measurement cycle, and high cost. This is extremely inconvenient for large-scale rice samples, especially for the determination of resistant starch content during variety breeding. Summary of the invention
[0008] The invention provides a method for detecting the content of resistant starch based on near infrared spectroscopy, which can quickly and accurately detect the content of resistant starch in a sample.
[0009] The technical solution of the present invention is as follows:
[0010] A method for detecting resistant starch content based on near infrared spectroscopy comprises the following steps:
[0011] (1) Determine the resistant starch content and near infrared spectroscopy data of several samples and construct a training set;
[0012] (2) constructing a convolutional neural network model, using the training set to train the convolutional neural network model, and obtaining a resistant starch content prediction model;
[0013] (3) The SHAP interpreter was used to evaluate the average relative contribution of the spectral data of each wavelength to the resistant starch content prediction model, and the key bands that were strongly correlated with the predicted resistant starch content were obtained;
[0014] (4) Collecting spectral data of the sample to be tested in the key band and inputting it into the resistant starch content prediction model to obtain the predicted value of the resistant starch content in the sample to be tested.
[0015] The resistant starch content detection method of the present invention is suitable for the detection of resistant starch in food, such as the detection of resistant starch in rice, corn, potato, banana, etc.
[0016] In step (1), the resistant starch content of the sample is determined according to the industry standard NY / T 2638-2014 "Spectrophotometric method for determination of resistant starch in rice and its products".
[0017] In step (1), the spectral data of the sample in the 834-2500nm band is collected, and the resolution is set to 15-20cm -1 .
[0018] Preferably, in step (1), Gaussian white noise with different degrees of signal-to-noise ratio is added to the collected original spectral data, the resistant starch content corresponding to the newly generated spectral data is set to the resistant starch content value corresponding to the corresponding original spectral data, an amplified data set is obtained, and the amplified data set is mixed with the original data set as a training set.
[0019] Based on data expansion, a convolutional neural network model was trained to perform near-infrared spectroscopy analysis and prediction of resistant starch, which improved the accuracy of near-infrared spectroscopy resistant starch prediction and the robustness of the model.
[0020] Further, the signal-to-noise ratio is set to 80dB, 70dB, 60dB, 50dB and 40dB respectively.
[0021] Preferably, in step (2), a convolutional neural network model is constructed using AlexNet.
[0022] Furthermore, the convolutional neural network model includes an input layer, 6 convolutional layers, 1 flat layer, 3 fully connected layers, and an output layer connected in sequence;
[0023] A pooling layer is set between two adjacent convolutional layers;
[0024] After convolution and pooling operations, local and global features are extracted from the spectral data, and then all features are expanded to form a flat layer. Finally, the global features are analyzed through full connection for regression prediction.
[0025] When training the convolutional neural network model, the adaptive distance estimation optimizer with a batch size of 16, an initial learning rate of 0.001, and a decay rate of 0.5 is used to update the weights. The cycle is set to 200, the activation function is Relu, and the loss function is MSELoss.
[0026] In step (3), the key wavelength band is 2000-2500nm.
[0027] The wavelength range of near-infrared spectroscopy is shortened from 800-2500nm to 2000-2500nm, which can be used to predict the content of resistant starch with relatively low-cost spectral measurement instruments, thereby reducing detection costs.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention performs near-infrared spectroscopy analysis and prediction of resistant starch based on a convolutional neural network model, thereby improving the efficiency and accuracy of resistant starch detection. The method of the present invention can quickly and accurately detect the content of resistant starch in a sample. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 Schematic diagram of the process for building a detection model for resistant starch content in rice flour;
[0031] Figure 2 This is the near infrared spectrum of rice samples;
[0032] Figure 3 Scatter plot for the convolutional neural network model;
[0033] Figure 4 is the average SHAP value of the convolutional neural network model. DETAILED DESCRIPTION
[0034] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be pointed out that the embodiments described below are intended to facilitate the understanding of the present invention and do not have any limiting effect on the present invention.
[0035] like Figure 1 As shown, the method for detecting the resistant starch content in rice flour of the present invention comprises the following steps:
[0036] (1) A total of 149 rice samples were obtained, of which 62 were from online suppliers and 87 were from Zhejiang Academy of Agricultural Sciences. They were then randomly divided into a calibration set and a prediction set, with the calibration set containing 119 samples and the prediction set containing 30 samples.
[0037] The rice samples were placed in a hulling machine for hulling, then crushed and ground, and then passed through a 100-mesh sieve to obtain the final rice powder sample used in the experiment.
[0038] (2) Measure the resistant starch content of the rice sample. The resistant starch content is measured according to the industry standard NY / T 2638-2014 "Spectrophotometric method for the determination of resistant starch in rice and its products". According to the determination method, accurately weigh 100 mg (±5 mg) of the sample, use α-pancreatic amylase and amyloglucosidase to hydrolyze the non-resistant starch in the sample into glucose, then add ethanol, and obtain resistant starch particles by centrifugation. Dissolve it in potassium hydroxide solution, hydrolyze it into glucose with amyloglucosidase, and then react with glucose oxidase-peroxidase to produce a colorimetric complex, and finally measure its absorbance at 510 nm. Since the absorbance value is proportional to the resistant starch content, the colorimetric method can be used to obtain the resistant starch content value, and the final resistant starch content is expressed as a percentage (%). The calculation formula is shown below:
[0039]
[0040] Where: △A is the absorbance value relative to the blank reagent; F is the conversion from absorbance value to microgram, the unit is microgram (ug); m is the mass of the sample, the unit is milligram (mg).
[0041] The distribution range of resistant starch content of rice powder samples in the calibration set and prediction set is shown in Table 1.
[0042] Table 1
[0043]
[0044] (3) Use near infrared spectroscopy to collect near infrared spectra of rice samples. The spectral data collection range is 834-2500nm, and the resolution is set to 16cm -1 OPUS spectral software (Bruker) and computer were used to collect and export spectral data. In the whole experiment, the near-infrared spectrum of each rice sample was measured three times, and the average value of the three collected spectral data was finally taken as the original spectrum of the sample.
[0045] Figure 2The near infrared spectra of rice samples in the range of 834-2500nm are shown, and it can be seen that all samples have similar trends. Seven obvious difference peaks can be observed from the spectral curve, which are around 1470nm, 1935nm, 2000nm, 2100nm, 2230nm, 2280nm and 2320nm. Among them, 1456-1556nm is the first overtone stretching of OH, 2116-2238nm may correspond to the first overtone of CH assigned to starch, OH combination and CH combination, 2304-2372nm is a combination of CH bond stretching, 1900-2000nm is a combination of OH stretching and bending, 2080-2130nm is a combination of OH bending and CO stretching, and 2275-2290nm is a combination of OH stretching and CC stretching. These bands are related to starch and can be used for resistant starch content detection.
[0046] (4) Establishment of calibration model: The calibration model is crucial for predicting the chemical composition in the sample. The present invention uses a deep learning model (convolutional neural network) for modeling.
[0047] A convolutional neural network model was constructed using AlexNet, where the details of AlexNet include an input layer, six convolutional layers, five pooling layers, three fully connected layers, and an output layer. The input layer inputs the original spectrum, whose dimension is 1037×1, and the spectrum is not preprocessed. In the convolution layer, convolution blocks of size 3×1 with padding value and stride value of 1 are used each time. The maximum pooling layer is used in the pooling layer, with stride value set to 2 and size set to 2×1, which selects the maximum value in the sampling window as the feature value. After convolution and pooling operations, local and global features can be effectively extracted from the original spectral data, and then all features are expanded to form a flat layer. Finally, the global features are analyzed through three fully connected layers for regression prediction.
[0048] The detailed hyperparameter settings of the convolutional neural network model are shown in Table 2.
[0049] Table 2
[0050]
[0051]
[0052] (5) Gaussian white noise with different degrees of signal-to-noise ratio is added to the original spectral data in step (3), and the signal-to-noise ratio is set to 80 dB, 70 dB, 60 dB, 50 dB and 40 dB respectively, to expand the spectral data of the sample. The final sample size is expanded from 149 to 894. At the same time, the expected output value of the newly generated spectrum is set to the same RS content value as the corresponding original spectrum to obtain an amplified spectral data set.
[0053] The original spectral data set obtained in step (3) and the amplified spectral data set in this step are respectively put into the initial convolutional neural network model constructed in step (4) for training, and the accuracy and loss values are recorded. Then, the parameters of the network (batch size, learning rate, number of iterations and activation function, etc.) are adjusted to obtain the optimal parameter combination for predicting the resistant starch content.
[0054] Finally, the adaptive distance estimation (Adam) optimizer with a batch size of 16, an initial learning rate of 0.001, a decay rate of 0.5 was used to update the weights, the cycle was set to 200, the activation function was Relu, and the loss function was MSELoss.
[0055] The effect of the convolutional neural network model is shown in Table 3.
[0056] Table 3
[0057]
[0058] In the convolutional neural network model, the coefficient of determination on the prediction set is 0.423, which is not very good. This may be because there are too few samples in this study, but there are many spectral features, which can easily lead to overfitting, so we performed data amplification on the near-infrared spectrum. In the convolutional neural network model after data amplification, the coefficient of determination on the prediction set is 0.992, and the relative analysis error is as high as 11.020. It can be seen that the data amplification-convolutional neural network model has a higher prediction accuracy for resistant starch, indicating that it has stronger robustness.
[0059] The trained data augmentation-convolutional neural network model is evaluated using the following evaluation indicators:
[0060]
[0061] Among them, y " is the measured value of the ith sample, is the predicted value of the model used for the i-th sample, is the average value of y, and n represents the number of samples in the data set. 2 ) varies between 0 and 1. The closer the value is to 1, the better the fitting or prediction performance of the regression model is. When the root mean square error (RMSE) value is close to zero and the difference between them is small, it means that the model is better. In order to better compare the models, we also proposed the relative analytical error (RPD) to illustrate the acceptance or rejection of the proposed model. Generally speaking, the evaluation index is that when RPD is less than 1.4, the constructed model is considered unreliable; when 1.4 is less than RPD is less than 2.0, the constructed model is considered to be relatively reliable; when 2.0 is less than RPD, the constructed model is considered to have high reliability and can be used for model analysis.
[0062] Figure 2 The scatter plot of the data augmentation-convolutional neural network model is shown. It can be seen that the fitting curve of the model is close to y=x. The straight line indicates that the error between the true value and the predicted value is small, indicating that the model has good prediction performance.
[0063] Figure 2 The red dots represent the calibration set data, which are put into the data augmentation-convolutional neural network model to get the predicted values, and then the predicted values and the true values are used to calculate the coefficient of determination and root mean square error of the calibration set. The purple dots represent the prediction set data, which are put into the data augmentation-convolutional neural network model to get the predicted values, and then the predicted values and the true values are used to calculate the coefficient of determination, root mean square error and relative analysis error of the prediction set.
[0064] The trained data amplification-convolutional neural network model is used as the final resistant starch content prediction model.
[0065] (6) The SHAP interpreter was used to evaluate the average relative contribution of each wavelength to the resistant starch content value of rice flour in the data augmentation-convolutional neural network model, and the average SHAP value of the data augmentation-convolutional neural network model was calculated to explain and compare the impact of the features. Figure 3 A SHAP value analysis chart is given, which shows the effect of each wavelength on the resistant starch content value. The higher the SHAP value, the greater the effect of the wavelength on the resistant starch content value.
[0066] The top ten wavelengths that contributed most to the prediction of RS content were found, namely 2171nm, 2182nm, 2179nm, 2157nm, 2193nm, 2168nm, 2186nm, 2441nm, 2205nm and 2201nm. It is speculated that these wavelengths are strongly correlated with the prediction of resistant starch content.
[0067] The SHAP values were arranged in descending order, and the first 10, 20, 30, 40 and 50 wavelength values and the corresponding resistant starch content values were taken to re-establish the partial least squares regression model. The prediction results are shown in Table 4.
[0068] Table 4
[0069]
[0070] It can be seen that when the wavelength values ranked in the top 50 of the SHAP values are used to predict the RS content values, the determination coefficient on the prediction set is 0.672, which achieves a general prediction effect. Since the top 50 wavelength values are all within the range of 2000-2500nm, we put the wavelength values and the corresponding RS content values in this range into the partial least squares regression model, and the determination coefficient on the prediction set is 0.894.
[0071] The wavelength range with high contribution rate (2000-2500nm) was selected, and the effectiveness of this wavelength range in predicting the resistant starch content of rice flour was verified. This range can be used to detect the content of rice flour by near infrared spectroscopy.
[0072] (7) When detecting the resistant starch content of the rice flour sample to be tested, collect spectral data of the rice flour sample to be tested in the range of 2000-2500nm, input the collected spectral data into the resistant starch content prediction model obtained in step (5), and output the predicted value of the resistant starch content of the rice flour sample to be tested.
[0073] The embodiments described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting resistant starch content based on near infrared spectroscopy, characterized in that: The following steps are involved: (1) Determine the resistant starch content and near infrared spectroscopy data of several samples and construct a training set; (2) constructing a convolutional neural network model, using the training set to train the convolutional neural network model, and obtaining a resistant starch content prediction model; (3) The SHAP interpreter was used to evaluate the average relative contribution of the spectral data of each wavelength to the resistant starch content prediction model, and the key bands that were strongly correlated with the predicted resistant starch content were obtained; (4) Collecting spectral data of the sample to be tested in the key band and inputting it into the resistant starch content prediction model to obtain the predicted value of the resistant starch content in the sample to be tested.
2. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: In step (1), the resistant starch content of the sample is determined according to the industry standard NY / T 2638-2014 "Spectrophotometric method for determination of resistant starch in rice and its products".
3. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: In step (1), the spectral data of the sample in the 834-2500nm band is collected, and the resolution is set to 15-20cm -1 .
4. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: In step (1), Gaussian white noise with different degrees of signal-to-noise ratio is added to the collected original spectral data, and the resistant starch content corresponding to the newly generated spectral data is set to the resistant starch content value corresponding to the corresponding original spectral data to obtain an amplified data set, and the amplified data set is mixed with the original data set as a training set.
5. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 4, characterized in that: The signal-to-noise ratio was set to 80dB, 70dB, 60dB, 50dB and 40dB respectively.
6. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: In step (2), AlexNet is used to build a convolutional neural network model.
7. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 6, characterized in that: The convolutional neural network model includes an input layer, 6 convolutional layers, 1 flat layer, 3 fully connected layers, and an output layer connected in sequence; A pooling layer is set between two adjacent convolutional layers; After convolution and pooling operations, local and global features are extracted from the spectral data, and then all features are expanded to form a flat layer. Finally, the global features are analyzed through full connection for regression prediction.
8. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: When training the convolutional neural network model, the adaptive distance estimation optimizer with a batch size of 16, an initial learning rate of 0.001, and a decay rate of 0.5 is used to update the weights. The cycle is set to 200, the activation function is Relu, and the loss function is MSELoss.
9. The method for detecting resistant starch content based on near infrared spectroscopy according to claim 1, characterized in that: In step (3), the key wavelength band is 2000-2500nm.
Citation Information
Cited By
Method for establishing rapid prediction of important quality indexes of green soy beans based on near infrared spectrum and deep learning
CN119517204A
