BiLSTM with Attention Mechanism for Predicting Unilever Indonesia Stock Price Trends
- Publication History
- Published online: December 1, 2026
- DOI
- https://doi.org/10.35877/454RI.jinav5029
- Copyright
- Copyright (c) 2026 Zulkifli Rais, Muhammad Fahmuddin S, Syarifa Ghefira Adiazzahra
- User License
- https://creativecommons.org/licenses/by-nc-sa/4.0
Abstract
Prediction plays an important role in decision making based on historical data. This study implements the Bidirectional Long Short-Term Memory (BiLSTM) model with an Attention Mechanism to predict the weekly stock price of Unilever Indonesia. The data used consists of Unilever Indonesia’s weekly stock price from May 2015 to May 2025. BiLSTM is employed to capture long-term dependencies in both forward and backward directions, while the Attention Mechanism is utilized to assign greater weight to the most relevant information, thereby enhancing prediction accuracy. The analysis results on the testing data indicate that the BiLSTM model with Attention Mechanism performs better, achieving a MAPE value of 5.178%, compared to the standard LSTM and BiLSTM models.
Keywords
References (65)
- Ahmad, A. (2017). Mengenal artificial intelligence, machine learning, & deep learning. Jurnal Teknologi Indonesia, 1, 1–6. https://amt-it.com/mengenal-perbedaan-artificial-inteligence-machine-learning-deep-learning/
- Ahmar, A. S., Rais, Z., & Tunnas, F. (2025). Comparative analysis of support vector regression (SVR) and SutteARIMA in predicting coal prices in Indonesia. Quality & Quantity, 59(5), 4185–4200. https://doi.org/10.1007/s11135-025-02162-2
- Annas, S., Rais, Z., Aswi, A., Indrayasaro, & Nurfajriani. (2023). Implementation of support vector regression (SVR) analysis in predicting gold prices in Indonesia. In Proceedings of the 5th International Conference on Statistics, Mathematics, Teaching, and Research 2023 (ICSMTR 2023) (pp. 97–107). Atlantis Press. https://doi.org/10.2991/978-94-6463-332-0_12
- Atsalakis, G. S., & Valavanis, K. P. (2009). Surveying stock market forecasting techniques – Part II: Soft computing methods. Expert Systems with Applications, 36(3), 5932–5941. https://doi.org/10.1016/j.eswa.2008.07.006
- Bahdanau, D., Cho, K. H., & Bengio, Y. (2015). Neural machine translation by jointly learning to align and translate. In 3rd International Conference on Learning Representations (ICLR 2015), Conference Track Proceedings (pp. 1–15). https://doi.org/10.48550/arXiv.1409.0473
- Bao, W., Yue, J., & Rao, Y. (2017). A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLOS ONE, 12(7), e0180944. https://doi.org/10.1371/journal.pone.0180944
- Bengio, Y., Simard, P., & Frasconi, P. (1994). Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2), 157–166. https://doi.org/10.1109/72.279181
- Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192–213. https://doi.org/10.1016/j.ins.2011.12.028
- Brauwers, G., & Frasincar, F. (2023). A general survey on attention mechanisms in deep learning. IEEE Transactions on Knowledge and Data Engineering, 35(4), 3279–3298. https://doi.org/10.1109/TKDE.2021.3126456
- Cahiers, L. (2018). Forecasting Algeria’s natural gas production using a basic and generalized. 33, 201–232.
- Cerqueira, V., Torgo, L., & Mozeti?, I. (2020). Evaluating time series forecasting models: An empirical study on performance estimation methods. Machine Learning, 109(11), 1997–2028. https://doi.org/10.1007/s10994-020-05910-7
- Chen, K., Zhou, Y., & Dai, F. (2015). A LSTM-based method for stock returns prediction: A case study of China stock market. In 2015 IEEE International Conference on Big Data (Big Data) (pp. 2823–2824). IEEE. https://doi.org/10.1109/BigData.2015.7364089
- Choldun, M. I., & Surendro, K. (2018). Klasifikasi penelitian dalam deep learning. Jurnal Ilmiah Manajemen Informatika, 10(1), 25.
- Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 25(2), 383–417. https://doi.org/10.2307/2325486
- Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654–669. https://doi.org/10.1016/j.ejor.2017.11.054
- Gers, F. A., Schmidhuber, J., & Cummins, F. (2000). Learning to forget: Continual prediction with LSTM. Neural Computation, 12(10), 2451–2471. https://doi.org/10.1162/089976600300015015
- Graves, A., & Schmidhuber, J. (2005). Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Networks, 18(5–6), 602–610. https://doi.org/10.1016/j.neunet.2005.06.042
- Greff, K., Srivastava, R. K., Koutník, J., Steunebrink, B. R., & Schmidhuber, J. (2017). LSTM: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, 28(10), 2222–2232. https://doi.org/10.1109/TNNLS.2016.2582924
- Hameed, Z., & Garcia-Zapirain, B. (2020). Sentiment classification using a single-layered BiLSTM model. IEEE Access, 8, 73992–74001. https://doi.org/10.1109/ACCESS.2020.2988550
- Hartono, P. C., & Widiantoro, A. D. (2024). Analisis prediksi harga saham Unilever menggunakan regresi linier dengan RapidMiner. Journal of Computer and Information Systems Ampera, 5(3), 2775–2496. https://doi.org/10.51519
- He, H., Chen, J., Jin, H., & Chen, S. (2006). Stock trend analysis and trading strategy. In Proceedings of the 9th Joint Conference on Information Sciences (JCIS 2006). https://doi.org/10.2991/jcis.2006.135
- Hewamalage, H., Bergmeir, C., & Bandara, K. (2021). Recurrent neural networks for time series forecasting: Current status and future directions. International Journal of Forecasting, 37(1), 388–427. https://doi.org/10.1016/j.ijforecast.2020.06.008
- Hochreiter, S. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
- Hu, Z., Zhao, Y., & Khushi, M. (2021). A survey of forex and stock price prediction using deep learning. Applied System Innovation, 4(1), 9. https://doi.org/10.3390/asi4010009
- Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679–688. https://doi.org/10.1016/j.ijforecast.2006.03.001
- Investing.com. (n.d.). Unilever Indonesia stock price history. Retrieved from https://id.investing.com/equities/unilever-indon-historical-data
- Istiake Sunny, M. A., Maswood, M. M. S., & Alharbi, A. G. (2020). Deep learning-based stock price prediction using LSTM and bi-directional LSTM model. In 2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES) (pp. 87–92). IEEE. https://doi.org/10.1109/NILES50944.2020.9257950
- Jiang, W. (2021). Applications of deep learning in stock market prediction: Recent progress. Expert Systems with Applications, 184, 115537. https://doi.org/10.1016/j.eswa.2021.115537
- Kim, H. Y., & Won, C. H. (2018). Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Systems with Applications, 103, 25–37. https://doi.org/10.1016/j.eswa.2018.03.002
- Kim, K. G. (2022). Deep learning. In Artificial intelligence for 6G (Vol. 22, No. 4, pp. 247–303). https://doi.org/10.1007/978-3-030-95041-5_6
- Kumbure, M. M., Lohrmann, C., Luukka, P., & Porras, J. (2022). Machine learning techniques and data for stock market forecasting: A literature review. Expert Systems with Applications, 197, 116659. https://doi.org/10.1016/j.eswa.2022.116659
- LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539
- Lim, B., & Zohren, S. (2021). Time-series forecasting with deep learning: A survey. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 379(2194), 20200209. https://doi.org/10.1098/rsta.2020.0209
- Lu, W., Li, J., Li, Y., Sun, A., & Wang, J. (2020). A CNN-LSTM-based model to forecast stock prices. Complexity, 2020, 1–10. https://doi.org/10.1155/2020/6622927
- Lu, W., Li, J., Wang, J., & Qin, L. (2021). A CNN-BiLSTM-AM method for stock price prediction. Neural Computing and Applications, 33(10), 4741–4753. https://doi.org/10.1007/s00521-020-05532-z
- Lubis, N., Siambaton, M. Z., & Aulia, R. (2024). Implementasi algoritma deep learning pada aplikasi speech to text online dengan metode recurrent neural network (RNN). sudo Jurnal Teknik Informatika, 3(3), 113–126. https://doi.org/10.56211/sudo.v3i3.583
- Luong, T., Pham, H., & Manning, C. D. (2015). Effective approaches to attention-based neural machine translation. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (pp. 1412–1421). Association for Computational Linguistics. https://doi.org/10.18653/v1/D15-1166
- Makridakis, S., Spiliotis, E., & Assimakopoulos, V. (2018). Statistical and machine learning forecasting methods: Concerns and ways forward. PLOS ONE, 13(3), e0194889. https://doi.org/10.1371/journal.pone.0194889
- Mirdad, K., Dina, A. R., & Haris, R. (2024). Analisis tren pasar dan pengambilan keputusan berbasis data dalam meningkatkan daya saing bisnis. Jurnal Bisnis Digital Interdisiplin, 5(2), 72–80. https://doi.org/10.34306/abdi.v5i2.1178
- Moghar, A., & Hamiche, M. (2020). Stock market prediction using LSTM recurrent neural network. Procedia Computer Science, 170, 1168–1173. https://doi.org/10.1016/j.procs.2020.03.049
- Muliyah, P., et al. (2020). Analisis kinerja perdagangan saham dan pengaruhnya terhadap harga saham sektor industri properti yang terdaftar di Bursa Efek Indonesia (BEI). 7(2).
- Nelson, D. M. Q., Pereira, A. C. M., & de Oliveira, R. A. (2017). Stock market's price movement prediction with LSTM neural networks. In 2017 International Joint Conference on Neural Networks (IJCNN) (pp. 1419–1426). IEEE. https://doi.org/10.1109/IJCNN.2017.7966019
- Niu, Z., Zhong, G., & Yu, H. (2021). A review on the attention mechanism of deep learning. Neurocomputing, 452, 48–62. https://doi.org/10.1016/j.neucom.2021.03.091
- Nurtiwi, N., Ruliana, R., & Rais, Z. (2022). Convolutional neural network (CNN) method for classification of images by age. JINAV: Journal of Information and Visualization, 3(2), 126–130. https://doi.org/10.35877/454ri.jinav1481
- Nusrang, M., Fahmuddin S, M., & Haryadi, D. I. (2025). Analisis model volatilitas ARCH/GARCH untuk mengestimasi value at risk pada data saham PT Indofood CBP Sukses Makmur Tbk (ICBP). VARIANSI: Journal of Statistics and Its Application on Teaching and Research, 7(3), 216–227. https://doi.org/10.35580/variansiunm413
- Nusrang, M., Muthahharah, S., Rais, Z., Tri Utomo, A., & Alfairus, M. Q. (2026). Autoregressive integrated moving average model with exogenous variable (ARIMAX) for forecasting the money supply in Indonesia. JINAV: Journal of Information and Visualization, 7(1), 114–123. https://doi.org/10.35877/454ri.jinav4877
- Patel, J., Shah, S., Thakkar, P., & Kotecha, K. (2015). Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Systems with Applications, 42(1), 259–268. https://doi.org/10.1016/j.eswa.2014.07.040
- Qin, Y., Song, D., Chen, H., Cheng, W., Jiang, G., & Cottrell, G. W. (2017). A dual-stage attention-based recurrent neural network for time series prediction. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17) (pp. 2627–2633). https://doi.org/10.24963/ijcai.2017/366
- Rais, Z., Fahmuddin S, M., Saida, S., & Triutomo, A. (2025). Implementation of machine learning algorithm with extreme gradient boosting (XGBoost) method in hypertension level classification. Journal of Applied Science, Engineering, Technology, and Education, 7(1), 126–136. https://doi.org/10.35877/454ri.asci4191
- Rais, Z., Hafid, H., & Bunga, Y. R. (2026). Rainfall classification using output statistics models based on classification and regression trees with principal component analysis preprocessing. JINAV: Journal of Information and Visualization, 7(1), 69–82. https://doi.org/10.35877/454ri.jinav4788
- Rais, Z., Sudarmin, & Syahputra, A. (2025). Backpropagation neural network method for the classification of districts/cities based on macro socio-economic indicators in the Province of South Sulawesi. Quantitative Economics and Management Studies, 6(2), 273–282. https://doi.org/10.35877/454ri.qems3982
- Ruliana, R., Rais, Z., Marni, M., & Ahmar, A. S. (2024). Implementation of the support vector regression (SVR) method in inflation prediction in Makassar City. ARRUS Journal of Mathematics and Applied Science, 4(1), 28–35. https://doi.org/10.35877/mathscience2608
- Schuster, M., & Paliwal, K. K. (1997). Bidirectional recurrent neural networks. EMC - Traité de médecine AKOS, 8(2), 1–4. https://doi.org/10.1016/s1634-6939(13)59289-1
- Schuster, M., & Paliwal, K. K. (1997). Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11), 2673–2681. https://doi.org/10.1109/78.650093
- Selle, N., Yudistira, N., & Dewi, C. (2022). Perbandingan prediksi penggunaan listrik dengan menggunakan metode long short term memory (LSTM) dan recurrent neural network (RNN). Jurnal Teknologi Informasi dan Ilmu Komputer, 9(1), 155–162. https://doi.org/10.25126/jtiik.2022915585
- Selvin, S., Vinayakumar, R., Gopalakrishnan, E. A., Menon, V. K., & Soman, K. P. (2017). Stock price prediction using LSTM, RNN and CNN-sliding window model. In 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI) (pp. 1643–1647). IEEE. https://doi.org/10.1109/ICACCI.2017.8126078
- Seventeen, W. L., & Shinta, S. D. (2021). Pengaruh economic value added dan return on equity (ROE) terhadap harga saham pada perusahaan investasi yang terdaftar di BEI tahun 2016–2019. JAZ: Jurnal Akuntansi Unihaz, 4(1), 138. https://doi.org/10.32663/jaz.v4i1.2094
- Sezer, O. B., Gudelek, M. U., & Ozbayoglu, A. M. (2020). Financial time series forecasting with deep learning: A systematic literature review: 2005–2019. Applied Soft Computing, 90, 106181. https://doi.org/10.1016/j.asoc.2020.106181
- Shanker, M., Hu, M. Y., & Hung, M. S. (1996). Effect of data standardization on neural network training. Omega, 24(4), 385–397. https://doi.org/10.1016/0305-0483(96)00010-2
- Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2019). The performance of LSTM and BiLSTM in forecasting time series. In 2019 IEEE International Conference on Big Data (Big Data) (pp. 3285–3292). IEEE. https://doi.org/10.1109/BigData47090.2019.9005997
- Sianturi, B., Cholissodin, T., & Yudistira, N. I. (2023). Penerapan algoritma long short-term memory (LSTM) berbasis multi fungsi aktivasi terbobot dalam prediksi harga Ethereum. Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 7.
- Syalsabila, A., Ikhwana, N., Utomo, A. T., Rahmanda, L. R., & Rais, Z. (2025). Perbandingan model value-at-risk (VaR) hybrid GARCH-EVT dan model standar dalam pengukuran risiko ekstrem pada portofolio saham sektoral di Indonesia. VARIANSI: Journal of Statistics and Its Application on Teaching and Research, 7(3), 192–204. https://doi.org/10.35580/variansiunm461
- Yadav, A., Jha, C. K., & Sharan, A. (2020). Optimizing LSTM for time series prediction in Indian stock market. Procedia Computer Science, 167, 2091–2100. https://doi.org/10.1016/j.procs.2020.03.257
- Young, T., Hazarika, D., Poria, S., & Cambria, E. (2018). Recent trends in deep learning based natural language processing. IEEE Computational Intelligence Magazine, 13(3), 55–75. https://doi.org/10.1109/MCI.2018.2840738
- Zein, A., et al. (2023). Pengenalan pembelajaran mesin dan deep learning. 4(1). https://jurnal.pranataindonesia.ac.id/index.php/jik/article/download/96/49
How to Cite
Copyright & license

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


