International Scientific Journal of Engineering and Management

An International Scholarly || Multidisciplinary || Open Access || Indexing in all major Database & Metadata
The journal follows the UGC Guidelines and is evaluated for inclusion in the Web of Science
ISSN: 2583-6129

Impact Factor: 8.072

Sentiment Classification of Amazon Product Reviews Using Machine Learning: A Comparative Study of Logistic Regression, Naive Bayes, and SVM

Version
File Size 304.81 KB
Downloads 3
Files 1
Published 29 July 2026
Updated 29 July 2026

Sentiment Classification of Amazon Product Reviews Using Machine Learning: A Comparative Study of Logistic Regression, Naive Bayes, and SVM

 

 

Shaik.Afreen

 

 

Abstract

Online consumer reviews constitute a rich but unstructured source of product feedback; harnessing them at scale requires robust, automated sentiment analysis. This study benchmarks three classical supervised learning algorithms — Logistic Regression, Naive Bayes, and Support Vector Machine (SVM) — on the Amazon Fine Food Reviews dataset, one of the largest publicly available corpora of consumer food opinions. After rigorous preprocessing, the usable corpus was reduced from 568,454 to 363,825 records, retaining text and polarity labels. A TF-IDF vectorization pipeline with negation-aware n-gram features was applied before model training. SVM delivered the highest classification accuracy of 93.75%, followed by Logistic Regression at 91.08% and Naive Bayes at 90.01%, all substantially exceeding the majority-class baseline of 84.17%. Five-fold cross-validation confirmed Logistic Regression's stability (mean = 91.08%, std = 0.06%). Detailed analysis of the confusion matrix and per-class metrics revealed a pronounced class imbalance (84% positive reviews), which suppresses precision on the negative class to 0.66 while maintaining recall at 0.90. Feature importance analysis identified negation n-grams — including 'not bitter', 'not disappointed', and 'not recommend' — as the most discriminative predictors in both sentiment directions. Error analysis of false positives and false negatives suggests that mixed-sentiment and comparative language remain the primary failure modes. These findings demonstrate that SVM with n-gram features is highly effective for food review sentiment classification and establish clear directions for improvement through class-balancing techniques and transformer-based architectures.

Keywords: Sentiment Analysis, Amazon Food Reviews, Support Vector Machine, Logistic Regression, Naive Bayes, TF-IDF, Natural Language Processing, Text Classification, Class Imbalance, N-gram Features

Download
or download free
[changelog]

Categories & Tags

Similar Downloads

No related download found!
ISJEM Journal

Author's Blog

What is the difference between a Research Paper and a Review Paper?

A research paper and a review paper are both scholarly documents, but they serve different purposes and have different characteristics....
Read More
Author's Blog

What is DOI?

A Digital Object Identifier (DOI) is a unique alphanumeric string that is used to identify and provide a persistent link...
Read More
Author's Blog

What do you need to do during production of your Research Paper?

During the production of a research paper, the following steps need to be taken: conducting research, organizing and analyzing data,...
Read More
Author's Blog

What are the advantages of publishing a research paper?

Publishing a research paper can have many advantages for researchers, including: Career advancement, professional recognition, opportunities for collaboration, increased visibility,...
Read More
Author's Blog

Ways to Support your Academic Wellbeing which preparing the Research Paper/Article

To support your academic wellbeing while publishing a research paper, it's important to set realistic goals, manage your time effectively,...
Read More
Author's Blog

How to improve your Research Paper writing Skills?

Read extensively: One of the best ways to improve your research paper skills is to read extensively in your field...
Read More
Author's Blog

Is DOI compulsory to publish a research paper in a Journal?

DOI is not strictly required to publish a research paper, but it is highly recommended. Basically, the International Scientific Journal...
Read More
Author's Blog

In what ways does research paper give weight to career development?

Publishing a research paper can give weight to a researcher's career development in several ways, such as: establishing oneself as...
Read More
Author's Blog

How to develop a Research Paper from Scratch

Developing a research paper involves several steps including: choosing a topic, conducting background research, formulating a research question or hypothesis,...
Read More
Author's Blog

How Plagiarism report plays crucial role in Research Paper Publication?

Plagiarism is a major concern in the academic and research community, as it undermines the integrity of the research and...
Read More