Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi)
Vol 9 No 3 (2025): June 2025

Forecasting Stock Returns Using Long Short-Term Memory (LSTM) Model Based on Inflation Data and Historical Stock Price Movements

Prasetyo, Nur Faid (Unknown)
Witanti, Wina (Unknown)
Hadiana, Asep Id (Unknown)



Article Info

Publish Date
24 May 2025

Abstract

The stock market is crucial for economic growth and development, offering profit opportunities that attract investors worldwide. However, its inherent volatility necessitates the inclusion of macroeconomic indicators like inflation, which can affect stock valuation and investor behavior. This study explores predicting stock returns using a Long Short-Term Memory (LSTM) model by incorporating inflation data, historical stock price movements, and calculated returns as input features. The dataset was split into 80% for training and 20% for testing, with hyperparameter tuning conducted using the RMSprop optimizer under varying batch sizes and epoch settings. Experimental results show that the configuration using RMSprop with a batch size of 8 and 200 epochs delivered the best performance, achieving a Root Mean Squared Error (RMSE) of 0.0167 and a Mean Absolute Percentage Error (MAPE) of 25.89%. These results represent a significant improvement over alternative configurations and previous benchmarks. This study underscores the importance of including inflation as a predictive variable, enhancing the model's accuracy. The findings highlight the relevance of incorporating macroeconomic factors into stock return forecasting, providing valuable insights for investors and financial analysts seeking data-driven strategies in decision-making processes.

Copyrights © 2025






Journal Info

Abbrev

RESTI

Publisher

Subject

Computer Science & IT Engineering

Description

Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi) dimaksudkan sebagai media kajian ilmiah hasil penelitian, pemikiran dan kajian analisis-kritis mengenai penelitian Rekayasa Sistem, Teknik Informatika/Teknologi Informasi, Manajemen Informatika dan Sistem Informasi. Sebagai bagian dari semangat ...