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
    ---><---

    References listed on IDEAS

    as
    1. Dora Cama-Pinto & Miguel Damas & Juan Antonio Holgado-Terriza & Francisco Gómez-Mula & Alejandro Cama-Pinto, 2019. "Path Loss Determination Using Linear and Cubic Regression Inside a Classic Tomato Greenhouse," IJERPH, MDPI, vol. 16(10), pages 1-15, May.
    2. Xiang Yue & Kai Qi & Xinyi Na & Yang Zhang & Yanhua Liu & Cuihong Liu, 2023. "Improved YOLOv8-Seg Network for Instance Segmentation of Healthy and Diseased Tomato Plants in the Growth Stage," Agriculture, MDPI, vol. 13(8), pages 1-15, August.
    3. Juan Liao & Xinying He & Yexiong Liang & Hui Wang & Haoqiu Zeng & Xiwen Luo & Xiaomin Li & Lei Zhang & He Xing & Ying Zang, 2024. "A Lightweight Cotton Verticillium Wilt Hazard Level Real-Time Assessment System Based on an Improved YOLOv10n Model," Agriculture, MDPI, vol. 14(9), pages 1-22, September.
    4. Jisu Song & Dongseok Kim & Eunji Jeong & Jaesung Park, 2025. "Determination of Optimal Dataset Characteristics for Improving YOLO Performance in Agricultural Object Detection," Agriculture, MDPI, vol. 15(7), pages 1-30, March.
    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. Alexis Barrios-Ulloa & Alejandro Cama-Pinto & Emiro De-la-Hoz-Franco & Raúl Ramírez-Velarde & Dora Cama-Pinto, 2023. "Modeling of Path Loss for Radio Wave Propagation in Wireless Sensor Networks in Cassava Crops Using Machine Learning," Agriculture, MDPI, vol. 13(11), pages 1-15, October.
    2. Chamara, Nipuna & Islam, Md Didarul & Bai, Geng (Frank) & Shi, Yeyin & Ge, Yufeng, 2022. "Ag-IoT for crop and environment monitoring: Past, present, and future," Agricultural Systems, Elsevier, vol. 203(C).

    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.

    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.