Deep Learning Approach for Identifying Fresh and Rotten Chili Peppers using YOLO
DOI:
https://doi.org/10.36456/4gmxqj65Keywords:
Deep Learning, YOLO, Chili Pepper, Quality Assessment, Synthetic Image GenerationAbstract
Abstract—In Indonesia, chili peppers are a vital agricultural commodity, widely used in various local dishes. Chili peppers are widely sold in modern markets and traditional markets. In some traditional markets, sellers sometimes do not store them in suitable conditions, thereby affecting the quality of the chili peppers. Sometimes, buyers are unable to select the specific chilies being sold wholesale, so they often end up with chilies of inferior quality. Therefore, this study proposes a deep learning-based computer vision system using the You Only Look Once (YOLO) framework to distinguish between fresh and rotten chili peppers. The model that we use was trained using 400 datasets from web-crawled images. To simulate real-world scenarios, during testing, some synthetic images were arranged in both regular and random patterns, as well as various chili orientations. Experimental results demonstrate that the proposed model effectively localizes and classifies chili peppers with confidence scores ranging from 0.55 to 0.90. Quantitative evaluation results achieved an accuracy of 0.5048, precision of 0.5516, recall of 0.4580, and [email protected] of 0.4662, indicating moderate detection and classification performance under varying visual conditions. The result of the experiment shows that the system success for distinguishes between fresh and rotten chilli pepper in some conditions of image variation, such as the angular orientation of the chilli peppers and their proximity. This shows that the approach using YOLO provides very promising results for application in the agricultural market.
References
[1] F. and A. O. of the U. Nations, “The State of Food and Agriculture 2019: Moving Forward on Food Loss and Waste Reduction,” Oct. 2019, doi: 10.18356/32F21F8C-EN.
[2] S. Cubero, N. Aleixos, E. Moltó, J. Gómez-Sanchis, and J. Blasco, “Advances in Machine Vision Applications for Automatic Inspection and Quality Evaluation of Fruits and Vegetables,” Food Bioproc. Tech., vol. 4, no. 4, pp. 487–504, May 2011, doi: 10.1007/S11947-010-0411-8.
[3] Y. Lecun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, no. 7553, pp. 436–444, May 2015, doi: 10.1038/NATURE14539.
[4] A. Kamilaris and F. X. Prenafeta-Boldú, “Deep learning in agriculture: A survey,” Comput. Electron. Agric., vol. 147, pp. 70–90, Apr. 2018, doi: 10.1016/J.COMPAG.2018.02.016.
[5] A. Sujiwa and H. P. Prasetyo, “MEASUREMENTS ANALYSIS OF MQ-6 LPG GAS LEAK DETECTION DEVICES FOR DISTANCE FACTORS,” Best : Journal of Applied Electrical, Science and Technology, vol. 2, no. 1, pp. 6–9, Mar. 2020, doi: 10.36456/best.vol2.no1.2578.
[6] J. S. D. R. G. A. F. Redmon, “(YOLO) You Only Look Once,” Cvpr, vol. 2016-December, pp. 779–788, Dec. 2016, doi: 10.1109/CVPR.2016.91.
[7] A. Sujiwa, N. Hasan, and N. M. Aruan, “TensorFlow Based AI Training for Translating Indonesian Sign Language (BISINDO),” Best : Journal of Applied Electrical, Science and Technology, vol. 7, no. 1, pp. 29–34, Mar. 2025, doi: 10.36456/BEST.VOL7.NO1.10312.
[8] F. Xiao, H. Wang, Y. Xu, and R. Zhang, “Fruit Detection and Recognition Based on Deep Learning for Automatic Harvesting: An Overview and Review,” Agronomy 2023, Vol. 13, Page 1625, vol. 13, no. 6, p. 1625, Jun. 2023, doi: 10.3390/AGRONOMY13061625.
[9] N. Y. D. Rahmawati and F. P. Rochim, “Chili Ripeness Level Detection with YOLOv8 and Fuzzy Logic for Harvest Decision Making,” Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), vol. 14, no. 5, pp. 1807–1818, Oct. 2025, doi: 10.23960/JTEPL.V14I5.1807-1818.
[10] N. Ma, Y. Wu, Y. Bo, and H. Yan, “Chili Pepper Object Detection Method Based on Improved YOLOv8n,” Plants 2024, Vol. 13, Page 2402, vol. 13, no. 17, p. 2402, Aug. 2024, doi: 10.3390/PLANTS13172402.
[11] A. Sujiwa and R. R. Dianto, “INFUSION MONITORING SYSTEM FOR PATIENTS BASED ON THE INTERNET OF THINGS (IOT) WITH ANDROID NOTIFICATION SYSTEM,” Best : Journal of Applied Electrical, Science and Technology, vol. 4, no. 2, pp. 41–46, Nov. 2022, doi: 10.36456/best.vol4.no2.6172.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Akbar Sujiwa, Nailul Hasan, Fajar Timur, Reffany C. Rizkiarna

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.











