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.
Copyrights © 2026