An Improved YOLOv8 Model for Detecting Four Stages of Tomato Ripening and Its Application Deployment in a Greenhouse Environment
Open Access
- 25 April 2025
- journal article
- research article
- Published by MDPI AG in Agriculture
- Vol. 15 (9) , 936
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 R2 value of 0.9426, indicating strong performance.Keywords
Funding Information
- Liaoning Provincial Department of Education Fund, Precision Agriculture Aerospace and Smart Farm Key Technology R&D Platform Project (JYTPT2024002)
This publication has 42 references indexed in Scilit:
- EggplantDet: An efficient lightweight model for eggplant disease detectionAlexandria Engineering Journal, 2024
- Enhancing field soil moisture content monitoring using laboratory-based soil spectral measurements and radiative transfer modelsAgriculture Communications, 2024
- Integration of a parameter combination discriminator improves the accuracy of chlorophyll inversion from spectral imaging of riceAgriculture Communications, 2024
- Using improved YOLO V5s to recognize tomatoes in a continuous working environmentSignal, Image and Video Processing, 2024
- Real-time statistical algorithm for cherry tomatoes with different ripeness based on depth information mappingComputers and Electronics in Agriculture, 2024
- Smart solutions for capsicum Harvesting: Unleashing the power of YOLO for Detection, Segmentation, growth stage Classification, Counting, and real-time mobile identificationComputers and Electronics in Agriculture, 2024
- A lightweight SOD-YOLOv5n model-based winter jujube detection and counting method deployed on AndroidComputers and Electronics in Agriculture, 2024
- MTD-YOLO: Multi-task deep convolutional neural network for cherry tomato fruit bunch maturity detectionComputers and Electronics in Agriculture, 2023
- Real-time face verification on mobile devices using margin distillationMultimedia Tools and Applications, 2023
- An improved YOLOv5-based vegetable disease detection methodComputers and Electronics in Agriculture, 2022