| Literature DB >> 35283875 |
Linbai Wang1,2, Jingyan Liu1,2, Jun Zhang1,2, Jing Wang1,2, Xiaofei Fan1,2.
Abstract
Corn seed materials of different quality were imaged, and a method for defect detection was developed based on a watershed algorithm combined with a two-pathway convolutional neural network (CNN) model. In this study, RGB and near-infrared (NIR) images were acquired with a multispectral camera to train the model, which was proved to be effective in identifying defective seeds and defect-free seeds, with an averaged accuracy of 95.63%, an averaged recall rate of 95.29%, and an F1 (harmonic average evaluation) of 95.46%. Our proposed method was superior to the traditional method that employs a one-pathway CNN with 3-channel RGB images. At the same time, the influence of different parameter settings on the model training was studied. Finally, the application of the object detection method in corn seed defect detection, which may provide an effective tool for high-throughput quality control of corn seeds, was discussed.Entities:
Keywords: convolutional neural network; corn seed defect; multispectral image; object detection; watershed segmentation algorithm
Year: 2022 PMID: 35283875 PMCID: PMC8905238 DOI: 10.3389/fpls.2022.730190
Source DB: PubMed Journal: Front Plant Sci ISSN: 1664-462X Impact factor: 5.753
FIGURE 1Image acquisition platform. (A) Support, (B) camera, (C) circular white light source, (D) circular near-infrared light source, and (E) white backlight.
FIGURE 2The vibration module.
FIGURE 3The original image of (A) good quality corn seeds, (B) disfigured corn seeds, and (C) both situations.
FIGURE 4Image processing procedures. (A) Segmentation processes and (B) segmentation results.
FIGURE 5Corn-seed-Net network architecture.
FIGURE 6The accuracy of the five models for the test set.
Training results of Corn-seed-Net with different model parameters.
| Initial learning rate | Training algorithm | Epoch time/s | Training accuracy/% | Validation accuracy/% |
| 0.001 | Adam | 180 | 100.00 | 94.23 |
| 0.0001 | Adam | 180 | 100.00 | 95.80 |
| 0.001 | SGD | 165 | 100.00 | 96.90 |
| 0.0001 | SGD | 165 | 99.98 | 94.59 |
FIGURE 7The accuracy of Corn-seed-Net with different model parameters.
Test results of single seed with different models.
| Model | Classes | Predict classes | Model performance | |||
| Good | Bad | Accuracy/% | Averaged accuracy/% | Detection time/ms | ||
| VGG16 | Good | 99 | 1 | 99 | 99.00 | 45.5 |
| Bad | 1 | 99 | 99 | |||
| ResNet50 | Good | 100 | 0 | 100 | 99.00 | 41.7 |
| Bad | 2 | 98 | 98 | |||
| MobeliNet | Good | 97 | 3 | 97 | 98.00 | 22.9 |
| Bad | 1 | 99 | 99 | |||
| DenseNet121 | Good | 97 | 3 | 97 | 97.50 | 58.0 |
| Bad | 2 | 98 | 98 | |||
| Xception | Good | 98 | 2 | 98 | 97.50 | 41.0 |
| Bad | 3 | 97 | 97 | |||
| Corn-seed-Net | Good | 100 | 0 | 100 | 100.00 | 68.0 |
| Bad | 0 | 100 | 100 | |||
FIGURE 8(A) The original image and (B) object detection results.
Comparison of model performance combined with watershed algorithm.
| Model | Classes | Precision/% | Recall/% | Averaged precision/% | Averaged recall/% | F1/% | Detection time/ms |
| VGG16 | Good | 90.91 | 96.55 | 93.05 | 94.71 | 93.87 | 139.5 |
| Bad | 95.19 | 92.86 | |||||
| ResNet50 | Good | 94.00 | 97.24 | 94.69 | 94.60 | 94.64 | 122.5 |
| Bad | 95.37 | 91.96 | |||||
| MobeliNet | Good | 93.85 | 94.48 | 91.96 | 93.22 | 92.59 | 95.95 |
| Bad | 91.96 | 91.96 | |||||
| DenseNet121 | Good | 91.45 | 95.86 | 92.43 | 92.13 | 92.27 | 136.75 |
| Bad | 93.40 | 88.39 | |||||
| Xception | Good | 94.48 | 94.48 | 93.26 | 93.67 | 93.46 | 133.85 |
| Bad | 92.03 | 92.86 | |||||
| Corn-seed-Net | good | 94.08 | 98.62 | 95.63 | 95.29 | 95.46 | 149.55 |
| bad | 97.17 | 91.96 |
Comparison of model performance combined with watershed algorithm using RGB images.
| Model | Classes | Precision/% | Recall/% | Averaged precision/% | Averaged recall/% | F1/% | Detection time/ms |
| RGB VGG16 | Good | 90.13 | 94.48 | 91.67 | 90.10 | 90.87 | 69.92 |
| Bad | 93.20 | 85.71 | |||||
| RGB ResNet50 | Good | 95.56 | 95.86 | 94.54 | 93.02 | 93.77 | 98.83 |
| Bad | 93.52 | 90.18 | |||||
| RGB Corn-seed-Net | Good | 93.33 | 96.55 | 93.80 | 92.47 | 93.13 | 117.63 |
| Bad | 94.28 | 88.39 | |||||
| RGB + NIR Corn-seed-Net | Good | 94.08 | 98.62 | 95.63 | 95.29 | 95.46 | 149.55 |
| Bad | 97.17 | 91.96 |
Comparison of object detection results.
| Model | Average precision/% | Average recall/% | F1/% |
| GLCM + SVM | 22.05 | 48.11 | 30.24 |
| Color + SVM | 60.97 | 58.74 | 59.83 |
| HOG + SVM | 64.30 | 64.07 | 64.18 |
| MC + SVM | 68.64 | 68.17 | 68.40 |
| LBP + SVM | 74.28 | 73.73 | 74.00 |
| Corn-seed-Net | 95.63 | 95.29 | 95.46 |