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