Ensemble and temporal feature-based framework for rainfall classification in Bangladesh
Mahir Shahriar Tamim, Md. Samiul Alim, Tanvir Ahmed Khan, Maisha Rahman, Md Musfique Anwar
North South University · Jahangirnagar University
Key points
From the paper's conclusion- This study proposes a robust machine learning framework for rainfall intensity classification at the daily temporal scale and nationwide spatial coverage, using over 543,839 daily weather records collected from 35 meteorological stations across several decades from a publicly available national meteorological dataset.
Abstract
Accurate rainfall classification is essential for Bangladesh, where monsoon variability strongly influences agriculture, water resource management, and disaster preparedness. This study proposes a robust machine learning framework for rainfall intensity classification at the daily temporal scale and nationwide spatial coverage, using over 543,839 daily weather records collected from 35 meteorological stations across several decades from a publicly available national meteorological dataset. The dataset includes rainfall, temperature, humidity, and sunshine duration, which were preprocessed and categorized into four intensity levels: No Rain, Light Rain, Moderate Rain, and Very Heavy Rain. Various models were evaluated, including Random Forest, Decision Trees, Gradient Boosting, K-Nearest Neighbors, Naïve Bayes, Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LightGBM), and Categorical Boosting (CatBoost), along with deep learning architectures such as Artificial Neural Network (ANN), Deep Neural Network (DNN), One-Dimensional Convolutional Neural Network (1D-CNN), Long Short-Term Memory (LSTM), and Bidirectional LSTM (Bi-LSTM). Random Forest achieved the highest accuracy (77.37%), while Bi-LSTM performed best among deep learning models (76.97%). To address class imbalance, we adopted class weighting in the final models; SMOTE was explored as an ablation and then excluded due to poorer generalization. Model interpretability using Local Interpretable Model-Agnostic Explanations (LIME) and SHapley Additive exPlanations (SHAP) consistently identified humidity and sunshine as the most influential predictors, with SHAP further revealing strong interactions between lagged humidity and temperature. The framework's reliable classification of rainfall intensities supports data-driven irrigation scheduling, early flood warnings, and climate-resilient agricultural and disaster management planning in Bangladesh.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Comparison of data-driven and numerical weather prediction models for rainfall nowcasting in major cities of BangladeshPLOS Climate · 2026
- AI-Driven Ensemble Learning for Spatio-Temporal Rainfall Prediction in the Bengawan Solo River Watershed, IndonesiaSustainability · 2025
- Integrating Meteorological Data for Drought Prediction: A Hybrid Ensemble Machine Learning Approach in Northwestern BangladeshPublic Health Challenges · 2026
- Hybrid Machine Learning and Deep Learning Ensembles for Daily Maximum Temperature Prediction in Bangladesh: An Applied Meteorological ApproachMeteorological Applications · 2026
- A novel feature selection-driven framework for sustainable and efficient rainfall classification using machine learning modelsUnconventional Resources · 2025
- Statistical Development of Rainfall IDF Curves and Machine Learning-Based Bias Assessment: A Case Study of Wadi Al-Rummah, Saudi ArabiaHydrology · 2026