TY - JOUR AU - Marah-Lisanne Thormann AU - Jan Farchmin AU - Christoph Weisser AU - Rene-Marcel Kruse AU - Benjamin Säfken AU - Alexander Silbersdorff PY - 2021/05/08 Y2 - 2024/03/29 TI - Stock Price Predictions with LSTM Neural Networks and Twitter Sentiment JF - Statistics, Optimization & Information Computing JA - Stat., optim. inf. comput. VL - 9 IS - 2 SE - Research Articles DO - 10.19139/soic-2310-5070-1202 UR - http://iapress.org/index.php/soic/article/view/1202 AB - 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. ER -