This research examines the capacity of machine learning (ML) methods to predict the Water Quality Index (WQI) of groundwater from a set of physicochemical parameters. A dataset of 409 groundwater samples was examined, which includes pH, EC (electrical conductivity), TH (total hardness), Ca (calcium), Mg (magnesium), Na (sodium), K (potassium), HCO3 (bicarbonate), Cl (chloride), SO4 (sulfate), and NO3 (nitrate). The WQI was calculated and employed as the target variable in this analysis. Four regression models (Decision Tree Regressor, Random Forest Regressor, Gradient Boosting Regressor, XGBoost Regressor) were evaluated using statistical metrics. The Gradient Boosting Regressor demonstrated superior predictive capability among the four tested models, with an R2 = 0.8982, MAE = 9.2954, and MSE = 1361.6065. XGBoost and Random Forest models also have high predictive capacity; however, the Decision Tree model has relatively low accuracy compared to the other three models. The results suggest that ML algorithms can identify non-linear associations between groundwater quality parameters and WQI. This research shows that data-driven approaches can provide rapid and reliable predictions of groundwater quality, which may help reduce the need for extensive laboratory testing and promote better utilisation of water resources through more effective and efficient water resource management.
Panneerselvam et al. (Wed,) studied this question.