Machine Learning Techniques for Water Resources in Morocco †
Abstract
1. Introduction
2. Methodology
3. Results
3.1. Length of Papers
3.2. Years of Publication
3.3. Type of Reference by Year
3.4. The Word Cloud
- Most prominent words: “water,” “learning,” and “machine” are the largest words, indicating they are the most frequently used terms in the analyzed corpus;
- Second significant terms: words like “management,” “groundwater,” “resources,” “models,” ”algorithm,“ “quality,“ “analysis,” and “Morocco” are also quite large;
- Third significant terms: Smaller, yet relevant words such as “support,” “mapping,” “artificial,” “random,” “accuracy,” and “forest” also appear. These terms likely provide context around the key concepts, such as methodologies or fields of study (machine learning, groundwater management).
3.5. Machine Learning Models Present in the Corpus
3.6. Application Sectors of Machine Learning
4. Comparative Study of Machine Learning by Application Sector
4.1. Application of Machine Learning in the Water Quality Sector
4.2. Application of Machine Learning in the Intelligent Irrigation
4.3. Application of Machine Learning in the Groundwater Levels
5. Discussion
- Word Cloud: The word cloud highlights themes related to water resources, management strategies, and the application of machine learning in this field. The central term “water” emphasizes a focus on hydrology or environmental management. Words like “Morocco,” “groundwater,” and “management” point to concerns about sustainable water management in that region. Terms such as “random,” “forest,” and “artificial” suggest the use of machine learning techniques like random forest algorithms, commonly applied in environmental modeling.
- ML Models: The most commonly applied models are RF, SVM, DT, and ANN. This trend is clearly illustrated in the word cloud of ML models (Figure 4), the Figure 5 summarizing model usage frequency.
- ○
- Random Forest (RF): A supervised learning algorithm that improves prediction accuracy by combining multiple decision trees into an ensemble. This “forest” approach helps produce more reliable results by leveraging the strengths of individual models together. As noted by Moumen A (2020) [21], the widespread use of this method is also highlighted by Boutracheh [22], whose work examines how machine learning is applied to water resource management worldwide;
- ○
- Decision Tree (DT): a machine learning model that helps make decisions by evaluating different criteria step by step according to El Ansari [23];
- ○
- ○
- Support Vector Machine (SVM): A widely used algorithm in research because of its ability to handle both regression and classification tasks. It works by creating an optimal hyperplane that minimizes errors, improving the model’s accuracy and performance [14].
- Application Sectors: The main areas where machine learning is applied in water monitoring in Morocco are water quality (25%), intelligent irrigation (19%), and groundwater level (14%).
- ○
- Water Quality: In Morocco, researchers leverage machine learning models for real-time water quality monitoring. These models help predict potential contamination by examining pollution level data, temperature, dissolved substances, and pollutant concentrations. The significance of this area is further supported by the work of Boutracheh [22], which examines the application of machine learning in the field of water resources on a global scale.
- ○
- Smart Irrigation: machine learning models are used to automate and optimize the use of water resources during irrigation, with the aim of promoting smart agriculture and achieving maximum yield;
- ○
- Groundwater Levels: machine learning models are employed to map the evolution of aquifers and predict groundwater levels using topographic, hydrological, and climatic data, in order to enable effective management of groundwater resources.
6. Conclusions and Perspectives
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Griffiths, O.; Henderson, H.; Simpson, M. Environmental Health Practitioner Manual: (Common wealth of Australia). 2010. Available online: https://ww2.health.wa.gov.au/~/media/Files/Corporate/general-documents/Environmental-health/Aboriginal-environmental-health/Environmental-Health-Practitioner-Manual.pdf (accessed on 10 August 2021).
- Elhassan, J.; Aniss, M.; Jamal, C. Big Data Analytic Architecture for Water Resources Management: A Systematic Review. In Proceedings of the 4th Edition of International Conference on Geo-IT and Water Resources 2020, Geo-IT and Water Resources, New York, NY, USA, 11–12 March 2020. [Google Scholar] [CrossRef]
- Jamil, H.; Jamal, E.; Rissouni, Y.; El Mansouri, B.; Moumen, A.; Chao, J. Data process and water resources management in Morocco: Issues and challenges. In E3S Web of Conferences; EDP Sciences: London, UK, 2024. [Google Scholar] [CrossRef]
- Amin, M.M.; Veith, T.L.; Collick, A.S.; Karsten, H.D.; Buda, A.R. Simulating hydrological and nonpoint source pollution processes in a karst watershed: A variable source area hydrology model evaluation. Agric. Water Manag. 2017, 180, 212–223. [Google Scholar] [CrossRef]
- Westall, F.; Brack, A. The importance of water for life. Space Sci. Rev. 2018, 214, 50. [Google Scholar] [CrossRef]
- Alabjah, B.; Amraoui, F.; Chibout, M.M.; Slimani, M. Assessment of saltwater contamination extent in the coastal aquifers of Chaouia (Morocco) using the electric recognition. J. Hydrol. 2018, 566, 363–376. [Google Scholar] [CrossRef]
- El Asri, H.; Larabi, A.; Faouzi, M. Climate change projections in the Ghis-Nekkor region of Morocco and potential impact on groundwater recharge. Theor. Appl. Clim. 2019, 138, 713–727. [Google Scholar] [CrossRef]
- Hicham, J.; Aniss, M.; Bouabid, M. Moroccan Water Information System: Exploratory study System Literature Review. In Proceedings of the 4th Edition of International Conference on Geo-IT and Water Resources 2020, Geo-IT and Water Resources, New York, NY, USA, 11–12 March 2020. [Google Scholar] [CrossRef]
- Jamal, E.; Rissouni, Y.; Jamil, H.; El Ansari, R.; El Mansouri, B.; Chao, J.; Moumen, A. Big data analytics for the moroccan water actors: Towards an adoption model. In E3S Web of Conferences; EDP Sciences: London, UK, 2024. [Google Scholar] [CrossRef]
- El Ansari, R.; El Bouhadioui, M.; Aboutafail, M.O.; Mejjad, N.; Jamil, H.; Jamal, E.; Rissouni, Y.; Zouiten, M.; Boutracheh, H.; Moumen, A. A review of Machine learning models and parameters for groundwater issues. In Proceedings of the 6th International Conference on Networking, Intelligent Systems and Security, NISS 2023, Larache, Morocco, 24–26 May 2023; Polydisciplinary Faculty LaracheLarache: Larache, Morocco, 2023. Code 194645. [Google Scholar]
- Taylor, R.G.; Scanlon, B.; Döll, P.; Rodell, M.; Van Beek, R.; Wada, Y.; Longuevergne, L.; Leblanc, M.; Famiglietti, J.S.; Edmunds, M.; et al. Ground water and climate change. Nat. Clim. Change 2013, 3, 322–329. [Google Scholar] [CrossRef]
- Moukhliss, M.; Taleb, A.; Souabi, S.; Ouallali, A.; Spalevic, V. Groundwater quality forecasting using machine learning algorithms: Case study berrechid aquifer, central morocco. J. Agricult. For. 2022, 68, 35–56. [Google Scholar] [CrossRef]
- Jaddi, H.; El-Hmaidi, A.; Ousmana, H.; Berrada, M.; Aouragh, M.H.; Iallamen, Z.; Kasse, Z.; El Ouali, A.; Boufala, M.; Ragragui, H.; et al. Predicting Nitrate Levels in the Saïss Water Table: A Comparative Study of Machine Learning Methods. In Proceedings of the 2nd Edition of the International Conference on Natural Resources and Sustainable Development, RENA 2023, Fes, Morocco, 9–11 November 2023; FST, USMBAFez: Fes, Morocco, 2023. Code 200573. [Google Scholar]
- El Morabet, R.; Barhazi, L.; Bouhafa, S.; Dahim, M.A.; Khan, R.A.; Khan, N.A. Geospatial distribution and machine learning algorithms for assessing water quality in surface water bodies of Morocco. Sci. Rep. 2023, 13, 20599. [Google Scholar] [CrossRef] [PubMed]
- Ouzemou, J.-E.; El Harti, A.; Lhissou, R.; El Moujahid, A.; Bouch, N.; El Ouazzani, R.; Bachaoui, E.M.; El Ghmari, A. Crop type mapping from pansharpened Landsat 8 NDVI data: A case of a highly fragmented and intensive agricultural system. Remote Sens. Appl. Soc. Environ. 2018, 11, 94–103. [Google Scholar] [CrossRef]
- Kaissi, O.; Belaqziz, S.; Kharrou, M.H.; Erraki, S.; El Hachimi, C.; Amazirh, A.; Chehbouni, A. Advanced learning models for estimating the spatio-temporal variability of reference evapotranspiration using in-situ and ERA5-Land reanalysis data. Model. Earth Syst. Environ. 2023, 10, 1915–1939. [Google Scholar] [CrossRef]
- Ba-Ichou, A.; Waga, A.; Bekri, A.; Benhlima, S. Estimated Daily Reference Evapotranspiration Using Machine Learning and Deep Learning Based on Various Combinations of Meteorological Data. In Proceedings of the International Conference on Advanced Intelligent Systems for Sustainable Development, AI2SD 2022, Rabat, Morocco, 22–27 May 2022. Code 296119. [Google Scholar]
- Rafik, A.; Brahim, Y.A.; Amazirh, A.; Ouarani, M.; Bargam, B.; Ouatiki, H.; Bouslihim, Y.; Bouchaou, L.; Chehbouni, A. Groundwater level forecasting in a data-scarce region through remote sensing data downscaling, hydrological modeling, and machine learning: A case study from Morocco. J. Hydrol. Reg. Stud. 2023, 50, 101569. [Google Scholar] [CrossRef]
- Jadoud, M.; El Achheb, A.; Laftouhi, N.; Khouz, A.; Eloudi, H.; El Bchari, F.; Rachidi, S.; Bougadir, B.; Saouab, T. Assessment of Groundwater Potential in a Mountainous Area Using Machine Learning and GIS, Rherhaya Basin, High Atlas, Morocco. Iraqi Geol. J. 2023, 56, 288–306. [Google Scholar] [CrossRef]
- El Mezouary, L.; Hadri, A.; Kharrou, M.H.; Fakir, Y.; Elfarchouni, A.; Bouchaou, L.; Chehbouni, A. Machine Learning and Deep Learning Guided Assessment of Groundwater Reservoir Hydrodynamic Parameters: A Case Study of The El Haouz Aquifer. In Proceedings of the 4th International GIRE3D Congress on Participatory and Integrated Management of Water Resources in Arid Zones, GIRE3D 2023, Laayoune, Morocco, 23–25 November 2023. Code 197652. [Google Scholar]
- Moumen, A.; Bouchama, E.H.; Idirissi, Y.E.B.E. Data mining techniques for employability: Systematic literature review. In Proceedings of the 2020 IEEE 2nd International Conference on Electronics, Control, Optimization, Kenitra, Morocco, 2–3 December 2020. [Google Scholar]
- Boutracheh, H.; Mejjad, N.; El Bouhadioui, M.; Moumen, A. Water Research in the Age of AI: A Bibliometric Heuristic Analysis for Trends and Opportunities. In GIS, Applied Computing and Data Science for Water Management; Rebai, N., Moumen, A., El Bouhaddioui, M., Eds.; GIRE3D 2024. Lecture Notes in Geoinformation and Cartography; Springer: Cham, Switzerland, 2024. [Google Scholar] [CrossRef]
- El Ansari, R.; El Bouhadioui, M.; Boutracheh, H.; Moumen, A. Machine Learning for Water Resources in Morocco: Rapid Review. In The International Conference on Artificial Intelligence and Smart Environment; Springer Nature: Cham, Switzerland, 2025. [Google Scholar] [CrossRef]
- Momenzadeh, L.; Zomorodian, A.; Mowla, D. Experimental and theoretical investigation of shelled corn drying in a microwave-assisted fluidized bed dryer using Artificial Neural Network. Food Bioprod. Process. 2011, 89, 15–21. [Google Scholar] [CrossRef]






| Type of Reference | ||||
|---|---|---|---|---|
| Frequency | Percentage | Valid Percentage | Cumulative Percentage | |
| Journal Article | 70 | 68.0 | 68.0 | 68.0 |
| Conference-Related Communication | 28 | 27.2 | 27.2 | 95.1 |
| Book Section | 5 | 4.9 | 4.9 | 100.0 |
| Total | 103 | 100.0 | 100.0 | |
| References | Study Area | ML Models | Parameters | Sample | -Training -Testing | Best Model | Metrics Evaluation Model | Metrics Values |
|---|---|---|---|---|---|---|---|---|
| Moukhliss, M., Taleb, A. 2022 [12] | Berrechid Basin | - RF - SVR - KNN | 10 Parameters: Electrical Conductivity Cl−, EC, Ca2+, Mg2+, Ph, SO42−, Na+, K+, CO32−, and HCO3−. | 465 | - 70–80% (372) - 20–30% (93) | RF | - Accuracy - Coefficient of Correlation (r) - RMSE | 89.19% 0.966 0.042 |
| Jaddi, H., El-Hmaidi, A. 2024 [13] | Sais Aquifer | - RML - ANN - SVR | 6 Parameters: Cl−, Ca2+, EC, Na2+, SO42−, and HCO3− | 389 (1991–2017) | - 70% - 30% | SVR | - R2 - MSE - MAE | 0.902 4.364 |
| El Morabet, R., Barhazi, L. 2023 [14] | Three Rivers: -River Nfifikh -ElMaleh (Mohammedia) -Hassar | -RF -ANN -SVM | 5 Parameters: Cu, Cd2+, Pb, Fe and Zn | 9 | - 70% - 30% | ANN | - MAPE - RMSE - R2 - MAE | 0.98–0.99 |
| References | Study Area | ML Models | Parameters | Sample | -Training -Testing | Best Model | Metrics Evaluation Model | Metrics Values |
|---|---|---|---|---|---|---|---|---|
| Ouzemou, J.-E., El Harti A. 2018 [15] | Tadla Irrigated Perimeter (TIP) | - RF - SVM - SAM | 1 Parameter: Vegetation index | 1080 (Operational Land Imager OLI) | - 40% (432) - 60% (648) | RF | - Accuracy - Kappa Coefficient | 89.26% 85% |
| Kaissi, O., Belaqziz, S. 2024 [16] | Tansift Basin | - LSTM - GRU - CNN - RF - SVM - LR - XGBoost | 2 Parameters: - Mean Air Temperature—Global Solar Radiation Stood | Meteorologic Data: 2013-2020 (Hourly) | - 80% - 20% | XG Boost | - MAE - R2 -RMSE - MSE | 0.93 0.03 |
| Ba-ichou, A., Waga, A. 2023 [17] | 3 Stations: -Meknes 1 -Meknes 2 -Berkan | - SVR - RF - LSTM | 5 Parameters: - Tmax - Tmin - RH - SR - u2. | Dataset: 2016-2022 (Free Download) | - 80% - 20% | LSTM | - R2 - RMSE - MAE - MSE | 0.95–0.99 (Scenario A) 0.96–0.99 (Scenario B) |
| Reference | Study Area | ML Models | Parameters | Sample | - Training - Testing | Best Model | Metrics Evaluation Model | Metrics Values |
|---|---|---|---|---|---|---|---|---|
| Rafik, A., Ait Brahim, Y. 2023 [18] | Essaouira Basin | - RF - SVM | 19 Parameters at Start After 10 Parameters Selected | 2002–2010 | 2002–2007 2008–2010 | RF | - R2 - NSE - P BIAS - RMSE | 78% 0.33 |
| Jadoud, M., El Achheb, A. 2023 [19] | Rherhaya Basin (Tahnaout) | - RF - LR - SVM | 4 Parameters: - River Distance - Valley Depth - Topographic Position Index - Plane Curvature | 217 | - 70% - 30% | SVM | - Accuracy - Kappa Coefficient - ROC–AUC - Specificity - Sensibility - ROC | 75% 0.51 84.4% 0.67 0.84 |
| El Mezouary, L., Hadri, A. 2024 [20] | El-Haouz-Mejjate Region | - SVM - RF - MLR - Gaussian Process Regression - ANN - Regression | 4 Factors: - Lithological - Geophysical - Topographical - Geospacial | RF | - R2 | 0.82 (Hydraulic Conductivity) 0.79 (Transmissivity) |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
El Ansari, R.; El Bouhadioui, M.; Boutracheh, H.; Elhassan, J.; Youssef, R.; Hicham, J.; Othman, A.M.; Moumen, A. Machine Learning Techniques for Water Resources in Morocco. Eng. Proc. 2025, 112, 12. https://doi.org/10.3390/engproc2025112012
El Ansari R, El Bouhadioui M, Boutracheh H, Elhassan J, Youssef R, Hicham J, Othman AM, Moumen A. Machine Learning Techniques for Water Resources in Morocco. Engineering Proceedings. 2025; 112(1):12. https://doi.org/10.3390/engproc2025112012
Chicago/Turabian StyleEl Ansari, Rachid, Mohammed El Bouhadioui, Hicham Boutracheh, Jamal Elhassan, Rissouni Youssef, Jamil Hicham, Aboutafail Moulay Othman, and Aniss Moumen. 2025. "Machine Learning Techniques for Water Resources in Morocco" Engineering Proceedings 112, no. 1: 12. https://doi.org/10.3390/engproc2025112012
APA StyleEl Ansari, R., El Bouhadioui, M., Boutracheh, H., Elhassan, J., Youssef, R., Hicham, J., Othman, A. M., & Moumen, A. (2025). Machine Learning Techniques for Water Resources in Morocco. Engineering Proceedings, 112(1), 12. https://doi.org/10.3390/engproc2025112012

