Interactive Cloud-Based Domestic Water Quality Assessment Using Mamdani Fuzzy Logic and Streamlit
- Publication History
- Published online: November 16, 2026
- DOI
- https://doi.org/10.35877/jetech5524
- Copyright
- Copyright (c) 2026 Dwi Puspita Anggraeni, Riskiana Wulan, Teja Endra Eng Tju
- User License
- https://creativecommons.org/licenses/by-nc/4.0
Abstract
This study develops an interactive cloud-based system for assessing domestic water quality using Mamdani fuzzy logic. The system evaluates three physicochemical parameters, namely pH, total dissolved solids (TDS), and turbidity. The research employed a computational development and empirical validation approach involving regulatory parameter identification, membership-function design, formulation of 27 If–Then rules, Max–Min inference, centroid defuzzification, and web-based implementation using Python and Streamlit. Empirical validation was conducted using three laboratory-tested water samples representing suitable, intermediate, and unsuitable water conditions. The system produced centroid scores of 88.5, 48.3, and 15.4 and classified the samples as suitable, suitable after treatment, and unsuitable, respectively. All three classifications matched the corresponding laboratory reference classifications, resulting in 100% classification agreement within the evaluated samples. Evaluation of the aggregated fuzzy output produced a Mean Absolute Error below 0.04, indicating a low numerical deviation in the resulting fuzzy decision curve. The findings demonstrate that the developed system can accommodate gradual transitions near physicochemical thresholds and provide interpretable water-quality decisions through an accessible cloud-based interface. Nevertheless, the reported validation is limited to the three samples evaluated in this study.
Keywords
Citation
Statements

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

