Identifying Key Drivers of Heavy Metal(loid)s Contamination in Farmland Soils Using Machine Learning with Source-Integrated Features
Abstract
1. Introduction
2. Methods and Materials
2.1. Study Area and Farmland Soil Sampling
2.2. Model Establishment
2.3. Determination of Soil Heavy Metal(loid)s and QA/QC
2.4. Feature Selection and Data Acquisition
3. Results and Discussion
3.1. Model Performance Within the LASSO-Stacking Ensemble Framework
3.2. SHAP-Based Interpretation of Model-Derived Associations for Heavy Metal(loid)s Contamination in Ningxia Farmland Soils
3.2.1. As Interpretation
3.2.2. Hg Interpretation
3.2.3. Cd Interpretation
3.2.4. Cr Interpretation
3.2.5. Pb Interpretation
3.3. Integrated Source Apportionment and Environmental Interpretation of Heavy Metals
3.4. Policy Implications
- (1)
- Industrial and Energy Emission Abatement Coupled With Cropland Protection: The PMF results indicate that Hg was mainly associated with an industrial atmospheric deposition source, while model-derived associations suggest that emission- and dispersion-related variables may also be relevant to the spatial expression of Pb and Cr in some areas. Therefore, industrial emission control and deposition monitoring should focus primarily on Hg, while also considering Pb and Cr in downwind or emission-affected croplands.
- (2)
- Traffic-Source and Road-Dust Control With Buffer-Based Land Management: Where traffic-related particulate proxies show incremental explanatory value, near-road croplands should be treated as priority areas for monitoring and preventive management, particularly for Pb and Cr. Measures may include graded buffer zones, ecological barriers, road-dust suppression, and joint monitoring of road dust and topsoil.
- (3)
- Control of Agricultural Inputs and Management Intensity Through Traceability and Auditability: The PMF results indicate that Cd was mainly associated with agricultural inputs. Therefore, management should prioritize reducing Cd inputs from fertilizers, organic amendments, irrigation water, and other agricultural materials. For As and Pb, agricultural management should be considered as a potential contributing pathway only where supported by local evidence, because their accumulation may also reflect natural background, atmospheric deposition, and historical legacy inputs.
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Hou, D.; Jia, X.; Wang, L.; McGrath, S.P.; Zhu, Y.G.; Hu, Q.; Zhao, F.-J.; Bank, M.S.; O’cOnnor, D.; Nriagu, J. Global soil pollution by toxic metals threatens agriculture and human health. Science 2025, 388, 316–321. [Google Scholar] [CrossRef] [PubMed]
- Khan, S.; Naushad, M.; Lima, E.C.; Zhang, S.; Shaheen, S.M.; Rinklebe, J. Global soil pollution by toxic elements: Current status and future perspectives on the risk assessment and remediation strategies–A review. J. Hazard. Mater. 2021, 417, 126039. [Google Scholar] [CrossRef] [PubMed]
- Hou, D.; O’Connor, D.; Igalavithana, A.D.; Alessi, D.S.; Luo, J.; Tsang, D.C.W.; Sparks, D.L.; Yamauchi, Y.; Rinklebe, J.; Ok, Y.S. Metal contamination and bioremediation of agricultural soils for food safety and sustainability. Nat. Rev. Earth Environ. 2020, 1, 366–381. [Google Scholar] [CrossRef]
- Mai, X.; Tang, J.; Tang, J.; Zhu, X.; Yang, Z.; Liu, X.; Zhuang, X.; Feng, G.; Tang, L. Research progress on the environmental risk assessment and remediation technologies of heavy metal pollution in agricultural soil. J. Environ. Sci. 2025, 149, 1–20. [Google Scholar] [CrossRef]
- Rashid, A.; Schutte, B.J.; Ulery, A.; Deyholos, M.K.; Sanogo, S.; Lehnhoff, E.A.; Beck, L. Heavy metal contamination in agricultural soil: Environmental pollutants affecting crop health. Agronomy 2023, 13, 1521. [Google Scholar] [CrossRef]
- Cai, Z.; Ren, B.; Xie, Q.; Deng, X.; Yin, W.; Chen, L. Assessment of health risks posed by toxicological elements of the food chain in a typical high geologic background. Ecol. Indic. 2024, 161, 111981. [Google Scholar] [CrossRef]
- Kumar, P.; Kumar, S.; Singh, R.P. Severe contamination of carcinogenic heavy metals and metalloid in agroecosystems and their associated health risk assessment. Environ. Pollut. 2022, 301, 118953. [Google Scholar] [CrossRef] [PubMed]
- Chai, L.; Wang, Y.; Wang, X.; Ma, L.; Cheng, Z.; Su, L. Pollution characteristics, spatial distributions, and source apportionment of heavy metals in cultivated soil in Lanzhou, China. Ecol. Indic. 2021, 125, 107507. [Google Scholar] [CrossRef]
- Guan, Y.; Zhang, N.; Li, B.; Ma, T.; Wu, W.; Shi, R. A novel evaluation of farmland soil environmental risk integrating heavy metal (loid) pollution risk and industrial risk potential. Stoch. Environ. Res. Risk Assess. 2025, 39, 3085–3102. [Google Scholar] [CrossRef]
- Wu, J.; Huang, C. Machine learning-supported determination for site-specific natural background values of soil heavy metals. J. Hazard. Mater. 2025, 487, 137276. [Google Scholar] [CrossRef] [PubMed]
- Alharbi, T.; Nour, H.E.; El-Sorogy, A.S.; Al-Kahtany, K.; Giacobbe, S.; Alarifi, S.S. Evaluation of health risks and heavy metals toxicity in agricultural soils in Central Saudi Arabia. Environ. Monit. Assess. 2025, 197, 419. [Google Scholar] [CrossRef] [PubMed]
- Nour, H.; Ramadan, F.; Abdel Wahed, N.; Rakha, A. Spatial distribution and contamination of specific heavy metals in the sediment of Bahr Mouse, Egypt. Egypt. J. Chem. 2024, 67, 99–109. [Google Scholar] [CrossRef]
- Saha, A.; Gupta, B.S.; Patidar, S.; Hernández-Martínez, J.L.; Martín-Romero, F.; Meza-Figueroa, D.; Martínez-Villegas, N. A comprehensive study of source apportionment, spatial distribution, and health risks assessment of heavy metal(loid)s in the surface soils of a semi-arid mining region in Matehuala, Mexico. Environ. Res. 2024, 260, 119619. [Google Scholar] [CrossRef] [PubMed]
- Ren, S.; Song, C.; Ye, S.; Cheng, C.; Gao, P. The spatiotemporal variation in heavy metals in China’s farmland soil over the past 20 years: A meta-analysis. Sci. Total Environ. 2022, 806, 150322. [Google Scholar] [CrossRef] [PubMed]
- Wei, M.; Pan, A.; Ma, R.; Wang, H. Distribution characteristics, source analysis and health risk assessment of heavy metals in farmland soil in Shiquan County, Shaanxi Province. Process Saf. Environ. Prot. 2023, 171, 225–237. [Google Scholar] [CrossRef]
- Fang, S.; Hua, C.; Yang, J.; Liu, F.; Wang, L.; Wu, D.; Ren, L. Combined pollution of soil by heavy metals, microplastics, and pesticides: Mechanisms and anthropogenic drivers. J. Hazard. Mater. 2025, 485, 136812. [Google Scholar] [CrossRef] [PubMed]
- Luo, H.; Yang, L.; Zhang, C.; Xiao, X.; Lyu, X. Early warning of heavy metals contamination in agricultural soils: Spatio-temporal distribution and future trends in the Hexi Corridor. Ecol. Indic. 2024, 160, 111908. [Google Scholar] [CrossRef]
- Sun, X.; Ma, Z.; Tang, J.; Yang, E.; Zou, D.; Lu, Y.; Guan, Q. Dust events alter semi-arid urban bioaerosols: Community structure, assembly processes, and functional profiles. J. Hazard. Mater. 2025, 501, 140919. [Google Scholar] [CrossRef] [PubMed]
- Ju, L.; Guo, S.; Ruan, X.; Wang, Y. Improving the mapping accuracy of soil heavy metals through an adaptive multi-fidelity interpolation method. Environ. Pollut. 2023, 330, 121827. [Google Scholar] [CrossRef] [PubMed]
- Yang, Y.; Jia, M. 3D spatial interpolation of soil heavy metals by combining kriging with depth function trend model. J. Hazard. Mater. 2024, 461, 132571. [Google Scholar] [CrossRef] [PubMed]
- Moradpour, S.; Entezari, M.; Ayoubi, S.; Karimi, A.; Naimi, S. Digital exploration of selected heavy metals using Random Forest and a set of environmental covariates at the watershed scale. J. Hazard. Mater. 2023, 455, 131609. [Google Scholar] [CrossRef] [PubMed]
- Zeng, Y.; Shi, T.; Liu, Q.; Yang, C.; Zhang, Z.; Wang, R. A geographically weighted neural network model for digital soil mapping of heavy metal copper in coastal cities. J. Hazard. Mater. 2024, 480, 136285. [Google Scholar] [CrossRef] [PubMed]
- Ma, X.; Guan, D.-X.; Zhang, C.; Yu, T.; Li, C.; Wu, Z.; Li, B.; Geng, W.; Wu, T.; Yang, Z. Improved mapping of heavy metals in agricultural soils using machine learning augmented with spatial regionalization indices. J. Hazard. Mater. 2024, 478, 135407. [Google Scholar] [CrossRef] [PubMed]
- Zhao, W.; Ma, J.; Liu, Q.; Dou, L.; Qu, Y.; Shi, H.; Sun, Y.; Chen, H.; Tian, Y.; Wu, F. Accurate prediction of soil heavy metal pollution using an improved machine learning method: A case study in the Pearl River Delta, China. Environ. Sci. Technol. 2023, 57, 17751–17761. [Google Scholar] [CrossRef] [PubMed]
- Liu, P.; Wu, Q.; Hu, W.; Tian, K.; Huang, B.; Zhao, Y. Effects of atmospheric deposition on heavy metals accumulation in agricultural soils: Evidence from field monitoring and Pb isotope analysis. Environ. Pollut. 2023, 330, 121740. [Google Scholar] [CrossRef] [PubMed]
- Yang, J.; Han, Z.; Yan, Y.; Guo, G.; Wang, L.; Shi, H.; Liao, X. Neglected pathways of heavy metal input into agricultural soil: Water–land migration of heavy metals due to flooding events. Water Res. 2024, 267, 122469. [Google Scholar] [CrossRef] [PubMed]
- Yao, L.; Xu, M.; Liu, Y.; Niu, R.; Wu, X.; Song, Y. Estimating of heavy metal concentration in agricultural soils from hyperspectral satellite sensor imagery: Considering the sources and migration pathways of pollutants. Ecol. Indic. 2024, 158, 111416. [Google Scholar] [CrossRef]
- Pan, Y.; Sha, A.; Han, W.; Liu, C.; Liu, G.; Welsch, E.; Zeng, M.; Xu, S.; Zhao, Y.; Tian, S.; et al. Identifying spatial drivers of soil heavy metal pollution risk integrating positive matrix factorization, machine learning, and multi-scale geographically weighted regression. J. Hazard. Mater. 2025, 485, 136841. [Google Scholar] [CrossRef] [PubMed]
- Yang, B.; He, A.; Ren, Z.; Yu, K.; Zhao, G.; Fan, Y.; Wang, Q.; Luo, S. A transfer learning–enhanced deep learning framework for efficient and interpretable soil heavy metal pollution prediction under data scarcity and spatial heterogeneity. J. Hazard. Mater. 2025, 495, 138926. [Google Scholar] [CrossRef] [PubMed]
- Ye, Q.; Li, R.; Liang, B.; Zhu, L.; Xiao, J.; Shi, Z. Predicting the Kinetics of Cu and Cd Release from Diverse Soil Dissolved Organic Matter: A Novel Hybrid Model Integrating Machine Learning with Mechanistic Kinetics Model. Environ. Sci. Technol. 2025, 59, 3713–3722. [Google Scholar] [CrossRef] [PubMed]
- Khosravi, Y.; Ouarda, T.B.; Homayouni, S. Developing an ensemble machine learning framework for enhanced climate projections using CMIP6 data in the Middle East. npj Clim. Atmos. Sci. 2025, 8, 174. [Google Scholar] [CrossRef]
- Oliver, M.A.; Webster, R. Kriging: A method of interpolation for geographical information systems. Int. J. Geogr. Inf. Syst. 1990, 4, 313–332. [Google Scholar] [CrossRef]
- Shen, F.; Xu, C.; Wang, J.; Hu, M.; Guo, G.; Fang, T.; Zhu, X.; Cao, H.; Tao, H.; Hou, Y. A new method for spatial three-dimensional prediction of soil heavy metals contamination. Catena 2024, 235, 107658. [Google Scholar] [CrossRef]
- Wang, H.; Zhao, M.; Huang, X.; Song, X.; Cai, B.; Tang, R.; Sun, J.; Han, Z.; Yang, J.; Liu, Y.; et al. Improving prediction of soil heavy metal (loid) concentration by developing a combined Co-kriging and geographically and temporally weighted regression (GTWR) model. J. Hazard. Mater. 2024, 468, 133745. [Google Scholar] [CrossRef] [PubMed]
- Li, Y.; Zhang, J.; Lv, Y.; Garland, G.; Xu, J.; Liu, X. Competitive transport of heavy metals in soil: Cadmium dynamics with numerical modeling. J. Hazard. Mater. 2025, 495, 138923. [Google Scholar] [CrossRef] [PubMed]
- Liu, W.; Hu, T.; Mao, Y.; Shi, M.; Cheng, C.; Zhang, J.; Qi, S.; Chen, W.; Xing, X. The mechanistic investigation of geochemical fractionation, bioavailability and release kinetic of heavy metals in contaminated soil of a typical copper-smelter. Environ. Pollut. 2022, 306, 119391. [Google Scholar] [CrossRef] [PubMed]
- Dai, X.; Wang, Z.; Liu, S.; Yao, Y.; Zhao, R.; Xiang, T.; Fu, T.; Feng, H.; Xiao, L.; Yang, X.; et al. Hyperspectral imagery reveals large spatial variations of heavy metal content in agricultural soil-A case study of remote-sensing inversion based on Orbita Hyperspectral Satellites (OHS) imagery. J. Clean. Prod. 2022, 380, 134878. [Google Scholar] [CrossRef]
- Dvornikov, Y.; Slukovskaya, M.; Yaroslavtsev, A.; Meshalkina, J.; Ryazanov, A.; Sarzhanov, D.; Vasenev, V. High-resolution mapping of soil pollution by Cu and Ni at a polar industrial barren area using proximal and remote sensing. Land Degrad. Dev. 2022, 33, 1731–1744. [Google Scholar] [CrossRef]
- Peng, Q.Q.; Zhou, X.; Zhou, H.; Liao, Y.; Han, Z.-Y.; Hu, L.; Zeng, P.; Gu, J.-F.; Zhang, R. Bridging the Gap: Limitations of Machine Learning in Real-World Prediction of Heavy Metal Accumulation in Rice in Hunan Province. Agronomy 2025, 15, 1478. [Google Scholar] [CrossRef]
- Vazquez, D.; Guimera, R.; Sales-Pardo, M.; Guillen-Gosalbez, G. Automatic modeling of socioeconomic drivers of energy consumption and pollution using Bayesian symbolic regression. Sustain. Prod. Consum. 2022, 30, 596–607. [Google Scholar] [CrossRef]
- Yang, L.; Yang, J.; Liu, M.; Sun, X.; Li, T.; Guo, Y.; Hu, K.; Bell, M.L.; Cheng, Q.; Kan, H.; et al. Nonlinear effect of air pollution on adult pneumonia hospital visits in the coastal city of Qingdao, China: A time-series analysis. Environ. Res. 2022, 209, 112754. [Google Scholar] [CrossRef] [PubMed]
- Abekasis, D.; Sadka, A.; Rokach, L.; Shiff, S.; Morozov, M.; Kamara, I.; Paz-Kagan, T. Explainable machine learning for revealing causes of citrus fruit cracking on a regional scale. Precis. Agric. 2024, 25, 589–613. [Google Scholar]
- Chen, D.; Wang, X.; Luo, X.; Huang, G.; Tian, Z.; Li, W.; Liu, F. Delineating and identifying risk zones of soil heavy metal pollution in an industrialized region using machine learning. Environ. Pollut. 2023, 318, 120932. [Google Scholar] [CrossRef] [PubMed]
- Liu, X.; Lu, D.; Zhang, A.; Liu, Q.; Jiang, G. Data-driven machine learning in environmental pollution: Gains and problems. Environ. Sci. Technol. 2022, 56, 2124–2133. [Google Scholar] [CrossRef] [PubMed]
- Zhu, J.J.; Yang, M.; Ren, Z.J. Machine learning in environmental research: Common pitfalls and best practices. Environ. Sci. Technol. 2023, 57, 17671–17689. [Google Scholar] [CrossRef] [PubMed]
- Egbueri, J.C.; Agbasi, J.C. Combining data-intelligent algorithms for the assessment and predictive modeling of groundwater resources quality in parts of southeastern Nigeria. Environ. Sci. Pollut. Res. 2022, 29, 57147–57171. [Google Scholar] [CrossRef]
- Guo, L.Y.; He, X.; Hong, Z.N.; Xu, R.K. Effect of the interaction of fulvic acid with Pb (II) on the distribution of Pb (II) between solid and liquid phases of four minerals. Environ. Sci. Pollut. Res. 2022, 29, 68680–68691. [Google Scholar] [CrossRef]
- Pyo, J.; Hong, S.M.; Kwon, Y.S.; Kim, M.S.; Cho, K.H. Estimation of heavy metals using deep neural network with visible and infrared spectroscopy of soil. Sci. Total Environ. 2020, 741, 140162. [Google Scholar] [CrossRef] [PubMed]
- Sun, Y.; Lei, S.; Zhao, Y.; Wei, C.; Yang, X.; Han, X.; Li, Y.; Xia, J.; Cai, Z. Spatial distribution prediction of soil heavy metals based on sparse sampling and multi-source environmental data. J. Hazard. Mater. 2024, 465, 133114. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Zhang, Z.; Li, Y.; Liang, C.; Huang, H.; Wang, S. Available heavy metals concentrations in agricultural soils: Relationship with soil properties and total heavy metals concentrations in different industries. J. Hazard. Mater. 2024, 471, 134410. [Google Scholar] [CrossRef] [PubMed]
- Xu, Y.; Li, P.; Zhang, Z.; Gu, Y.; Xiao, L.; Liu, X.; Wang, B. Integrating machine learning for enhanced spatial prediction and risk assessment of soil heavy metal(loid)s. Environ. Pollut. 2025, 383, 126919. [Google Scholar] [CrossRef] [PubMed]
- Hajihosseinlou, M.; Maghsoudi, A.; Ghezelbash, R. Stacking: A novel data-driven ensemble machine learning strategy for prediction and mapping of Pb-Zn prospectivity in Varcheh district, west Iran. Expert Syst. Appl. 2024, 237, 121668. [Google Scholar] [CrossRef]
- Wen, M.; Ma, Z.; Gingerich, D.B.; Zhao, X.; Zhao, D. Heavy metals in agricultural soil in China: A systematic review and meta-analysis. Eco-Environ. Health 2022, 1, 219–228. [Google Scholar] [CrossRef] [PubMed]
- Hou, L.; Dai, Q.; Song, C.; Liu, B.; Guo, F.; Dai, T.; Li, L.; Liu, B.; Bi, X.; Zhang, Y.; et al. Revealing drivers of haze pollution by explainable machine learning. Environ. Sci. Technol. Lett. 2022, 9, 112–119. [Google Scholar] [CrossRef]
- Yuan, X.; Xue, N.; Han, Z. A meta-analysis of heavy metals pollution in farmland and urban soils in China over the past 20 years. J. Environ. Sci. 2021, 101, 217–226. [Google Scholar] [CrossRef]
- Liu, H.; Song, D.; Kong, J.; Mu, Z.; Wang, X.; Jiang, Y.; Zhang, J. Complementarity characteristics of actual and potential evapotranspiration and spatiotemporal changes in evapotranspiration drought index over Ningxia in the upper reaches of the Yellow River in China. Remote Sens. 2022, 14, 5953. [Google Scholar] [CrossRef]
- Yang, P.; Zhai, X.; Huang, H.; Zhang, Y.; Zhu, Y.; Shi, X.; Zhou, L.; Fu, C. Association and driving factors of meteorological drought and agricultural drought in Ningxia, Northwest China. Atmos. Res. 2023, 289, 106753. [Google Scholar] [CrossRef]
- Niu, J.; Mao, C. Research on coordination mechanism between agricultural green and land ecosystem in Yellow River Basin. Sci. Rep. 2025, 15, 1934. [Google Scholar] [CrossRef] [PubMed]
- Wen, Q.; Fang, J.; Shi, L.; Wu, X.; Luo, A.; Ding, J. Performance evaluation of resource-based city transformation: A case study of energy-enriched areas in Shaanxi, Gansu, and Ningxia. J. Geogr. Sci. 2023, 33, 2321–2337. [Google Scholar] [CrossRef]
- Yue, X.; Shi, R.; Ma, J.; Li, H.; Ma, T.; Ma, J.; Liang, X.; Ma, C. Spatial Distribution and Pollution Source Analysis of Heavy Metals in Cultivated Soil in Ningxia. Agronomy 2025, 15, 2543. [Google Scholar] [CrossRef]
- Chen, L.; Ma, K. Spatial and temporal distribution and source analysis of heavy metals in agricultural soils of Ningxia, northwest of China. Sustainability 2023, 15, 15360. [Google Scholar] [CrossRef]
- Lyu, R.; Zhao, W.; Tian, X.; Zhang, J. Non-linearity impacts of landscape pattern on ecosystem services and their trade-offs: A case study in the City Belt along the Yellow River in Ningxia, China. Ecol. Indic. 2022, 136, 108608. [Google Scholar] [CrossRef]
- Wang, D.; Hao, H.; Liu, H.; Sun, L.; Li, Y. Spatial–temporal changes of landscape and habitat quality in typical ecologically fragile areas of western China over the past 40 years: A case study of the Ningxia Hui Autonomous Region. Ecol. Evol. 2024, 14, e10847. [Google Scholar] [CrossRef] [PubMed]
- GB 15618–2018; Soil Environmental Quality—Risk Control Standard for Soil Contamination of Agricultural Land. Ministry of Ecology and Environment: Beijing, China, 2018.
- Van Tran, M.; La, H.; Nguyen, T. Hybrid machine learning for predicting hydration heat in pipe-cooled mass concrete structures. Constr. Build. Mater. 2025, 481, 141558. [Google Scholar] [CrossRef]
- Zhu, Q.; Qiu, Y.; Chen, G.; Chen, W.; Zhang, X.; Qi, Z.; Duan, X.; Chen, D.; Song, Z. Rethinking the AI Paradigm for Solubility Prediction of Drug-Like Compounds with Dual-Perspective Modeling and Experimental Validation. Adv. Sci. 2025, 12, e11667. [Google Scholar] [CrossRef]
- Veeramsetty, V. Shapley value cooperative game theory-based locational marginal price computation for loss and emission reduction. Prot. Control Mod. Power Syst. 2021, 6, 33. [Google Scholar] [CrossRef]
- Yang, S.; Feng, W.; Wang, S.; Chen, L.; Zheng, X.; Li, X.; Zhou, D. Farmland heavy metals can migrate to deep soil at a regional scale: A case study on a wastewater-irrigated area in China. Environ. Pollut. 2021, 281, 116977. [Google Scholar] [CrossRef] [PubMed]
- Yao, S.; Jia, H.; Fan, F.; Zhao, N.; Kuang, Y.; Tang, X.; Huang, Q.; Wang, X. Assessing ozone formation impact through SHAP interaction redistribution analysis: A novel framework for evaluating VOC photochemical loss and source interactions. Environ. Impact Assess. Rev. 2025, 115, 108017. [Google Scholar] [CrossRef]
- Kumari, P.; Toshniwal, D. Extreme gradient boosting and deep neural network based ensemble learning approach to forecast hourly solar irradiance. J. Clean. Prod. 2021, 279, 123285. [Google Scholar] [CrossRef]
- Li, L.; Qiao, J.; Yu, G.; Wang, L.; Li, H.Y.; Liao, C.; Zhu, Z. Interpretable tree-based ensemble model for predicting beach water quality. Water Res. 2022, 211, 118078. [Google Scholar] [CrossRef] [PubMed]
- Choudhary, R.; Kumar, A.; C, P.; Naik, M.M.; Choudhury, M.; Khan, N.A. Predicting water quality index using stacked ensemble regression and SHAP based explainable artificial intelligence. Sci. Rep. 2025, 15, 31139. [Google Scholar] [CrossRef] [PubMed]
- Ranstam, J.; Cook, J.A. LASSO regression. Br. J. Surg. 2018, 105, 1348. [Google Scholar] [CrossRef]
- Zhan, Y.; Guo, Z.; Yan, B.; Chen, K.; Chang, Z.; Babovic, V.; Zheng, C. Physics-informed identification of PDEs with LASSO regression, examples of groundwater-related equations. J. Hydrol. 2024, 638, 131504. [Google Scholar] [CrossRef]
- Bifarin, O.O.; Fernández, F.M. Automated machine learning and explainable AI (AutoML-XAI) for metabolomics: Improving cancer diagnostics. J. Am. Soc. Mass Spectrom. 2024, 35, 1089–1100. [Google Scholar] [CrossRef] [PubMed]
- Deshsorn, K.; Payakkachon, K.; Chaisrithong, T.; Jitapunkul, K.; Lawtrakul, L.; Iamprasertkun, P. Unlocking the full potential of heteroatom-doped graphene-based supercapacitors through stacking models and SHAP-guided optimization. J. Chem. Inf. Model. 2023, 63, 5077–5088. [Google Scholar] [CrossRef] [PubMed]
- Nohara, Y.; Matsumoto, K.; Soejima, H.; Nakashima, N. Explanation of machine learning models using shapley additive explanation and application for real data in hospital. Comput. Methods Programs Biomed. 2022, 214, 106584. [Google Scholar] [CrossRef] [PubMed]
- Chen, H.; Covert, I.C.; Lundberg, S.M.; Lee, S.I. Algorithms to estimate Shapley value feature attributions. Nat. Mach. Intell. 2023, 5, 590–601. [Google Scholar] [CrossRef]
- Mouazen, A.M.; Nyarko, F.; Qaswar, M.; Tóth, G.; Gobin, A.; Moshou, D. Spatiotemporal prediction and mapping of heavy metals at regional scale using regression methods and Landsat 7. Remote Sens. 2021, 13, 4615. [Google Scholar] [CrossRef]
- Son, K.; Lin, L.; Band, L.; Owens, E.M. Modelling the interaction of climate, forest ecosystem, and hydrology to estimate catchment dissolved organic carbon export. Hydrol. Process. 2019, 33, 1448–1464. [Google Scholar] [CrossRef]
- Wu, J.; Yang, M.; Li, J.; Wang, G.; Zhu, G.; Yinglan, A.; Xue, B.; Gong, M.; Chen, R. Quantitative characterization of uncertainty in the source apportionment induced by the dual spatial heterogeneity of soil heavy metals. J. Hazard. Mater. 2025, 498, 139893. [Google Scholar] [CrossRef] [PubMed]
- Chen, S.; Gao, Y.; Wang, C.; Gu, H.; Sun, M.; Dang, Y.; Ai, S. Heavy metal pollution status, children health risk assessment and source apportionment in farmland soils in a typical polluted area, Northwest China. Stoch. Environ. Res. Risk Assess. 2024, 38, 2383–2395. [Google Scholar] [CrossRef]
- Qin, Z.; Peng, Q.; Jin, C.; Xu, J.; Xing, S.; Zhu, P.; Yang, G. Geographically weighted random forest fusing multi-source environmental covariates for spatial prediction of soil heavy metals. Environ. Pollut. 2025, 15, 127135. [Google Scholar] [CrossRef]
- Shi, T.; Ma, J.; Wu, X.; Ju, T.; Lin, X.; Zhang, Y.; Li, X.; Gong, Y.; Hou, H.; Zhao, L.; et al. Inventories of heavy metal inputs and outputs to and from agricultural soils: A review. Ecotoxicol. Environ. Saf. 2018, 164, 118–124. [Google Scholar] [CrossRef] [PubMed]
- Tholley, M.S.; George, L.Y.; Wang, G.; Ullah, S.; Qiao, Z.; Ling, S.; Wu, J.; Peng, C.; Zhang, W. Risk assessment and source apportionment of heavy metalloids from typical farmlands provinces in China. Process Saf. Environ. Prot. 2023, 171, 109–118. [Google Scholar] [CrossRef]
- Liu, T. Modeling the Impact of Human-Driven Fires on Air Quality from Regional and Global Perspectives. Doctoral Dissertation, Harvard University, Cambridge, MA, USA, 2022. [Google Scholar]
- Yao, C.; Yang, Y.; Li, C.; Shen, Z.; Li, J.; Mei, N.; Luo, C.; Wang, Y.; Zhang, C.; Wang, D. Heavy metal pollution in agricultural soils from surrounding industries with low emissions: Assessing contamination levels and sources. Sci. Total Environ. 2024, 917, 170610. [Google Scholar] [CrossRef] [PubMed]
- Rezapour, S.; Asadzadeh, F.; Heidari, M. Comparative assessment of soil health attributes between topsoil and subsoil influenced by long-term wastewater irrigation. Agric. Water Manag. 2024, 302, 109012. [Google Scholar] [CrossRef]
- T/CSES 162-2024; Technical Guidelines for Preparing Multi-Source Pollution Inventories of Site Soil. Chinese Society for Environmental Sciences: Beijing, China, 2024.
- Shi, G.; Sun, W.; Shangguan, W.; Wei, Z.; Yuan, H.; Li, L.; Sun, X.; Zhang, Y.; Liang, H.; Li, D.; et al. A China dataset of soil properties for land surface modeling (version 2). Earth Syst. Sci. Data 2025, 17, 517–543. [Google Scholar] [CrossRef]
- Bondarenko, M.; Priyatikanto, R.; Tejedor-Garavito, N.; Zhang, W.; McKeen, T.; Cunningham, A.; Woods, T.; Hilton, J.; Cihan, D.; Nosatiuk, B.; et al. Constrained Estimates of 2015–2030 Total Number of People per Grid Square at a Resolution of 3 arc (Approximately 100 m at the Equator) R2025A Version v1; Global Demographic Data Project—Funded by The Bill and Melinda Gates Foundation (INV-045237); WorldPop—School of Geography and Environmental Science, University of Southampton: Southampton, UK, 2025. [Google Scholar]
- Zhang, W.; Liu, Y.; Feng, K.; Hubacek, K.; Wang, J.; Liu, M.; Jiang, L.; Jiang, H.; Liu, N.; Zhang, P.; et al. Revealing environmental inequality hidden in China’s inter-regional trade. Environ. Sci. Technol. 2018, 52, 7171–7181. [Google Scholar] [CrossRef] [PubMed]
- Liu, X.; Chen, S.; Yan, X.; Liang, T.; Yang, X.; El-Naggar, A.; Liu, J.; Chen, H. Evaluation of potential ecological risks in potential toxic elements contaminated agricultural soils: Correlations between soil contamination and polymetallic mining activity. J. Environ. Manag. 2021, 300, 113679. [Google Scholar] [CrossRef]
- Farmer, D.K.; Boedicker, E.K.; DeBolt, H.M. Dry deposition of atmospheric aerosols: Approaches, observations, and mechanisms. Annu. Rev. Phys. Chem. 2021, 72, 375–397. [Google Scholar] [CrossRef] [PubMed]
- Salem, M.A.; Bedade, D.K.; Al-Ethawi, L.; Al-Waleed, S.M. Assessment of physiochemical properties and concentration of heavy metals in agricultural soils fertilized with chemical fertilizers. Heliyon 2020, 6, e05224. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Guo, G.; Zhang, D.; Lei, M. An integrated method for source apportionment of heavy metal(loid)s in agricultural soils and model uncertainty analysis. Environ. Pollut. 2021, 276, 116666. [Google Scholar] [CrossRef] [PubMed]
- Jain, N.; Maiti, A. Fe-Mn-Al metal oxides/oxyhydroxides as As (III) oxidant under visible light and adsorption of total arsenic in the groundwater environment. Sep. Purif. Technol. 2022, 302, 122170. [Google Scholar] [CrossRef]
- Melekhin, A.O.; Tolmacheva, V.V.; Goncharov, N.O.; Apyari, V.V.; Dmitrienko, S.G.; Shubina, E.G.; Grudev, A.I. Multi-class, multi-residue determination of 132 veterinary drugs in milk by magnetic solid-phase extraction based on magnetic hypercrosslinked polystyrene prior to their determination by high-performance liquid chromatography–tandem mass spectrometry. Food Chem. 2022, 387, 132866. [Google Scholar] [CrossRef] [PubMed]
- Senosy, I.A.; Guo, H.M.; Ouyang, M.N.; Lu, Z.H.; Yang, Z.H.; Li, J.H. Magnetic solid-phase extraction based on nano-zeolite imidazolate framework-8-functionalized magnetic graphene oxide for the quantification of residual fungicides in water, honey and fruit juices. Food Chem. 2020, 325, 126944. [Google Scholar] [CrossRef] [PubMed]
- Liu, Y.; Liu, G.; Wang, Z.; Guo, Y.; Yin, Y.; Zhang, X.; Cai, Y.; Jiang, G. Understanding foliar accumulation of atmospheric Hg in terrestrial vegetation: Progress and challenges. Crit. Rev. Environ. Sci. Technol. 2022, 52, 4331–4352. [Google Scholar]
- Bai, Z.; Wang, M. Warmer temperature increases mercury toxicity in a marine copepod. Ecotoxicol. Environ. Saf. 2020, 201, 110861. [Google Scholar] [CrossRef] [PubMed]
- Feinberg, A.; Dlamini, T.; Jiskra, M.; Shah, V.; Selin, N.E. Evaluating atmospheric mercury (Hg) uptake by vegetation in a chemistry-transport model. Environ. Sci. Process. Impacts 2022, 24, 1303–1318. [Google Scholar] [CrossRef] [PubMed]
- Zhang, S.; Xia, M.; Pan, Z.; Wang, J.; Yin, Y.; Lv, J.; Hu, L.; Shi, J.; Jiang, T.; Wang, D. Soil organic matter degradation and methylmercury dynamics in Hg-contaminated soils: Relationships and driving factors. J. Environ. Manag. 2024, 356, 120432. [Google Scholar] [CrossRef]
- Cui, X.; Mao, P.; Sun, S.; Huang, R.; Fan, Y.; Li, Y.; Li, Y.; Zhuang, P.; Li, Z. Phytoremediation of cadmium contaminated soils by Amaranthus hypochondriacus L.: The effects of soil properties highlighting cation exchange capacity. Chemosphere 2021, 283, 131067. [Google Scholar] [CrossRef] [PubMed]
- Huang, L.; Wang, Q.; Zhou, Q.; Ma, L.; Wu, Y.; Liu, Q.; Wang, S.; Feng, Y. Cadmium uptake from soil and transport by leafy vegetables: A meta-analysis. Environ. Pollut. 2020, 264, 114677. [Google Scholar] [CrossRef] [PubMed]
- Hu, X.; Qu, C.; Han, Y.; Chen, W.; Huang, Q. Elevated temperature altered the binding sequence of Cd with DOM in arable soils. Chemosphere 2022, 288, 132572. [Google Scholar] [CrossRef] [PubMed]
- Vasilachi, I.C.; Stoleru, V.; Gavrilescu, M. Analysis of heavy metal impacts on cereal crop growth and development in contaminated soils. Agriculture 2023, 13, 1983. [Google Scholar] [CrossRef]
- Zhang, W.; Zhang, T.; Yang, X. 1 km-resolution gridded dataset of phosphorus rate for rice wheat and maize in China over 2004–2016. Sci. Data 2023, 10, 363. [Google Scholar] [CrossRef] [PubMed]
- Das, S.K. Adsorption and desorption capacity of different metals influenced by biomass derived biochar. Environ. Syst. Res. 2024, 13, 5. [Google Scholar] [CrossRef]
- Yang, Y.; Chen, J.; Huang, Q.; Tang, S.; Wang, J.; Hu, P.; Shao, G. Can liming reduce cadmium (Cd) accumulation in rice (Oryza sativa) in slightly acidic soils? A contradictory dynamic equilibrium between Cd uptake capacity of roots and Cd immobilisation in soils. Chemosphere 2018, 193, 547–556. [Google Scholar] [CrossRef] [PubMed]
- Wei, B.; Yu, J.; Cao, Z.; Meng, M.; Yang, L.; Chen, Q. The availability and accumulation of heavy metals in greenhouse soils associated with intensive fertilizer application. Int. J. Environ. Res. Public Health 2020, 17, 5359. [Google Scholar] [CrossRef] [PubMed]
- Ao, M.; Deng, T.; Sun, S.; Li, M.; Li, J.; Liu, T.; Yan, B.; Liu, W.-S.; Wang, G.; Jing, D.; et al. Increasing soil Mn abundance promotes the dissolution and oxidation of Cr (III) and increases the accumulation of Cr in rice grains. Environ. Int. 2023, 175, 107939. [Google Scholar] [CrossRef] [PubMed]
- Li, S.; Hou, Q.; Yang, Z.; Yu, T. The spatial distribution pattern and influencing factors of Chromium (Cr) in topsoil of eastern and central China. J. Hazard. Mater. 2025, 495, 138925. [Google Scholar] [CrossRef] [PubMed]
- Cui, H.; Zhao, Y.; Hu, K.; Xia, R.; Zhou, J.; Zhou, J. Impacts of atmospheric deposition on the heavy metal mobilization and bioavailability in soils amended by lime. Sci. Total Environ. 2024, 914, 170082. [Google Scholar] [CrossRef] [PubMed]












| Classification | Variable | Code in LASSO-Stacking |
|---|---|---|
| Soil property | Available potassium | AK |
| Alkali-hydrolysable nitrogen | AN | |
| Available phosphorus | AP | |
| Bulk density | BD | |
| Cation exchange capacity | CEC | |
| Clay content | Clay | |
| DRY color-RGB | Dry color red, Dry_R Dry color green, Dry_G Dry color blue, Dry_B | |
| DRY color-HCV | Dry color hue, Dry_H Dry color chroma, Dry_C Dry color value, Dry_V | |
| Soil organic carbon | OC | |
| pH | pH | |
| Natural and meteorological conditions | Normalized Difference Vegetation Index | NDVI |
| Temperature | Mean air temperature, T_ave Maximum air temperature, T_max Minimum air temperature, T_min | |
| Precipitation | PREC | |
| Wind Speed | WS | |
| Spatial and topographical factors | Spatial location | LON (longitude) and LAT (latitude) |
| Slope aspect | SA_sin and SA_cos | |
| Hill shade | Hillshade | |
| Curvature | CUR | |
| Topographic Wetness Index | TWI | |
| Industrial-source fine particulate matter (PM2.5) emission in an emission inventory grid | INPM25 | |
| Cumulative wastewater irrigation of industrial enterprises within a 5 km radius | WI | |
| Road traffic-source PM2.5 emission in an emission inventory grid | TRPM25 | |
| Population density | POP | |
| Cropping intensity | CI |
| Model/Heavy Metal(loid)s | As | Hg | Cd | Cr | Pb |
|---|---|---|---|---|---|
| RF | R2 = 0.258 RMSE = 1.839 | R2 = 0.270 RMSE = 0.015 | R2 = 0.079 RMSE = 0.076 | R2 = 0.367 RMSE = 12.406 | R2 = 0.068 RMSE = 4.542 |
| XGBoost | R2 = 0.217 RMSE = 1.889 | R2 = 0.239 RMSE = 0.016 | R2 = 0.043 RMSE = 0.077 | R2 = 0.339 RMSE = 12.677 | R2 = 0.033 RMSE = 4.625 |
| ET | R2 = 0.284 RMSE = 1.807 | R2 = 0.348 RMSE = 0.015 | R2 = 0.089 RMSE = 0.076 | R2 = 0.424 RMSE = 11.826 | R2 = 0.058 RMSE = 4.565 |
| LightGBM | R2 = 0.236 RMSE = 1.867 | R2 = 0.280 RMSE = 0.015 | R2 = −0.045 RMSE = 0.081 | R2 = 0.304 RMSE = 13.000 | R2 = −0.012 RMSE = 4.732 |
| LASSO-stacking | R2 = 0.291 RMSE = 1.803 | R2 = −0.015 RMSE = 0.018 | R2 = −0.002 RMSE = 0.079 | R2 = 0.432 RMSE = 11.848 | R2 = 0.041 RMSE = 4.607 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yue, X.; Li, B.; Zhang, N.; Ma, J.; Shi, R.; Guan, Y.; Ma, T.; Li, H.; Ma, J.; Liang, X.; et al. Identifying Key Drivers of Heavy Metal(loid)s Contamination in Farmland Soils Using Machine Learning with Source-Integrated Features. Land 2026, 15, 1304. https://doi.org/10.3390/land15071304
Yue X, Li B, Zhang N, Ma J, Shi R, Guan Y, Ma T, Li H, Ma J, Liang X, et al. Identifying Key Drivers of Heavy Metal(loid)s Contamination in Farmland Soils Using Machine Learning with Source-Integrated Features. Land. 2026; 15(7):1304. https://doi.org/10.3390/land15071304
Chicago/Turabian StyleYue, Xiang, Bin Li, Nannan Zhang, Jianjun Ma, Rongguang Shi, Yang Guan, Tiantian Ma, Hong Li, Junhua Ma, Xiangyu Liang, and et al. 2026. "Identifying Key Drivers of Heavy Metal(loid)s Contamination in Farmland Soils Using Machine Learning with Source-Integrated Features" Land 15, no. 7: 1304. https://doi.org/10.3390/land15071304
APA StyleYue, X., Li, B., Zhang, N., Ma, J., Shi, R., Guan, Y., Ma, T., Li, H., Ma, J., Liang, X., & Ma, C. (2026). Identifying Key Drivers of Heavy Metal(loid)s Contamination in Farmland Soils Using Machine Learning with Source-Integrated Features. Land, 15(7), 1304. https://doi.org/10.3390/land15071304

