Early Detection of Surface Mildew in Maize Kernels Using Machine Vision Coupled with Improved YOLOv5 Deep Learning Model
Open Access
- 14 November 2024
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 14 (22) , 10489
Abstract
Mildew in maize kernels is typically caused by various fungi, necessitating prompt detection and treatment to minimize losses during harvest and storage. In this study, a deep learning YOLOv5s algorithm based on machine vision technology was employed to develop a maize seed surface mildew detection model and to enhance its portability for deployment on additional mobile devices. To guarantee the fruitful progression of this research, an initial experiment was conducted on maize seeds to obtain a sufficient number of images of mildewed maize kernels, which were classified into three grades (sound, mild, and severe). Subsequently, a maize seed image was extracted to create an image of a single maize seed, which was then divided to establish the data set. An enhanced YOLOv5s–ShuffleNet–CBAM model was ultimately developed. The results demonstrated that the model achieved with an mAP50 value of 0.955 and a model size of 2.4 MB. This resulted in a notable reduction in the model parameters and calculation amount while simultaneously enhancing model precision. Furthermore, K-fold cross-validation demonstrated the model stability, and Grad-CAM validated the model effectiveness. In the future, the proposed lightweight model in this study can be applied to other crops in the context of portable or online inspection systems, thus advancing effective and high-quality agricultural applications.Keywords
Funding Information
- National Natural Science Foundation of China (62203285, 959202413041, 23NYGG0070, 2022JQ-181)
- Young Talent Fund of Xi’an Association for Science and Technology (62203285, 959202413041, 23NYGG0070, 2022JQ-181)
- Xi’an Science and Technology Plan Project (62203285, 959202413041, 23NYGG0070, 2022JQ-181)
- Natural Science Basic Research Program of Shaanxi (62203285, 959202413041, 23NYGG0070, 2022JQ-181)
This publication has 27 references indexed in Scilit:
- Detection of surface defects for maize seeds based on YOLOv5Journal of Stored Products Research, 2024
- Corn kernel classification from few training samplesArtificial Intelligence in Agriculture, 2023
- Two-wavelength image detection of early decayed oranges by coupling spectral classification with image processingJournal of Food Composition and Analysis, 2022
- Moldy peanuts identification based on hyperspectral images and Point-centered convolutional neural network combined with embedded feature selectionComputers and Electronics in Agriculture, 2022
- Real-time defect inspection of green coffee beans using NIR snapshot hyperspectral imagingComputers and Electronics in Agriculture, 2022
- A visual identification method for the apple growth forms in the orchardComputers and Electronics in Agriculture, 2022
- A novel image detection method for internal cracks in corn seeds in an industrial inspection lineComputers and Electronics in Agriculture, 2022
- Early diagnosis and pathogenesis monitoring of wheat powdery mildew caused by blumeria graminis using hyperspectral imagingComputers and Electronics in Agriculture, 2022
- Computer-vision classification of corn seed varieties using deep convolutional neural networkJournal of Stored Products Research, 2021
- Global irrigation contribution to wheat and maize yieldNature Communications, 2021