Analisis Sentimen Konsumen pada Rumah Makan di Mataram Menggunakan Algoritma K-Nearest Neighbor, Naïve Bayes, dan Support Vector Machine
Original Full-Text Article
Download published version for reading and archivingAbstract
Consumer reviews on digital platforms can be used to identify customer perceptions of food quality, service, price, and restaurant comfort. This study used 1,006 reviews from 18 restaurants in Mataram City collected through web scraping from TripAdvisor. After data cleaning and selection, 780 reviews were used as the final dataset. The study aimed to analyze consumer review sentiment and compare the performance of K-Nearest Neighbor (K-NN), Naïve Bayes (NB), and Support Vector Machine (SVM) algorithms in classifying positive, negative, and neutral sentiments. A quantitative approach with a comparative experimental method was employed. The research stages included data collection, preprocessing, sentiment labeling based on lexicon and rating, feature extraction using Term Frequency-Inverse Document Frequency (TF-IDF), classification, and evaluation using a confusion matrix. Tests were conducted using 70:30, 80:20, and 90:10 data splits with accuracy, precision, recall, and F1-score as evaluation metrics. The results showed that SVM achieved the highest accuracy across all testing scenarios. The best performance was obtained with the 80:20 split, reaching 87.1% accuracy, 87.0% precision, 87.0% recall, and 86.0% F1-score.
Keywords:
Author Biographies
Program Studi Teknologi Informasi, Fakultas Teknik, Universitas Bumigora, Kota Mataram, Nusa Tenggara Barat, Indonesia.
Program Studi Teknologi Informasi, Fakultas Teknik, Universitas Bumigora, Kota Mataram, Nusa Tenggara Barat, Indonesia.
Program Studi Teknologi Informasi, Fakultas Teknik, Universitas Bumigora, Kota Mataram, Nusa Tenggara Barat, Indonesia.
How to Cite
This work is licensed under a Copyright (c) 2026 Ameylan Verina Tabun, Hairani Hairani, Dadang Priyanto .
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License .
- Share: You are free to copy, distribute, and transmit the work in any medium or format.
- Adapt: You are free to remix, transform, and build upon the work for any purpose, even commercially.
- Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
References
Total: 16 References- Damaryana, L. (2025). Analisis sentimen komentar YouTube terhadap program Makan Bergizi Gratis menggunakan algoritma Support Vector Machine dan K-Nearest Neighbor [Doctoral dissertation, Universitas Nasional].
- Firdaus, A. A., Saputro, J. S., Anwar, M., Adriyanto, F., Maghfiroh, H., Ma'arif, A., ... Hidayat, R. (2024). Application of sentiment analysis as an innovative approach to policy making: A review. Journal of Robotics and Control (JRC), 5(6), 1784–1798. https://doi.org/10.18196/jrc.v5i6.22573
- Ichsansyah, R. F. P., & Subektiningsih, S. (2026). Perbandingan algoritma Naïve Bayes dan Random Forest dalam klasifikasi sentimen ulasan pengguna Kredivo di Play Store. Jurnal Teknologi Informasi Dan Ilmu Komputer, 13(2), 297–308.
- Muliawan, J., & Dazki, E. (2023). Sentiment analysis of Indonesia’s capital city relocation using three algorithms: Naïve Bayes, KNN, and Random Forest. Jurnal Teknik Informatika (JUTIF), 4(5), 1227–1236. https://doi.org/10.52436/1.jutif.2023.4.5.1436
- Nabila, J., Putra, I. A. D. B., & Wijayanto, H. (2025). Sentiment analysis on Starbucks reviews: Implementation of K-Nearest Neighbors and Support Vector Machine. Infact: International Journal of Computers, 9(02), 79–86. https://doi.org/10.61179/infact.v9i02.761