arXiv:2610.38211cs.LGOct 2026

Manuscript Offprint

arXiv:2610.38211

RainCheck: Harnessing Historical Weather Data with Machine Learning for Rainfall Forecasting in Bangladesh

Shahran Rahman Alve, Muhammad Zawad Mahmud, Samiha Islam, Al Jubayer Pial

Abstract

Machine-learning rainfall forecasts are often evaluated by shuffling station records into random training and test sets. For rainfall, this lets a model see what happened at neighbouring stations on the very day it is asked to forecast, and it hides the fact that a seasonal lookup table already explains most of the variance. We quantify both effects on 618,650 station-days from 35 Bangladesh Meteorological Department stations (1948–2014). We compare random, temporal (train ≤\leq1999, test 2005–2014) and spatio-temporal (unseen stations and unseen years) evaluation, calendar-only versus antecedent-rainfall features, and six learners against climatology, persistence and SARIMA. Three findings stand out. First, a station-month climatology alone classifies high-rainfall months with 88.4% accuracy (AUC 0.950), and no learner improved on it by more than 0.8 points under temporal evaluation. Second, a calendar-only random forest reached a next-day wet-day AUC of 0.889 under a random split, higher than any model with real predictors under temporal evaluation, yet fell to 0.835, below climatology (0.859), on future years. Third, models with lagged rainfall add genuine but modest skill for next-day forecasts: a Brier skill score of 0.074 (95% CI 0.064–0.088) over climatology, rising to 0.091 when station and year inputs are removed and to 0.131 when other stations' same-day observations are added. A GRU sequence model matches but does not exceed gradient boosting, and skill disappears beyond a two-day lead. For monthly totals, no learner beat climatology significantly. We release a leakage-aware protocol and code so that future

station-based studies report skill against climatology on held-out years.

1. Introduction

Bangladesh receives most of its annual rainfall during the June–September monsoon, and both excess and deficit rainfall have large consequences for floods, agriculture and public health (Shahid, 2010; Karim et al., 2020). Station records from the Bangladesh Meteorological Department (BMD) are freely available for several decades (Redikod), and studies have trained standard learners such as linear models, kk-nearest neighbours, decision trees, random forests and support vector machines on such records. Comparable studies in other countries report high accuracies for daily or monthly rainfall (Cramer et al., 2017; Ridwan et al., 2021; Pham et al., 2020; Liyew & Melese, 2021; Barrera-Animas et al., 2022; Rahman et al., 2022).

These numbers are hard to interpret for two reasons. The first is the evaluation split. When station-days are shuffled into training and test sets, the training set contains the same calendar day at other stations. Because rainfall is spatially correlated (the median correlation of same-day rainfall between two BMD stations is 0.31, and 0.51 for rain/no-rain occurrence in our data), a model that only sees the station identity and the date can recover part of the answer from neighbouring stations. This is a form of data leakage (Kaufman et al., 2012; Kapoor & Narayanan, 2023), and random cross-validation is known to overstate skill for temporally and spatially structured data (Bergmeir & Benítez, 2012; Roberts et al., 2017; Ploton et al., 2020; Cerqueira et al., 2020). The second reason is the reference forecast. Rainfall in Bangladesh has a strong seasonal cycle, so a large share of the variance in monthly totals, and much of the separation between “high” and “low” rainfall cases, can be obtained by simply forecasting the long-term average for that station and time of year. Forecast verification therefore reports skill relative to climatology rather than raw accuracy (Murphy, 1988; 1993; Wilks, 2019).

A common setup trains learners on calendar inputs alone (station, year, month, day), evaluates them on a random split, and reports accuracy or R2R^2 without a climatological refer-

¹Department of Electrical and Computer Engineering, North South University, Bashundhara, Dhaka-1229, Bangladesh. Correspondence to: Shahran Rahman Alve shahran.alve@northsouth.edu, Muhammad Zawad Mahmud zawad.mahmud1@northsouth.edu, Samiha Islam samiha.islam2@northsouth.edu, Al Jubayer Pial jubayer.pial@northsouth.edu.

Preprint. October 30, 2026.

ence. In this paper we ask how much of the performance obtained in this way survives a stricter evaluation, and what skill station data can actually provide.

Contributions. (1) We build a cleaned version of the public BMD station dataset in which missing days are treated as missing rather than as zero rainfall, and define four forecasting tasks: next-day rain occurrence, next-day amount, next-day heavy rain (≥44 mm), and one-month-ahead totals. (2) We compare three evaluation protocols (random, temporal, spatio-temporal) and two feature sets (calendar-only, antecedent rainfall) for six learners and four reference forecasts, with repeated seeds, block-bootstrap confidence intervals and Diebold–Mariano tests. (3) We show that the random split inflates calendar-only models, that climatology explains almost all of the apparent monthly skill, and that lagged rainfall adds real but small next-day skill that varies by season. (4) In further experiments we show that station and year inputs reduce skill even under a clean split, that skill vanishes beyond two days, that observations from neighbouring stations add skill legitimately, that a recurrent sequence model brings no gain over trees, and that zero-filling missing data creates artificial droughts. (5) We release code and a checklist for leakage-aware evaluation of station-based rainfall models. Figure 1 summarises the workflow.

References (50)