Comparative Analysis of LSTM, BiLSTM, Stacked LSTM, and Attention-LSTM for Multi-Resolution Rainfall Forecasting in Bali
DOI:
https://doi.org/10.30871/jaic.v10i4.13615Keywords:
Rainfall forecasting, LSTM, BiLSTM, Stacked LSTM, Attention-LSTMAbstract
Accurate rainfall forecasting remains challenging in tropical islands such as Bali, Indonesia, where localized convective rainfall limits the reliability of physics-based models. While deep learning architectures based on Long Short-Term Memory (LSTM) are increasingly used for rainfall forecasting, most prior studies compare LSTM variants at a single temporal resolution without a classical baseline, leaving it untested whether their reported advantage holds across resolutions or is an artifact of the resolution chosen. This study evaluates four recurrent architectures — LSTM, BiLSTM, Stacked LSTM, and Attention-LSTM — for univariate rainfall forecasting at daily, decadal, and monthly resolutions, using 26 years (2000–2025) of observations from a BMKG station in Bali, benchmarked against three classical baselines (Persistence, Climatology, and ARIMA) and tuned via random search. Results show that inter-architecture differences within a single resolution are small and inconsistent, with no architecture winning across all resolutions: Stacked LSTM is marginally best at daily (RMSE 15.26 mm/day) and decadal (73.53 mm/decade) scales, while BiLSTM leads at the monthly scale (154.64 mm/month). More critically, the deep learning models' advantage over classical baselines is strongly resolution-dependent: substantial at daily and decadal resolutions, but nearly indistinguishable from Persistence and ARIMA at the monthly resolution, where only 312 training sequences are available. These findings indicate that model selection for rainfall forecasting should be conditioned on temporal resolution and data availability rather than treated as a fixed architectural choice, and that simpler LSTM models offer a more computationally efficient default than their more complex variants for tropical, data-limited settings.
Downloads
References
[1] E. Yanfatriani et al., “Extreme Rainfall Trends and Hydrometeorological Disasters in Tropical Regions: Implications for Climate Resilience,” Emerg Sci J, vol. 8, no. 5, pp. 1860–1874, Oct. 2024, doi: 10.28991/ESJ-2024-08-05-012.
[2] N. Salaeh et al., “Long-Short Term Memory Technique for Monthly Rainfall Prediction in Thale Sap Songkhla River Basin, Thailand,” Symmetry, vol. 14, no. 8, p. 1599, Aug. 2022, doi: 10.3390/sym14081599.
[3] W. T. Abebe and D. Endalie, “Artificial intelligence models for prediction of monthly rainfall without climatic data for meteorological stations in Ethiopia,” J Big Data, vol. 10, no. 1, p. 2, Jan. 2023, doi: 10.1186/s40537-022-00683-3.
[4] 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.
[5] I. V. Necesito, D. Kim, Y. H. Bae, K. Kim, S. Kim, and H. S. Kim, “Deep Learning-Based Univariate Prediction of Daily Rainfall: Application to a Flood-Prone, Data-Deficient Country,” Atmosphere, vol. 14, no. 4, p. 632, Mar. 2023, doi: 10.3390/atmos14040632.
[6] A. Kurniadi, E. Weller, J. Salmond, and E. Aldrian, “Future projections of extreme rainfall events in Indonesia,” Intl Journal of Climatology, vol. 44, no. 1, pp. 160–182, Jan. 2024, doi: 10.1002/joc.8321.
[7] S. Blenkinsop, L. M. Alves, and A. J. P. Smith, “Climate change increases extreme rainfall and the chance of floods,” Zenodo, Jun. 2021. doi: 10.5281/ZENODO.4779118.
[8] S. Ayu Puspitasari and C.-F. Wu, “Assessing future climate change with a weather generator: A case study in Bali, Indonesia,” BIO Web Conf., vol. 155, p. 03003, 2025, doi: 10.1051/bioconf/202515503003.
[9] O. Setiawan, “Analisis Variabilitas Curah Hujan dan Suhu di Bali,” Jurnal Analisis Kebijakan Kehutanan, vol. 9, no. 1, pp. 66–79, 2012, doi: 10.20886/jakk.2012.9.1.66-79.
[10] N. Sudipa, M. S. Mahendra, W. S. Adnyana, and I. B. Pujaastawa, “Daya Dukung Air di Kawasan Pariwisata Nusa Penida, Bali,” JSAL, vol. 7, no. 3, pp. 117–123, Dec. 2020, doi: 10.21776/ub.jsal.2020.007.03.4.
[11] I. Gustari, T. W. Hadi, S. Hadi, and F. Renggono, “Akurasi Prediksi Curah Hujan Harian Operasional Di Jabodetabek : Perbandingan Dengan Model WRF,” JMG, vol. 13, no. 2, Aug. 2012, doi: 10.31172/jmg.v13i2.126.
[12] Y. O. Ouma, R. Cheruyot, and A. N. Wachera, “Rainfall and runoff time-series trend analysis using LSTM recurrent neural network and wavelet neural network with satellite-based meteorological data: case study of Nzoia hydrologic basin,” Complex Intell. Syst., vol. 8, no. 1, pp. 213–236, Feb. 2022, doi: 10.1007/s40747-021-00365-2.
[13] M. Chhetri, S. Kumar, P. Pratim Roy, and B.-G. Kim, “Deep BLSTM-GRU Model for Monthly Rainfall Prediction: A Case Study of Simtokha, Bhutan,” Remote Sensing, vol. 12, no. 19, p. 3174, Sep. 2020, doi: 10.3390/rs12193174.
[14] A. Romadhani, I. B. Santoso, and C. Crysdian, “Rainfall Prediction Using Attention-Based LSTM Architecture,” Jur. Ris. Kom., vol. 12, no. 3, pp. 329–340, Jun. 2025, doi: 10.30865/jurikom.v12i3.8727.
[15] S. Majumdar, S. Kr. Biswas, B. Purkayastha, and S. Sanyal, “Rainfall Forecasting for Silchar City using Stacked- LSTM,” in 2023 11th International Conference on Internet of Everything, Microwave Engineering, Communication and Networks (IEMECON), Jaipur, India: IEEE, Feb. 2023, pp. 1–5. doi: 10.1109/IEMECON56962.2023.10092355.
[16] S. Octaviana and Y. Mentari Indah, “Perbandingan Metode LSTM dan BiLSTM untuk Prediksi Data Curah Hujan: Studi Kasus: Stasiun Meteorologi Citeko, Kabupaten Bogor, Jawa Barat,” BIAStatistics Journal of Statistics Theory and Aplication, vol. 19, no. 1, pp. 45–52, Feb. 2025, [Online]. Available: https://biastatistics.statistics.unpad.ac.id/?journal=biastatistics&page=article&op=view&path[]=315
[17] X. Hao, Y. Liu, L. Pei, W. Li, and Y. Du, “Atmospheric Temperature Prediction Based on a BiLSTM-Attention Model,” Symmetry, vol. 14, no. 11, p. 2470, Nov. 2022, doi: 10.3390/sym14112470.
[18] X. Zhao, S. Dong, H. Rao, and W. Ming, “Water Flow Forecasting Model Based on Bidirectional Long- and Short-Term Memory and Attention Mechanism,” Water, vol. 17, no. 14, p. 2118, Jul. 2025, doi: 10.3390/w17142118.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Muhammad Nur Rizqi, Cahya Sugiarto, Wisnu Syahid

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








