مدیریت آب و آبیاری

مدیریت آب و آبیاری

پیش‌بینی متغیر‌های کیفی آب زیرزمینی با یادگیری ماشین و مهندسی ویژگی‌های فضایی چاه‌های همجوار

نوع مقاله : مقاله پژوهشی

نویسندگان
گروه مهندسی آبیاری و آبادانی دانشکدگان کشاورزی و منابع طبیعی، دانشگاه تهران، کرج، ایران.
10.22059/jwim.2026.413821.1301
چکیده
مدل‌سازی دقیق کیفیت آب‌های زیرزمینی مستلزم درک ساختار وابستگی مکانی پارامترهای شیمیایی و بهره‌گیری از روش‌های پیش‌بینی پیشرفته است. در این پژوهش، با هدف پیش‌بینی متغبرهای هدایت الکتریکی (EC) و کلسیم (Ca+²) در استان گیلان، از شش الگوریتم یادگیری ماشین شامل KNN، MLP، Random Forest (RF)، Gaussian Process Regression (GPR)، Gradient Boosting Regression (GBR) و XGBoost استفاده شد. به‌منظور لحاظ‌کردن ساختار فضایی، فاصله چاه‌های همجوار به‌عنوان ورودی به مدل‌ها افزوده شد و عملکرد آن‌ها در سناریوهای مختلف تعداد چاه‌های همسایه (چهار تا هشت چاه) با استفاده از داده‌های سالانه دوره 2002 تا 2018 ارزیابی گردید. نتایج نشان داد که مدل‌های مبتنی بر یادگیری جمعی عملکرد برتری نسبت به سایر الگوریتم‌ها دارند، اما الگوی بهینه فضایی برای هر متغیر متفاوت است. برای EC، مدل RF در سناریوی استفاده از هشت چاه همسایه بهترین عملکرد را با مقدار R2 برابر با 888/0، RMSE برابر با 165/117 و MAE برابر با 173/84 ارائه داد که نشان‌دهنده وابستگی مکانی گسترده‌تر این متغیر در آبخوان است. در مقابل، برای Ca+2 مدل XGBoost در سناریوی چهار چاه همسایه به عملکرد بهینه با R2 برابر با 811/0 و MAE برابر با 820/0 دست یافت که بیانگر غالب‌بودن فرایندهای محلی در توزیع مکانی این یون است. مقایسه سناریوها نشان داد که افزایش تعداد چاه‌های همسایه الزاماً منجر به بهبود دقت پیش‌بینی برای تمامی پارامترها نمی‌شود و ساختار وابستگی مکانی هر متغیر باید جداگانه تحلیل شود. یافته‌های این مطالعه تأکید می‌کند که تلفیق یادگیری ماشین با مهندسی ویژگی‌های فضایی، چارچوبی مؤثر برای مدل‌سازی هوشمند کیفیت آب‌های زیرزمینی فراهم می‌کند و می‌تواند در بهینه‌سازی شبکه‌های پایش و تصمیم‌گیری مدیریتی مورداستفاده قرار گیرد.
کلیدواژه‌ها
موضوعات

عنوان مقاله English

Spatially Informed Machine‑Learning Prediction of Groundwater Quality Using Feature Engineering from Proximal Observation Wells

نویسندگان English

Hossein Hadizadeh
Nima Moghaddam
Afshin Ashrafzadeh
Department of Irrigation and Reclamation Engineering, Faculty of Agriculture and Natural Resources, University of Tehran, Karaj, Iran.
چکیده English

Accurate modeling of groundwater quality requires a proper understanding of the spatial dependency structure of hydrochemical parameters and the application of advanced predictive approaches. In this study, six machine learning algorithms including K Nearest Neighbors (KNN), Multi Layer Perceptron (MLP), Random Forest (RF), Gaussian Process Regression (GPR), Gradient Boosting Regression (GBR) and Extreme Gradient Boosting (XGBoost) were employed to predict electrical conductivity (EC) and calcium (Ca²⁺) concentrations in Guilan Province, Iran. To incorporate spatial dependency into the predictive framework, the distances to neighboring wells were introduced as input features, and model performance was evaluated under different neighborhood scenarios (4 to 8 neighboring wells) using annual groundwater quality data from 2002 to 2018. The results indicate that ensemble learning models outperform the other algorithms; however, the optimal spatial configuration varies between parameters. For electrical conductivity (EC), the Random Forest model achieved the best performance when eight neighboring wells were considered, with an R‑squared value of 0.888, a root mean square error of 117.165, and a mean absolute error of 84.173. This suggests a broader spatial dependency for this parameter within the aquifer system. In contrast, for calcium ion (Ca²⁺), the XGBoost model yielded the optimal performance with four neighboring wells, achieving an R‑squared value of 0.811, a root mean square error of 1.154, and a mean absolute error of 0.820, indicating that local hydrogeochemical processes exert a stronger control on the spatial distribution of this ion. The comparison of neighborhood scenarios further demonstrates that increasing the number of neighboring wells does not necessarily improve prediction accuracy for all parameters, highlighting the importance of parameter specific spatial dependency analysis. Overall, the findings confirm that integrating machine learning with spatial feature engineering provides an effective framework for intelligent groundwater quality modeling and can support the optimization of monitoring networks and water resources management strategies.
The results indicate that ensemble learning models outperform the other algorithms; however, the optimal spatial configuration varies between parameters. For electrical conductivity (EC), the Random Forest model achieved the best performance when eight neighboring wells were considered, with an R‑squared value of 0.888, a root mean square error of 117.165, and a mean absolute error of 84.173. This suggests a broader spatial dependency for this parameter within the aquifer system. In contrast, for calcium ion (Ca²⁺), the XGBoost model yielded the optimal performance with four neighboring wells, achieving an R‑squared value of 0.811, a root mean square error of 1.154, and a mean absolute error of 0.820, indicating that local hydrogeochemical processes exert a stronger control on the spatial distribution of this ion.
The comparison of neighborhood scenarios further demonstrates that increasing the number of neighboring wells does not necessarily improve prediction accuracy for all parameters, highlighting the importance of parameter specific spatial dependency analysis. Overall, the findings confirm that integrating machine learning with spatial feature engineering provides an effective framework for intelligent groundwater quality modeling and can support the optimization of monitoring networks and water resources management strategies.

کلیدواژه‌ها English

Groundwater quality prediction, Machine learning, Spatial feature engineering, Electrical conductivity (EC), Calcium (Ca²⁺)
1.       Agheli, E., Ashrafzadeh, A., & Janatrostami, S. (2024). Modeling the spatial dependence of quality data using distance-based inputs and a data-driven model. Groundwater for Sustainable Development, 24, 101061. https://doi.org/10.1016/j.gsd.2023.101061
2.       Alijani, B., Ghasemi, M., & Hosseini, M. (2018). Climate change and water resources in Iran: A review. Iranian Journal of Geophysics, 12(1), 1–15.
3.       Allahyari, M. S., Ghavami, S., Daghighi Masuleh, Z., Michailidis, A., & Nastis, S. A. (2016). Understanding farmers’ perceptions and adaptations to precipitation and temperature variability: Evidence from Northern Iran. Climate, 4(4), 58. https://doi.org/10.3390/cli4040058
4.       Behzadi, J. (2021). Distribution of water shortage and soil moisture consumption (Case study: Guilan Province). Water Harvesting Research, 4(2), 238–244. https://doi.org/10.22077/jwhr.2022.5042.1053
5.       Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
6.       Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). ACM.
7.       Chen, Y., Wang, J., & Li, X. (2021). Predicting river water quality using extreme gradient boosting model under climate change scenarios. Science of the Total Environment, 785, 147289. https://doi.org/10.1016/j.scitotenv.2021.147289
8.       Dalmasso, M., Civera, M., De Biagi, V., et al. (2025). Gaussian process regression (GPR)-based missing data imputation and its uses for bridge structural health monitoring. ABEN, 6, 23. https://doi.org/10.1186/s43251-025-00169-1
9.       Deng, Y., Deng, J., Xu, B., Luo, Y., & Zhang, Q. (2020). Hydrogeochemical characteristics and controlling factors of groundwater in a karst area of Southwest China. Journal of Hydrology, 590, 125561.
10.    Dinpashoh, Y., Singh, V. P., Biazar, S. M., & Kavehkar, S. (2019). Impact of climate change on streamflow timing (Case study: Guilan Province). Theoretical and Applied Climatology, 138, 65–76. https://doi.org/10.1007/s00704-019-02810-2
11.    Dou, G., Chen, R., Han, C., Liu, Z., & Liu, J. (2022). Research on water-level recognition method based on image processing and convolutional neural networks. Water, 14(12), 1890. https://doi.org/10.3390/w14121890
12.    Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5), 1189–1232.
13.    Gurdak, J. J., & Qi, S. L. (2012). Updated conceptual model and conceptual numerical model for groundwater vulnerability to anthropogenic impacts, Yucca Mountain, Nevada, USA. Environmental Earth Sciences, 65(7), 1955–1975. https://doi.org/10.1007/s12665-011-1273-8
14.    Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer.
15.    Isazadeh, M., Biazar, S. M., & Ashrafzadeh, A. (2017). Support vector machines and feed-forward neural networks for spatial modeling of groundwater qualitative parameters. Environmental Earth Sciences, 76, 1–14. https://doi.org/10.1007/s12665-017-6938-5
16.    Isaaks, E. H., & Srivastava, R. M. (1989). An introduction to applied geostatistics. Oxford University Press.
17.    Kallab, L., Mansour, E., & Chbeir, R. (2024). Towards ML models’ recommendations. Data Science and Engineering, 9, 409–430. https://doi.org/10.1007/s41019-024-00262-x
18.    Kumar, P., Singh, R., & Jain, A. K. (2020). Application of artificial neural networks for groundwater quality prediction: A case study. Journal of Hydrology, 585, 124812. https://doi.org/10.1016/j.jhydrol.2020.124812
19.    Liu, Y., Wang, Y., & Zhang, X. (2022). Predicting nitrate concentration in groundwater using extreme gradient boosting (XGBoost) model. Science of the Total Environment, 804, 150123. https://doi.org/10.1016/j.scitotenv.2021.150123
20.    Moghaddam, N., & Tavana, A. H. (2023, November). An overview of the effects of climate change on surface and underground water sources. In Proceedings of the Second National Conference on Water Quality Management and the Fourth National Conference on Water Consumption Management. Technical Schools of Tehran University, Tehran, Iran.(In Persian).
21.    Moghaddam, N., & Kholghi, M. (2025). Analysis of Groundwater Table Decline and Salinity Intensification in the Qazvin Plain: Implications from a Water Resources Governance Perspective. Iranian Journal of Irrigation & Drainage, 19(3), 469-487.( In Persian).
22.    Moghaddam, N., Hadizadeh, H., & Ashrafzadeh, A. (2025). Data-driven analysis for estimating and predicting well salinity using artificial intelligence algorithms. Discover Applied Sciences, 8, 114.
23.    Moghaddam, N., & Ashrafzadeh, A. (2026). Groundwater salinity modeling and prediction in Qazvin Plain using a data-driven and artificial intelligence approach. Iran-Water Resources Research, 21(4), 158–175(In Persian).
24.    Singh, V. K., Pandey, R. P., & Mishra, V. N. (2019). Machine learning approaches in hydrology: A review. Water Resources Management, 33(10), 3379–3400. https://doi.org/10.1007/s11269-019-02318-7
25.    Su, W., Jiang, F., Shi, C., et al. (2023). An XGBoost-based knowledge tracing model. International Journal of Computational Intelligence Systems, 16, 13. https://doi.org/10.1007/s44196-023-00192-y
26.    Wada, Y., Wisser, D., & Bierkens, M. F. (2010). Modeling global groundwater depletion rates. Journal of Geophysical Research: Atmospheres, 115(D20). https://doi.org/10.1029/2010JD014568
27.    Zhang, Y., Chen, N., & Li, H. (2021). Random forest-based groundwater quality assessment in a complex aquifer system. Environmental Monitoring and Assessment, 193, 1–15. https://doi.org/10.1007/s10661-021-09123-4