Perbandingan Analisis Sentimen Pengguna Aplikasi Shopee dan Lazada pada Situs Google Play Store Menggunakan Algoritma K-Nearst Neighbor dan Naive Bayes
DOI:
https://doi.org/10.55123/insologi.v4i3.5646Keywords:
Sentiment Analysis, Naive Bayes, K-Nearest Neighbor, Shopee, LazadaAbstract
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.
Downloads
References
Carina, F. M., Salma, A., Permana, D., & Martha, Z. (2024). Sentiment Analysis of X Application Users on the Conflict Between Israel and Palestine Using Support Vector Machine Algorithm Fadhillah. UNP JOURNAL OF STATISTICS AND DATA SCIENCE, 2, 204–212.
Firdaus, M. R., Rahaningsih, N., & Dana, R. D. (2024). Analisis Sentimen Aplikasi Shopee di Goole Play Store Menggunakan Klasifikasi Algoritma Naïve Bayes. Jurnal Informatika Dan Rekayasa Perangkat Lunak, 6(1).
Kusuma, I. H., & Cahyono, N. (2023). Analisis Sentimen Masyarakat Terhadap Penggunaan E-Commerce Menggunakan Algoritma K-Nearest Neighbor. Jurnal Informatika: Jurnal Pengembangan IT (JPIT), 8(3), 302–307.
Lazada Group. (2025). Lazada. https://group.lazada.com/en/about/?spm=a2o4j.homepage.footer_top.6.121653e0zm02Ed
Limbong, J. J. A., Sembiring, I., & Hartomo, K. D. (2022). Analisis Klasifikasi Sentimen Ulasan Pada E-Commerce Shopee Berbasis Word Cloud Dengan Metode Naive Bayes dan K-Nearest Neighbor. JTIIK, 9(2), 347–356. https://doi.org/10.25126/jtiik.202294960
Muslim, S. N. S., Nurdiyansyah, F., & Rahman, A. Y. (2024). Perbandingan Algoritma Naive Bayes dan KNN Dalam Analisis Sentimen Ulasan Pengguna Aplikasi Capcut. Jurnal Informatika Dan Teknik Elektro Terapan, 12(3S1). https://doi.org/10.23960/jitet.v12i3S1.5156
Nazar, R. (2024). Implementasi Pemrograman Python Menggunakan Google Colab. Jurnal Informatika Dan Komputer (JIK), 15(1), 50–56.
Paradisona, R., & Devega, M. (2024). Analisis Sentimen Terhadap Perbandingan Kepuasan Penggunaan Aplikasi Marketplace Menggunakan Metode Naïve Bayes Classifier Di Playstore. Prosiding-Seminar Nasional Teknologi Informasi & Ilmu Komputer (SEMASTER), 3(1), 54–66.
Putra, A., & Dwiki, A. (2021). Sentiment Analysis on User Reviews of the Bibit and Bareksa Application with the KNN Algorithm. JATISI (Jurnal Teknik Informatika Dan Sistem Informasi), 8(2), 636–646.
Rofiq, N., & Sitio, S. L. M. (2021). Pengenalan Dasar Analisis Data Dengan Python di Google Collab. 6.
Safira, A., & Hasan, F. N. (2023). Analisis Sentimen Masyarakat Terhadap Paylater Menggunakan Metode Naive Bayes Classifier. ZONAsi: Jurnal Sistem Informasi, 5(1), 59–70. https://doi.org/10.31849/zn.v5i1.12856
Sari, F. V., & Wibowo, A. (2019). Analisis Sentimen Pelanggan Toko OnlineE Jd.IdMenggunakn Metode Naive Bayes Classifier Berbasis Konversi Ikon Emosi. Jurnal SIMETRIS, 10(2), 681–686.
Sea, C. F. P. (2025). Shopee Careers. Shopee. https://careers.shopee.co.id/about
Wahyuni, N., Mutaqin, A. I. S., & Gunawan, A. (2019). Pengenalan Dan Pemanfaatan Marketplace E-Commerce Untuk Pelaku UKM Wilayah Cilegon. Jurnal Pengabdian Dinamika, 1(6), 31–39. https://jurnal.untirta.ac.id/index.php/Dinamika/article/viewFile/8758/5837
Winoto, D., Aditia, V. D., Sorisa, C., Priskila, R., & Pranatawijaya, V. H. (2024). Analisis Sentimen Pada Ulasan Pengguna Terhadap Aplikasi Pembelajaran Bahasa Duologi: Menggunakan Algoritma Naive Bayes dan K-Nearest Neighbor. In Jurnal Mahasiswa Teknik Informatika (Vol. 8, Issue 3).
Zaitsev, S. (2020). google-play-scraper. https://pypi.org/project/google-play-scraper/
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Trisnaeni Faradaningsih, Anisa Lutfiyani

This work is licensed under a Creative Commons Attribution 4.0 International License.
Hak cipta pada setiap artikel adalah milik penulis.
Penulis mengakui bahwa INSOLOGI (Jurnal Sains dan Teknologi) sebagai publisher yang mempublikasikan pertama kali dengan lisensi Creative Commons Attribution 4.0 International License.
Penulis dapat memasukan tulisan secara terpisah, mengatur distribusi non-ekskulif dari naskah yang telah terbit di jurnal ini kedalam versi yang lain, seperti: dikirim ke respository institusi penulis, publikasi kedalam buku, dan lain-lain. Dengan mengakui bahwa naskah telah terbit pertama kali pada INSOLOGI (Jurnal Sains dan Teknologi).
























