| Literature DB >> 36010431 |
Yujie Li1, Benxue Ma1,2, Yating Hu1, Guowei Yu1, Yuanjia Zhang1.
Abstract
Dried Hami jujube has great commercial and nutritional value. Starch-head and mildewed fruit are defective jujubes that pose a threat to consumer health. A novel method for detecting starch-head and mildewed fruit in dried Hami jujubes with visible/near-infrared spectroscopy was proposed. For this, the diffuse reflectance spectra in the range of 400-1100 nm of dried Hami jujubes were obtained. Borderline synthetic minority oversampling technology (BL-SMOTE) was applied to solve the problem of imbalanced sample distribution, and its effectiveness was demonstrated compared to other methods. Then, the feature variables selected by competitive adaptive reweighted sampling (CARS) were used as the input to establish the support vector machine (SVM) classification model. The parameters of SVM were optimized by the modified reptile search algorithm (MRSA). In MRSA, Tent chaotic mapping and the Gaussian random walk strategy were used to improve the optimization ability of the original reptile search algorithm (RSA). The final results showed that the MRSA-SVM method combined with BL-SMOTE had the best classification performance, and the detection accuracy reached 97.22%. In addition, the recall, precision, F1 and kappa coefficient outperform other models. Furthermore, this study provided a valuable reference for the detection of defective fruit in other fruits.Entities:
Keywords: defective fruit detection; dried Hami jujube; non-destructive detection; oversampling technique; reptile search algorithm; visible/near-infrared spectroscopy
Year: 2022 PMID: 36010431 PMCID: PMC9407322 DOI: 10.3390/foods11162431
Source DB: PubMed Journal: Foods ISSN: 2304-8158
Figure 1Dried Hami jujube samples and spectral data acquisition.
Figure 2MRSA-SVM flowchart.
Figure 3Spectral reflectance curves of dried Hami jujube in different states. (a) Mean reflectance spectral curves, and spectral curves with standard deviation for (b) normal jujube, (c) starch-head fruit, and (d) mildewed fruit.
The discrimination results based on different oversampling methods.
| Model | Over-Sampling | Accuracy for Training Set (%) | Accuracy for Test Set (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| NM a | SH b | MD c | Total | NM | SH | MD | Total | ||
| SVM | Null | 100.00 | 92.89 | 82.61 | 93.57 | 100.00 | 89.01 | 55.17 | 87.22 |
| ROS | 99.05 | 95.26 | 100.00 | 98.10 | 96.67 | 98.90 | 51.72 | 90.56 | |
| SMOTE | 100.00 | 95.74 | 95.74 | 97.16 | 98.33 | 95.60 | 68.97 | 92.22 | |
| BL-SMOTE | 99.53 | 94.79 | 98.10 | 97.47 | 100.00 | 95.60 | 72.41 | 93.33 | |
| ADASYN | 99.52 | 94.31 | 97.60 | 97.12 | 98.33 | 97.80 | 65.52 | 92.78 | |
| PLS-DA | Null | 98.57 | 72.04 | 71.01 | 80.71 | 98.33 | 69.23 | 55.17 | 76.67 |
| ROS | 97.63 | 83.41 | 91.94 | 91.00 | 96.67 | 67.03 | 68.97 | 77.22 | |
| SMOTE | 96.68 | 78.20 | 87.20 | 87.36 | 98.33 | 81.32 | 72.41 | 85.56 | |
| BL-SMOTE | 98.57 | 82.00 | 89.57 | 90.56 | 96.67 | 87.91 | 72.41 | 88.33 | |
| ADASYN | 98.06 | 81.52 | 92.31 | 90.05 | 96.67 | 82.42 | 75.86 | 86.11 | |
a,b,c represent normal jujube, starch-head fruit and mildewed fruit in dried Hami jujubes.
Figure 4Comprehensive evaluation indexes (%) of test set: (a) SVM model; (b) PLS-DA model.
Figure 5(a) Distribution map of feature variables. (b) Test set results of SVM model based on these variables.
Detection results of test set base on SVM optimized by different algorithms.
| Optimizer |
|
| Accuracy (%) | Recall (%) | Precision (%) | F1 (%) | Kappa (%) |
|---|---|---|---|---|---|---|---|
| MRSA | 10.13 | 5.49 | 97.22 | 94.25 | 98.05 | 95.86 | 93.75 |
| RSA | 8.34 | 5.28 | 96.11 | 92.74 | 96.31 | 94.25 | 91.25 |
| GA | 3.76 | 12.89 | 93.33 | 87.39 | 95.84 | 90.32 | 85.00 |
| PSO | 6.48 | 6.85 | 95.56 | 91.40 | 97.06 | 93.63 | 90.00 |
Figure 6Optimization process of MRSA, RSA, GA and PSO algorithm.
Figure 7Confusion matrix of test set based on MRSA-SVM. NM, SH and MD represented normal jujube, starch-head fruit and mildewed fruit, respectively.