Skip to content
Research Article Open access CC BY 4.0

Sentiment Analysis of Nigerian Opinions Using Logistic Regression and Random Forest Algorithms: A Comparative Study

Victor Mfon Abia, E. Henry Johnson, Akaninyene B. Obot

Journal of Engineering Research and Reports · pp. 27–40 · Published 25 Sep 2024

10.9734/jerr/2024/v26i101287

Abstract

This study investigates the efficacy of Logistic Regression and Random Forest models in sentiment analysis using Nigerian-based datasets, namely "Gangs of Lagos" and "PeterObi Politics." Sentiment analysis, a vital component of Natural Language Processing (NLP), plays a crucial role in understanding public opinion and sentiment trends, particularly in the context of Nigerian socio-political discourse. Leveraging machine learning techniques, the study examines the performance of these models in predicting sentiment classes, including positive, negative, and neutral sentiments, within the datasets. The findings shed light on the strengths and limitations of Logistic Regression and Random Forest in discerning sentiment nuances prevalent in Nigerian language expressions with Logistic Regression outperforming Random Forest in both cases. This research contributes to the advancement of sentiment analysis methodologies tailored to Nigerian linguistic and cultural contexts, with implications for various applications, including social media monitoring, political analysis, and market research.

Natural language processing machine learning logistic regression random forest Nigeria

Cited by 1

Article metrics

Real usage data collected on this platform.

19

Page views

0

PDF downloads

2

Outbound clicks

1

Citations

Views over time

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

Traffic sources

Referring site, by host.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.