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

Real-Time Detection Technology of Corn Kernel Breakage and Mildew Based on Improved YOLOv5s

Author

Listed:
  • Mingming Liu

    (School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China
    Mechanical and Electronic Engineering College, Shandong Agriculture and Engineering University, Jinan 250100, China)

  • Yinzeng Liu

    (Mechanical and Electronic Engineering College, Shandong Agriculture and Engineering University, Jinan 250100, China)

  • Qihuan Wang

    (School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China)

  • Qinghao He

    (School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China)

  • Duanyang Geng

    (School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China)

Abstract

In order to solve low recognition of corn kernel breakage degree and corn kernel mildew degree during corn kernel harvesting, this paper proposes a real-time detection method for corn kernel breakage and mildew based on improved YOlOv5s, which is referred to as the CST-YOLOv5s model algorithm in this paper. The method continuously obtains images through the discrete uniform sampling device of corn kernels and generates whole corn kernels, breakage corn kernels, and mildew corn kernel dataset samples. We aimed at the problems of high similarity of some corn kernel features in the acquired images and the low precision of corn kernel breakage and mildew recognition. Firstly, the CBAM attention mechanism is added to the backbone network of YOLOv5s to finely allocate and process the feature information, highlighting the features of corn breakage and mildew. Secondly, the pyramid pooling structure SPPCPSC, which integrates cross-stage local networks, is adopted to replace the SPPF in YOLOv5s. SPP and CPSC technologies are used to extract and fuse features of different scales, improving the precision of object detection. Finally, the original prediction head is converted into a transformer prediction head to explore the prediction potential with a multi-head attention mechanism. The experimental results show that the CST-YOLOv5s model has a significant improvement in the detection of corn kernel breakage and mildew. Compared with the original YOLOv5s model, the average precision ( AP ) of corn kernel breakage and mildew recognition increased by 5.2% and 7.1%, respectively, and the mean average precision ( mAP ) of all kinds of corn kernel recognition is 96.1%, and the frame rate is 36.7 FPS. Compared with YOLOv4-tiny, YOLOv6n, YOLOv7, YOLOv8s, and YOLOv9-E detection model algorithms, the CST-YOLOv5s model has better overall performance in terms of detection accuracy and speed. This study can provide a reference for real-time detection of breakage and mildew kernels during the harvesting process of corn kernels.

Suggested Citation

  • 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.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:5:p:725-:d:1389899
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/14/5/725/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/14/5/725/
    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.
    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.

    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:14:y:2024:i:5:p:725-:d:1389899. 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.