Deep Learning Approach for Identifying Fresh and Rotten Chili Peppers using YOLO

Authors

  • Akbar Sujiwa Universitas Pembangunan Nasional “Veteran” Jawa Timur
  • Nailul Hasan Universitas Pembangunan Nasional “Veteran” Jawa Timur
  • Fajar Timur Universitas Pembangunan Nasional “Veteran” Jawa Timur
  • Reffany C. Rizkiarna Universitas Pembangunan Nasional “Veteran” Jawa Timur

DOI:

https://doi.org/10.36456/4gmxqj65

Keywords:

Deep Learning, YOLO, Chili Pepper, Quality Assessment, Synthetic Image Generation

Abstract

Chili peppers are a vital agricultural commodity, yet post-harvest quality assessment primarily relies on manual inspection, which is subjective, labor-intensive, and prone to inconsistency. This study proposes a deep learning-based computer vision system using the You Only Look Once (YOLO) framework to automate the identification and classification of fresh and rotten chili peppers. The model was trained using a dataset of 400 web-crawled images, annotated and augmented to handle visual diversity. A novel evaluation strategy was employed using synthetic image generation to simulate real-world scenarios, including neatly arranged grids and randomly distributed objects with varying orientations. Experimental results demonstrate that the proposed model effectively localizes and classifies chili peppers with confidence scores ranging from 0.55 to 0.90. The system successfully distinguishes between fresh and rotten categories even under conditions of intra-class variation, such as discoloration and shriveling. These findings validate the robustness of the YOLO-based approach, offering a promising, efficient solution for automated post-harvest quality control and smart agriculture applications

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

16-03-2026

Issue

Section

Contents of the Journal

How to Cite

Sujiwa, Akbar, et al. “Deep Learning Approach for Identifying Fresh and Rotten Chili Peppers Using YOLO”. Best : Journal of Applied Electrical, Science and Technology, vol. 8, no. 1, Mar. 2026, pp. 61-66, https://doi.org/10.36456/4gmxqj65.