Aspect-Based Sentiment Analysis of Public Opinion on the Free Nutritious Meal Program using BERTopic on X
Abstract
This study aims to analyze public opinion on the Free Nutritious Meal (MBG) Program on the X platform using an Aspect-Based Sentiment Analysis (ABSA) approach with BERTopic-based aspect extraction. Unlike previous studies that primarily perform sentiment classification at the overall text level, this study identifies specific aspects within public discussions to provide more fine-grained insights. Twitter data were collected and preprocessed, followed by topic modeling using BERTopic to extract topics that were subsequently defined as aspects. Topic quality was evaluated using topic coherence (c_v) and topic diversity metrics. The modeling process initially produced 36 topics with a coherence score of 0.4446 and a diversity score of 0.8541. After relevance-based selection, 18 topics were retained as aspects, with the coherence score increasing from 0.4446 to 0.5370 and the diversity score increasing from 0.8541 to 0.8611. Sentiment labeling was then performed using the Twitter-XLM-RoBERTa model to determine the distribution of positive, negative, and neutral sentiments across each aspect. The results demonstrate that the proposed ABSA approach with BERTopic-based aspect extraction provides a more structured and insightful mapping of public opinion, enabling the identification of aspects with the highest levels of support and indications of opposition toward the MBG Program. These findings are expected to serve as a basis for consideration in data-driven policy evaluation and support more informed decision-making.
Downloads
References
Kementerian Sekretariat Negara RI, “Makan Bergizi Gratis dan SDM Unggul,” Kementerian Kesehatan RIrian Sekretariat Negara RI. Accessed: Sep. 05, 2025. [Online]. Available: https://www.setneg.go.id/baca/index/makan_bergizi_gratis_dan_sdm_unggul
D. Purnamasari et al., Pengantar Metode Analisis Sentimen. 2023.
Badan Gizi Nasional, “Kepala BGN Respon Pro Kontra Program MBG: Ini Investasi Jangka Panjang Perbaiki Kualitas SDM,” Badan Gizi Nasional. Accessed: Sep. 05, 2025. [Online]. Available: https://www.bgn.go.id/news/siaran-pers/kepala-bgn-respon-pro-kontra-program-mbg-ini-investasi-jangka-panjang-perbaiki-kualitas-sdm
Shofihawa, “Ekonom FEB UGM Sebut MBG Berpotensi Bermanfaat, tapi Harus Tepat Sasaran,” Universitas Gadjah Mada Fakultas Ekonomika dan Bisnis. Accessed: Sep. 05, 2025. [Online]. Available: https://feb.ugm.ac.id/id/berita/12192-ekonom-feb-ugm-sebut-mbg-berpotensi-bermanfaat-tapi-harus-tepat-sasaran
Transparency International Indonesia, “Program Makan Bergizi Gratis Dikepung Risiko Korupsi Sistemik,” Transparency International Indonesia. Accessed: Sep. 05, 2025. [Online]. Available: https://ti.or.id/program-makan-bergizi-gratis-dikepung-risiko-korupsi-sistemik/
M. Ilham and B. Priambodo, “Analisis Sentimen Publik Terhadap Program Makan Siang Gratis Menggunakan BERT Neural Network Pada Platform X,” J. Ekon. Manaj. Sist. Inf., vol. 6, no. 2, pp. 1039–1047, 2024, doi: 10.38035/jemsi.v6i2.3376.
W. Wahyuni, T. P. Lestari, M. Apriliana, and R. Gumelta, “Implementation of BERTopic for Topic Modeling Analysis of the Free Nutritious Meal Program Based on YouTube Comments,” vol. 9, no. 4, pp. 1964–1971, 2025.
M. Pontiki, D. Galanis, J. Pavlopoulus, H. Papageorgiou, I. Androutsopoulus, and S. Manandhar, “SemEval-2014 Task 4 : Aspect Based Sentiment Analysis,” in Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014), T. Z. Preslav Nakov, Ed., Dublin, Ireland: Association for Computational Linguistics, 2014, pp. 27–35. doi: https://doi.org/10.3115/v1/S14-2004.
S. Suneetha and S. V. Row, “Journal of Data Acquisition and Processing Vol. 38 (3) 2023 177,” J. Data Acquis. Process., vol. 38, no. 3, pp. 177–203, 2023, doi: 10.5281/zenodo.777648.
M. Grootendorst, “BERTopic: Neural topic modeling with a class-based TF-IDF procedure,” 2022, [Online]. Available: http://arxiv.org/abs/2203.05794
R. Egger and J. Yu, “A Topic Modeling Comparison Between LDA , NMF , Top2Vec , and BERTopic to Demystify Twitter Posts,” Front. Sociol., vol. 7, no. May, pp. 1–16, 2022, doi: 10.3389/fsoc.2022.886498.
W. J. Meng, T. Y. Jie, and L. T. Ming, “A Study to Detect Multi-word Expression from Text Using Deep Learning Models,” J. Appl. Data Sci., vol. 6, no. 3, pp. 1681–1694, 2025, [Online]. Available: https://bright-journal.org/Journal/index.php/JADS/article/view/716
M. Zampieri et al., “Language Variety Identification with True Labels,” in Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), N. Calzolari, M.-Y. Kan, V. Hoste, A. Lenci, S. Sakti, and N. Xue, Eds., Torin, Italia: ELRA and ICCL, 2024, pp. 10100–10109. [Online]. Available: https://aclanthology.org/2024.lrec-main.882/
S. Liu, A. B. Mccoy, Q. Chen, and A. Wright, “International Journal of Medical Informatics Integrating rule-based NLP and large language models for statin information extraction from clinical notes,” Int. J. Med. Inform., vol. 205, p. 106104, 2026, doi: 10.1016/j.ijmedinf.2025.106104.
L. McInnes, J. Healy, and J. Melville, “UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction,” 2020, [Online]. Available: http://arxiv.org/abs/1802.03426
R. J. G. B. Campello, D. Moulavi, A. Zimek, and J. Sander, “Hierarchical Density Estimates for Data Clustering , Visualization , and Outlier Detection,” ACM Trans. Knowl. Discov. Data, vol. 10, no. 1, pp. 1–51, 2015, doi: http://dx.doi.org/10.1145/2733381.
M. Röder, A. Both, and A. Hinneburg, “Exploring the space of topic coherence measures,” WSDM 2015 - Proc. 8th ACM Int. Conf. Web Search Data Min., pp. 399–408, 2015, doi: 10.1145/2684822.2685324.
A. Goyal and I. Kashyap, “Comprehensive Analysis of Topic Models for Short and Long Text Data,” Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 12, pp. 249–259, 2023, doi: 10.14569/IJACSA.2023.0141226.
W. Zhang, X. Li, Y. Deng, L. Bing, and W. Lam, “A Survey on Aspect-Based Sentiment Analysis: Tasks, Methods, and Challenges,” IEEE Trans. Knowl. Data Eng., vol. 35, no. 11, pp. 11019–11038, 2023, doi: 10.1109/TKDE.2022.3230975.
F. Barbieri, L. E. Anke, and J. Camacho-collados, “XLM-T : Multilingual Language Models in Twitter for Sentiment Analysis and Beyond,” in Proceedings of the Thirteenth Language Resources and Evaluation Conference, Minneapolis, Minnesota: European Language Resources Association (ELRA), 2022, pp. 258–266. [Online]. Available: https://aclanthology.org/2022.lrec-1.27/
Copyright (c) 2026 Carmen Emanuela Dwiva Lisapaly, Luther Alexander Latumakulita, Rillya Arundaa

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





