An explainable machine learning framework for soil susceptibility mapping using SHapley additive exPlanation
Soil salinity and alkalinity are among the most critical land degradation processes that threaten agricultural productivity, ecosystem stability, and sustainable soil management. However, accurate modeling, especially over large areas, remains challenging due to the limited spatial and temporal coverage of soil samples, the quality of predictor variables, and the choice of modeling algorithm. To address these limitations, this study used “machine learning (ML)” and “explainable artificial intelligence (XAI)” to map combined soil hazards based on soil pH and electrical conductivity (EC) (0–30 cm depth) in the Qarah-Aghaj River basin, Fars Province, Iran. By integrating pH and EC measurements from 72 soil samples with climatic, anthropogenic, soil, hydrological, and topographic predictors, we modeled the spatial distribution of soil pH and EC. “Random Forest (RF)” and “Support Vector Regression (SVR)” were introduced for prediction, as RF outperformed SVR for both EC and pH prediction, achieving higher predictive accuracy (R 2 > 0.75) and lower error values across the validation datasets. “SHapley Additive exPlanations (SHAP)” was applied separately to the EC and pH models to interpret the contribution of predictor variables at both low and high values of the target properties. The results of the combined soil hazard map revealed that 94.41% of the study area was affected by only alkalinity hazards and 1.26% of the total area faced both alkalinity and salinity hazards. These findings offer a valuable tool for regional and environmental planning and sustainable soil management. This study also emphasizes the need to carefully evaluate covariate selection strategies and modeling approaches, as their effectiveness can vary depending on the algorithm and data characteristics.
Authors
- Hamid Reza Pourghasemi (ORCID: https://orcid.org/0000-0003-2328-2998)
- Soraya Bandak
- Mohammad Rastegar (ORCID: https://orcid.org/0000-0001-9056-6769)
- Mojgan Bordbar (ORCID: https://orcid.org/0000-0001-6673-1074)
- Atiyeh Amindin
- Sedigheh Maleki
Institutions
- Université du Québec à Chicoutimi (CA)
- Shiraz University (IR)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1038/s41598-026-81126-4
- Primary Topic
- Soil Geostatistics and Mapping
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Shiraz University