Skip to main content

SP-LAN: A Stock Prediction Model Based on LSTM-Attention Network

  • Conference paper
  • First Online:
Web and Big Data. APWeb-WAIM 2022 International Workshops (APWeb-WAIM 2022)

Abstract

With the prosperity of the stock market and the rapid development of artificial intelligence, stock prediction technology has been widely concerned in recent years. Currently, most existing works only focus on stock prediction models via machine learning, ignoring some problems, such as local minima, gradient vanishing and interaction of information at different times. The stock data has characteristics like high noise and nonlinearity, which increase the difficulty of modeling. To solve these problems, we propose the Stock Prediction Model based on LSTM-Attention Network (called SP-LAN). Unlike traditional methods, SP-LAN can train the model with excellent generalization ability. SP-LAN also can make the model better learn interaction of information at different times, thus improving the prediction effectiveness of our model. In addition, we propose a novel feature selection strategy based on embedded importance to reduce the dimensions of data, which makes model train easier. Finally, we conduct experimental studies based on the daily trading dataset of SSE 50. The experimental results demonstrate the effectiveness and efficiency of our model.

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 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.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. Li, T.: Research on stock fluctuation prediction method based on wavelet analysis and BP neural network. Tianjin University (2018)

    Google Scholar 

  2. Li, X.Q.: Research and application of grey prediction in stock price. Times Finance 10, 158–160 (2017)

    Google Scholar 

  3. Tsiliyannis, C.A.: Markov chain modeling and prediction of product returns in remanufacturing based on stock mean-age. Eur. J. Oper. Res. 271(2), 474–489 (2018)

    Article  MATH  Google Scholar 

  4. Kristjanpolleri, R.W., Michell, V.K.: A stock market risk forecasting model through integration of switching regime, ANFIS and GARCH techniques. Appl. Soft Comput. 67, 106–116 (2018)

    Article  Google Scholar 

  5. Zhang, W.X.: BP neural network stock prediction model based on PSO optimization. Harbin Institute of Technology (2010)

    Google Scholar 

  6. Zhang, Y.D., Wu, L.N.: Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network. Expert Syst. Appl. 36(5), 8849–8854 (2009)

    Article  Google Scholar 

  7. Gao, T.W., Chai, Y.T.: Improving stock closing price prediction using recurrent neural network and technical indicators. Neural Comput. 30(10), 2833–2854 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  8. Naik, N., Mohan, B.R.: Study of stock return predictions using recurrent neural networks with LSTM. In: Proceedings of International Conference on Engineering Applications of Neural Networks, pp. 453–459 (2019)

    Google Scholar 

  9. Kim, H.Y., Won, C.H.: Forecasting the volatility of stock price index: a hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst. Appl. 103, 25–37 (2018)

    Article  Google Scholar 

  10. Zhan, X.K., Li, Y.H., Li, R.X., et al.: Stock price prediction using time convolution long short-term memory network. In: Proceedings of International Conference on Knowledge Science, Engineering and Management, pp. 461–468 (2018)

    Google Scholar 

  11. Huang, B., Ding, Q., Sun, G.Z., et al.: Stock prediction based on Bayesian-LSTM. In: Proceedings of the 2018 10th International Conference on Machine Learning and Computing, pp. 128–133 (2018)

    Google Scholar 

  12. Sun, R.Q.: Research on price trend prediction model of U.S. stock index based on LSTM neural network. Capital University of Economics and Business (2016)

    Google Scholar 

  13. Tao, Z., Hou, M.Z., Liu, C.H.: Prediction stock index with multi-objective optimization model based on optimized neural network architecture avoiding overfitting. Comput. Sci. Inf. Syst. 15(1), 211–236 (2018)

    Article  Google Scholar 

  14. Tan, J.H., Wang, J., Rinprasertmeechai, D., et al.: A tensor-based eLSTM model to predict stock price using financial news. In: Proceedings of the 52nd Hawaii International Conference on System Sciences, pp. 1–10 (2019)

    Google Scholar 

  15. Matsubara, T., Akita, R., Uehara, K.: Stock price prediction by deep neural generative model of news articles. IEICE Trans. Inf. Syst. 101-D(4), 901–908 (2018)

    Google Scholar 

  16. Zhang, G.W., Xu, L.Y., Xue, Y.L.: Model and forecast stock market behavior integrating investor sentiment analysis and transaction data. Clust. Comput. 20(1), 789–803 (2017). https://doi.org/10.1007/s10586-017-0803-x

    Article  Google Scholar 

  17. Liu, J., Lu, Z.C., Du, W.: Combining enterprise knowledge graph and news sentiment analysis for stock price prediction. In: Proceedings of the 52nd Hawaii International Conference on System Sciences, pp. 1–9 (2019)

    Google Scholar 

  18. Vanstone, B.J., Gepp, A., Harris, G.: The effect of sentiment on stock price prediction. In: Proceedings of International Conference on Industrial, Engineering and Other Applications of Applied Intelligent Systems, pp. 551–559 (2018)

    Google Scholar 

  19. Feuerriegel, S., Gordon, J.: Long-term stock index forecasting based on text mining of regulatory disclosures. Decis. Support Syst. 112, 88–97 (2018)

    Article  Google Scholar 

  20. Kondo, M., Bezemer, C.-P., Kamei, Y., Hassan, A.E., Mizuno, O.: The impact of feature reduction techniques on defect prediction models. Empir. Softw. Eng. 24(4), 1925–1963 (2019). https://doi.org/10.1007/s10664-018-9679-5

    Article  Google Scholar 

  21. Vaswani, A., Shazeer, N., Parmar, N., et al.: Attention is all you need. arXiv preprint arXiv:1706.03762v5 (2017)

Download references

Acknowledgement

This work was supported by the Science and Technology Program Major Project of Liaoning Province of China under Grant No. 2022JH1/10400009, the Natural Science Foundation of Liaoning Province of China under Grant No. 2022-MS-171, 2020-BS-082, the Science Research Fund of Liaoning Province of China under Grant No. LJKZ0094, LJKQZ2021023.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dong Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sun, J., Li, D., Wang, X., Kou, Y., Li, P., Xie, Y. (2023). SP-LAN: A Stock Prediction Model Based on LSTM-Attention Network. In: Yang, S., Islam, S. (eds) Web and Big Data. APWeb-WAIM 2022 International Workshops. APWeb-WAIM 2022. Communications in Computer and Information Science, vol 1784. Springer, Singapore. https://doi.org/10.1007/978-981-99-1354-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-1354-1_7

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-1353-4

  • Online ISBN: 978-981-99-1354-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics