Perbandingan K-Nearest Neighbor, Naïve Bayes, dan Support Vector Machine pada Analisis Sentimen Ulasan Aplikasi Photomath
DOI:
https://doi.org/10.22441/fifo.2026.v18i1.005Keywords:
Analisis Sentimen, K-Nearest Neighbor, Naïve Bayes, Support Vector Machine, PhotomathAbstract
Penggunaan aplikasi pembelajaran matematika seperti Photomath terus meningkat, namun kajian terkait sentimen pengguna, khususnya dalam bahasa Indonesia, masih terbatas. Penelitian ini bertujuan untuk mengklasifikasikan sentimen ulasan pengguna serta membandingkan kinerja algoritma Naïve Bayes, K-Nearest Neighbor (KNN), dan Support Vector Machine (SVM). Tahapan penelitian diawali dengan prapemrosesan teks, Setelah itu, data diproses melalui ekstraksi fitur menggunakan metode Term Frequency–Inverse Document Frequency (TF-IDF). Dataset yang digunakan terdiri dari 42.672 ulasan pengguna Photomath yang diperoleh melalui teknik web scraping dari Google Play Store dan diseleksi menggunakan purposive sampling. Data kemudian diberi label sentimen, yaitu positif, netral, dan negatif berdasarkan nilai rating. Berdasarkan penelitian, KNN mencatat akurasi 86,61%. Namun, kinerjanya pada kelas netral dan negatif masih belum optimal karena data yang tidak seimbang. Meskipun SMOTE dapat meningkatkan recall, akurasi justru menurun. Sebaliknya, SVM terbukti sebagai algoritma terbaik dengan akurasi 88,94% dan F1-score makro tertinggi. Temuan ini menegaskan bahwa pemilihan algoritma dan strategi data tidak seimbang sangat berpengaruh terhadap performa klasifikasi sentimen.
Downloads
References
G. P. Store, “Photomath – Aplikasi Pembelajaran Matematika.” Accessed: Mar. 30, 2026. [Online]. Available: https://play.google.com/
D. A. Varissa Azis and Y. Sibaroni, “Optimizing Word2Vec Dimensions for Sentiment Analysis of Photomath Reviews using Random Forest and SVM,” Build. Informatics, Technol. Sci., vol. 6, no. 4, pp. 2248–2260, 2025, doi: 10.47065/bits.v6i4.6616.
A. Adiansyah and Wahyudin, “Analisis Sentimen Pada Ulasan Aplikasi Home Credit dengan Metode SVM dan KNN,” J. Komput. Antart., vol. 1, no. 4, pp. 174–181, 2023, doi: 10.70052/jka.v1i4.50.
M. N. Muttaqin and I. Kharisudin, “Analisis Sentimen Aplikasi Gojek Menggunakan Support Vector Machine dan K Nearest Neighbor,” UNNES J. Math., vol. 10, no. 2, pp. 22–27, 2021, doi: 10.15294/ujm.v10i2.48474.
W. S. J. Rahanra and Kusrini, “Analisa Penggunaan Aplikasi Checkmath Menggunakan Algoritma K-Nearest Neighbor,” Djtechno J. Teknol. Inf., vol. 6, no. 1, pp. 114–124, 2025, doi: 10.46576/djtechno.
M. Saifurridho, Martanto, and U. Hayati, “Analisis Algoritma K-Nearest Neighbor Terhadap Sentimen Pengguna Aplikasi Shopee,” J. Inform. Terpadu, vol. 10, no. 1, pp. 21–26, 2024, doi: 10.54914/jit.v10i1.1054.
I. W. D. P. Dewi and I. G. A. Handayani, “Peranan Aplikasi Photomath dalam Pembelajaran Matematika di Era Literasi Digital (Kajian Pustaka),” Suluh Pendidik., vol. 20, no. 1, pp. 94–101, 2022, doi: 10.46444/suluh-pendidikan.v20i1.411.
A. Saepudin, R. Aryanti, E. Fitriani, and Dahlia, “Optimasi Algoritma SVM Dan k-NN Berbasis Particle Swarm Optimization Pada Analisis Sentimen Fenomena Tagar #2019GantiPresiden,” J. Tek. Komput. AMIK BSI, vol. VI, no. 1, pp. 95–102, 2020, doi: 10.31294/jtk.v4i2.
F. Sodik, B. Dwi, and I. Kharisudin, “Perbandingan Metode Klasifikasi Supervised Learning pada Data Bank Customers Menggunakan Python,” in PRISMA, Prosiding Seminar Nasional Matematika, 2020, pp. 689–694. [Online]. Available: https://journal.unnes.ac.id/sju/index.php/prisma/ ISSN 2613-9189%0A
D. Musfiroh, U. Khaira, P. Eko, P. Utomo, and T. Suratno, “Sentiment Analysis of Online Lectures in Indonesia from Twitter Dataset Using InSet Lexicon,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 1, no. April, pp. 24–33, 2021, doi: 10.57152/malcom.v1i1.20.
A. F. Aufar, M. A. Rosid, A. Eviyanti, and I. R. I. Astutik, “Optimizing Text Preprocessing fors Accurate Sentiment Analysis on E-Wallet Reviews,” J. Inf. Comput. Technol. Educ., vol. 7, no. 2, pp. 42–50, 2023, doi: 10.21070/jicte.v7i2.1650.
N. A. C.A, R. Novita, Mustakima, and N. E. Rozanda, “The Implementation of TF-IDF and Word2Vec on Booster Vaccine Sentiment Analysis Using Support Vector Machine Algorithm,” Procedia Comput. Sci., vol. 234, pp. 156–163, 2024, doi: 10.1016/j.procs.2024.02.162.
I. T. Julianto, D. Kurniadi, and B. B. B. Jr, “Enhancing Sentiment Analysis With Chatbots: A Comparative Study of Text Pre-Processing,” J. Tek. Inform., vol. 4, no. 6, pp. 1419–1430, 2023, doi: 10.52436/1.jutif.2023.4.6.1448.
V. Rahmaliyadi and M. M. Maridjan, “Sentiment Analysis of Indonesian-Language Plantix Application Reviews for Plant Disease Diagnosis Using Naive Bayes Methods,” J. Intell. Syst. Technol. Informatics, vol. 1, no. 2, pp. 62–66, 2025, doi: 10.64878/jistics.v1i2.12.
J. J. A. Limbong, I. Sembiring, and K. D. Hartomo, “Analisis Klasifikasi Sentimen Ulasan Pada E-Commerce Shopee Berbasis Word Cloud Dengan Metode Naive Bayes dan K-Nearest,” J. Teknol. Inf. dan Ilmu Komput., vol. 9, no. 2, pp. 347–356, 2022, doi: 10.25126/jtiik.202294960.
A. A. Solihin et al., “Evaluasi Pengaruh Varian Daftar Stopword terhadap Kinerja Klasifikasi Teks Al- Qur ’ an dengan Support Vector Machine dan Backpropagation Neural Network,” J. Pendidik. dan Teknol. Indones., vol. 5, no. 7, pp. 1867–1880, 2025, doi: 10.52436/1.jpti.875.
Y. Karuniawati, E. Utami, and A. Yaqin, “A Systematic Literature Review of Stemming in Non-Formal Indonesian Language,” Int. J. Innov. Sci. Res. Technol., vol. 8, no. 1, pp. 62–69, 2023, doi: 10.5281/zenodo.7547482.
K. H. Manguri and R. N. Ramadhan, “Twitter Sentiment Analysis on Worldwide COVID-19 Outbreaks,” Kurdistan J. Appl. Res., vol. 5, no. 3, pp. 54–63, 2020, doi: 10.24017/covid.8.
F. Amandasari and Damayanti, “Perbandingan Kinerja Support Vector Machine dan Naive Bayes dalam Klasifikasi Sentimen Twitter Terhadap Pelayanan BPJS,” J. Pendidik. dan Teknol. Indones., vol. 5, no. 3, pp. 645–653, 2025, doi: 10.52436/1.jpti.680.
M. Rizki, A. Hermawan, and D. Avianto, “Optimization of Hyperparameter K in K-Nearest Neighbor Using Particle Swarm Optimization,” JUITA J. Inform., vol. 12, no. 1, pp. 71–79, 2024, doi: 10.30595/juita.v12i1.20688.
A. A. Amer, S. D. Ravana, R. Ahamed, and A. Habeeb, “Effective k ‑ nearest neighbor models for data classification enhancement,” J. Big Data, 2025, doi: 10.1186/s40537-025-01137-2.
T. F. Abdillah, Hasmawati, and Bunyamin, “Comparison of TF-IDF and GloVe Word Embedding for Sentiment Analysis of 2024 Presidential Candidates,” Build. Informatics, Technol. Sci., vol. 6, no. 2, pp. 961–969, 2024, doi: 10.47065/bits.v6i2.5668.
T. Abdillah, U. Khaira, and B. F. Hutabarat, “Komparasi Metode Naive Bayes dan K-Nearest Neighbors Terhadap Analisis Sentimen Pengguna Aplikasi Zenius,” Process. J. Ilm. Sist. Informasi, Teknol. Inf. dan Sist. Komput., vol. 19, no. 1, pp. 32–44, 2024, doi: 10.33998/processor.2024.19.1.1596.
J. Pardede and D. P. Pamungkas, “The Impact of Balanced Data Techniques on Classification Model Performance,” Sci. J. Informatics, vol. 11, no. 2, pp. 401–412, 2024, doi: 10.15294/sji.v11i2.3649.
A. Fajar, A. Fauzi, and A. Faqih, “Optimization of the K-Nearest Neighbors ( KNN ) Algorithm in Imbalanced Dataset Classification Using the SMOTE Technique,” J. Artif. Intell. Eng. Appl., vol. 4, no. 2, 2025, doi: 10.59934/jaiea.v4i2.756.
K. Novianto, H. Herlawati, and A. Hidayat, “Klasifikasi Sentimen iPhone Bekas di Tokopedia menggunakan Naïve Bayes dan Support Vector Machine,” J. Ilm. FIFO, vol. 17, no. 2, pp. 212–224, 2025, doi: 10.22441/fifo.2025.v17i2.010.
Z. Yang, “Recent Deep Learning Techniques on Short Text Classification Recent Deep Learning Techniques on Short Text Classification,” in EITCE ’22: Proceedings of the 2022 6th International Conference on Electronic Information Technology and Computer Engineering, 2026. doi: 10.1145/3573428.3573468.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Ilmiah FIFO

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The copyright to this article is transferred to Universitas Mercu Buana (UMB) if and when the article is accepted for publication. The undersigned hereby transfers any and all rights in and to the paper including without limitation all copyrights to UMB. The undersigned hereby represents and warrants that the paper is original and that he/she is the author of the paper, except for material that is clearly identified as to its original source, with permission notices from the copyright owners where required. The undersigned represents that he/she has the power and authority to make and execute this assignment.
We declare that this paper has not been published in the same form elsewhere.
Furthermore, I/We hereby transfer the unlimited rights of publication of the above-mentioned paper as a whole to UMB. The copyright transfer covers the right to reproduce and distribute the article, including reprints, translations, photographic reproductions, microform, electronic form (offline, online) or any other reproductions of similar nature.
The corresponding author signs for and accepts responsibility for releasing this material on behalf of any and all co-authors. This agreement is to be signed by at least one of the authors who have obtained the assent of the co-author(s) where applicable. After submission of this agreement signed by the corresponding author, changes of authorship or in the order of the authors listed will not be accepted.
Retained Rights/Terms and Conditions
Although authors are permitted to re-use all or portions of the Work in other works, this does not include granting third-party requests for reprinting, republishing, or other types of re-use.
Our Articles are licensed under CC BY-NC

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.









