Algoritma K Means dan TF-IDF untuk Pengelompokkan Opini Publik terhadap Program Makan Bergizi Gratis pada Komentar TikTok
DOI:
https://doi.org/10.37859/jf.v16i2.11846
Abstract
In Indonesia, 14% of children suffer from stunting due to malnutrition. To address this issue, the government launched the Free Nutritious Meal (MBG) Program, which has generated diverse public opinions on social media, particularly TikTok. This study aims to cluster public opinions regarding the MBG program using the K-Means Clustering algorithm combined with Term Frequency–Inverse Document Frequency (TF-IDF) without requiring manual labeling. A total of 57,362 comments were collected, of which 53,204 valid comments remained after preprocessing. Truncated Singular Value Decomposition (SVD) was applied for dimensionality reduction, while the optimal number of clusters (K = 5) was determined using the Elbow Method and Silhouette Score. The clustering results identified five main discussion themes: general program discussion (28.4%), child nutrition and school access (7.9%), spontaneous reactive responses (45.2%), criticism and rejection of the program (15.0%), and support for public figures (3.6%). The model achieved a Silhouette Score of 0.0385 and a Davies–Bouldin Index of 4.9507, reflecting the characteristics of short and informal social media text. The findings demonstrate that the unsupervised clustering approach effectively maps public opinion into meaningful thematic groups and provides valuable insights for the National Nutrition Agency to improve menu quality, budget transparency, and distribution standards of the MBG program.
Downloads
References
A. Kiftiyah, F. Ayu Palestina, F. Ulul Abshar, K. Rofiah, and M. Bergizi Gratis, “Program Makan Bergizi Gratis (MBG) dalam Perspektif Keadilan Sosial dan Dinamika Sosial – Politik,” Pancasila: Jurnal Keindonesiaan, vol. 5, no. 1, pp. 101–112, Apr. 2025, doi: 10.52738/PJK.V5I1.726.
J. I. Psikologi et al., “Implementasi Kebijakan Program Makan Bergizi Gratis Dalam Meningkatkan Kesejahteraan Masyarakat Miskin,” Jurnal Ilmu Psikologi dan Kesehatan | E-ISSN : 3063-1467, vol. 3, no. 1, pp. 778–781, May 2026, doi: 10.62379/JIPK.V3I1.1910.
A. Azzahra, S. Marmoah, I. / Lembaga Penulis, and P. S. Subang, “ANALISIS PERMASALAHAN MAKAN BERGIZI GRATIS PADA SEKOLAH DASAR DI INDONESIA,” Didaktik : Jurnal Ilmiah PGSD STKIP Subang, vol. 11, no. 04, pp. 242–255, 2026, doi: 10.36989/DIDAKTIK.V11I04.8960.
A. A. Saputri and D. M. Utari, “EFEKTIVITAS PROGRAM MAKAN BERGIZI GRATIS (MBG) TERHADAP STATUS GIZI, KESIAPAN BELAJAR, DAN LUARAN PENDIDIKAN PESERTA DIDIK: TINJAUAN SISTEMATIS,” JKM (Jurnal Kesehatan Masyarakat) Cendekia Utama, vol. 14, no. 1, pp. 35–48, May 2026, Accessed: Jul. 17, 2026. [Online]. Available: https://jurnal.stikescendekiautamakudus.ac.id/index.php/JKM/article/view/3045
A. Sophian, “Integrasi MBG dengan Program Edukasi Gizi untuk Perubahan Perilaku Sehat”, doi: 10.5281/ZENODO.17140209.
J. Manajemen et al., “Implementasi Kebijakan Program Makan Bergizi Gratis sebagai Pendorong dan Pembangunan Ekonomi Lokal,” Jurnal Manajemen, Bisnis dan Kewirausahaan, vol. 6, no. 1, pp. 95–112, Jan. 2026, doi: 10.55606/JUMBIKU.V6I1.6403.
K. Pemerintah et al., “Komunikasi Pemerintah Dan Fragmentasi Opini Publik Di Media Sosial: Kasus Program Makan Bergizi Gratis,” Khazanah Multidisiplin, vol. 7, no. 1, pp. 14–34, Mar. 2026, doi: 10.15575/KL.V7I1.54253.
K. H. Prastiawan and D. Yuniarto, “Analisis Sentimen Publik terhadap Program Makan Bergizi Gratis dengan Algoritma Naive Bayes,” RIGGS: Journal of Artificial Intelligence and Digital Business, vol. 4, no. 4, pp. 5412–5419, Dec. 2025, doi: 10.31004/riggs.v4i4.3652.
S. V. Mahardhika, I. Nurjannah, I. I. Ma’una, and Z. Islamiyah, “Faktor-Faktor Penyebab Tingginya Minat Generasi Post-Millenial Di Indonesia Terhadap Penggunaan Aplikasi Tik-Tok,” SOSEARCH : Social Science Educational Research, vol. 2, no. 1, pp. 40–53, Dec. 2021, doi: 10.26740/SOSEARCH.V2N1.P40-53.
A. Maretha, A. Khairin Pebrianti Nur, R. Dwi Harry Saputra, S. Tinggi Ilmu Ekonomi Balikpapan, and K. Timur, “Analisis Penggunaan Tiktok Terhadap Perubahan Perilaku Komunikasi Generasi Z,” Indo-MathEdu Intellectuals Journal, vol. 6, no. 8, pp. 12053–12064, Dec. 2025, doi: 10.54373/IMEIJ.V6I8.4673.
N. Fadillah and M. Syukur, “Pemanfaatan TikTok dalam Meningkatkan Literasi Sosial pada Remaja di Desa Jauh Pandang Kecamatan Pitumpanua Kabupaten Wajo,” Pinisi Journal of Sociology Education Review, vol. 5, no. 3, pp. 389–396, Nov. 2025, Accessed: Aug. 11, 2026. [Online]. Available: http://ojs.unm.ac.id/jser/article/view/75159
R. C. Rizanul, D. Egistin, S. Sofiana, A. Jasmine, and D. Juniarto, “Analisis Peran Media Sosial (TikTok) dalam Dinamika Partisipasi Politik pada Pemilu Presiden 2024,” Journal of Social Contemplativa, vol. 3, no. 1, pp. 51–61, Feb. 2025, doi: 10.61183/JSC.V3I1.91.
K. Pemerintah et al., “Komunikasi Pemerintah Dan Fragmentasi Opini Publik Di Media Sosial: Kasus Program Makan Bergizi Gratis,” Khazanah Multidisiplin, vol. 7, no. 1, pp. 14–34, Mar. 2026, doi: 10.15575/KL.V7I1.54253.
M. Fazri and A. Voutama, “Analisis Sentimen Publik Terhadap Danantara Di Media Sosial X Menggunakan Nlp Dan Pembelajaran Mesin,” JOISIE (Journal Of Information Systems And Informatics Engineering), vol. 9, no. 1, pp. 197–206, Jul. 2025, doi: 10.35145/JOISIE.V9I1.4924.
F. Haerani, “Analisis Sentimen Program Makan Bergizi Gratis Berdasarkan Komentar Di Media Sosial X Menggunakan Gru,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 14, no. 1, pp. 2830–7062, Jan. 2026, doi: 10.23960/JITET.V14I1.8754.
M. Haikal and A. Erfina, “Analisis Sentimen Warganet terhadap Program Makan Bergizi Gratis (MBG) Menggunakan Model IndoBERT,” Jurnal Locus Penelitian dan Pengabdian, vol. 5, no. 3, pp. 1626–1636, Mar. 2026, doi: 10.58344/LOCUS.V5I3.5253.
M. Bergizi Gratis dengan Algoritma Naive Bayes, K. Hapidz Prastiawan, and D. Yuniarto, “Analisis Sentimen Publik terhadap Program Makan Bergizi Gratis dengan Algoritma Naive Bayes,” RIGGS: Journal of Artificial Intelligence and Digital Business, vol. 4, no. 4, pp. 5412–5419, Dec. 2025, doi: 10.31004/riggs.v4i4.3652.
I. Najiyah and M. Rizal, “Analisis Sentimen Media Sosial X Terhadap Kebijakan Presiden Republik Indonesia Prabowo Subianto,” JURNAL FASILKOM, vol. 15, no. 3, pp. 443–455, Dec. 2025, doi: 10.37859/JF.V15I3.10385.
Z. Akbar, Z. Akbar, I. Riadi, and R. Umar, “Analisis Sentimen Program Makan Bergizi Gratis Menggunakan Lexicon-Based dan Support Vector Machine,” JURNAL FASILKOM, vol. 16, no. 1, pp. 150–156, Apr. 2026, doi: 10.37859/JF.V16I1.10948.
S. Mutrofin, T. Wicaksono, and A. Murtadho, “Perbandingan Kinerja Algoritma Kmeans dengan Kmeans Median pada Deteksi Kanker Payudara,” Jurnal Informasi dan Teknologi, pp. 88–91, Feb. 2023, doi: 10.37034/JIDT.V5I1.274.
M. Norshahlan, H. Jaya, and R. Kustini, “Penerapan Metode Clustering Dengan Algoritma K-means Pada Pengelompokan Data Calon Siswa Baru,” Jurnal Sistem Informasi Triguna Dharma (JURSI TGD), vol. 2, no. 6, pp. 1042–1053, Nov. 2023, doi: 10.53513/JURSI.V2I6.9148.
A. A. Riyanto, D. Daryanto, and G. Abdurrahman, “Text Mining Untuk Clustering Buku Di Perpustakaan Menggunakan Metode K-Means,” National Multidisciplinary Sciences , vol. 1, no. 6, pp. 835–845, Nov. 2022, doi: 10.32528/NMS.V1I6.239.
M. Darwis, G. T. Pranoto, Y. E. Wicaksana, and Y. Yaddarabullah, “Implementation of TF-IDF Algorithm and K-mean Clustering Method to Predict Words or Topics on Twitter,” JISA(Jurnal Informatika dan Sains), vol. 3, no. 2, pp. 49–55, Dec. 2020, doi: 10.31326/JISA.V3I2.831.
M. Darwis, G. T. Pranoto, Y. E. Wicaksana, and Y. Yaddarabullah, “Implementation of TF-IDF Algorithm and K-mean Clustering Method to Predict Words or Topics on Twitter,” JISA(Jurnal Informatika dan Sains), vol. 3, no. 2, pp. 49–55, Dec. 2020, doi: 10.31326/JISA.V3I2.831.
D. Remawati, H. Wijayanto, Y. Retno, W. Utami, and B. D. Raharja, “Pengelompokkan Film Trending di Youtube Menggunakan TF-IDF dan K-Means Clastering,” Jurnal Sistem Informasi Triguna Dharma (JURSI TGD), vol. 4, no. 1, pp. 65–74, Jan. 2025, doi: 10.53513/JURSI.V4I1.10614.
A. M. Ikotun, A. E. Ezugwu, L. Abualigah, B. Abuhaija, and J. Heming, “K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data,” Inf. Sci. (N. Y)., vol. 622, pp. 178–210, Apr. 2023, doi: 10.1016/J.INS.2022.11.139.
V. Agustina, A. Herliana, and E. P. Korespondensi, “Analisis Sentimen Publik atas Kebijakan Efisiensi Anggaran 2025 dengan Text Mining dan Natural Language Processing,” Jurnal Media Informatika, vol. 6, no. 3, pp. 2182–2194, Jul. 2025, doi: 10.55338/JUMIN.V6I3.6301.
W. N. I. Al-Obaydy, H. A. Hashim, Y. A. Najm, and A. A. Jalal, “Document classification using term frequency-inverse document frequency and K-means clustering,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 27, no. 3, pp. 1517–1524, 2022, doi: 10.11591/ijeecs.v27.i3.pp1517-1524.
M. Darwis, G. T. Pranoto, Y. E. Wicaksana, and Y. Yaddarabullah, “Implementation of TF-IDF Algorithm and K-mean Clustering Method to Predict Words or Topics on Twitter,” JISA(Jurnal Informatika dan Sains), vol. 3, no. 2, pp. 49–55, Dec. 2020, doi: 10.31326/JISA.V3I2.831.
N. Putu, E. Merliana, and A. J. Santoso, “Prosiding Seminar Nasional Multi Disiplin Ilmu & Call For Papers Unisbank (SENDI_U) Kajian Multi Disiplin Ilmu untuk Mewujudkan Poros Maritim dalam Pembangunan Ekonomi Berbasis Kesejahteraan Rakyat ANALISA PENENTUAN JUMLAH CLUSTER TERBAIK PADA METODE K-M…”.
P. K. Ritonga and M. S. Hasibuan, “Analisis Perbandingan Silhouette dengan Elbow pada Algoritma K-Means dan DBSCAN,” METIK Jurnal, vol. 9, no. 1, pp. 64–71, Jun. 2025, doi: 10.47002/METIK.V9I1.1027.
M. Darwis, G. T. Pranoto, Y. E. Wicaksana, and Y. Yaddarabullah, “Implementation of TF-IDF Algorithm and K-mean Clustering Method to Predict Words or Topics on Twitter,” JISA(Jurnal Informatika dan Sains), vol. 3, no. 2, pp. 49–55, Dec. 2020, doi: 10.31326/JISA.V3I2.831.
M. A. Nasution et al., “ALGORITMA K-MEANS DALAM PENGELOMPOKAN SURAT KELUAR DI KANTOR KEMENTERIAN AGAMA KOTA PEMATANG SIANTAR,” Jurnal Manajamen Informatika Jayakarta, vol. 4, no. 1, pp. 61–71, Feb. 2024, doi: 10.52362/JMIJAYAKARTA.V4I1.1304.
J. M. Guntur, R. Kurniawan, and U. Hayati, “Algoritma K-Means untuk Meningkatkan Silhouette Score pada Pengelompokan Data Stok Bahan Manufaktur di PT. XYZ Kabupaten Majalengka,” MULTINETICS , vol. 11, no. 1, pp. 11–21, May 2025, doi: 10.32722/MULTINETICS.V11I1.7259.
M. R. Syahkur, D. Hartama, and S. Solikhun, “Evaluasi Jumlah Cluster pada Algoritma K-Means++ Menggunakan Silhouette dan Elbow dengan Validasi Nilai DBI dalam Mengelompokkan Gizi Balita,” JST (Jurnal Sains dan Teknologi), vol. 13, no. 3, pp. 487–496, Oct. 2024, doi: 10.23887/JSTUNDIKSHA.V13I3.86419.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Devi Sugianti, Ari Putra, Anas Syaifudin; Rizqi Wijonarko

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Jurnal FASILKOM (teknologi inFormASi dan ILmu KOMputer) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is 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 the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her 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 the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.


