Continuous Rainfall Prediction Using Stacked LSTM and Sliding Window Time Series Modeling

Authors

  • Akrom Universitas Pamulang
  • Dimas Lendensi University of Pamulang
  • Abdullah Muhajir Universitas Pamulang
  • Riky Susanto Universitas Pamulang

DOI:

https://doi.org/10.47709/cnahpc.v8i2.8277

Keywords:

Rainfall Prediction, LSTM, Time Series, Deep Learning, Forecasting

Abstract

Rainfall prediction plays an important role in supporting decision-making in agriculture, water resource management, and disaster mitigation. However, the increasing variability of rainfall patterns makes accurate forecasting a challenging task. This study aims to implement a Long Short-Term Memory (LSTM) model for rainfall prediction based on time series data and to evaluate its performance using regression metrics. The dataset consists of 600 monthly rainfall observations, which were preprocessed through normalization and transformed using a sliding window technique with a time step of 30. The data were divided into training and testing sets with a ratio of 80:20. The proposed model employs a stacked LSTM architecture with dropout regularization and is trained for 50 epochs. The experimental results show that the model achieves satisfactory predictive accuracy, with a Train RMSE of 1.1009 and a Test RMSE of 0.6846, as well as a Train MAE of 0.6000 and a Test MAE of 0.4837. The results indicate that the model is capable of capturing temporal patterns and fluctuations in rainfall data. Therefore, the LSTM-based approach can be considered an effective method for rainfall prediction and has potential applications in environmental forecasting systems.

Downloads

Download data is not yet available.

References

[1] S. D. Mandalapu et al., “Rainfall prediction using machine learning,” AIP Conf. Proc., vol. 3028, no. 1, pp. 23–33, 2024.

[2] A. Azi, “Journal of Computer Networks , Architecture and High Performance Computing Rainfall Prediction in Jayapura City Area Using Long Short-Term Memory Journal of Computer Networks , Architecture and High Performance Computing,” vol. 7, no. 2, pp. 433–439, 2025.

[3] L. S. Harahap and M. R. Adrian, “PREDIKSI CURAH HUJAN BULANAN DI MEDAN MENGGUNAKAN METODE LONG SHORT-TERM MEMORY,” vol. 02, pp. 1–6, 2026.

[4] A. Indryani, U. Khaira, and M. F. Putri, “Rainfall Prediction Using Long Short-Term Memory Method (Case Study: Jambi City),” J. Pepadun, vol. 6, no. 1, pp. 57–70, 2025.

[5] A. M. L. Harefa, R. Antoni, A. I. Sitepu, Y. F. Limbong, and M. S. Novelan, “Enhanced Rainfall Forecasting Through Deep Learning Optimization Using Long Short-Term Memory Networks,” RIGGS J. Artif. Intell. Digit. Bus., vol. 4, no. 2, pp. 274–284, 2025.

[6] I. Chamatidis, G. Tzanes, D. Istrati, N. D. Lagaros, and A. Stamou, “Short-Term Forecasting of Rainfall Using Sequentially Deep LSTM Networks: A Case Study on a Semi-Arid Region,” p. 157, 2023.

[7] Y. Hendra, H. Mukhtar, and R. Hafsari, “Prediksi Curah Hujan Di Kota Pekanbaru Menggunakan Lstm,” J. Softw. Eng. Inf. Syst. ( SEIS ), vol. 3, no. 2, pp. 74–81, 2023.

[8] Asif Khokhar, Shahnawaz Talpur, and Mohsin A. Memon, “Comparative Analysis of LSTM, BILSTM and ARIMA for Time Series Forecasting on 116 years of Temperature and Rainfall Data from Pakistan,” Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol., vol. 3307, pp. 350–357, 2023.

[9] M. D. I. Amin, J. J. Hidayat, C. Setyowati, E. K. Fitri, A. N. Anggraini, and A. P. Werdana, “Implementasi Model LSTM Untuk Peramalan Curah Hujan Di Bekasi,” J. Teknol. Inf. Digit., vol. 1, no. 2, pp. 90–99, 2025.

[10] S. Poornima and M. Pushpalatha, “Prediction of rainfall using intensified LSTM based recurrent Neural Network with Weighted Linear Units,” Atmosphere (Basel)., vol. 10, no. 11, 2019.

[11] Z. Chao, F. Pu, Y. Yin, B. Han, and X. Chen, “Research on real-time local rainfall prediction based on MEMS sensors,” J. Sensors, vol. 2018, 2018.

[12] Z. Xiang, J. Yan, and I. Demir, “A Rainfall-Runoff Model With LSTM-Based Sequence-to-Sequence Learning,” Water Resour. Res., vol. 56, no. 1, 2020.

[13] H. H. Shin et al., “A mathematical model for covid-19 with variable transmissibility and hospitalizations: A case study in paraguay,” Appl. Sci., vol. 11, no. 20, pp. 1–25, 2021.

Downloads

Published

2026-05-13

How to Cite

Akrom, A., Lendensi, D., Muhajir, A., & Susanto , R. (2026). Continuous Rainfall Prediction Using Stacked LSTM and Sliding Window Time Series Modeling. Journal of Computer Networks, Architecture and High Performance Computing, 8(2), 281–292. https://doi.org/10.47709/cnahpc.v8i2.8277

Similar Articles

<< < 9 10 11 12 13 14 15 16 17 18 > >> 

You may also start an advanced similarity search for this article.