Klasifikasi Citra Biji Kopi Sangrai Arabika dan Robusta Menggunakan Convolutional Neural Network
Abstract
Coffee is one of Indonesia's leading commodities, with two main varieties: Arabica and Robusta. The differences in characteristics between these two types of coffee, such as bean shape, color, and texture, are often difficult to distinguish visually, especially for the general public. This study aims to develop an automatic classification system capable of distinguishing Arabica and Robusta coffee beans using the Convolutional Neural Network (CNN) method with the application of transfer learning based on the MobileNetV2 architecture. The dataset used consists of 210 images of coffee beans taken using a smartphone camera with various positions and lighting, which were then divided into training data (60%), validation data (20%) and test data (20%). Before the training process, data augmentation such as rotation, zoom, flip, and brightness adjustment was performed to enrich image variation and reduce the risk of overfitting. Training was conducted with a learning rate of 0.0001, a batch size of 32, and an Adam optimizer. The results showed that the CNN model with MobileNetV2 transfer learning was able to achieve a training accuracy of 99.21% and a testing accuracy of 97.62%, with relatively low loss values of 0.0682 for training data and 0.1333 for validation data. The application of transfer learning contributes to improving the stability of the training process by utilizing the pre-trained weights from the ImageNet model. Based on these results, it can be concluded that the MobileN-based CNN method.
Downloads
References
Alfiantama, I., Kresnawan, M. I., & Handoko, A. P. (2024). Klasifikasi Tingkat Roasting Biji Kopi Dengan Metode CNN. 3. https://doi.org/https://doi.org/10.29407/182k1t17
Allo, Y. M. K., Paendong, I. P., & Saputro, P. H. (2025). Classification of Tomato Ripeness Levels Using Convolutional Neural Network (CNN). Journal of Intelligent Systems and Information Technology, 2(2), 80–87. https://doi.org/10.61971/jisit.v2i2.151
Annur, I. F., Umami, J., Annafii, Moch. N., Trisnaningrum, N., & Putra, O. V. (2023). Klasifikasi Tingkat Keparahan Penyakit Leafblast Tanaman Padi Menggunakan MobileNetv2. Fountain of Informatics Journal, 8(1), 7–14. https://doi.org/10.21111/fij.v8i1.9419
Badan Pusat Statistik. (2024). Statistik Kopi Indonesia 2023. https://www.bps.go.id/id/publication/2024/11/29/d748d9bf594118fe112fc51e/statistik-kopi-indonesia-2023.html
Czarniecka-Skubina, E., Pielak, M., Sałek, P., Korzeniowska-Ginter, R., & Owczarek, T. (2021). Consumer Choices and Habits Related to Coffee Consumption by Poles. International Journal of Environmental Research and Public Health, 18(8), 3948. https://doi.org/10.3390/ijerph18083948
Fata, M. I. I., & Avianto, D. (2024). Penerapan Metode Naive Bayes pada Sistem Klasifikasi Kualitas Biji Kopi Robusta. Jurnal Indonesia : Manajemen Informatika dan Komunikasi, 5(1), 512–524. https://doi.org/10.35870/jimik.v5i1.515
Fibrianto, K., Daryanto, K. A., Sholihah, N., Wahibah, L. Y., Hasyati, N., Al-Baarri, A. N., & Hariyadi, D. M. (2020). Sensory profiling of Robusta and Liberica coffee leaves functional tea by modifying brewing temperature. IOP Conference Series: Earth and Environmental Science, 475(1), 012028. https://doi.org/10.1088/1755-1315/475/1/012028
Kho, L. C., Cheng, G., Ngu, S. S., Koh, Q. Z., Joseph, A., & Kipli, K. (2026). An Efficient Distracted Driving Detection Based on MobileNet V2SE Fusion. Journal of Advanced Research Design Journal homepage, 145, 149–164. https://doi.org/10.37934/ard.145.1.149164
Li, Z., Liu, F., Yang, W., Peng, S., & Zhou, J. (2022). A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects. IEEE Transactions on Neural Networks and Learning Systems, 33(12), 6999–7019. https://doi.org/10.1109/TNNLS.2021.3084827
Mienye, I. D., & Swart, T. G. (2024). A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications. Information, 15(12), 755. https://doi.org/10.3390/info15120755
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
Ningrum, B. N. T. C., Ni’mah, E. N., Arifin, M. P., & Dara, M. A. D. W. (2024). Klasifikasi Dan Pengenalan Pola Penyakit Cabai Dengan Metode CNN (Convolution Neural Network). Seminar Nasional Teknologi & Sains, 3(1), 125–132. https://doi.org/10.29407/stains.v3i1.4137
Pakaya, I. M., Radi, R., & Purwantana, B. (2024). Classification of Roasting Level of Coffee Beans Using Convolutional Neural Network with MobileNet Architecture for Android Implementation. Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), 13(3), 924. https://doi.org/10.23960/jtep-l.v13i3.924-932
Rizky Pratama, M. H., Akrom, M., Santosa, A. P., Rosyid, M. R., & Mawaddah, L. (2025). Klasifikasi Otomatis Korosi Menggunakan Convolutional Neural Network dan Transfer Learning dengan Model MobileNetV2. Jurnal Algoritma, 22(1), 138–148. https://doi.org/10.33364/algoritma/v.22-1.2182
Santoso, B. R., Sari, C. A., & Rachmawanto, E. H. (2025). Coffee Beans Classification Using Convolutional Neural Networks Based On Extraction Value Analysis In Grayscale Color Space. Journal of Applied Informatics and Computing, 9(1), 31–37. https://doi.org/10.30871/jaic.v9i1.8916
Sarvina, Y., Juni, T., Sutjahjo, S. H., Nurmalina, R., & Surmaini, E. (2021). Why Should Climate Smart Agriculture Be Promoted IN The Indonesian Coffee Production System? Journal of Sustainability Science And Management, 16(7), 347–363. https://doi.org/10.46754/jssm.2021.10.024
Septiarini, A., Hamdani, H., Ery Burhandeny, A., Nurcahyono, D., & Eka Priyatna, S. (2024). Image analysis for classifying coffee bean quality using a multi feature and machine learning approach. IAES International Journal of Artificial Intelligence (IJ-AI), 13(4), 4241. https://doi.org/10.11591/ijai.v13.i4.pp4241-4248
Xu, Y., Li, D., Li, C., Yuan, Z., & Dai, Z. (2025). LiSA-MobileNetV2: an extremely lightweight deep learning model with Swish activation and attention mechanism for accurate rice disease classification. Frontiers in Plant Science, 16. https://doi.org/10.3389/fpls.2025.1619365
Yong, L., Ma, L., Sun, D., & Du, L. (2023). Application of MobileNetV2 to waste classification. PLoS ONE, 18(3 March). https://doi.org/10.1371/journal.pone.0282336
Yu, F., Zhang, Q., Xiao, J., Ma, Y., Wang, M., Luan, R., Liu, X., Ping, Y., Nie, Y., Tao, Z., & Zhang, H. (2023). Progress in the Application of CNN-Based Image Classification and Recognition in Whole Crop Growth Cycles. Remote Sensing, 15(12), 2988. https://doi.org/10.3390/rs15122988
Zhao, X., Wang, L., Zhang, Y., Han, X., Deveci, M., & Parmar, M. (2024). A review of convolutional neural networks in computer vision. Artificial Intelligence Review, 57(4). https://doi.org/10.1007/s10462-024-10721-6
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Citra Biji Kopi Sangrai Arabika dan Robusta Menggunakan Convolutional Neural Network
Pages: 969-980
Copyright (c) 2025 Muhammad Rafi Al Firdaus, Rodhiyah Mardhiyyah, Fadil Indra Sanjaya

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













