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

A Lightweight Method for Peanut Kernel Quality Detection Based on SEA-YOLOv5

Author

Listed:
  • Zhixia Liu

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China
    These authors contributed equally to this work.)

  • Chunyu Wang

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China
    These authors contributed equally to this work.)

  • Xilin Zhong

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Genhua Shi

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • He Zhang

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Dexu Yang

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Jing Wang

    (College of Engineering, Shenyang Agricultural University, Shenyang 110866, China)

Abstract

Peanuts are susceptible to defects such as insect damage, breakage, germinant, and mildew, leading to varying qualities of peanuts. The disparity in peanut kernel quality results in significant differences in their prices and economic value. Conducting real-time, accurate, and non-destructive quality inspections of peanut kernels can effectively increase the utilization rate and commercial value of peanuts. Manual inspections are inefficient and subjective, while photoelectric sorting is costly and less precise. Therefore, this study proposes a peanut kernel quality detection algorithm based on an enhanced YOLO v5 model. Compared to other models, this model is practical, highly accurate, lightweight, and easy to integrate. Initially, YOLO v5s was chosen as the foundational training model through comparison. Subsequently, the original backbone network was replaced with a lightweight ShuffleNet v2 network to improve the model’s ability to differentiate features among various types of peanut kernels and reduce the parameters. The ECA (Efficient Channel Attention) mechanism was introduced into the C3 module to enhance feature extraction capabilities, thereby improving average accuracy. The CIoU loss function was replaced with the alpha-IoU loss function to boost detection accuracy. The experimental results indicated that the improved model, SEA-YOLOv5, achieved an accuracy of 98.8% with a parameter count of 0.47 M and an average detection time of 11.2 ms per image. When compared to other detection models, there was an improvement in accuracy, demonstrating the effectiveness of the proposed peanut kernel quality detection model. Furthermore, this model is suitable for deployment on resource-limited embedded devices such as mobile terminals, enabling real-time and precise detection of peanut kernel quality.

Suggested Citation

  • Zhixia Liu & Chunyu Wang & Xilin Zhong & Genhua Shi & He Zhang & Dexu Yang & Jing Wang, 2024. "A Lightweight Method for Peanut Kernel Quality Detection Based on SEA-YOLOv5," Agriculture, MDPI, vol. 14(12), pages 1-18, December.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:12:p:2273-:d:1541623
    as

    Download full text from publisher

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

    File URL: https://www.mdpi.com/2077-0472/14/12/2273/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lili Yang & Changlong Wang & Jianfeng Yu & Nan Xu & Dongwei Wang, 2023. "Method of Peanut Pod Quality Detection Based on Improved ResNet," Agriculture, MDPI, vol. 13(7), pages 1-20, July.
    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. Chengtao Xu & Awei Zhu & Yanfen Liu & Shuqi Shang, 2024. "Design and Parameters Optimization of Key Components of Seed Peanut Shelling Test Bench Based on Cohesive Model," Agriculture, MDPI, vol. 14(12), pages 1-21, December.

    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:12:p:2273-:d:1541623. 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.