Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Optimizing Rainfall Prediction in Settat, Morocco, Through Machine Learning

Author 1: Oussama Zemnazi Author 2: Sanaa El Filali Author 3: Sara Ouahabi Author 4: Abderrahim Mouhtadi
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 4 · Published 2026

DOI: 10.14569/IJACSA.2026.0170444

Abstract

Rainfall prediction is still a difficult challenge because rainfall is nonlinear, intermittent, and highly variable, especially in semi-arid climates. Accurate rainfall prediction is crucial for water resource management, agricultural planning, climate-driven decision-making, and more. This study proposes a comparative framework based on machine learning and ensemble learning techniques to predict daily rainfall in Settat, Morocco, as a representative semi-arid region. Five predictive models were trained and evaluated based on meteorological station observations: Random Forest, XGBoost, LightGBM, CatBoost, and a Multilayer Perceptron (MLP). The models' performance was evaluated based on mean absolute error (MAE), mean squared error (MSE), root mean square error (RMSE), and the coefficient of determination (R-squared). The results demonstrate that the performance and stability of gradient boosting algorithms are superior to all other evaluated models. Specifically, LightGBM produced the fewest erroneous values and explained rainfall variability best. These results underscore the success of boosting-based ensemble techniques in modeling inconsistent precipitation patterns and provide a comparative framework for machine-learning-based rainfall forecasting in semi-arid environments.

Keywords

How to Cite this Article

Zemnazi, O., Filali, S. E., Ouahabi, S., & Mouhtadi, A. (2026). Optimizing Rainfall Prediction in Settat, Morocco, Through Machine Learning. International Journal of Advanced Computer Science and Applications, 17(4). https://doi.org/10.14569/IJACSA.2026.0170444

Zemnazi, Oussama, et al.. "Optimizing Rainfall Prediction in Settat, Morocco, Through Machine Learning." International Journal of Advanced Computer Science and Applications, vol. 17, no. 4, 2026, https://doi.org/10.14569/IJACSA.2026.0170444.

@article{Zemnazi2026,
  title     = {Optimizing Rainfall Prediction in Settat, Morocco, Through Machine Learning},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {4},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Oussama Zemnazi and Sanaa El Filali and Sara Ouahabi and Abderrahim Mouhtadi},
  doi       = {10.14569/IJACSA.2026.0170444},
  url       = {https://doi.org/10.14569/IJACSA.2026.0170444}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 12, December 2026
Paper Submission Due November 25, 2026
Review Notification December 15, 2026
Publication Date December 31, 2026