IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i13p2148-d1691560.html

Enhancing Stock Price Forecasting with CNN-BiGRU-Attention: A Case Study on INDY

Author

Listed:
  • Madilyn Louisa

    (Department of Statistics, Universitas Padjadjaran, Jl. Bandung Sumedang km 21 Jatinangor, Sumedang 45363, Indonesia
    These authors contributed equally to this work.)

  • Gumgum Darmawan

    (Department of Statistics, Universitas Padjadjaran, Jl. Bandung Sumedang km 21 Jatinangor, Sumedang 45363, Indonesia
    These authors contributed equally to this work.)

  • Bertho Tantular

    (Department of Statistics, Universitas Padjadjaran, Jl. Bandung Sumedang km 21 Jatinangor, Sumedang 45363, Indonesia
    These authors contributed equally to this work.)

Abstract

The stock price of PT Indika Energy Tbk (INDY) reflects the dynamics of Indonesia’s energy sector, which is heavily influenced by global coal price fluctuations, national energy policies, and geopolitical conditions. This study aimed to develop an accurate forecasting model to predict the movement of INDY stock prices using a hybrid machine learning approach called CNN-BiGRU-AM. The objective was to generate future forecasts of INDY stock prices based on historical data from 28 August 2019 to 24 February 2025. The method applied a hybrid model combining a Convolutional Neural Network (CNN), Bidirectional Gated Recurrent Unit (BiGRU), and an Attention Mechanism (AM) to address the nonlinear, volatile, and noisy characteristics of stock data. The results showed that the CNN-BiGRU-AM model achieved high accuracy with a Mean Absolute Percentage Error (MAPE) below 3%, indicating its effectiveness in capturing long-term patterns. The CNN helped extract local features and reduce noise, the BiGRU captured bidirectional temporal dependencies, and the Attention Mechanism allocated weights to the most relevant historical information. The model remained robust even when stock prices were sensitive to external factors such as global commodity trends and geopolitical events. This study contributes to providing more accurate forecasting solutions for companies, investors, and stakeholders in making strategic decisions. It also enriches the academic literature on the application of deep learning techniques in financial data analysis and stock market forecasting within a complex and dynamic environment.

Suggested Citation

  • Madilyn Louisa & Gumgum Darmawan & Bertho Tantular, 2025. "Enhancing Stock Price Forecasting with CNN-BiGRU-Attention: A Case Study on INDY," Mathematics, MDPI, vol. 13(13), pages 1-16, June.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:13:p:2148-:d:1691560
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/13/2148/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/13/2148/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Siyi Li & Sijie Xu, 2025. "Enhancing stock price prediction using GANs and transformer-based attention mechanisms," Empirical Economics, Springer, vol. 68(1), pages 373-403, January.
    2. Shahzad Zaheer & Nadeem Anjum & Saddam Hussain & Abeer D. Algarni & Jawaid Iqbal & Sami Bourouis & Syed Sajid Ullah, 2023. "A Multi Parameter Forecasting for Stock Time Series Data Using LSTM and Deep Learning Model," Mathematics, MDPI, vol. 11(3), pages 1-24, January.
    3. Zhou, Guangzhao & Guo, Zanquan & Sun, Simin & Jin, Qingsheng, 2023. "A CNN-BiGRU-AM neural network for AI applications in shale oil production prediction," Applied Energy, Elsevier, vol. 344(C).
    4. Ivan Borisov Todorov & Fernando Sánchez Lasheras, 2023. "Stock Price Forecasting of IBEX35 Companies in the Petroleum, Electricity, and Gas Industries," Energies, MDPI, vol. 16(9), pages 1-21, April.
    5. Ruipeng Liu & Rangan Gupta, 2022. "Investors’ Uncertainty and Forecasting Stock Market Volatility," Journal of Behavioral Finance, Taylor & Francis Journals, vol. 23(3), pages 327-337, July.
    6. Arthur A. Benthem & Edmund Crooks & Stefano Giglio & Eugenie Schwob & Johannes Stroebel, 2022. "The effect of climate risks on the interactions between financial markets and energy companies," Nature Energy, Nature, vol. 7(8), pages 690-697, August.
    7. Nikitas Stamatopoulos & Guglielmo Mazzola & Stefan Woerner & William J. Zeng, 2021. "Towards Quantum Advantage in Financial Market Risk using Quantum Gradient Algorithms," Papers 2111.12509, arXiv.org, revised Jul 2022.
    8. Dedi Kusmayadi & Irman Firmansyah & Wildan Dwi Dermawan & Kurniawan Kurniawan, 2024. "Does an Energy Company’s Sensitivity Affect its Performance?: Environmental, Social and Governance Analysis in Coal, Gas, Oil, and Basic Materials Industry Companies," International Journal of Energy Economics and Policy, Econjournals, vol. 14(2), pages 234-243, March.
    9. Srivinay & B. C. Manujakshi & Mohan Govindsa Kabadi & Nagaraj Naik, 2022. "A Hybrid Stock Price Prediction Model Based on PRE and Deep Neural Network," Data, MDPI, vol. 7(5), pages 1-11, April.
    10. Pande Ketut Rheynaldi & Endri Endri & Minanari Minanari & Putri Andari Ferranti & Subur Karyatun, 2023. "Energy Price and Stock Return: Evidence of Energy Sector Companies in Indonesia," International Journal of Energy Economics and Policy, Econjournals, vol. 13(5), pages 31-36, September.
    11. Alkathery, Mohammed A. & Chaudhuri, Kausik & Nasir, Muhammad Ali, 2022. "Implications of clean energy, oil and emissions pricing for the GCC energy sector stock," Energy Economics, Elsevier, vol. 112(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhikai Zhang & Yaojie Zhang & Yudong Wang & Qunwei Wang, 2024. "The predictability of carbon futures volatility: New evidence from the spillovers of fossil energy futures returns," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 44(4), pages 557-584, April.
    2. Bonato, Matteo & Cepni, Oguzhan & Gupta, Rangan & Pierdzioch, Christian, 2023. "Climate risks and state-level stock market realized volatility," Journal of Financial Markets, Elsevier, vol. 66(C).
    3. Satar Bakhsh & Md Shabbir Alam & Wei Zhang, 2024. "Green finance and Sustainable Development Goals: is there a role for geopolitical uncertainty?," Economic Change and Restructuring, Springer, vol. 57(4), pages 1-30, August.
    4. Pedro Reis & Ana Paula Serra & Jo~ao Gama, 2025. "The Role of Deep Learning in Financial Asset Management: A Systematic Review," Papers 2503.01591, arXiv.org.
    5. Hu, Lei & Song, Min & Wen, Fenghua & Zhang, Yun & Zhao, Yunning, 2025. "The impact of climate attention on risk spillover effect in energy futures markets," Energy Economics, Elsevier, vol. 141(C).
    6. Feiyu Chen & Linghui Sun & Boyu Jiang & Xu Huo & Xiuxiu Pan & Chun Feng & Zhirong Zhang, 2025. "A Review of AI Applications in Unconventional Oil and Gas Exploration and Development," Energies, MDPI, vol. 18(2), pages 1-30, January.
    7. Fu, Yating & He, Lingyun & Xia, Yufei & Liu, Rongyan & Chen, Ling, 2025. "Asymmetric effects of media climate sentiment divergence on the volatility of green and grey energy stocks," Finance Research Letters, Elsevier, vol. 74(C).
    8. Xie, Qichang & Gong, Ruize & Yin, Lei & Xu, Xin, 2025. "Does extreme climate exacerbate the risk spillover in green finance markets? evidence from a multi-horizon investment perspective," Journal of International Money and Finance, Elsevier, vol. 151(C).
    9. Yuan, Xianghui & Li, Xiang, 2022. "Delta-hedging demand and intraday momentum: Evidence from China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 600(C).
    10. Han Yan & Md. Qamruzzaman & Sylvia Kor, 2023. "Nexus between Green Investment, Fiscal Policy, Environmental Tax, Energy Price, Natural Resources, and Clean Energy—A Step towards Sustainable Development by Fostering Clean Energy Inclusion," Sustainability, MDPI, vol. 15(18), pages 1-25, September.
    11. Htet Htet Htun & Michael Biehl & Nicolai Petkov, 2024. "Forecasting relative returns for S&P 500 stocks using machine learning," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-16, December.
    12. Peijie Ye & Hao Zhang & Xi Zhou, 2024. "CNN-CBAM-LSTM: Enhancing Stock Return Prediction Through Long and Short Information Mining in Stock Prediction," Mathematics, MDPI, vol. 12(23), pages 1-19, November.
    13. Su, Xiaomei & Razi, Ummara & Zhao, Shangmei & Li, Wei & Gu, Xiao & Yan, Jiale, 2025. "Geopolitical risk and energy markets in China," International Review of Financial Analysis, Elsevier, vol. 103(C).
    14. Fava, Santino Del & Gupta, Rangan & Pierdzioch, Christian & Rognone, Lavinia, 2024. "Forecasting international financial stress: The role of climate risks," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 92(C).
    15. Niklas Stolz & Benedict S. Probst, 2025. "The negligible role of carbon offsetting in corporate climate strategies," Nature Communications, Nature, vol. 16(1), pages 1-12, December.
    16. Banki T. Chunwate & Robert A. Marchant & Eleanor K. K. Jew & Lindsay C. Stringer, 2025. "Understanding Local Perspectives on the Trajectory and Drivers of Gazetted Forest Reserve Change in Nasarawa State, North Central Nigeria," Land, MDPI, vol. 14(7), pages 1-29, July.
    17. Abha Naik & Esra Yeniaras & Gerhard Hellstern & Grishma Prasad & Sanjay Kumar Lalta Prasad Vishwakarma, 2023. "From Portfolio Optimization to Quantum Blockchain and Security: A Systematic Review of Quantum Computing in Finance," Papers 2307.01155, arXiv.org.
    18. Nyakundi M. Michieka, 2024. "Book Review: The Economics of the Oil and Gas Industry: Emerging Markets and Developing Economies edited by Joshua Yindenaba, Amin Karimu, and Runar Brännlund," The Energy Journal, , vol. 45(6), pages 223-226, November.
    19. Elie Bouri & Tom L. Dudda & Lavinia Rognone & Thomas Walther, 2025. "Climate risk and the nexus of clean energy and technology stocks," Annals of Operations Research, Springer, vol. 347(1), pages 445-469, April.
    20. Yufeng Chen & Simin Shen & Chuwen Wang, 2025. "Climate risks and stock market volatility spillover: new insights from wavelet and causality methods," Economic Change and Restructuring, Springer, vol. 58(3), pages 1-32, June.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:13:p:2148-:d:1691560. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.