Nothing Special   »   [go: up one dir, main page]

Skip to main content
Log in

Decomposition techniques and long short term memory model with black widow optimization for stock price prediction

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Accurate stock price prediction is a trivial task because of the highly non-linear nature of the time series of stock prices. Numerous time series decomposition methods are applied to manage the extensively non-linear nature of the time series data, which decomposes the non-linear time series into linear components. This paper decomposes non-linear and non-stationary time series data into linear components by the joint decomposition method, namely empirical mode decomposition and local mean decomposition. By using the joint decomposition technique, we can better address potential issues such as mode mixing or the loss of information that may arise when using individual EMD or LMD. This leads to a more accurate and reliable analysis of the signal, improving the quality of the results obtained. The empirical mode decomposition is applied to the initial stock price data to generate distinct intrinsic mode functions. The local mean decomposition is applied to each intrinsic mode function to find a series of the product of functions. The forecasting model, long short-term memory is used for each product of function along with weight optimization techniques to achieve precise predictions for the time series. For optimizing the weight of the LSTM model, the black widow optimization technique is used. The forecast series of each product of function is aggregated to obtain the final series. The efficiency of the proposed hybrid technique is evaluated through the mean absolute error, root mean square error, and mean absolute percentage error. Our results demonstrate the proposed model yields the best performance and outperforms the existing forecasting models with respect to accuracy and efficiency. The proposed model EMD-LMD-LSTM-BWO enhances the performance of the LSTM model. In comparison to the LSTM, LSTM-BWO, EMD-LSTM, EMD-LSTM-BWO, and EMD-LMD-LSTM models, the proposed model has a percentage improvement of 89.03, 88.06, 73.81, 73.01, and 15.78, respectively, when mean absolute error values are taken into account.

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
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21

Similar content being viewed by others

References

  1. Adebiyi AA, Adewumi AO, Ayo CK (2014) Stock price prediction using the ARIMA model. In: Proceedings - UKSim-AMSS 16th international conference on computer modelling and simulation, UKSim 2014, pp 106–112. https://doi.org/10.1109/UKSim.2014.67

  2. Ali M, Prasad R, Xiang Y, Yaseen ZM (2020) Complete ensemble empirical mode decomposition hybridized with random forest and kernel ridge regression model for monthly rainfall forecasts. J Hydrology 584. https://doi.org/10.1016/j.jhydrol.2020.124647

  3. Ballings M, Van Den Poel D, Hespeels N, Gryp R (2015) Evaluating multiple classifiers for stock price direction prediction. Expert Syst Appl 42(20):7046–7056. https://doi.org/10.1016/j.eswa.2015.05.013

    Article  Google Scholar 

  4. Bathla G, Rani R, Aggarwal H (2023) Stocks of year 2020: prediction of high variations in stock prices using lstm. Multimed Tools Appl 82(7):9727–9743. https://doi.org/10.1007/s11042-022-12390-5

    Article  Google Scholar 

  5. Blau BM, Brough TJ, Griffith TG (2017) Bank opacity and the efficiency of stock prices. J Bank Finance 76:32–47. https://doi.org/10.1016/j.jbankfin.2016.11.026

    Article  Google Scholar 

  6. Büyükahin ÜÇ, Ertekin (2019) Improving forecasting accuracy of time series data using a new ARIMA-ANN hybrid method and empirical mode decomposition. Neurocomputing 361:151–163. https://doi.org/10.1016/j.neucom.2019.05.099

    Article  Google Scholar 

  7. Chang TS (2011) A comparative study of artificial neural networks, and decision trees for digital game content stocks price prediction. Expert Syst Appl 38(12):14846–14851. https://doi.org/10.1016/j.eswa.2011.05.063

    Article  Google Scholar 

  8. Chen XJ, Zhao J, Jia XZ, Li ZL (2021) Multi-step wind speed forecast based on sample clustering and an optimized hybrid system. Renewable Energy 165:595–611. https://doi.org/10.1016/j.renene.2020.11.038

    Article  Google Scholar 

  9. Cheng CH, Yang JH (2018) Fuzzy time-series model based on rough set rule induction for forecasting stock price. Neurocomputing 302:33–45. https://doi.org/10.1016/j.neucom.2018.04.014

    Article  Google Scholar 

  10. Colorni A, Dorigo M, Maniezzo V, et al (1991) Distributed optimization by ant colonies. In: Proceedings of the first European conference on artificial life, vol 142. Paris, France, pp 134–142

  11. Demirhan H, Renwick Z (2018) Missing value imputation for short to mid-term horizontal solar irradiance data. Appl Energy 225:998–1012. https://doi.org/10.1016/j.apenergy.2018.05.054

    Article  Google Scholar 

  12. Dragomiretskiy K, Zosso D (2014) Variational mode decomposition. IEEE Trans Signal Process 62(3):531–544. https://doi.org/10.1109/TSP.2013.2288675

    Article  MathSciNet  Google Scholar 

  13. Sw Fei, He Y (2015) Wind speed prediction using the hybrid model of wavelet decomposition and artificial bee colony algorithm-based relevance vector machine. Int J Electr Power Energy Syst 73:625–631. https://doi.org/10.1016/j.ijepes.2015.04.019

    Article  Google Scholar 

  14. Hayyolalam V, Pourhaji Kazem AA (2020) Black Widow Optimization Algorithm: A novel meta-heuristic approach for solving engineering optimization problems. Eng Appl Artif Intell 87. https://doi.org/10.1016/j.engappai.2019.103249

  15. Huang NE, Shen Z, Long SR, Wu MC, Snin HH, Zheng Q, Yen NC, Tung CC, Liu HH (1998) The empirical mode decomposition and the Hubert spectrum for nonlinear and non-stationary time series analysis. Proc Math Phys Eng Sci 454(1971):903–995. https://doi.org/10.1098/rspa.1998.0193

    Article  MathSciNet  Google Scholar 

  16. Huang SC (2017) A big data analysis system for financial trading. Glob Bus Finance Rev 22(3):32–44. https://doi.org/10.17549/gbfr.2017.22.3.32

    Article  Google Scholar 

  17. Jain A, Nandakumar K, Ross A (2005) Score normalization in multimodal biometric systems. Pattern Recogn 38(12):2270–2285. https://doi.org/10.1016/j.patcog.2005.01.012

    Article  Google Scholar 

  18. Ji L, Zou Y, He K, Zhu B (2019) Carbon futures price forecasting based with ARIMA-CNN-LSTM model. In: Procedia computer science, vol 162, pp 33–38, https://doi.org/10.1016/j.procs.2019.11.254

  19. Jiang M, Jia L, Chen Z, Chen W (2022) The two-stage machine learning ensemble models for stock price prediction by combining mode decomposition, extreme learning machine and improved harmony search algorithm. Ann Oper Res:1–33

  20. Karaboga D, et al (2005) An idea based on honey bee swarm for numerical optimization. Tech. rep., Technical report-tr06, Erciyes University, Engineering Faculty, Computer

  21. Lee SW, Kim HY (2020) Stock market forecasting with super-high dimensional time-series data using ConvLSTM, trend sampling, and specialized data augmentation. Expert Syst Appl 161. https://doi.org/10.1016/j.eswa.2020.113704

  22. Liu H, Long Z (2020) An improved deep learning model for predicting stock market price time series. Digit Signal Process: Rev 102, https://doi.org/10.1016/j.dsp.2020.102741

  23. Liu JN, Hu Y (2013) Application of feature-weighted Support Vector regression using grey correlation degree to stock price forecasting. Neural Comput Appl 22(SUPPL.1):143–152. https://doi.org/10.1007/s00521-012-0969-3

    Article  Google Scholar 

  24. Liu M, Luo K, Zhang J, Chen S (2021) A stock selection algorithm hybridizing grey wolf optimizer and support vector regression. Expert Syst Appl 179. https://doi.org/10.1016/j.eswa.2021.115078

  25. Luo L, Li H, Wang J, Hu J (2021) Design of a combined wind speed forecasting system based on decomposition-ensemble and multi-objective optimization approach. Appl Math Model 89:49–72. https://doi.org/10.1016/j.apm.2020.07.019

    Article  MathSciNet  Google Scholar 

  26. Mcqueen G, Thorley S (1991) Are Stock Returns Predictable? A Test Using Markov Chains. J Financ 46(1):239–263. https://doi.org/10.1111/j.1540-6261.1991.tb03751.x

    Article  Google Scholar 

  27. Mirjalili S, Mirjalili SM, Lewis A (2014) Grey wolf optimizer. Adv Eng Softw 69:46–61. https://doi.org/10.1016/j.advengsoft.2013.12.007

    Article  Google Scholar 

  28. Mirzaei Talarposhti F, Javedani Sadaei H, Enayatifar R, Gadelha Guimarães F, Mahmud M, Eslami T (2016) Stock market forecasting by using a hybrid model of exponential fuzzy time series. Int J Approximate Reasoning 70:79–98. https://doi.org/10.1016/j.ijar.2015.12.011

    Article  MathSciNet  Google Scholar 

  29. Moghar A, Hamiche M (2020) Stock Market Prediction Using LSTM Recurrent Neural Network. In: Procedia computer science, vol 170. https://doi.org/10.1016/j.procs.2020.03.049

  30. Narendra Babu C, Eswara Reddy B (2015) Prediction of selected Indian stock using a partitioning-interpolation based ARIMA-GARCH model. Appl Comput Inform 11(2):130–143. https://doi.org/10.1016/j.aci.2014.09.002

    Article  Google Scholar 

  31. Nayak SC, Misra BB, Behera HS (2017) Artificial chemical reaction optimization of neural networks for efficient prediction of stock market indices. Ain Shams Eng J 8(3):371–390. https://doi.org/10.1016/j.asej.2015.07.015

    Article  Google Scholar 

  32. Niu T, Wang J, Zhang K, Du P (2018) Multi-step-ahead wind speed forecasting based on optimal feature selection and a modified bat algorithm with the cognition strategy. Renew Energy 118:213–229

    Article  Google Scholar 

  33. Nourbakhsh Z, Habibi N (2022) Combining lstm and cnn methods and fundamental analysis for stock price trend prediction. Multimed Tools Appl:1–31. https://doi.org/10.1007/s11042-022-13963-0

  34. Nyberg H (2013) Predicting bear and bull stock markets with dynamic binary time series models. J Bank Finance 37(9):3351–3363. https://doi.org/10.1016/j.jbankfin.2013.05.008

    Article  Google Scholar 

  35. Pyo S, Lee J, Cha M, Jang H (2017) Predictability of machine learning techniques to forecast the trends of market index prices: hypothesis testing for the Korean stock markets. PLoS ONE 12(11). https://doi.org/10.1371/journal.pone.0188107

  36. Rezaei H, Faaljou H, Mansourfar G (2021) Stock price prediction using deep learning and frequency decomposition. Expert Syst Appl 169. https://doi.org/10.1016/j.eswa.2020.114332

  37. Rezaei H, Faaljou H, Mansourfar G (2021) Stock price prediction using deep learning and frequency decomposition. Expert Syst Appl 169:114332

    Article  Google Scholar 

  38. Saiful Islam M, Hossain E (2020) Foreign Exchange Currency Rate Prediction using a GRU-LSTM Hybrid Network. Soft Comput Lett:00009. https://doi.org/10.1016/j.socl.2020.100009

  39. Sang C, Di Pierro M (2019) Improving trading technical analysis with TensorFlow Long Short-Term Memory (LSTM) Neural Network. J Finance Data Sci 5(1):1–11. https://doi.org/10.1016/j.jfds.2018.10.003

    Article  Google Scholar 

  40. Sezer, OB, Gudelek MU, Ozbayoglu AM (2020) Financial time series forecasting with deep learning: A systematic literature review: 2005-2019. Appl Soft Comput J 90. https://doi.org/10.1016/j.asoc.2020.106181

  41. Sim N, Zhou H (2015) Oil prices, US stock return, and the dependence between their quantiles. J Bank Finance 55:1–8. https://doi.org/10.1016/j.jbankfin.2015.01.013

    Article  Google Scholar 

  42. Singh R, Srivastava S (2017) Stock prediction using deep learning. Multimed Tools Appl 76:18569–18584. https://doi.org/10.1007/s11042-016-4159-7

    Article  Google Scholar 

  43. Smith JS (2005) The local mean decomposition and its application to EEG perception data. J R Soc Interface 2(5):443–454. https://doi.org/10.1098/rsif.2005.0058

    Article  Google Scholar 

  44. Symitsi E, Symeonidis L, Kourtis A, Markellos R (2018) Covariance forecasting in equity markets. J Bank Finance 96:153–168. https://doi.org/10.1016/j.jbankfin.2018.08.013

    Article  Google Scholar 

  45. Tian Z (2020) Short-term wind speed prediction based on LMD and improved FA optimized combined kernel function LSSVM. Eng Appl Artif Intell 91. https://doi.org/10.1016/j.engappai.2020.103573

  46. Vanli ND, Tunc S, Donmez MA, Kozat SS (2016) Growth optimal investment in discrete-time markets with proportional transaction costs. Digit Signal Process: Rev 48:226–238. https://doi.org/10.1016/j.dsp.2015.08.009

    Article  MathSciNet  Google Scholar 

  47. Vlasenko A, Rashkevych Y, Vlasenko N, Peleshko D, Vynokurova O (2020) A hybrid EMD - Neuro-fuzzy model for financial time series analysis. In: Proceedings of the 2020 IEEE 3rd international conference on data stream mining and processing, DSMP 2020, pp 112–115. https://doi.org/10.1109/DSMP47368.2020.9204179

  48. Wang Y, Guo Y (2020) Forecasting method of stock market volatility in time series data based on mixed model of ARIMA and XGBoost. China Communications 17(3):205–221. https://doi.org/10.23919/JCC.2020.03.017

    Article  Google Scholar 

  49. Wu JMT, Li Z, Herencsar N, Vo B, Lin JCW (2021) A graph-based cnn-lstm stock price prediction algorithm with leading indicators. Multimed Syst:1–20. https://doi.org/10.1007/s00530-021-00758-w

  50. Yamaguchi K (2008) Reexamination of stock price reaction to environmental performance: A GARCH application. Ecol Econ 68(1–2):345–352. https://doi.org/10.1016/j.ecolecon.2008.04.004

    Article  Google Scholar 

  51. Yang XS (2010) A new metaheuristic bat-inspired algorithm. In: Nature inspired cooperative strategies for optimization (NICSO 2010), Springer, pp 65–74. https://doi.org/10.1007/978-3-642-12538-6_6

  52. Yoon WJ, Park KS (2014) A study on the market instability index and risk warning levels in early warning system for economic crisis. Digit Signal Process: Rev 29(1):35–44. https://doi.org/10.1016/j.dsp.2013.09.011

    Article  MathSciNet  Google Scholar 

  53. Zhang Y, Hutchinson P, Lieven NA, Nunez-Yanez J (2020) Remaining useful life estimation using long short-term memory neural networks and deep fusion. IEEE Access 8:19033–19045. https://doi.org/10.1109/ACCESS.2020.2966827

    Article  Google Scholar 

  54. Zhang Y, Li C, Jiang Y, Sun L, Zhao R, Yan K, Wang W (2022) Accurate prediction of water quality in urban drainage network with integrated emd-lstm model. J Clean Prod 354:131724

    Article  Google Scholar 

  55. Zhang Y, Yan B, Aasma M (2020) A novel deep learning framework: prediction and analysis of financial time series using CEEMD and LSTM. Expert Syst Appl 159. https://doi.org/10.1016/j.eswa.2020.113609

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Varsha Kushwah.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

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

Kushwah, V., Agrawal, P. Decomposition techniques and long short term memory model with black widow optimization for stock price prediction. Multimed Tools Appl 83, 37453–37481 (2024). https://doi.org/10.1007/s11042-023-17062-6

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-023-17062-6

Keywords

Navigation