Automated machine learning achieves accurate water quality prediction with reduced parameter requirements
Deivid Campos1, Viviane Galvão1, Matheus Lopes de Rezende1
1Computational Modeling Program, Engineering Faculty, Federal University of Juiz de Fora, Juiz de Fora, 36036-900, Brazil.
Abstract:
Accurate water quality assessment is critical for environmental monitoring and public health. Conventional Water Quality Index (WQI) computation methods, however, often rely on numerous parameters and labor-intensive processes, thus limiting their practicality for rapid assessments. While Machine Learning (ML) offers promising alternatives, the development of high-performing models typically demands extensive expertise and computational resources. This study addresses the latter gap by leveraging Automated Machine Learning (AutoML), specifically the AutoGluon platform, to predict WQI from a reduced set of readily available water quality parameters. Our objectives were to (i) evaluate the predictive performance of AutoML with reduced inputs, (ii) assess model interpretability via feature importance, and (iii) propose an automated framework for efficient water quality monitoring. This study analyzed a 36-year dataset from Taiwan's national river water quality monitoring network, focusing on four parameters: electrical conductivity (EC), suspended solids (SS), water temperature (WT), and pH. A fully automated pipeline handled model selection, hyperparameter tuning, and ensemble construction by systematically testing multiple algorithm families and stacking strategies to determine the optimal setup for each parameter. This eliminated manual intervention and delivered reproducible, data-driven results that matched the distinct spatiotemporal patterns in the long-term records. Among the evaluated algorithms, ensemble-based tree models (CatBoost, Random Forest, and XGBoost) demonstrated superior performance, achieving a mean [Formula: see text] of 0.76 and low predictive errors. Feature importance analysis identified EC as the most influential predictor. Such results highlight the feasibility of reducing the number of input parameters without compromising prediction accuracy, thereby enabling faster and cost-effective water quality assessments.
Related Concept Videos
Testing Water Quality
Multiple Regression
Farmers can use multiple regression to determine the crop yield based on more than one factor, such as water availability, fertilizer, soil properties, etc. Here, the crop yield is the response or dependent variable as it depends on the other independent variables. The analysis requires the construction of a scatter plot...


