Public Sentiment Analysis of Free Nutritious Meal Program Discourse on Social Media X Using Support Vector Machine N-Gram Features Based
Main Article Content
Abstract
The Free Nutritious Meal Program is a government policy aimed at improving the nutritional quality of society and has generated diverse public responses on social media. This study aims to analyze public sentiment toward the Free Nutritious Meal Program on social media X using the Support Vector Machine (SVM) algorithm with N-Gram features and Term Frequency–Inverse Document Frequency (TF-IDF) weighting. The data were collected through a crawling process from social media X, resulting in 1,014 tweets. After data cleaning, 931 tweets were obtained and labeled into two sentiment classes, namely positive and negative. The research stages include text preprocessing, N-Gram feature extraction (unigram and bigram), classification using the SVM algorithm, and model evaluation using the 10-Fold Cross-Validation method with the assistance of the RapidMiner tool. The experimental results show that the SVM model achieved an accuracy of 79.59%. Although the precision value for the negative class is relatively high, the recall and F1-score remain relatively low due to the imbalance in data distribution. Overall, the results indicate that public sentiment toward the Free Nutritious Meal Program on social media X is dominated by positive sentiment. The findings of this study are expected to serve as an initial evaluation for the government in understanding public perceptions of the implementation of the program.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The Authors submitting a manuscript do so on the understanding that if accepted for publication, copyright of the article shall be assigned to journal Tech-E, Universitas Buddhi Dharma as publisher of the journal.
Copyright encompasses exclusive rights to reproduce and deliver the article in all form and media, including reprints, photographs, microfilms and any other similar reproductions, as well as translations. The reproduction of any part of this journal, its storage in databases and its transmission by any form or media, such as electronic, electrostatic and mechanical copies, photocopies, recordings, magnetic media, etc. , will be allowed only with a written permission from journal Tech-E.
journal Tech-E, the Editors and the Advisory Editorial Board make every effort to ensure that no wrong or misleading data, opinions or statements be published in the journal. In any way, the contents of the articles and advertisements published in the journal Tech-E, Universitas Buddhi Dharma are sole and exclusive responsibility of their respective authors and advertisers.
References
S. Rahmadani and S. Lubis, “Evaluasi peran pemerintah dalam menentukan angka stunting berdasarkan perpres 72 tahun 2021,” J. Educ. J. Pendidik. Indones., vol. 9, no. 1, p. 188, May 2023, doi: 10.29210/1202322804.
A. N. Rahmanto, “Media Sosial dan Persepsi Publik tentang Good Governance pada Pemerintah Daerah di Solo Raya,” J. Ilmu Komun., vol. 20, no. 1, p. 88, May 2022, doi: 10.31315/jik.v20i1.6433.
M. R. Amin and A. N. Salma, “Analisis Sentimen Opini Publik Mengenai Tragedi Kanjuruhan Pada Media Sosial Twitter Menggunakan Brand24,” eProceedings Manag., vol. 11, no. 6, pp. 147–153, 2024, [Online]. Available: https://openlibrarypublications.telkomuniversity.ac.id/index.php/management/article/view/25179
U. Arfan and E. Badii, “Sentiment Analysis of Papuan Public Perceptions Toward the Free Nutritional Meal Program in Indonesia Analisis Sentimen Masyarakat Papua Terhadap Program Makan Gizi Gratis di Indonesia,” vol. 5, no. October, pp. 1538–1546, 2025, doi: 10.57152/malcom.v5i4.2087.
S. Redjeki and S. Widyarto, “Comparison of Seven Machine Learning Algorithms in the Classification of Public Opinion,” Tech-E, vol. 5, no. 2, pp. 143–149, 2022, doi: 10.31253/te.v5i1.1046.
P. Arsi and R. Waluyo, “Analisis Sentimen Wacana Pemindahan Ibu Kota Indonesia Menggunakan Algoritma Support Vector Machine (SVM),” J. Teknol. Inf. dan Ilmu Komput., vol. 8, no. 1, p. 147, Feb. 2021, doi: 10.25126/jtiik.0813944.
S. Hariyanto, I. Fenriana, and D. Lasut, “Comparative Analysis of Support Vector Machine , Decision Tree , and Naive Bayes in Evaluating Machine Learning Effectiveness,” vol. 4, no. 1, pp. 1–15, 2025, doi: 10.31253/rubin.v4i1.4041.
N. Arifin, U. Enri, and N. Sulistiyowati, “Penerapan Algoritma Support Vector Machine (SVM) dengan TF-IDF N-Gram untuk Text Classification,” STRING (Satuan Tulisan Ris. dan Inov. Teknol., vol. 6, no. 2, p. 129, Dec. 2021, doi: 10.30998/string.v6i2.10133.
M. H. Itqoni, “Penanganan Data Tidak Seimbang pada Analisis Sentimen Ulasan Parfum dengan GPT-4: Perbandingan Ekstraksi Fitur, Emoji, dan Metode Klasifikasi”.
U. I. Arsyah, M. Pratiwi, and A. Muhammad, “Twitter Sentiment Analysis of Public Space Opinions using SVM and TF-IDF Methods,” Indones. J. Comput. Sci., vol. 13, no. 1, Feb. 2024, doi: 10.33022/ijcs.v13i1.3594.
A. Supian, B. Tri Revaldo, N. Marhadi, L. Efrizoni, and R. Rahmaddeni, “PERBANDINGAN KINERJA NAÏVE BAYES DAN SVM PADA ANALISIS SENTIMEN TWITTER IBUKOTA NUSANTARA,” J. Ilm. Inform., vol. 12, no. 01, pp. 15–21, Mar. 2024, doi: 10.33884/jif.v12i01.8721.
T. Wahyudi, Rudiman, and N. Azmi Verdikha, “Klasifikasi Sentimen X-Twitter Perihal Pemindahan Ibu Kota Indonesia Menggunakan Ekstraksi Fitur Tf-Idf Dan Metode Support Vector Machine (Svm),” JTI J. Teknol. Inf., vol. 18, no. 2, pp. 185–199, 2024, doi: 10.47111/jti.v18i2.15015.
A. Pranata, R. Rudiman, and N. A. Verdikha, “Klasifikasi Teks Quick Count Pemilihan Presiden 2024 pada Twitter menggunakan Metode TF-IDF dan Naive Bayes,” J. Inform. Terpadu, vol. 10, no. 2, pp. 93–100, 2024, doi: 10.54914/jit.v10i2.1279.
M. Ma’rufudin and A. Yudhistira, “Analisis Sentimen Petani Milenial Pada Media Sosial X Menggunakan Algortitma Support Vector Machine (SVM),” J. Pendidik. dan Teknol. Indones, vol. 5, no. 3, pp. 845–857, 2025.
A. R. Isnain, N. S. Marga, and D. Alita, “Sentiment Analysis Of Government Policy On Corona Case Using Naive Bayes Algorithm,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 15, no. 1, p. 55, Jan. 2021, doi: 10.22146/ijccs.60718.
F. Upa and Nurhalifah, “Analisis Sentimen Pengguna Twiter Menggunakan Metode Svm-Knn,” Nusant. Hasana J., vol. 3, no. 12, pp. 57–64, 2024, doi: 10.59003/nhj.v3i12.1125.
F. D. Ananda and Y. Pristyanto, “Analisis Sentimen Pengguna Twitter Terhadap Layanan Internet Provider Menggunakan Algoritma Support Vector Machine,” MATRIK J. Manajemen, Tek. Inform. dan Rekayasa Komput., vol. 20, no. 2, pp. 407–416, May 2021, doi: 10.30812/matrik.v20i2.1130.
Dwi Tiyas Novitasari, M. A. Barata, and P. E. Yuwita, “ANALISIS SENTIMEN PENGGUNA TWITTER TERHADAP SKINCARE DENGAN METODE SUPPORT VECTOR MACHINE (SVM),” INTI Nusa Mandiri, vol. 19, no. 2, pp. 325–332, Feb. 2025, doi: 10.33480/inti.v19i2.6297.
M. R. Ramadhan and K. Budiman, “Sentiment Analysis of Presidential Candidates in 2024: A Comparison of the Performance of Support Vector Machine and Random Forest with N-Gram Method,” Recursive J. Informatics, vol. 3, no. 1, pp. 34–42, Mar. 2025, doi: 10.15294/rji.v3i1.8385.
I. S. Muharram and Muhammad Faisal, “Tweet Sentiment Classification Towards Mobile Services Using Naive Bayes and Support Vector Machine,” J. KomtekInfo, pp. 115–123, Jul. 2025, doi: 10.35134/komtekinfo.v12i2.642.
Abdurrazik and I. M. W. Wirawan, “Analisis Klasifikasi Tweet Berdasarkan Topik Sosial Menggunakan SVM,” J. Nas. Teknol. Inf. dan Apl., vol. 3, no. 4, pp. 855–864, 2025, doi: 10.24843/JNATIA.2025.v03.i04.p15.
F. D. Sari and W. Widayat, “Analisis sentimen masyarakat terhadap PON 2024 Aceh dan Sumatra Utara di Twitter menggunakan algoritma SVM dan KNN,” AITI, vol. 22, no. 2, pp. 251–265, Sep. 2025, doi: 10.24246/aiti.v22i2.251-265.
R. Nursyanti, N. Alamsyah, and T. M. Yusuf, “Perbandingan kinerja SVM dan BI-LSTM dengan TF-IDF dan SMOTE untuk analisis sentimen kelestarian hewan liar,” Aisyah J. Informatics Electr. Eng., vol. 7, no. 1, pp. 9–14, 2025, doi: 10.30604/jti.v7i1.653.
F. S. Nufus and W. Gata, “SENTIMENT ANALYSIS OF PUBLIC OPINION ON TRANSPORTATION SERVICES IN INDONESIA USING MACHINE LEARNING,” J. Techno Nusa Mandiri, vol. 22, no. 2, pp. 143–150, Sep. 2025, doi: 10.33480/techno.v22i2.6577.
Abstract views: 292
/
PDF downloads: 155