Application of Fuzzy Logic System for Coffee Bean Quality Detection

Authors

  • Baracahya Panata Cendikia Rahayu IPB University Author
  • Ahmad Farrell Raafii Alaiyya Al-Attas IPB University Author
  • Imam Yanif IPB University Author

DOI:

https://doi.org/10.62535/myb58j95

Abstract

Manual assessment of coffee bean quality is often subject to inconsistency and evaluator bias, potentially leading to economic losses for farmers and industry stakeholders. This study proposes an objective simulation model for coffee bean quality evaluation using the Mamdani Fuzzy Logic method implemented in MATLAB Fuzzy Logic Toolbox. A quantitative descriptive approach was adopted, utilizing secondary data synthesized from validated experimental literature. The model incorporates three physical input variables: kadar air (%), color intensity (lux), and bean size (mm), with a single output variable representing the quality score.

The system process includes fuzzification using trapezoidal and triangular membership functions, evaluation of 27 IF–THEN rules, aggregation through the MAX operator, and defuzzification using the Centroid method. Simulation results demonstrate that the proposed system effectively classifies coffee bean quality into three categories: Premium, Sedang, and Rendah. Under optimal conditions (11.5% moisture content, bright color, and large bean size), the defuzzified score consistently exceeds 70 (Grade 1), aligning with industry quality standards. The findings confirm that fuzzy logic provides a transparent and reliable decision-support framework capable of transforming ambiguous physical measurements into measurable quality indices for coffee standardization.

References

Ahmad, Ipov, Amelia, Dennis M, Kevin A, Geraldo R, & Edward. (n.d.). PENGGUNAAN METODE FUZZY AHP DAN TOPSIS PADA PEMILIHAN SUPPLIER (STUDI KASUS: PT. SS).

Botha, C. M., van der Merwe, A. F., & Uren, K. R. (2024). A model-based control strategy for batch coffee roasting processes using a novel controlled variable. Results in Engineering, 23, 102575. https://doi.org/10.1016/j.rineng.2024.102575

Deng, X., & Jiang, W. (2019). Evaluating Green Supply Chain Management Practices Under Fuzzy Environment: A Novel Method Based on D Number Theory. International Journal of Fuzzy Systems, 21(5), 1389–1402. https://doi.org/10.1007/s40815-019-00639-5

Dwi Pambudi, A., Arifin, Z., Ayu Wulandari, S., Agus Purnomo, M., Adrian Setiadi, K., & Nia Yunita Listianingrum, dan. (n.d.). Monitoring Sistem Kontrol Mesin Drying Kopi Secara Real Time Berbasis IoT. In Pendrikan Kidul, Kec. Semarang Tengah (Vol. 207).

Fitri, Z. E., Syahbana, B. A., Madjid, A., Mujibtamala, A., Imron, N., Informatika, T., Informasi, J. T., Jember, P. N., Perkebunan, B. T., & Pertanian, J. P. (2021). Penerapan Fitur Warna dan Tekstur untuk Identifikasi Kerusakan Mutu Biji Kopi Arabika (Coffea Arabica) di Kabupaten Bondowoso. Jurnal Ilmiah Teknologi Informasi Asia, 15(2).

Fuadi, A. L. (2023). Penerapan Logika Fuzzy Mamdani Untuk Menentukan Stok Beras Di Toko Anugrah Jaya Cirendeu Berbasis Web. SAINSTECH: JURNAL PENELITIAN DAN PENGKAJIAN SAINS DAN TEKNOLOGI, 33(4). https://doi.org/10.37277/stch.v33i4.1870

Hidayat, A. P., Santosa, S. H., & Dardanella, D. (2023). Implementasi Green Supply Chain Management untuk Pasokan Telur Ayam Menggunakan Metode Fuzzy AHP. JATI UNIK : Jurnal Ilmiah Teknik Dan Manajemen Industri, 6(2), 52–60. https://doi.org/10.30737/jatiunik.v6i2.3113

Hurriyah, S. S., & Subhan, M. (2023). Penentuan Kualitas Biji Kopi Pada Koperasi Solok Radjo Menggunakan Metode TOPSIS Fuzzy MADM. Journal Of Mathematics UNP, 8(4), 146–154.

Irmawan, I., Rendiansyah, R., Gustini, G., & Harahap, S. A. (2025). IDENTIFIKASI DAN KLASIFIKASI PENYAKIT PADA TANAMAN KOPI ARABICA DENGAN METODE CNN DAN TRANSFER LEARNING DENSENET-201. Transmisi: Jurnal Ilmiah Teknik Elektro, 27(2), 83–91. https://doi.org/10.14710/transmisi.27.2.83-91

Isa Dwijatmoko, M., Alfia Fadri, R., Syarhrul, S., Harni, M., Muchrida, Y., Studi Operasionalisasi Kafe dan Patiseri, P., & Teknologi Hasil Pertanian, J. (n.d.). ANALISA KADAR AIR DAN WARNA DARI BERBAGAI VARIAN KOPI DAN ROASTING.

James Lualhati, A. N., Mariano, J. B., Eugene Torres, A. L., & Fenol, S. D. (2022). Development and Testing of Green Coffee Bean Quality Sorter using Image Processing and Artificial Neural Network. In Mindanao Journal of Science and Technology (Vol. 20, Number 1).

Klaidaeng, C., Chudjuarjeen, S., Pomsen, C., & Charoenwiangnuea, P. (2023). Prediction of roasted coffee bean level from a coffee house-ware using fuzzy logic. Materials Today: Proceedings. https://doi.org/10.1016/j.matpr.2023.04.524

Kusumadewi, S. (2002). ANALISIS & DESAIN SISTEM FUZZY Menggunakan TOOLBOX MATLAB.

Munir, M., Nafiiyah, N., & Budi, A. S. (2025). COFFEE BEAN QUALITY CLASSIFICATION USING THE RESNET50 CONVOLUTIONAL NEURAL NETWORK. Jurnal Ilmiah Sistem Informasi, 4(2), 276–287. https://doi.org/10.51903/7cwf7662

Nafisah, N., Syamsiana, I. N., Kusuma, W., Putri, R. I., & Sumari, A. D. W. (2023). Analisa Perbandingan Pengaturan Suhu Berbasis Logika Fuzzy Interferensi Sugeno dan Mamdani pada Alat Pengering Biji Kopi. Agroteknika, 6(2), 272–288. https://doi.org/10.55043/agroteknika.v6i2.240

Nafisah, N., Syamsiana, I. N., Putri, R. I., Kusuma, W., & Sumari, A. D. W. (2024). Implementation of fuzzy logic control algorithm for temperature control in robusta rotary dryer coffee bean dryer. MethodsX, 12, 102580. https://doi.org/10.1016/j.mex.2024.102580

Pratama, G. A., Puspaningrum, E. Y., & Maulana, H. (2024). CONVOLUTIONAL NEURAL NETWORK DAN FASTER REGION CONVOLUTIONAL NEURAL NETWORK UNTUK KLASIFIKASI KUALITAS BIJI KOPI ARABIKA. Jurnal Informatika Dan Teknik Elektro Terapan, 12(3). https://doi.org/10.23960/jitet.v12i3.4887

Priantari, I., & Firmanto, H. (2022). Physical Quality Characteristics of Coffea arabica and Coffea canephora Coffee Beans. Jurnal Ilmiah Biologi Eksperimen Dan Keanekaragaman Hayati (J-BEKH), 9(2), 43–50. https://doi.org/10.23960/jbekh.v9i2.267

Przybył, K., Gawrysiak-Witulska, M., Bielska, P., Rusinek, R., Gancarz, M., Dobrzański, B. Jr., & Siger, A. (2023). Application of Machine Learning to Assess the Quality of Food Products—Case Study: Coffee Bean. Applied Sciences, 13(19). https://doi.org/10.3390/app131910786

Rahmawati, A., Rianto, Y., & Riana, D. (2021). Deteksi Defect Coffee Pada Citra Tunggal Green Beans Menggunakan Metode Ensamble Decision Tree. Techno.Com, 20(2), 198–209. https://doi.org/10.33633/tc.v20i2.4529

Rezaei, J., & Ortt, R. (2013). Multi-criteria supplier segmentation using a fuzzy preference relations based AHP. European Journal of Operational Research, 225(1), 75–84. https://doi.org/10.1016/j.ejor.2012.09.037

Rifki, M., Azuhdi, R., Setiawan, E., Asri, P., Studi, P., Otomasi, T., Teknik, J., Kapal, K., Perkapalan, P., & Surabaya, N. (n.d.). SISTEM KLASIFIKASI HASIL SANGRAI BIJI KOPI BERDASARKAN TINGKAT KEMATANGAN BIJI MENGGUNAKAN SENSOR SPEKTRUM DENGAN METODE FUZZY LOGIC.

Saleh, S. A., Ulfa, R., & Setyawan, B. (2020). IDENTIFIKASI KADAR AIR, TINGKAT KECERAHAN DAN CITARASA KOPI ROBUSTA DENGAN VARIASI LAMA PERENDAMAN Identification Of Moisture Content, Brightness Level And Flavour Of Robusta Coffee With Immersion Time Variation (Vol. 2, Number 05).

Santosa, S. H., Hidayat, A. P., & Siskandar, R. (2021). Safea application design on determining the optimal order quantity of chicken eggs based on fuzzy logic. IAES International Journal of Artificial Intelligence, 10(4), 858–871. https://doi.org/10.11591/ijai.v10.i4.pp858-871

Saputra, R., Raya, J., No, T., Gedong, K., Rebo, P., & Timur, J. (2021). SISTEM PAKAR PENENTU KOPI TERBAIK BERDASARKAN BARISTA PADA KOLARIS KOPI. In Jurnal Rekayasa Komputasi Terapan) (Vol. 01).

Sihombing, F. A. (n.d.). Kajian Fuzzy Metode Mamdani dan Fuzzy Metode Sugeno serta Implementasinya. Copyright @ Firginia Astuti Sihombing INNOVATIVE: Journal Of Social Science Research, 4, 4940–4955.

Son Maria, P., Susianti, E., Teknik Elektro, J., Sains dan Teknologi, F., & Sultan Syarif Kasim Riau, U. (2017). Performance Test Sistem Kualifikasi Biji Kopi Menggunakan Pengolahan Citra Metode Local Binary Pattern dan Algoritma Learning Vector Quantization. Jurnal Sains, Teknologi Dan Industri, 14(2), 234–239.

Syamsiana, I. N., Nafisah, N., Suma, A. D. W., Fiernaningsih, N., Amalia, R. N., & Nurwicaksana, W. A. (2025). Enhancing rotary dryer efficiency: Adjusting blower speed for optimal temperature stability in coffee bean drying. MethodsX, 15, 103477. https://doi.org/10.1016/j.mex.2025.103477

Tekonologi Pertanian, J., Pertanian, F., Bengkulu Jalan Supratman, U. W., & Limun, K. (2021). KARAKTERISTIK FISIK KUALITAS BIJI KOPI DAN KUALITAS KOPI BUBUK SINTARO 2 DAN SINTARO 3 DENGAN BERBAGAI TINGKAT SANGRAI PHYSICAL CHARACTERISTICS OF COFFEE BEANS AND QUALITY OF GROUND COFFEE SINTARO 2 AND SINTARO 3 WITH VARIOUS ROAST LEVELS Budiyanto*, Toto Izahar, dan Damres Uker. | Jurnal Agroindustri, 11(1), 54–71. https://doi.org/10.31186/j.agroind.11.1.54-71

Yusya Abubakar, D. H. S. A. W. (2022). ANALISIS KUALITAS BUAH MERAH KOPI ARABIKA GAYO DAN KORELASINYA DENGAN KUALITAS BIJI PADA KETINGGIAN BERBEDA.

Downloads

Published

2026-03-24

Issue

Section

Articles

How to Cite

Application of Fuzzy Logic System for Coffee Bean Quality Detection. (2026). Journal of Applied Science, Technology & Humanities, 3(2), 942-952. https://doi.org/10.62535/myb58j95