Explainable machine learning framework for assessing groundwater quality and trace element contamination in Eastern Saudi Arabia
Ali Aldrees, Abdulhayat M. Jibrin, Salisu Dan’azumi, Ismail A. Mahmoud, U. Aliyu, Sani I. Abba
Prince Sattam Bin Abdulaziz University · King Fahd University of Petroleum and Minerals
Key points
From the paper's conclusion- Groundwater quality in arid regions like Al Hassa, Saudi Arabia, is increasingly threatened by trace element contamination driven by human activity and natural geology.
Abstract
Groundwater quality in arid regions like Al Hassa, Saudi Arabia, is increasingly threatened by trace element contamination driven by human activity and natural geology. This study addresses the urgent need for data-driven tools to assess groundwater pollution in the region’s multi-aquifer system. Groundwater samples were analyzed for trace elements and main physicochemical parameters. Using supervised machine learning (ML) models—Linear Regression (LR), Random Forest (RF), K-Nearest Neighbors (KNN), and Gradient Boosting Machine (GBM)—the Water Pollution Index (WPI) was predicted as a holistic metric of contamination. The GBM model outperformed all others, achieving a training coefficient of determination (DC) of 0.9970 and a mean absolute error (MAE) of 0.0017. During testing, it maintained a high DC of 0.9372 and an MAE of 0.0063, confirming its strong generalization ability. SHapley Additive exPlanations (SHAP) were used to rank feature importance and enhance model transparency. The most influential variables for WPI prediction were chromium (Cr, SHAP = 0.0214), aluminum (Al, SHAP = 0.0136), and strontium (Sr, SHAP = 0.0053), followed by Fe (0.0031), V (0.0028), and Se (0.0017). Despite generally acceptable water quality, elements such as Cr and Fe exceeded safe limits in several samples. This study presents a transparent, high-performing framework for groundwater quality assessment in arid conditions. The integration of explainable ML offers clear, actionable insights into sustainable water management and environmental decision-making.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Comprehensive Risk Assessment Framework for Groundwater Quality: Integrating Natural Background Levels, Threshold Values, and Machine Learning-Based Hydrochemical Facies Classification.Water environment research : a research publication of the Water Environment Federation · 2026
- Machine learning modelling of a nonlinear environmental index with sensitivity analysis for groundwater assessmentScientific Reports · 2026
- Explainable machine learning with ensemble-based uncertainty quantification for groundwater quality indices in the Ganfu Plain, ChinaEnvironmental Earth Sciences · 2026
- Groundwater quality assessment for agricultural utilizing indexical and machine learning techniques in Ouled Djellal Aquifer, Southern AlgeriaScientific Reports · 2026
- Integrating CCME-WQI and Machine Learning for Groundwater Quality in the Sedrata PlainEcological Chemistry and Engineering S · 2026
- Synthetic data-driven explainable machine learning for groundwater salinity prediction in the Al-Qatif coastal aquifer of Saudi ArabiaJournal of Hydrology Regional Studies · 2026