The IJICS (International Journal of Informatics and Computer Science)
Vol. 10 No. 2 (2026): July

Comparative Study of Naive Bayes and SVM for E-Commerce Sentiment Classification on Shopee

Yoga Fradana (Universitas Sriwijaya)
Cahyo Adi Nugraha (Universitas Sriwijaya)
Frans Nicko Apriansyah (Universitas Sriwijaya)
Tri Mutiara Illahi (Universitas Sriwijaya)
Ken Ditha Tania (Universitas Sriwijaya)
Allsela Meiriza (Universitas Sriwijaya)



Article Info

Publish Date
29 Jul 2026

Abstract

This study compares the performance of Naive Bayes and Support Vector Machine (SVM) for sentiment classification of men’s shirt product reviews on Shopee. A dataset of 500 reviews was collected via web scraping and processed through case folding, tokenizing, stopword removal, and stemming, followed by TF-IDF feature extraction. The data was split at an 80:20 ratio and evaluated using accuracy, precision, recall, and F1-score. The main contribution of this study is demonstrating that despite both algorithms achieving equal overall accuracy of 93%, SVM outperforms Naive Bayes in detecting negative sentiment on a class-imbalanced dataset, with SVM attaining a negative class recall of 0.87 and F1-score of 0.88 compared to 0.80 and 0.87 for Naive Bayes. These findings provide practical guidance for selecting an appropriate classifier in imbalanced e-commerce review classification tasks.

Copyrights © 2026






Journal Info

Abbrev

ijics

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering

Description

The The IJICS (International Journal of Informatics and Computer Science) covers the whole spectrum of intelligent informatics, which includes, but is not limited to : • Artificial Immune Systems, Ant Colonies, and Swarm Intelligence • Autonomous Agents and Multi-Agent Systems • Bayesian ...