Spatial prediction of coastal groundwater nitrate using combined feature selection and explainable machine learning.
Man Li, Dejie Yu, Fan Yang, Lu Yu, Jing Bai, Chuanshun Zhi, Wenbo Chang, Xiaonong Hu
School of Water Conservancy and Environment, University of Jinan, Jinan, 250022, China; Observation and Research Station of Seawater Intrusion and Soil Salinization, Laizhou Bay, Ministry of Natural Resources, Qingdao, Shandong Province, 266061, China. Electronic address: 2933427650@qq.com. · Shandong Provincial Territorial Spatial Ecological Restoration Center, Jinan, 250014, China. Electronic address: 355075020@qq.com.
Key points
From the paper's conclusion- These findings support groundwater nitrate spatial identification, water quality assessment and regional groundwater resource protection.
Abstract
Groundwater nitrate contamination is an important issue affecting groundwater quality and safety. Accurate prediction of groundwater nitrate concentrations and identification of key influencing factors are of great significance for groundwater pollution prevention and water resource management. Taking the lower reaches of the Huangshui River as the study area, 452 groundwater samples collected in July 2023 were used to predict groundwater NO3--N concentrations by integrating Spearman correlation analysis, self-organizing map (SOM)-Boruta feature selection, Random Forest (RF), Extreme Gradient Boosting (XGBoost), RF-XGBoost stacking modeling, SHapley Additive exPlanations (SHAP), and geographic information system (GIS)-based spatial mapping. The dataset was divided into 361 training samples and 91 independent test samples, and model robustness was further assessed through cross-validation and 1000 repeated resampling runs. The SOM-Boruta method selected eight key variables: TDS, SO42-, TH, Cl-, NH3-N, COD, F- and pH. All three models showed good predictive ability, with the RF-XGBoost stacking model yielding the most favorable test-set performance (R2 = 0.881, RMSE = 13.266 mg/L, MAE = 9.284 mg/L).SHAP analysis identified TDS as the predictor with the highest contribution to model predictions across the three models. GIS-based RF-XGBoost prediction showed groundwater NO3--N concentrations ranging from 5.31 to 59.83 mg/L, with higher values in the north, lower values in the south and transitional values in the central area. These findings support groundwater nitrate spatial identification, water quality assessment and regional groundwater resource protection.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Groundwater Nitrate Modelling Using Optimized Machine Learning, Feature Selection and Explainable Artificial Intelligence (XAI)Nitrogen · 2026
- Identifying Dominant Factors and Combined Effects of Shallow Groundwater Nitrate Contamination in the Guanzhong Basin Using PSO-XGBoost-SHAP.Water environment research : a research publication of the Water Environment Federation · 2026
- Deep learning framework for mapping nitrate pollution in coastal aquifers under land use pressureScientific Reports · 2025
- Data-driven prediction modeling of groundwater quality using integrated machine learning in Pinggu Basin, ChinaJournal of Hydrology Regional Studies · 2025
- A cost-effective framework for drinking groundwater quality prediction based on explainable artificial intelligence.Ecotoxicology and environmental safety · 2026
- 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