Analysis of YOLO26 Model Performance with Transfer Learning in Detecting Coffee Bean Defects

Authors

  • Adrian Chen Informatika, Universitas Multi Data Palembang, Indonesia
  • Eka Puji Widiyanto Informatika, Universitas Multi Data Palembang, Indonesia

DOI:

https://doi.org/10.47709/brilliance.v6i2.8715

Keywords:

Coffee Defect, Deep Learning, Hyperparameter Tuning, Object Detection, Transfer Learning, YOLO26

Abstract

Background: Indonesia is one of the world's largest coffee producers, yet post-roasting coffee bean defects remain a critical challenge that reduces product quality and market competitiveness. Manual sorting processes are inconsistent and prone to human visual limitations. Objective: This study aims to analyze the performance of the YOLO26 nano model with transfer learning for detecting and classifying post-roasting coffee bean defects, and to evaluate the effect of grid search-based hyperparameter tuning on model performance. Methods: A first-party dataset of 4,567 images covering five defect categories — insect damage, under roast, quaker, nugget, and shell — and one non-defect category was collected from three local Indonesian coffee roasting companies. After augmentation, the dataset expanded to 10,595 images with a 70:20:10 training-validation-testing split ratio. YOLO26, a deep learning-based object detection model released in January 2026, was applied using transfer learning and optimized through grid search hyperparameter tuning across optimizer, learning rate, epoch, classification loss, and weight decay configurations. Results: The model was evaluated using precision, recall, F1 score, mean Average Precision at IoU 50 (mAP50), and mean Average Precision at IoU 50-95 (mAP50-95) on the test dataset, with results demonstrating competitive multi-class detection performance across all defect categories. Conclusion: YOLO26 nano with transfer learning and hyperparameter tuning is a viable approach for automated post-roasting coffee bean defect detection, contributing to quality control advancements in the Indonesian coffee industry.

References

Adiwijaya, N. O., Sarno, R., & Wijaya, D. R. (2024). Real Time Detection of Coffee Bean Defects Using YOLO Method and SAHI (Slicing Aided Hyper Inference) Framework. 2024 Beyond Technology Summit on Informatics International Conference, BTS-I2C 2024, 286–291. Institute of Electrical and Electronics Engineers Inc. https://doi.org/10.1109/BTS-I2C63534.2024.10941784

Ahmed, M. I. B., Rahman, A., Ali, F., Youldash, M., Althubaiti, S., Alghamdi, A. S., … Gollapalli, M. (2025). Coffee Bean Defect Detection with Deep Learning: Khawlani Coffee Case Study from Jizan, Saudi Arabia. Traitement Du Signal, 42(5), 2619–2630. https://doi.org/10.18280/ts.420515

Al-Mahish, M., Alfayadh, R., Al-Mahish, M., & Alfayadh, R. (2024). The impact of coffee quality attributes and ratings on specialty coffee bean prices. Beverage Plant Research 2024 1:E039, 4(1). https://doi.org/10.48130/BPR-0024-0029

Anggraini, A. P., Damat, D., & Manshur, H. A. (2024). Studi Karakteristik Fisikokimia dan Organoleptik Bubuk Kopi dari Biji Cacat Hitam Kopi Robusta dengan Perbedaan Suhu Penyangraian. Food Technology and Halal Science Journal, 6(2), 117–132. https://doi.org/10.22219/fths.v6i2.28307

Arwatchananukul, S., Xu, D., Charoenkwan, P., Aung Moon, S., & Saengrayap, R. (2024). Implementing a deep learning model for defect classification in Thai Arabica green coffee beans. Smart Agricultural Technology, 9. https://doi.org/10.1016/j.atech.2024.100680

Badan Pusat Statistik Indonesia. (2024, June 23). Ekspor Kopi Menurut Negara Tujuan Utama. Retrieved May 23, 2025, from https://www.bps.go.id/id/statistics-table/1/MTAxNCMx/ekspor-kopi-menurut-negara-tujuan-utama--2000-2023.html

Chakrabarty, S. (2026). YOLO26: An Analysis of NMS-Free End to End Framework for Real-Time Object Detection. Retrieved from http://arxiv.org/abs/2601.12882

Chamorro-Pinchao, A., Pusdá-Chulde, M., Trejo-España, D., Caranqui-Sánchez, V., & García-Santillán, I. (2025). Binary classification of defects in multiple coffee beans using lightweight convolutional neural networks for embedded systems. Data and Metadata, 4, 840. https://doi.org/10.56294/dm2025840

Faojiah, R. S., Rahmah, D. M., Pramulya, R., Novita, E., & Sutrisno, A. (2025). Model Dinamik Produksi Kopi Berdasarkan Pemenuhan Total Kebutuhan Kopi Indonesia. Jurnal Teknotan, 19(2), 81–92. https://doi.org/10.24198/jt.vol19n2.2

Hafifah, Y., Muchtar, K., Ahmadiar, A., & Esabella, S. (2022). Perbandingan Kinerja Deep Learning Dalam Pendeteksian Kerusakan Biji Kopi. JURIKOM (Jurnal Riset Komputer), 9(6), 1928. https://doi.org/10.30865/jurikom.v9i6.5151

Hanifah, P., Antoni, H. I., Ramadhani, S. R., & Yuliska, Y. (2024). PENGEMBANGAN APLIKASI MOBILE UNTUK DETEKSI CACAT BIJI KOPI ROBUSTA BERDASARKAN STANDAR NASIONAL INDONESIA. Jurnal Komputer Terapan, 10(2), 215–224. https://doi.org/10.35143/jkt.v10i2.6472

Hebert, H., & Alamsyah, D. (2026). Detection of Coffee Bean Defects in Speciality Coffee Association Standards using YOLOv12. INOVTEK Polbeng-Seri Informatika, XI(1), 85–95.

Hidayatullah, P., & Tubagus, R. (2026). YOLO26: A Comprehensive Architecture Overview and Key Improvements A PREPRINT.

Hu, G. L., Quan, C. X., Dai, H. P., & Qiu, M. H. (2024). Characterization of defective coffee beans and blends differentiation based on 1H qNMR technique. Current Research in Food Science, 9, 100870. https://doi.org/10.1016/J.CRFS.2024.100870

Isa, I. S., Rosli, M. S. A., Yusof, U. K., Maruzuki, M. I. F., & Sulaiman, S. N. (2022). Optimizing the Hyperparameter Tuning of YOLOv5 for Underwater Detection. IEEE Access, 10, 52818–52831. https://doi.org/10.1109/ACCESS.2022.3174583

Keskar, N. S., & Socher, R. (2017). Improving Generalization Performance by Switching from Adam to SGD. Retrieved from http://arxiv.org/abs/1712.07628

Loshchilov, I., & Hutter, F. (2019). Decoupled Weight Decay Regularization. Retrieved from http://arxiv.org/abs/1711.05101

Michael, A., Rusman, J., & History, A. (2023). Klasifikasi Cacat Biji Kopi Menggunakan Metode Transfer Learning dengan Hyperparameter Tuning Gridsearch. 9(1), 37–45. Retrieved from http://http://jurnal.unmer.ac.id/index.php/jtmi

Moraes, A. M., Pugliese, L. F., Santos, R. F. dos, Vitor, G. B., Braga, R. A. da S., & Silva, F. R. da. (2025). Effectiveness of YOLO Architectures in Tree Detection: Impact of Hyperparameter Tuning and SGD, Adam, and AdamW Optimizers. Standards, 5(1), 9. https://doi.org/10.3390/standards5010009

Murinto, M., Rosyda, M., & Melany, M. (2023). Klasifikasi Jenis Biji Kopi Menggunkan Convolutional Neural Network dan Transfer Learning pada Model VGG16 dan MobileNetV2. JRST (Jurnal Riset Sains Dan Teknologi), 7(2), 183. https://doi.org/10.30595/jrst.v7i2.16788

Purwono, Ma’arif, A., Rahmaniar, W., Fathurrahman, H. I. K., Frisky, A. Z. K., & Haq, Q. M. U. (2022). Understanding of Convolutional Neural Network (CNN): A Review. International Journal of Robotics and Control Systems, 2(4), 739–748. https://doi.org/10.31763/ijrcs.v2i4.888

Rahmawati, A., Rianto, Y., Riana, D., Studi Ilmu Komputer, P., & Tinggi Manajemen Informatika dan Komputer Nusa Mandiri, S. (2021). Deteksi Defect Coffee Pada Citra Tunggal Green Beans Menggunakan Metode Ensamble Decision Tree Detection of Defect Coffee in Green Beans Single Image Using the Ensemble Decision Tree Method (Vol. 20).

Rochman, F., & Junaedi, H. (2020). IMPLEMENTASI TRANSFER LEARNING UNTUK IDENTIFIKASI ORDO TUMBUHAN MELALUI DAUN. Jurnal Syntax Admiration.

Snapcart. (2023, October 2). Indonesia’s Coffee Consumption Trends in 2023 – Snapcart. Retrieved from https://snapcart.global/indonesias-coffee-consumption-trends-in-2023/

Downloads

Published

2026-06-08

How to Cite

Chen, A., & Widiyanto, E. P. (2026). Analysis of YOLO26 Model Performance with Transfer Learning in Detecting Coffee Bean Defects. Brilliance: Research of Artificial Intelligence, 6(2), 243–252. https://doi.org/10.47709/brilliance.v6i2.8715

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.