Hyperparameter Optimization Approach in GRU Model: A Case Study of Rainfall Prediction in DKI Jakarta

Fidia Raaihatul Mashfia, Suci Astutik, Eni Sumarminingsih

Abstract


Rainfall is a crucial factor in water resource management and disaster mitigation. This study develops a rainfall prediction model for DKI Jakarta using a Gated Recurrent Unit (GRU) with hyperparameter optimization to enhance prediction accuracy. Daily rainfall data is processed using a sliding window technique, where 30 days of historical data serve as input to predict rainfall on the 31st day. The model is trained with various configurations of batch sizes and the number of neurons in hidden layers to determine the optimal performance. The results of hyperparameter tuning show that the batch size configuration of 64, hidden layer 1 with 32 neurons, and hidden layer 2 with 128 neurons produces an MAE of 6.66 and an RMSE of 13.94. The model is quite good at capturing daily rainfall patterns but still has difficulty in predicting extreme rainfall spikes

Keywords


Gated Recurrent Unit (GRU); Hyperparameter Optimization; Rainfall Prediction; Sliding Window; Time Series Forecasting

Full Text:

PDF

References


BNPB, "Dampak Banjir di Jakarta Tahun 2021," Laporan Resmi BNPB, 2021.

BMKG, "Analisis Perubahan Iklim dan Pengaruhnya terhadap Curah Hujan di Jakarta," Jurnal Meteorologi Indonesia, vol. 9, no. 2, 2022.

A. Sharma and R. K. Aggarwal, "A Survey of Rainfall Prediction Using Deep Learning," in Proceedings of the IEEE International Conference on Artificial Intelligence and Machine Learning (AIML), 2021, pp. 1–6. doi: 10.1109/AIML.2021.9664730.

Y. Liu et al., "Gated Recurrent Units for Time-Series Weather Prediction," IEEE Transactions on Neural Networks, vol. 32, no. 6, pp. 1223–1234, 2020.

H. F. Nurrohman, R. Rochimah, D. C. R. Novitasari, A. Taufiq, F. Setiawan, and A. Hamid, “Rainfall Prediction Using Gated Recurrent Unit Based on DMI and Nino3.4 Index,” 2022 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT), 2022, pp. 191–196, doi: 10.1109/IAICT55358.2022.9887474.

BMKG, "Data Curah Hujan Jakarta 2015-2024," Pusat Data BMKG, 2024.

R. Tan et al., "Effect of Temperature on Rainfall Patterns," Climate Journal, vol. 45, no. 3, 2019.

K. Prasetyo, "Time Series Analysis for Rainfall Prediction in Jakarta," Jurnal Ilmu Cuaca, vol. 12, no. 1, 2020.

BMKG, "Humidity and its Correlation with Rainfall in Indonesia," Indonesian Climate Research, vol. 18, 2021.

M. Zhang et al., "Solar Radiation and Precipitation Interaction: A Deep Learning Approach," Environmental Science Journal, vol. 28, no. 4, 2022.

L. Wang et al., "Wind Direction and Rainfall Distribution: A Case Study in Tropical Regions," Journal of Meteorological Studies, vol. 39, no. 2, 2019.

R. I. Rakhmalia, A. M. Soleh, and B. Sartono, "Pendugaan Curah Hujan dengan Teknik Statistical Downscaling Menggunakan Clusterwise Regression Sebaran Tweedie," Jurnal XYZ, vol. 4, no. 3, pp. xx–xx, 2020. DOI: 10.29244/ijsa.v4i3.667.

M. R. Ismail, "Perhitungan Data Curah Hujan yang Hilang dengan Menggunakan Metode Interpolasi Linear," Jurnal Ilmiah Mahasiswa Teknik Sipil, vol. 4, no. 02, 2023. doi: 10.33365/sendi.v4i02.5023.

E. Scornet, "Trees, Forests, and Impurity-Based Variable Importance," HAL, 2020. [Online]. Available: https://hal.science/hal-02436169v3/file/importance_variable.pdf.

A. S. Wibowo and A. S. Wibowo, "Implementasi Algoritma Random Forest Regression untuk Memprediksi Hasil Panen Padi," Jurnal Komputer Terapan, vol. 7, no. 1, pp. 45–52, 2021

S. Wijaya, T. B. Kurniawan, E. S. Negara, and Y. N. Kunang, “Rainfall Prediction in Palembang City Using the GRU and LSTM Methods,” Journal of Data Science, vol. 2023, no. 04, pp. 1–10, Mar. 2023, doi: 10.61453/jods.v2023no04.

J. R. Ban, Q. Gou, and Y. S. Li, "Study on Rainfall Prediction of Yibin City Based on GRU and XGBoost," Proc. 4th International Conference on Advances in Computer Technology, Information Science and Communications (CTISC), 2022, pp. 1-6, doi: 10.1109/CTISC54888.2022.9849730.




DOI: https://doi.org/10.18860/cauchy.v10i1.32277

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Fidia Raaihatul Mashfia, Suci Astutik, Eni Sumarminingsih

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

Editorial Office
Mathematics Department,
Universitas Islam Negeri Maulana Malik Ibrahim Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
Faximile (+62) 341 558933
e-mail: cauchy@uin-malang.ac.id

Creative Commons License
CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.