Rainfall Prediction Using Feature Engineering, SMOTE, and Random Forest-XGBoost Soft Voting Ensemble on WeatherAUS Dataset

Authors

  • Fareza Ahmad Kurniawan Informatics Engineering, Universitas Negeri Semarang, Indonesia
  • M. Faris Al Hakim Informatics Engineering, Universitas Negeri Semarang, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.4.5974

Keywords:

Ensemble Method, Feature Engineering, Rainfall Prediction, Random Forest, SMOTE, XGBoost

Abstract

Rainfall prediction remains a critical challenge in meteorological science due to the non-linear and non-stationary nature of weather data. A persistent obstacle in building accurate rainfall classifiers is class imbalance, where no-rain observations significantly outnumber rain events, causing models to underperform on the minority Rain class precisely the class of greatest practical importance for flood preparedness and agricultural management. This study proposes an integrated machine learning pipeline combining feature engineering, Synthetic Minority Over-sampling Technique (SMOTE), Random Forest-based feature selection, hyperparameter tuning via Randomized Search Cross-Validation, and a soft voting ensemble of Random Forest and XGBoost for rainfall prediction. The WeatherAUS dataset containing 142,193 daily observations from 49 cities across Australia. Experimental results demonstrate that the baseline soft voting ensemble achieved the best overall performance with an Accuracy of 0.8498, ROC-AUC of 0.8800, and Weighted F1-Score of 0.8467, outperforming both standalone Random Forest and XGBoost across all metrics. Furthermore, the study finds that preprocessing quality — specifically the integration of feature engineering, SMOTE balancing, and feature selection — has a greater influence on model performance than hyperparameter optimization. This research contributes an evidence-based integrated preprocessing framework for imbalanced meteorological classification that advances the application of ensemble machine learning in rainfall prediction, with practical implications for early warning systems and data-driven weather forecasting in the field of Informatics and Computer Science.

Downloads

Download data is not yet available.

References

P. C. S. Reddy, Y. Sucharitha, and G. S. Narayana, “DEVELOPMENT OF RAINFALL FORECASTING MODEL USING MACHINE LEARNING WITH SINGULAR SPECTRUM ANALYSIS,” IIUM Engineering Journal, vol. 23, no. 1, pp. 172–186, 2022, doi: 10.31436/IIUMEJ.V23I1.1822.

S. Sandiwarno, “Penerapan Machine Learning Untuk Prediksi Bencana Banjir,” Jurnal Sistem Informasi Bisnis, vol. 14, no. 1, pp. 62–76, Jan. 2024, doi: 10.21456/vol14iss1pp62-76.

B. R. Cook, “Flood risk management of the future: A warning from a land down under,” J. Flood Risk Manag., vol. 17, no. 1, p. e12985, Mar. 2024, doi: https://doi.org/10.1111/jfr3.12985.

A. A. Ahmed, S. Sayed, A. Abdoulhalik, S. Moutari, and L. Oyedele, “Applications of machine learning to water resources management: A review of present status and future opportunities,” J. Clean. Prod., vol. 441, p. 140715, Feb. 2024, doi: 10.1016/j.jclepro.2024.140715.

A. Rahimi, N. Kh. Yashooa, A. N. Ahmed, M. Sherif, and A. El-shafie, “Different Time-Increment Rainfall Prediction Models: a Machine Learning Approach Using Various Input Scenarios,” Water Resources Management, vol. 39, no. 4, pp. 1677–1696, 2025, doi: 10.1007/s11269-024-04040-2.

D. R. Damayanti, S. Wicaksono, M. F. Al Hakim, J. Jumanto, S. Subhan, and Y. N. Ifriza, “Rainfall Prediction in Blora Regency Using Mamdani’s Fuzzy Inference System,” Journal of Soft Computing Exploration, vol. 3, no. 1, pp. 62–69, Mar. 2022, doi: 10.52465/joscex.v3i1.69.

S. Kanani, S. Patel, R. K. Gupta, A. Jain, and J. C. W. Lin, “An AI-Enabled ensemble method for rainfall forecasting using Long-Short term memory,” Mathematical Biosciences and Engineering, vol. 20, no. 5, pp. 8975–9002, 2023, doi: 10.3934/mbe.2023394.

A. Sarasa-Cabezuelo, “Prediction of Rainfall in Australia Using Machine Learning,” Information (Switzerland), vol. 13, no. 4, p. 164, Apr. 2022, doi: 10.3390/info13040163.

H. Nurramdhani Irmanda, M. Khalid Awang, and M. Adrezo, “Enhancing Weather Prediction Models through the Application of Random Forest Method and Chi-Square Feature Selection,” International Journal on Informatics Visualization, vol. 8, pp. 1506–1514, 2024, doi: 10.62527/joiv.8.3-2.2356.

P. Zhang, Y. Jia, and Y. Shang, “Research and application of XGBoost in imbalanced data,” Int. J. Distrib. Sens. Netw., vol. 18, no. 6, Jun. 2022, doi: 10.1177/15501329221106935.

A. Y. Barrera-Animas, L. O. Oyedele, M. Bilal, T. D. Akinosho, J. M. D. Delgado, and L. A. Akanbi, “Rainfall prediction: A comparative analysis of modern machine learning algorithms for time-series forecasting,” Machine Learning with Applications, vol. 7, p. 100204, Mar. 2022, doi: 10.1016/j.mlwa.2021.100204.

S. Fatima, A. Hussain, S. Bin Amir, M. Gulraiz Zahid Awan, S. Haseeb Ahmed, and S. Muhammad Huzaifa Aslam, “XGBoost and Random Forest Algorithms: An In-Depth Analysis,” Pakistan Journal of Scientific Research, vol. 3, no. 1, pp. 26–31, 2023, doi: 10.57041/vol3iss1pp26-31.

K. Prathibha, G. Rithvik Reddy, H. Kosre, K. Lohith Kumar, A. Rajak, and R. Tripathi, “Rainfall Prediction Using Machine Learning,” in Machine Intelligence Techniques for Data Analysis and Signal Processing, D. S. Sisodia, L. Garg, R. B. Pachori, and M. Tanveer, Eds., Singapore: Springer Nature Singapore, 2023, pp. 457–468. doi: 10.1007/978-981-99-0085-5_37.

K. U. Birant, B. Ghasemkhani, Ö. Varlıklar, and D. Birant, “A new machine learning method for rainfall classification: temporal random tree,” PeerJ Comput. Sci., vol. 11, p. e3022, 2025, doi: 10.7717/peerj-cs.3022.

M. Imani, A. Beikmohammadi, and H. R. Arabnia, “Comprehensive Analysis of Random Forest and XGBoost Performance with SMOTE, ADASYN, and GNUS Under Varying Imbalance Levels,” Technologies (Basel)., vol. 13, no. 3, p. 88, Mar. 2025, doi: 10.3390/technologies13030088.

Y. Pristyanto, Z. Mukarabiman, and A. Ferdita Nugraha, “Extreme Gradient Boosting Algorithm to Improve Machine Learning Model Performance on Multiclass Imbalanced Dataset,” International Journal on Informatics Visualization, vol. 7, no. 3, pp. 710–715, 2023, doi: 10.30630/joiv.7.3.1102.

R. Hemanth Kumar, B. Vishnu Prasad, H. Yadav, and M. Venugopalan, “Rainfall Prediction Enhancement Using SMOTE and Machine Learning Algorithms,” in 2024 15th International Conference on Computing Communication and Networking Technologies, ICCCNT 2024, Kamand, India: Institute of Electrical and Electronics Engineers Inc., 2024, pp. 1–6. doi: 10.1109/ICCCNT61001.2024.10726002.

S. Subhan, D. A. Tara, and M. Faris Al Hakim, “Handling Imbalance Data in Random Forest Classification Models for Diabetes Prediction,” in 2025 International Conference on Smart Computing, IoT and Machine Learning, SIML 2025, Institute of Electrical and Electronics Engineers Inc., 2025. doi: 10.1109/SIML65326.2025.11081109.

N. Cahyani, W. A. Putri, and R. Irsyada, “Improving Multiclass Rainfall Prediction with Multilayer Perceptron and SMOTE: Addressing Class Imbalance Challenges,” Brilliance: Research of Artificial Intelligence, vol. 4, no. 2, pp. 901–908, Jan. 2025, doi: 10.47709/brilliance.v4i2.5203.

H. Mancy, A. El Khateeb, H. A. Ali, and K. El Dahshan, “Unleashing SMOTE and Grey Wolf Optimization Approaches to Elevate Neural Networks for Superior Rainfall Prediction,” International Journal of Intelligent Engineering and Systems, vol. 17, no. 4, pp. 679–688, 2024, doi: 10.22266/IJIES2024.0831.51.

M. M. Hassan et al., “Machine Learning-Based Rainfall Prediction: Unveiling Insights and Forecasting for Improved Preparedness,” IEEE Access, vol. 11, pp. 132196–132222, 2023, doi: 10.1109/ACCESS.2023.3333876.

M. Irshada and V. Kumar, “SMOTE and ExtraTreesRegressor based random forest technique for predicting Australian rainfall,” International Journal of Information Technology (Singapore), vol. 15, no. 3, pp. 1679–1687, Mar. 2023, doi: 10.1007/s41870-023-01185-y.

X. Zhang, H. Chen, Y. Wen, J. Shi, and Y. Xiao, “A new rainfall prediction model based on ICEEMDAN-WSD-BiLSTM and ESN,” Environmental Science and Pollution Research, vol. 30, no. 18, pp. 53381–53396, Apr. 2023, doi: 10.1007/s11356-023-25906-9.

N. H. Hai, T. D. Quynh, and H. M. Le, “A Novel Feature Engineering Method for Rainfall Prediction,” in Modelling, Computation and Optimization in Information Systems and Management Sciences, H. A. Le Thi, T. Pham Dinh, and H. M. Le, Eds., Cham: Springer Nature Switzerland, 2026, pp. 130–141. doi: 10.1007/978-3-032-08384-5_11.

P. K. Das, R. L. Sahu, and P. C. Swain, “Comparative analysis of machine learning models for rainfall prediction,” J. Atmos. Sol. Terr. Phys., vol. 264, p. 106340, 2024, doi: https://doi.org/10.1016/j.jastp.2024.106340.

M. Sipper, “High Per Parameter: A Large-Scale Study of Hyperparameter Tuning for Machine Learning Algorithms,” Algorithms, vol. 15, no. 9, p. 315, Sep. 2022, doi: 10.3390/a15090315.

R. Yang et al., “Interpretable machine learning for weather and climate prediction: A review,” Atmos. Environ., vol. 338, p. 120797, 2024, doi: https://doi.org/10.1016/j.atmosenv.2024.120797.

D. Elreedy, A. F. Atiya, and F. Kamalov, “A theoretical distribution analysis of synthetic minority oversampling technique (SMOTE) for imbalanced learning,” Mach. Learn., vol. 113, no. 7, pp. 4903–4923, Jul. 2024, doi: 10.1007/s10994-022-06296-4.

N. Sharma, L. Malviya, A. Jadhav, and P. Lalwani, “A hybrid deep neural net learning model for predicting Coronary Heart Disease using Randomized Search Cross-Validation Optimization,” Decision Analytics Journal, vol. 9, p. 100331, Dec. 2023, doi: 10.1016/j.dajour.2023.100331.

Steven Joses, D. Yulvida, and S. Rochimah, “Pendekatan Metode Ensemble Learning untuk Prakiraan Cuaca menggunakan Soft Voting Classifier,” Journal of Applied Computer Science and Technology, vol. 5, no. 1, pp. 72–80, Jun. 2024, doi: 10.52158/jacost.v5i1.741.

J. Li, “Area under the ROC Curve has the most consistent evaluation for binary classification,” PLoS One, vol. 19, no. 12, p. e0316019, Dec. 2024, doi: 10.1371/journal.pone.0316019.

M. F. Al Hakim and B. Prasetiyo, “CNN-ML Stacking for better Classification of Rice Leaf Diseases,” in 2024 IEEE International Conference on Artificial Intelligence and Mechatronics Systems (AIMS), 2024, pp. 1–5. doi: 10.1109/AIMS61812.2024.10512454.

Z. Magyari-Sáska, I. Haidu, and A. Magyari-Sáska, “Experimental Comparative Study on Self-Imputation Methods and Their Quality Assessment for Monthly River Flow Data with Gaps: Case Study to Mures River,” Applied Sciences (Switzerland), vol. 15, no. 3, p. 1242, Feb. 2025, doi: 10.3390/app15031242.

T. T. Tin, E. H. C. Sheng, L. S. Xian, L. P. Yee, and Y. S. Kit, “Machine learning classification of rainfall forecasts using Austin weather data,” International Journal of Innovative Research and Scientific Studies, vol. 7, no. 2, pp. 727–741, 2024, doi: 10.53894/ijirss.v7i2.2881.

S. M. Haresh, B. J. Chalissery, and M. Newbegin, “Soft Voting Ensemble for Heart Disease Detection Using RF, CatBoost, and XGBoost,” in Proceedings - 2025 International Conference on Transformative Computing Technologies, ICTCT 2025, Institute of Electrical and Electronics Engineers Inc., 2025, pp. 358–365. doi: 10.1109/ICTCT69201.2025.00072.

Y. Yang, H. A. Khorshidi, and U. Aickelin, “A review on over-sampling techniques in classification of multi-class imbalanced datasets: insights for medical problems,” Front. Digit. Health, vol. 6, p. 1430245, 2024, doi: 10.3389/fdgth.2024.1430245.

Additional Files

Published

2026-08-18

How to Cite

[1]
F. A. Kurniawan and M. F. . Al Hakim, “Rainfall Prediction Using Feature Engineering, SMOTE, and Random Forest-XGBoost Soft Voting Ensemble on WeatherAUS Dataset”, J. Tek. Inform. (JUTIF), vol. 7, no. 4, pp. 3970–3986, Aug. 2026.