JOURNAL ARTICLE

Improving Sentiment Analysis Performance of Tokopedia Reviews Using Principal Component Analysis and Naïve Bayes Algorithm

A A LestariAhmad FaqihGifthera Dwilestari

Year: 2025 Journal:   Journal of Artificial Intelligence and Engineering Applications (JAIEA) Vol: 4 (2)Pages: 758-763

Abstract

Tokopedia one of Indonesia's largest e-commerce platforms, offers a wide range of products with diverse customer reviews. These reviews reflect consumer opinions and provide valuable insights for service improvement and marketing strategies. Sentiment analysis is crucial for understanding customer perceptions, but processing large-scale, high-dimensional text data remains a challenge, impacting model efficiency and accuracy. This research uses Principal Component Analysis (PCA) to reduce data dimensionality without losing important information for sentiment classification. The study begins by collecting Tokopedia product reviews and preprocessing the text, including data cleaning, tokenization, stopword removal, and stemming. The reviews are then converted into numerical vectors using the Term Frequency-Inverse Document Frequency (TF-IDF) method. A Gaussian Naïve Bayes model is employed to classify sentiment into three categories: positive, neutral, and negative. The results demonstrate that PCA significantly improves model accuracy from 63.13% to 70.47%, with gains in precision (71.85%), recall (70.47%), and F1-score (71.06%). This research contributes to enhancing sentiment analysis techniques using PCA for Tokopedia reviews and offers a valuable approach that can be applied to other e-commerce platforms.

Keywords:
Principal component analysis Naive Bayes classifier Bayes' theorem Computer science Algorithm Artificial intelligence Pattern recognition (psychology) Bayesian probability

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.01
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
© 2026 ScienceGate Book Chapters — All rights reserved.