PUBLIC SENTIMENT ANALYSIS OF THE FREE NUTRITIOUS MEAL PROGRAM (MBG) ON THE X PLATFORM USING TF-IDF, NAIVE BAYES, AND SVM

Authors

  • Annisa Rasyid Universitas Tulungagung
  • Dwi Ari Suryaningrum Universitas Tulungagung
  • Muhammad Hafiizh Universitas Tulungagung

DOI:

https://doi.org/10.36563/5hje2c44

Keywords:

Sentiment Analysis;, MBG;, Naive Bayes;, SVM;, TF-IDF;, Text Mining

Abstract

The Free Nutritious Meal Program (MBG/Makan Bergizi Gratis) introduced by the Indonesian

government has attracted diverse public reactions, most visibly on the X social media platform

(formerly Twitter). This study investigates patterns of public opinion regarding the program by

applying a machine learning-based Text Mining framework. A corpus of 500 tweets was gathered

through automated keyword-driven crawling and subsequently refined through preprocessing

steps encompassing irrelevant character removal, text normalization, and stopword elimination.

Each tweet was then manually assigned to one of three sentiment categories: positive, neutral, or

negative. Numerical feature representation was constructed using Term Frequency-Inverse

Document Frequency (TF-IDF) weighting, yielding 2,138 distinct features. Two classification

algorithms—Naive Bayes and Support Vector Machine (SVM)—were trained and benchmarked

against one another. Results indicate that the neutral category dominates the dataset at 93.8%,

while positive and negative sentiments account for 4.2% and 2.0%, respectively. In terms of

classification performance, SVM proved superior, achieving accuracy of 94%, precision of

92.37%, recall of 94%, and F1-score of 92.09%, compared with Naive Bayes at 92% accuracy,

84.64% precision, 92% recall, and 88.17% F1-score. Wordcloud visualization highlights that

discussions predominantly revolve around food-related themes, governmental policy, and

socioeconomic concerns. This research enhances understanding of public perception toward the

MBG program and underscores the advantage of SVM in handling imbalanced text classification

tasks.

Downloads

Download data is not yet available.

References

Aggarwal, C. C., & Zhai, C. (2012). Mining text data). New York, NY: Springer.

Apsari, R., Adi, P. D. P., & Ruldevyani, Y. (2023). Sentiment analysis of government policy

on Twitter using Naive Bayes and SVM. In Proceedings of the International

Conference on Information Technology and Digital Applications, pp. 1–8.

Blei, D. M., Ng, A. Y., & Jordan, M. I. (2003). Latent Dirichlet allocation. Journal of

Machine Learning Research, 3, 993–1022.

Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic

minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–

357.

Go, A., Bhayani, R., & Huang, L. (2009). Twitter sentiment classification using distant

supervision. Stanford, CA: Stanford University, Tech. Rep.

Haddi, E., Liu, X., & Shi, Y. (2013). The role of text pre-processing in sentiment analysis.

Procedia Computer Science, 17, 26–32.

Hu, M., & Liu, B. (2004). Mining and summarizing customer reviews. In Proceedings of the

ACM SIGKDD International Conference on Knowledge Discovery and Data Mining

(pp. 168–177). Seattle, WA: ACM.

Joachims, T. (1998). Text categorization with support vector machines: Learning with many

relevant features. In Proceedings of the European Conference on Machine Learning

(ECML) (pp. 137–142). Chemnitz, Germany.

Kowalczyk, A. (2017). Support vector machines: Optimization based framework. In Support

vector machines (pp. 1–14). Berlin: Springer.

Liu, B. (2012). Sentiment analysis and opinion mining. San Rafael, CA: Morgan & Claypool

Publishers.

Manning, C. D., Raghavan, P., & Schütze, H. (2008). Introduction to information retrieval.

Cambridge, UK: Cambridge University Press.

Pak, A., & Paroubek, P. (2010). Twitter as a corpus for sentiment analysis and opinion

mining. In Proceedings of the 7th International Conference on Language Resources

and Evaluation (LREC) (pp. 1320–1326). Valletta, Malta.

Pang, B., & Lee, L. (2008). Opinion mining and sentiment analysis. Foundations and Trends

in Information Retrieval, 2(1–2), 1–135.

Prabowo, R., & Thelwall, M. (2009). Sentiment analysis: A combined approach. Journal of

Informetrics, 3(2), 143–157.

Rish, I. (2001). An empirical study of the Naive Bayes classifier. In Proceedings of the IJCAI

Workshop on Empirical Methods in AI (pp. 41–46).

Sasikala, S., & Maria, S. T. (2019). A comparative study on sentiment analysis using Naive

Bayes and SVM. International Journal of Engineering and Advanced Technology, 8(6),

2494–2497.

Schouten, K., & Frasincar, F. (2016). Survey on aspect-level sentiment analysis. IEEE

Transactions on Knowledge and Data Engineering, 28(3), 813–830.

Sebastiani, F. (2002). Machine learning in automated text categorization. ACM Computing

Surveys, 34(1), 1–47.

Socher, R., Perelygin, A., Wu, J. Y., Chuang, J., Manning, C. D., Ng, A. Y., & Potts, C.

(2013). Recursive deep models for semantic compositionality over a sentiment

treebank. In Proceedings of the Conference on Empirical Methods in Natural Language

Processing (EMNLP) (pp. 1631–1642). Seattle, WA.

Salvatore, C. (2020). Text mining and sentiment analysis for Twitter data. In Encyclopedia of

data science and machine learning (pp. 1–15). Hershey, PA: IGI Global.

Wang, S., Li, D., Song, X., Wei, Y., & Li, H. (2013). A feature selection method based on

improved Fisher’s discriminant ratio for text sentiment classification. Expert Systems

with Applications, 40(9), 3649–3657.

Zhang, W., & Skiena, S. (2009). Improving movie gross prediction through online sentiment

analysis. In Proceedings of the International Conference on Web Intelligence and

Agent Technology (pp. 30–35).

Downloads

Published

2026-12-03

How to Cite

PUBLIC SENTIMENT ANALYSIS OF THE FREE NUTRITIOUS MEAL PROGRAM (MBG) ON THE X PLATFORM USING TF-IDF, NAIVE BAYES, AND SVM. (2026). INTERNATIONAL SEMINAR, 8, 814-824. https://doi.org/10.36563/5hje2c44

Similar Articles

91-100 of 185

You may also start an advanced similarity search for this article.