Perbandingan Algoritma LSTM, Bi-LSTM, GRU, dan Bi-GRU untuk Prediksi Harga Saham Berbasis Deep Learning
Building of Informatics, Technology and Science (BITS) · 01.06.2025 · 7 (1) · 191-200
DOI: 10.47065/bits.v7i1.7252 ↗Kurz gefasst
Fachartikel in der Zeitschrift Building of Informatics, Technology and Science (BITS), online erschienen am 01.06.2025. Verfasst von Muthia Tshamaroh und 4 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Stock price prediction is an important component in making investment decisions. This study aims to compare the performance of four deep learning models, namely LSTM, Bi-LSTM, GRU, and Bi-GRU, in predicting stock prices, in order to find the most optimal model for the implementation of an accurate stock price prediction system. Five years of historical data undergoes normalization, windowing, and is separated into training data, validation data, and test data. Model training is conducted with different settings of batch size, timestep, and three kinds of optimizers (Adam, SGD, RMSprop). Performance assessment employs MSE, RMSE, MAE, and R² measurements. The findings indicate that the Bi-GRU model utilizing Adam optimizer settings, a batch size of 8, and a timestep of 21 yields the highest performance, achieving an MSE of 0.0003, an RMSE of 0.0169, an MAE of 0.0129, and an R² of 0.9438. This model demonstrates a strong capability to identify intricate patterns and long-term temporal relationships, outperforming other models in accuracy. The results advocate for the establishment of a predictive system that aids investors and firms in making strategic decisions based on data.
Zitieren
APA
Tshamaroh, M., Permana, I., Salisah, F. N., Muttakin, F., & Afdal, M. (2025). Perbandingan Algoritma LSTM, Bi-LSTM, GRU, dan Bi-GRU untuk Prediksi Harga Saham Berbasis Deep Learning. Building of Informatics, Technology and Science (BITS), 7(1), 191-200. https://doi.org/10.47065/bits.v7i1.7252
Vancouver
Tshamaroh M, Permana I, Salisah FN, Muttakin F, Afdal M. Perbandingan Algoritma LSTM, Bi-LSTM, GRU, dan Bi-GRU untuk Prediksi Harga Saham Berbasis Deep Learning. Building of Informatics, Technology and Science (BITS). 2025;7(1):191-200. doi:10.47065/bits.v7i1.7252
BibTeX
@article{Tshamaroh2025,
author = {Tshamaroh, Muthia and Permana, Inggih and Salisah, Febi Nur and Muttakin, Fitriani and Afdal, M},
title = {Perbandingan Algoritma LSTM, Bi-LSTM, GRU, dan Bi-GRU untuk Prediksi Harga Saham Berbasis Deep Learning},
journal = {Building of Informatics, Technology and Science (BITS)},
year = {2025},
volume = {7},
number = {1},
pages = {191--200},
doi = {10.47065/bits.v7i1.7252}
}
EUVIMED