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

Skip to main content

Stock Price Trend Prediction Using LSTM and Sentiment Analysis on News Headlines

  • Conference paper
  • First Online:
Advances on Broad-Band Wireless Computing, Communication and Applications (BWCCA 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 570))

  • 553 Accesses

Abstract

To simulate the trading behavior of investors in the stock market, this study adopts parameters including technical, fundamental, and chip to build a LSTM model, and also observes the ability of news sentiment to predict stock prices. Influential stocks such as TSMC, Fulgent Sun, and HTC are chosen as the target of our experiment. Four common natural language processing packages are used to label news sentiment. Then the combined sentiment labels along with the LSTM model are used for backtesting. The results of the study found that FinBERT's ability to predict the price trend outperforms other methods, with an accuracy of 41.6%. In addition, combining news sentiment labels with the LSTM model generally leads to better outcome than using either the news label or the LSTM model alone. However, in certain extreme cases, traditional technical indicators or even buy-and-hold strategy have better performances.

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

Access this chapter

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

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.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

Similar content being viewed by others

References

  1. Bhuriya, D., Kaushal, G., Sharma, A., and Singh, U.: Stock market predication using a linear regression. In: 2017 International conference of Electronics, Communication and Aerospace Technology (ICECA), pp. 510–513 (2017)

    Google Scholar 

  2. Lai, L.K.C., and Liu, J.N.K.: Stock forecasting using support vector machine. In: 2010 International Conference on Machine Learning and Cybernetics, pp. 1607–1614 (2010)

    Google Scholar 

  3. Taunk, K., De, S., Verma, S., and Swetapadma, A.: A brief review of nearest neighbor algorithm for learning and classification. In: 2019 International Conference on Intelligent Computing and Control Systems (ICCS), pp. 1255–1260 (2019)

    Google Scholar 

  4. Fama, E.F.: Random walks in stock market prices. Financ. Anal. J. 21(5), 55–59 (1965)

    Article  Google Scholar 

  5. Ariyo, A.A., Adewumi, A.O., and Ayo, C.K.: Stock price prediction using the ARIMA model. In: 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, pp. 106–112 (2014)

    Google Scholar 

  6. Chen, K., Zhou, Y., and Dai, F.: A LSTM-based method for stock returns prediction: a case study of China stock market. In: 2015 IEEE International Conference on Big Data (Big Data), pp. 2823–2824 (2015)

    Google Scholar 

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

    Article  Google Scholar 

  8. Graves, A., Schmidhuber, J.: Framewise phoneme classification with bidirectional LSTM networks. In: Proceedings of the IEEE International Joint Conference on Neural Networks (IJCNN), Montreal, QC, Canada, Vol. 4, pp. 2047–2052 (2005)

    Google Scholar 

  9. Greff, K., Srivastava, R.K., Koutník, J., Steunebrink, B.R., Schmidhuber, J.: LSTM: A Search Space Odyssey. IEEE Trans. Neural Netw. Learn. Syst. 28(10), 2222–2232 (2017)

    Article  MathSciNet  Google Scholar 

  10. Graves, A., Jaitly, N., and Mohamed, A.: Hybrid speech recognition with deep bidirectional LSTM. In: 2013 IEEE Workshop on Automatic Speech Recognition and Understanding, pp. 273–278 (2013)

    Google Scholar 

  11. Shi, X., Chen, Z., Wang, H., Yeung, D.Y., Wong, W.K. and Woo, W.C.: Convolutional LSTM Network: a machine learning approach for precipitation nowcasting. In: Proceedings of the 28th International Conference on Neural Information Processing Systems (NIPS 2015), vol. 1, 802–810 (2015)

    Google Scholar 

  12. Liang, X., Shen, X., Feng, J., Lin, L., Yan, S.: Semantic object parsing with graph LSTM. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9905, pp. 125–143. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46448-0_8

    Chapter  Google Scholar 

  13. Liu, S., Liao, G. and Ding, Y.: Stock transaction prediction modeling and analysis based on LSTM. In: 2018 13th IEEE Conference on Industrial Electronics and Applications (ICIEA), pp. 2787–2790 (2018)

    Google Scholar 

  14. Ojo, S.O., Owolawi, P.A., Mphahlele, M., Adisa, J.A.: Stock market behaviour prediction using stacked LSTM networks. 2019 International Multidisciplinary Information Technology and Engineering Conference (IMITEC), pp. 1–5 (2019)

    Google Scholar 

  15. Bathla, G.: stock price prediction using LSTM and SVR. In: 2020 Sixth International Conference on Parallel, Distributed and Grid Computing (PDGC), pp. 211–214 (2020)

    Google Scholar 

  16. Guo, Y.: Stock price prediction based on LSTM neural network: the effectiveness of news sentiment analysis.In: 2020 2nd International. Conference on Economic Management and Model Engineering (ICEMME), pp. 1018–1024 (2020)

    Google Scholar 

  17. Kavinnilaa, J., Hemalatha, E., Jacob, M.S., Dhanalakshmi, R.: Stock price prediction based on LSTM deep learning model. In: 2021 International Conference on System, Computation, Automation and Networking (ICSCAN), pp. 1–4 (2021)

    Google Scholar 

  18. Dervlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)

  19. Araci, D.: FinBERT: financial sentiment analysis with pre-trained language models. In: The International Conference on Learning Representations (ICLR) arXiv: 1908.10063v1 cs.CL (2019)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Fang-Yie Leu .

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

Li, JB., Lin, SY., Leu, FY., Chu, YC. (2023). Stock Price Trend Prediction Using LSTM and Sentiment Analysis on News Headlines. In: Barolli, L. (eds) Advances on Broad-Band Wireless Computing, Communication and Applications. BWCCA 2022. Lecture Notes in Networks and Systems, vol 570. Springer, Cham. https://doi.org/10.1007/978-3-031-20029-8_27

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-20029-8_27

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-20028-1

  • Online ISBN: 978-3-031-20029-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics