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

Improved Cotton Seed Breakage Detection Based on YOLOv5s

Author

Listed:
  • Yuanjie Liu

    (College of Mechanicaland Electrical Engineering, Tarim University, Alar 843300, China
    Modern Agricultural Engineering Key Laboratory at Universities of Education Department of Xinjiang Uygur Autonomous Region, Tarim University, Alar 843300, China
    These authors contributed equally to this work.)

  • Zunchao Lv

    (College of Mechanicaland Electrical Engineering, Tarim University, Alar 843300, China
    Modern Agricultural Engineering Key Laboratory at Universities of Education Department of Xinjiang Uygur Autonomous Region, Tarim University, Alar 843300, China
    These authors contributed equally to this work.)

  • Yingyue Hu

    (College of Mechanicaland Electrical Engineering, Tarim University, Alar 843300, China
    Modern Agricultural Engineering Key Laboratory at Universities of Education Department of Xinjiang Uygur Autonomous Region, Tarim University, Alar 843300, China)

  • Fei Dai

    (Modern Agricultural Engineering Key Laboratory at Universities of Education Department of Xinjiang Uygur Autonomous Region, Tarim University, Alar 843300, China
    College of Mechanical and Electrical Engineering, Gansu Agricultural University, Lanzhou 730070, China)

  • Hongzhou Zhang

    (College of Mechanicaland Electrical Engineering, Tarim University, Alar 843300, China
    Modern Agricultural Engineering Key Laboratory at Universities of Education Department of Xinjiang Uygur Autonomous Region, Tarim University, Alar 843300, China)

Abstract

Convolutional neural networks have been widely used in nondestructive testing of agricultural products. Aiming at the problems of missing detection, false detection, and slow detection, a lightweight improved cottonseed damage detection method based on YOLOv5s is proposed. Firstly, the focus element of the YOLOv5s backbone network is replaced by Denseblock, simplifying the number of modules in the backbone network layer, reducing redundant information, and improving the feature extraction ability of the network. Secondly, the collaborative attention (CA) mechanism module is added after the SPP pooling layer, and a large target detection layer is reduced to guide the network to pay more attention to the location, channel, and dimension information of small targets. Thirdly, Ghostconv is used instead of the conventional convolution layer in the neck feature fusion layer to reduce the amount of floating-point calculation and speed up the reasoning speed of the model. The CIOU loss function is selected as the border regression loss function to improve the recall rate of the model. Lastly, the model was verified using an ablation experiment and compared with the YOLOv4, Yolov5s, and SSD-VGG16 network models. The accuracy, recall rate, and map value of the improved network model were 92.4%, 91.7%, and 98.1%, respectively, and the average recognition time of each image was 97 fps. The results show that the improved network can effectively solve the problem of missing detection, reduce false detection, and have better recognition performance. This method can provide technical support for real-time and accurate detection of damaged cottonseed in a cottonseed screening device.

Suggested Citation

  • Yuanjie Liu & Zunchao Lv & Yingyue Hu & Fei Dai & Hongzhou Zhang, 2022. "Improved Cotton Seed Breakage Detection Based on YOLOv5s," Agriculture, MDPI, vol. 12(10), pages 1-18, October.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:10:p:1630-:d:935532
    as

    Download full text from publisher

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

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

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Huishan Li & Lei Shi & Siwen Fang & Fei Yin, 2023. "Real-Time Detection of Apple Leaf Diseases in Natural Scenes Based on YOLOv5," Agriculture, MDPI, vol. 13(4), pages 1-19, April.

    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:12:y:2022:i:10:p:1630-:d:935532. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.