IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v17y2024i5p200-d1393147.html
   My bibliography  Save this article

Encoder–Decoder Based LSTM and GRU Architectures for Stocks and Cryptocurrency Prediction

Author

Listed:
  • Joy Dip Das

    (Department of Computer Science, University of Manitoba, Winnipeg, MB R3T 5V6, Canada
    Current address: E2-445 EITC, 75A Chancellors Circle, Winnipeg, MB R3T 5V6, Canada.)

  • Ruppa K. Thulasiram

    (Department of Computer Science, University of Manitoba, Winnipeg, MB R3T 5V6, Canada
    Current address: E2-445 EITC, 75A Chancellors Circle, Winnipeg, MB R3T 5V6, Canada.)

  • Christopher Henry

    (Department of Computer Science, University of Manitoba, Winnipeg, MB R3T 5V6, Canada
    Current address: E2-445 EITC, 75A Chancellors Circle, Winnipeg, MB R3T 5V6, Canada.)

  • Aerambamoorthy Thavaneswaran

    (Department of Statistics, University of Manitoba, Winnipeg, MB R3T 2N2, Canada)

Abstract

This work addresses the intricate task of predicting the prices of diverse financial assets, including stocks, indices, and cryptocurrencies, each exhibiting distinct characteristics and behaviors under varied market conditions. To tackle the challenge effectively, novel encoder–decoder architectures, AE-LSTM and AE-GRU, integrating the encoder–decoder principle with LSTM and GRU, are designed. The experimentation involves multiple activation functions and hyperparameter tuning. With extensive experimentation and enhancements applied to AE-LSTM, the proposed AE-GRU architecture still demonstrates significant superiority in forecasting the annual prices of volatile financial assets from the multiple sectors mentioned above. Thus, the novel AE-GRU architecture emerges as a superior choice for price prediction across diverse sectors and fluctuating volatile market scenarios by extracting important non-linear features of financial data and retaining the long-term context from past observations.

Suggested Citation

  • Joy Dip Das & Ruppa K. Thulasiram & Christopher Henry & Aerambamoorthy Thavaneswaran, 2024. "Encoder–Decoder Based LSTM and GRU Architectures for Stocks and Cryptocurrency Prediction," JRFM, MDPI, vol. 17(5), pages 1-23, May.
  • Handle: RePEc:gam:jjrfmx:v:17:y:2024:i:5:p:200-:d:1393147
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/17/5/200/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/17/5/200/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. David G. McMillan, 2003. "Non‐linear Predictability of UK Stock Market Returns," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 65(5), pages 557-573, December.
    2. Gu, Shihao & Kelly, Bryan & Xiu, Dacheng, 2021. "Autoencoder asset pricing models," Journal of Econometrics, Elsevier, vol. 222(1), pages 429-450.
    3. Zexin Hu & Yiqi Zhao & Matloob Khushi, 2021. "A Survey of Forex and Stock Price Prediction Using Deep Learning," Papers 2103.09750, arXiv.org.
    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. Bakalli, Gaetan & Guerrier, Stéphane & Scaillet, Olivier, 2023. "A penalized two-pass regression to predict stock returns with time-varying risk premia," Journal of Econometrics, Elsevier, vol. 237(2).
    2. Alain-Philippe Fortin & Patrick Gagliardini & O. Scaillet, 2022. "Eigenvalue tests for the number of latent factors in short panels," Swiss Finance Institute Research Paper Series 22-81, Swiss Finance Institute.
    3. Hongcheng Ding & Xuanze Zhao & Zixiao Jiang & Shamsul Nahar Abdullah & Deshinta Arrova Dewi, 2024. "EUR-USD Exchange Rate Forecasting Based on Information Fusion with Large Language Models and Deep Learning Methods," Papers 2408.13214, arXiv.org.
    4. Eghbal Rahimikia & Stefan Zohren & Ser-Huang Poon, 2021. "Realised Volatility Forecasting: Machine Learning via Financial Word Embedding," Papers 2108.00480, arXiv.org, revised Nov 2024.
    5. Massimiliano Marcellino & Michael Pfarrhofer, 2024. "Bayesian nonparametric methods for macroeconomic forecasting," Chapters, in: Michael P. Clements & Ana Beatriz Galvão (ed.), Handbook of Research Methods and Applications in Macroeconomic Forecasting, chapter 5, pages 90-125, Edward Elgar Publishing.
    6. Jian Guo & Saizhuo Wang & Lionel M. Ni & Heung-Yeung Shum, 2022. "Quant 4.0: Engineering Quantitative Investment with Automated, Explainable and Knowledge-driven Artificial Intelligence," Papers 2301.04020, arXiv.org.
    7. Mei-Se Chien, 2013. "The Non-linear Ripple Effect of Housing Prices in Taiwan: A Smooth Transition Regressive Model," ERES eres2013_51, European Real Estate Society (ERES).
    8. Adel Javanmard & Jingwei Ji & Renyuan Xu, 2024. "Multi-Task Dynamic Pricing in Credit Market with Contextual Information," Papers 2410.14839, arXiv.org, revised Oct 2024.
    9. Dapeng Li & Feiyang Pan & Jia He & Zhiwei Xu & Dandan Tu & Guoliang Fan, 2023. "Style Miner: Find Significant and Stable Explanatory Factors in Time Series with Constrained Reinforcement Learning," Papers 2303.11716, arXiv.org.
    10. Zhao, Albert Bo & Cheng, Tingting, 2022. "Stock return prediction: Stacking a variety of models," Journal of Empirical Finance, Elsevier, vol. 67(C), pages 288-317.
    11. Chulwoo Han, 2022. "Bimodal Characteristic Returns and Predictability Enhancement via Machine Learning," Management Science, INFORMS, vol. 68(10), pages 7701-7741, October.
    12. Bildirici, Melike E. & Badur, Mesut M., 2019. "The effects of oil and gasoline prices on confidence and stock return of the energy companies for Turkey and the US," Energy, Elsevier, vol. 173(C), pages 1234-1241.
    13. Yilie Huang & Yanwei Jia & Xun Yu Zhou, 2024. "Mean--Variance Portfolio Selection by Continuous-Time Reinforcement Learning: Algorithms, Regret Analysis, and Empirical Study," Papers 2412.16175, arXiv.org.
    14. Ilias Chronopoulos & Katerina Chrysikou & George Kapetanios & James Mitchell & Aristeidis Raftapostolos, 2023. "Deep Neural Network Estimation in Panel Data Models," Working Papers 23-15, Federal Reserve Bank of Cleveland.
    15. McMillan, David G., 2007. "Bubbles in the dividend-price ratio? Evidence from an asymmetric exponential smooth-transition model," Journal of Banking & Finance, Elsevier, vol. 31(3), pages 787-804, March.
    16. Yuze Lu & Hailong Zhang & Qiwen Guo, 2023. "Stock and market index prediction using Informer network," Papers 2305.14382, arXiv.org.
    17. Liping Wang & Jiawei Li & Lifan Zhao & Zhizhuo Kou & Xiaohan Wang & Xinyi Zhu & Hao Wang & Yanyan Shen & Lei Chen, 2023. "Methods for Acquiring and Incorporating Knowledge into Stock Price Prediction: A Survey," Papers 2308.04947, arXiv.org.
    18. Doron Avramov & Si Cheng & Lior Metzker, 2023. "Machine Learning vs. Economic Restrictions: Evidence from Stock Return Predictability," Management Science, INFORMS, vol. 69(5), pages 2587-2619, May.
    19. Uddin, Ajim & Tao, Xinyuan & Yu, Dantong, 2023. "Attention based dynamic graph neural network for asset pricing," Global Finance Journal, Elsevier, vol. 58(C).
    20. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.

    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:jjrfmx:v:17:y:2024:i:5:p:200-:d:1393147. 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 (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.