Sentiment analysis using unsupervised learning for local government elections in South Africa

2Citations
Citations of this article
19Readers
Mendeley users who have this article in their library.

Abstract

This study examines public sentiment during the 2021 South African local government election campaign by analysing Twitter posts. The research uses advanced techniques such as fine-tuned RoBERTa model, VADER, and TextBlob to assess the sentiments of tweets about four political parties, addressing the difficulties of understanding political sentiment on social media. The research also distinguishes tweets from real human users and those from chatbots, employing the K-Means method to detect suspicious activity. To gain deeper insights into the analysis, OpenAI GPT is employed for dataset labelling and managing class imbalance. The results show that sentiment varied significantly over time, with the fine-tuned RoBERTa model providing the most accurate analysis. The results further indicated that most tweets came from real human users, with a small number from bots, which tended to be negative. The findings offer useful insights for shaping political campaigns based on public sentiment trends.

Cite

CITATION STYLE

APA

Matloga, P., Marivate, V., & Olaleye, K. (2025). Sentiment analysis using unsupervised learning for local government elections in South Africa. EJournal of EDemocracy and Open Government, 17(1), 144–169. https://doi.org/10.29379/jedem.v17i1.945

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free