Analisis Sentimen Program Makan Bergizi Gratis Menggunakan Lexicon-Based dan Support Vector Machine
DOI:
https://doi.org/10.37859/jf.v16i1.10948
Abstract
Public policy initiatives often trigger massive shifts in digital public opinion, such as the Free Nutritious Meal Program (MBG), which has garnered extensive attention from the Indonesian public on social media. Sentiment analysis serves as a vital instrument to map public opinion trends, particularly when dealing with large-scale, unstructured, and heterogeneous textual data. This study aims to analyze the distribution of public sentiment toward the MBG Program and evaluate the effectiveness of the lexicon-based method and Support Vector Machine (SVM) algorithm in classifying opinion texts. The dataset was collected from Twitter (X) via the Kaggle platform, comprising 10,524 public comments. The methodology begins with text preprocessing, including cleaning, case folding, tokenization, normalization, stopword removal, and stemming. Sentiment labeling was performed automatically using a lexicon-based approach referring to the InSet Lexicon to categorize data into three classes: positive, negative, and neutral. Subsequently, text representation was conducted using the Term Frequency–Inverse Document Frequency (TF–IDF) method and classified using an SVM model with a nested cross-validation scheme to maintain performance stability. The results indicate that public opinion is dominated by neutral sentiment at 48.1% (5,066 data points), followed by positive sentiment at 30.8%, and negative sentiment at 21.0%. This dominance of neutral sentiment reflects an informative, descriptive, and cautious public stance toward a policy still in its early implementation stages. Evaluation of the SVM model demonstrates highly stable and reliable performance, achieving an accuracy of 89.26%, with precision, recall, and F1-score each at 89%. This study concludes that the combination of lexicon-based automatic labeling and SVM is effective for public policy sentiment analysis, providing insights into public expectations and concerns regarding government programs.
Downloads
References
D. Latif, M. A. Samad, Rinawulandari, and S. A. Kadir, “Social Media in Shaping Public Opinion Roles and Impact: A Systematic Review,” J. Komun. Malaysian J. Commun., vol. 40, no. 2, pp. 205–223, 2024, doi: 10.17576/JKMJC-2024-4002-12.
R. W. Harwenda, M. David Angelo, I. Budi, A. B. Santoso, and K. Putra, “Sentiment Analysis on Government Public Policies: A Systematic Literature Review,” DIJEMSS, vol. 6, no. 5, pp. 4192–4211, Jun. 2025, doi: 10.38035/dijemss.v6i5.
M. Kumar, L. Khan, and H.-T. Chang, “Evolving techniques in sentiment analysis: a comprehensive review,” PeerJ Comput. Sci., vol. 11, p. e2592, 2025, doi: 10.7717/peerj-cs.2592.
M. Dama, A. D. Mayasari, and L. Situmorang, “The Controversy of the Free Meal Programme in the General Election 2024 in Indonesia,” DISCOURSE Indones. J. Soc. Stud. Educ., vol. 2, no. 3, pp. 179–191, Jul. 2025, doi: 10.69875/djosse.v2i3.200.
A. A. Merlinda and Y. Yusuf, “Analisis Program Makan Gratis Prabowo Subianto Terhadap Strategi Peningkatan Motivasi Belajar Siswa di Sekolah Tinjauan dari Perspektif Sosiologi Pendidikan,” Ranah Res. J. Multidiscip. Res. Dev., p., 2025, doi: 10.38035/rrj.v7i2.1360.
Z. Akbar, E. Sopandi, B. Badruzzaman, and M. F. Khalik, “The Role of Artificial Intelligence-Based Recommendation Systems in Selection of Courses for Students,” J. Soc. Sci. Util. Technol., vol. 1, no. 4, pp. 249–260, Dec. 2023, doi: 10.70177/jssut.v1i4.671.
N. R. Suaib and D. A. Pratiwi, “Social Network Analysis in the Dissemination of Makan Bergizi Gratis (MBG) Program Information on Social Media X,” J. Sos. Hum. dan Pendidik., p., 2025, doi: 10.56127/jushpen.v4i2.2067.
R. H. Muhammadi, T. G. Laksana, and A. B. Arifa, “Combination of Support Vector Machine and Lexicon-Based Algorithm in Twitter Sentiment Analysis,” Khazanah Inform. J. Ilmu Komput. dan Inform., p., 2022, doi: 10.23917/khif.v8i1.15213.
S. Loomba, M. Dave, H. Arolkar, and S. Sharma, “Sentiment Analysis using Dictionary-Based Lexicon Approach: Analysis on the Opinion of Indian Community for the Topic of Cryptocurrency,” Ann. Data Sci., vol. 11, pp. 2019–2034, 2023, doi: 10.1007/s40745-023-00496-y.
L. Luo and L. Li, “Defining and Evaluating Classification Algorithm for High-Dimensional Data Based on Latent Topics,” PLoS One, vol. 9, p., 2014, doi: 10.1371/journal.pone.0082119.
B. Hsu, “Comparison of Supervised Classification Models on Textual Data,” Mathematics, p., 2020, doi: 10.3390/math8050851.
I. K. Izzah and A. S. Girsang, “Modified TF-Assoc Term Weighting Method for Text Classification on News Dataset from Twitter.,” IAENG Int. J. Comput. Sci., vol. 48, p. 142, Mar. 2021.
C. Chai, “Comparison of text preprocessing methods,” Nat. Lang. Eng., vol. 29, pp. 509–553, 2022, doi: 10.1017/s1351324922000213.
M. Braga, G. C. Milanese, and G. Pasi, “Investigating Large Language Models’ Linguistic Abilities for Text Preprocessing,” ArXiv, vol. abs/2510.11482, p., 2025, doi: 10.48550/arxiv.2510.11482.
A. Rajesh and T. Hiwarkar, “Exploring Preprocessing Techniques for Natural LanguageText: A Comprehensive Study Using Python Code,” Int. J. Eng. Technol. Manag. Sci., p., 2023, doi: 10.46647/ijetms.2023.v07i05.047.
T. Islam et al., “Lexicon and Deep Learning-Based Approaches in Sentiment Analysis on Short Texts,” J. Comput. Commun., p., 2024, doi: 10.4236/jcc.2024.121002.
M. Rizinski, H. Peshov, K. Mishev, M. Jovanovik, and D. Trajanov, “Sentiment Analysis in Finance: From Transformers Back to eXplainable Lexicons (XLex),” IEEE Access, vol. 12, pp. 7170–7198, 2023, doi: 10.1109/access.2024.3349970.
C. Hill, J. Fresneda, and M. Anandarajan, “The wisdom of the lexicon crowds: leveraging on decades of lexicon-based sentiment analysis for improved results,” J. Big Data, vol. 12, p., 2025, doi: 10.1186/s40537-025-01186-7.
K. G, “Margin Maximization of Text Classification based on Support Vector Machine,” Int. J. Res. Appl. Sci. Eng. Technol., p., 2023, doi: 10.22214/ijraset.2023.57420.
M. Das, S. Kamalanathan, and P. Alphonse, “A Comparative Study on TF-IDF Feature Weighting Method and Its Analysis Using Unstructured Dataset,” pp. 98–107, 2023, doi: 10.48550/arxiv.2308.04037.
S. Syahrudin, F. A. Artanto, A. R. Maulana, and F. Filsafat, “Metode Support Vector Machine (SVM) dan Lexicon-Based dalam Analisis Sentiment Ulasan Pengguna Aplikasi Wink,” JUMINTAL J. Manaj. Inform. dan Bisnis Digit., p., 2025, doi: 10.55123/jumintal.v4i1.5236.
I. K. Izzah and A. S. Girsang, “Association on Supervised Term Weighting Method for Classification on Data Twitter,” Int. J. Recent Technol. Eng., vol. 8, no. 6, pp. 859–863, Mar. 2020, doi: 10.35940/ijrte.f6975.038620.
M. Skeppstedt, M. Ahltorp, K. Kucher, and M. Lindström, “From word clouds to Word Rain: Revisiting the classic word cloud to visualize climate change texts,” Inf. Vis., vol. 23, pp. 217–238, 2024, doi: 10.1177/14738716241236188.
N. A. Pandia, P. Ramadani, S. P. U. Ritonga, F. Aulia, and Mhd.Furqan, “Analisis Sentimen Masyarakat terhadap Penggunaan Teknologi AI dengan Metode Machine Learning,” J. Ilm. Sist. Inf. dan Ilmu Komput., p., 2025, doi: 10.55606/juisik.v5i2.1198.
O. Ediansa, Zulfikri Akbar, Saleh Yaakub, Agesha Marsyaf, and Iwan Eka Putra, “Pemanfaatan Teknologi Dalam Pemasaran Produk Tenant Inkubator Bisnis Teknologi LPPM Universitas Muhammadiyah Jambi,” J. Pengabdi. UntukMu NegeRI, vol. 8, no. 2, pp. 263–267, Aug. 2024, doi: 10.37859/jpumri.v8i2.7430.
P. Raval, “NLP-Based Sentiment Analysis of Social Media Data on Public Perception of Environmental Policies,” Int. J. Environ. Sci., p., 2025, doi: 10.64252/1ygxfv29.
L. Chen, L. Huang, Wanqi, Suwei, and Y. Li, “The study on the dissemination of waste sorting policies on social media and the public’s feedback attitudes: a text analysis based on comment data of policies in 46 key cities in China,” Front. Environ. Sci., p., 2025, doi: 10.3389/fenvs.2025.1546136.
Y. Qi and Z. Shabrina, “Sentiment analysis using Twitter data: a comparative application of lexicon- and machine-learning-based approach,” Soc. Netw. Anal. Min., vol. 13, no. 1, pp. 1–14, Feb. 2023, doi: 10.1007/s13278-023-01030-x.
I. D. Baga, G. K. Pati, and L. L. Momo, “ANALYSIS OF PUBLIC SENTIMENT TOWARDS VILLAGE OFFICIALS IN DISTRIBUTION OF SOCIAL ASSISTANCE TO THE COMMUNITY,” JTH J. Technol. Heal., p., 2025, doi: 10.61677/jth.v2i2.90.
F. Omojowo, “Hybrid data mining for pandemic public opinion analysis: integrating sentiment, topic, and geolocation data,” J. Electr. Syst. Inf. Technol., vol. 12, p., 2025, doi: 10.1186/s43067-025-00281-2.
K. Khadafi, F. Irhamn, D. Fatah, and U. Madura, “Analisis Sentimen Opini Masyarakat Terhadap Kebijakan Kenaikan PPN (Pajak Pertambahan Nilai) pada Media Sosial Twitter dengan Metode Support Vector Machine,” Com. Commun. Inf. Technol. J., p., 2025, doi: 10.47467/comit.v3i2.8778.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Zulfikri Akbar, Zulfikri Akbar, Imam Riadi, Rusydi Umar

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/.










_(1).png)



