Explainable machine learning framework for assessing groundwater quality and trace element contamination in Eastern Saudi Arabia

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.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-23
DOI
https://doi.org/10.1038/s41598-025-29598-8
Citations
1
Primary Topic
Groundwater and Isotope Geochemistry
Type
article
Field-Weighted Citation Impact
1.34

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Explainable machine learning framework for assessing groundwater quality and trace element contamination in Eastern Saudi Arabia

Ali Aldrees, Ismail A. Mahmoud, Salisu Dan’azumi, Sani Isah Abba et al.
1 citations
Scientific Reports
Groundwater and Isotope Geochemistry
1.34
article

Explainable machine learning framework for assessing groundwater quality and trace element contamination in Eastern Saudi Arabia

Ali Aldrees, Ismail A. Mahmoud, Salisu Dan’azumi, Sani Isah Abba, U. Aliyu, Abdulhayat M. Jibrin
article en
1 citations

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.

Scientific ReportsVol. 15(1)
King Fahd University of Petroleum and Minerals (SA), Prince Mohammad bin Fahd University (SA), Prince Sattam Bin Abdulaziz University (SA), Maitama Sule University Kano (NG), Federal Medical Centre (NG), Bayero University Kano (NG)
Prince Sattam bin Abdulaziz University
Openalex Percentile: Top 15%
Groundwater and Isotope Geochemistry
1.34
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.