BAREKENG: Jurnal Ilmu Matematika dan Terapan
Vol 20 No 4 (2026): BAREKENG: Journal of Mathematics and Its Application

EARLY DETECTION OF RAINFALL ANOMALIES USING LSTM AND ISOLATION FOREST

Adhystira Raihannoeza Almadiva (Data Science Study Program, Telkom University, Purwokerto Campus, Indonesia)
Atika Ratna Dewi (Data Science Study Program, Telkom University, Purwokerto Campus, Indonesia)
Aina Latifa Riyana Putri (Data Science Study Program, Telkom University, Purwokerto Campus, Indonesia)



Article Info

Publish Date
24 Aug 2026

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.

Copyrights © 2026






Journal Info

Abbrev

barekeng

Publisher

Subject

Computer Science & IT Control & Systems Engineering Economics, Econometrics & Finance Energy Engineering Mathematics Mechanical Engineering Physics Transportation

Description

BAREKENG: Jurnal ilmu Matematika dan Terapan is one of the scientific publication media, which publish the article related to the result of research or study in the field of Pure Mathematics and Applied Mathematics. Focus and scope of BAREKENG: Jurnal ilmu Matematika dan Terapan, as follows: - Pure ...