Perbandingan Analisis Sentimen Pengguna Aplikasi Shopee dan Lazada pada Situs Google Play Store Menggunakan Algoritma K-Nearst Neighbor dan Naive Bayes

This study aims to compare the performance of the Naive Bayes and K-Nearest Neighbor (KNN) algorithms in classifying user sentiment towards two popular e-commerce applications in Indonesia, namely Shopee and Lazada. The data used are 40,000 user reviews collected equally from the Google Play Store, 20,000 reviews for each application. The pre-processing process is carried out through the stages of cleaning, case folding, tokenization, stopword removal, normalization, and stemming. Furthermore, weighting is carried out using the TF-IDF method, then classified using Naive Bayes and KNN with a cosine similarity approach. The evaluation results show that in the Shopee application, Naive Bayes produces an accuracy of 84.72% and an F1-score of 81.56%, while KNN produces an accuracy of 84.17% and an F1-score of 82.31%. On the Lazada application, Naive Bayes achieved an accuracy of 82.53% and an F1-score of 79.89%, while KNN obtained an accuracy of 75.04% and an F1-score of 73.20%. Thus, Naive Bayes proved to be superior in terms of classification accuracy and stability, especially on Lazada data. Meanwhile, KNN showed superiority in the balance of precision and recall on Shopee data. This study contributes to the selection of appropriate algorithms for text-based sentiment analysis in the context of e-commerce in Indonesia.

Authors

Institutions

Publication Details

Journal
INSOLOGI Jurnal Sains dan Teknologi
Published
2025-06-15
DOI
https://doi.org/10.55123/insologi.v4i3.5646
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

Perbandingan Analisis Sentimen Pengguna Aplikasi Shopee dan Lazada pada Situs Google Play Store Menggunakan Algoritma K-Nearst Neighbor dan Naive Bayes

Trisnaeni Faradaningsih, Anisa Lutfiyani
INSOLOGI Jurnal Sains dan Teknologi
Data Mining and Machine Learning Applications
article

Perbandingan Analisis Sentimen Pengguna Aplikasi Shopee dan Lazada pada Situs Google Play Store Menggunakan Algoritma K-Nearst Neighbor dan Naive Bayes

Trisnaeni Faradaningsih, Anisa Lutfiyani
article en

Abstract

This study aims to compare the performance of the Naive Bayes and K-Nearest Neighbor (KNN) algorithms in classifying user sentiment towards two popular e-commerce applications in Indonesia, namely Shopee and Lazada. The data used are 40,000 user reviews collected equally from the Google Play Store, 20,000 reviews for each application. The pre-processing process is carried out through the stages of cleaning, case folding, tokenization, stopword removal, normalization, and stemming. Furthermore, weighting is carried out using the TF-IDF method, then classified using Naive Bayes and KNN with a cosine similarity approach. The evaluation results show that in the Shopee application, Naive Bayes produces an accuracy of 84.72% and an F1-score of 81.56%, while KNN produces an accuracy of 84.17% and an F1-score of 82.31%. On the Lazada application, Naive Bayes achieved an accuracy of 82.53% and an F1-score of 79.89%, while KNN obtained an accuracy of 75.04% and an F1-score of 73.20%. Thus, Naive Bayes proved to be superior in terms of classification accuracy and stability, especially on Lazada data. Meanwhile, KNN showed superiority in the balance of precision and recall on Shopee data. This study contributes to the selection of appropriate algorithms for text-based sentiment analysis in the context of e-commerce in Indonesia.

INSOLOGI Jurnal Sains dan TeknologiVol. 4(3)
Universitas Nahdlatul Ulama Indonesia (ID)
Openalex Percentile: Top 68%
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.