Performance of XGBOOST-LSTM and CNN-LSTM Algorithms in the Analysis of Stock Price Prediction Models in the Indonesian Banking Sector
DOI:
https://doi.org/10.56705/ijodas.v7i2.459Keywords:
Prediction, XGBoost, LSTM, CNNAbstract
Salah satu indikator yang dapat melihat performa ekonomi suatu negara adalah pasar saham dari negara tersebut karena menggambarkan ekspetasi dari seorang investor dalam membeli saham atau menjual saham sesuai kondisi ekonomi dari perusahaan-perusahaan yang ada di dalam suatu negara. Prediksi harga saham perlu dilakukan karena ada kepentingan dalam berbagai pihak baik dari sisi investor maupun pihak perusahaan yang menerima dana investasi. Penelitian ini membandingkan antara algoritma XGBoost-LSTM dan CNN-LSTM. Dataset yang digunakan merupakan closing price setiap 1 hari dalam rentang waktu 1.000 hari pada data saham perusahaan di sektor perbankan yaitu PT Bank Central Asia Tbk, PT Bank Rakyat Indonesia (Persero) Tbk, dan PT Bank Mandiri (Persero) Tbk. Setiap model melakukan prediksi 1 data hari ke depan berdasarkan 4 data riwayat sebelumnya. Perbandingan hasil dari model CNN-LSTM dengan XGBoost-LSTM dilakukan dengan metrik evaluasi yang sudah ditetapkan yaitu RMSE, RMAE, R2, dan MAPE. Hasilnya model CNN-LSTM secara umum memberikan performa yang lebih baik pada sebagian besar metrik evaluasi.
Downloads
References
[1] M. A. Khan, H. Ali, H. Shabbir, F. Noor, and M. D. Majid, “Impact of Macroeconomic Indicators on Stock Market Predictions : A Cross Country Analysis,” vol. 08, no. 01, 2024, doi: https://doi.org/10.56979/801/2024.
[2] P. Meher and R. K. Mishra, “Assessing the influence of factors affecting stock market: an ISM approach,” 2026, doi: 10.1108/QRFM-05-2024-0135.
[3] R. Islam and Z. Ikbal, “IMPACT OF PREDICTIVE DATA MODELING ON BUSINESS DECISION-MAKING : A REVIEW OF STUDIES ACROSS RETAIL , FINANCE , AND LOGISTICS,” vol. 02, no. 02, pp. 33–62, 2022, doi: 10.63125/8hfbkt70.
[4] A. Roosmawarni, D. Fatihudin, and N. Mauliddah, “Market Capitalization and Financial Performance : Evidence from Banking Listed Company in Indonesia,” vol. 20, no. 2, pp. 124–136, 2022, doi: https://doi.org/10.31603/bisnisekonomi.v20i2.7835.
[5] G. Sonkavde, D. S. Dharrao, A. M. Bongale, and S. T. Deokate, “Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models : A Systematic Review , Performance Analysis and Discussion of Implications,” 2023, doi: https://doi.org/10.3390/ijfs11030094.
[6] B. Ramadevi, “Chaotic Time Series Forecasting Approaches Using Machine Learning Techniques: A Review,” 2022, doi: https://doi.org/10.3390/sym14050955.
[7] J. Shah, D. Vaidya, and M. Shah, “Intelligent Systems with Applications A comprehensive review on multiple hybrid deep learning approaches for stock prediction,” Intell. Syst. with Appl., vol. 16, no. July, p. 200111, 2022, doi: 10.1016/j.iswa.2022.200111.
[8] H. Song, “Forecasting Stock Market Indices Using the Recurrent Neural Network Based Hybrid Models: CNN-LSTM, GRU-CNN, and Ensemble Models,” 2023, doi: https://doi.org/10.3390/app13074644.
[9] J. Zhang, L. Ye, and Y. Lai, “Stock Price Prediction Using CNN-BiLSTM-Attention Model,” pp. 1–18, 2023, doi: https://doi.org/10.3390/math11091985.
[10] Z. Shi, Y. Hu, G. Mo, and J. Wu, “Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction,” vol. 14, no. 8, pp. 1–7, 2021.
[11] A. Mandal, Y. Shao, and X. Liu, “Automatic Historical Stock Price Dataset Generation Using Python,” pp. 1–6.
[12] J. M. Sahombu, “The Effect of Dividend Policy and Market Ratio on Stock Returns of Blue Chip Companies Listed on the Indonesia Stock,” vol. 5, no. 06, pp. 1810–1817, 2025, doi: 10.58471/jms.v5i06.
[13] H. Zheng, J. Wu, R. Song, L. Guo, and Z. Xu, “Predicting Financial Enterprise Stocks and Economic Data Trends Using Machine Learning Time Series Analysis,” 2024, doi: 10.20944/preprints202407.0895.v1.
[14] Y. Zhao and G. Yang, “Deep Learning-based Integrated Framework for stock price movement prediction,” Appl. Soft Comput., vol. 133, p. 109921, 2023, doi: 10.1016/j.asoc.2022.109921.
[15] D. Singh and B. Singh, “Feature wise normalization : An effective way of normalizing data ✩,” Pattern Recognit., vol. 122, p. 108307, 2022, doi: 10.1016/j.patcog.2021.108307.
[16] L. Liao, “An Empirical Study of the Impact of Hyperparameter Tuning and Model Optimization on the Performance Properties of,” vol. 31, no. 3, 2022, doi: https://doi.org/10.1145/3506695.
[17] Z. Tao, Q. Xu, X. Liu, and J. Liu, “An integrated approach implementing sliding window and DTW distance for time series forecasting tasks,” pp. 20614–20625, 2023.
[18] S. Zaheer et al., “A Multi Parameter Forecasting for Stock Time Series Data Using LSTM and Deep Learning Model,” Mathematics, vol. 11, no. 3, pp. 1–24, 2023, doi: 10.3390/math11030590.
[19] Z. Deng and O. Russakovsky, “Remember the Past : Distilling Datasets into Addressable Memories for Neural Networks,” no. NeurIPS, pp. 1–14, 2022.
[20] Z. Zikai, “Enhancing Distributed Machine Learning through Data Shuffling : Techniques , Challenges , and Implications,” vol. 03018, pp. 1–8, 2025.
[21] S. Albelali and M. Ahmed, “Hidden Leaks in Time Series Forecasting: How Data Leakage Affects LSTM Evaluation Across Configurations and Validation Strategies”.
[22] K. Ullah et al., “Short-Term Load Forecasting : A Comprehensive Review and Simulation Study With CNN-LSTM Hybrids Approach,” IEEE Access, vol. 12, no. August, pp. 111858–111881, 2024, doi: 10.1109/ACCESS.2024.3440631.
[23] S. Lin, Y. Wang, H. Wei, X. Wang, and Z. Wang, “Hybrid Method for Oil Price Prediction Based on Feature Selection and XGBOOST-LSTM,” 2025, doi: https://doi.org/10.3390/en18092246.
[24] M. Ahmadzadeh and S. M. Zahrai, “An integrated deep neural network model combining 1D CNN and LSTM for structural health monitoring utilizing multisensor time-series data,” no. 3, 2025, doi: 10.1177/14759217241239041.
[25] J. Wu, K. Xu, X. Chen, S. Li, and J. Zhao, “Price graphs : Utilizing the structural information of financial time series for stock prediction,” vol. 588, pp. 405–424, 2022, doi: 10.1016/j.ins.2021.12.089.
[26] X. Wang, H. Ren, and A. Wang, “Smish : A Novel Activation Function for Deep Learning Methods,” 2022, doi: https://doi.org/10.3390/electronics11040540.
[27] A. Zafar et al., “A Comparison of Pooling Methods for Convolutional Neural Networks,” pp. 1–21, 2022, doi: https://doi.org/10.3390/app12178643.
[28] S. Abed and M. H. Alshayeji, “Hybrid XGBoost-LSTM model for oil well production forecasting using the volve field dataset,” Results Eng., vol. 30, no. March, p. 110128, 2026, doi: 10.1016/j.rineng.2026.110128.
[29] H. Oukhouya, H. Kadiri, K. El Himdi, and R. Guerbaz, “Forecasting International Stock Market Trends : XGBoost , LSTM , LSTM-XGBoost , And Backtesting XGBoost Models,” vol. 12, no. January, pp. 200–209, 2024, doi: 10.19139/soic-2310-5070-1822.
[30] K. S. Cabuk et al., “Chasing the objective upper eyelid symmetry formula,” Int. Ophthalmol., vol. 44, no. 1, pp. 1–9, 2024, doi: 10.1007/s10792-024-03157-y.
[31] T. O. Hodson, “Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not,” Geosci. Model Dev., vol. 15, no. 14, pp. 5481–5487, 2022, doi: 10.5194/gmd-15-5481-2022.
[32] J. Gao, “R-Squared ( R ) – How much variation is explained ?,” 2024, doi: 10.1177/26320843231186398.
[33] G. J. Exerc, S. Res, and E. Physiology, “What the mean absolute percentage error ( MAPE ) should adopt from Bland – Altman analyses,” 2025, doi: 10.1007/s12662-025-01084-3.
Published
Issue
Section
License
Copyright (c) 2026 M. Zainal Arifin, Filbert Chaitra Bessel Kristianto, Fadia Irsania Putri, Agung Bella Putra Utama

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Authors retain copyright and full publishing rights to their articles. Upon acceptance, authors grant Indonesian Journal of Data and Science a non-exclusive license to publish the work and to identify itself as the original publisher.
Self-archiving. Authors may deposit the submitted version, accepted manuscript, and version of record in institutional or subject repositories, with citation to the published article and a link to the version of record on the journal website.
Commercial permissions. Uses intended for commercial advantage or monetary compensation are not permitted under CC BY-NC 4.0. For permissions, contact the editorial office at ijodas.journal@gmail.com.
Legacy notice. Some earlier PDFs may display “Copyright © [Journal Name]” or only a CC BY-NC logo without the full license text. To ensure clarity, the authors maintain copyright, and all articles are distributed under CC BY-NC 4.0. Where any discrepancy exists, this policy and the article landing-page license statement prevail.










