| Literature DB >> 35681359 |
Weixin Ye1, Tianying Yan1, Chu Zhang2, Long Duan1, Wei Chen1, Hao Song1, Yifan Zhang3,4, Wei Xu3,4, Pan Gao1.
Abstract
Rapid and accurate detection of pesticide residue levels can help to prevent the harm of pesticide residue. This study used visible/near-infrared (Vis-NIR) (376-1044 nm) and near-infrared (NIR) (915-1699 nm) hyperspectral imaging systems (HISs) to detect the level of pesticide residues. Three different varieties of grapes were sprayed with four levels of pesticides. Logistic regression (LR), support vector machine (SVM), random forest (RF), convolutional neural network (CNN), and residual neural network (ResNet) models were used to build classification models for pesticide residue levels. The saliency maps of CNN and ResNet were conducted to visualize the contribution of wavelengths. Overall, the results of NIR spectra performed better than those of Vis-NIR spectra. For Vis-NIR spectra, the best model was ResNet, with the accuracy of over 93%. For NIR spectra, LR was the best, with the accuracy of over 97%, but SVM, CNN, and ResNet also showed closed and fine results. The saliency map of CNN and ResNet presented similar and closed ranges of crucial wavelengths. Overall results indicated deep learning performed better than conventional machine learning. The study showed that the use of hyperspectral imaging technology combined with machine learning can effectively detect the level of pesticide residues in grapes.Entities:
Keywords: deep learning; hyperspectral imaging; non-destructive detection; pesticide residue; table grape
Year: 2022 PMID: 35681359 PMCID: PMC9180647 DOI: 10.3390/foods11111609
Source DB: PubMed Journal: Foods ISSN: 2304-8158
Figure 1The flow chart of spraying pesticides and obtaining clusters of the grape.
Number of samples after cutting intact grapes.
| Category | Cabernet | Red | Munage | Total |
|---|---|---|---|---|
| Level 0 | 73 | 92 | 89 | 254 |
| Level 1 | 84 | 99 | 78 | 261 |
| Level 2 | 60 | 107 | 104 | 271 |
| Level 3 | 71 | 113 | 101 | 285 |
| Total | 288 | 411 | 372 | 1071 |
Level 1, Level 2, and Level 3 mean the pesticide mixtures with concentrations of 10%, 15%, and 50% prepared later, and Level 0 means distilled water.
Information about the pesticides used in the experiment.
| Category | Active Ingredients | Proportion | Efficacy |
|---|---|---|---|
| Jiatu | 50% tebuconazole (C16H22ClN3O) | 4000 | Brown spot |
| Huiyin | 80% procymidone (C13H11Cl2NO2) | 2400 | Botrytis |
| Xishuangke | 56% cymoxanil (C7H10N4O3) | 6000 | Downy mildew |
Information about the concentration of each pesticide in the mixture.
| Concentration | Jiatu | Xishuangke | Huiyin |
|---|---|---|---|
| Level 0 a (0%) | 0 | 0 | 0 |
| Level 1 b(15%) | 0.0375 | 0.0250 | 0.0625 |
| Level 2 c (30%) | 0.0750 | 0.0500 | 0.0125 |
| Level 3 d (50%) | 0.1250 | 0.0834 | 0.2085 |
| Standard solution(100%) | 0.2500 | 0.1667 | 0.4167 |
a means distilled water; b,c,d mean the pesticide mixtures with Level 1, 2, and 3, corresponding to concentrations of 10%, 15%, and 50%. The unit of concentrations is g/L.
Figure 2The flow chart of hyperspectral image data acquisition and data contact.
Figure 3The proposed convolutional neural network (CNN) structure for the identification of pesticide residues in grapes.
Figure 4The proposed residual neural network (ResNet) (a) and residual block (b) structures for the identification of pesticide residues in grapes.
Figure 5(a) Vis-NIR average (405–1016 nm) spectra with standard deviation each wavelength of different levels of pesticide residues in grape, using Vis-NIR spectrometer. (b) NIR average spectra (994–1641 nm) with standard deviation each wavelength of different levels of pesticide residues in grapes, using NIR spectrometer.
The classification of the accuracy of the logistic regression (LR), support vector machine (SVM), random forest (RF), convolution neural network (CNN), and residual neural network (ResNet).
| Models | Categ | Parameter | Vis-NIR (%) | Parameter | NIR (%) | ||||
|---|---|---|---|---|---|---|---|---|---|
| Train a | Val b | Test c | Train | Val | Test | ||||
| SVM | 0 | 2.0, 0.1, poly | 95.9 | 94.8 | 91.4 | 6.6, 1.0, linear | 99.4 | 100.0 | 96.6 |
| 1 | 1.2, 0.1, poly | 98.4 | 96.3 | 92.7 | 1.0, 1.0, poly | 100.0 | 100.0 | 96.3 | |
| 2 | 1.0, 1.0, poly | 1.00 | 88.0 | 93.2 | 1.0, 1.0, poly | 100.0 | 100.0 | 95.9 | |
| LR | 0 | 1 × 105, liblinear | 100.0 | 89.7 | 93.1 | 100, lbfgs | 99.4 | 93.1 | 98.3 |
| 1 | 1 × 105, liblinear | 100.0 | 98.8 | 93.9 | 1 × 105, liblinear | 100.0 | 100.0 | 100.0 | |
| 2 | 1 × 104, liblinear | 100.0 | 92.0 | 95.9 | 100, newton-cg | 100.0 | 98.7 | 97.3 | |
| RF | 0 | 8, 450 | 100.0 | 77.6 | 79.3 | 6, 750 | 100.0 | 74.1 | 81.0 |
| 1 | 7, 500 | 99.6 | 72.3 | 73.2 | 5, 550 | 98.8 | 86.7 | 87.8 | |
| 2 | 8, 200 | 100.0 | 66.7 | 75.7 | 4, 250 | 99.1 | 98.7 | 93.2 | |
| CNN | 0 | 500, 32, 0.001 | 99.4 | 98.3 | 93.1 | 500, 32, 0.001 | 100.0 | 100.0 | 98.3 |
| 1 | 500, 32, 0.001 | 97.6 | 97.6 | 92.7 | 500, 32, 0.001 | 100.0 | 100.0 | 98.8 | |
| 2 | 500, 32, 0.001 | 100.0 | 98.7 | 93.2 | 500, 32, 0.001 | 99.5 | 100.0 | 98.6 | |
| ResNet | 0 | 1000, 32, 0.005 | 100.0 | 94.8 | 93.1 | 600, 32, 0.005 | 100.0 | 93.1 | 86.2 |
| 1 | 1000, 32, 0.005 | 100.0 | 100.0 | 98.8 | 1000, 32, 0.005 | 100.0 | 100.0 | 97.6 | |
| 2 | 1000, 32, 0.005 | 100.0 | 97.3 | 94.6 | 600, 32, 0.005 | 97.7 | 100.0 | 97.3 | |
a,b,c represent training, validation, and test sets for the model; 0,1,2 represent Cabernet, Red grape and Munage, respectively, Categ mean Category of the grape. Parameters of the SVM, LR, RF, and CNN ResNet are shown. The parameters of the SVM, are (C, gamma, kernel); those of the LR are (C, solver); those of the RF are (n_estimator, max_depth); those of the CNN and ResNet are (epoch, batchsize, learning rate).
Figure 6(a–c) Mean average value of saliency map of CNN for Cabernet, Red grape, and Munage for Vis-NIR spectra. (d–f) Mean of CNN for Cabernet, Red grape, and Munage for NIR spectra.
Figure 7(a–c) mean average value of saliency map of ResNet for Cabernet, Red grape, and Munage for Vis-NIR spectra. (d–f) mean that of ResNet for Cabernet, Red grape, and Munage for NIR spectra.