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

Strawberry Detection and Ripeness Classification Using YOLOv8+ Model and Image Processing Method

Author

Listed:
  • Chenglin Wang

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650504, China)

  • Haoming Wang

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650504, China)

  • Qiyu Han

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650504, China)

  • Zhaoguo Zhang

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650504, China)

  • Dandan Kong

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650504, China)

  • Xiangjun Zou

    (College of Intelligent Manufacturing and Modern Industry, Xinjiang University, Urumqi 830046, China
    Foshan-Zhongke Innovation Research Institute of Intelligent Agriculture and Robotics, Foshan 528000, China)

Abstract

As strawberries are a widely grown cash crop, the development of strawberry fruit-picking robots for an intelligent harvesting system should match the rapid development of strawberry cultivation technology. Ripeness identification is a key step to realizing selective harvesting by strawberry fruit-picking robots. Therefore, this study proposes combining deep learning and image processing for target detection and classification of ripe strawberries. First, the YOLOv8+ model is proposed for identifying ripe and unripe strawberries and extracting ripe strawberry targets in images. The ECA attention mechanism is added to the backbone network of YOLOv8+ to improve the performance of the model, and Focal-EIOU loss is used in loss function to solve the problem of imbalance between easy- and difficult-to-classify samples. Second, the centerline of the ripe strawberries is extracted, and the red pixels in the centerline of the ripe strawberries are counted according to the H-channel of their hue, saturation, and value (HSV). The percentage of red pixels in the centerline is calculated as a new parameter to quantify ripeness, and the ripe strawberries are classified as either fully ripe strawberries or not fully ripe strawberries. The results show that the improved YOLOv8+ model can accurately and comprehensively identify whether the strawberries are ripe or not, and the mAP50 curve steadily increases and converges to a relatively high value, with an accuracy of 97.81%, a recall of 96.36%, and an F1 score of 97.07. The accuracy of the image processing method for classifying ripe strawberries was 91.91%, FPR was 5.03%, and FNR was 14.28%. This study demonstrates the program’s ability to quickly and accurately identify strawberries at different stages of ripeness in a facility environment, which can provide guidance for selective picking by subsequent fruit-picking robots.

Suggested Citation

  • Chenglin Wang & Haoming Wang & Qiyu Han & Zhaoguo Zhang & Dandan Kong & Xiangjun Zou, 2024. "Strawberry Detection and Ripeness Classification Using YOLOv8+ Model and Image Processing Method," Agriculture, MDPI, vol. 14(5), pages 1-17, May.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:5:p:751-:d:1392916
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Ewa Ropelewska & Krzysztof P. Rutkowski, 2023. "The Classification of Peaches at Different Ripening Stages Using Machine Learning Models Based on Texture Parameters of Flesh Images," Agriculture, MDPI, vol. 13(2), pages 1-13, February.
    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.

      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:751-:d:1392916. 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.