Back to search

Université d'Ottawa / University of Ottawa

Stock Market Prediction Through Sentiment Analysis of Social-Media and Financial Stock Data Using Machine Learning

Abstract

dc:description.abstract

Given the volatility of the stock market and the multitude of financial variables at play, forecasting the value of stocks can be a challenging task. Nonetheless, such prediction task presents a fascinating problem to solve using machine learning. The stock market can be affected by news events, social media posts, political changes, investor emotions, and the general economy among other factors. Predicting the stock value of a company by simply using financial stock data of its price may be insufficient to give an accurate prediction. Investors often openly express their attitudes towards various stocks on social medial platforms. Hence, combining sentiment analysis from social media and the financial stock value of a company may yield more accurate predictions. This thesis proposes a method to predict the stock market using sentiment analysis and financial stock data. To estimate the sentiment in social media posts, we use an ensemble-based model that leverages Multi-Layer Perceptron (MLP), Long Short-Term Memory (LSTM), and Convolutional Neural Network (CNN) models. We use an LSTM model for the financial stock prediction. The models are trained on the AAPL, CSCO, IBM, and MSFT stocks, utilizing a combination of the financial stock data and sentiment extracted from social media posts on Twitter between the years 2015-2019. Our experimental results show that the combination of the financial and sentiment information can improve the stock market prediction performance. The proposed solution has achieved a prediction performance of 74.3%.

Degree

thesis:*
Name thesis:degree_name
MSc
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Génie / Engineering
Department dc:contributor.department
Science informatique et génie électrique / Electrical Engineering and Computer Science
Grantor dc:publisher
Université d'Ottawa / University of Ottawa
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Al Ridhawi, Mohammad
Advisor dc:contributor.supervisor
  • Al Osman, Hussein

Subjects

dc:subject × 11

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Ottawa
Base URL
ruor.uottawa.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Al Ridhawi, Mohammad. Stock Market Prediction Through Sentiment Analysis of Social-Media and Financial Stock Data Using Machine Learning. Masters thesis, Université d'Ottawa / University of Ottawa, 2021. https://doi.org/10.20381/ruor-27045