Identifying Dominant Factors and Combined Effects of Shallow Groundwater Nitrate Contamination in the Guanzhong Basin Using PSO-XGBoost-SHAP.
Kai Wang, Yahong Zhou, Jiayun Ji, Dan Wang, Tiantian Zhou
School of Water Resources and Environment, Hebei GEO University, Shijiazhuang, China. · Department of Plant and Environmental Sciences, New Mexico State University, Las Cruces, New Mexico, USA.
Key points
From the paper's conclusion- The results showed that the PSO-XGBoost model effectively captured the nonlinear relationship between environmental factors and nitrate concentration, with satisfactory test-set performance (MAE = 1.3134, RMSE = 2.1502, R2 = 0.9163).
Abstract
The Guanzhong Basin is a typical agricultural plain in China, where shallow groundwater nitrate contamination is jointly associated with multiple environmental factors. However, the dominant factors and their nonlinear response patterns remain unclear. In this study, shallow groundwater nitrate in the Guanzhong Basin was investigated using variables related to soil physicochemical properties, groundwater physicochemical parameters, hydrogeological conditions, climate, and land use/land cover. An XGBoost model optimized using particle swarm optimization (PSO) was combined with SHAP analysis to quantify the relative contributions and directions of association of environmental factors and to examine their condition-dependent combined patterns. The results showed that the PSO-XGBoost model effectively captured the nonlinear relationship between environmental factors and nitrate concentration, with satisfactory test-set performance (MAE = 1.3134, RMSE = 2.1502, R2 = 0.9163). SHAP analysis indicated that precipitation, depth to groundwater, electrical conductivity, and vadose-zone thickness were the key predictors of shallow groundwater nitrate concentrations in the study area. Precipitation and electrical conductivity generally made positive contributions, depth to groundwater made a negative contribution, and vadose-zone thickness showed a nonmonotonic response pattern. SHAP dependence analysis further suggested that paired factors exhibited condition-dependent associations in model-predicted nitrate concentrations, providing evidence to support groundwater nitrate-risk management in the Guanzhong Basin.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Spatial prediction of coastal groundwater nitrate using combined feature selection and explainable machine learning.Journal of environmental management · 2026
- Data-driven prediction modeling of groundwater quality using integrated machine learning in Pinggu Basin, ChinaJournal of Hydrology Regional Studies · 2025
- Machine learning prediction of arsenic natural background level heterogeneity in shallow groundwater: Integrating in-situ hydrochemistry and spatial proxies at the meso-scale.Journal of contaminant hydrology · 2026
- Groundwater Nitrate Modelling Using Optimized Machine Learning, Feature Selection and Explainable Artificial Intelligence (XAI)Nitrogen · 2026
- A multi-method for identifying and spatial modeling of groundwater nitrate natural background levels in an urbanized delta in China: Insight from Cl/Br ratios combining with KNN algorithm and EBKWater Research · 2025
- Interpretable machine learning for seasonal nitrate and total phosphorus concentrations integrating hydrologic, land-use, and ecological indicators.Journal of environmental management · 2026