[Paper Review] Predicting Rainfall using Machine Learning Techniques
This study evaluates multiple machine learning models—logistic regression, random forest, gradient boosting, and others—for predicting tomorrow's rainfall in Australia using weather data. It finds that gradient boosting performs most consistently across different data preprocessing strategies, especially with undersampled data, while model performance is highly sensitive to class imbalance handling and feature selection.
Rainfall prediction is one of the challenging and uncertain tasks which has a significant impact on human society. Timely and accurate predictions can help to proactively reduce human and financial loss. This study presents a set of experiments which involve the use of prevalent machine learning techniques to build models to predict whether it is going to rain tomorrow or not based on weather data for that particular day in major cities of Australia. This comparative study is conducted concentrating on three aspects: modeling inputs, modeling methods, and pre-processing techniques. The results provide a comparison of various evaluation metrics of these machine learning techniques and their reliability to predict the rainfall by analyzing the weather data.
Motivation & Objective
- To evaluate the effectiveness of diverse machine learning techniques in predicting daily rainfall in Australia.
- To investigate how data preprocessing—especially handling missing values, feature selection, and class imbalance—affects model performance.
- To compare the impact of different sampling strategies (undersampling, oversampling, original data) on classifier reliability.
- To identify the most robust and accurate models for tomorrow's rainfall prediction using real-world weather data.
- To provide a comprehensive end-to-end machine learning pipeline from data preprocessing to model evaluation for rainfall prediction.
Proposed method
- Used a dataset of 142,000 daily weather observations from Australian stations, with 23 features including temperature, humidity, wind speed, and pressure.
- Applied extensive data preprocessing: imputation of missing values using grouped means, feature hashing for categorical variables, and feature scaling.
- Conducted feature selection via univariate statistical tests and correlation heatmaps to remove redundant or irrelevant features.
- Implemented multiple classifiers: logistic regression, decision tree, KNN, rule-based models, and ensemble methods (random forest, gradient boosting).
- Applied both undersampling (SMOTE) and oversampling (SMOTE) techniques to address class imbalance in the target variable (RainTomorrow).
- Evaluated models using 10-fold cross-validation with metrics including accuracy, precision, recall, F1-score, and AUC-ROC, and performed paired t-tests for statistical comparison.
Experimental results
Research questions
- RQ1Which machine learning model achieves the highest predictive accuracy for tomorrow’s rainfall using Australian weather data?
- RQ2How does the choice of sampling strategy (original, undersampled, oversampled) affect the performance of different classifiers?
- RQ3What is the impact of data preprocessing steps—especially missing value imputation and feature selection—on model reliability?
- RQ4How do different evaluation metrics (accuracy, F1-score, AUC) rank the same models, and which metric best reflects real-world predictive utility?
- RQ5To what extent does class imbalance in the target variable (RainTomorrow) distort model performance, and how can it be mitigated effectively?
Key findings
- Gradient boosting with a learning rate of 0.25 achieved the highest accuracy (92.4%) on the original dataset, outperforming other models in both accuracy and AUC-ROC.
- Logistic regression performed best on the undersampled dataset, achieving an accuracy of 91.8% and an AUC of 0.89, indicating strong generalization on balanced data.
- Decision Tree achieved the highest accuracy (92.1%) on the oversampled dataset, but showed signs of overfitting, suggesting poor generalization despite high performance on training data.
- Ensemble models, particularly gradient boosting, demonstrated consistent performance across all three data configurations (original, undersampled, oversampled), indicating robustness to data distribution shifts.
- The performance of individual models varied significantly based on data sampling strategy—e.g., KNN performed best on oversampled data and worst on undersampled data, highlighting the sensitivity of models to data balance.
- Features such as RISK_MM were found to be leaky (directly related to the target), and were excluded during preprocessing to prevent data leakage and ensure valid model evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.