Implementasi Algoritma K-nearest Neighbor dan Principal Component Analysis untuk Klasifikasi Tingkat Kematangan Ceri Kopi Robusta Berdasarkan Warna

Authors

  • Ayu Wulandari Indo Global Mandiri University
  • Rudi Heriansyah Indo Global Mandiri University
  • Lastri Widya Astuti Indo Global Mandiri University

DOI:

https://doi.org/10.53697/jkomitek.v5i2.3048

Keywords:

Classification, Coffee Cherry, Digital Image, K-Nearest Neighbor, Principal Component Analysis

Abstract

This study addresses the need for objective and efficient classification of Robusta coffee cherry ripeness, which is crucial for ensuring optimal coffee quality. The research aims to develop an automatic classification system using K-Nearest Neighbor (KNN) and Principal Component Analysis (PCA) based on digital image color features. Employing a quantitative experimental approach, the study utilized 150 digital images of Robusta coffee cherries, categorized into three ripeness levels: unripe, semi-ripe, and ripe. Data were collected using a smartphone camera under controlled lighting, and processed with MATLAB for feature extraction and analysis. The RGB color features were reduced using PCA, and classification was performed with KNN. Evaluation metrics included confusion matrix, accuracy, precision, and recall. The results showed that the system achieved an accuracy of 93.33%, successfully classifying 28 out of 30 test images correctly. These findings indicate that the combination of KNN and PCA provides a reliable and practical solution for automated coffee cherry ripeness classification. The study concludes that this approach can enhance post-harvest processes and support consistent quality in Robusta coffee production.

References

Adenugraha, S. P., Arinal, V., & Mulyana, D. I. (2022). Klasifikasi kematangan buah pisang ambon menggunakan metode KNN dan PCA berdasarkan citra RGB dan HSV. Jurnal Media Informatika Budidarma, 6(1), 9–17. https://doi.org/10.30865/mib.v6i1.3287

Alam, I., Warkoyo, W., & Siskawardani, D. D. (2023). Karakteristik tingkat kematangan buah kopi robusta (Coffea canephora A. Froehner) dan buah kopi arabika (Coffea arabica Linnaelus) terhadap mutu dan cita rasa seduhan kopi. Food Technology and Halal Science Journal, 5(2), 169–185. https://doi.org/10.22219/fths.v5i2.21925

Cresswell, J. W. (2022). Research design: Qualitative, quantitative, and mixed methods approaches (5th ed.). SAGE Publications.

Emzir. (2021). Metodologi penelitian kualitatif dan kuantitatif. Rajawali Pers.

Gusmaliza, D., & Aminah, S. (2024). Sistem identifikasi kualitas biji kopi robusta berbasis image processing dengan support vector machine. Edumatic: Jurnal Pendidikan Informatika, 8(2), 744–753. https://doi.org/10.29408/edumatic.v8i2.28008

Kurnia, I. G. A. M. (2023, April 20). Perbedaan mendasar kopi arabika dan kopi robusta. Dinas Pertanian Kabupaten Buleleng. https://distan.bulelengkab.go.id/informasi/detail/artikel/perbedaan-mendasar-kopi-arabika-dan-kopi-robusta-56

Mahadany, S. A. (2024). Desain klasifikasi cherri kopi menggunakan metode k-nearest neighbor. Jurnal Ilmu Teknologi dan Pertanian, 5(1), 1–12. https://journal.upy.ac.id/index.php/jitap/article/view/7410/4319

Mujidah, S., & Agustin, R. (2024). Analisis performa algoritma K-nearest neighbor dan reduksi dimensi principal component analysis pada klasifikasi data. Jurnal Ilmu Komputer dan Informatika, 4(1), 61–72. https://doi.org/10.54082/jiki.168

Novita, D., Sari, D. R. P., & Pratiwi, R. (2023). Analisis produksi dan ekspor kopi Indonesia. Jurnal Agribisnis Indonesia, 11(1), 45–56. https://doi.org/10.29244/jai.2023.11.1.45-56

Rahardjo, S., Prasetyo, B., & Santoso, D. (2020). Analisis ekspor kopi Indonesia ke pasar dunia. Jurnal Ekonomi dan Kebijakan, 13(2), 123–134. https://doi.org/10.24843/JEK.2020.v13.i02.p03

Rioarda Irfa’i, M., Fatkhurrozi, B., & Setyowati, I. (2021). Klasifikasi tingkat kematangan buah kopi menggunakan algoritma fuzzy c-means. THETA OMEGA: Journal of Electrical Engineering, 1(2), 45–52.

Sari, D. R. P. (2023). Metode principal component analysis (PCA) sebagai penanganan asumsi multikolinearitas. Parameter: Jurnal Matematika, Statistika dan Terapannya, 2(2), 115–124. https://doi.org/10.30598/parameterv2i02pp115-124

Sudaryono. (2022). Metode penelitian kuantitatif. Bumi Aksara.

Sugiyono. (2022). Metode penelitian kuantitatif, kualitatif, dan R&D (2nd ed.). Alfabeta.

Widawati, L., Moulina, M. A., & Rikardo, R. (2023). Karakteristik mutu sirup kopi robusta (Coffea canephora) dan sirup kopi arabika (Coffea arabica) dengan penambahan konsentrasi gula. SINTA Journal (Science, Technology, and Agricultural), 4(1), 1–8. https://doi.org/10.37638/sinta.4.1.1-8

Downloads

Published

2025-10-01

How to Cite

Ayu Wulandari, Rudi Heriansyah, & Lastri Widya Astuti. (2025). Implementasi Algoritma K-nearest Neighbor dan Principal Component Analysis untuk Klasifikasi Tingkat Kematangan Ceri Kopi Robusta Berdasarkan Warna. Jurnal Komputer, Informasi Dan Teknologi, 5(2), 9. https://doi.org/10.53697/jkomitek.v5i2.3048

Issue

Section

Articles

Similar Articles

<< < 7 8 9 10 11 12 13 14 15 16 > >> 

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