Rainfall Prediction using the SARIMAX and LSTM Methods in Semarang City

Authors

  • Rudi setyo P Universitas Stikubank Author
  • Eri Zuliarso Universitas Stikubank Author

DOI:

https://doi.org/10.35314/6sg7m889

Keywords:

LSTM, SARIMAX, Rainfall, MAE, RMSE

Abstract

The purpose of this study is to predict the decade rainfall in Semarang City using two main methods, namely Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX) and Long Short Term Memory (LSTM). The methodology of this study begins with data pre-processing, which includes data deletion analysis using dropna and data normalization using Min-Max Scaling to reduce scale the to between 0 and 1. The dataset is then divided into 80% training data and 20% test data. The validity of the data (X_test, Y_test) using the best 56-epoch data validation (val_loss) is better than the validity of the training data (loss). On the other hand, SARIMAX uses the (2,1,2), (2,1,2,36) model, and its validation techniques include Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Coefficient of Determination (R2). Specifically, the RMSE of the LSTM model is 19.6, and its RMSE of the SARIMAX is 31.05. The MAE of LSTM is 15.0, SARIMAX is 24.5, and the R2 of LSTM is 0.814, and SARIMAX is 0.52. Lower RMSE and MAE values indicate lower prediction errors, but a higher R2 value of 1 indicates that LSTM can explain 81% of the actual data variation, which is better than SARIMAX, which is only about 52%. The main finding of this study is that the LSTM model performs better when recommending rainfall datasets.

Downloads

Download data is not yet available.

Published

09-08-2025

Issue

Section

Articles

How to Cite

Rainfall Prediction using the SARIMAX and LSTM Methods in Semarang City. (2025). INOVTEK Polbeng - Seri Informatika, 10(3), 1391-1401. https://doi.org/10.35314/6sg7m889