Sentiment Classification of Customer Reviews in the Fast-Food Industry Using the Naïve Bayes Algorithm

In the digital era, online reviews have become a significant source of information, influencing consumer perceptions and purchasing decisions, particularly in the fast-food industry. This research focuses on classifying customer sentiment towards A&W restaurants based on online reviews using the Naïve Bayes algorithm. The objective of this study is to analyze customer feedback to understand their perceptions of A&W’s services and products. The research follows the Cross Industry Standard Process for Data Mining (CRISP-DM) methodology, which involves six phases: business understanding, data understanding, data preparation, modeling, evaluation, and deployment. Data was collected from Google Reviews of the A&W Palem Semi branch, consisting of 200 customer reviews, which were preprocessed to remove irrelevant content and prepare the data for analysis. The Naïve Bayes algorithm was applied to classify the sentiments into three categories: positive, negative, and neutral. The model achieved an overall accuracy of 83%. However, the results revealed a significant class imbalance, with most reviews labeled as neutral. While the model performed well in identifying neutral sentiment (precision 0.89, recall 0.97, F1-score 0.93), it failed to classify positive and negative sentiments accurately, as both achieved precision, recall, and F1-scores of 0.00. This demonstrates that the data imbalance severely impacted the model’s ability to detect minority sentiment classes. The research concludes that while Naïve Bayes offers useful insights into customer sentiment, improvements are necessary, including applying data balancing techniques or exploring alternative algorithms such as SVM or Random Forest to enhance classification performance across all sentiment categories.

Authors

Institutions

Publication Details

Journal
bit-Tech
Published
2025-08-10
DOI
https://doi.org/10.32877/bt.v8i1.2766
Primary Topic
Data Mining and Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sentiment Classification of Customer Reviews in the Fast-Food Industry Using the Naïve Bayes Algorithm

Abdul Karim, Aurellia Nadira Putri, Diding Rukmana, Makmun ZA
bit-Tech
Data Mining and Machine Learning Applications
article

Sentiment Classification of Customer Reviews in the Fast-Food Industry Using the Naïve Bayes Algorithm

Abdul Karim, Aurellia Nadira Putri, Diding Rukmana, Makmun ZA
article en

Abstract

In the digital era, online reviews have become a significant source of information, influencing consumer perceptions and purchasing decisions, particularly in the fast-food industry. This research focuses on classifying customer sentiment towards A&W restaurants based on online reviews using the Naïve Bayes algorithm. The objective of this study is to analyze customer feedback to understand their perceptions of A&W’s services and products. The research follows the Cross Industry Standard Process for Data Mining (CRISP-DM) methodology, which involves six phases: business understanding, data understanding, data preparation, modeling, evaluation, and deployment. Data was collected from Google Reviews of the A&W Palem Semi branch, consisting of 200 customer reviews, which were preprocessed to remove irrelevant content and prepare the data for analysis. The Naïve Bayes algorithm was applied to classify the sentiments into three categories: positive, negative, and neutral. The model achieved an overall accuracy of 83%. However, the results revealed a significant class imbalance, with most reviews labeled as neutral. While the model performed well in identifying neutral sentiment (precision 0.89, recall 0.97, F1-score 0.93), it failed to classify positive and negative sentiments accurately, as both achieved precision, recall, and F1-scores of 0.00. This demonstrates that the data imbalance severely impacted the model’s ability to detect minority sentiment classes. The research concludes that while Naïve Bayes offers useful insights into customer sentiment, improvements are necessary, including applying data balancing techniques or exploring alternative algorithms such as SVM or Random Forest to enhance classification performance across all sentiment categories.

bit-TechVol. 8(1)
Institut Teknologi dan Bisnis Kalbe (ID)
Industry, innovation and infrastructure
Openalex Percentile: Top 69%
Data Mining and Machine Learning Applications
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.