Real-Time Detection of Varieties and Defects in Moving Corn Seeds Based on YOLO-SBWL
Yuhang Che,
Hongyi Bai (),
Laijun Sun,
Yanru Fang,
Xinbo Guo and
Shanbing Yin
Additional contact information
Yuhang Che: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Hongyi Bai: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Laijun Sun: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Yanru Fang: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Xinbo Guo: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Shanbing Yin: College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
Agriculture, 2025, vol. 15, issue 7, 1-25
Abstract:
Sorting corn seeds before sowing is crucial to ensure the varietal purity of the seeds and the yield of the crop. However, most of the existing methods for sorting corn seeds cannot detect both varieties and defects simultaneously. Detecting seeds in motion is more difficult than at rest, and many models pursue high accuracy at the expense of model inference time. To address these issues, this study proposed a real-time detection model, YOLO-SBWL, that simultaneously identifies corn seed varieties and surface defects by using images taken at different conveyor speeds. False detection of damaged seeds was addressed by inserting a simple and parameter-free attention mechanism (SimAM) into the original “you only look once” (YOLO)v7 network. At the neck of the network, the path-aggregation feature pyramid network was replaced with the weighted bi-directional feature pyramid network (BiFPN) to increase the accuracy of classifying undamaged corn seeds. The Wise-IoU loss function supplanted the CIoU loss function to mitigate the adverse impacts caused by low-quality samples. Finally, the improved model was pruned using layer-adaptive magnitude-based pruning (LAMP) to effectively compress the model. The YOLO-SBWL model demonstrated a mean average precision of 97.21%, which was 2.59% higher than the original network. The GFLOPs were reduced by 67.16%, and the model size decreased by 67.21%. The average accuracy of the model for corn seeds during the conveyor belt movement remained above 96.17%, and the inference times were within 11 ms. This study provided technical support for the swift and precise identification of corn seeds during transport.
Keywords: machine vision; corn seeds; object detection; YOLOv7; channel pruning (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2025
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2077-0472/15/7/685/pdf (application/pdf)
https://www.mdpi.com/2077-0472/15/7/685/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:15:y:2025:i:7:p:685-:d:1619396
Access Statistics for this article
Agriculture is currently edited by Ms. Leda Xuan
More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().