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.
Similar content being viewed by others
References
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
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
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
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
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
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
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
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
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
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
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
Dragomiretskiy K, Zosso D (2014) Variational mode decomposition. IEEE Trans Signal Process 62(3):531–544. https://doi.org/10.1109/TSP.2013.2288675
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Rezaei H, Faaljou H, Mansourfar G (2021) Stock price prediction using deep learning and frequency decomposition. Expert Syst Appl 169:114332
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Author information
Authors and Affiliations
Corresponding author
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.
About this article
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
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-023-17062-6