Related Experiment Video
Updated: Sep 10, 2025

Watershed Planning within a Quantitative Scenario Analysis Framework
Published on: July 24, 2016
Predicting water quality index using stacked ensemble regression and SHAP based explainable artificial intelligence
Rakesh Choudhary1, Ajay Kumar2, Priyadharsini C3
1Department of Civil Engineering, National Institute of Technology Delhi, New Delhi, 110036, India. environmentrakesh@gmail.com.
Abstract:
Effective forecasting of the Water Quality Index (WQI) considerably impacts water resource management as well as public health safety. This study proposes a new approach for WQI forecasting using stacked regression ensemble modeling integrated with SHAP (Shapley Additive explanations), a form of Explainable Artificial Intelligence (XAI). The model was developed using a dataset of 1,987 water quality samples from Indian rivers (2005-2014), processed through six optimized machine learning algorithms: XGBoost, CatBoost, Random Forest, Gradient Boosting, Extra Trees, and AdaBoost, combined using Linear Regression as the meta-learner. The model was trained using seven normalized physicochemical parameters as predictors, and the computed WQI (via the weighted arithmetic method) served as the response variable. The stacked ensemble model outperformed all individual models, achieving the highest performance across all evaluation metrics, with R² reaching 0.9952, Adjusted R² at 0.9947, MAE recorded at 0.7637, and RMSE reduced to 1.0704. Among the individual models, CatBoost and Gradient Boosting demonstrated the strongest standalone performance. CatBoost achieved an R² of 0.9894, Adjusted R² at 0.9883 MAE of 0.8399, and RMSE of 1.5905, while Gradient Boosting attained an R² of 0.9907, Adjusted R² at 0.9898 MAE of 1.0759, and RMSE of 1.4898, respectively. SHAP analysis revealed that DO, BOD, conductivity, and pH were the most influential parameters contributing to the prediction of WQI. This integrated framework improves existing approaches by providing high predictive accuracy and model interpretability along with real-time environmental monitoring capabilities. It fosters anticipatory environmental surveillance, automated policy frameworks, and confidence among stakeholders regarding the sustainability of water resources.
More Related Videos
05:47Evidence-based Knowledge Synthesis and Hypothesis Validation: Navigating Biomedical Knowledge Bases via Explainable AI and Agentic Systems
Published on: June 13, 2025
12:26Integrating Remote Sensing with Species Distribution Models; Mapping Tamarisk Invasions Using the Software for Assisted Habitat Modeling SAHM
Published on: October 11, 2016
Related Concept Videos
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...
Steps in Outbreak Investigation
Testing Water Quality
Quality of Water
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
Predicting Reaction Outcomes