Real-time object detection and diagnosis of tomato quality using YOLO

Youssry A. Mokhtar, Essam H. Seddik

Abstract


Tomato quality plays a critical role in both customer satisfaction and the efficiency of post-harvest processing. Traditional sorting and grading methods are labor-intensive, subjective, and unsuitable for high-throughput operations. This study proposes a smart AI-based vision system capable of real-time classification of tomato quality into three classes: fresh, damaged, and unripe. The system employs advanced deep learning techniques, specifically a custom-trained YOLO object-detection model, to analyze key visual attributes such as color, texture, and surface defects. A diverse, labeled custom dataset of tomato images was collected to train and evaluate the model. This dataset included tomato images with the 3 health conditions according to the output classes of the neural network. The results show that the system has achieved high accuracy and strong robustness across varying lighting conditions and backgrounds, making it suitable for deployment in real agricultural and industrial environments. By enabling fast, automated, and objective quality assessment, the proposed system significantly enhances the reliability and efficiency of tomato grading and contributes to improved food supply chain management.

 

Received: 04 November 2025

Accepted: 16 December 2025

Published: 23 December 2025


Keywords


Tomato Quality Classification, Computer Vision, YOLO, Deep Learning

Full Text:

PDF

References


J. A. Clark, “Automation in horticulture: The future of crop grading and handling,” 2022. [Online]. Available: https://www.cabidigitallibrary.org/doi/pdf/10.5555/20220163943

M. D. Forecast, “Tomato Market Size, Share, Trends & Growth Report, 2033,” 2025. [Online]. Available: https://www.marketdataforecast.com/market-reports/tomato-market

M. Dalal and P. Mittal, “A Systematic Review of Deep Learning-Based Object Detection in Agriculture: Methods, Challenges, and Future Directions,” Computers, Materials & Continua, vol. 84, no. 1, pp. 57–91, 2025, doi: 10.32604/cmc.2025.066056.

S. Espinoza, C. Aguilera, L. Rojas, and P. G. Campos, “Analysis of Fruit Images With Deep Learning: A Systematic Literature Review and Future Directions,” IEEE Access, vol. 12, pp. 3837–3859, 2024, doi: 10.1109/ACCESS.2023.3345789.

Y. Tan, X. Liu, J. Zhang, Y. Wang, and Y. Hu, “A Review of Research on Fruit and Vegetable Picking Robots Based on Deep Learning,” Sensors, vol. 25, no. 12, p. 3677, Jun. 2025, doi: 10.3390/s25123677.

C. Dewi, D. Thiruvady, and N. Zaidi, “Fruit Classification System with Deep Learning and Neural Architecture Search,” 2024.

I. D. Apostolopoulos, M. Tzani, and S. I. Aznaouridis, “A General Machine Learning Model for Assessing Fruit Quality Using Deep Image Features,” AI, vol. 4, no. 4, pp. 812–830, Sep. 2023, doi: 10.3390/ai4040041.

I. Rojas Santelices, S. Cano, F. Moreira, and Á. Peña Fritz, “Artificial Vision Systems for Fruit Inspection and Classification: Systematic Literature Review,” Sensors (Basel), vol. 25, p. 1524, Dec. 2025, doi: 10.3390/s25051524.

J. Sarro et al., “Fruit yield estimation using image analysis is also about correcting the number of detections | International Society for Horticultural Science,” 2023. [Online]. Available: https://www.ishs.org/ishs-article/1360_42

D. WANG, Z. FANG, M. MO, J. GAN, and Z. SUN, “Tomato ripeness detection method based on improved YOLOv11 lightweight model,” Front Agric Sci Eng, vol. 13, 2025, doi: 10.15302/j-fase-2025657.

Q. Wu, H. Huang, D. Song, and J. Zhou, “YOLO-PGC: A Tomato Maturity Detection Algorithm Based on Improved YOLOv11,” Applied Sciences, vol. 15, no. 9, p. 5000, Apr. 2025, doi: 10.3390/app15095000.

A. Wang et al., “Tomato Yield Estimation Using an Improved Lightweight YOLO11n Network and an Optimized Region Tracking-Counting Method,” Agriculture (Switzerland), vol. 15, no. 13, 2025, doi: 10.3390/agriculture15131353.




DOI: https://dx.doi.org/10.21622/RIMC.2025.02.2.1846

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Youssry A. Mokhtar, Essam H. Seddik


Robotics : Integration, Manufacturing and Control

E-ISSN: 3009-7967

P-ISSN: 3009-6987

 

Published by:

Academy Publishing Center (APC)

Arab Academy for Science, Technology and Maritime Transport (AASTMT)

Alexandria, Egypt

rimc@aast.edu