Integration of YOLOv11 and Convolutional Neural Network in a Deep Learning Approach for Coffee Bean Defect Detection and Classification
Abstract
The coffee industry is a strategic commodity that significantly contributes to the global and national economy. Coffee bean quality strongly influences flavor and market value, while defective beans—such as broken, moldy, or quaker beans—can reduce overall quality. Manual sorting methods, still widely used by farmers and small-scale producers, are time-consuming, inefficient, and prone to human error. This study proposes an automated deep learning–based system for detecting and classifying defective coffee beans by integrating YOLO for object detection and EfficientNetV2 as the classifier. A dataset of 5,636 coffee bean images from multiple sources was used. The system was evaluated through black box testing to ensure the functionality of the web interface and performance testing using a confusion matrix. Results show that YOLOv11 achieved an [email protected] of 98.83%, while EfficientNetV2 obtained a test accuracy of 93.81%. The proposed system demonstrates strong potential to improve coffee sorting by providing a faster, more accurate, and efficient alternative to manual methods.
References
Badan Pusat Statistik, Produksi Perkebunan Menurut Kabupaten/Kota dan Jenis Tanaman (ton), 2022 dan 2023. Jakarta, Indonesia: BPS, 2023.
A. E. N. Ramadhan, W. Setiawan, dan D. C. Khrisne, “Rancang bangun deteksi objek dengan metode filter warna HSV pada sistem klasifikasi kualitas biji kopi berbasis NVIDIA Jetson Nano,” Jurnal Teknik Industri Terintegrasi, vol. 6, no. 4, pp. 1500–1509, 2023, doi: 10.31004/jutin.v6i4.21406.
Y. Hafifah, K. Muchtar, A. Ahmadiar, dan S. Esabella, “Perbandingan kinerja deep learning dalam pendeteksian kerusakan biji kopi,” JURIKOM (Jurnal Riset Komputer), vol. 9, no. 6, p. 1928, 2022, doi: 10.30865/jurikom.v9i6.5151.
S. J. Chang and C. Y. Huang, “Deep learning model for the inspection of coffee bean defects,” Applied Sciences, vol. 11, no. 17, 2021, doi: 10.3390/app11178226.
S. J. Chang and K. H. Liu, “Multiscale defect extraction neural network for green coffee bean defects detection,” IEEE Access, vol. 12, pp. 15856–15866, 2024, doi: 10.1109/ACCESS.2024.3356596.
H. D. Thai, H. J. Ko, and J. H. Huh, “Coffee bean defects automatic classification realtime application adopting deep learning,” IEEE Access, early access, 2024, doi: 10.1109/AC-
CESS.2024.3452552.
Z. Huang, L. Li, G. C. Krizek, and L. Sun, “Research on traffic sign detection based on improved YOLOv8,” Journal of Computer and Communications, vol. 11, no. 7, pp. 226–232, 2023, doi: 10.4236/jcc.2023.117014.
Y. Yanto, F. Aziz, dan I. Irmawati, “YOLOv8 peningkatan algoritma untuk deteksi pemakaian masker wajah,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 3, pp. 1437–1444, 2023, doi: 10.36040/jati.v7i3.7047.
D. S. Wita dan D. Y. Liliana, “Klasifikasi identitas dengan citra telapak tangan menggunakan convolutional neural network,” Jurnal Rekayasa Teknologi Informasi, vol. 6, no. 1, p. 1, 2022, doi: 10.30872/jurti.v6i1.7100.
M. A. Mutasodirin and F. M. Falakh, “Efficient weather classification using DenseNet and EfficientNet,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 9, no. 2, pp. 173–179, 2024, doi: 10.30591/jpit.v9i2.7539.
G. A. Rakhmat and F. Rizkiawarman, “Implementasi arsitektur MobileNetV3 (studi kasus klasifikasi jamur beracun),” 2023.
D. P. Sidik, F. Utaminingrum, dan L. Muflikhah, “Penggunaan variasi model pada arsitektur EfficientNetV2 untuk prediksi sel kanker serviks,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 7, no. 5, pp. 2116–2121, 2023.
B. Zhang, J. Li, Y. Bai, Q. Jiang, B. Yan, and Z. Wang, “An improved microaneurysm detection model based on SwinIR and YOLOv8,” Bioengineering, vol. 10, no. 12, pp. 1–16, 2023, doi: 10.3390/bioengineering10121405.
A. I. Pradana and J. Maulindar, “Intelligent traffic sign detection using YOLOv9,” pp. 352–360, 2024.
A. Sharma, V. Kumar, and L. Longchamps, “Comparative performance of YOLOv8, YOLOv9, YOLOv10, YOLOv11 and Faster R-CNN models for detection of multiple weed species,” Smart Agricultural Technology, vol. 9, p. 100648, 2024, doi: 10.1016/j.atech.2024.100648.
K. Sivakoti, “Vehicle detection and classification for toll collection using YOLOv11 and ensemble OCR,” pp. 1–13, 2024.
O. A. Abioye, A. E. Evwiekpaefe, and A. J. Olalekan, “Performance evaluation of EfficientNetV2 models on the classification of histopathological benign breast cancer images,” Scientific Journal of the University of Zakho, vol. 12, no. 2, pp. 208–214, 2024, doi: 10.25271/sjuoz.2024.12.2.1261.










