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

An Improved YOLOv8 Model for Detecting Four Stages of Tomato Ripening and Its Application Deployment in a Greenhouse Environment

Author

Listed:
  • Haoran Sun

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Qi Zheng

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Weixiang Yao

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Junyong Wang

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Changliang Liu

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Huiduo Yu

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Chunling Chen

    (College of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    Liaoning Engineering Research Center for Information Technology in Agriculture, Shenyang 110299, China)

Abstract

The ripeness of tomatoes is a critical factor influencing both their quality and yield. Currently, the accurate and efficient detection of tomato ripeness in greenhouse environments, along with the implementation of selective harvesting, has become a topic of significant research interest. In response to the current challenges, including the unclear segmentation of tomato ripeness stages, low recognition accuracy, and the limited deployment of mobile applications, this study provided a detailed classification of tomato ripeness stages. Through image processing techniques, the issue of class imbalance was addressed. Based on this, a model named GCSS-YOLO was proposed. Feature extraction was refined by introducing the RepNCSPELAN module, which is a lightweight alternative that reduces model size. A multi-dimensional feature neck network was integrated to enhance feature fusion, and three Semantic Feature Learning modules (SGE) were added before the detection head to minimize environmental interference. Further, Shape_IoU replaced CIoU as the loss function, prioritizing bounding box shape and size for improved detection accuracy. Experiments demonstrated GCSS-YOLO’s superiority, achieving an average mean average precision mAP50 of 85.3% and F1 score of 82.4%, outperforming the SSD, RT-DETR, and YOLO variants and advanced models like YOLO-TGI and SAG-YOLO. For practical deployment, this study deployed a mobile application developed using the NCNN framework on the Android platform. Upon evaluation, the model achieved an RMSE of 0.9045, an MAE of 0.4545, and an R 2 value of 0.9426, indicating strong performance.

Suggested Citation

  • Haoran Sun & Qi Zheng & Weixiang Yao & Junyong Wang & Changliang Liu & Huiduo Yu & Chunling Chen, 2025. "An Improved YOLOv8 Model for Detecting Four Stages of Tomato Ripening and Its Application Deployment in a Greenhouse Environment," Agriculture, MDPI, vol. 15(9), pages 1-33, April.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:9:p:936-:d:1642665
    as

    Download full text from publisher

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

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

    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:9:p:936-:d:1642665. 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.