IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0319775.html
   My bibliography  Save this article

A dual-path convolutional neural network combined with an attention-based bidirectional long short-term memory network for stock price prediction

Author

Listed:
  • Guiyan Zhao
  • Yunfei Cheng
  • Jianhui Yang
  • Jiayuan Ouyang

Abstract

The complexities of stock price data, characterized by its nonlinearity, non-stationarity, and intricate spatiotemporal patterns, make accurate prediction a substantial challenge. To address this, we propose the DCA-BiLSTM model, which combines dual-path convolutional neural networks with an attention mechanism (DCA) and bidirectional long short-term memory networks (BiLSTM). This model captures deep information and complex dependencies within time-series data. First, wavelet packet decomposition extracts high- and low-frequency features, followed by DCA for robust deep feature extraction, and finally, BiLSTM models bidirectional dependencies. Validated on datasets from Yahoo Finance, including Apple, Google, Tesla stocks, and the Nasdaq index, the model consistently outperforms traditional approaches. The DCA-BiLSTM achieves an R2 of 0.9507 for Apple, 0.9595 for Google, 0.9077 for Tesla, and 0.9594 for the Nasdaq index, with significant reductions in error metrics across all datasets. These results demonstrate the model’s robustness and improved predictive accuracy, offering reliable insights for stock price forecasting.

Suggested Citation

  • Guiyan Zhao & Yunfei Cheng & Jianhui Yang & Jiayuan Ouyang, 2025. "A dual-path convolutional neural network combined with an attention-based bidirectional long short-term memory network for stock price prediction," PLOS ONE, Public Library of Science, vol. 20(4), pages 1-16, April.
  • Handle: RePEc:plo:pone00:0319775
    DOI: 10.1371/journal.pone.0319775
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0319775
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0319775&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0319775?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    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:plo:pone00:0319775. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.