Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

A Deep Learning Model for Classifying Candidate-Related Tweets in the 2023 Nigerian Presidential Election

Domain:

natural language processing

Record type:

paper
Creator:
BawAbuAbdAhm
Publisher:
Res
Host:avatar
The increasing use of social media for political communication has transformed electoral discourse in Nigeria, particularly during the 2023 presidential election. While existing studies have largely focused on sentiment analysis or electoral prediction, limited attention has been given to candidate-level classification of political discourse as a distinct computational task. This study develops a deep learning framework for classifying tweets associated with the three leading presidential candidates Atiku Abubakar (PDP), Bola Ahmed Tinubu (APC), and Peter Obi (LP) based on their online presence. Twitter data were collected from six campaign-related hashtags between August 1, 2022 and February 28, 2023 to capture real-time political engagement. After preprocessing procedures including text cleaning, normalization, and duplicate removal, a total of 121,958 unique tweets were retained for model development. Two models were implemented: a baseline Artificial Neural Network (ANN) using TF-IDF vectorized features, and a Convolutional Neural Network (CNN) employing distributed word embeddings trained from scratch to capture localized campaign expressions and Nigerian political slang. Both models were evaluated using accuracy, precision, recall, F1-score, and AUC. The ANN achieved an accuracy of 0.5142, indicating limited effectiveness in distinguishing candidate-related tweet patterns. In contrast, the CNN achieved an accuracy of 0.9673 with balanced precision and recall, demonstrating superior performance in learning contextual and linguistic structures within short, informal political text. These findings confirm that CNN-based architectures are well suited for structuring large-scale candidate-related political discourse on social media. While this study does not infer voter preference or predict election outcomes, it provides a robust computational approach for analyzing digital political communication in Nigeria. Future research may extend this framework using multilingual datasets, transformer-based language models, and cross-platform political discourse analysis.

Visit

doi.orgrejost.com.ng

Tasks

text classification

Tags

Deep LearningTweet ClassificationPolitical CommunicationConvolutional Neural NetworkSocial Media AnalyticsNigerian Election

Licenses

Creative Commons Attribution Non Commercial No Derivatives 4.0 Internationalhttps://creativecommons.org/licenses/by-nc-nd/4.0/legalcode

Similar

rohit211-s/Sentiment-Analysis-of-2023-Nigerian-Presidential-Election-Tweets-Using-PowerBINigeria's 2023 Presidential Election Dataset“WE WILL TAKE BACK OUR COUNTRY FROM BAD GOVERNANCE”: A CORPUS-ASSISTED CRITICAL DISCOURSE STUDY OF CAMPAIGN TWEETS IN THE 2023 NIGERIAN PRESIDENTIAL ELECTIONReligion in Electoral Politics: A Sociological Analysis of Its Uses in the 2023 Nigerian Presidential ElectionNature of Tweets in the 2015 Nigerian Presidential ElectionsSyntactic Analysis of Nigerian Pidgin Used in BBC News Coverage of the February 25th, 2023 Presidential Election

rohit211-s/Sentiment-Analysis-of-2023-Nigerian-Presidential-Election-Tweets-Using-PowerBI

This project analyzes public opinion on the main candidates in the 2023 election using Twitter data.

Nigeria's 2023 Presidential Election Dataset

This dataset contains tweets mined from August, 2022 to February, 2023 about Nigeria's 2023 presiden

“WE WILL TAKE BACK OUR COUNTRY FROM BAD GOVERNANCE”: A CORPUS-ASSISTED CRITICAL DISCOURSE STUDY OF CAMPAIGN TWEETS IN THE 2023 NIGERIAN PRESIDENTIAL ELECTION

Nigeria has faced challenges in governance, economic development, and social development, making lif

Religion in Electoral Politics: A Sociological Analysis of Its Uses in the 2023 Nigerian Presidential Election

Religion continues to play a central role in shaping presidential elections in Nigeria. Yet, few stu

Nature of Tweets in the 2015 Nigerian Presidential Elections

Social media is becoming increasingly important as a means for social engagement. In Nigeria, Twitte

Syntactic Analysis of Nigerian Pidgin Used in BBC News Coverage of the February 25th, 2023 Presidential Election

Pidgin English is used by different ethnic regions in the world to perform different communicative r