8–11 Sept 2026
Unversity of Eldoret
Africa/Nairobi timezone
welcome to u6 plus

Explainable machine learning surrogate for water quality index prediction in rural South Africa

Not scheduled
12m
Moiben (EKA Hotel)

Moiben

EKA Hotel

Eldoret Town
Natural Resources, Climate Change & Sustainable Development Natural Resources, Climate Change & Sustainable Development

Speaker

Ziyanda Mbanjwa (Department of Chemical Sciences, University of Johannesburg, Doornfontein Campus, South Africa)

Description

Access to safe drinking water remains a pressing challenge across rural South Africa, where resource constraints severely limit the frequency and coverage of water quality monitoring. The Water Quality Index (WQI), while providing an accessible summary metric of water safety, requires extensive laboratory analyses, limiting its operational scalability. This study develops, validates, and interprets a parsimonious machine learning surrogate for WQI prediction using routinely measurable physicochemical parameters collected from 18 villages in the Eastern Cape Province. Four regression algorithms: Ridge Regression, Random Forest, Extra Trees, and XGBoost, were benchmarked under recursive feature elimination with cross-validation. Ridge Regression emerged as the optimal model, achieving cross-validated R² = 0.977 ± 0.028 and test-set R² = 0.887, RMSE = 168.83, and MAE = 74.58 using only seven predictors: pH, turbidity, free chlorine, phosphate, nitrates, ammonia, and potassium. Global model interpretability was assessed using SHapley Additive exPlanations (SHAP), which identified turbidity, nitrates, and ammonia as the three dominant predictors; followed by pH, free chlorine, phosphate, and potassium, consistent with established hydrochemical theory. Distribution-free uncertainty quantification via conformal prediction yielded 92% empirical coverage, approaching the nominal 95% target. Spatial generalisation was evaluated through leave-one-village-out cross-validation, yielding a mean R² of 0.849 ± 0.290. The surrogate equation, WQI ≈ −231.26 + 33.97pH + 12.47Turbidity − 40.32Free Chlorine − 14.04Phosphate − 3.80Nitrates + 63.93Ammonia + 4.58K, provides a transparent, deployable tool for cost-effective water quality screening in resource-limited settings.

Corresponding Author's Email pnnomngongo@uj.ac.za
Keywords Water Quality Index; Machine Learning; Ridge Regression; SHAP; Conformal Prediction; Rural Water Monitoring; Eastern Cape

Authors

Ziyanda Mbanjwa (Department of Chemical Sciences, University of Johannesburg, Doornfontein Campus, South Africa) Thulane Paepae (Department of Mathematics and Applied Mathematics, Faculty of Science, University of Johannesburg, Doornfontein, South Africa.) Luthando Nyaba (Department of Chemical Sciences, University of Johannesburg, Doornfontein Campus, South Africa) Anele Mpupa (Faculty of Science, Engineering and Agriculture, University of Venda, Thohoyandou, South Africa) Philiswa Nosizo Nomngongo (Department of Chemical Sciences, University of Johannesburg, Doornfontein Campus, South Africa)

Presentation materials

There are no materials yet.