Skip to main content

Employing a Novel Metaheuristic Algorithm to Optimize an LSTM Model: A Case Study of Stock Market Prediction

  • Conference paper
  • First Online:
Advances in Computing and Data Sciences (ICACDS 2023)

Abstract

It has been long since researchers as well as investors and stakeholders who are actively pursuing financial markets are trying to analyze stock price movements and predict its trend more accurately. To minimize the forecasting risk and make the most profit, several methods have been used among which Deep Learning was at the center of attention in recent years. Deep learning techniques include analyses of historical data and recognizing patterns that can assist scientists to make a more precise prediction. This paper focuses on the application of a optimization approach called Neural Network Algorithm to optimize Long short-term Memory for the prediction of financial time series. The findings reveal that the utilization of an optimization technique such as Neural Network Algorithm to optimize Long Short-term Memory neural networks results in a notable improvement of 40%, 65%, 4%, and 85% in the MAPE, Theil U, R, and RMSE metrics, respectively. Consequently, this leads to even more accurate results and more precise predictions.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Gálvez, R.H., Gravano, A.: Assessing the usefulness of online message board mining in automatic stock prediction systems. J. Comput. Sci. 19, 43–56 (2017)

    Article  Google Scholar 

  2. Miao, M., Cai, W., Li, X.: Parameter estimation of gamma-gamma fading with generalized pointing errors in FSO systems. Wirel. Commun. Mob. Comput. 2021, 1–21 (2021)

    Google Scholar 

  3. Göçken, M., Özçalıcı, M., Boru, A., Dosdoğru, A.T.: Stock price prediction using hybrid soft computing models incorporating parameter tuning and input variable selection. Neural Comput. Appl. 31(2), 577–592 (2017). https://doi.org/10.1007/s00521-017-3089-2

    Article  Google Scholar 

  4. Wanjawa, B.W., Muchemi, L.: ANN model to predict stock prices at stock exchange markets. arXiv preprint arXiv:1502.06434 (2014)

  5. Zhang, K., et al.: Stock market prediction based on generative adversarial network. Procedia Comput. Sci. 147, 400–406 (2019)

    Article  Google Scholar 

  6. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997)

    Article  Google Scholar 

  7. Gers, F., Long short-term memory in recurrent neural networks. 2001, Verlag nicht ermittelbar

    Google Scholar 

  8. Graves, A.: Long Short-Term Memory. In: Supervised Sequence Labelling with Recurrent neural Networks, pp. 37–45. Springer, Heidelberg (2012)

    Chapter  MATH  Google Scholar 

  9. Kong, H., et al.: A novel torque distribution strategy based on deep recurrent neural network for parallel hybrid electric vehicle. IEEE Access 7, 65174–65185 (2019)

    Article  Google Scholar 

  10. Pang, X., Zhou, Y., Wang, P., Lin, W., Chang, V.: An innovative neural network approach for stock market prediction. J. Supercomput. 76(3), 2098–2118 (2018). https://doi.org/10.1007/s11227-017-2228-y

    Article  Google Scholar 

  11. Kumar Chandar, S.: Grey Wolf optimization-Elman neural network model for stock price prediction. Soft. Comput. 25(1), 649–658 (2020). https://doi.org/10.1007/s00500-020-05174-2

    Article  Google Scholar 

  12. Huang, B., et al.: Stock prediction based on Bayesian-LSTM. in Proceedings of the 2018 10th International Conference on Machine Learning and Computing. 2018

    Google Scholar 

  13. Dastgerdi, A.K., Mercorelli, P.: Investigating the effect of noise elimination on LSTM models for financial markets prediction using Kalman filter and wavelet transform. WSEAS Trans. Bus. Econ. 19, 432–441 (2022)

    Article  Google Scholar 

  14. Sadollah, A., Sayyaadi, H., Yadav, A.: A dynamic metaheuristic optimization model inspired by biological nervous systems: neural network algorithm. Appl. Soft Comput. 71, 747–782 (2018)

    Article  Google Scholar 

  15. Hegazy, O., O.S, Soliman., Salam, M.A.: A machine learning model for stock market prediction. arXiv preprint arXiv:1402.7351 (2014)

  16. Göçken, M., et al.: Integrating metaheuristics and artificial neural networks for improved stock price prediction. Expert Syst. Appl. 44, 320–331 (2016)

    Article  Google Scholar 

  17. Chung, H., Shin, K.-S.: Genetic algorithm-optimized long short-term memory network for stock market prediction. Sustainability 10(10), 3765 (2018)

    Article  Google Scholar 

  18. Yang, B., Zhang, W., Wang, H.: Stock market forecasting using restricted gene expression programming. Comput. Intell. Neurosci. 2019, 1–14 (2019)

    Google Scholar 

  19. Wang, Y., Guo, Y.: Forecasting method of stock market volatility in time series data based on mixed model of ARIMA and XGBoost. China Commun. 17(3), 205–221 (2020)

    Article  Google Scholar 

  20. Liu, H., Long, Z.: An improved deep learning model for predicting stock market price time series. Digit. Sign. Process. 102, 102741 (2020)

    Article  Google Scholar 

  21. Zhao, Y.: A novel stock index intelligent prediction algorithm based on attention-guided deep neural network. Wirel. Commun. Mob. Comput. 2021, 1–21 (2021)

    Google Scholar 

  22. Jing, N., Wu, Z., Wang, H.: A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction. Expert Syst. Appl. 178, 115019 (2021)

    Article  Google Scholar 

  23. Wang, J., et al.: Asian stock markets closing index forecast based on secondary decomposition, multi-factor analysis and attention-based LSTM model. Eng. Appl. Artif. Intell. 113, 104908 (2022)

    Article  Google Scholar 

  24. Ali, M., et al.: Prediction of complex stock market data using an improved hybrid EMD-LSTM model. Appl. Sci. 13(3), 1429 (2023)

    Article  Google Scholar 

  25. How, D.N.T., Loo, C.K., Sahari, K.S.M.: Behavior recognition for humanoid robots using long short-term memory. Int. J. Adv. Rob. Syst. 13(6), 1729881416663369 (2016)

    Google Scholar 

  26. Yu, W., Li, X., Gonzalez, J.: Fast training of deep LSTM networks. In: Lu, H., Tang, H., Wang, Z. (eds.) Advances in Neural Networks – ISNN 2019. ISNN 2019. Lecture Notes in Computer Science, vol. 11554, pp. 3–10. Springer, Cham (2019).https://doi.org/10.1007/978-3-030-22796-8_1

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Paolo Mercorelli .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Dastgerdi, A.K., Mercorelli, P. (2023). Employing a Novel Metaheuristic Algorithm to Optimize an LSTM Model: A Case Study of Stock Market Prediction. In: Singh, M., Tyagi, V., Gupta, P., Flusser, J., Ören, T. (eds) Advances in Computing and Data Sciences. ICACDS 2023. Communications in Computer and Information Science, vol 1848. Springer, Cham. https://doi.org/10.1007/978-3-031-37940-6_39

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-37940-6_39

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-37939-0

  • Online ISBN: 978-3-031-37940-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics