IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v15y2025i7p685-d1619396.html
   My bibliography  Save this article

Real-Time Detection of Varieties and Defects in Moving Corn Seeds Based on YOLO-SBWL

Author

Listed:
  • Yuhang Che

    (College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
    Jiaxiang Industrial Technology Research Institute of Heilongjiang University, Heilongjiang University, Jining 272400, China)

  • Hongyi Bai

    (College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
    Jiaxiang Industrial Technology Research Institute of Heilongjiang University, Heilongjiang University, Jining 272400, China)

  • Laijun Sun

    (College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
    Jiaxiang Industrial Technology Research Institute of Heilongjiang University, Heilongjiang University, Jining 272400, 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
    Jiaxiang Industrial Technology Research Institute of Heilongjiang University, Heilongjiang University, Jining 272400, China)

  • Shanbing Yin

    (College of Electronics and Engineering, Heilongjiang University, Harbin 150080, China
    Jiaxiang Industrial Technology Research Institute of Heilongjiang University, Heilongjiang University, Jining 272400, China)

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.

Suggested Citation

  • Yuhang Che & Hongyi Bai & Laijun Sun & Yanru Fang & Xinbo Guo & Shanbing Yin, 2025. "Real-Time Detection of Varieties and Defects in Moving Corn Seeds Based on YOLO-SBWL," Agriculture, MDPI, vol. 15(7), pages 1-25, March.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:7:p:685-:d:1619396
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/15/7/685/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/15/7/685/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Huawei Yang & Yinzeng Liu & Shaowei Wang & Huixing Qu & Ning Li & Jie Wu & Yinfa Yan & Hongjian Zhang & Jinxing Wang & Jianfeng Qiu, 2023. "Improved Apple Fruit Target Recognition Method Based on YOLOv7 Model," Agriculture, MDPI, vol. 13(7), pages 1-21, June.
    2. Yu Wang & Hongyi Bai & Laijun Sun & Yan Tang & Yonglong Huo & Rui Min, 2022. "The Rapid and Accurate Detection of Kidney Bean Seeds Based on a Compressed Yolov3 Model," Agriculture, MDPI, vol. 12(8), pages 1-21, August.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ping Dong & Kuo Li & Ming Wang & Feitao Li & Wei Guo & Haiping Si, 2023. "Maize Leaf Compound Disease Recognition Based on Attention Mechanism," Agriculture, MDPI, vol. 14(1), pages 1-22, December.
    2. Rihong Zhang & Zejun Huang & Yuling Zhang & Zhong Xue & Xiaomin Li, 2023. "MSGV-YOLOv7: A Lightweight Pineapple Detection Method," Agriculture, MDPI, vol. 14(1), pages 1-16, December.
    3. Feng Xiao & Haibin Wang & Yueqin Xu & Zhen Shi, 2023. "A Lightweight Detection Method for Blueberry Fruit Maturity Based on an Improved YOLOv5 Algorithm," Agriculture, MDPI, vol. 14(1), pages 1-18, December.
    4. Kunpeng Zhao & Jinyang Li & Wenqiang Shi & Liqiang Qi & Chuntao Yu & Wei Zhang, 2024. "Field-Based Soybean Flower and Pod Detection Using an Improved YOLOv8-VEW Method," Agriculture, MDPI, vol. 14(8), pages 1-15, August.
    5. Mingming Liu & Yinzeng Liu & Qihuan Wang & Qinghao He & Duanyang Geng, 2024. "Real-Time Detection Technology of Corn Kernel Breakage and Mildew Based on Improved YOLOv5s," Agriculture, MDPI, vol. 14(5), pages 1-16, May.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:15:y:2025:i:7:p:685-:d:1619396. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.