Evaluation and Prediction of Key Parameters of Water Quality by Machine Learning in the Coastal Area, Southern Iran
Received: 12 February 2026; Revised: 22 May 2026; Accepted: 10 June 2026; Published:25 June 2026
Abstract
Groundwater is the most reliable source of freshwater in arid and semi-arid regions, where surface water resources are scarce and highly variable. Its role in agriculture, drinking water supply, and ecosystem stability highlights the importance of reliable quality assessment. However, traditional monitoring approaches are often costly, labor-intensive, and spatially limited. Machine learning (ML) techniques offer promising alternatives for accurately predicting groundwater quality using a reduced set of hydrochemical parameters. This study evaluated the application of ML algorithms integrated with the Water Quality Index (WQI) framework to predict groundwater quality in the Minab Plain, Hormozgan Province, Iran. Groundwater samples were collected from 15 wells between 2010 and 2023 and analysed for six physicochemical indicators. Correlation analysis was performed to identify the most influential parameters, followed by the application of Decision Tree (DT), k-Nearest Neighbor (KNN), Support Vector Machine (SVM), and Random Forest (RF) models to forecast WQI under variable input scenarios. WQI values ranged from 29.74 to 107.2, with 95.6% of samples classified as “Good” and 4.3% as “Excellent.” pH showed the strongest correlation with WQI (R2 = 0.98), while Na and total dissolved solids (TDS) exhibited the weakest associations. Among the tested models, DT achieved the highest classification accuracy within this dataset; however, the results should be interpreted as case-study-specific rather than universally generalizable. The findings demonstrate that ML-based WQI modeling provides a robust, potentially cost-effective approach for groundwater quality prediction, supporting sustainable water management in arid and semi-arid regions.
Keywords
References
- 1. Yang, Y.; Yuan, Y.; Xiong, G.; et al. Patterns of Nitrate Load Variability under Surface Water-Groundwater Interactions in Agriculturally Intensive Valley Watersheds. Water Res. 2024, 267, 122474. DOI: https://doi.org/10.1016/J.WATRES.2024.122474
- 2. Foster, S.S.D.; Chilton, P.J. Downstream of Downtown: Urban Wastewater as Groundwater Recharge. Hydrogeol. J. 2004, 12, 115–120. DOI: https://doi.org/10.1007/s10040-003-0296-y
- 3. Jasechko, S.; Seybold, H.; Perrone, D.; et al. Rapid Groundwater Decline and Some Cases of Recovery in Aquifers Globally. Nature 2024, 625, 715–721. DOI: https://doi.org/10.1038/s41586-023-06879-8
- 4. Ravindiran, G.; Rajamanickam, S.; Sivarethinamohan, S.; et al. A Review of the Status, Effects, Prevention, and Remediation of Groundwater Contamination for Sustainable Environment. Water. 2023, 15, 3662. DOI: https://doi.org/10.3390/w15203662
- 5. Nadjai, S.; Bouderbala, A.; Khammar, H.; et al. Assessment of Groundwater Suitability for Drinking and Irrigation Purposes in the Middle Cheliff Aquifer, Algeria. Desalination Water Treat. 2024, 319, 100528. DOI: https://doi.org/10.1016/J.DWT.2024.100528
- 6. Raheja, H.; Goel, A.; Pal, M. A Holistic Assessment of Groundwater Quality for Drinking and Irrigation Purposes. Water Pract. Technol. 2023, 19, 134–153. DOI: https://doi.org/10.2166/wpt.2023.228
- 7. Biswas, A.; Tortajada, C. Water Quality Management: A Globally Neglected Issue. Int. J. Water Resour. Dev. 2019, 35, 913–916. DOI: https://doi.org/10.1080/07900627.2019.1670506
- 8. Gleeson, T.; Wada, Y.; Bierkens, M.F.P.; et al. Water Balance of Global Aquifers Revealed by Groundwater Footprint. Nature 2012, 488, 197–200. DOI: https://doi.org/10.1038/nature11295
- 9. Lall, U.; Josset, L.; Russo, T. A Snapshot of the World’s Groundwater Challenges. Annu. Rev. Environ. Resour. 2020, 45, 171–194. DOI: https://doi.org/10.1146/annurev-environ-102017-025800
- 10. Basuki, T.M.; Pramono, I.B. Peak Flood Volume and Its Suspended Sediment at Various Rainfall in Kedungbulus Catchment in Gombong, Central Java, Indonesia. J. Degrad. Min. Lands Manag. 2021, 9, 3211–3217.
- 11. Sahour, S.; Khanbeyki, M.; Gholami, V.; et al. Evaluation of Machine Learning Algorithms for Groundwater Quality Modeling. Environ. Sci. Pollut. Res. 2023, 30, 46004–46021. DOI: https://doi.org/10.1007/s11356-023-25596-3
- 12. Torres-Martínez, J.A.; Mahlknecht, J.; Kumar, M.; et al. Advancing Groundwater Quality Predictions: Machine Learning Challenges and Solutions. Sci. Total Environ. 2024, 949, 174973. DOI: https://doi.org/10.1016/J.SCITOTENV.2024.174973
- 13. Jibrin, A.; Al-Suwaiyan, M.; Aldrees, A.; et al. Machine Learning Predictive Insight of Water Pollution and Groundwater Quality in the Eastern Province of Saudi Arabia. Sci. Rep. 2024, 14, 20031. DOI: https://doi.org/10.1038/s41598-024-70610-4
- 14. Ghahramani, Z. Probabilistic Machine Learning and Artificial Intelligence. Nature 2015, 521, 452–459. DOI: https://doi.org/10.1038/nature14541
- 15. Chen, K.; Chen, H.; Zhou, C.; et al. Comparative Analysis of Surface Water Quality Prediction Performance and Identification of Key Water Parameters Using Different Machine Learning Models Based on Big Data. Water Res. 2020, 171, 115454. DOI: https://doi.org/10.1016/J.WATRES.2019.115454
- 16. Knipe, D.; Padmanathan, P.; Newton-Howes, G.; et al. Suicide and Self-Harm. Lancet 2022, 399, 1903–1916. DOI: https://doi.org/10.1016/S0140-6736(22)00173-8
- 17. Campos Zabala, F.J. Supervised and Unsupervised Learning. In Grow Your Business with AI; Apress: Berkeley, CA, USA, 2023; pp. 217–244. DOI: https://doi.org/10.1007/978-1-4842-9669-1_9
- 18. Landau-Donnelly, F.; Roskamm, N.; Pohl, L. [Un]Grounding - Post-Foundational Geographies; Transcript Verlag: Bielefeld, Germany, 2022.
- 19. Choubin, B.; Rahmati, O. Groundwater Potential Mapping Using Hybridization of Simulated Annealing and Random Forest. Water Eng. Model. Math. Tools 2021, 391–403. DOI: https://doi.org/10.1016/B978-0-12-820644-7.00008-6
- 20. Zheng, H.; Hou, S.; Liu, J.; et al. Advanced Machine Learning and Water Quality Index (WQI) Assessment: Evaluating Groundwater Quality at the Yopurga Landfill. Water 2024, 16, 1666. DOI: https://doi.org/10.3390/w16121666
- 21. Torkashvand, M.; Neshat, A.; Javadi, S.; et al. New Hybrid Evolutionary Algorithm for Optimizing Index-Based Groundwater Vulnerability Assessment Method. J. Hydrol. 2021, 598, 126446. DOI: https://doi.org/10.1016/J.JHYDROL.2021.126446
- 22. Sarkar, S.; Adalder, A.; Paul, S.; et al. Iron Phthalocyanine Hollow Architecture Enabled Ammonia Production via Nitrate Reduction to Achieve 100% Faradaic Efficiency. Appl. Catal. B 2024, 343, 123580. DOI: https://doi.org/10.1016/J.APCATB.2023.123580
- 23. Mohseni, U.; Pande, C.B.; Chandra Pal, S.; et al. Prediction of Weighted Arithmetic Water Quality Index for Urban Water Quality Using Ensemble Machine Learning Model. Chemosphere 2024, 352, 141393. DOI: https://doi.org/10.1016/J.CHEMOSPHERE.2024.141393
- 24. Sangwan, V.; Bhardwaj, R. Machine Learning Framework for Predicting Water Quality Classification. Water Pract. Technol. 2024, 19, 4499–4521. DOI: https://doi.org/10.2166/wpt.2024.259
- 25. Wu, Z.; Wu, Y.; Yu, Y.; et al. Assessment of Groundwater Quality Variation Characteristics and Influencing Factors in an Intensified Agricultural Area: An Integrated Hydrochemical and Machine Learning Approach. J. Environ. Manage. 2024, 371, 123233. DOI: https://doi.org/10.1016/J.JENVMAN.2024.123233
- 26. Yadav, A.; Raj, A.; Yadav, B. Enhancing Local-Scale Groundwater Quality Predictions Using Advanced Machine Learning Approaches. J. Environ. Manage. 2024, 370, 122903. DOI: https://doi.org/10.1016/J.JENVMAN.2024.122903
- 27. Xu, J.; Mo, Y.; Zhu, S.; et al. Assessing and Predicting Water Quality Index with Key Water Parameters by Machine Learning Models in Coastal Cities, China. Heliyon 2024, 10, e33695. DOI: https://doi.org/10.1016/J.HELIYON.2024.E33695
- 28. Amiraslani, F.; Dragovich, D. Combating Desertification in Iran over the Last 50 Years: An Overview of Changing Approaches. J. Environ. Manage. 2011, 92, 1–13. DOI: https://doi.org/10.1016/J.JENVMAN.2010.08.012
- 29. Hosseinzadeh, M.M.; Nohegar, A. Studying the Effect of Drought on Water Resources over Two Decades and Occurrences of the Sinking Phenomenon in Minab Plain. Environ. Sci. 2011, 9.
- 30. Bouselsal, B.; Saibi, H. Evaluation of Groundwater Quality and Hydrochemical Characteristics in the Shallow Aquifer of El-Oued Region (Algerian Sahara). Groundw. Sustain. Dev. 2022, 17, 100747. DOI: https://doi.org/10.1016/J.GSD.2022.100747
- 31. APHA. Standard Methods for the Examination of Water and Wastewater; American Public Health Association: Washington, DC, USA, 2012.
- 32. World Health Organization (WHO). Guidelines for Drinking-Water Quality: Fourth Edition Incorporating the First and Second Addenda; World Health Organization: Geneva, Switzerland, 2022.
- 33. Rosborg, I.; Soni, V.; Kozisek, F. Potentially Toxic Elements in Drinking Water in Alphabetic Order. In Drinking Water Minerals and Mineral Balance; Springer: Cham, Switzerland, 2015; pp. 79–101. DOI: https://doi.org/10.1007/978-3-319-09593-6_5
- 34. Sellamuthu, K.M.; Malathi, P.; Kumaraperumal, R. Assessment of Ground Water Quality for Irrigation in the Farms of Horticultural College and Research Institute, Periyakulam, Theni District. Madras Agric. J. 2021, 108, 213–219. DOI: https://doi.org/10.29321/MAJ.10.000509
- 35. van der Aa, M. Classification of Mineral Water Types and Comparison with Drinking Water Standards. Environ. Geol. 2003, 44, 554–563. DOI: https://doi.org/10.1007/s00254-003-0791-4
- 36. Boateng, T.K.; Opoku, F.; Acquaah, S.O.; et al. Groundwater Quality Assessment Using Statistical Approach and Water Quality Index in Ejisu-Juaben Municipality, Ghana. Environ. Earth Sci. 2016, 75, 489. DOI: https://doi.org/10.1007/s12665-015-5105-0
- 37. Li, C.; Gao, X.; Li, S.; et al. A Review of the Distribution, Sources, Genesis, and Environmental Concerns of Salinity in Groundwater. Environ. Sci. Pollut. Res. 2020, 27, 41157–41174. DOI: https://doi.org/10.1007/s11356-020-10354-6
- 38. Şener, E.; Şener, Ş.; Varol, S. Evaluation of Irrigation Water Quality Using GIS-Based Analytic Hierarchy Process (AHP) in Kızılırmak Delta (Turkey). Arab. J. Geosci. 2022, 15, 678. DOI: https://doi.org/10.1007/s12517-022-10003-x
- 39. Adimalla, N.; Li, P. Occurrence, Health Risks, and Geochemical Mechanisms of Fluoride and Nitrate in Groundwater of the Rock-Dominant Semi-Arid Region, Telangana State, India. Hum. Ecol. Risk Assess. 2019, 25, 81–103. DOI: https://doi.org/10.1080/10807039.2018.1480353
- 40. Bouaissa, M.; El Khadir, G.; Ghalit, M.; et al. Identifying the Origin of Groundwater Salinization in the Bokoya Massif (Central Rif, Northern Morocco) Using Hydrogeochemical and Isotopic Tools. Groundw. Sustain. Dev. 2021, 14, 100646. DOI: https://doi.org/10.1016/j.gsd.2021.100646
- 41. Shuaibu, A.; Kalin, R.M.; Phoenix, V.; et al. Hydrogeochemistry and Water Quality Index for Groundwater Sustainability in the Komadugu-Yobe Basin, Sahel Region. Water 2024, 16, 601. DOI: https://doi.org/10.3390/w16040601
- 42. Pradhan, B. A Comparative Study on the Predictive Ability of the Decision Tree, Support Vector Machine and Neuro-Fuzzy Models in Landslide Susceptibility Mapping Using GIS. Comput. Geosci. 2013, 51, 350–365. DOI: https://doi.org/10.1016/J.CAGEO.2012.08.023
- 43. Radhakrishnan, N.; Pillai, A. Comparison of Water Quality Classification Models Using Machine Learning. In Proceedings of the 2020 5th International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India, 10–12 June 2020; pp. 1183–1188. DOI: https://doi.org/10.1109/ICCES48766.2020.9137903
- 44. Jena, M.; Dehuri, S. DecisionTree for Classification and Regression: A State-of-the Art Review. Informatica 2020, 44. DOI: https://doi.org/10.31449/inf.v44i4.3023
- 45. Zhang, M.L.; Zhou, Z.H. ML-KNN: A Lazy Learning Approach to Multi-Label Learning. Pattern Recognit. 2007, 40, 2038–2048. DOI: https://doi.org/10.1016/J.PATCOG.2006.12.019
- 46. Shen, J.; Qin, Q.; Wang, Y.; et al. A Data-Driven Modeling Approach for Simulating Algal Blooms in the Tidal Freshwater of James River in Response to Riverine Nutrient Loading. Ecol. Modell. 2019, 398, 44–54. DOI: https://doi.org/10.1016/J.ECOLMODEL.2019.02.005
- 47. Yaseen, Z.M.; Sulaiman, S.O.; Deo, R.C.; et al. An Enhanced Extreme Learning Machine Model for River Flow Forecasting: State-of-the-Art, Practical Applications in Water Resource Engineering Area and Future Research Direction. J. Hydrol. 2019, 569, 387–408. DOI: https://doi.org/10.1016/J.JHYDROL.2018.11.069
- 48. El Bilali, A.; Taleb, A.; Brouziyne, Y. Groundwater Quality Forecasting Using Machine Learning Algorithms for Irrigation Purposes. Agric. Water Manag. 2021, 245, 106625. DOI: https://doi.org/10.1016/J.AGWAT.2020.106625
- 49. Naloufi, M.; Lucas, F.S.; Souihi, S.; et al. Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water 2021, 13, 2457. DOI: https://doi.org/10.3390/w13182457
- 50. Uddin, M.G.; Nash, S.; Rahman, A.; et al. A Comprehensive Method for Improvement of Water Quality Index (WQI) Models for Coastal Water Quality Assessment. Water Res. 2022, 219, 118532. DOI: https://doi.org/10.1016/J.WATRES.2022.118532
- 51. Uddin, M.G.; Nash, S.; Rahman, A.; et al. Assessing Optimization Techniques for Improving Water Quality Model. J. Clean. Prod. 2023, 385, 135671. DOI: https://doi.org/10.1016/J.JCLEPRO.2022.135671
- 52. Xiong, Y.; Zhang, T.; Sun, X.; et al. Groundwater Quality Assessment Based on the Random Forest Water Quality Index—Taking Karamay City as an Example. Sustainability 2023, 15, 14477. DOI: https://doi.org/10.3390/su151914477
- 53. Powers, D.M.W. Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness and Correlation. J. Mach. Learn. Technol. 2020, 2, 37–63.
- 54. World Health Organization (WHO). Guidelines for Drinking-Water Quality, 4th ed.; World Health Organization: Geneva, Switzerland, 2017.
- 55. Adimalla, N.; Taloor, A.K. Hydrogeochemical Investigation of Groundwater Quality in the Hard Rock Terrain of South India Using Geographic Information System (GIS) and Groundwater Quality Index (GWQI) Techniques. Groundw. Sustain. Dev. 2020, 10, 100288. DOI: https://doi.org/10.1016/J.GSD.2019.100288
- 56. Kawo, N.S.; Karuppannan, S. Groundwater Quality Assessment Using Water Quality Index and GIS Technique in Modjo River Basin, Central Ethiopia. J. Afr. Earth Sci. 2018, 147, 300–311. DOI: https://doi.org/10.1016/J.JAFREARSCI.2018.06.034
- 57. Vaiphei, S.P.; Kurakalva, R.M.; Sahadevan, D.K. Water Quality Index and GIS-Based Technique for Assessment of Groundwater Quality in Wanaparthy Watershed, Telangana, India. Environ. Sci. Pollut. Res. 2020, 27, 45041–45062. DOI: https://doi.org/10.1007/s11356-020-10345-7
- 58. Grassi, L.; Schileo, E.; Taddei, F.; et al. Accuracy of Finite Element Predictions in Sideways Load Configurations for the Proximal Human Femur. J. Biomech. 2011, 45, 394–399. DOI: https://doi.org/10.1016/j.jbiomech.2011.10.019
- 59. Pany, R.; Rath, A.; Swain, P.C. Water Quality Assessment for River Mahanadi of Odisha, India Using Statistical Techniques and Artificial Neural Networks. J. Clean. Prod. 2023, 417, 137713. DOI: https://doi.org/10.1016/J.JCLEPRO.2023.137713
- 60. Wang, S.; Peng, H.; Liang, S. Prediction of Estuarine Water Quality Using Interpretable Machine Learning Approach. J. Hydrol. 2022, 605, 127320. DOI: https://doi.org/10.1016/j.jhydrol.2021.127320
- 61. Freeman, E.A.; Moisen, G.G. A Comparison of the Performance of Threshold Criteria for Binary Classification in Terms of Predicted Prevalence and Kappa. Ecol. Modell. 2008, 217, 48–58. DOI: https://doi.org/10.1016/J.ECOLMODEL.2008.05.015
- 62. Uddin, M.G.; Rahman, A.; Nash, S.; et al. Marine Waters Assessment Using Improved Water Quality Model Incorporating Machine Learning Approaches. J. Environ. Manage. 2023, 344, 118368. DOI: https://doi.org/10.1016/J.JENVMAN.2023.118368
- 63. Haghiabi, A.H.; Nasrolahi, A.H.; Parsaie, A. Water Quality Prediction Using Machine Learning Methods. Water Qual. Res. J. 2018, 53, 3–13. DOI: https://doi.org/10.2166/wqrj.2018.025
- 64. Chen, X.; Zhang, M.; Zhang, W. Landscape Pattern Changes and Its Drivers Inferred from Salt Marsh Plant Variations in the Coastal Wetlands of the Liao River Estuary, China. Ecol. Indic. 2022, 145, 109719. DOI: https://doi.org/10.1016/J.ECOLIND.2022.109719
- 65. Yongo, E.; Mutethya, E.; Zhang, P.; et al. Comparing the Performance of the Water Quality Index and Phytoplankton Index of Biotic Integrity in Assessing the Ecological Status of Three Urban Rivers in Haikou City, China. Ecol. Indic. 2023, 157, 111286. DOI: https://doi.org/10.1016/J.ECOLIND.2023.111286
- 66. Xue, D.; Zhou, J.; Zhao, X.; et al. Impacts of Climate Change and Human Activities on Runoff Change in a Typical Arid Watershed, NW China. Ecol. Indic. 2021, 121, 107013. DOI: https://doi.org/10.1016/j.ecolind.2020.107013