Rock Melon Ripeness Detection Using YOLOv8 and SE-Lightweight YOLOv8
Received: 12 November 2025 | Revised: 23 January 2026 and 4 February 2026 | Accepted: 7 February 2026 | Online: 4 April 2026
Corresponding author: Dewi Kania Widyawati
Abstract
Accurate detection of fruit ripeness is crucial for improving harvest efficiency and supporting smart agriculture systems. This study investigates the performance of You Only Look Once version 8 (YOLOv8) and Squeeze-and-Excitation Lightweight YOLOv8 (SE-Lightweight YOLOv8) for automatic rock melon ripeness detection based on visual features. A dataset of 2,000 high-resolution rock melon images was collected under real field conditions and annotated into 2,014 rock melon objects, categorized into three ripeness levels: fully ripe, half-ripened, and unripe. Model performance was evaluated using precision, recall, accuracy, F1-score, and mean Average Precision (mAP). Experimental results indicate that both models achieve comparably high detection performance. YOLOv8 demonstrates slightly higher precision (0.994), F1-score (0.994), and overall accuracy (0.992), reflecting a more balanced detection capability. In contrast, SE-Lightweight YOLOv8 attains a marginally higher recall (0.999), indicating improved detection of relevant melon ripeness instances. In terms of localization performance, both models achieve similar mAP50–95 scores (0.925) and nearly identical mAP50 values (0.995 for YOLOv8 and 0.994 for SE-Lightweight YOLOv8), suggesting comparable robustness across different Intersection-Over-Union (IoU) thresholds. These findings highlight a trade-off between detection accuracy and computational efficiency. YOLOv8 is better suited for applications that require high detection accuracy, whereas SE-Lightweight YOLOv8 is a viable alternative for real-time deployment on resource-constrained devices. The results demonstrate the potential of YOLO-based object detection models to support precision agriculture and optimize rock melon harvesting processes.
Keywords:
YOLOv8, SE-Lightweight YOLOv8, deep learning, rock melon, fruit ripeness detectionDownloads
References
N. M. G. Puspamurti, I. A. Oktavianti, and D. P. E. Nilakusmawati, "Population Projection Based on the Cohort-Component Method: A Comparative Study of Global and Indonesian Approaches," International Journal of Multidisciplinary Research and Growth Evaluation, vol. 6, no. 4, pp. 551–559, July 2025. DOI: https://doi.org/10.54660/.IJMRGE.2025.6.4.551-559
D. Durán-Sandoval, G. Durán-Romero, and F. Uleri, "How Much Food Loss and Waste Do Countries with Problems with Food Security Generate?," Agriculture, vol. 13, no. 5, Apr. 2023, Art. no. 966. DOI: https://doi.org/10.3390/agriculture13050966
S. Ghazal, A. Munir, and W. S. Qureshi, "Computer vision in smart agriculture and precision farming: Techniques and applications," Artificial Intelligence in Agriculture, vol. 13, pp. 64–83, Sept. 2024. DOI: https://doi.org/10.1016/j.aiia.2024.06.004
B. Nath, G. Chen, C. M. O’Sullivan, and D. Zare, "Research and Technologies to Reduce Grain Postharvest Losses: A Review," Foods, vol. 13, no. 12, June 2024, Art. no. 1875. DOI: https://doi.org/10.3390/foods13121875
E. Cozzolino et al., "Assessing Yield and Quality of Melon (Cucumis melo L.) Improved by Biodegradable Mulching Film," Plants, vol. 12, no. 1, Jan. 2023, Art. no. 219. DOI: https://doi.org/10.3390/plants12010219
W. Zhang, "A Fruit Ripeness Detection Method using Adapted Deep Learning-based Approach," International Journal of Advanced Computer Science and Applications, vol. 14, no. 9, pp. 1163–1169, Oct. 2023. DOI: https://doi.org/10.14569/IJACSA.2023.01409121
Z. Zhong, L. Yun, F. Cheng, Z. Chen, and C. Zhang, "Light-YOLO: A Lightweight and Efficient YOLO-Based Deep Learning Model for Mango Detection," Agriculture, vol. 14, no. 1, Jan. 2024, Art. no. 140. DOI: https://doi.org/10.3390/agriculture14010140
I. Attri, L. K. Awasthi, T. P. Sharma, and P. Rathee, "A review of deep learning techniques used in agriculture," Ecological Informatics, vol. 77, Nov. 2023, Art. no. 102217. DOI: https://doi.org/10.1016/j.ecoinf.2023.102217
R. Rajamohanan and B. C. Latha, "An Optimized YOLO v5 Model for Tomato Leaf Disease Classification with Field Dataset," Engineering, Technology & Applied Science Research, vol. 13, no. 6, pp. 12033–12038, Dec. 2023. DOI: https://doi.org/10.48084/etasr.6377
S. Chen, X. Zou, X. Zhou, Y. Xiang, and M. Wu, "Study on fusion clustering and improved YOLOv5 algorithm based on multiple occlusion of Camellia oleifera fruit," Computers and Electronics in Agriculture, vol. 206, Mar. 2023, Art. no. 107706. DOI: https://doi.org/10.1016/j.compag.2023.107706
B. Xiao, M. Nguyen, and W. Q. Yan, "Fruit ripeness identification using YOLOv8 model," Multimedia Tools and Applications, vol. 83, no. 9, pp. 28039–28056, Mar. 2024. DOI: https://doi.org/10.1007/s11042-023-16570-9
A. Wang et al., "NVW-YOLOv8s: An improved YOLOv8s network for real-time detection and segmentation of tomato fruits at different ripeness stages," Computers and Electronics in Agriculture, vol. 219, Apr. 2024, Art. no. 108833. DOI: https://doi.org/10.1016/j.compag.2024.108833
M. Yaseen, "What is YOLOv9: An In-Depth Exploration of the Internal Features of the Next-Generation Object Detector." arXiv, Sept. 12, 2024.
M. K. Jahan et al., "Enhancing the YOLOv8 model for realtime object detection to ensure online platform safety," Scientific Reports, vol. 15, no. 1, July 2025, Art. no. 21167. DOI: https://doi.org/10.1038/s41598-025-08413-4
G. Chen, Y. Hou, H. Chen, L. Cao, and J. Yuan, "A lightweight Color-changing melon ripeness detection algorithm based on model pruning and knowledge distillation: leveraging dilated residual and multi-screening path aggregation," Frontiers in Plant Science, vol. 15, July 2024, Art. no. 1406593. DOI: https://doi.org/10.3389/fpls.2024.1406593
X. Jing, Y. Wang, D. Li, and W. Pan, "Melon ripeness detection by an improved object detection algorithm for resource constrained environments," Plant Methods, vol. 20, no. 1, Aug. 2024, Art. no. 127. DOI: https://doi.org/10.1186/s13007-024-01259-3
W. Karamti, S. E. Khediri, and T. Moulahi, "Sustainable Wastewater Management in Agriculture: A Deep Learning-based Olive Classification for Resource Efficiency in Water-Scarce Regions," Engineering, Technology & Applied Science Research, vol. 15, no. 3, pp. 24061–24069, June 2025. DOI: https://doi.org/10.48084/etasr.10667
H. You et al., "A Blueberry Maturity Detection Method Integrating Attention-Driven Multi-Scale Feature Interaction and Dynamic Upsampling," Horticulturae, vol. 11, no. 6, May 2025, Art. no. 600. DOI: https://doi.org/10.3390/horticulturae11060600
F. Feldmann and A. Rutikanga, "Phenological growth stages and BBCH-identification keys of Chilli (Capsicum annuum L., Capsicum chinense JACQ., Capsicum baccatum L.)," Journal of Plant Diseases and Protection, vol. 128, no. 2, pp. 549–555, Apr. 2021. DOI: https://doi.org/10.1007/s41348-020-00395-x
X. Deng, T. Huang, W. Wang, and W. Feng, "SE-YOLO: A sobel-enhanced framework for high-accuracy, lightweight real-time tomato detection with edge deployment capability," Computers and Electronics in Agriculture, vol. 239, Dec. 2025, Art. no. 110973. DOI: https://doi.org/10.1016/j.compag.2025.110973
R. Ayachi, Y. Said, M. Afif, A. Alshammari, M. Hleili, and A. Ben Abdelali, "Assessing YOLO models for real-time object detection in urban environments for advanced driver-assistance systems (ADAS)," Alexandria Engineering Journal, vol. 123, pp. 530–549, June 2025. DOI: https://doi.org/10.1016/j.aej.2025.03.077
Z. Cao and R. Yuan, "Real-Time Detection of Mango Based on Improved YOLOv4," Electronics, vol. 11, no. 23, Nov. 2022, Art. no. 3853. DOI: https://doi.org/10.3390/electronics11233853
Downloads
How to Cite
License
Copyright (c) 2026 Dewi Kania Widyawati, Oki Arifin, Sylvia, Zuriati, Fahri Ali, Sela Wissi Yani, Dede Aprizal

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
