Deep Learning-Based Multistage Peach Ripeness Detection with Data Leakage Mitigation and Real-World Validation
Salvador Castro-Tapia, Germán Díaz-Flórez, Rafael Reveles-Martínez, Héctor A. Guerrero-Osuna, Luis F. Luque-Vega, Humberto Morales-Magallanes, Jorge Pablo Vega-Borrego, Gilberto Vázquez-García,
Instituto Tecnológico Superior de Xalapa · Universidad Autónoma de Zacatecas "Francisco García Salinas"
Abstract
Accurate fruit ripeness assessment is essential for optimizing harvest timing and ensuring postharvest quality, particularly in climacteric fruits such as peaches, which exhibit rapid and heterogeneous ripening. This study proposes a deep learning-based approach for multistage peach ripeness classification across five maturity levels (green, green-blushed, blushed, yellow-blushed, and fully yellow). Four datasets were constructed using controlled image acquisition, segmentation, data augmentation, and perceptual hashing to mitigate data leakage. The performance of AlexNet, EfficientNet-B0, and three YOLO (You Only Look Once) architectures (YOLOv8, YOLOv11, and YOLOv12) was evaluated using standard metrics, including accuracy, precision, recall, F1 score, mAP, and inference speed. Results show that YOLO-based models significantly outperform classical networks, achieving accuracies between 95.25% and 98.3% and mAP@0.5 above 98.25%, while also reducing inference time to 8.1–12.7 ms compared with 722.23 ms for AlexNet and 171.87 ms for EfficientNet-B0. In a practical sorting experiment with 214 peaches, YOLOv12 achieved 92.06% accuracy, demonstrating robust real-world performance. Misclassifications were primarily observed between adjacent ripeness stages. These findings indicate that YOLO-based models provide an effective and scalable solution for real-time fruit sorting, while the use of perceptual hashing enhances dataset reliability and model generalization for deployment in agricultural quality control systems.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Deep learning for real-time strawberry detection, ripeness classification, and picking point localization: a review of architectures, field studies, and open challengesArtificial Intelligence Review · 2026
- ToRLNet: A Lightweight Deep Learning Model for Tomato Detection and Quality Assessment Across Ripeness StagesHorticulturae · 2025
- BMDNet-YOLO: A Lightweight and Robust Model for High-Precision Real-Time Recognition of Blueberry MaturityHorticulturae · 2025
- Lightweight visual detection approach for apple ripeness perception in intelligent orchard harvesting scenarios.Frontiers in plant science · 2026
- Multi‐Model Fruit Quality Assessment With Coarse YOLOv11 Presence Filtering, Vision Transformers and the Segment Anything ModelApplied AI Letters · 2026
- Real-time mulberry fruit ripeness recognition for selective harvesting using edge-deployable object detection: a single-orchard case studyFrontiers in Plant Science · 2026