Data-driven insights into groundwater quality: machine and deep learning approaches
DOI:
https://doi.org/10.22581/muet1982.0317Keywords:
Hydrogeochemistry, Groundwater contamination, Machine learning, Deep Learning , Water Resource ManagementAbstract
Arsenic and nitrate contamination of groundwater have been major causes of concern to both the environment and the health of the people, which are significant risks to drinking water quality. In this study, machine learning (ML) and deep learning (DL) models are applied to predict groundwater contamination trends in different parts of India. Mapping a five-year time series historical dataset (2016–2021) of important physicochemical parameters such as conductivity, pH, BOD, fluoride, arsenic, and nitrate, this paper compares some machine learning and deep learning models. Feature importance revealed BOD, total dissolved solids (TDS), and conductivity to be important predictors of arsenic contamination, while agricultural and industrial activities dictate nitrate contamination. Temporal analysis for the variability of arsenic levels revealed decreasing values post-year 2019, which may be due to dilution effects and regulatory measures, while nitrate contamination fluctuated region-wise. After hyperparameter tuning, XGBoost was the most predictive (R² = 0.70), outperforming traditional regression analysis. Partial Dependence Plots (PDP) also caught detailed non-linear relationships among water quality parameters. The findings indicate the potential of predictive models based on AI in groundwater monitoring in real-time to enable better mitigation of contamination. This study contributes to the offering of reliable AI-based systems of monitoring the groundwater in real-life cases and sustainable resource management planning.
Downloads
References
R. F. Spalding and M. E. Exner, "Occurrence of nitrate in groundwater—a review," Journal of Environmental Quality, vol. 22, no. 3, pp. 392–402, Jul. 1993. doi: 10.2134/jeq1993.00472425002200030002x
E. Abascal, L. Gómez-Coma, I. Ortiz, and A. Ortiz, “Global diagnosis of nitrate pollution in groundwater and review of removal technologies,” Sci. Total Environ., vol. 810, p. 152233, 2022, doi: 10.1016/j.scitotenv.2021.152233
Qifa Sun, Ke Yang, Tao Liu, Junbo Yu, Chunhai Li, Dexian Yang, Chen Hu, Lin Guo; Health risk assessment of nitrate pollution of drinking groundwater in rural areas of Suihua, China. J Water Health 1 September 2023; 21 (9): 1193–1208. doi: 10.2166/wh.2023.069
M. H. Ward et al., "Drinking water nitrate and human health: an updated review," Int. J. Environ. Res. Public Health, vol. 15, no. 7, p. 1557, 2018.
J. Li et al., "Nitrate attenuation with rising groundwater levels: An integrated assessment using isotope tracers and microbial signatures," J. Hydrol., vol. 624, p. 129911, 2023.
Cao, Xu, et al. "Impacts of anthropogenic groundwater recharge (AGR) on nitrate dynamics in a phreatic aquifer revealed by hydrochemical and isotopic technologies." Science of The Total Environment 839 (2022): 156187.
E. Shaji, K. V. Santosh, G. Sarath, S. Prakash, P. L. Smedley, and D. G. Kinniburgh, "Arsenic contamination of groundwater: A global synopsis with focus on the Indian Peninsula," Geoscience Frontiers, vol. 12, no. 3, p. 101079, May 2021. doi: 10.1016/j.gsf.2020.08.015
P. L. Smedley and D. G. Kinniburgh, "A review of the source, behaviour and distribution of arsenic in natural waters," Appl. Geochem., vol. 17, no. 5, pp. 517–568, 2002.
Ali, Hazrat, Khan, Ezzat, Ilahi, Ikram, Environmental Chemistry and Ecotoxicology of Hazardous Heavy Metals: Environmental Persistence, Toxicity, and Bioaccumulation, Journal of Chemistry, 2019, 6730305, 14 pages, 2019.
I. A. Shiklomanov and J. C. Rodda, Eds., World Water Resources at the Beginning of the Twenty-First Century. Cambridge: Cambridge Univ. Press, 2003.
Smith AH, Lingas EO, Rahman M. Contamination of drinking-water by arsenic in Bangladesh: a public health emergency. Bull World Health Organ. 2000;78(9):1093-103. PMID: 11019458; PMCID: PMC2560840.
S. M. Lundberg and S.-I. Lee, "A unified approach to interpreting model predictions," Adv. Neural Inf. Process. Syst., vol. 30, 2017.
ahmed, n., osman, i.a., et al. (2021). Prediction of groundwater quality indices using machine learning algorithms. water practice and technology, 17(1), 336-347. doi:10.2166/wpt.2021.001.
aldosari, a., alshammari, m., et al. (2024). Machine learning predictive insight of water pollution and groundwater quality indices in the eastern province of Saudi Arabia. scientific reports, 14(1), 70610. doi:10.1038/s41598-024-70610-4.
H. El Bilali, M. S. Rezk, A. J. Khan, and S. R. Jahan, "Machine learning-based ensemble model for groundwater quality prediction using hidden Markov models and artificial neural networks," Water Practice and Technology, vol. 19, no. 6, pp. 2364–2376, 2023. doi: 10.2166/wpt.2023.004
gholami, z., et al. (2020). machine learning approaches for water quality assessment: a review. journal of environmental management, 261, 110226.
li, x., et al. (2023). gated graph neural networks for water quality prediction in distribution networks: a real-world application study. water research, 215, 118216.
Duda, Robert, Robert Zdechlik, and Jarosław Kania. "Groundwater nitrate pollution risk assessment based on the potential impact of land use, nitrogen balance, and vulnerability." Environmental Science and Pollution Research 30.58 (2023): 122508-122523.
R. K. Makumbura, L. Mampitiya, N. Rathnayake, D. P. P. Meddage, S. Henna, T. L. Dang, Y. Hoshino, and U. Rathnayake, "Advancing water quality assessment and prediction using machine learning models, coupled with explainable artificial intelligence (XAI) techniques like Shapley additive explanations (SHAP) for interpreting the black-box nature," Results in Engineering, vol. 23, p. 102831, 2024, doi: 10.1016/j.rineng.2024.102831.
M. Paul, A. Kumar, H. Kumar, V. Amutha Mary, S. Jancy and J. Grace, "Groundwater Quality Prediction using Deep Learning," 2024 International Conference on Expert Clouds and Applications (ICOECA), Bengaluru, India, 2024, pp. 917-923, doi: 10.1109/ICOECA62351.2024.00162.
S. Fakhreddine, H. Prommer, B. R. Scanlon, S. C. Ying, and J.-P. Nicot, "Mobilization of arsenic and other naturally occurring contaminants during managed aquifer recharge: A critical review," Environmental Science & Technology, vol. 55, no. 4, pp. 2208–2223, 2021, doi: 10.1021/acs.est.0c07492.
T. Chatterjee, U. R. Gogoi, A. Samanta, A. Chatterjee, M. K. Singh, and S. Pasupuleti, "Identifying the most discriminative parameter for water quality prediction using machine learning algorithms," Water, vol. 16, p. 481, 2024, doi: 10.3390/w16030481.
F. Alshehri and A. Rahman, "Coupling machine and deep learning with explainable artificial intelligence for improving prediction of groundwater quality and decision-making in arid region, Saudi Arabia," Water, vol. 15, p. 2298, 2023, doi: 10.3390/w15122298.
Z. Tan, A. S. S. M. Hossain, M. M. Rahman, S. K. Saha, and S. M. S. Islam, "Machine learning models of groundwater arsenic spatial distribution in Bangladesh: Influence of Holocene sediment depositional history," Environ. Sci. Technol., vol. 54, no. 15, pp. 9454–9463, 2020, doi: 10.1021/acs.est.0c03617.
S. Maleky, M. Faraji, M. Hashemi et al., "Investigation of groundwater quality indices and health risk assessment of water resources of Jiroft city, Iran, by machine learning algorithms," Applied Water Science, vol. 15, no. 3, p. 3, 2025, doi: 10.1007/s13201-024-02330-z.
Published
Issue
Section
License
Copyright (c) 2025 Mehran University Research Journal of Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
How to Cite
Similar Articles
- Amina Shaikh, Imran Khan Keerio, Mutiullah Shaikh, Asadullah Shah, Enhanced Real-Time Face Detection in Challenging Environments: Leveraging YOLOv8 for Partially Occluded and Low-Light Conditions , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Yang Haoxuan, Faizan Qamar, Syed Hussain Ali Kazmi, Khairul Akram Zainol Ariffin, Kashif Nisar, Hybrid Model for Data-Driven Channel Estimation in mmWave Massive MIMO Systems with Compressed Sensing and Deep Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Usman Niaz, M S Aziz, Ayesha Jamil, Zeeshan Khan, Retna Apsari, Farrah Dilla Zainol, Sustainable Photocatalytic Removal of Diclofenac from Aquatic Environments Using CdS Nanorods: Synthesis, Structural Characterization, and Performance Evaluation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Naadiya Mirbahar , Kamlesh Kumar, Asif Ali Laghari , Mansoor Ahmed Khuhro , Crowdsourced data leaking user's privacy while using anonymization technique , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Usman Niaz, Ayesha Jamil, Muhammad Safwan Aziz, Retna Apsari, Combatting emerging water contaminants: comparative photocatalytic degradation of pharmaceuticals using CeO2/CdS nanorods under UV irradiation , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Lal Chand Marwari, Aneel Kumar, Zaheer Ahmad Almani, Liquefaction Hazard Assessment with Integrated Deterministic and Performance-Based Approach for Coastal Megacities: A Case Study of Karachi, Pakistan , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
- Zahid Hussain Khaskheli , Qasim Ali, M Shehram Shah , Din Muhammad , Farast Ali, Hina Ali, Maria Khalid, Zoha Waheed, Umer Gaffar, Improving Human Action Recognition Through Cross-View Camera-Aware Augmentation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Shahzor Memon, Imtiaz Hussain, Lubna Moin , Fault analysis of railway track superstructure using time-frequency method from vibrational data , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Sabahat Hussan , Shan Ul Haq, Muhammad Safi Ullah, Jamal Ahmed Khan, Atif Bilal , Laboratory Study on the Optimization of Asphalt Mixing Protocols , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Abdul Ghani Ansari, Fareed Ahmed Jokhio, Muhammad Shehram Shah Syed, Hina Dharejo, Fayaz Ahmed Memon , Machine Learning-Driven Approach for DDOS Attacks Detection using Neural-Based Networks: A Proficiency Study , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
You may also start an advanced similarity search for this article.