INOVTEK Polbeng - Seri Informatika
Vol. 10 No. 3 (2025): November

Rainfall Prediction using the SARIMAX and LSTM Methods in Semarang City

Rudi setyo P (Unknown)
Zuliarso, Eri (Unknown)



Article Info

Publish Date
09 Aug 2025

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.

Copyrights © 2025






Journal Info

Abbrev

ISI

Publisher

Subject

Computer Science & IT

Description

The Journal of Innovation and Technology (INOVTEK Polbeng—Seri Informatika) is a distinguished publication hosted by the State Polytechnic of Bengkalis. Dedicated to advancing the field of informatics, this scientific research journal serves as a vital platform for academics, researchers, and ...