Stance Prediction and Analysis of Twitter data : A case study of Ghana 2020 Presidential Elections

06/25/2023
by   Shester Gueuwou, et al.
0

On December 7, 2020, Ghanaians participated in the polls to determine their president for the next four years. To gain insights from this presidential election, we conducted stance analysis (which is not always equivalent to sentiment analysis) to understand how Twitter, a popular social media platform, reflected the opinions of its users regarding the two main presidential candidates. We collected a total of 99,356 tweets using the Twitter API (Tweepy) and manually annotated 3,090 tweets into three classes: Against, Neutral, and Support. We then performed preprocessing on the tweets. The resulting dataset was evaluated using two lexicon-based approaches, VADER and TextBlob, as well as five supervised machine learning-based approaches: Support Vector Machine (SVM), Logistic Regression (LR), Multinomial Naïve Bayes (MNB), Stochastic Gradient Descent (SGD), and Random Forest (RF), based on metrics such as accuracy, precision, recall, and F1-score. The best performance was achieved by Logistic Regression with an accuracy of 71.13 Logistic Regression to classify all the extracted tweets and subsequently conducted an analysis and discussion of the results. For access to our data and code, please visit: https://github.com/ShesterG/Stance-Detection-Ghana-2020-Elections.git

READ FULL TEXT
research
02/10/2017

Arabic Language Sentiment Analysis on Health Services

The social media network phenomenon leads to a massive amount of valuabl...
research
12/07/2020

Computing flood probabilities using Twitter: application to the Houston urban area during Harvey

In this paper, we investigate the conversion of a Twitter corpus into ge...
research
07/15/2023

Political Sentiment Analysis of Persian Tweets Using CNN-LSTM Model

Sentiment analysis is the process of identifying and categorizing people...
research
08/05/2021

Hate Speech Detection in Roman Urdu

Hate speech is a specific type of controversial content that is widely l...
research
06/22/2022

Defect Prediction Using Stylistic Metrics

Defect prediction is one of the most popular research topics due to its ...
research
05/04/2021

BLM-17m: A Large-Scale Dataset for Black Lives Matter Topic Detection on Twitter

Protection of human rights is one of the most important problems of our ...
research
09/05/2020

The Integrity of Machine Learning Algorithms against Software Defect Prediction

The increased computerization in recent years has resulted in the produc...

Please sign up or login with your details

Forgot password? Click here to reset