Stock Price Predictions with LSTM Neural Networks and Twitter Sentiment

2021 | journal article. A publication with affiliation to the University of Göttingen.

Jump to: Cite & Linked | Documents & Media | Details | Version history

Cite this publication

​Stock Price Predictions with LSTM Neural Networks and Twitter Sentiment​
Thormann, M.-L.; Farchmin, J.; Weisser, C.; Kruse, R.-M.; Säfken, B. & Silbersdorff, A.​ (2021) 
Statistics, Optimization and Information Computing9(2) pp. 268​-287​.​ DOI: https://doi.org/10.19139/soic-2310-5070-1202 

Documents & Media

License

GRO License GRO License

Details

Authors
Thormann, Marah-Lisanne; Farchmin, Jan; Weisser, Christoph; Kruse, Rene-Marcel; Säfken, Benjamin; Silbersdorff, Alexander
Abstract
Predicting the trend of stock prices is a central topic in financial engineering. Given the complexity and nonlinearity of the underlying processes we consider the use of neural networks in general and sentiment analysis in particular for the analysis of financial time series. As one of the biggest social media platforms with a user base across the world, Twitter offers a huge potential for such sentiment analysis. In fact, stocks themselves are a popular topic in Twitter discussions. Due to the real-time nature of the collective information quasi contemporaneous information can be harvested for the prediction of financial trends. In this study, we give an introduction in financial feature engineering as well as in the architecture of a Long Short-Term Memory (LSTM) to tackle the highly nonlinear problem of forecasting stock prices. This paper presents a guide for collecting past tweets, processing for sentiment analysis and combining them with technical financial indicatorsto forecast the stock prices of Apple 30m and 60m ahead. A LSTM with lagged close price is used as a baseline model. We are able to show that a combination of financial and Twitter features can outperform the baseline in all settings. The code to fully replicate our forecasting approach is available in the Appendix.
Issue Date
2021
Journal
Statistics, Optimization and Information Computing 
ISSN
2311-004X
eISSN
2310-5070

Reference

Citations


Social Media