Classification of single origin Indonesian coffee beans using convolutional neural network

Achmad Pratama Rifai, Wangi Pandan Sari, Haidar Rabbani, Tari Hardiani Safitri, Makbul Hajad, Edi Sutoyo, Huu-Tho Nguyen

Abstract


This research aims to develop a coffee bean type detection model using convolutional neural networks (CNN), leveraging a dataset of 14,525 images from 116 types of Indonesian coffee beans. Pre-processing steps including resizing, rescaling, and augmentation were applied to improve the dataset quality. The dataset was split into training, validation, and testing sets with proportions of 80%, 10%, and 10%, respectively. Two model development approaches were used: transfer learning with Inception V3 in two scenarios and a model built from scratch. The transfer learning Inception V3 model in scenario 1 achieved the best performance, with a test accuracy of 0.87 and optimal evaluation metrics across precision, recall, and F1-score. This model was fine-tuned using pretrained weights, allowing it to adapt effectively to the coffee bean dataset. The results highlight that transfer learning, especially with Inception V3, provides a robust method for classifying coffee beans, offering potential applications in the coffee industry for improving classification efficiency and accuracy. The study demonstrates how deep learning can enhance the objectivity and precision of coffee bean classification, contributing to greater consistency in product sorting and quality assessment.

Keywords


Coffee bean classification; Convolutional neural network; Deep learning; Indonesia single origin coffee; Transfer learning

Full Text:

PDF


DOI: http://doi.org/10.11591/ijai.v14.i6.pp5140-5156

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Achmad Pratama Rifai, Wangi Pandan Sari, Haidar Rabbani, Tari Hardiani Safitri, Makbul Hajad, Edi Sutoyo, Huu-Tho Nguyen

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

IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938 
This journal is published by the Institute of Advanced Engineering and Science (IAES).

View IJAI Stats