Lontar Komputer: Jurnal Ilmiah Teknologi Informasi
Vol. 16 No. 01 (2025): Vol.16, No. 01 April 2025

Modification of the LSTM Model in Time Series Data Prediction

Daniel Robi Sanjaya (Magister Information System, Diponegoro University Semarang, Indonesia)
Bayu Surarso (Department of Mathematics, Faculty of Science and Mathematics, Diponegoro University Semarang, Indonesia)
Tarno (Department of Statistics, Faculty of Sciences and Mathematics, Diponegoro University Semarang, Indonesia)



Article Info

Publish Date
12 Oct 2025

Abstract

Accurate stock price forecasting is crucial in supporting investment decision-making, especially during stock price fluctuations. This research aims to improve the accuracy of stock price prediction on time series data through modification of the Long Short-Term Memory (LSTM) model. The modification is done by simplifying the hyperparameters, adding dense layers, and applying the Adam optimizer. In addition, this research also aims to compare the prediction error rate of the LSTM model with several other methods using the Mean Absolute Percentage Error (MAPE) metric. The results show that the modified LSTM model produces lower MAPE on different stock data, namely 3.51% (train) and 1.65% (test) for ANTM.JK, 2.24% (train) and 1.69% (test) for BBRI.JK, 2.17% (train) and 1.52% (test) for BBCA.JK, and 3.06% (train) and 1.43% (test) for BBNI.JK. This model outperforms the LSTM method before modification and other methods such as RNN, CNN, SES, WMA, and Facebook Prophet. This finding shows that LSTM modification significantly improves the accuracy of stock price prediction.

Copyrights © 2025






Journal Info

Abbrev

lontar

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management Electrical & Electronics Engineering Engineering

Description

Lontar Komputer: Jurnal Ilmiah Teknologi Informasi focuses on the theory, practice, and methodology of all aspects of technology in the field of computer science and engineering. It provides an international publication platform to boost the scientific and academic publication of research in the ...