Skip to main content

Advertisement

Log in

Fusion of Wavelet Decomposition and N-BEATS for Improved Stock Market Forecasting

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

Abstract

Stock market forecasting is one of the most exciting areas of time series forecasting both for the industry and academia. Stock market is a complex, non-linear and non-stationary system with many governing factors and noise. Some of these factors can be quantified and modeled, whereas some factors possess a random walk behavior making the process of forecasting challenging. Various statistical methods, machine learning, and deep learning techniques are prevalent in stock market forecasting. Recently, there has been a paradigm shift towards hybrid models, showing some promising results. In this paper, we propose a technique that combines a recently proposed deep learning architecture N-BEATS with wavelet transformation for improved forecasting of future prices of stock market indices. This work uses daily time series data from five stock market indices, namely NIFTY 50, Dow Jones Industrial Average (DJIA), Nikkei 225, BSE SENSEX, and Hang Seng Index (HSI), for the experimental studies to compare the proposed technique with some traditional deep learning techniques. The empirical findings suggest that the proposed architecture has high accuracy as compared to some traditional time series forecasting methods and can improve the forecasting of non-linear and non-stationary stock market time series.

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
Algorithm 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
Fig. 14
Fig. 15

Similar content being viewed by others

Data Availability

Some or all data, models, or code that support the findings of this study are available from the corresponding author upon reasonable request.

References

  1. Oreshkin BN, Dudek G, Pełka P, Turkina E. N-beats neural network for mid-term electricity load forecasting. Appl Energy. 2021;293:116918.

    Article  Google Scholar 

  2. Fama EF. Random walks in stock market prices. Financ Anal J. 1995;51(1):75–80.

    Article  Google Scholar 

  3. Adebiyi A, Adewumi A, Ayo C. Stock price prediction using the ARIMA model. In: 2014 UKSim-AMSS 16th international conference on computer modelling and simulation; 2014. IEEE. https://doi.org/10.1109/UKSim.2014.67.

  4. Adebayo FA, Sivasamy R, Shangodoyin DK. Forecasting stock market series with ARIMA model. Stat Econ Methods. 2014;3:65–77.

    Google Scholar 

  5. Luo S, Yan F, Lai D, Wu W, Lu F. Using ARIMA model to fit and predict index of stock price based on wavelet de-noising. Int J u- and e- Serv Sci Technol. 2016;9:317–26. https://doi.org/10.14257/ijunesst.2016.9.12.28

  6. Milosevic N. Equity forecast: predicting long term stock price movement using machine learning. J Econ Libr. 2016;3(2):288–94. https://doi.org/10.1453/jel.v3i2.750.

    Article  Google Scholar 

  7. Zhang J, Cui S, Xu Y, Li Q, Li T. A novel data-driven stock price trend prediction system. Expert Syst Appl. 2018;97:60–9. https://doi.org/10.1016/j.eswa.2017.12.026.

    Article  Google Scholar 

  8. Patel J, Shah S, Thakkar P, Kotecha K. Predicting stock market index using fusion of machine learning techniques. Expert Syst Appl. 2015;42(4):2162–72. https://doi.org/10.1016/j.eswa.2014.10.031.

    Article  Google Scholar 

  9. El-Rashidy MA. A novel system for fast and accurate decisions of gold-stock markets in the short-term prediction. Neural Comput Appl. 2021;33(1):393–407.

    Article  Google Scholar 

  10. Jin Z, Yang Y, Liu Y. Stock closing price prediction based on sentiment analysis and LSTM. Neural Comput Appl. 2020;32(13):9713–29.

    Article  Google Scholar 

  11. Lin C-T, Wang Y-K, Huang P-L, Shi Y, Chang Y-C. Spatial-temporal attention-based convolutional network with text and numerical information for stock price prediction. Neural Comput Appl. 2022;34:14387–95.

    Article  Google Scholar 

  12. Lu W, Li J, Wang J, Qin L. A CNN-BILSTM-AM method for stock price prediction. Neural Comput Appl. 2021;33(10):4741–53.

    Article  Google Scholar 

  13. Wang X, Phua P, Lin W. Stock market prediction using neural networks: does trading volume help in short-term prediction? In: Proceedings of the International Joint Conference on Neural Networks, 2003; vol. 4. p. 2438–2442. https://doi.org/10.1109/IJCNN.2003.1223946.

  14. Bernal A, Fok S, Pidaparthi R. Market time series prediction with recurrent neural networks. State College: Citeseer. [Google Scholar], Citeseer; 2012.

  15. Moghar A, Hamiche M. Stock market prediction using LSTM recurrent neural network. Proc Comput Sci. 2020;170:1168–73. https://doi.org/10.1016/j.procs.2020.03.049.

    Article  Google Scholar 

  16. Qiu J, Wang B, Zhou C. Forecasting stock prices with long-short term memory neural network based on attention mechanism. PLoS ONE. 2020;15(1):e0227222.

    Article  Google Scholar 

  17. Eapen J, Bein D. Novel deep learning model with CNN and bi-directional LSTM for improved stock market index prediction. In: 2019 IEEE 9th annual computing and communication workshop and conference (CCWC); 2019. p. 0264–0270. https://doi.org/10.1109/CCWC.2019.8666592.

  18. Fryzlewicz P, Van Bellegem S, Von Sachs R. Forecasting non-stationary time series by wavelet process modelling. Ann Inst Stat Math. 2003;55(4):737–64.

    Article  MathSciNet  Google Scholar 

  19. Renaud O, Starck J, Murtagh F. Wavelet-based combined signal filtering and prediction. IEEE Trans Syst Man Cybern Part B (Cybern). 2005;35(6):1241–51. https://doi.org/10.1109/TSMCB.2005.850182.

    Article  Google Scholar 

  20. Wang C, Chen Y, Zhang S, Zhang Q. Stock market index prediction using deep transformer model. Expert Syst Appl. 2022;208:118128.

    Article  Google Scholar 

  21. Ghotbi M, Zahedi M. Predicting price trends combining kinetic energy and deep reinforcement learning. Expert Syst Appl. 2023;244: https://doi.org/10.1016/j.eswa.2023.122994.

    Article  Google Scholar 

  22. Abraham R, Samad ME, Bakhach AM, El-Chaarani H, Sardouk A, Nemar SE, Jaber D. Forecasting a stock trend using genetic algorithm and random forest. J Risk Financ Manag. 2022;15(5):188.

    Article  Google Scholar 

  23. Amin MS, Ayon EH, Ghosh BP, Bhuiyan MS, Jewel RM, Linkon AA. Harmonizing macro-financial factors and Twitter sentiment analysis in forecasting stock market trends. J Comput Sci Technol Stud. 2024;6(1):58–67.

    Article  Google Scholar 

  24. Behera J, Pasayat AK, Behera H, Kumar P. Prediction based mean-value-at-risk portfolio optimization using machine learning regression algorithms for multi-national stock markets. Eng Appl Artif Intell. 2023;120:105843.

    Article  Google Scholar 

  25. Zhao Y, Yang G. Deep learning-based integrated framework for stock price movement prediction. Appl Soft Comput. 2023;133:109921.

    Article  Google Scholar 

  26. Agrawal M, Shukla PK, Nair R, Nayyar A, Masud M. Stock prediction based on technical indicators using deep learning model. Comput Mater Contin. 2022;70(1):287–304. https://doi.org/10.32604/cmc.2022.014637 .

    Google Scholar 

  27. Mehta P, Pandya S, Kotecha K. Harvesting social media sentiment analysis to enhance stock market prediction using deep learning. PeerJ Comput Sci. 2021;7:e476.

    Article  Google Scholar 

  28. Prachyachuwong K, Vateekul P. Stock trend prediction using deep learning approach on technical indicator and industrial specific information. Information. 2021;12(6):250.

    Article  Google Scholar 

  29. Ma Y, Han R, Wang W. Portfolio optimization with return prediction using deep learning and machine learning. Expert Syst Appl. 2021;165:113973.

    Article  Google Scholar 

  30. Stock market indices dataset. https://github.com/VatsalSin/Stock-Market-Indices-Dataset

  31. Paramanik RN, Singhal V. Sentiment analysis of Indian stock market volatility. Proc Comput Sci. 2020;176:330–8. https://doi.org/10.1016/j.procs.2020.08.035.

    Article  Google Scholar 

  32. Verma R, Verma P. Noise trading and stock market volatility. J Multinatl Financ Manag. 2007;17:231–43. https://doi.org/10.1016/j.mulfin.2006.10.003.

    Article  Google Scholar 

  33. Dremin I. Wavelets: mathematics and applications. Phys Atomic Nucl. 2005;68:508–20. https://doi.org/10.1134/1.1891202.

    Article  MathSciNet  Google Scholar 

  34. Bunnoon P, Chalermyanont K, Limsakul C. Wavelet and neural network approach to demand forecasting based on whole and electric sub-control center area. Int J Soft Comput Eng. 2012;1:2231–307.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Contributions

Neha Pramanik: Formal analysis, Data curation, Original draft preparation and Writing. Vatsal Singhal: Implementation and Writing. Neeraj: Writing—Conceptualization, Original draft preparation and Writing. Jimson Mathew: Research profile design, Writing, Reviewing, and Revising. Mayank Agarwal: Research profile design, Reviewing, and Revising.

Corresponding author

Correspondence to Mayank Agarwal.

Ethics declarations

Conflict of interest

NA.

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

Pramanick, N., Singhal, V., Neeraj et al. Fusion of Wavelet Decomposition and N-BEATS for Improved Stock Market Forecasting. SN COMPUT. SCI. 5, 869 (2024). https://doi.org/10.1007/s42979-024-03222-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-024-03222-4

Keywords

Mathematics Subject Classification

Navigation