Skip to main content

Stock Prices Prediction from Financial News Articles Using LSTM and XAI

  • Conference paper
  • First Online:
Proceedings of Second International Conference on Computing, Communications, and Cyber-Security

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

Abstract

The stock market is very complex and volatile. It is impacted by positive and negative sentiments which are based on media releases. The scope of the stock price analysis relies upon the ability to recognize the stock movements. It is based on technical fundamentals and understanding the hidden trends which the market follows. Stock price prediction (Vachhani et al in Mach Learn-Based Stock Market Anal Short Surv (2020) [1]) has consistently been an extremely dynamic field of exploration and research work. However, arriving at the ideal degree of precision is still an enticing challenge. In this paper, we are proposing a combined effort of using efficient machine learning techniques coupled with a deep learning technique—long short-term memory (LSTM) to use them to predict the stock prices with a high level of accuracy. Sentiments derived by users from news headlines have a tremendous effect on the buying and selling patterns of the traders as they easily get influenced by what they read. Hence, fusing one more dimension of sentiments along with technical analysis should improve the prediction accuracy. LSTM networks have proved to be a very useful tool to learn and predict temporal data having long-term dependencies. In our work, the LSTM model uses historical stock data along with sentiments from news items to create a better predictive 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 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

References

  1. Vachhani H, Obiadat M, Thakkar A, Shah V, Sojitra R, Bhatia J, Tanwar S (2020) Machine learning-based stock market analysis: a short survey. https://doi.org/10.1007/978-3-030-38040-3_2

  2. Titan A (2015) The efficient market hypothesis: review of specialized literature and empirical research. Proc Econ Fin 32:442–449

    Google Scholar 

  3. Roondiwala M, Patel H, Varma S (2017) Predicting stock prices using LSTM 6(4):2015–2017

    Google Scholar 

  4. Mathews SM (2017) Dictionary and deep learning algorithms with applications to remote health monitoring systems. Univ. Delaware, Newark, DE, USA, Technical Report

    Google Scholar 

  5. Kalyani J, Bharathi HN, Rao J (2016) Stock trend prediction using news sentiment analysis. Int J Comput Sci Inf Technol (IJCSIT) 8(3):67–76

    Google Scholar 

  6. Nayak A, Pai MM, Pai RM (2016) Prediction models for Indian stock market. Proc Comput Sci 89:441–449

    Article  Google Scholar 

  7. Hiransha M, Gopalakrishnan EA, Menon VK, Soman KP (2018) NSE stock market prediction using deep-learning models. Proc Comput Sci 132:1351–1362.https://doi.org/10.1016/j.procs.2018.05.050

  8. Qun Z, Xu L, Zhang G (2017) LSTM neural network with emotional analysis for prediction of stock price. Eng Lett 25(2):167–175

    Google Scholar 

  9. Vargas MR, de Lima BSLP, Evsukoff AG (2017) Deep learning for stock market prediction from financial news articles. In: 2017 IEEE international conference on computational intelligence and virtual environments for measurement systems and applications (CIVEMSA). IEEE, June 2017

    Google Scholar 

  10. Elman JL (1990) Finding structure in time. Cogn Sci 14:179–211

    Article  Google Scholar 

  11. Hochreiter S, Schmidhuber J (1997) Long-short term memory. Neural Comput

    Google Scholar 

  12. Greff K, Srivastava RK, Koutník J, Steunebrink BR (2017, Oct 4) LSTM: a search space odyssey

    Google Scholar 

  13. Radwan S What does explainable AI really mean?

    Google Scholar 

  14. Shrikumar A, Greenside P, Shcherbina A, Kundaje A (2016) Not just a black box: learning important features through propagating activation differences

    Google Scholar 

  15. Doran D, Schulz S, Besold TR (2017) What does explainable ai really mean? A new conceptualization of perspectives. arXiv:1710.00794

  16. Gite S, Khatavkar H, Kotecha K, Srivastava S, Maheshwari P, Pandey N (2021) Explainable stock prices prediction from financial news articles using sentiment analysis. PeerJ Comput Sci 7:e340. https://doi.org/10.7717/peerj-cs.340

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shilpa Gite .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 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

Gite, S., Khatavkar, H., Srivastava, S., Maheshwari, P., Pandey, N. (2021). Stock Prices Prediction from Financial News Articles Using LSTM and XAI. In: Singh, P.K., Wierzchoń, S.T., Tanwar, S., Ganzha, M., Rodrigues, J.J.P.C. (eds) Proceedings of Second International Conference on Computing, Communications, and Cyber-Security. Lecture Notes in Networks and Systems, vol 203. Springer, Singapore. https://doi.org/10.1007/978-981-16-0733-2_11

Download citation

  • DOI: https://doi.org/10.1007/978-981-16-0733-2_11

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-16-0732-5

  • Online ISBN: 978-981-16-0733-2

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics