Sentiment Analysis of Nigerian Twitter (X) Posts on Fuel Subsidy Removal
- Country
- 🇳🇬 Nigeria
- Faculty
- Science & Computing
- Department
- Data Science
- Course
- Data Science
- Research area
- Data Science
- Method
- Data collection, NLP, visualisation
- What this is
- Project material: Original Chapters 1–3, research instrument, and Chapter 4–5 templates and guide by the MMCYBERCONET Research Desk. You add your own data and findings.
Abstract / summary
Classifies public sentiment and tracks how it changed over time.
Background to the study
On 29 May 2023, President Bola Tinubu announced in his inaugural speech that the petrol subsidy was gone. Petrol pump prices rose sharply, increasing transport and food costs, and the policy became one of the most discussed issues on social media.
Social media posts provide a rich source of public opinion. Sentiment analysis, a natural language processing technique, classifies opinions as positive, negative or neutral and tracks how they change over time.
In this study, the target to be predicted is sentiment (the polarity of each post: positive, negative or neutral). Models will learn from text features, temporal features and topic features.
This study therefore focuses on the sentiment analysis of Nigerian Twitter (X) posts on fuel subsidy removal, using a standard data science process and careful evaluation on unseen data.
Statement of the problem
Sentiment analysis tools trained on standard English perform poorly on Nigerian posts that mix English, Pidgin and local expressions. Few studies have analysed Nigerian public sentiment on economic policies with locally adapted models.
Manual or rule-based approaches cannot keep up with the volume and complexity of the data involved, and few studies have built and evaluated models using Nigerian data.
The problem of this study, therefore, is: what is the current situation regarding sentiment analysis of Nigerian Twitter (X) posts on fuel subsidy removal, and what can be done about it?
Research objectives
The main objective of this study is to develop and evaluate machine learning models for classifying the sentiment of Nigerian X (Twitter) posts on fuel subsidy removal.
The specific objectives are to:
- collect and prepare a suitable dataset for classifying the sentiment of Nigerian X (Twitter) posts on fuel subsidy removal.
- identify and extract the text features, temporal features and topic features.
- train and compare lexicon-based baseline, logistic regression and linear SVM on TF-IDF and a transformer model fine-tuned on the labelled sample.
- evaluate the models using accuracy, macro-averaged precision, recall and F1-score and confusion matrix.
Table of contents / chapter outline
How to use this material: it is an original guide written for MMCYBERCONET students. Use it to understand and plan your project, then write your own work in your own words. Text in [square brackets] must be replaced with your own details (state, institution, figures). Collect your own data; cite every source you use; check your department's format.
What is included after unlocking: the full Chapter One, Chapter Two (conceptual review, theories and an empirical review guide), Chapter Three (full methodology), a Chapter Four template with tables, a Chapter Five guide, references and the appendix instrument.
| Part | Contents |
|---|---|
| Preliminary pages | Title page, certification, dedication, acknowledgements, abstract, table of contents, list of tables and figures |
| Chapter One: Introduction | 1.1 Background to the study; 1.2 Statement of the problem; 1.3 Objectives of the study; 1.4 Research questions; 1.5 Significance of the study; 1.6 Scope and limitations of the study; 1.7 Definition of terms |
| Chapter Two: Literature review | 2.1 Conceptual review; 2.2 Theoretical framework; 2.3 Empirical review; 2.4 Summary of literature and gap |
| Chapter Three: Methodology | 3.1 Research methodology; 3.2 Data source and description; 3.3 Data preparation; 3.4 Features; 3.5 Models; 3.6 Evaluation; 3.7 Tools |
| Chapter Four: Data presentation, analysis and discussion | Results by research question/objective, tests, discussion of findings |
| Chapter Five: Summary, conclusion and recommendations | Summary; findings; conclusion; recommendations; contribution to knowledge; suggestions for further studies |
| References and appendices | References (APA 7th edition); appendix: code notebook and data dictionary |
🔒 Full materials
Unlock to read:
- 🔒 Research questions
- 🔒 Research hypotheses
- 🔒 Significance of the study
- 🔒 Scope and limitations
- 🔒 Definition of terms
- 🔒 Chapter Two: Literature review
- 🔒 Chapter Three: Research methodology
- 🔒 Chapter Four: Data presentation and analysis (template)
- 🔒 Chapter Five: Summary, conclusion and recommendations (guide)
- 🔒 References and bibliography
- 🔒 Appendices / questionnaires
₦1,500 Continuing access from your account (no expiry).
Log in to unlockSource and licence
Author / source: MMCYBERCONET Research Desk
Licence: Original MMCYBERCONET material for personal study: guide your own research, do not submit as your own work
Status: Original MMCYBERCONET content
Report a copyright concern
Related topics
Predicting Under-Five Mortality Risk from Nigeria Demographic and Health Survey Data
Applies machine learning to NDHS data to identify children at high risk of death before age five.
View detailsPoverty Mapping in Nigeria Using Satellite Night-Time Lights and Machine Learning
Predicts local poverty levels from night-time lights and survey data.
View detailsCustomer Segmentation for a Nigerian Retail Business Using Clustering
Groups customers by purchasing behaviour using RFM analysis and clustering.
View detailsHouse Rent Prediction in Lagos Using Machine Learning
Predicts residential rents from property characteristics and location.
View details