Prosiding Seminar Nasional Ilmu Teknik
Vol. 2 No. 2 (2025): Desember: Prosiding Seminar Nasional Ilmu Teknik

Penerapan NLP Menggunakan Algoritma Naive Bayes, C4.5, XGBoost untuk Analisis Sentimen Ulasan Produk Kecantikan di Tokopedia dan Shopee




Article Info

Publish Date
30 Dec 2025

Abstract

The growth of e-commerce in Indonesia has led to an increase in product reviews, including for beauty products on Tokopedia and Shopee. These reviews serve as important sources of information to assess consumer satisfaction; however, manually analyzing thousands of reviews daily is impractical. This study applies Natural Language Processing (NLP) with Naive Bayes, C4.5, XGBoost algorithms to classify sentiment in Indonesian-language reviews. The dataset used consists of 76,256 reviews labeled as positive, negative, and neutral. The research stages include text preprocessing, feature representation using BoW and TF-IDF, data balancing through SMOTE, and model performance evaluation based on accuracy, precision, and recall. Differences in results among the algorithms were analyzed using ANOVA. The results show that Naive Bayes achieved the highest accuracy at 67.71%, followed by XGBoost at 65.91%, and C4.5 at 58.39%, with Naive Bayes performing best in identifying positive and negative sentiments, while XGBoost and C4.5 handled more complex data patterns effectively. These findings provide guidance for sentiment analysis in Indonesian and support businesses in obtaining automated insights from customer reviews to improve product quality and services.

Copyrights © 2025






Journal Info

Abbrev

PROSEMNASPROIT

Publisher

Subject

Civil Engineering, Building, Construction & Architecture Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Prosiding Seminar Nasional Ilmu Teknik, Its a collection of papers or scientific articles that have been presented at the National Research Conference which is held regularly every two years by the Asosiasi Riset Ilmu Teknik Indonesia. The paper topics published in the Prosiding Seminar Nasional ...