bit-Tech
Vol. 8 No. 3 (2026): bit-Tech - IN PROGRESS

Comparative Analysis of LSTM and GRU Algorithms for Inflation Rate Forecasting

Moh. Angga Ardiyansyah (Universitas Pembangunan Nasional "Veteran" Jawa Timur)
Muhammad Muharrom Al Haromainy (Universitas Pembangunan Nasional "Veteran" Jawa Timur)
Achmad Junaidi (Universitas Pembangunan Nasional "Veteran" Jawa Timur)



Article Info

Publish Date
10 Apr 2026

Abstract

Inflation is a critical economic indicator that directly affects price stability, purchasing power, and the formulation of fiscal and monetary policies. In East Java, inflation has demonstrated considerable year-to-year volatility, creating significant challenges for policymakers in maintaining regional economic stability. This situation highlights the need for forecasting models that are both accurate and capable of adapting to complex economic data patterns. This study presents a comparative analysis of two deep learning algorithms Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) for forecasting year-on-year (YoY) inflation in East Java using data from January 2005 to December 2024. The dataset was processed using Min–Max normalization and a 12-month sliding window to capture long-term dependencies and seasonal variations. Model performance was evaluated using RMSE, MAE, and MAPE. The findings demonstrate that no single model performs best across all metrics. The LSTM4 model with a [128,128] architecture achieved the lowest MAE and MAPE values, indicating superior average predictive accuracy and stronger capability in learning complex long-term inflation patterns. In contrast, the GRU1 [64,64] model produced the lowest RMSE and the shortest training time, highlighting its efficiency in minimizing extreme prediction errors and reducing computational cost. These results offer valuable insights for policymakers in East Java: LSTM is more suitable for applications requiring high prediction accuracy, whereas GRU is preferable for real-time or resource-efficient forecasting systems, especially in fast-changing economic environments.

Copyrights © 2026






Journal Info

Abbrev

bt

Publisher

Subject

Computer Science & IT

Description

The bit-Tech journal was developed with the aim of accommodating the scientific work of Lecturers and Students, both the results of scientific papers and research in the form of literature study results. It is hoped that this journal will increase the knowledge and exchange of scientific ...