A Comparative Analysis of Groundwater Quality and ItsPrediction Using ‎Machine Learning Techniques

  • Authors

    • B Vamsi Department of Civil Engineering, Lingayas Institute of Management and Technology, Madalavarigudem, ‎Vijayawada-521212, India
    • B Chandra Sekhar Department of Chemical Engineering, RGUKT RK Valley, Iddupulapaya, Vempalli, YSR Kadapa-516330, ‎India
    • B. Praveen Kumar Research Scholar, Department of Geology, Andhra University-530003, Andhra Pradesh, India
    • G Rajling Arc Infra, Civil Engineering Consultant, Vijayawada, Andhra Pradesh 520008, India
    • K Satya Gayathri Department of Computer Science and Engineering, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • N. Mahendra Department of Computer Science and Engineering, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • O Sudha Department of Computer Science and Engineering, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • K Bobby Department of Artificial Intelligence and Machine Learning, Lingayas Institute of Management and ‎Technology, Madalavarigudem, Vijayawada-521212, India
    • P. V. S. S. Manikanta Suhas Department of Computer Science and Engineering, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • K Surya Prakash Department of Artificial Intelligence and Data Science, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • Ch. Srinivas Department of Computer Science and Engineering, Lingayas Institute of Management and Technology, ‎Madalavarigudem, Vijayawada-521212, India
    • M. ‎Gopi Kiran Department of Civil Engineering, Lingayas Institute of Management and Technology, Madalavarigudem, ‎Vijayawada-521212, India
    https://doi.org/10.14419/hs5ywd96

    Received date: November 13, 2025

    Accepted date: January 29, 2026

    Published date: February 10, 2026

  • Use about five keywords or phrases in alphabetical order, separated by a semicolon
  • Abstract

    Groundwater is a key water source; even small variations in its quality may result in ‎detrimental impacts, necessitating its regular monitoring for effective water management. This study emphasized monitoring and assessing groundwater from Mudirajupalem, Madalvarigudem, and the Lingayas Institute of Management and Technology, Vijayawada campus, Andhra Pradesh, India. The groundwater was analyzed for quantifying acidity, ‎alkalinity, pH, total dissolved solids (TDS), and total hardness according to standard methods. ‎All the groundwater sources showed high alkalinity values, whereas Mudirajupalem ‎groundwater exhibited high TDS (962±20 mg/L) and pH (9.2±0.3) values due to proximity to ‎farming fields. The obtained water quality index (WQI) values (358.34±15.2, 59.29±4.8, and ‎‎20.32±3.1 for the three sites, respectively) indicate that Mudirajupalem groundwater is unfit ‎for public intake. This study demonstrated promising results in forecasting water quality ‎parameters using a hierarchical reconciliation algorithm and predicted the WQI using gradient ‎boosted tree (GBT), random forest (RF), and decision tree (DT) techniques. The predicted ‎WQI values closely matched the experimental results, confirming that Mudirajupalem ‎groundwater is not fit for drinking. The GBT demonstrated superior performance (R²=0.95-‎‎0.98) compared with RF (R²=0.89-0.93) and DT (R²=0.84-0.87) for the selected study area ‎, and this study demonstrates that the application of advanced machine learning enables a proactive ‎approach for better water quality management to address the future water needs‎.

  • References

    1. S. Vivek, R. Umamaheswari, P. Subashree, S. Rajakumar, P. Mukesh, P. V., S. V., L. N., G. G. Prabhu, Study on groundwater pollution and its human impact analysis using geospatial techniques in semi-urban South India, Environmental Research, 240, (2024), 117532. https://doi.org/10.1016/j.envres.2023.117532.
    2. Central Ground Water Board, Groundwater reports and assessments, 2008.
    3. S. S. Anchan, H. C. Shiva Prasad, Feasibility of rooftop rainwater harvesting potential—A case study of South Indian university, Cleaner Engi-neering and Technology, 4, (2021), 100206. https://doi.org/10.1016/j.clet.2021.100206.
    4. E. Murugesan, S. Shanmugamoorthy, S. Veerasamy, S. Velusamy, Groundwater hydrochemistry and its appropriateness for consumption and irriga-tion: Geographic and temporal variation: An integrated approach, Urban Climate, 49, (2023), 101482. https://doi.org/10.1016/j.uclim.2023.101482.
    5. T. Gleeson, T. Cuthbert, G. Ferguson, D. Perrone, Global groundwater sustainability, resources, and systems in the Anthropocene, Annual Review of Earth and Planetary Sciences, 48, (2020), 431–463. https://doi.org/10.1146/annurev-earth-071719-055251.
    6. H. Kaur, P. Garg, Urban sustainability assessment tools: A review, Journal of Cleaner Production, 210, (2019), 146–158. https://doi.org/10.1146/annurev-earth-071719-055251.
    7. O. F. Bulut, B. Duru, Ö. Çakmak, Ö. Günhan, F. B. Dilek, U. Yetis, Determination of groundwater threshold values: A methodological approach, Journal of Cleaner Production, 253, (2020), 120001. https://doi.org/10.1016/j.jclepro.2020.120001.
    8. J. Liu, Y. Peng, C. Li, Z. Gao, S. Chen, An investigation into the hydrochemistry, quality, and risk to human health of groundwater in the central region of Shandong Province, North China, Journal of Cleaner Production, 282, (2021), 125416. https://doi.org/10.1016/j.jclepro.2020.125416.
    9. H. Ibrahim, Z. M. Yaseen, M. Scholz, M. Ali, M. Gad, S. Elsayed, M. Khadr, H. Hussein, H. H. Ibrahim, M. Eid, A. Kovacs, S. Peter, M. Khalifa, Evaluation and prediction of groundwater quality for irrigation using integrated water quality indices, machine learning models, and GIS approach-es: A representative case study, Water, 15, 4, (2023), 1–20. https://doi.org/10.3390/w15040694.
    10. M. G. Uddin, M. T. M. Diganta, A. M. Sajib, M. A. Hasan, M. Moniruzzaman, A. Rahman, A. I. Olbert, Assessment of hydrogeochemistry in groundwater using water quality index model and indices approaches, Heliyon, 9, 9, (2023), e19668. https://doi.org/10.1016/j.heliyon.2023.e19668.
    11. S. H. Mohammed, Y. G. Flores, D. A. M. Al-Manmi, V. Mikita, P. Szűcs, Assessment of groundwater level fluctuation using integrated trend anal-ysis approaches in the Kapran sub-basin, North East Iraq, Groundwater for Sustainable Development, 26, (2024), 101292. https://doi.org/10.1016/j.gsd.2024.101292.
    12. Y. Fang, T. Zheng, X. Zheng, H. Peng, H. Wang, J. Xin, B. Zhang, Assessment of the hydrodynamics role for groundwater quality using integra-tion of GIS, water quality index, and multivariate statistical techniques, Journal of Environmental Management, 273, (2020), 111185. https://doi.org/10.1016/j.jenvman.2020.111185.
    13. Y. Gao, H. Qian, W. Ren, H. Wang, F. Liu, F. Yang, Hydrogeochemical characterization and quality assessment of groundwater based on integrat-ed-weight water quality index in a concentrated urban area, Journal of Cleaner Production, 260, (2020), 121006. https://doi.org/10.1016/j.jclepro.2020.121006.
    14. M. S. U. Hasan, A. K. Rai, Groundwater quality assessment in the Lower Ganga Basin using entropy information theory and GIS, Journal of Cleaner Production, 274, (2020), 123077. https://doi.org/10.1016/j.jclepro.2020.123077.
    15. J. O. Oladipo, A. S. Akinwumiju, O. S. Aboyeji, A. A. Adelodun, Comparison between fuzzy logic and water quality index methods: A case of water quality assessment in Ikare community, Southwestern Nigeria, Environmental Challenges, 3, (2021), 100038. https://doi.org/10.1016/j.envc.2021.100038.
    16. J. Liu, Y. Peng, C. Li, Z. Gao, S. Chen, Characterization of the hydrochemistry of water resources of the Weibei Plain, Northern China, as well as an assessment of the risk of high groundwater nitrate levels to human health, Environmental Pollution, 268, (2021), 115947. https://doi.org/10.1016/j.envpol.2020.115947.
    17. E. A. Hussein, C. Thron, M. Ghaziasgar, A. Bagula, M. Vaccari, Groundwater prediction using machine-learning tools, Algorithms, 13, 11, (2020), 300. https://doi.org/10.3390/a13110300.
    18. J. N. Apogba, G. K. Anornu, A. B. Koon, B. W. Dekongmen, E. D. Sunkari, O. F. Fynn, P. Kpiebaya, Application of machine learning techniques to predict groundwater quality in the Nabogo Basin, Northern Ghana, Heliyon, 10, 7, (2024), e28527. https://doi.org/10.1016/j.heliyon.2024.e28527.
    19. M. Abu, R. Musah, M. S. Zango, A combination of multivariate statistics and machine learning techniques in groundwater characterization and quality forecasting, Geosystems and Geoenvironment, 3, 2, (2024), 100261. https://doi.org/10.1016/j.geogeo.2024.100261.
    20. A. D. Eaton, Standard methods for the examination of water and wastewater, 21st ed., APHA–AWWA–WEF, 2005.
    21. Bureau of Indian Standards, Indian standard drinking water: Specification IS 10500-2012, 2012.
    22. R. M. Brown, N. I. McClelland, R. A. Deininger, R. G. Tozer, A water quality index: Do we dare?, Water and Sewage Works, 117, 10, (1972), 339–343.
    23. A. S. Eesa, Z. Orman, A. M. A. Brifcani, A novel feature-selection approach based on the cuttlefish optimization algorithm for intrusion detection systems, Expert Systems with Applications, 42, 5, (2015), 2670–2679. https://doi.org/10.1016/j.eswa.2014.11.009.
    24. F. J. Yang, An extended idea about decision trees, 2019 International Conference on Computational Science and Computational Intelligence, (2019), 349–354. https://doi.org/10.1109/CSCI49370.2019.00068.
    25. J. Liang, Z. Qin, S. Xiao, L. Ou, X. Lin, Efficient and secure decision tree classification for cloud-assisted online diagnosis services, IEEE Transac-tions on Dependable and Secure Computing, 18, 4, (2021), 1632–1644. https://doi.org/10.1109/TDSC.2019.2922958.
    26. S. Kiran, G. R. Reddy, S. P. Girija, S. Venkatramulu, D. Kumar, V. Chandra Shekhar Rao, A gradient boosted decision tree with binary spotted hyena optimizer for cardiovascular disease detection and classification, Healthcare Analytics, 3, (2023), 100173. https://doi.org/10.1016/j.health.2023.100173.
    27. T. Hastie, R. Tibshirani, J. Friedman, The elements of statistical learning: Data mining, inference, and prediction, 2nd ed., Springer, 2009. https://doi.org/10.1007/978-0-387-84858-7.
    28. R. Kohavi, A study of cross-validation and bootstrap for accuracy estimation and model selection, Proceedings of the 14th International Joint Con-ference on Artificial Intelligence, 14, 2, (1995), 1137–1145.
    29. C. Bergmeir, J. M. Benítez, On the use of cross-validation for time series predictor evaluation, Information Sciences, 191, (2012), 192–213. https://doi.org/10.1016/j.ins.2011.12.028.
    30. R. J. Hyndman, G. Athanasopoulos, Forecasting: Principles and practice, 3rd ed., 2021.
    31. S. V. Sarath Prasanth, N. S. Magesh, K. V. Jitheshlal, N. Chandrasekar, K. Gangadhar, Evaluation of groundwater quality and its suitability for drinking and agricultural use in the coastal stretch of Alappuzha District, Kerala, India, Applied Water Science, 2, 3, (2012), 165–175. https://doi.org/10.1007/s13201-012-0042-5.
    32. R. E. Lamare, O. P. Singh, Application of CCME water quality index in evaluating the water quality status in limestone mining area of Meghalaya, India, The Ecoscan, 10, 1–2, (2016), 149–154.
    33. W.-N. Wang, A.-L. Wang, L. Chen, Y. Liu, R.-Y. Sun, Effects of pH on survival, phosphorus concentration, adenylate energy charge and Na+, K+-ATPase activities of Penaeus chinensis Osbeck juveniles, Aquatic Toxicology, 60, 1–2, (2002), 75–83. https://doi.org/10.1016/S0166-445X(01)00271-5.
    34. S. O. Fakayode, Impact assessment of industrial effluent on water quality of the receiving Alaro River in Ibadan, Nigeria, Aqua International Jour-nal of Environmental Studies, 62, 1, (2005), 37–48.
    35. N. Khatri, S. Tyagi, D. Rawtani, M. Tharmavaram, R. D. Kamboj, Analysis and assessment of groundwater quality in Satlasana Taluka, Mehsana District, Gujarat, India through application of water quality indices, Groundwater for Sustainable Development, 10, (2020), 100321. https://doi.org/10.1016/j.gsd.2019.100321.
    36. W. J. Weber Jr., W. Stumm, Mechanism of hydrogen ion buffering in natural waters, Journal of the American Water Works Association, 55, 12, (1963), 1553–1578. https://doi.org/10.1002/j.1551-8833.1963.tb01178.x.
    37. G. Matthess, The properties of groundwater, Wiley, 1982.
    38. T. Subramani, L. Elango, S. R. Damodarasamy, Groundwater quality and its suitability for drinking and agricultural use in Chithar River Basin, Tamil Nadu, India, Environmental Geology, 47, 8, (2005), 1099–1110. https://doi.org/10.1007/s00254-005-1243-0.
    39. The American Well Owner, Groundwater resources and management, 2003.
    40. A. S. Murugan, C. B. Prabaharan, Fish diversity in relation to physico-chemical characteristics of Kamala Basin of Darbhanga District, Bihar, India, International Journal of Pharmaceutical and Biological Archives, 3, 1, (2012), 211–217.
    41. C. N. Sawyer, Chemistry for sanitary engineers, 2nd ed., McGraw-Hill, 1967.
    42. M. Ramesh, E. Dharmaraj, B. J. Raj, Physico-chemical characteristics of ground water of Manachanallur Block Trichy, Tamilnadu, India, Advances in Applied Science Research, 3, 3, (2012), 1709–1713.
    43. World Health Organization, Guidelines for drinking-water quality, 3rd ed., 2004.
    44. J. N. Marfo, J. A. Quaye-Ballard, S. O. Kwakye, K. Obeng, A. Arko-Adjei, N. L. Quaye-Ballard, R. N. A. Quao, Groundwater quality and poten-tial analysis using geospatial techniques: The case of Ashanti Region in Ghana, Heliyon, 10, 6, (2024), e27545. https://doi.org/10.1016/j.heliyon.2024.e27545.
    45. P. R. Kumar, S. S. Gowd, C. Krupavathi, Groundwater quality evaluation using water quality index and geospatial techniques in parts of Anantapur District, Andhra Pradesh, South India, HydroResearch, 7, (2024), 86–98. https://doi.org/10.1016/j.hydres.2024.01.001.
    46. C. Ramakrishna, D. M. Rao, K. S. Rao, N. Srinivas, Studies on groundwater quality in slums of Visakhapatnam, Andhra Pradesh, Asian Journal of Chemistry, 21, 6, (2009), 4246–4250.
    47. B. Vamsi, B. Chandra Sekhar, V. Vakdevi, M. Rohit, M. Ibrahim, P. Uday Kiran, Ch. Srinivas, M. Gopi Kiran, Groundwater quality analysis and water quality index prediction by means of machine learning methods, SPC Journal of Environmental Sciences, 7, 1, (2025), 1–8. https://doi.org/10.14419/wkcxnn03.
    48. X. Wang, F. Zhang, J. Ding, Evaluation of water quality based on a machine learning algorithm and water quality index for the Ebinur Lake Water-shed, China, Scientific Reports, 7, 1, (2017), 12853. https://doi.org/10.1038/s41598-017-12853-y.
    49. B. F. Sami, S. D. Latif, A. N. Ahmed, M. F. Chow, M. A. Murti, A. Suhendi, B. H. Ziyad Sami, J. K. Wong, A. H. Birima, A. El-Shafie, Machine learning algorithm as a sustainable tool for dissolved oxygen prediction: A case study of Feitsui Reservoir, Taiwan, Scientific Reports, 12, 1, (2022), 6969. https://doi.org/10.1038/s41598-022-06969-z.
    50. J. L. Ubah, L. C. Orakwe, K. N. Ogbu, J. L. Awu, I. E. Ahaneku, E. C. Chukwuma, Forecasting water quality parameters using artificial neural networks for irrigation purposes, Scientific Reports, 11, 1, (2021), 24438. https://doi.org/10.1038/s41598-021-04062-5.
  • Downloads

  • How to Cite

    Vamsi, B. ., Sekhar, B. C. ., Kumar , B. P. ., Rajling, G. ., Gayathri, K. S. ., Mahendra, N. ., Sudha, O. ., Bobby, K. ., Suhas, P. V. S. S. M. ., Prakash, K. S. ., Srinivas , C. ., & Kiran , M. ‎Gopi . (2026). A Comparative Analysis of Groundwater Quality and ItsPrediction Using ‎Machine Learning Techniques. SPC Journal of Environmental Sciences, 8(1), 1-10. https://doi.org/10.14419/hs5ywd96