Segmentasi Kematangan Buah Kopi Berdasarkan Kemiripan Warna dengan Algoritma K-Means
Coffee Fruit Ripeness Segmentation Based on Color Similarity Using the K-Means Algorithm
DOI:
https://doi.org/10.57152/malcom.v6i4.3334Keywords:
Buah Kopi, Kematangan, Kemiripan Warna, K-Means, SegmentasiAbstract
Penilaian kematangan buah kopi secara manual bersifat subjektif karena pencahayaan yang tidak merata, buah yang tertutup daun, dan banyaknya buah pada satu pohon, sehingga pohon yang masih didominasi buah mentah dapat ikut dipanen. Penelitian ini menerapkan K-Means pada nilai RGB piksel untuk menyegmentasi buah kopi Arabika menjadi kategori mentah, setengah matang, dan matang, lalu mengagregasi empat sisi setiap pohon menjadi keputusan panen. Kontribusinya adalah keputusan tingkat pohon yang menggabungkan tiga klaster dengan agregasi empat sisi, disertai analisis kestabilan keputusan tersebut. Data berupa 32 citra dari delapan pohon. Citra dipotong secara manual, diubah ukurannya menjadi 1600 × 1600 piksel, dan dikelompokkan dengan K = 3 di MATLAB. Pohon dinyatakan layak panen jika rata-rata persentase setengah matang dan matang mencapai 60%. Lima pohon layak panen (empat setengah matang, satu matang) dan tiga pohon belum layak. Simpangan baku rata-rata antarsisi 10,14 poin persentase, tiga pohon berada dalam 1,6 poin dari ambang, dan penghilangan satu sisi mengubah keputusan tiga pohon. Validasi dilakukan secara visual tanpa data acuan berlabel, sehingga akurasi segmentasi belum terukur.
Downloads
References
M. F. Irmawan, W. D. Yuniarti, and M. H. Subowo, “The Detection of the Maturity Level of Lempuyangan Robusta Coffee Fruit Using HSV Segmentation and K-Means Clustering,” J. Appl. Informatics Comput., vol. 10, no. 2, pp. 1990–1995, 2026, doi: 10.30871/jaic.v10i2.12541.
S. Velásquez, N. Peña, J. C. Bohórquez, N. Gutierrez, and G. L. Sacks, “Volatile and sensory characterization of roast coffees – Effects of cherry maturity,” Food Chem., vol. 274, pp. 137–145, 2024, doi: 10.1016/j.foodchem.2018.08.127.
A. Froehner, K. Arabika, L. Terhadap, M. Cita, and R. Seduhan, “Karakteristik Tingkat Kematangan Buah Kopi Robusta (Coffea canephora A. Froehner) dan Buah Kopi Arabika (Coffea arabica Linnaelus) Terhadap Mutu Cita Rasa Seduhan Kopi,” vol. 5, no. 2, pp. 169–185, 2022, [Online]. Available: https://doi.org/10.22219/fths.v5i2.21925
V. Osorio Pérez, L. G. Matallana Pérez, M. R. Fernandez-Alduenda, C. I. Alvarez Barreto, C. P. Gallego Agudelo, and E. C. Montoya Restrepo, “Chemical Composition and Sensory Quality of Coffee Fruits at Different Stages of Maturity,” Agronomy, vol. 13, no. 2, 2023, doi: 10.3390/agronomy13020341.
E. Yusibani, R. I. Putra, A. Rahwanto, M. S. Surbakti, Rajibussalim, and Rahmi, “Physical properties of Sidikalang robusta coffee beans medium roasted from various colors of coffee cherries,” J. Phys. Conf. Ser., vol. 2243, no. 1, 2022, doi: 10.1088/1742-6596/2243/1/012046.
D. O. Cagadas, D. S. Putra, K. M. P. Dunque, and M. Azmi, “Classifying four maturity categories of coffee cherry using CNN-VGG19,” Teknomekanik, vol. 7, no. 2, pp. 176–184, 2024, doi: 10.24036/teknomekanik.v7i2.31072.
M. F. H. Dermawan, D. Witarsyah, and H. Fakhruroja, “Penerapan Image Processing untuk Mengetahui Tingkat Kematangan Kopi Menggunakan Algoritma K-Nearest Neighbor ( KNN ) pada Perkebunan Kopi Malabar Bandung,” vol. 10, no. 3, pp. 3246–3252, 2023.
M. Haile and W. Hee Kang, “The Harvest and Post-Harvest Management Practices’ Impact on Coffee Quality,” Coffee - Prod. Res., pp. 1–18, 2020, doi: 10.5772/intechopen.89224.
Reta, Dahlia, O. Sumule, and H. Larekeng, “Penerapan Teknik Panen dan Pascapanen Kopi Arabika Kalosi Produk Unggulan Kabupatan Enrekang,” J. Din. Pengabdi., vol. 6, no. 2, pp. 341–348, 2021.
S. R. Raysyah, Veri Arinal, and Dadang Iskandar Mulyana, “Klasifikasi Tingkat Kematangan Buah Kopi Berdasarkan Deteksi Warna Menggunakan Metode Knn Dan Pca,” JSiI (Jurnal Sist. Informasi), vol. 8, no. 2, pp. 88–95, 2021, doi: 10.30656/jsii.v8i2.3638.
J. Rusman and N. Pasae, “Prototype Sistem Penyortir Buah Kopi Arabika Berdasarkan Tingkat Kematangan Menggunakan Metode Support Vector Machine,” Teknika, vol. 12, no. 1, pp. 65–72, 2023, doi: 10.34148/teknika.v12i1.602.
M. A. Tamayo-monsalve et al., “Coffee Maturity Classification Using Convolutional Neural Networks and Transfer Learning,” IEEE Access, pp. 42971–42982, 2022.
Y. A. Gerhana, R. R. Heryanto, U. Syaripudin, and D. Suparman, “Implementation of Convolutional Neural Network CNN Algorithm to Detect Coffe Fruit Maturity,” Istek, vol. 13, no. 2, pp. 47–50, 2024, doi: 10.15575/istek.v13i2.1247.
S. Raveena and R. Surendran, “ResNet50-based Classification of Coffee Cherry Maturity using Deep-CNN,” in 2023 5th International Conference on Smart Systems and Inventive Technology (ICSSIT), 2023, pp. 1275–1281. doi: 10.1109/ICSSIT55814.2023.10061006.
A. Ilyana, N. Nurdin, and M. Maryana, “Real-Time Detection of Coffee Cherry Ripeness Using YOLOv11,” J. Appl. Informatics Comput., vol. 9, no. 4, pp. 1170–1178, 2025, doi: 10.30871/jaic.v9i4.9735.
A. Subki, M. Zulpahmi, and B. Imran, “A Hybrid Framework Based on YOLOv8 and Vision Transformer for Multi-Class Detection and Classification of Coffee Fruit Maturity Levels,” J. Appl. Informatics Comput., vol. 9, no. 5, pp. 2019–2028, 2025, doi: 10.30871/jaic.v9i5.10590.
E. A. Cuellar-Cortés, “DeepVision for Precision Farming: Automated Ripeness Grading of Coffee Cherries Using Deep Learning Algorithms,” Agro Product., 2025, doi: 10.32854/rxr1f675.
H. C. Bazame, J. P. Molin, D. Althoff, and M. Martello, “Detection, classification, and mapping of coffee fruits during harvest with computer vision,” Comput. Electron. Agric., vol. 183, no. February, p. 106066, 2021, doi: 10.1016/j.compag.2021.106066.
A. P. S. Noval Alan Pambudi, Yosep Agus Pranoto, “Pengenalan tingkat kematangan buah kopi berdasarkan fitur warna cielab dengan k-means clustering,” JATI (Jurnal Mhs. Tek. Inform., vol. 5, no. 2, pp. 728–732, 2021.
F. Rifqi Aufa Siregar, S. Sriani, and A. Darta, “Segmentasi Kematangan Buah Markisa Berdasarkan Kemiripan Warna Dengan Algoritma K-Means,” J-SISKO TECH (Jurnal Teknol. Sist. Inf. dan Sist. Komput. TGD), vol. 7, no. 1, p. 13, 2024, doi: 10.53513/jsk.v7i1.9492.
A. M. Ikotun, A. E. Ezugwu, L. Abualigah, B. Abuhaija, and J. Heming, “K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data,” Inf. Sci. (Ny)., vol. 622, pp. 178–210, 2023, doi: 10.1016/j.ins.2022.11.139.
I. Mikrou and N. S. Sapidis, “A Systematic Evaluation of Clustering Algorithms Against Expert-Derived Clustering,” Oper. Res. Forum, vol. 6, no. 2, 2025, doi: 10.1007/s43069-025-00453-w.
M. Owusu-Adjei, J. Ben Hayfron-Acquah, T. Frimpong, and G. Abdul-Salaam, “Imbalanced class distribution and performance evaluation metrics: A systematic review of prediction accuracy for determining model performance in healthcare systems,” PLOS Digit. Heal., vol. 2, no. 11 November, pp. 1–19, 2023, doi: 10.1371/journal.pdig.0000290.
M. Shirdel, M. Di Mauro, and A. Liotta, “Worthiness Benchmark: A novel concept for analyzing binary classification evaluation metrics,” Inf. Sci. (Ny)., vol. 678, no. May, p. 120882, 2024, doi: 10.1016/j.ins.2024.120882.
P. P. Morita, I. Z. Hussain, J. Kaur, M. Lotto, and Z. A. Butt, “Tweeting for Health Using Real-time Mining and Artificial Intelligence-Based Analytics: Design and Development of a Big Data Ecosystem for Detecting and Analyzing Misinformation on Twitter,” J. Med. Internet Res., vol. 25, pp. 1–15, 2023, doi: 10.2196/44356.
B. Ambrus, A. Nyéki, G. Teschner, and L. Moldvai, “The Effect of Illumination on HSV Colour Segmentation for Ripe Tomatoes based on Machine Vision,” Chem. Eng. Trans. , vol. 114, no. May, pp. 829–834, 2024, doi: 10.3303/CET24114139.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Nurhalijah Berutu, Sriani Sriani

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright © by Author; Published by Institut Riset dan Publikasi Indonesia (IRPI)
This Indonesian Journal of Machine Learning and Computer Science is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.










