Perbandingan Metode Long Short-Term Memory (LSTM) dan Gated Recurrent Unit (GRU) dalam Memprediksi Harga Saham Telkom

Authors

  • Gede Yogi Pratama Universitas Bumigora
  • Onis Alamsyah Universitas Bumigora
  • Hanif Aljauziah Universitas Bumigora
  • Muh Sohibul Ihsania Universitas Bumigora
  • Mohammad Mirza Universitas Bumigora
  • Lathifah Laili Andita Universitas Bumigora

DOI:

https://doi.org/10.70716/alpha.v2i2.475

Keywords:

Stock price prediction, Time series forecasting, Long Short-Term Memory (LSTM) , Gated Recurrent Unit (GRU), Deep learning

Abstract

Accurate stock price prediction remains a challenging task due to the highly volatile nature of financial markets and the influence of various macroeconomic factors and market sentiment. PT Telkom Indonesia Tbk (TLKM), one of the largest publicly listed companies in Indonesia, has attracted significant attention from investors because of its substantial market capitalization and active stock trading. This study aims to compare the performance of the Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models in predicting TLKM stock prices using time series data. The dataset consists of historical TLKM stock data, including the Open, High, Low, Close, Adjusted Close, and Volume variables. Data preprocessing involved data cleaning, normalization using the Min-Max Scaling technique, and time series sequence generation through the sliding window approach. Both LSTM and GRU models were developed using comparable network architectures and trained with the Adam optimizer and the Mean Squared Error (MSE) loss function. Model performance was evaluated using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The experimental results demonstrate that both models effectively capture historical stock price patterns. However, the GRU model consistently outperformed the LSTM model by achieving lower prediction errors while requiring lower computational complexity and training time. These findings suggest that GRU is a more effective and computationally efficient approach for predicting TLKM stock prices based on time series data.

Downloads

Download data is not yet available.

References

Amalou, I., Mouhni, N., & Abdali, A. (2022). Multivariate time series prediction by RNN architectures for energy consumption forecasting. Energy Reports, 8, 1084–1091. https://doi.org/10.1016/j.egyr.2022.07.139

Erica, D., & Vidada, I. A. (2022). Analisa fundamental perusahaan pada investasi kode saham TLKM. AKASIA: Artikel Ilmiah Sistem Informasi Akuntansi, 2. https://jurnal.bsi.ac.id/index.php/akasia

Erica, E., dkk. (2023). Penerapan metode pembelajaran mesin untuk prediksi pergerakan harga saham. Jurnal Akasia, 27(1), 27–34.

Hadi, M. F., & Priyanto, D. (2025). Perbandingan kinerja RNN, LSTM, dan GRU dalam prediksi harga saham TLKM menggunakan deep learning. Prosiding Seminar Nasional CORISINDO.

Kumar Mishra, A., & Kumar, V. M. (n.d.). Review paper on stock price prediction using supervised machine learning technique. International Journal of Advanced Research and Multidisciplinary Trends (IJARMT). https://ijarmt.com

Lestari, S. A., Atina, V., & Hasanah, H. (2025). Perbandingan model Gated Recurrent Unit dan Long Short-Term Memory dalam prediksi harga saham. Prosiding Seminar Nasional Teknologi Informasi dan Bisnis (SENATIB).

Lumbantoruan, S., Duha, A., Astuti, T. P., Wahidin, A. J., Rahmatullah, B., & Kurniawati, I. (2025). Prediksi harga saham PT Telkom Indonesia Tbk (TLKM) menggunakan Linear Regression, Random Forest, dan XGBoost. RIGGS: Journal of Artificial Intelligence and Digital Business, 4(4), 3429–3438. https://doi.org/10.31004/riggs.v4i4.4158

Mahadewi, N. M. (2025). Application of ARIMA model in forecasting the stock price of PT Telkom Indonesia (Persero) Tbk (TLKM). Journal of Actuarial, 4(2). http://e-journal.president.ac.id/presunivojs/index.php/JAFRM/index

Maria, F., Sembel, R., & Tobing, F. B. N. L. (2025). Short-term impact analysis of IndiHome acquisition by Telkomsel on stock returns with market return as a control variable: Analysis of profitability, liquidity, solvency, and activity before and after the acquisition at PT Telkom Indonesia. Fundamental Management Journal, 10(1), 21–40.

Meriani, A. P., & Rahmatulloh, A. (2024). Perbandingan Gated Recurrent Unit (GRU) dan algoritma Long Short-Term Memory (LSTM) linear regression dalam prediksi harga emas menggunakan model time series. Jurnal Informatika dan Teknik Elektro Terapan, 12(1). https://doi.org/10.23960/jitet.v12i1.3808

Mulia Agustina, S., & Gustian, D. (2025). Analisis kinerja algoritma prediksi saham pada PT GoTo Gojek Tokopedia Tbk (GOTO). Jurnal Rekayasa Teknologi Nusa Putra, 11(1), 53–67. https://rekayasa.nusaputra.ac.id/index

Nazhiroh, H., Fitria, D., Permana, D., & Zilrahmi. (2024). PT Telkom (Tbk) stock price forecasting using Long Short-Term Memory (LSTM). UNP Journal of Statistics and Data Science, 2(4), 414–421. https://doi.org/10.24036/ujsds/vol2-iss4/223

Nhlapho, W., Atemkeng, M., & Ndogmo, J. C. (2025). An attention-guided hybrid statistical and deep learning modeling for enhanced time series forecasting: A case study of South African telecommunication companies. Scientific African, 30. https://doi.org/10.1016/j.sciaf.2025.e02950

Omega Octaviani, K., Saputra, J., Nugroho, F. A., & Andrean, J. (2025). Aplikasi prediksi harga saham Telkom Indonesia berbasis Streamlit menggunakan machine learning. TAMIKA, 5(2). https://doi.org/10.46880/tamika.Vol5No2.pp327-333

Perdana, Y., Hanum, N. R., Rabiula, A., & Anzari, Y. (n.d.). Analisis perbandingan model GRU dan LSTM untuk prediksi harga saham Bank Rakyat Indonesia.

Puteri, D. I., Darmawan, G., & Ruchjana, B. N. (2024). Prediksi harga saham syariah menggunakan Bidirectional Long Short-Term Memory (BiLSTM) dan algoritma Grid Search. Jambura Journal of Mathematics, 6(1), 39–45. https://doi.org/10.37905/jjom.v6i1.23297

Ripto, J. A., & Heryanto, H. (n.d.). Penerapan Gated Recurrent Unit untuk prediksi pergerakan harga saham pada Bursa Efek Indonesia.

Rizki Pratama, F., Santoso, B., & Kacung, S. (2025). Prediksi harga saham PT Telkom menggunakan metode CNN-LSTM. Journal of Information System Management (JOISM), 7(1).

Rozi, F., Bagoes, M., & Junianto, S. (2023). Penerapan machine learning untuk prediksi harga saham PT Telekomunikasi Indonesia Tbk menggunakan algoritma K-Nearest Neighbors. Jurnal Informatika MULTI, 1(1).

Septiningrum, L., Yasin, H., & Tim Pengajar Jurusan Statistika. (2015). Prediksi Indeks Harga Saham Gabungan menggunakan Support Vector Regression (SVR) dengan algoritma Grid Search. Gaussian, 4(2), 315–321. http://ejournal-s1.undip.ac.id/index.php/gaussian

Sheryl Noven, M., Respatiwulan, R., & Sulandari, W. (2025). Is the Box-Cox transformation needed in modeling Telkom's stock price using NNAR and DESH methods? Media Statistika, 17(2), 185–196. https://doi.org/10.14710/medstat.17.2.185-196

Tholib, A., Agusmawati, N. K., & Khoiriyah, F. (2023). Prediksi harga emas menggunakan metode LSTM dan GRU. Jurnal Informatika dan Teknik Elektro Terapan, 11(3). https://doi.org/10.23960/jitet.v11i3.3250

Widiarma, I., Tegowati, & Yulianto, A. E. (2023). The effect of the IndiHome spin-off from PT Telkom Indonesia (Persero) and the merger of IndiHome with Telkomsel on TLKM shares on the IDX and TLK shares on the NYSE. Journal of Trends Economics and Accounting Research, 4(2), 487–497. https://doi.org/10.47065/jtear.v4i2.1051

Windytiafitli, R. (2023). Pengaruh faktor fundamental ekonomi makro terhadap harga saham di Jakarta Islamic Index (JII) tahun 2019–2022. Eksisbank: Ekonomi Syariah dan Bisnis Perbankan, 7(2), 337–350. https://doi.org/10.37726/ee.v7i2.934

Xiao, J., Bi, S., & Deng, T. (n.d.). Comparative analysis of LSTM, GRU, and Transformer models for stock price prediction.

Downloads

Published

2026-04-28

How to Cite

Yogi Pratama, G., Alamsyah, O., Aljauziah, H., Sohibul Ihsania, M., Mirza, M., & Laili Andita, L. (2026). Perbandingan Metode Long Short-Term Memory (LSTM) dan Gated Recurrent Unit (GRU) dalam Memprediksi Harga Saham Telkom. Journal of Science and Technology: Alpha, 2(2), 44–50. https://doi.org/10.70716/alpha.v2i2.475