Mapping Public Conversation on Indonesia's Free Nutritious Meal Program on Twitter (X) Using TF-IDF and K-Means Clustering

Authors

  • Cahyasari Kartika Murni Institut Teknologi dan Bisnis Widya Gama Lumajang
  • Faishal Basbeth Institut Teknologi dan Bisnis Widya Gama Lumajang
  • Silviana Widya Lestari Institut Teknologi dan Bisnis Widya Gama Lumajang

DOI:

https://doi.org/10.30741/jid.v5i1.2081

Keywords:

Text Mining, TF-IDF, K-Means, Clustering, Free Nutritious Meal

Abstract

Public programs now generate their own online commentary, and that commentary is worth reading systematically rather than anecdotally. This paper maps the topic structure of Indonesian-language conversation about the Free Nutritious Meal program (Makan Bergizi Gratis, MBG) on Twitter (X). We scraped 3,459 tweets posted in January and February 2025, and cleaned them through case folding, filtering, tokenization, stopword removal, and stemming, which left 2,926 documents, or 84.59% of the raw set. These were weighted with Term Frequency-Inverse Document Frequency (TF-IDF) into a 2,926 x 5,000 document-term matrix and partitioned with K-Means. The Elbow Method placed the optimal solution at K = 3, with an SSE of 2,760.3617 and a Silhouette Score of 0.0092. Three topics emerged: institutional endorsement tied to food security and self-sufficiency (94 tweets, 3.21%), everyday talk about how the program is being delivered and paid for (2,012 tweets, 68.76%), and the benefits of the program for children and their health (820 tweets, 28.02%). The Silhouette Score sits close to zero. We read this as a property of the corpus rather than a failure of the procedure: every document discusses the same program, so the clusters share a large common vocabulary and their boundaries are soft. The partition should therefore be treated as a first thematic map rather than a clean separation, and contextual representations such as Word2Vec, FastText, or IndoBERT are the obvious next step.

References

C. H. Lin and U. Nuha, “Sentiment analysis of Indonesian datasets based on a hybrid deep-learning strategy,” Journal of Big Data, vol. 10, no. 1, Dec. 2023, doi: 10.1186/s40537-023-00782-9.

H. Huan, Z. Guo, T. Cai, and Z. He, “A text classification method based on a convolutional and bidirectional long short-term memory model,” Connection Science, vol. 34, no. 1, pp. 2108–2124, 2022, doi: 10.1080/09540091.2022.2098926.

C.-Z. Liu, Y.-X. Sheng, Z.-Q. Wei, and Y.-Q. Yang, “Research of Text Classification Based on Improved TF-IDF Algorithm,” 2018.

M. Ahmed, R. Seraj, and S. M. S. Islam, “The k-means algorithm: A comprehensive survey and performance evaluation,” Electronics, Aug. 2020, doi: 10.3390/electronics9081295.

M. Cui, “Introduction to the K-Means Clustering Algorithm Based on the Elbow Method,” Clausius Scientific Press, 2020, doi: 10.23977/accaf.2020.010102.

A. Kiftiyah, F. A. Palestina, F. U. Abshar, and K. Rofiah, “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.

A. F. Hidayatullah and M. R. Ma’Arif, “Pre-processing Tasks in Indonesian Twitter Messages,” in Journal of Physics: Conference Series, Institute of Physics Publishing, Mar. 2017, doi: 10.1088/1742-6596/801/1/012072.

J. J. Sihombing, A. Arnita, S. I. Al Idrus, and D. Y. Niska, “Implementation of text summarization on Indonesian scientific articles using text rank algorithm with TF-IDF web-based,” Journal of Soft Computing Exploration, vol. 5, no. 3, pp. 310–319, Dec. 2024, doi: 10.52465/joscex.v5i3.475.

[9] G. Vardakas, I. Papakostas, and A. Likas, “Deep Clustering Using the Soft Silhouette Score: Towards Compact and Well-Separated Clusters,” Feb. 2024, doi: 10.1007/s10994-026-07026-w.

Downloads

Published

2026-10-01

How to Cite

Murni, C. K., Basbeth, F., & Lestari, S. W. (2026). Mapping Public Conversation on Indonesia’s Free Nutritious Meal Program on Twitter (X) Using TF-IDF and K-Means Clustering. Journal of Informatics Development, 5(1), 18–27. https://doi.org/10.30741/jid.v5i1.2081

Most read articles by the same author(s)

1 2 > >>