Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Advertisement

Enhanced Multi-variate Time Series Prediction Through Statistical-Deep Learning Integration: The VAR-Stacked LSTM Model

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

In the world of finance, every investment is intended to maximize profits and minimize related risks. Financial market predictions have been a challenging task for researchers due to the noise, complex, chaotic, volatile, dynamic, and non-parametric nature of time series data. In recent years, the application of deep learning methods has emerged as an attractive tool for market trend prediction. The development of an intelligent and effective prediction system holds significant potential for assisting investors, traders, and business analysts in making informed decisions and mitigating associated risks. With the objective of constructing a reliable prediction model and harnessing the benefits of multivariate analysis, we propose a novel multistep and multivariate deep learning-based hybrid VAR-LSTM (Vector Autoregressive-Long Short-Term Memory) framework for financial trend forecasting. The proposed approach combines the strengths of two distinct models: VAR, which is well-suited for capturing linear trends, and LSTM, known for effectively modeling nonlinear dynamics. To validate its effectiveness, the model was applied to three prominent companies listed on the American stock exchange, namely Amazon Inc., Apple Inc., and Microsoft Corp. Additionally, we have conducted a thorough technical analysis of the dataset and identified key signals for buy and sell decisions using moving averages. Experimental results show that the hybrid VAR-LSTM model outperforms the individual solo models in terms of minimizing the error. The superior performance of the hybrid model showcases its capability to effectively exploit the multivariate nature of stock market data, enabling more reliable and insightful predictions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9.
Fig. 10.
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Availability of Data and Materials

Stock market data is openly available in a public repository like Kaggle, GitHub, and other sources. However, we have access from yahoo finance using yfinance python library, which allows accessing real-time stock data.

References

  1. Zhang X, Shi J, Wang D, Fang B. Exploiting investors social network for stock prediction in China’s market. J Comput Sci. 2018;28:294–303. https://doi.org/10.1016/j.jocs.2017.10.013.

    Article  Google Scholar 

  2. Nourbakhsh Z, Habibi N. Combining LSTM and CNN methods and fundamental analysis for stock price trend prediction. Multimed Tools Appl. 2023;82(12):17769–99. https://doi.org/10.1007/s11042-022-13963-0.

    Article  Google Scholar 

  3. Saha S, Gao J, Gerlach R. A survey of the application of graph-based approaches in stock market analysis and prediction. Int J Data Sci Anal. 2022;14(1):1–15. https://doi.org/10.1007/s41060-021-00306-9.

    Article  Google Scholar 

  4. Nti IK, Adekoya AF, Weyori BA. A systematic review of fundamental and technical analysis of stock market predictions, vol. 53, no. 4. Springer, The Netherlands. 2020. https://doi.org/10.1007/s10462-019-09754-z.

  5. Mehtab S, Sen J. Analysis and forecasting of financial time series using CNN and LSTM-based deep learning models. Lect Not Netw Syst. 2022;302:405–23. https://doi.org/10.1007/978-981-16-4807-6_39.

    Article  Google Scholar 

  6. Pattewar T, Jain D. Stock prediction analysis by customers opinion in Twitter data using an optimized intelligent model. Soc Netw Anal Min. 2022;12(1):152. https://doi.org/10.1007/s13278-022-00979-5.

    Article  Google Scholar 

  7. Kumar D, Meghwani SS, Thakur M. Proximal support vector machine based hybrid prediction models for trend forecasting in financial markets. J Comput Sci. 2016;17:1–13. https://doi.org/10.1016/j.jocs.2016.07.006.

    Article  MathSciNet  Google Scholar 

  8. Bastianin A, Manera M. How does stock market volatility react to oil price shocks? Macroecon Dyn. 2018;22(3):666–82. https://doi.org/10.1017/S1365100516000353.

    Article  Google Scholar 

  9. Malkiel BG, Fama EF. Efficient capital markets: a review of theory and empirical work*. J Fin. 1970;25(2):383–417. https://doi.org/10.1111/j.1540-6261.1970.tb00518.x.

    Article  Google Scholar 

  10. Abdulkareem SA, Augustijn EW, Filatova T, Musial K, Mustafa YT. Risk perception and behavioral change during epidemics: comparing models of individual and collective learning. PLoS One. 2020;15(1):1–22. https://doi.org/10.1371/journal.pone.0226483.

    Article  Google Scholar 

  11. Kandula S, Shaman J. Near-term forecasts of influenza-like illness: an evaluation of autoregressive time series approaches. Epidemics. 2019;27(August 2018):41–51. https://doi.org/10.1016/j.epidem.2019.01.002.

    Article  Google Scholar 

  12. Sim HS, Kim HI, Ahn JJ. Is deep learning for image recognition applicable to stock market prediction? Complexity. 2019;2019:1–10.

    Article  Google Scholar 

  13. Di Persio L, Honchar O. Artificial neural networks architectures for stock price prediction: comparisons and applications. Int J Circ Syst Signal Process. 2016;10:403–13.

    Google Scholar 

  14. Sakib M, Siddiqui T. Multi-network-based ensemble deep learning model to forecast ross river virus outbreak in Australia. Intern J Pattern Recognit Artif Intell. 2023;37(10):1. https://doi.org/10.1142/S0218001423520158.

    Article  Google Scholar 

  15. Li Y, Ni P, Chang V. Application of deep reinforcement learning in stock trading strategies and stock forecasting. Computing. 2020;102(6):1305–22. https://doi.org/10.1007/s00607-019-00773-w.

    Article  MathSciNet  Google Scholar 

  16. Zhang K, Zhong G, Dong J, Wang S, Wang Y. Stock market prediction based on generative adversarial network. Proc Comput Sci. 2019;147:400–6. https://doi.org/10.1016/j.procs.2019.01.256.

    Article  Google Scholar 

  17. Jiang W. Applications of deep learning in stock market prediction: Recent progress. Expert Syst Appl. 2021. https://doi.org/10.1016/j.eswa.2021.115537.

    Article  Google Scholar 

  18. Lütkepohl H. Vector Autoregressions. In: A companion to theoretical econometrics. 2007;678–699. https://doi.org/10.1002/9780470996249.ch33.

  19. Cory Mitchell. Available: https://www.investopedia.com/terms/o/ohlcchart.asp. [Online]

  20. Malkiel BG. The efficient market hypothesis and its critics. J Econ Perspect. 2003;17(1):59–82.

    Article  Google Scholar 

  21. Zhang W. An analysis and prediction model based on complex network time series. Expert Syst. 2022. https://doi.org/10.1111/exsy.13132.

    Article  Google Scholar 

  22. Abbas AM. Social network analysis using deep learning: applications and schemes. Soc Netw Anal Min. 2021;11(1):106. https://doi.org/10.1007/s13278-021-00799-z.

    Article  Google Scholar 

  23. Sakib M, Siddiqui T (2023) Anomaly detection of ECG time series signal using auto encoders neural network. In: 2023 7th International Conference On Computing, Communication, Control And Automation (ICCUBEA). IEEE, 2023;1–7.

  24. Anwar K, et al. Artificial intelligence-driven approach to identify and recommend the winner in a tied event in sports surveillance. Fractals. 2023. https://doi.org/10.1142/S0218348X23401497.

    Article  Google Scholar 

  25. Kaur S, Bala A, Parashar A. GA-BiLSTM: an intelligent energy prediction and optimization approach for individual home appliances. Evolv Syst. 2023. https://doi.org/10.1007/s12530-023-09529-6.

    Article  Google Scholar 

  26. Shravankumar B, Ravi V. A survey of the applications of text mining in financial domain. Knowl Based Syst. 2016;114:128–47.

    Article  Google Scholar 

  27. Saqib M, Sahu SA, Sakib M, Al-Ammar EA. Machine learning-based day-ahead market energy usage bidding for smart microgrids. Elect Veh Integr Smart Microgrid Environ. 2021. https://doi.org/10.1201/9780367423926-10.

    Article  Google Scholar 

  28. Neumann J, Schnörr C, Steidl G. Combined SVM-based feature selection and classification. Mach Learn. 2005;61(1–3):129–50. https://doi.org/10.1007/s10994-005-1505-9.

    Article  Google Scholar 

  29. Qiu M, Song Y. Predicting the direction of stock market index movement using an optimized artificial neural network model. PLoS One. 2016. https://doi.org/10.1371/journal.pone.0155133.

    Article  Google Scholar 

  30. Patel J, Shah S, Thakkar P, Kotecha K. Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Syst Appl. 2015;42(1):259–68. https://doi.org/10.1016/j.eswa.2014.07.040.

    Article  Google Scholar 

  31. Mehta S, Rana P, Singh S, Sharma A, Agarwal P. Ensemble learning approach for enhanced stock prediction. 2019.https://doi.org/10.1109/IC3.2019.8844891

  32. Bollen J, Mao H, Zeng X. Twitter mood predicts the stock market. J Comput Sci. 2011;2(1):1–8.

    Article  Google Scholar 

  33. Ahmad S, Shakeel I, Mehfuz S, Ahmad J. Deep learning models for cloud, edge, fog, and IoT computing paradigms: survey, recent advances, and future directions. Comput Sci Rev. 2023;49: 100568.

    Article  MathSciNet  Google Scholar 

  34. Challa SK, Kumar A, Semwal VB, Dua N. An optimized deep learning model for human activity recognition using inertial measurement units. Expert Syst. 2023. https://doi.org/10.1111/exsy.13457.

    Article  Google Scholar 

  35. Xu H, et al. Pre-Trained models: past, present and future. AI Open. 2021; 225–250

  36. Ahmadi E, Jasemi M, Monplaisir L, Nabavi MA, Mahmoodi A, Amini Jam P. New efficient hybrid candlestick technical analysis model for stock market timing on the basis of the support vector machine and heuristic algorithms of imperialist competition and genetic. Expert Syst Appl. 2018;94:21–31. https://doi.org/10.1016/j.eswa.2017.10.023.

    Article  Google Scholar 

  37. Vo NNY, He X, Liu S, Xu G. Deep learning for decision making and the optimization of socially responsible investments and portfolio. Decis Support Syst. 2019;124: 113097. https://doi.org/10.1016/j.dss.2019.113097.

    Article  Google Scholar 

  38. Sabeena J, Venkata Subba Reddy P. A modified deep learning enthused adversarial network model to predict financial fluctuations in stock market. Int J Eng Adv Technol. 2019;8(6):2996–3000. https://doi.org/10.35940/ijeat.F9011.088619.

    Article  Google Scholar 

  39. Nikou M, Mansourfar G, Bagherzadeh J. Stock price prediction using DEEP learning algorithm and its comparison with machine learning algorithms. Intell Syst Account Fin Manag. 2019;26(4):164–74. https://doi.org/10.1002/isaf.1459.

    Article  Google Scholar 

  40. Wang W, Li W, Zhang N, Liu K. Portfolio formation with preselection using deep learning from long-term financial data. Expert Syst Appl. 2020;143: 113042. https://doi.org/10.1016/j.eswa.2019.113042.

    Article  Google Scholar 

  41. Vijh M, Chandola D, Tikkiwal VA, Kumar A. Stock closing price prediction using machine learning techniques. Proc Comput Sci. 2020;167:599–606. https://doi.org/10.1016/j.procs.2020.03.326.

    Article  Google Scholar 

  42. Mukherjee S, Sadhukhan B, Sarkar N, Roy D, De S. Stock market prediction using deep learning algorithms. CAAI Trans Intell Technol. 2021. https://doi.org/10.1049/cit2.12059.

    Article  Google Scholar 

  43. Soni P, Tewari Y, Krishnan D. Machine learning approaches in stock price prediction: a systematic review. J Phys Conf Ser. 2022. https://doi.org/10.1088/1742-6596/2161/1/012065.

    Article  Google Scholar 

  44. Yadav K, Yadav M, Saini S. Stock values predictions using deep learning based hybrid models. CAAI Trans Intell Technol. 2022;7(1):107–16. https://doi.org/10.1049/cit2.12052.

    Article  Google Scholar 

  45. Bazrkar MJ, Hosseini S. Predict Stock prices using supervised learning algorithms and particle swarm optimization algorithm. Comput Econ. 2022. https://doi.org/10.1007/s10614-022-10273-3.

    Article  Google Scholar 

  46. Han Y, Kim J, Enke D. A machine learning trading system for the stock market based on N-period Min-Max labeling using XGBoost. Expert Syst Appl. 2023. https://doi.org/10.1016/j.eswa.2022.118581.

    Article  Google Scholar 

  47. Sheth D, Shah M. Predicting stock market using machine learning: best and accurate way to know future stock prices. Int J Syst Assur Eng Manag. 2023;14(1):1–18. https://doi.org/10.1007/s13198-022-01811-1.

    Article  Google Scholar 

  48. Tripathi DK, Chadha S, Tripathi A. Metaheuristic enabled intelligent model for stock market prediction via integrating volatility spillover: India and its Asian and European counterparts. Data Knowl Eng. 2023;144: 102127. https://doi.org/10.1016/j.datak.2022.102127.

    Article  Google Scholar 

  49. Hang L, Liu D, Xie F. A hybrid model using PCA and BP neural network for time series prediction in chinese stock market with TOPSIS analysis. Sci Prog. 2023;2023:1–15. https://doi.org/10.1155/2023/9963940.

    Article  Google Scholar 

  50. Sombrito SAE, Gonzales KJG, Nolasco JKLT, Tiglao NMC (2023) Philippine stock direction forecasting utilizing technical, fundamental, and news sentiment data, pp 43–58, 2023. https://doi.org/10.1007/978-3-031-35982-8_4.

  51. Mouthami K, Yuvaraj N, Pooja RI. Analysis of SARIMA-BiLSTM-BiGRU in furniture time series forecasting. 2023;959–970. https://doi.org/10.1007/978-3-031-27409-1_88.

  52. Gülmez B. Stock price prediction with optimized deep LSTM network with artificial rabbits optimization algorithm. Expert Syst Appl. 2023. https://doi.org/10.1016/j.eswa.2023.120346.

    Article  Google Scholar 

  53. Chullamonthon P, Tangamchit P. Ensemble of supervised and unsupervised deep neural networks for stock price manipulation detection. Expert Syst Appl. 2023. https://doi.org/10.1016/j.eswa.2023.119698.

    Article  Google Scholar 

  54. Ampountolas A. Comparative analysis of machine learning, hybrid, and deep learning forecasting models: evidence from european financial markets and bitcoins. Forecasting. 2023;5(2):472–86. https://doi.org/10.3390/forecast5020026.

    Article  Google Scholar 

  55. Cui C, Wang P, Li Y, Zhang Y. "McVCsB: a new hybrid deep learning network for stock index prediction. Expert Syst Appl. 2023. https://doi.org/10.1016/j.eswa.2023.120902.

    Article  Google Scholar 

  56. Anthal J, Sharma B, Manhas J. Hybrid optimization-based deep learning classifier for sentiment classification using review data. Soc Netw Anal Min. 2023;13(1):109. https://doi.org/10.1007/s13278-023-01107-7.

    Article  Google Scholar 

  57. Yu X, Wu W, Liao X, Han Y. Dynamic stock-decision ensemble strategy based on deep reinforcement learning. Appl Intell. 2023;53(2):2452–70. https://doi.org/10.1007/s10489-022-03606-0.

    Article  Google Scholar 

  58. He M, Zhao Q, Zhang H, Kang C, Li W, Han M. Graph representation learning via redundancy reduction. Neurocomputing. 2023;533:161–77. https://doi.org/10.1016/j.neucom.2023.02.062.

    Article  Google Scholar 

  59. Niu T, Wang J, Lu H, Yang W, Du P. Developing a deep learning framework with two-stage feature selection for multivariate financial time series forecasting. Expert Syst Appl. 2020. https://doi.org/10.1016/j.eswa.2020.113237.

    Article  Google Scholar 

  60. Nikfarjam A, Emadzadeh E, Muthaiyah S. Text mining approaches for stock market prediction. In: 2010 The 2nd International Conference on Computer and Automation Engineering (ICCAE), pp. 256–260. https://doi.org/10.1109/ICCAE.2010.5451705.

  61. Karanikola A, Liapis CM, Kotsiantis S. A comparison of contemporary methods on univariate time series forecasting. In: Advances in Machine Learning/Deep Learning-based Technologies: Selected Papers in Honour of Professor Nikolaos G. Bourbakis. 2022;2:143–168

  62. Goel H, Melnyk I, Oza N, Matthews B, Banerjee A. Multivariate aviation time series modeling: VARs vs. LSTMs. 2016.

  63. Sims C. Are forecasting models usable for policy analysis. Quart Rev. 1986;10(1):1986.

    Article  MathSciNet  Google Scholar 

  64. Nasirtafreshi I. Forecasting cryptocurrency prices using recurrent neural network and long short-term memory. Data Knowl Eng. 2022;139: 102009. https://doi.org/10.1016/j.datak.2022.102009.

    Article  Google Scholar 

  65. Selvin S, Vinayakumar R, Gopalakrishnan EA, Menon VK, Soman KP. Stock price prediction using LSTM, RNN and CNN-sliding window model. In: 2017 International Conference on Advances in Computing, Communications and Informatics, ICACCI 2017, vol. 2017, pp. 1643–1647. 2017. https://doi.org/10.1109/ICACCI.2017.8126078.

  66. Anwar K, Siddiqui J, Sohail SS. Machine learning-based book recommender system: a survey and new perspectives. Int J Intell Inform Datab Syst. 2020;13(2/3/4):231. https://doi.org/10.1504/ijiids.2020.10031604.

    Article  Google Scholar 

  67. Wang J, Leu J, Rd P. Stock market trend prediction using ARIMA-based neural networks. In: 2008 Proceedings of 17th International Conference on Computer Communications and Networks, vol. 4, no. 4, pp. 1–5. 2010.

  68. Farias Nazário RT, e Silva JL, Sobreiro VA, Kimura H. A literature review of technical analysis on stock markets. Quart Rev Econ Fin. 2017;66:115–26. https://doi.org/10.1016/j.qref.2017.01.014.

    Article  Google Scholar 

Download references

Funding

This study did not obtain a particular grant from any financial institution in the government, corporate, or not-for-profit sectors in order to conduct it.

Author information

Authors and Affiliations

Authors

Contributions

Equal contributions have been made by the two authors to this study.

Corresponding author

Correspondence to Mohd Sakib.

Ethics declarations

Conflict of Interest

It has been declared by the authors that there is no potential for a conflict of interest in this study.

Ethical Approval

This is a unique piece of work done by the authors themselves, which has not been published anywhere else before. All sources used are properly disclosed.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Sakib, M., Mustajab, S. Enhanced Multi-variate Time Series Prediction Through Statistical-Deep Learning Integration: The VAR-Stacked LSTM Model. SN COMPUT. SCI. 5, 573 (2024). https://doi.org/10.1007/s42979-024-02950-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-024-02950-x

Keywords