Melola Discovery

← Melola Discovery

Open access Journal SINTA 1

Classification of single origin Indonesian coffee beans using convolutional neural network

IAES International Journal of Artificial Intelligence · Vol. 14 No. 6 (2025) · pp. 5140–5156

DOI
10.11591/ijai.v14.i6.pp5140-5156
ISSN
2252-8938, 2089-4872
Published
2025-12-01
Publisher
Institute of Advanced Engineering and Science
Language
eng
License
creativecommons.org/licenses/by-sa/4.0

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

Collaboration network of the authors

17 authors · 41 co-authorship links · 21 across different organisations

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Universitas Gadjah Mada
  • Telkom University
  • Nasional University
  • Trường ĐH Nguyễn Tất Thành
  • Universiti Teknikal Malaysia Melaka
  • UNSW Sydney
  • Universitas Sumatera Utara
  • Affiliation unknown
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Panca Dewi PamungkasariNasional University2
Ilhan Alim AsfandimaNasional University2
Annisa Fatimatus ZahroUniversitas Gadjah Mada2
Ihwan GhazaliUniversiti Teknikal Malaysia Melaka2
Luluk LusiantoroUniversitas Gadjah Mada1
Setyo MaraAffiliation unknown1
Ahmad AlmaarifTelkom University1
Setyo Tri Windras MaraUNSW Sydney1
Rachmadi NorcahyoUniversitas Gadjah Mada1
A Dhenny Noviandry NasutionUniversitas Sumatera Utara1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) http://ijai.iaescore.com/index.php/IJAI/oai, first harvested 8 Nov 2026, last seen 22 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en-US">Classification of single origin Indonesian coffee beans using convolutional neural network</dc:title>
	<dc:creator>Rifai, Achmad Pratama</dc:creator>
	<dc:creator>Sari, Wangi Pandan</dc:creator>
	<dc:creator>Rabbani, Haidar</dc:creator>
	<dc:creator>Safitri, Tari Hardiani</dc:creator>
	<dc:creator>Hajad, Makbul</dc:creator>
	<dc:creator>Sutoyo, Edi</dc:creator>
	<dc:creator>Nguyen, Huu-Tho</dc:creator>
	<dc:subject xml:lang="en-US"></dc:subject>
	<dc:subject xml:lang="en-US">Coffee bean classification; Convolutional neural network; Deep learning; Indonesia single origin coffee; Transfer learning</dc:subject>
	<dc:description xml:lang="en-US">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.</dc:description>
	<dc:publisher xml:lang="en-US">Institute of Advanced Engineering and Science</dc:publisher>
	<dc:contributor xml:lang="en-US"></dc:contributor>
	<dc:date>2025-12-01</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en-US"></dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://ijai.iaescore.com/index.php/IJAI/article/view/27379</dc:identifier>
	<dc:identifier>10.11591/ijai.v14.i6.pp5140-5156</dc:identifier>
	<dc:source xml:lang="en-US">IAES International Journal of Artificial Intelligence (IJ-AI); Vol 14, No 6: December 2025; 5140-5156</dc:source>
	<dc:source>2252-8938</dc:source>
	<dc:source>2089-4872</dc:source>
	<dc:source>10.11591/ijai.v14.i6</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://ijai.iaescore.com/index.php/IJAI/article/view/27379/14888</dc:relation>
	<dc:rights xml:lang="en-US">Copyright (c) 2025 Achmad Pratama Rifai, Wangi Pandan Sari, Haidar Rabbani, Tari Hardiani Safitri, Makbul Hajad, Edi Sutoyo, Huu-Tho Nguyen</dc:rights>
	<dc:rights xml:lang="en-US">http://creativecommons.org/licenses/by-sa/4.0</dc:rights>
</oai_dc:dc>