Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Chemistry-informed explainable AI for physicochemical water quality assessment using an ensemble learning model: a case study in the Ziz Basin, Morocco

Domain:

environment and energygeospatial

Record type:

paper
Creator:
BouAghMOUEl
Publisher:
Mor
Host:avatar
Ensuring safe and sustainable water resources requires advanced analytical approaches capable of managing the chemical complexity and spatiotemporal variability of natural aquatic systems. This study applies ensemble learning and explainable artificial intelligence (XAI) to predict and interpret the Water Quality Index (WQI) of the Ziz Basin, Morocco, an arid region where geogenic processes and anthropogenic pressures influence water chemistry. We trained a set of ensemble learning models (Gradient Boosting, Random Forest, and XGBoost) on a dataset comprising 26 physicochemical parameters, including major ions (Ca²⁺, Mg²⁺, Na⁺, K⁺, Cl⁻, SO₄²⁻, HCO₃⁻), nutrients (NO₃⁻, NO₂⁻, NH₄⁺, PO₄³⁻), organic load indicators (BOD₅, DCO), heavy metals (Pb2+, Cd2+, Ni2+, Fe2+, Cu2+, Al3+, Zn2+), and general water quality parameters (pH, EC, TDS, turbidity, temperature), collected from 80 monitoring stations in the basin.  Among these models, Gradient Boosting achieved the best performance with an R2 score of 0.91 and a low root mean square error (RMSE), confirming its suitability for accurate WQI estimation. To address the challenge of model interpretability, we employed SHAP (SHapley Additive exPlanations) to analyze both global and local feature contributions. The results reveal a strong chemical signal in the prediction process: lead (Pb²⁺) is the most influential parameter with a mean SHAP value of 30.01, followed by cadmium (Cd²⁺, 7.34) and nitrate (NO₃⁻, 4.26), confirming the significant impact of heavy metal contamination and nutrient enrichment in the basin. Moderate contributions were observed for organic load indicators (BOD₅ = 1.24), salinity-related ions (Na⁺ = 0.99; Cl⁻ = 0.45; HCO₃⁻ = 0.33), and transition metals (Ni²⁺ = 0.68; Fe²⁺ = 0.48). The findings demonstrate the potential of XAI-driven analytics to support environmental chemists, hydrologists, and decision-makers in diagnosing pollution sources, prioritizing interventions, and improving sustainable water resource management in data-scarce regions

Visit

doi.orgrevues.imist.ma

Licenses

Creative Commons Attribution Non Commercial No Derivatives 4.0 Internationalhttps://creativecommons.org/licenses/by-nc-nd/4.0/legalcode

Similar

Hybrid Ensemble Learning for TWSA Prediction in Water-Stressed Regions: A Case Study from Casablanca–Settat Region, MoroccoGeospatial and Machine Learning-Based Assessment of Wildfire Risk in Arid Oasis Ecosystems: A Case Study of the Middle Ziz Valley, MoroccoAn Explainable Ensemble Model for ZARDI-Wise Maize Yield Prediction Using Climate Data in UgandaDeveloping a Flight Price Prediction Model Using Ensemble Machine Learning: A Case Study of Ethiopian Airlines Developing Flight Price Prediction Model Using Ensemble Machine LearningDevelopment of a Stope Stability Prediction Model Using Ensemble Learning Techniques - A Case StudyManagement of water scarcity in arid areas: a case study (Ziz Watershed)

Hybrid Ensemble Learning for TWSA Prediction in Water-Stressed Regions: A Case Study from Casablanca–Settat Region, Morocco

A hybrid machine learning framework has been developed in this study to estimate Terrestrial Water S

Geospatial and Machine Learning-Based Assessment of Wildfire Risk in Arid Oasis Ecosystems: A Case Study of the Middle Ziz Valley, Morocco

The increasing frequency of wildfires in arid ecosystems, driven by climate change and growing anthr

An Explainable Ensemble Model for ZARDI-Wise Maize Yield Prediction Using Climate Data in Uganda

Abstract Accurate maize yield prediction is crucial for food security in countries

Developing a Flight Price Prediction Model Using Ensemble Machine Learning: A Case Study of Ethiopian Airlines Developing Flight Price Prediction Model Using Ensemble Machine Learning

We have attached the below list of data and model development processes: ·    Processed and aggrega

Development of a Stope Stability Prediction Model Using Ensemble Learning Techniques - A Case Study

The consequences of collapsed stopes can be dire in the mining industry. This can lead to the revoca

Management of water scarcity in arid areas: a case study (Ziz Watershed)

International audience The 2030 Agenda for Sustainable Development aims to reach 17 S