Development of Android application for coffee roast level classification using CNN mobilenetev3 based on digital image analysis
Abstract
Coffee is one of Indonesia's key commodities with high economic value in both domestic and international markets. Roasting is a crucial stage in coffee processing, as it directly influences the final taste and aroma. However, until now, the roasting level has been determined visually and subjectively, making it prone to human error. This study aimed to develop an automatic classification system for coffee roasting levels using a Convolutional Neural Network (CNN) approach integrated into an Android application. The CNN model was built using the MobileNetV3 architecture and applied with a transfer learning method on Google Colab. The dataset consisted of 1,600 coffee images with three roasting levels: light, medium, and dark. The trained model was then converted into TensorFlow Lite (TFLite) format for integration into an Android application called RoastScan. This app features automatic classification through the camera or gallery and provides real-time predictions with confidence levels. The evaluation results show that the model has a classification accuracy of 97% on the test data, with high precision, recall, and F1-score across all classes. Further testing via the application showed that the best accuracy reached 93.55%. These findings suggest that integrating CNN with mobile applications has the potential to be a practical, efficient, and accurate solution for determining coffee roasting degrees, as well as supporting the standardization of coffee product quality at both industrial and MSME levels.
Keywords
Full Text:
PDFReferences
Azizah, L.M., Umayah, S.F., Fajar, F., 2018. Deteksi kecacatan permukaan buah manggis menggunakan metode deep learning dengan konvolusi multilayer. Semesta Teknika 21(2), 230–36. https://doi.org/10.18196/st.212229.
Alamri, E. S., Altarawneh, G. A., Bayomy, H. M., & Hassanat, A. B. 2023. Machine learning classification of roasted arabic coffee: Integrating color, chemical compositions, and antioxidants. Sustainability 15(15), 11561. https://doi.org/10.3390/su151511561
BPS, 2024. Statistik Kopi Indonesia 2023 Volume 8. Badan Pusat Statistik, Jakarta.
Batubara, A., Yusuf, A., Widyasanti, A., 2019. Uji Kinerja dan Analisis ekonomi mesin roasting kopi (studi kasus di taman teknologi pertanian cikajang-garut). Journal Teknoktan 13(1), 1–7. https://doi: 10.24198/jt.vol13n1.1.
Enriquez, C.C., Marcelo, J., Verula, D.R., Casildo, N.J., 2024. Leveraging deep learning for coffee bean grading: A comparative analysis of convolutional neural network models. Transactions on Science and Technology, 11(1), 1–6. https://doi.org/10.13057/tost.v11i1.310
Hendriyana, Maulana, Y,H., 2021. Identifikasi jenis kayu menggunakan convolutional neural network dengan arsitektur mobilenet. Jurnal Resti: Rakayasa Sistem Dan Teknologi Informasi 1(10), 70–76. https://doi.org/10.29207/resti.v4i1.1445.
Indonesia Investments, 2024. Industri kopi di Indonesia – Analisis produksi, ekspor & konsumsi. [online] Available at: https://www.indonesia-investments.com/id/bisnis/komoditas/kopi/item186 [Accessed 31 July 2025].
Lecun, Y., Bengio, Y., Hinton, G., 2015. Deep learning. Nature 521, 436–44. https://doi.org/10.1038/nature14539
Marzuki, K., Apriani, Qulub, M. 2025. Coffee roaster maturity level classification based on convolutional neural network. Mathematical Modelling of Engineering Problems 12(1), 46-54. https://doi.org/10.18280/mmep.120106
Michael, E.H., Prilianti, K.R., Subianto, M., 2020. Rancang bangun aplikasi klasifikasi tingkat kematangan sangrai kopi melalui citra digital menggunakan CNN (Convolutional Neural Network) berbasis android. Jurnal Ilmiah Sainsbertek 1(1), 1–11.
Motta, I. V. C., Vuillerme, N., Pham, HH. 2015. Machine learning techniques for coffee classification: a comprehensive review of scientific research. Artif Intell Rev 58, 15. https://doi.org/10.1007/s10462-024-11004-w
Muresan, H., Oltean, M., 2018. Fruit recognition from images using deep learning. Sapientiae Informatica 10(1), 26-42. https://doi.org/10.2478/ausi-2018-0002.
Nasir, G, A., Syafriandi, Mustaqimah, 2019. Uji Kinerja alat penyangrai kopi tipe silinder menggunakan band-heater sebagai pemanas. Jurnal Ilmiah Mahasiswa Pertanian 4, 382–91.
Nugraha, D.A., Wiguna, A.S., 2018. Klasifikasi tingkat roasting biji kopi menggunakan jaringan syaraf tiruan backpropagation berbasis citra digital. SMARTICS Journal 4(1), 1-4. https://doi.org/ 10.21067/smartics.v4i1.2165.
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 13(3), 924. https://doi.org/10.23960/jtep-l.v13i3.924-932.
Pakaya, I. M., Radi, R., Purwantana, B., Dharmawan, A., 2026. Analysis of performance and roasting quality in a rotary cylinder-type coffee roasting machine. Journal of Tropical AgriFood 7(2), 123-132.
Prastyaningsih, Y., Kusrini, W., 2021. Sistem Temu kembali citra pada level roasting biji kopi menggunakan ekstraksi fitur warna. Jurnal Inovtek Polbeng 6(2), 222–33. https://doi.org/10.35314/isi.v6i2.2086.
Putra, A.F.S.J., & Santoni, M.M. (2020). Penentuan level kematangan kopi berdasarkan hasil roasting menggunakan metode Deteksi RGB dan klasifikasi minimum distance. Seminar Nasional Mahasiswa Ilmu Komputer dan Aplikasinya 1(2), 481-492.
Rabano, S.L., Cabatuan, M.K., Sybingco, E., Dadios, E.P., Calilung, E.J., 2018. Common garbage classification using MobileNet. In Proceedings of the 2018 IEEE 10th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment and Management (HNICEM) (pp. 1–4). IEEE. https://doi.org/10.1109/HNICEM.2018.8666300
Radi., E.P., Saragih., B., Pratama, W.K., Fitri, 2020. Performance analysis of fuzzy logic controller applied on portable roaster. in International Conference on Sustainable Agriculture and Biosystem. https://doi.org/10.1088/1755-1315/757/1/012022.
Shorten, C., Khoshgoftaar, T.M. 2019, A survey on image data augmentation for deep learning. J Big Data 6, 60. https://doi.org/10.1186/s40537-019-0197-0
Widodo, W.E., Atmaji, G., Yohanes, H., Astuti, 2022. Kinerja alsin sangarai kopi tipe fluidisasi dan uji kualitas kopi sangrai. Jurnal Teknologi Pertanian 16(2), 177–126.
Xu, M., Yoon, S., Fuentes, A., Park, D.S. 2023. A Comprehensive survey of image augmentation techniques for deep learning. Pattern Recognition 137, 109347. https://doi.org/https://doi.org/10.1016/j.patcog.2023.109347
DOI: http://dx.doi.org/10.35941/jtaf.8.3.2026.26928.202-212
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
| ||
This journal is jointly published by Agricultural Products Technology Department, Mulawarman University, Indonesia and Indonesian Association of Food Technologist (PATPI). JTAF Today Visitors Copyright © 2025 Universitas Mulawarman Provide by e-Journal System Portal Center of Excelllence for Tropical Studies and Manage by Wisanggeni |







