Sentiment Analysis Techniques: A Comparative Study of Logistic Regression, Random Forest, and Naive Bayes on General English and Nigerian Texts

This research investigates sentiment analysis on two distinct datasets: a general English dataset and a Nigerian dataset (Gangs of Lagos movie review), using three machine learning algorithms: Logistic Regression, Random Forest, and Naive Bayes with python programming language and its libraries. The study aims to evaluate and compare the performance of these models across different linguistic and cultural contexts. Results indicate that Logistic Regression consistently outperforms the other models, achieving the highest accuracy and balanced performance across sentiment classes. Random Forest provides comparable results but struggles with positive sentiment detection in the Nigerian dataset. Naive Bayes shows the lowest overall accuracy, with significant challenges in recall for certain sentiment classes. These findings highlight the importance of model selection and tuning tailored to specific datasets for effective sentiment analysis.

Authors

Institutions

Publication Details

Journal
Journal of Engineering Research and Reports
Published
2024-09-03
DOI
https://doi.org/10.9734/jerr/2024/v26i91268
Citations
4
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
1.39
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sentiment Analysis Techniques: A Comparative Study of Logistic Regression, Random Forest, and Naive Bayes on General English and Nigerian Texts

Victor Mfon Abia, E. Henry Johnson
4 citations
Journal of Engineering Research and Reports
Sentiment Analysis and Opinion Mining
1.39
article

Sentiment Analysis Techniques: A Comparative Study of Logistic Regression, Random Forest, and Naive Bayes on General English and Nigerian Texts

Victor Mfon Abia, E. Henry Johnson
article en
4 citations

Abstract

This research investigates sentiment analysis on two distinct datasets: a general English dataset and a Nigerian dataset (Gangs of Lagos movie review), using three machine learning algorithms: Logistic Regression, Random Forest, and Naive Bayes with python programming language and its libraries. The study aims to evaluate and compare the performance of these models across different linguistic and cultural contexts. Results indicate that Logistic Regression consistently outperforms the other models, achieving the highest accuracy and balanced performance across sentiment classes. Random Forest provides comparable results but struggles with positive sentiment detection in the Nigerian dataset. Naive Bayes shows the lowest overall accuracy, with significant challenges in recall for certain sentiment classes. These findings highlight the importance of model selection and tuning tailored to specific datasets for effective sentiment analysis.

Journal of Engineering Research and ReportsVol. 26(9)
Akwa Ibom State University (NG)
Openalex Percentile: Top 16%
Sentiment Analysis and Opinion Mining
1.39
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.