Peningkatan Akurasi Nilai Harga Saham Menggunakan Metode Long Short-Term Memory (LSTM) pada PT Unilever Tbk
Main Article Content
Abstract
Article Summary
The rapid development of technology has an impact on the economy of society, one of which is investing in stocks. Stocks are a proof of an individual's ownership of an asset in a company. However, stock prices have a very high level of fluctuation, so an accurate method is needed to help predict stock prices. LSTM and GRU were chosen due to their intrinsic ability to handle long-term and short-term issues in time series data. LSTM has a complex memory structure that allows decision-making based on long-term and short-term information. Meanwhile, GRU has a simpler structure with a focus on gate mechanisms to control the flow of information, resulting in a lighter and faster model. Therefore, this study will compare two RNN methods, namely Long Short Term Memory (LSTM) and Gated Recurrent Unit (GRU), in predicting stock prices using the stock price data of PT. Unilever (UNVR) with evaluation metrics MAPE and RMSE. The combination of parameters used to evaluate the MAPE and RMSE values in this study includes learning rate, timesteps, batch size, and epoch. The results of this study indicate that the GRU method is more accurate compared to the LSTM method. This is evidenced by the evaluation results of the LSTM method with the lowest MAPE value of 2.42% and the lowest RMSE value of 0.01807, while the evaluation results of the GRU method with the lowest MAPE value of 2.14% and the lowest RMSE value of 0.01775. The combination of parameters used in this study also has an impact on the final MAPE and RMSE results, especially with the use of learning rates of 0.001 and 0.0001. Thus, it can be concluded in this study that the GRU method is more accurate and effective compared to the LSTM method in predicting stock prices.
Keywords
Article Keywords
Improvement ; Accuracy ; LSTM
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-BY 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
Elviani, S., Simbolon, R., & Dewi, S. P. (2019). Faktor-Faktor Yang Mempengaruhi Harga Saham Perusahaan Telekomunikasi. JRAM (Jurnal Riset Akuntansi Multiparadigma), 6(1).
Gao, T., Chai, Y., & Liu, Y. (2017, November). Applying long short term momory neural networks for predicting stock closing price. In 2017 8th IEEE international conference on software engineering and service science (ICSESS) (pp. 575-578). IEEE. https://doi.org/10.1109/ICSESS.2017.8342981.
Hastomo, W., Karno, A. S. B., Kalbuana, N., Nisfiani, E., & Lussiana, E. T. P. (2021). Optimasi deep learning untuk prediksi saham di masa pandemi covid-19. JEPIN (Jurnal Edukasi dan Penelitian Informatika), 7(2), 133-140.
Idrees, S. M., Alam, M. A., & Agarwal, P. (2019). A prediction approach for stock market volatility based on time series data. IEEE Access, 7, 17287-17298.
Khashei, M., Bijari, M., & Ardali, G. A. R. (2009). Improvement of auto-regressive integrated moving average models using fuzzy logic and artificial neural networks (ANNs). Neurocomputing, 72(4-6), 956-967. https://doi.org/10.1016/j.neucom.2008.04.017.
Lathifah, H. M., Febrianti, D. S., Utami, A. P., Ulhaq, A. A., Tulasmi, T., & Mukti, T. (2021). Dampak pandemi COVID-19 terhadap nilai harga saham syariah di Indonesia. Jurnal Ilmiah Ekonomi Islam, 7(1), 223-229. http://dx.doi.org/10.29040/jiei.v7i1.1772.
Lilipaly, G. S., Hatidja, D., & Kekenusa, J. S. (2014). Prediksi harga saham PT. BRI, TBK. Menggunakan metode ARIMA (autoregressive integrated moving average). Jurnal Ilmiah Sains, 60-67. https://doi.org/10.35799/jis.14.2.2014.5927.
Meriani, A. P., & Rahmatulloh, A. (2024). Perbandingan Gated Recurrent Unit (Gru) Dan Algoritma Long Short Term Memory (Lstm) Linear Refression Dalam Prediksi Harga Emas Menggunakan Model Time Series. Jurnal Informatika dan Teknik Elektro Terapan, 12(1). http://dx.doi.org/10.23960/jitet.v12i1.3808.
Prayogi, K., Gata, W., & Kussanti, D. P. (2024). Prediksi Harga Saham Bank Central Asia Menggunakan Algoritma Deep Learning GRU. Jutisi: Jurnal Ilmiah Teknik Informatika dan Sistem Informasi, 13(1), 647-658. http://dx.doi.org/10.35889/jutisi.v13i1.1910.
Puteri, D. I. (2023). Implementasi Long Short Term Memory (LSTM) dan Bidirectional Long Short Term Memory (BiLSTM) Dalam Prediksi Harga Saham Syariah. Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, 11(1), 35-43. https://doi.org/10.34312/euler.v11i1.19791.
Santoso, A., & Hansun, S. (2019). Prediksi IHSG dengan Backpropagation Neural Network. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 3(2), 313-318.
Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2018, December). A comparison of ARIMA and LSTM in forecasting time series. In 2018 17th IEEE international conference on machine learning and applications (ICMLA) (pp. 1394-1401). Ieee.
Sofi, K., Sunge, A. S., Riady, S. R., & Kamalia, A. Z. (2021). Perbandingan algoritma linear regression, LSTM, dan GRU dalam memprediksi harga saham dengan model time series. PROSIDING SEMINASTIKA, 3(1), 39-46. https://doi.org/10.47002/seminastika.v3i1.275.