Spatial Bias Correction of ERA5_Ag Reanalysis Precipitation Using Machine Learning Models in Semi-Arid Region of Morocco
Abstract
1. Introduction
1.1. Objectives and Contributions
- To evaluate the magnitude and spatial distribution of bias in the ERA5_Ag rainfall dataset relative to in situ observations across the Tensift basin;
- To develop and assess the performance of five machine learning algorithms for bias correction using observed stations data;
- To compare these models based on predictive accuracy, robustness, and interpretability using multiple evaluation metrics;
- To generate spatially continuous, bias−corrected rainfall rasters using the best performing model for hydrological and environmental applications.
1.2. Related Work
2. Materials and Methods
2.1. Study Area
2.2. Data Preprocessing
2.3. Methodology
3. Experimentation Settings
3.1. Hardware and Software Environment
3.2. Implementation Specifics
3.2.1. CatBoost
3.2.2. LightGBM
3.2.3. MLP
3.2.4. XGBoost
3.2.5. Random Forest (RF)
3.3. Evaluation Metrics
3.3.1. Root Mean Squared Error (RMSE)
3.3.2. Mean Absolute Error (MAE)
3.3.3. Coefficient of Determination ()
4. Results
4.1. Comparative Analysis of Models
4.2. Detailed Analysis of the Correction Model Performance
4.3. Bias Correction and Quality Assessment of Precipitation Rasters
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Abbaspour, K.C.; Yang, J.; Maximov, I.; Siber, R.; Bogner, K.; Mieleitner, J.; Zobrist, J.; Srinivasan, R. Modelling hydrology and water quality in the pre-alpine/alpine Thur watershed using SWAT. J. Hydrol. 2007, 333, 413–430. [Google Scholar] [CrossRef]
- Brouziyne, Y.; Abouabdillah, A.; Bouabid, R.; Benaabidate, L. SWAT streamflow modeling for hydrological components’ understanding within an agro-sylvo-pastoral watershed in Morocco. Mater. Environ. Sci. 2018, 9, 128–138. [Google Scholar] [CrossRef]
- Guug, S.S.; Abdul-Ganiyu, S.; Kasei, R.A. Application of SWAT hydrological model for assessing water availability at the Sherigu catchment of Ghana and Southern Burkina Faso. HydroResearch 2020, 3, 124–133. [Google Scholar] [CrossRef]
- Pedro, P.C.; Salhi, A. Long-term hydroclimatic projections and climate change scenarios at regional scale in Morocco. J. Environ. Manag. 2024, 371, 123254. [Google Scholar] [CrossRef]
- Driouech, F.; Stafi, H.; Khouakhi, A.; Moutia, S.; Badi, W.; ElRhaz, K.; Chehbouni, A. Recent observed country-wide climate trends in Morocco. Int. J. Climatol. 2021, 41, E855–E874. [Google Scholar] [CrossRef]
- Fick, S.E.; Hijmans, R.J. WorldClim 2: New 1-km spatial resolution climate surfaces for global land areas. Int. J. Climatol. 2017, 37, 4302–4315. [Google Scholar] [CrossRef]
- Chakri, A.; Laftouhi, N.-E.; Ibnoussina, M.; Mandi, L. Contribution of hydraulic modeling and hydrology to flood prevention and design of engineering structures: Case study of a bridge over the Oued Ourika–Morocco. E3S Web Conf. 2024, 489, 04007. [Google Scholar] [CrossRef]
- El Bouazzaoui, I.; Ait Brahim, Y.; Amazirh, A.; Bougadir, B. Projections of future droughts in Morocco: Key insights from bias-corrected Med-CORDEX simulations in the Haouz region. Earth Syst. Environ. 2025. [Google Scholar] [CrossRef]
- Diani, K.; Hamza, M.H.; Elbelrhiti, H.; Kacimi, I.; Faqihi, F.Z.; Haghighi, A.T.; Elhag, M. Flood risk assessment, a case study in an arid environment of Southeast Morocco. Open Geosci. 2024, 16, 20220607. [Google Scholar] [CrossRef]
- Elair, C.; Rkha Chaham, K.; Karaoui, I.; Hadri, A. The Spatio-Temporal Analysis of Droughts Using the Standardized Precipitation Evapotranspiration Index and Its Impact on Cereal Yields in a Semi-Arid Mediterranean Region. Appl. Sci. 2025, 15, 1865. [Google Scholar] [CrossRef]
- Pizzorni, M.; Innocenti, A.; Tollin, N. Droughts and floods in a changing climate and implications for multi-hazard urban planning: A review. City Environ. Interact. 2024, 24, 100169. [Google Scholar] [CrossRef]
- Rachdane, M.; Saidi, M.E.; El Khalki, E.M.; Hadri, A.; Boughdadi, S.; Nehmadou, M.; Tramblay, Y. Unraveling flood dynamics at sub-daily time scales in semi-arid to arid basins in south Morocco. Nat. Hazards 2025, 121, 5413–5433. [Google Scholar] [CrossRef]
- Fuentes, M.; Reich, B.; Lee, G. Spatial–temporal mesoscale modeling of rainfall intensity using gage and radar data. Ann. Appl. Stat. 2008, 2, 1148–1169. [Google Scholar] [CrossRef]
- Posite, V.R.; Saber, M.; Ahana, B.S.; Abdelbaki, C.; Bessah, E.; Appiagyei, B.D.; Maouly, D.K.; Danquah, J.A. Modeling Spatio-Temporal Rainfall Distribution in Beni–Irumu, Democratic Republic of Congo: Insights from CHIRPS and CMIP6 under the SSP5-8.5 Scenario. Remote Sens. 2024, 16, 2819. [Google Scholar] [CrossRef]
- Hersbach, H.; Bell, B.; Berrisford, P.; Hirahara, S.; Horányi, A.; Muñoz-Sabater, J.; Nicolas, J.; Peubey, C.; Radu, R.; Schepers, D.; et al. The ERA5 global reanalysis. Q. J. R. Meteorol. Soc. 2020, 146, 1999–2049. [Google Scholar] [CrossRef]
- Mankin, K.R.; Mehan, S.; Green, T.R.; Barnard, D.M. Review of gridded climate products and their use in hydrological analyses reveals overlaps, gaps, and need for a more objective approach to selecting model forcing datasets. Hydrol. Earth Syst. Sci. 2025, 29, 85–108. [Google Scholar] [CrossRef]
- Risser, M.D.; Paciorek, C.J.; Wehner, M.F.; O’Brien, T.A.; Collins, W.D. A probabilistic gridded product for daily precipitation extremes over the United States. Clim. Dyn. 2019, 53, 2517–2538. [Google Scholar] [CrossRef]
- Gudmundsson, L.; Bremnes, J.B.; Haugen, J.E.; Engen-Skaugen, T. Technical Note: Downscaling RCM precipitation to river basin scale using statistical transformations – a comparison of methods. Hydrol. Earth Syst. Sci. 2012, 16, 3383–3398. [Google Scholar] [CrossRef]
- Mendez, M.; Maathuis, B.; Hein-Griggs, D.; Alvarado-Gamboa, L.-F. Performance Evaluation of Bias Correction Methods for Climate Change Monthly Precipitation Projections over Costa Rica. Water 2020, 12, 482. [Google Scholar] [CrossRef]
- Lehner, F.; Nadeem, I.; Formayer, H. Evaluating skills and issues of quantile-based bias adjustment for climate change scenarios. Adv. Stat. Clim. Meteorol. Oceanogr. 2023, 9, 29–44. [Google Scholar] [CrossRef]
- Papacharalampous, G.; Tyralis, H.; Doulamis, A.; Doulamis, N. Comparison of machine learning algorithms for merging gridded satellite and earth-observed precipitation data. arXiv 2022, arXiv:2301.01252. [Google Scholar] [CrossRef]
- Dao, V.; Jimenez-Arellano, C.; Nguyen, P.; Almutlaq, F.; Hsu, K.; Sorooshian, S. Bias Correction of Satellite Precipitation Estimation Using Deep Neural Networks and Topographic Information over the Western U.S. J. Geophys. Res. Atmos. 2025, 130. [Google Scholar] [CrossRef]
- Yoshikane, T.; Yoshimura, K. A machine learning bias correction method for precipitation corresponding to weather conditions using simple input data. ESS Open Archive 2021. [Google Scholar] [CrossRef]
- Soleymani, S.; Mohammadzadeh, S. Comparative Analysis of Machine Learning Algorithms for Solar Irradiance Forecasting in Smart Grids. arXiv 2023. [Google Scholar] [CrossRef]
- Kidd, C.; Becker, A.; Huffman, G.J.; Muller, C.L.; Joe, P.; Skofronick-Jackson, G.; Kirschbaum, D.B. So, How Much of the Earth’s Surface Is Covered by Rain Gauges? Bull. Am. Meteorol. Soc. 2017, 98, 69–78. [Google Scholar] [CrossRef]
- Muñoz-Sabater, J.; Dutra, E.; Agustí-Panareda, A.; Albergel, C.; Arduini, G.; Balsamo, G.; Boussetta, S.; Choulga, M.; Harrigan, S.; Hersbach, H.; et al. ERA5-Land: A state-of-the-art global reanalysis dataset for land applications. Earth Syst. Sci. Data 2021, 13, 4349–4383. [Google Scholar] [CrossRef]
- Funk, C.; Peterson, P.; Landsfeld, M.; Pedreros, D.H.; Verdin, J.; Shukla, S.; Husak, G.J.; Rowland, J.; Harrison, L.; Hoell, A.; et al. The climate hazards infrared precipitation with stations—A new environmental record for monitoring extremes. Sci. Data 2015, 2, 150066. [Google Scholar] [CrossRef] [PubMed]
- Huffman, G.; Adler, R.F.; Bolvin, D.T.; Gu, G.; Nelkin, E.J.; Bowman, K.P.; Hong, Y.; Stocker, E.; Wolf, D.B. The TRMM Multi-satellite Precipitation Analysis (TMPA): Quasi-global, multiyear, combined-sensor precipitation estimates at fine scales. J. Hydrometeorol. 2007, 8, 38–55. [Google Scholar] [CrossRef]
- Huffman, G.J.; Bolvin, D.T.; Braithwaite, D.; Hsu, K.; Joyce, R.; Xie, P. Integrated Multi-satellitE Retrievals for GPM (IMERG), version 4.4; NASA’s Precipitation Processing Center: Greenbelt, MD, USA, 2014. Available online: https://pmm.nasa.gov/data-access/downloads/gpm (accessed on 31 March 2015).
- Saha, S.; Moorthi, S.; Pan, H.; Wu, X.; Wang, J.; Nadiga, S.; Tripp, P.; Kistler, R.; Woollen, J.; Behringer, D.; et al. The NCEP Climate Forecast System Reanalysis. Bull. Am. Meteorol. Soc. 2010, 91, 1015–1057. [Google Scholar] [CrossRef]
- Peker, İ.B.; Sorman, A.A.; Cuceloglu, G.; Gülbaz, S. Impact of topographic conditions on the modelling performance of various global precipitation products in a mountainous basin. J. Hydrol. Hydromechan. 2025, 73, 210–220. [Google Scholar] [CrossRef]
- Maraun, D. Bias correcting climate change simulations—A critical review. Curr. Clim. Change Rep. 2016, 2, 211–220. [Google Scholar] [CrossRef]
- Beck, H.E.; van Dijk, A.I.J.M.; Levizzani, V.; Schellekens, J.; Miralles, D.G.; Martens, B.; de Roo, A. MSWEP: 3-hourly 0.25° global gridded precipitation (1979–2015) by merging gauge, satellite, and reanalysis data. Hydrol. Earth Syst. Sci. 2017, 21, 589–615. [Google Scholar] [CrossRef]
- Gutmann, E.; Pruitt, T.; Clark, M.P.; Brekke, L.; Arnold, J.R.; Raff, D.A.; Rasmussen, R.M. An intercomparison of statistical downscaling methods used for water resource assessments in the United States. Water Resour. Res. 2014, 50, 7167–7186. [Google Scholar] [CrossRef]
- Teutschbein, C.; Seibert, J. Bias correction of regional climate model simulations for hydrological climate-change impact studies: Review and evaluation of different methods. J. Hydrol. 2012, 456–457, 12–29. [Google Scholar] [CrossRef]
- Katiraie-Boroujerdy, P.-S.; Rahnamay Naeini, M.; Akbari Asanjan, A.; Chavoshian, A.; Hsu, K.-l.; Sorooshian, S. Bias Correction of Satellite-Based Precipitation Estimations Using Quantile Mapping Approach in Different Climate Regions of Iran. Remote Sens. 2020, 12, 2102. [Google Scholar] [CrossRef]
- Tanimu, B.; Bello, A.D.; Abdullahi, S.A.; Ajibike, M.A.; Yaseen, Z.M.; Kamruzzaman, M.; bin Muhammad, M.K.I.; Shahid, S. Comparison of conventional and machine learning methods for bias correcting CMIP6 rainfall and temperature in Nigeria. Theor. Appl. Climatol. 2024, 155, 4423–4452. [Google Scholar] [CrossRef]
- Li, H.; Zhang, Y.; Lei, H.; Hao, X. Machine Learning-Based Bias Correction of Precipitation Measurements at High Altitude. Remote Sens. 2023, 15, 2180. [Google Scholar] [CrossRef]
- Kratzert, F.; Klotz, D.; Herrnegger, M.; Sampson, A.K.; Hochreiter, S.; Nearing, G.S. Toward improved predictions in ungauged basins: Exploiting the power of machine learning. Water Resour. Res. 2019, 55, 11344–11354. [Google Scholar] [CrossRef]
- Chakri, A.; Laftouhi, N.-E.; Zouhri, L.; Ibouh, H.; Ibnoussina, M. Assessment of Satellite and Reanalysis Precipitation Data Using Statistical and Wavelet Analysis in Semi-Arid, Morocco. Water 2025, 17, 1714. [Google Scholar] [CrossRef]
- Dhawan, P.; Torre, D.D.; Niazkar, M.; Kaffas, K.; Larcher, M.L.; Righetti, M.; Menapace, A. A comprehensive comparison of bias correction methods in climate model simulations: Application on ERA5-Land across different temporal resolutions. Heliyon 2024, 10, e40352. [Google Scholar] [CrossRef]
- Rodrigues, J.A.; Farinha, J.T.; Mendes, M.; Mateus, R.J.G.; Cardoso, A.J.M. Comparison of different features and neural networks for predicting industrial paper press condition. Energies 2022, 15, 6308. [Google Scholar] [CrossRef]
- Rodrigues, J.A.; Farinha, J.T.; Cardoso, A.J.M.; Mendes, M.; Mateus, R.J.G.M. Prediction of sensor values in paper pulp industry using neural networks. In Proceedings of IncoME-VI and TEPEN 2021; Springer: Berlin/Heidelberg, Germany, 2021. [Google Scholar]
- Taud, H.; Mas, J.F. Multilayer Perceptron (MLP). Geomatic Approaches for Modeling Land Change Scenarios; Camacho Olmedo, M.T., Paegelow, M., Mas, J.-F., Escobar, F., Eds.; Springer: Cham, Switzerland, 2018; pp. 451–455. [Google Scholar] [CrossRef]
- Gardner, M.W.; Dorling, S.R. Artificial neural networks (the multilayer perceptron)—A review of applications in the atmospheric sciences. Atmos. Environ. 1998, 32, 2627–2636. [Google Scholar] [CrossRef]
- Dong, W.; Huang, Y.; Lehane, B.; Ma, G. XGBoost algorithm-based prediction of concrete electrical resistivity for structural health monitoring. Autom. Constr. 2020, 114, 103155. [Google Scholar] [CrossRef]
- Niazkar, M.; Menapace, A.; Brentan, B.; Piraei, R.; Jimenez, D.; Dhawan, P.; Righetti, M. Applications of XGBoost in water resources engineering: A systematic literature review (Dec 2018–May 2023). Environ. Model. Softw. 2024, 174, 105971. [Google Scholar] [CrossRef]
- Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. CatBoost: Unbiased boosting with categorical features. arXiv 2019, arXiv:1706.09516. [Google Scholar] [CrossRef]
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.Y. LightGBM: A highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Available online: https://proceedings.neurips.cc/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html (accessed on 7 July 2025).
- Sinha, B.B.; Ahsan, M.; Dhanalakshmi, R. LightGBM empowered by whale optimization for thyroid disease detection. Int. J. Inf. Technol. 2023, 15, 2053–2062. [Google Scholar] [CrossRef]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Biau, G.; Scornet, E. A random forest guided tour. Test 2016, 25, 197–227. [Google Scholar] [CrossRef]
- Probst, P.; Bischl, B.; Boulesteix, A.-L. Tunability: Importance of hyperparameters of machine learning algorithms. J. Mach. Learn. Res. 2018, 20, 1–32. [Google Scholar]
- Schratz, P.; Muenchow, J.; Iturritxa, E.; Richter, J.; Brenning, A. Hyperparameter tuning and performance assessment of statistical and machine learning algorithms using spatial data. Ecol. Model. 2018, 407, 108–120. [Google Scholar] [CrossRef]
- Li, X.; Liu, Y.; Wang, Z.; Zhang, J.; Chen, D. RAINER: A rainfall prediction framework integrating optimized hyperparameter tuning and hybrid machine learning. Environ. Model. Softw. 2025, 176, 106628. [Google Scholar] [CrossRef]
- Kanda, N.; Fletcher, C.G. Evaluating a hierarchy of bias correction methods for ERA5-Land SWE in northern Canada. EGUsphere 2024, 1–24. [Google Scholar] [CrossRef]
- Zhang, S.; Harrop, B.; Leung, L.R.; Charalampopoulos, A.T.; Sorensen, B.B.; Xu, W.; Sapsis, T.P. A Machine Learning Bias Correction of Large scale Environment of High Impact Weather Systems in E3SM Atmosphere Model. J. Adv. Model Earth Syst. 2024, 16, e2023MS004138. [Google Scholar] [CrossRef]
- Seo, G.Y.; Ahn, J.B. Comparison of Bias Correction Methods for Summertime Daily Rainfall in South Korea Using Quantile Mapping and Machine Learning Model. Atmosphere 2023, 14, 1057. [Google Scholar] [CrossRef]
- Sun, H.; Yao, T.; Su, F.; He, Z.; Tang, G.; Li, N.; Zheng, B.; Huang, J.; Meng, F.; Ou, T.; et al. Corrected ERA5 Precipitation by Machine Learning Significantly Improved Flow Simulations for the Third Pole Basins. J. Hydrometeorol. 2022, 23, 1663–1679. [Google Scholar] [CrossRef]
- Gassman, P.W.; Reyes, M.R.; Green, C.H.; Arnold, J.G. The Soil and Water Assessment Tool: Historical Development, Applications, and Future Research Directions. Trans. ASABE 2007, 50, 1211–1250. [Google Scholar] [CrossRef]
- U.S. Army Corps of Engineers, Hydrologic Engineering Center (USACE-HEC). HEC-HMS Hydrologic Modeling System User’s Manual (CPD-74A); USACE-HEC: Davis, CA, USA, 2000; Available online: https://www.hec.usace.army.mil/software/hec-hms/documentation.aspx (accessed on 15 August 2025).


















| Station | Number of Samples | Start Date (Year-Month) | End Date (Year-Month) |
|---|---|---|---|
| Abadla | 456 | 01–1981 | 12–2018 |
| Adamna | 456 | 01–1981 | 12–2018 |
| Agafay | 252 | 01–2003 | 12–2023 |
| Agdal | 228 | 01–2005 | 12–2023 |
| Aghbalou | 456 | 01–1981 | 12–2018 |
| Chichaoua | 456 | 01–1981 | 12–2018 |
| Dyk−eSafi | 456 | 01–1981 | 12–2018 |
| Elmassira−Dam | 456 | 01–1981 | 12–2018 |
| Ghmate | 50 | 01–2019 | 12–2023 |
| Iloudjane | 456 | 01–1981 | 12–2018 |
| Imine−Elhammam | 456 | 01–1981 | 12–2018 |
| Laraba | 83 | 01–2017 | 12–2023 |
| Marrakech | 456 | 01–1981 | 12–2018 |
| N’kouris | 456 | 01–1981 | 12–2018 |
| Sidi−Bou−Othman | 456 | 01–1981 | 12–2018 |
| Sidi−Rahal | 456 | 01–1981 | 12–2018 |
| Taferiat | 456 | 01–1981 | 12–2018 |
| Tahnaout | 456 | 01–1981 | 12–2018 |
| Talmest | 456 | 01–1981 | 12–2018 |
| Tameslouht | 63 | 01–2018 | 12–2023 |
| Station | Temperature (°C) | Wind Speed (m/s) | Radiation (W/m2) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Std | Min | Max | Mean | Std | Min | Max | Mean | Std | Min | Max | |
| Abadla | 19.96 | 5.59 | 10.19 | 30.84 | 3.29 | 0.55 | 1.91 | 4.58 | 234.99 | 68.95 | 117.93 | 345.62 |
| Adamna | 18.54 | 3.68 | 11.86 | 26.69 | 4.16 | 0.76 | 2.15 | 6.16 | 238.36 | 69.27 | 113.98 | 343.03 |
| Agafay | 19.51 | 5.91 | 8.98 | 31.14 | 2.24 | 0.19 | 1.79 | 2.75 | 233.11 | 63.87 | 129.06 | 339.85 |
| Agdal | 19.91 | 6.13 | 8.64 | 32.19 | 1.96 | 0.21 | 1.50 | 2.46 | 231.47 | 64.26 | 126.83 | 338.99 |
| Aghbalou | 11.16 | 6.17 | −0.32 | 22.66 | 1.45 | 0.12 | 1.15 | 1.75 | 231.72 | 61.04 | 120.78 | 335.38 |
| Chichaoua | 18.69 | 5.25 | 9.47 | 29.31 | 2.82 | 0.39 | 1.77 | 4.03 | 235.73 | 67.32 | 123.67 | 344.17 |
| Dyke−Safi | 18.39 | 3.79 | 10.92 | 25.45 | 4.20 | 0.59 | 2.70 | 5.55 | 231.23 | 70.01 | 107.31 | 336.76 |
| Elmassira−Dam | 19.31 | 5.68 | 9.63 | 30.32 | 3.36 | 0.73 | 1.95 | 4.89 | 230.57 | 72.09 | 104.56 | 344.29 |
| Ghmate | 18.31 | 5.90 | 9.00 | 30.04 | 1.62 | 0.07 | 1.49 | 1.80 | 226.56 | 60.86 | 130.31 | 326.40 |
| Iloudjane | 16.06 | 5.64 | 5.90 | 27.76 | 1.97 | 0.23 | 1.46 | 2.71 | 235.33 | 64.58 | 124.87 | 342.72 |
| Imine−Elhammam | 14.18 | 5.98 | 3.34 | 25.48 | 1.45 | 0.08 | 1.24 | 1.75 | 231.71 | 62.33 | 124.24 | 337.79 |
| Laraba | 20.28 | 6.43 | 10.29 | 32.29 | 1.91 | 0.16 | 1.59 | 2.39 | 233.05 | 61.20 | 131.82 | 331.71 |
| Marrakech | 18.51 | 5.71 | 8.54 | 30.63 | 2.20 | 0.19 | 1.78 | 2.84 | 231.58 | 63.86 | 124.70 | 339.09 |
| Nkouris | 11.16 | 6.22 | 0.06 | 22.48 | 1.52 | 0.12 | 1.26 | 2.00 | 235.03 | 61.93 | 127.92 | 340.75 |
| Sid−iBou−Othman | 18.86 | 5.52 | 9.07 | 29.71 | 3.19 | 0.50 | 2.05 | 4.48 | 232.59 | 69.58 | 115.36 | 344.26 |
| Sidi−Rahal | 17.50 | 6.02 | 6.83 | 30.49 | 2.02 | 0.19 | 1.55 | 2.85 | 229.18 | 63.13 | 118.36 | 337.17 |
| Taferiat | 16.28 | 5.85 | 5.93 | 29.00 | 1.74 | 0.18 | 1.32 | 2.50 | 228.67 | 62.28 | 118.63 | 335.79 |
| Tahnaout | 16.43 | 5.82 | 5.34 | 27.61 | 1.56 | 0.11 | 1.29 | 1.85 | 230.84 | 62.62 | 122.12 | 336.81 |
| Talmest | 18.07 | 3.87 | 10.98 | 26.26 | 3.26 | 0.39 | 2.32 | 4.45 | 233.82 | 70.60 | 107.71 | 341.48 |
| Tameslouht | 20.21 | 5.81 | 10.13 | 31.20 | 2.23 | 0.17 | 1.78 | 2.74 | 234.26 | 61.38 | 132.80 | 330.84 |
| Station | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | Sta. | ERA5 | |
| Abadla | 23.31 | 29.27 | 22.48 | 29.99 | 26.46 | 28.98 | 17.65 | 22.95 | 8.64 | 11.05 | 1.15 | 4.31 | 0.59 | 2.59 | 0.77 | 3.48 | 4.57 | 7.61 | 13.68 | 19.07 | 29.65 | 33.63 | 18.10 | 26.29 |
| Adamna | 52.83 | 37.08 | 45.62 | 36.95 | 40.90 | 34.25 | 21.57 | 26.28 | 9.70 | 11.92 | 1.00 | 1.82 | 0.00 | 0.29 | 0.35 | 1.10 | 4.23 | 5.57 | 30.35 | 20.81 | 59.24 | 48.06 | 60.23 | 36.89 |
| Agafay | 29.40 | 37.14 | 33.90 | 44.29 | 32.83 | 44.01 | 19.93 | 37.96 | 15.78 | 25.39 | 2.28 | 5.67 | 2.47 | 1.61 | 4.70 | 4.44 | 13.75 | 24.55 | 30.10 | 38.19 | 42.85 | 45.37 | 33.94 | 24.64 |
| Agdal | 17.35 | 40.71 | 24.09 | 42.68 | 25.05 | 50.36 | 20.09 | 47.35 | 12.43 | 42.45 | 1.65 | 20.01 | 1.11 | 11.87 | 5.05 | 21.49 | 10.64 | 41.85 | 12.67 | 40.29 | 23.16 | 47.02 | 14.59 | 25.59 |
| Aghbalou | 57.48 | 33.36 | 60.46 | 46.22 | 77.67 | 54.74 | 68.31 | 57.66 | 44.94 | 59.05 | 12.75 | 41.07 | 6.15 | 26.08 | 11.40 | 43.33 | 22.51 | 62.44 | 46.38 | 60.12 | 62.41 | 45.79 | 37.03 | 29.24 |
| Chichaoua | 23.92 | 30.84 | 24.77 | 32.39 | 27.06 | 31.75 | 19.83 | 26.10 | 8.27 | 15.11 | 2.38 | 5.07 | 0.99 | 1.98 | 0.75 | 3.19 | 5.58 | 9.80 | 13.56 | 22.66 | 30.73 | 32.09 | 20.61 | 22.57 |
| Dyke−Safi | 63.20 | 50.50 | 52.04 | 47.22 | 41.72 | 38.20 | 28.88 | 29.65 | 12.68 | 13.78 | 2.80 | 3.63 | 0.31 | 1.16 | 0.26 | 1.38 | 4.53 | 7.04 | 39.38 | 29.88 | 82.96 | 67.02 | 73.91 | 54.75 |
| Elmassira−Dam | 27.62 | 37.94 | 26.08 | 35.88 | 25.17 | 37.86 | 16.05 | 30.35 | 6.95 | 17.86 | 2.92 | 6.04 | 0.09 | 2.54 | 0.58 | 3.47 | 4.17 | 10.63 | 18.07 | 25.23 | 34.13 | 45.74 | 29.53 | 39.21 |
| Ghmate | 10.60 | 19.32 | 27.90 | 42.78 | 46.10 | 69.56 | 44.30 | 52.79 | 20.90 | 36.41 | 1.05 | 15.38 | 7.15 | 5.86 | 0.65 | 9.53 | 7.70 | 24.89 | 22.55 | 27.47 | 10.80 | 17.82 | 29.00 | 27.84 |
| Iloudjane | 41.37 | 36.50 | 39.96 | 48.09 | 43.82 | 52.37 | 41.10 | 39.95 | 18.57 | 28.97 | 9.31 | 15.91 | 3.25 | 10.32 | 7.81 | 18.56 | 11.52 | 32.16 | 29.74 | 47.36 | 38.76 | 44.80 | 31.81 | 30.58 |
| Imine−Elhammam | 40.94 | 37.73 | 41.72 | 49.27 | 53.29 | 58.12 | 50.67 | 51.91 | 30.97 | 34.53 | 11.64 | 17.43 | 3.59 | 7.41 | 4.83 | 14.47 | 15.11 | 36.90 | 43.50 | 53.30 | 44.48 | 47.69 | 26.44 | 31.68 |
| Laraba | 15.50 | 20.92 | 31.61 | 41.16 | 40.73 | 57.09 | 34.30 | 48.95 | 12.63 | 28.13 | 0.81 | 8.22 | 4.57 | 7.30 | 6.66 | 11.85 | 6.79 | 18.34 | 23.40 | 27.98 | 22.63 | 23.16 | 21.65 | 26.73 |
| Marrakech | 28.53 | 43.13 | 26.71 | 45.31 | 32.75 | 50.44 | 24.48 | 47.29 | 11.45 | 29.23 | 3.02 | 8.92 | 1.49 | 2.09 | 4.72 | 3.82 | 10.22 | 20.44 | 15.18 | 40.04 | 33.72 | 45.00 | 21.53 | 32.12 |
| Nkouris | 27.87 | 37.73 | 32.96 | 49.27 | 35.20 | 58.12 | 19.19 | 51.91 | 11.41 | 34.53 | 4.96 | 17.43 | 3.31 | 7.41 | 8.99 | 14.47 | 10.67 | 36.90 | 26.37 | 53.30 | 32.01 | 47.69 | 24.39 | 31.68 |
| Sidi−Bou−Othman | 42.82 | 29.91 | 41.54 | 30.69 | 49.30 | 32.76 | 50.11 | 28.48 | 21.04 | 16.69 | 12.12 | 7.75 | 3.36 | 5.49 | 5.78 | 7.76 | 16.48 | 11.84 | 42.10 | 21.80 | 40.89 | 33.23 | 35.75 | 25.97 |
| Sidi−Rahal | 43.86 | 49.24 | 40.40 | 56.34 | 44.15 | 67.59 | 36.92 | 70.13 | 21.82 | 62.90 | 8.13 | 35.26 | 2.41 | 19.89 | 7.43 | 31.09 | 13.31 | 51.51 | 33.22 | 58.68 | 49.51 | 54.56 | 30.82 | 36.89 |
| Taferiat | 44.32 | 49.24 | 43.36 | 56.34 | 52.23 | 67.59 | 37.90 | 70.13 | 20.84 | 62.90 | 10.80 | 35.26 | 1.73 | 19.89 | 6.61 | 31.09 | 13.85 | 51.51 | 37.72 | 58.68 | 51.35 | 54.56 | 37.51 | 36.89 |
| Tahnaout | 47.05 | 37.50 | 48.56 | 49.82 | 53.43 | 61.42 | 51.30 | 61.48 | 28.54 | 54.91 | 9.35 | 36.99 | 3.92 | 21.42 | 6.84 | 36.42 | 15.12 | 57.28 | 31.70 | 60.36 | 45.46 | 47.94 | 26.33 | 30.51 |
| Talmest | 49.71 | 36.72 | 39.53 | 37.72 | 35.64 | 34.41 | 24.38 | 27.53 | 5.69 | 12.25 | 1.07 | 3.09 | 0.07 | 0.63 | 0.06 | 1.18 | 4.09 | 7.05 | 23.48 | 21.70 | 46.75 | 45.52 | 49.87 | 34.84 |
| Tameslouht | 10.01 | 17.82 | 21.99 | 47.88 | 54.51 | 59.09 | 19.01 | 44.77 | 2.69 | 13.53 | 0.60 | 3.35 | 1.49 | 1.02 | 0.64 | 1.49 | 4.42 | 13.06 | 17.12 | 34.49 | 11.30 | 34.09 | 21.59 | 23.46 |
| Model | Architecture/Layers | Learning Rate | Batch Size | Optimizer/Method | Epochs | Search Space (Values Tested) |
|---|---|---|---|---|---|---|
| CatBoost | Gradient Boosting Trees (Depth = 8) | 0.01 | – | Gradient Boosting | 1000 | depth = [6, 8, 10] learning_rate = [0.005, 0.01, 0.05] iterations = [500, 1000] |
| LightGBM | GBDT (Max Depth = 12) | 0.01 | – | Gradient Boosting | 800 | num_leaves = [31, 50, 100] max_depth = [8, 12] learning_rate = [0.005, 0.01, 0.05] |
| XGBoost | GBDT (Max Depth = 6) | 0.01 | – | Gradient Boosting | 500 | learning_rate = [0.005, 0.01, 0.05] max_depth = [4, 6, 8] n_estimators = [200, 500, 800] |
| MLP | Fully Connected Layers | 0.01 | 256 | Adam | 200 | hidden_layer_sizes = [(128, 64), (256, 128)] activation = [ReLU, Tanh] learning_rate = [0.001, 0.01] batch_size = [128, 256] |
| Random Forest | Ensemble of 250 Decision Trees | – | – | Bagging (Bootstrap) | 250 | n_estimators = [100, 250, 500] max_depth = [None, 10, 20] min_samples_split = [2, 5] |
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
Chakri, A.; Abakarim, S.; Rodrigues, J.C.A.; Laftouhi, N.-E.; Ibouh, H.; Zouhri, L.; Zaitseva, E. Spatial Bias Correction of ERA5_Ag Reanalysis Precipitation Using Machine Learning Models in Semi-Arid Region of Morocco. Atmosphere 2025, 16, 1234. https://doi.org/10.3390/atmos16111234
Chakri A, Abakarim S, Rodrigues JCA, Laftouhi N-E, Ibouh H, Zouhri L, Zaitseva E. Spatial Bias Correction of ERA5_Ag Reanalysis Precipitation Using Machine Learning Models in Semi-Arid Region of Morocco. Atmosphere. 2025; 16(11):1234. https://doi.org/10.3390/atmos16111234
Chicago/Turabian StyleChakri, Achraf, Sana Abakarim, João C. Antunes Rodrigues, Nour-Eddine Laftouhi, Hassan Ibouh, Lahcen Zouhri, and Elena Zaitseva. 2025. "Spatial Bias Correction of ERA5_Ag Reanalysis Precipitation Using Machine Learning Models in Semi-Arid Region of Morocco" Atmosphere 16, no. 11: 1234. https://doi.org/10.3390/atmos16111234
APA StyleChakri, A., Abakarim, S., Rodrigues, J. C. A., Laftouhi, N.-E., Ibouh, H., Zouhri, L., & Zaitseva, E. (2025). Spatial Bias Correction of ERA5_Ag Reanalysis Precipitation Using Machine Learning Models in Semi-Arid Region of Morocco. Atmosphere, 16(11), 1234. https://doi.org/10.3390/atmos16111234

