The Sentiment Analysis of Public Comments on “Program Makan Siang Gratis” Using KNN (K-Nearest Neighbor) and SMOTE Algorithm
DOI:
https://doi.org/10.25124/cepat.v3i02.7734Keywords:
SENTIMENT, KNN, SMOTEAbstract
This research analyzes public sentiment on “Program Makan Siang Gratis” using the KNN algorithm, enhanced with the SMOTE technique, to provide insights and recommendations for policymakers aiming to achieve “Indonesia Emas 2045”. The study employs Google Colab and Python for testing. KNN is used for sentiment analysis and classification, with SMOTE addressing data imbalance. Results from two scenarios without SMOTE and with SMOTE show that performance is more optimal without SMOTE, as SMOTE decreases performance by 34%. The k4 parameter yields the best results: 76% accuracy, 57% precision, 77% recall, and 65% F1-Score. Analysis of comments from the “tempodotco” YouTube channel reveals that public sentiment towards the program proposed by President Prabowo Subianto and Vice President Gibran Rakabuming Raka is predominantly negative
Downloads
References
A. Pamuji, “Performance of the K-Nearest Neighbors Method on Analysis of Social Media Sentiment,” Juisi, vol. 07, no. 01, 2021.
W. Xing and Y. Bei, “Medical Health Big Data Classification Based on KNN Classification Algorithm,” IEEE Access, vol. 8, 2020, doi: 10.1109/ACCESS.2019.2955754.
N. F. Munazhif, G. J. Yanris, and M. N. S. Hasibuan, “Implementation of the K-Nearest Neighbor (kNN) Method to Determine Outstanding Student Classes,” SinkrOn, vol. 8, no. 2, 2023, doi: 10.33395/sinkron.v8i2.12227.
A. M. Sowjanya and O. Mrudula, “Effective treatment of imbalanced datasets in health care using modified SMOTE coupled with stacked deep learning algorithms,” Applied Nanoscience (Switzerland), vol. 13, no. 3, 2023, doi: 10.1007/s13204-021-02063-4.
R. D. Permatasari, W. Rizki, and N. N. Debataraja, “PENERAPAN SYNTHETIC MINORITY OVERSAMPLING TECHNIQUE DALAM MENGATASI DATA TIDAK SEIMBANG PADA METODE CLASSIFICATION AND REGRESSION TREE,” 2020.
W. Nugraha, D. Risdiansyah, D. Purwaningtias, T. Hidayatulloh, and S. Suhada, “Kombinasi Tomek-Link Dan Smote Untuk Mengatasi Ketidakseimbangan Kelas Pada Credit Card Fraud,” Jurnal Larik: Ladang Artikel Ilmu Komputer, vol. 2, no. 2, 2022, doi: 10.31294/larik.v2i2.1789.
B. Gunawan, H. Sasty, P. #2, E. Esyudha, and P. #3, “JEPIN (Jurnal Edukasi dan Penelitian Informatika) Sistem Analisis Sentimen pada Ulasan Produk Menggunakan Metode Naive Bayes,” vol. 4, no. 2, pp. 17–29, 2018, [Online]. Available: www.femaledaily.com
F. Amin, “Sistem Temu Kembali Informasi dengan Metode Vector Space Model,” Jurnal Sistem Informasi Bisnis. p. 2, 2012.
R. Siringoringo, “Klasifikasi Data Tidak Seimbang Menggunakan Algoritma SMOTE Dan K-Nearest Neighbor,” Journal Information System Development (ISD), vol. 3, no. 1, 2018.
K. Pramayasa, I. M. D. Maysanjaya, and I. G. A. A. D. Indradewi, “Analisis Sentimen Program Mbkm Pada Media Sosial Twitter Menggunakan KNN Dan SMOTE,” SINTECH (Science and Information Technology) Journal, vol. 6, no. 2, 2023, doi: 10.31598/sintechjournal.v6i2.1372.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Vincent Vincent, Vincentius Hansel Irsansaputra, Daniel Udjulawa
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
CEPAT has chosen to apply the Creative Commons Attribution NonCommercial 4.0 License (CC BY-NC 4.0) to all manuscripts to be published. Authors who publish with this journal agree to the following terms.
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.