Sentiment Analysis of Indomaret Poinku Using Lexicon-Based Labeling with KNN and Random Forest Algorithms
DOI:
https://doi.org/10.51903/7y6tmz04Keywords:
Sentiment Analysis, Random Forest, K-Nearest Neighbors, Lexicon-Based, Text Mining, Indomaret PoinkuAbstract
The increasing use of mobile applications in the retail industry has generated a large volume of user reviews that contain valuable insights regarding customer experience and service quality. However, the unstructured nature of these reviews requires an automated approach to extract meaningful patterns efficiently. This study aims to perform sentiment analysis on user reviews of the Indomaret Poinku application by integrating lexicon-based labeling with machine learning classification. A total of 10,000 reviews were collected from Google Play Store and processed through a series of text preprocessing steps, including cleaning, case folding, normalization, tokenization, stopword removal, and stemming. Sentiment labeling was performed using the Indonesian Sentiment Lexicon (InSet), producing three sentiment classes: positive, negative, and neutral. The labeled data were vectorized using CountVectorizer and classified using two algorithms: K-Nearest Neighbors (KNN) and Random Forest (RF). Evaluation results show that Random Forest outperforms KNN, achieving an accuracy of 82.5%, compared to 69% for KNN. Random Forest demonstrates superior performance in handling high-dimensional sparse text features and yields more stable predictions across sentiment classes. This study contributes to the growing body of research on Indonesian sentiment analysis by demonstrating the effectiveness of combining lexicon-based labeling with ensemble learning methods, offering practical implications for developers seeking to improve the quality and user satisfaction of digital retail applications.
References
[1] A. A. Ashofi and M. Migunani, "The Impact of Data Security, Ease of Use, and Access Speed on User Trust in Mobile Banking Applications," Journal of Management and Informatics, vol. 2, no. 3, pp. 104–117, 2023, doi: 10.51903/jmi.v2i3.148.
[2] S. Petrova and K. Watanabe, "User-Centered Mobile Navigation: Evaluating Local Usability for Improved UX," Journal of Technology Informatics and Engineering, vol. 4, no. 3, pp. 478–492, 2025, doi: 10.51903/jtie.v4i3.457.
[3] A. A. U. Nuha, M. Migunani, M. U. Dewi, K. Rozikin, and A. A. Kuncoro, "Rapid Application Development of a Mobile Stock Management System," Jurnal Ilmiah Sistem Informasi, vol. 4, no. 3, pp. 708–723, 2025, doi: 10.51903/rzrga338.
[4] R. Setiawan, "Analisis Sistem Informasi Pelayanan Ritel Berbasis Mobile Apps untuk Meningkatkan Loyalitas Konsumen," Jurnal Penelitian Sistem Informasi, vol. 11, no. 2, pp. 45–56, 2023, doi: 10.31294/jpsi.v11i2.456.
[5] Handoko, "Analisis Sentimen Ulasan Penumpang Maskapai Penerbangan di Indonesia dengan Algoritma Random Forest dan KNN," ZONAsi: Jurnal Sistem Informasi, vol. 6, no. 2, pp. 287–297, 2024, doi: 10.31802/zonasi.v6i2.234.
[6] M. A. Fauzi, "Random Forest Approach for Sentiment Analysis in Indonesian Language," Indonesian Journal of Electrical Engineering and Computer Science, vol. 12, no. 1, pp. 46–53, 2018, doi: 10.11591/ijeecs.v12.i1.pp46-53.
[7] A. Syah, "Analisis Sentimen Aplikasi Shopee, Tokopedia, Lazada dan Blibli Menggunakan Leksikon dan Random Forest," Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 3S1, pp. 112–120, 2024, doi: 10.23960/jitet.v12i3s1.4512.
[8] A. P. Wibowo, "Komparasi Metode Naïve Bayes dan K-Nearest Neighbor Terhadap Analisis Sentimen Pengguna Aplikasi PeduliLindungi," IC-Tech, vol. 17, no. 1, pp. 18–23, 2022, doi: 10.37771/ic-tech.v17i1.789.
[9] B. Liu, Sentiment Analysis: Mining Opinions, Sentiments, and Emotions, 2nd ed. Cambridge, UK: Cambridge University Press, 2020, doi: 10.1017/9781108639286.
[10] K. L. Tan, "A Survey of Sentiment Analysis: Approaches, Datasets, and Future Research," Applied Sciences, vol. 13, no. 8, p. 4550, 2023, doi: 10.3390/app13084550.
[11] L. Si, "Federated Search," Foundations and Trends® in Information Retrieval, vol. 5, no. 1, pp. 1–102, 2011, doi: 10.1561/1500000010.
[12] T. Jo, Text Mining: Concepts and Applications. Cham, Switzerland: Springer, 2021, doi: 10.1007/978-3-030-80592-0.
[13] G. A. Buntoro, "Analisis Sentimen Calon Presiden Indonesia dengan Metode Naive Bayes Classifier dan Sentiment Lexicon," Jurnal Teknomatika, vol. 10, no. 1, pp. 1–10, 2017. [Online]. Available: ojs.amikom.ac.id/index.php/teknomatika/article/view/1642.
[14] M. R. Gilman, "Penerapan K-Fold Cross Validation dalam Pengujian Algoritma KNN dan Random Forest," Jurnal Informatika Mulawarman, vol. 17, no. 2, pp. 75–82, 2022, doi: 10.30872/jim.v17i2.8451.
[15] A. Wijaya, "Analisis Sentimen Terhadap Aplikasi Mitra Darat Menggunakan Algoritma Naive Bayes Classifier dan K-Nearest Neighbor," Informatik : Jurnal Ilmu Komputer, vol. 20, no. 3, pp. 112–117, 2024, doi: 10.36723/juri.v20i3.564.
[16] C. Very, "Optimasi Klasifikasi Sentimen Menggunakan Random Forest dengan Preprocessing K-Means Clustering dan SMOTE," JEPIN (Jurnal Edukasi dan Penelitian Informatika), vol. 9, no. 1, pp. 45–52, 2023, doi: 10.26418/jp.v9i1.54321.
[17] R. Pratama, "Perbandingan Algoritma Ensemble Learning pada Teks Bahasa Indonesia Pasca-Pandemi," Jurnal Tekno Kompak, vol. 15, no. 2, pp. 101–112, 2021, doi: 10.33365/jtk.v15i2.1204.
[18] S. G. Setyorini, "Application of The Nearest Neighbor Algorithm for Classification of Online Taxibike Sentiments In Indonesia In The Google Playstore Application," Journal of Physics: Conference Series, vol. 2049, no. 1, p. 012026, 2021, doi: 10.1088/1742-6596/2049/1/012026.
[19] S. Bird, E. Klein, and E. Loper, Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit. Sebastopol, CA, USA: O'Reilly Media, Inc., 2009. [Online]. Available: nltk.org/book_1ed.
[20] Fadlan, A. B. Santoso, and R. Maulana, "Implementasi Stemmer Sastrawi untuk Preprocessing Teks Bahasa Indonesia pada Ulasan Aplikasi," Jurnal Komtika, vol. 6, no. 1, pp. 12–20, 2022, doi: 10.31603/komtika.v6i1.6784.
[21] D. Andini and H. Hartono, "Pelabelan Otomatis Sentimen Berbasis Kamus InSet Lexicon pada Ulasan Marketplace," Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 3, no. 3, pp. 410–417, 2019, doi: 10.29207/resti.v3i3.1234.
[22] B. Pranata, "Integrasi Lexicon Approach dan Supervised Learning untuk Teks Tidak Terstruktur," Jurnal CoreIT, vol. 8, no. 1, pp. 19–27, 2022, doi: 10.24014/coreit.v8i1.1543.
[23] K. P. Harmandini, "Analysis of TF-IDF and TF-RF Feature Extraction on Product Review Sentiment," Sinkron, vol. 8, no. 2, pp. 929–37, 2024, doi: 10.33395/sinkron.v8i2.1982.
[24] I. G. S. Masdiyasa, "Evaluasi Ekstraksi Fitur Bag of Words dan TF-IDF dalam Klasifikasi Teks Kasus Review Kuliner," Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 10, no. 4, pp. 312–319, 2021, doi: 10.22146/jnteti.v10i4.175.
[25] W. Purba, "Performance Metrics Comparison in Supervised Machine Learning Algorithms," International Journal of Computer Science Issues, vol. 19, no. 3, pp. 45–53, 2022, doi: 10.5121/ijcsi.2022.19304.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Dini Sulaeni, Ade Irma Purnamasari, Irfan Ali, Rudi Kurniawan, Odi Nurdiawan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in this journal are open access and licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Under this license:
-
Authors retain copyright of their work.
-
Others are free to:
-
Share — copy and redistribute the material in any medium or format;
-
Adapt — remix, transform, and build upon the material for any purpose, even commercially;
-
-
As long as they:
-
Give appropriate credit to the original author(s) and the source;
-
Provide a link to the license;
-
Indicate if changes were made;
-
Distribute their contributions under the same license as the original.
-
This ensures that derivative works will also remain free and open under the same terms.













.png)