Application of Fuzzy Logic to Determine Powdered Coffee Quality Based on Moisture Content and Caffeine
DOI:
https://doi.org/10.62535/0dvyen02Abstract
Ground coffee quality is influenced by moisture content and caffeine content, which are important parameters in evaluating product characteristics. This study aimed to classify ground coffee quality using a Mamdani fuzzy inference system based on moisture content and caffeine content. The system was developed using MATLAB through Fuzzy Logic Designer, with two input variables, each divided into three fuzzy sets, and one output variable representing coffee quality. Triangular and trapezoidal membership functions were used to represent the input variables, while nine IF–THEN rules were established using max–min inference and centroid defuzzification. Simulation results for a sample with a caffeine content of 1.5% (w/w) and a moisture content of 5.0% (w/w) produced a crisp output value of 5.231, which was classified as moderate quality. These results demonstrate that the Mamdani fuzzy inference system can integrate moisture content and caffeine content to generate a structured quality classification. However, further testing using multiple samples and comparison with reference assessments is required to determine the system's classification accuracy and reliability.
References
Badan Standardisasi Nasional. (2004). SNI 01-3542-2004: Kopi bubuk. Badan Standardisasi Nasional.
Hurriyah, S., & Subhan, M. (2024). Penentuan kualitas biji kopi pada Koperasi Solok Radjo menggunakan metode TOPSIS Fuzzy MADM. UNP Journal of Mathematics, 8(4). https://doi.org/10.24036/unpjomath.v8i4.15000
Khairo, A. A., & Sitepu, S. (2024). Perbandingan metode defuzzifikasi dalam sistem inferensi fuzzy metode Mamdani untuk penentuan kerentanan rawan banjir (Studi kasus: Kota Medan). FARABI: Jurnal Matematika dan Pendidikan Matematika, 7(2), 175–184. https://doi.org/10.47662/farabi.v7i2.789
Lambat, Y., Ayres, N., Maglaras, L., & Ferrag, M. A. (2021). A Mamdani type fuzzy inference system to calculate employee susceptibility to phishing attacks. Applied Sciences, 11(19), 9083. https://doi.org/10.3390/app11199083
Lopriore, M., Alongi, M., Valentino, M., Anese, M., & Nicoli, M. C. (2025). Impact of environmental humidity on instant coffee stability: Defining moisture thresholds for quality degradation and shelf life prediction. Foods, 14(10), 1826. https://doi.org/10.3390/foods14101826
Lukodono, R. P., Setyanto, N. W., & Izzulhaq, M. D. (2019). Perbaikan kadar kafein pada produk kopi Arabica dengan menggunakan desain eksperimen Taguchi. Jurnal Ilmiah Teknik Industri, 6(3), 149–156. https://doi.org/10.24912/jitiuntar.v6i3.4240
Mada, G. S., Dethan, N. K. F., & Maharani, A. E. S. H. (2022). The defuzzification methods comparison of Mamdani fuzzy inference system in predicting tofu production. Jurnal Varian, 5(2), 137–148. https://doi.org/10.30812/varian.v5i2.1816
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.
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, Article 102580. https://doi.org/10.1016/j.mex.2024.102580
Nasution, A. M. A., Oktavianty, H., & Nasution, N. E. A. (2023). The effect of variations in the water-to-coffee-powder ratio on the water content and caffeine content of Sigarar Utang instant Arabica coffee. META: Journal of Science and Technological Education, 2(2), 75–80.
Nurhayati, S., & Pramanda, D. (2018, Agustus). Proses pemanggangan kopi menggunakan fuzzy Mamdani. IOP Conference Series: Materials Science and Engineering, 407(1), Article 012122. https://doi.org/10.1088/1757-899X/407/1/012122
Rahayu, B. P. C., Alaiyya, A. F. R. A., & Yanif, I. (2026). Application of fuzzy logic system for coffee bean quality detection. Journal of Applied Science, Technology & Humanities, 3(2), 942–952. https://doi.org/10.62535/myb58j95
Rizki, W. A., Siregar, R. S., & Saleh, K. (2026). Implementasi metode Fuzzy Mamdani pada sistem penentuan kelayakan beasiswa. Repeater: Publikasi Teknik Informatika dan Jaringan, 4(1), 18–30. https://doi.org/10.62951/repeater.v4i1.773
Siskandar, R., Wiyoto, W., Santosa, S. H., Hidayat, A. P., Kusumah, B. R., & Darmawan, M. D. M. (2023). Prediction of freshwater fish disease severity based on fuzzy logic approach, Arduino IDE and Proteus ISIS. Universal Journal of Agricultural Research, 11(6), 1089–1101.
Wijayanti, R., & Anggia, M. (2020). Pengaruh penambahan larutan alkali dalam proses dekafeinisasi biji kopi kering terhadap karakteristik fisikokimia kopi bubuk. Jurnal Teknologi Pertanian Andalas, 24(2), 196–201. https://doi.org/10.25077/jtpa.24.2.196-201.2020
