EARLY DETECTION OF RAINFALL ANOMALIES USING LSTM AND ISOLATION FOREST
Abstract
The uncertainty of daily rainfall patterns in Cilacap Regency with extreme variations makes it difficult to detect hydrological anomalies early using traditional methods. This study aims to obtain the most optimal LSTM parameters for rainfall prediction models, evaluate model performance using the Mean Squared Error (MSE) also Root Mean Squared Error (RMSE) metric, and predict rainfall anomalies for the next year using Isolation Forest. Daily BMKG data from January 2015 to December 2024 were processed through preprocessing stages, including missing data handling and time sequence creation. The Long Short Term Memory model was trained using regularization techniques to avoid overfitting, and the prediction results were analyzed using Isolation Forest to identify anomalies. The experiment showed that the best combination of hyperparameters was LSTM with 50 units and a tanh activation function, dropout 0.3, followed by a first dense layer of 50 units with ReLU activation and a single output layer. This configuration resulted in a validation MSE of 23.5247161 and RMSE 4.8502, this result identified five cases of anomalies that were validated for suitability based on rainfall data from BPBD. These results demonstrate the model's ability to reconstruct rainfall patterns and detect potential anomalies, so the system has potential to support early warning efforts for disaster mitigation and water resource management in Cilacap.
Downloads
References
B. Susilo, MENGENAL IKLIM DAN CUACA DI INDONESIA. DIVA PRESS, 2021. [Online].
A. M. Siregar, S. Faisal, Y. Cahyana, and B. Priyatna, “PERBANDINGAN ALGORITME KLASIFIKASI UNTUK PREDIKSI CUACA,” Jurnal Accounting Information System (AIMS), vol. 3, no. 1, p. 15, 2020, doi: https://doi.org/10.32627/aims.v3i1.280.
A. M. Siregar, Tukino, S. Faisal, A. Fauzi, and I. Kadori, “KLASIFIKASI UNTUK PREDIKSI CUACA MENGGUNAKAN ESEMBLE LEARNING,” Jurnal Pengkajian dan Penerapan Teknik Informatika (PETIR), vol. 13, no. 2, pp. 138–147, Sep. 2020, doi: https://doi.org/10.33322/petir.v13i2.998.
N. R. Aswarisman, A. S. Handayani, and I. Hadi, “PENERAPAN ALGORITMA RANDOM FOREST UNTUK MEMPREDIKSI CURAH HUJAN PADA MASA MENDATANG DI DAERAH BERPOTENSI BANJIR,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 2, pp. 1222–1230, Sep. 2024, doi: https://doi.org/10.47065/bits.v6i2.5593.
M. Taqiyuddin and T. Bayu Sasongko, “PREDIKSI CUACA KABUPATEN SLEMAN MENGGUNAKAN ALGORITMA RANDOM FOREST,” Jurnal Media Informatika Budidarma, vol. 8, no. 3, p. 1683, Jul. 2024, doi: https://doi.org/10.30865/mib.v8i3.7897.
R. Torhino and P. N. Andono, “PENERAPAN ALGORITMA RANDOM FOREST DALAM PREDIKSI CURAH HUJAN UNTUK MENDUKUNG ANALISIS CUACA,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 3, pp. 1688–1699, Dec. 2024, doi: https://doi.org/10.47065/bits.v6i3.6404.
J. Vieria dos Santos, V. Farias Felipe, E. Fialho Morais Xavier, T. Almeida de Oliveira, J. Silva Jale, and S. F. Alves Xavier Junior, “A STUDY OF THE STANDARDIZED PRECIPITATION INDEX (SPI) AND MACHINE LEARNING TECHNIQUES FOR DROUGHT PREDICTION IN THE STATE OF PARAÍBA, BRAZIL,” Revista Científica Multidisciplinar (RECIMA21), vol. 5, no. 10, p. e5105736, Oct. 2024, doi: https://doi.org/10.47820/recima21.v5i10.5736.
A. Adane and B. Asmerom, “ANALYSIS OF SPATIOTEMPORAL DISTRIBUTION, VARIABILITY, AND TRENDS OF RAINFALL IN WOLLO AREA, NORTHEASTERN ETHIOPIA,” PLoS One, vol. 20, no. 1, Jan2025, doi: https://doi.org/10.1371/journal.pone.0312889.
E. Zaveri, J. Russ, and R. Damania, “RAINFALL ANOMALIES ARE A SIGNIFICANT DRIVER OF CROPLAND EXPANSION,” Proceedings of the National Academy of Sciences (PNAS), Mar. 2020, doi: https://doi.org/10.1073/pnas.1910719117.
K. Alaskar Bharati Vidyapeeth, D. Patil, and K. Alaskar, “ENHANCED RAINFALL FORECASTING: ETR, MLP, AND XGB MODELS ANALYSED WITH ADVANCED OPTIMIZATION,” Journal of the Maharaja Sayajirao University of Baroda, vol. 58, no. 2, pp. 25–0422, Jan. 2024, [Online].
M. Waqas and U. W. Humphries, “A CRITICAL REVIEW OF RNN AND LSTM VARIANTS IN HYDROLOGICAL TIME SERIES PREDICTIONS,” MethodsX, vol. 13, Dec. 2024, doi: https://doi.org/10.1016/j.mex.2024.102946.
I. Malashin, V. Tynchenko, A. Gantimurov, V. Nelyub, and A. Borodulin, “APPLICATIONS OF LONG SHORT-TERM MEMORY (LSTM) NETWORKS IN POLYMERIC SCIENCES: A REVIEW,” Polymers (Basel), vol. 18, no. 16, pp. 1–44, Sep. 2024, doi: https://doi.org/10.3390/polym16182607.
Zulfikar Ahmad, F. A. Rahmani, and N. Azizah, “DETEKSI ANOMALI MENGGUNAKAN ISOLATION FOREST BELANJA BARANG PERSEDIAAN KONSUMSI PADA SATUAN KERJA KEPOLISIAN REPUBLIK INDONESIA,” Jurnal Manajemen Perbendaharaan, vol. 4, no. 1, pp. 1–15, Jun. 2023, doi: https://doi.org/10.33105/jmp.v4i1.435.
Y. Hendra, H. Mukhtar, and R. Hafsari, “PREDIKSI CURAH HUJAN DI KOTA PEKANBARU MENGGUNAKAN LSTM (LONG SHORT TERM MEMORY),” Jurnal Software Engineering and Information System (SEIS), vol. 3, no. 2, pp. 74–81, Aug. 2023.doi : https://doi.org/10.37859/seis.v3i2.5606.
M. Musfiroh, D. C. R. Novitasari, P. K. Intan, and G. G. Wisnawa, “PENERAPAN METODE PRINCIPAL COMPONENT ANALYSIS (PCA) DAN LONG SHORT-TERM MEMORY (LSTM) DALAM MEMPREDIKSI PREDIKSI CURAH HUJAN HARIAN,” Building of Informatics, Technology and Science (BITS), vol. 5, no. 1, Jun. 2023, doi: https://doi.org/10.47065/bits.v5i1.3114.
A. Wijayanto, A. Sugiharto, and R. Santoso, “IDENTIFIKASI DINI CURAH HUJAN BERPOTENSI BANJIR MENGGUNAKAN ALGORITMA LONG SHORT-TERM MEMORY (LSTM) DAN ISOLATION FOREST,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 3, pp. 637–646, Jul. 2024, doi: https://doi.org/10.25126/jtiik.938718.
T. Lattifia, P. Wira Buana, N. Kadek, and D. Rusjayanthi, “MODEL PREDIKSI CUACA MENGGUNAKAN METODE LSTM,” JITTER-Jurnal Ilmiah Teknologi dan Komputer, vol. 3, no. 1, Apr. 2022.doi : https://doi.org/10.24843/JTRTI.2022.v03.i01.p35
P. Sugiartawan and S. Gusprio Santoso, “MULTIVARIATE FORECASTING CURAH HUJAN MENGGUNAKAN ALGORITMA LSTM DI KOTA DENPASAR,” in Seminar Nasional Corisindo, Aug. 2022, pp. 580–585.
F. Ramadhan and M. Fachrie, “IMPLEMENTASI ALGORITMA LONG SHORT-TERM MEMORY (LSTM) PADA SISTEM PREDIKSI HASIL PANEN SAWIT,” Jurnal Informatika Teknologi dan Sains, vol. 6, no. 4, pp. 937–944, Oct. 2024.doi: https://doi.org/10.51401/jinteks.v6i4.4876
Roni Merdiansah, Khofifah Wulandari, Mentari Hasibuan, and Yuyun Umaidah, “PERBANDINGAN KINERJA MODEL RNN, LSTM, DAN BLSTM DALAM MEMPREDIKSI JUMLAH GEMPA BULANAN DI INDONESIA,” Jurnal Penelitian Rumpun Ilmu Teknik, vol. 3, no. 1, pp. 262–277, Feb. 2024, doi: https://doi.org/10.55606/juprit.v3i1.3466.
A. A. Ningrum, I. Syarif, A. I. Gunawan, E. Satriyanto, and R. Muchtar, “ALGORITMA DEEP LEARNING-LSTM UNTUK MEMPREDIKSI UMUR TRANSFORMATOR,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 8, no. 3, pp. 539–548, Jun. 2021, doi: https://doi.org/10.25126/jtiik.2021834587.
Y. Kong et al., “UNLOCKING THE POWER OF LSTM FOR LONG TERM TIME SERIES FORECASTING,” ArXiv, Feb. 2025, [Online].
G. Airlangga, “ADVANCED MACHINE LEARNING TECHNIQUES FOR SEISMIC ANOMALY DETECTION IN INDONESIA: A COMPARATIVE STUDY OF LOF, ISOLATION FOREST, AND ONE-CLASS SVM,” Jurnal Ilmiah Pendidikan Matematika, Matematika dan Statistika (Lebesgue), vol. 5, no. 1, Apr. 2024, doi: https://doi.org/10.46306/lb.v5i1.
D. B. Santoso and Y. Wahyuni, “SESTEM LOG WEB SERVER SEBAGAI PENDETEKSI ANOMALI MENGGUNAKAN ISOLATION FOREST,” Jurnal Aplikasi Bisnis dan Komputer (JUBIKOM), vol. 4, no. 3, pp. 2807–5986, Oct. 2024, [Online] doi: https://doi.org/10.33751/jubikom.v4i3.10941
A. Juna et al., “WATER QUALITY PREDICTION USING KNN IMPUTER AND MULTILAYER PERCEPTRON,” Water (Switzerland), vol. 14, no. 17, Sep. 2022, doi: https://doi.org/10.3390/w14172592.
T. Aljrees, “IMPROVING PREDICTION OF CERVICAL CANCER USING KNN IMPUTER AND MULTI-MODEL ENSEMBLE LEARNING,” PLoS One, vol. 19, no. 1 January, Jan. 2024, doi: https://doi.org/10.1371/journal.pone.0295632.
Copyright (c) 2026 Adhystira Raihannoeza Almadiva, Atika Ratna Dewi, Aina Latifa Riyana Putri

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:
- Author retain copyright and grant the journal right of first publication with the work simultaneously licensed under a creative commons attribution license that allow others to share the work within an acknowledgement of the work’s authorship and initial publication of this journal.
- Authors are able to enter into separate, additional contractual arrangement for the non-exclusive distribution of the journal’s published version of the work (e.g. 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 websites) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published works.




1.gif)


