Hyperparameter-Optimized Gradient Boosting for Daily Rainfall Prediction Using BMKG Meteorological Data in Malang Regency, Indonesia

Mohamad Arif Abdul Syukur, Suhartono Suhartono, Mochamad Imamudin

Abstract


Weather conditions significantly affect many aspects of modern life, including transportation, tourism, agriculture, and disaster risk management, particularly in relation to rainfall. Consequently, reliable meteorological information is essential for supporting daily decision-making, making rainfall prediction increasingly important. This study develops a daily rainfall prediction model using gradient boosting based on daily meteorological data obtained from the Indonesian Agency for Meteorology, Climatology, and Geophysics (BMKG). The dataset includes date, minimum, maximum, and average temperatures, relative humidity, sunshine duration, maximum and average wind speeds, and wind direction, with daily rainfall as the target variable. Four chronological train-test split scenarios were evaluated. The first scenario produced an RMSE of 13.97, an MAE of 7.96, and an R^2 value of 0.14. The second scenario yielded an RMSE of 12.81, an MAE of 8.72, and an R^2 value of 0.17. The third scenario achieved an RMSE of 12.21, an MAE of 7.70, and an R^2 value of 0.20, whereas the fourth scenario obtained an RMSE of 10.31, an MAE of 7.11, and an R^2 value of -0.27. Considering both prediction error and generalization capability, the third scenario was selected as the best-performing model. The main contribution of this study lies in demonstrating the effectiveness of hyperparameter optimization in improving the stability of rainfall prediction under complex tropical climatic conditions. Practically, the proposed model may support BMKG and regional policymakers in Malang Regency in hydrometeorological disaster mitigation and agricultural planning.

Keywords


Prediction; Weather; Rainfall; Gradient Boosting; BMKG; RMSE

Full Text:

PDF

References


D. Oettl and G. Veratti, “A Comparative Study of Mesoscale Flow-Field Modelling in an Eastern Alpine Region Using WRF and GRAMM-SCI,” Atmospheric Research, vol. 249, p. 105288, 2021, doi: 10.1016/j.atmosres.2020.105288.

A. C. Travieso Bello, O. F. Martínez, M. L. Hernández Aguilar, and J. C. Morales Hernández, “Comprehensive Risk Management of Hydrometeorological Disaster: A Participatory Approach in the Metropolitan Area of Puerto Vallarta, Mexico,” International Journal of Disaster Risk Reduction, vol. 87, p. 103578, 2023, doi: 10.1016/j.ijdrr.2023.103578.

R. Meenal, K. Kailash, P. A. Michael, J. J. Joseph, F. T. Josh, and E. Rajasekaran, “Machine Learning-Based Smart Weather Prediction,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 28, no. 1, pp. 508–515, 2022, doi: 10.11591/ijeecs.v28.i1.pp508-515.

R. Prasad and P. Kumar Shukla, “Weather Forecasting Using Machine Learning for Smart Farming,” in Future Farming: Advancing Agriculture with Artificial Intelligence. Bentham Science Publishers, 2023, pp. 97–113, doi: 10.2174/9789815124729123010009.

Suhartono and Subanar, “The Effect of Decomposition Method as Data Preprocessing on Neural Networks Model for Forecasting Trend and Seasonal Time Series,” Jurnal Teknik Industri, vol. 8, no. 2, pp. 156–164, 2006.

V. S. Monego, J. A. Anochi, and H. F. de Campos Velho, “South America Seasonal Precipitation Prediction by Gradient-Boosting Machine-Learning Approach,” Atmosphere, vol. 13, no. 2, 2022, doi: 10.3390/atmos13020243.

N. K. A. Appiah-Badu, Y. A. W. M. Missah, L. K. Amekudzi, N. Ussiph, T. Frimpong, and E. Ahene, “Rainfall Prediction Using Machine Learning Algorithms for the Various Ecological Zones of Ghana,” IEEE Access, vol. 10, pp. 5069–5082, 2022, doi: 10.1109/ACCESS.2021.3139312.

C. D. Usman, A. P. Widodo, K. Adi, and R. Gernowo, “Rainfall Prediction Model in Semarang City Using Machine Learning,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 30, no. 2, pp. 1224–1231, 2023, doi: 10.11591/ijeecs.v30.i2.pp1224-1231.

M. Alvines et al., “Komparasi Ridge Regression, Random Forest, dan Gradient Boosting untuk Prediksi Curah Hujan Harian di Sumatra Selatan Berbasis Time-Series Cross-Validation,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 4, pp. 5742–5748, 2025, doi: 10.36040/jati.v9i4.13915.

M. T. Anwar, E. Winarno, W. Hadikurniawati, and M. Novita, “Rainfall Prediction Using Extreme Gradient Boosting,” Journal of Physics: Conference Series, vol. 1869, no. 1, 2021, doi: 10.1088/1742-6596/1869/1/012078.

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.

H. Chen, V. Chandrasekar, H. Tan, and R. Cifelli, “Rainfall Estimation from Ground Radar and TRMM Precipitation Radar Using Hybrid Deep Neural Networks,” Geophysical Research Letters, vol. 46, nos. 17–18, pp. 10669–10678, 2019, doi: 10.1029/2019GL084771.

H. Xu, G. Zhai, and X. Li, “Convective-Stratiform Rainfall Separation of Typhoon Fitow (2013): A 3D WRF Modeling Study,” Terrestrial, Atmospheric and Oceanic Sciences, vol. 29, no. 3, pp. 315–329, 2018, doi: 10.3319/TAO.2017.10.11.01.

W. Sun et al., “Improved Prediction of Extreme Rainfall Using a Machine Learning Approach,” Advances in Atmospheric Sciences, vol. 42, no. 8, pp. 1661–1674, 2025, doi: 10.1007/s00376-024-4269-5.

M. S. Islam et al., “Explainable Deep Learning for Rainfall Prediction: A CNN-XGBoost Hybrid Approach in the Northern Region of Bangladesh,” Neural Computing and Applications, vol. 37, no. 33, pp. 28125–28160, 2025, doi: 10.1007/s00521-025-11646-z.

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, 2022, doi: 10.1016/j.mlwa.2021.100204.

X. Zhang, S. N. Mohanty, A. K. Parida, S. K. Pani, B. Dong, and X. Cheng, “Annual and Non-Monsoon Rainfall Prediction Modelling Using SVR-MLP: An Empirical Study from Odisha,” IEEE Access, vol. 8, pp. 30223–30233, 2020, doi: 10.1109/ACCESS.2020.2972435.

V. Svetnik, T. Wang, C. Tong, A. Liaw, R. P. Sheridan, and Q. Song, “Boosting: An Ensemble Learning Tool for Compound Classification and QSAR Modeling,” Journal of Chemical Information and Modeling, vol. 45, no. 3, pp. 786–799, 2005, doi: 10.1021/ci0500379.

T. Talan, “Machine Learning-Based Rainfall Prediction Across Temporal Scales: Model Benchmarking and Explainability Analysis,” Stochastic Environmental Research and Risk Assessment, vol. 40, no. 5, pp. 1–17, 2026, doi: 10.1007/s00477-026-03245-8.

I. U. Hassan, Z. A. Lone, S. Swati, and A. Gamal, “Forecasting Weather and Water Management Through Machine Learning,” pp. 71–93, 2023, doi: 10.4018/979-8-3693-1194-3.ch004.

A. Pambudi, “Penerapan CRISP-DM Menggunakan MLR K-Fold pada Data Saham PT Telkom Indonesia (Persero) Tbk (TLKM): Studi Kasus Bursa Efek Indonesia Tahun 2015–2022,” Jurnal Data Mining dan Sistem Informasi, vol. 4, no. 1, p. 1, 2023, doi: 10.33365/jdmsi.v4i1.2462.

C. Zoremsanga and J. Hussain, “Particle Swarm-Optimized Deep Learning Models for Rainfall Prediction: A Case Study in Aizawl, Mizoram,” IEEE Access, vol. 12, pp. 57172–57184, 2024, doi: 10.1109/ACCESS.2024.3390781.

A. A. Khan, O. Chaudhari, and R. Chandra, “A Review of Ensemble Learning and Data Augmentation Models for Class-Imbalanced Problems: Combination, Implementation, and Evaluation,” Expert Systems with Applications, vol. 244, p. 122778, 2024, doi: 10.1016/j.eswa.2023.122778.

M. A. Rodriguez-Ramirez and Ó. A. Fuentes-Mariles, “Daily Rainfall Assimilation Based on Satellite and Weather Radar Precipitation Products Along with Rain Gauge Networks,” Journal of Hydroinformatics, vol. 25, no. 6, pp. 2354–2368, 2023, doi: 10.2166/hydro.2023.104.

Z. Cui, X. Qing, H. Chai, S. Yang, Y. Zhu, and F. Wang, “Real-Time Rainfall-Runoff Prediction Using Light Gradient Boosting Machine Coupled with Singular Spectrum Analysis,” Journal of Hydrology, vol. 603, p. 127124, 2021, doi: 10.1016/j.jhydrol.2021.127124.

V. Kumar, N. Kedam, K. V. Sharma, K. M. Khedher, and A. E. Alluqmani, “A Comparison of Machine Learning Models for Predicting Rainfall in Urban Metropolitan Cities,” Sustainability, vol. 15, no. 18, 2023, doi: 10.3390/su151813724.

M. I. Hastuti, K. H. Min, and J. W. Lee, “Improving Radar Data Assimilation Forecast Using Advanced Remote Sensing Data,” Remote Sensing, vol. 15, no. 11, 2023, doi: 10.3390/rs15112760.

N. Gill, P. Hall, K. Montgomery, and N. Schmidt, “A Responsible Machine Learning Workflow with Focus on Interpretable Models, Post-Hoc Explanation, and Discrimination Testing,” Information, vol. 11, no. 3, pp. 1–32, 2020, doi: 10.3390/info11030137.




DOI: https://doi.org/10.37905/jjom.v8i2.38554



Copyright (c) 2026 Mohamad Arif Abdul Syukur, Suhartono Suhartono, Mochamad Imamudin

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.


Jambura Journal of Mathematics has been indexed by

>>>More Indexing<<<


Creative Commons License

Jambura Journal of Mathematics (e-ISSN: 2656-1344) by Department of Mathematics Universitas Negeri Gorontalo is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Powered by Public Knowledge Project OJS. 


Editorial Office


Department of Mathematics, Faculty of Mathematics and Natural Science, Universitas Negeri Gorontalo
Jl. Prof. Dr. Ing. B. J. Habibie, Moutong, Tilongkabila, Kabupaten Bone Bolango, Gorontalo, Indonesia
Email: [email protected].