EVALUATING DIRECT AND RESIDUAL MACHINE-LEARNING MODELS AGAINST HISTORICAL CLIMATOLOGY FOR DEKADAL RAINFALL PREDICTION IN 30 ADMINISTRATIVE REGIONS OF PAKISTAN

Authors

  • Ukasha Ijaz Author
  • Nimra Traiq Author
  • Tehmina Mukthar Author
  • Noman Nasir Author
  • Kainat Fatima Author

Keywords:

Dekadal rainfall; rainfall forecasting; Pakistan; XGBoost; Random Forest; climatology; time-series validation; regional prediction.

Abstract

Dekadal (or ten day) rainfall forecasts are crucial for several sectors including agriculture and drought management. This study analyzes direct and residual machine-learning methods for dekadal rainfall forecasting for Pakistan’s 30 administrative divisions. The final dataset comprised 46,980 region-dekad observations for the period 1st Jan. 1981 to 21st June 2024. Four regression algorithms (Ridge, Random Forest, XGBoost, and CatBoost) were benchmarked against three feature configurations using expanding window validation (2004-2018) with 5 folds and 10 repeated passes. XGBoost, with temporal, seasonal and regional features, achieved best direct performance with mean validation RMSE of 12.8561 and R² of 0.5210. Residual Random Forest with regional features achieved mean validation RMSE of 13.1884, and R² of 0.4646. RMSEs of climatology and Random Forest within benchmarking window were 13.3452 and 12.9586, respectively. XGBoost’s RMSE over climatology improved by 0.80% (direct), and Random Forest’s improved by 1.27% (residual). The test period (1st Jan. 2019 to 21st June 2024, 5,940 observations) was locked, and XGBoost achieved lowest test RMSE (14.7276), and best R² (0.4726) of all models. Random Forest achieved lowest mean absolute error of 7.2061. Data for the final three years of the test period was used to analyze feature importance and to generate observed vs. predicted graphs. The trends of annual and seasonal variations are described in several graphs.

Downloads

Published

2026-10-31