Stock Price Prediction Using Sentiment-Based LSTM: S&P500 Versus Reddit Posts

Oladapo Richard-Ojo, Hayden Wimmer

Research output: Contribution to book or proceedingConference articlepeer-review

Abstract

The stock market is as volatile as it is unpredictable, the unstable nature of the stock market results in fluctuations in stock prices and invariably, the market performance of stocks. Understanding the underlying factors that contribute to the volatility of the stock market, which has its consequences on stock prices, has become important to researchers and investors alike. Some of the methods that researchers have used in the past as a gauge for understanding market performance include analyzing economic conditions, understanding company performance, following geopolitical events and market trends. To contribute to the vast research field of stock price predictions and the challenge of understanding stock price fluctuations, this study will aim to find a relationship between human sentiments on the social media platform, Reddit, and the S&P 500 stock index. In this study, we will analyze posts from five subreddits that typically discuss the stock market and stock price fluctuations. This will form the first part of our dataset. Historical stock prices for the S&P 500 index will be obtained from Yahoo Finance. This will form our final dataset. Using Valence aware dictionary and sentiment reasoner (VADER), we will extract the sentiments within the five subreddits and categorize them into positive and negative sentiments. The historical stock prices from Yahoo Finance will be matched with the aggregate sentiments for each day and this data passed through the LSTM model for training. Our findings provide strong evidence of social media’s impact on stock price predictions.

Original languageEnglish
Title of host publicationProceedings of IEMTRONICS 2024 - International IoT, Electronics and Mechatronics Conference
EditorsPhillip G. Bradford, S. Andrew Gadsden, Shiban K. Koul, Kamakhya Prasad Ghatak
PublisherSpringer Science and Business Media Deutschland GmbH
Pages29-45
Number of pages17
ISBN (Print)9789819747832
DOIs
StatePublished - 2025
EventInternational IoT, Electronics and Mechatronics Conference, IEMTRONICS 2024 - London, United Kingdom
Duration: Apr 3 2024Apr 5 2024

Publication series

NameLecture Notes in Electrical Engineering
Volume1228
ISSN (Print)1876-1100
ISSN (Electronic)1876-1119

Conference

ConferenceInternational IoT, Electronics and Mechatronics Conference, IEMTRONICS 2024
Country/TerritoryUnited Kingdom
CityLondon
Period04/3/2404/5/24

Scopus Subject Areas

  • Industrial and Manufacturing Engineering

Keywords

  • LSTM
  • Reddit
  • Sentiment analysis
  • Stock market

Fingerprint

Dive into the research topics of 'Stock Price Prediction Using Sentiment-Based LSTM: S&P500 Versus Reddit Posts'. Together they form a unique fingerprint.

Cite this