Peer Reviewed Open Access Journal
ISSN: 3139-3349
Background: In water resources management and flood risk reduction, accurate rainfall category forecasting is a crucial and complex climatic element due to its inherent variability in accuracy, particularly in semi-arid environments where precipitation rates are often unstable. Developing a framework for forecasting daily rainfall categories in Mosul, a semi-arid city in Iraq, is of paramount importance.
Methods: This study classifies rainfall data into four categories based on rainfall quantities: dry, light, moderate, and heavy. The dominance of dry days (approximately 86%) in Mosul creates a data class imbalance. To overcome this, class weights and decision threshold adjustments were employed to mitigate the dominance of the prevailing category. The study compares the traditional probabilistic model, First-Order Markov Chain (FOMC) model, with Generalized Additive Model (GAM) in capturing non-linear and seasonal relationships. In this study, the AR concept is adopted in the GAM environment that allows multiple temporal lags to be incorporated. Thus, the temporal memory of rainfall and its categories can be represented. This surpasses the limitations of higher-order MC models and the strict stationarity assumptions of ARIMA models.
Results: The results show that the GAM model outperforms the MC in accuracy and probabilistic evaluation, indicating MC 's failure to predict rare events due to its near-zero probabilities. Furthermore, the enhanced model (GAM with Lag 1 - 4) demonstrates superiority over the simpler GAM model across all measures.
Conclusion: Therefore, it is possible to conclude that combining the concept of autoregression with GAM provides an advantage by being a flexible and interpretable predictive tool that outperforms other models, especially in semi-arid environments, and also provides a solid foundation for environmental risk management.
Rainfall categories, Generalized Additive Model (GAM), Markov chain, Forecasting
Al-Nassar, A. R., Pelegrí, J. L., & Masciángioli, P. (2026). On the temporal variability of precipitation in Iraq: Arid-wet years and extreme events. International Journal of Climatology, 46(7), e70350. https://doi.org/10.1002/joc.70350
Anfossi, D., Cappa, C., Von Hardenberg, J., & Provenzale, A. (2002). Statistical analysis of three series of daily rainfall in north-western Italy. Nuovo Cimento della Società Italiana di Fisica C, 25(1), 99-122.
Chhatre, R. H., O’Donnell, J., & Ravishanker, N. (2026). Evaluating statistical methods for modeling and forecasting hourly precipitations. Japanese Journal of Statistics and Data Science, 1-32. https://doi.org/10.1007/s42081-026-00366-w
Chowdhury, D. P., Roy, D., & Saha, U. (2025). Study of rainfall occurrence process by Markov chain models and decision tree-based ensemble and boosting techniques. Water Resources Management, 39(6), 2857-2877. https://doi.org/10.1007/s11269-025-04095-9
Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861-874. https://doi.org/10.1016/j.patrec.2005.10.010
Gneiting, T., & Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477), 359-378. https://doi.org/10.1198/016214506000001437
Grandini, M., Bagli, E., & Visani, G. (2020). Metrics for multi-class classification: An overview. arXiv. https://doi.org/10.48550/arXiv.2008.05756
Hajani, E., & Sarma, G. (2023). Generation of rainfall data series by using the Markov chain model in three selected sites in the Kurdistan Region, Iraq. AI in Civil Engineering, 2(1), 5. https://doi.org/10.1007/s43503-023-00014-2
Hand, D. J., & Till, R. J. (2001). A simple generalisation of the area under the ROC curve for multiple class classification problems. Machine Learning, 45(2), 171-186. https://doi.org/10.1023/A:1010920819831
Hasan, S. T. H., & Shukur, O. B. (2025). Chaotic time series forecasting by using echo state network and autoregressive model. Iraqi Statisticians Journal, 2(Special Issue for ICSA2025), 1-11. https://doi.org/10.62933/faqd2g68
Hastie, T., & Tibshirani, R. (1986). [Generalized additive models]: Rejoinder. Statistical Science, 1(3), 314-318. https://doi.org/10.1214/ss/1177013604
Hyndman, R. J., & Grunwald, G. K. (2000). Applications: Generalized additive modelling of mixed distribution Markov models with application to Melbourne’s rainfall. Australian & New Zealand Journal of Statistics, 42(2), 145-158. https://doi.org/10.1111/1467-842X.00115
Nafea, K., & Al-Dujaili, A. M. J. (2026). Rainfall prediction using machine learning in Nineveh Governorate, Iraq [Conference paper]. Forum Geografi. https://doi.org/10.23917/forgeo.16759
Nafea, K. R. (2026). Atlas of forecasting for climate Nineveh Governorate [Unpublished doctoral dissertation]. Al-Iraqia University.
Ohaegbulem, A. F., & Nwobi, F. N. (2026). A stochastic assessment of monthly rainfall pattern: A case of Owerri, Nigeria. Research in Statistics, 4(1), 2655510. https://doi.org/10.1080/27684520.2026.2655510
Shukur, O. B. (2021). Using hybrid procedure in generalized additive model and classification tree to classify agriculture evaporation in Mosul city. International Journal of Agricultural and Statistical Sciences, 17(1), 1509- 1514. https://www.connectjournals.com/pages/articledetails/toc034635
Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427-437. https://doi.org/10.1016/j.ipm.2009.03.002
Vu, D. D., Nguyen, A. H., Nguyen, P. T., Thi, H. N., & Nguyen, T. T. N. (2025). Approaches to improving rainfall classification accuracy in Central Vietnam using machine learning models. Korean Journal of Remote Sensing, 41(2), 261-276. https://doi.org/10.7780/kjrs.2025.41.2.1.2
Wood, S. N. (2017). Generalized additive models: An introduction with R (2nd ed.). Chapman and Hall/CRC.
Wood, S. N., Pya, N., & Säfken, B. (2016). Smoothing parameter and model selection for general smooth models. Journal of the American Statistical Association, 111(516), 1548-1563. https://doi.org/10.1080/01621459.2016.1180986
Yusif, C. Y. (2024). Statistical modeling of daily precipitation process in the context of climate change [Doctoral dissertation, McGill University]. https://doi.org/10.82308/15181
