Analysis of Static and Contextual Word Embeddings in Capsule Network for Sentiment Analysis of The Free Nutritious Meal Program on Twitter
DOI:
https://doi.org/10.52436/1.jutif.2026.7.1.5424Keywords:
Capsule Network, Contextual Embeddings, Makan Bergizi Gratis, Sentiment Analysis, Static Embeddings, Twitter DataAbstract
Public discourse surrounding Indonesia’s Makan Bergizi Gratis (MBG) program reflects diverse opinions that have not yet been systematically examined using computational methods. This study addresses that gap by evaluating the effectiveness of static and contextual word embeddings within a Capsule Network (CapsNet) framework for sentiment analysis of MBG-related tweets on Twitter. A total of 7,133 Indonesian-language tweets were collected through web crawling, preprocessed, and manually labeled into positive, neutral, and negative categories. Four embedding techniques—Word2Vec, FastText, ELMo, and IndoBERT—were tested under two preprocessing settings, raw and stemming. The experimental results show that Word2Vec on raw text achieved the highest accuracy of 96.17%, while FastText obtained the best performance on stemmed data with 94.10%. These findings indicate that morphological normalization benefits static and subword-based embeddings, whereas contextual models maintain stable performance without extensive fine-tuning. Overall, this study demonstrates the potential of combining CapsNet with appropriate embedding strategies for Indonesian-language sentiment analysis and provides evidence that natural language processing can support data-driven evaluation of public programs such as MBG.
Downloads
References
S. Mufti Prasetiyo, R. Gustiawan, and F. Rizzel Albani, “BIIKMA : Buletin Ilmiah Ilmu Komputer dan Multimedia Analisis Pertumbuhan Pengguna Internet Di Indonesia,” Biikma, vol. 2, no. 1, pp. 65–71, 2024, [Online]. Available: https://jurnalmahasiswa.com/index.php/biikma
S. F. Zis, N. Effendi, and E. R. Roem, “Perubahan Perilaku Komunikasi Generasi Milenial dan Generasi Z di Era Digital,” Satwika : Kajian Ilmu Budaya dan Perubahan Sosial, vol. 5, no. 1, pp. 69–87, 2021, doi: 10.22219/satwika.v5i1.15550.
G. Widjaja, “Perubahan pola komunikasi dalam masyarakat akibat penggunaan aplikasi pesan instan,” Prosiding Seminar Nasional Indonesia, vol. 3, no. 1, pp. 10–16, 2025, [Online]. Available: https://adisampublisher.org/index.php/nasional/
N. M. Malay, “Dampak Positif Dan Negatif Penggunaan Internet Pada Kalangan Mahasiswa Kelas a, B, C, Dan D Angkatan 2021 Prodi Pend. Bahasa Dan Sastra Indonesia, Universitas Nusa Cendana,” Jurnal Lazuardi, vol. 5, no. 1, pp. 70–88, 2022, doi: 10.53441/jl.vol5.iss1.72.
A. Kiftiyah, F. A. Palestina, F. U. Abshar, and K. Rofiah, “Makan Bergizi Gratis (MBG) Program in the Perspective of Social Justice and Socio – Political Dynamics,” Pancasila: Jurnal Keindonesiaan, vol. 5, no. 1, pp. 101–112, 2025, doi: 10.52738/pjk.v5i1.726.
A. A. Merlinda and Yusmar Yusuf, “Analisis Program Makan Gratis Prabowo Subianto Terhadap Strategi Peningkatan Motivasi Belajar Siswa di Sekolah Tinjauan dari Perspektif Sosiologi Pendidikan,” Ranah Research : Journal of Multidisciplinary Research and Development, vol. 7, no. 2, pp. 1364–1373, 2025, doi: 10.38035/rrj.v7i2.1360.
W. Trisno Aji, “Makan Bergizi Gratis di Era Prabowo-Gibran: Solusi untuk Rakyat atau Beban Baru?,” Naafi: Jurnal Ilmiah Mahasiswa, vol. 2, no. 2, 2025, doi: 10.62387/naafijurnalilmiahmahasiswa.v2i2.134.
D. Herdiana, “Implementasi Kebijakan Makan Bergizi Gratis ( MBG ): Faktor-faktor Pendorong dan Penghambat,” Jurnal Ilmiah Multidisiplin, vol. 3, no. 2, pp. 470–477, 2025.
A. N. Nurkalyisah, A. Triayudi, and I. D. Sholihati, “Analisis Sentimen pada Twitter Berbahasa Indonesia Terhadap Penurunan Performa Layanan Indihome dan Telkomsel,” Jurnal Sistem dan Teknologi Informasi (JustIN), vol. 10, no. 4, p. 387, 2022, doi: 10.26418/justin.v10i4.50858.
A. Fatimatuzzahro, A. Larasati, and A. Dwiastuti, “A Sentiment Analysis about The Acquisition and Policy of X ( Twitter ) by Elon Musk,” vol. 18, no. 2, pp. 849–863, 2025.
B. R. Babu, S. Ramakrishna, and S. K. Duvvuri, “Advanced Sentiment and Trend Analysis of Twitter Data Using CNN-LSTM and Word2Vec,” 4th International Conference on Sentiment Analysis and Deep Learning, ICSADL 2025 - Proceedings, no. February, pp. 1536–1543, 2025, doi: 10.1109/ICSADL65848.2025.10933031.
A. Hermawan, I. Jowensen, J. Junaedi, and Edy, “Implementasi Text-Mining untuk Analisis Sentimen pada Twitter dengan Algoritma Support Vector Machine,” JST (Jurnal Sains dan Teknologi), vol. 12, no. 1, pp. 129–137, 2023, doi: 10.23887/jstundiksha.v12i1.52358.
Gadipally Prasanth, “Advanced Feature Extraction and Visualization Techniques for Enhanced Sentiment Analysis on Twitter Data,” Journal of Information Systems Engineering and Management, vol. 10, no. 3, pp. 1536–1548, 2025, doi: 10.52783/jisem.v10i3.8208.
H. Liu, X. Chen, and X. Liu, “A Study of the Application of Weight Distributing Method Combining Sentiment Dictionary and TF-IDF for Text Sentiment Analysis,” IEEE Access, vol. 10, pp. 32280–32289, 2022, doi: 10.1109/ACCESS.2022.3160172.
S. Chakraborty, P. Das, S. Mahmud Dipto, M. A. Pramanik, and J. Noor, “An Analytical Review of Preprocessing Techniques in Bengali Natural Language Processing,” IEEE Access, vol. 13, no. July, pp. 112428–112445, 2025, doi: 10.1109/ACCESS.2025.3574234.
M. Iqbal et al., “Journal of Computer Science Artificial Intelligence Implementation of Natural Language Processing for Chatbots in Customer,” vol. 1, no. 1, pp. 18–23, 2024.
S. Khomsah, R. D. Ramadhani, and S. Wijayanto, “The Accuracy Comparison Between Word2Vec and FastText On Sentiment Analysis of Hotel Reviews,” Jurnal RESTI, vol. 6, no. 3, pp. 352–358, 2022, doi: 10.29207/resti.v6i3.3711.
N. Z. B. Jannah and K. Kusnawi, “Comparison of Naïve Bayes and SVM in Sentiment Analysis of Product Reviews on Marketplaces,” Sinkron, vol. 8, no. 2, pp. 727–733, 2024, doi: 10.33395/sinkron.v8i2.13559.
Y. Dong, X. Li, M. He, and J. Li, “DC-BiLSTM-CNN Algorithm for Sentiment Analysis of Chinese Product Reviews,” Applied Artificial Intelligence, vol. 39, no. 1, 2025, doi: 10.1080/08839514.2025.2461809.
A. Rahoof, V. Chaturvedi, and M. Shafique, “FastCaps: A Design Methodology for Accelerating Capsule Network on Field Programmable Gate Arrays,” Proceedings of the International Joint Conference on Neural Networks, vol. 2023-June, 2023, doi: 10.1109/IJCNN54540.2023.10191653.
M. S. I. Malik, A. Nawaz, M. M. Jamjoom, and D. I. Ignatov, “Effectiveness of ELMo embeddings, and semantic models in predicting review helpfulness,” Intelligent Data Analysis, vol. 28, no. 4, pp. 1045–1065, 2024, doi: 10.3233/IDA-230349.
Z. Zhan, “Comparative Analysis of TF-IDF and Word2Vec in Sentiment Analysis: A Case of Food Reviews,” ITM Web of Conferences, vol. 70, p. 02013, 2025, doi: 10.1051/itmconf/20257002013.
V. Diviya Prabha and R. Rathipriya, “Competitive Capsule Network Based Sentiment Analysis on Twitter COVID’19 Vaccines,” Journal of Web Engineering, vol. 21, no. 5, pp. 1583–1602, 2022, doi: 10.13052/jwe1540-9589.2159.
Y. Dong, Y. Fu, L. Wang, Y. Chen, Y. Dong, and J. Li, “A sentiment analysis method of capsule network based on BiLSTM,” IEEE Access, vol. 8, pp. 37014–37020, 2020, doi: 10.1109/ACCESS.2020.2973711.
T. Ehsan, A. Tehseen, K. Sarveswaran, and A. Ali, “Sentiment Analysis of Code-Mixed Tamil and Tulu by Training Contextualized ELMo Representations,” DravidianLangTech 2023 - 3rd Workshop on Speech and Language Technologies for Dravidian Languages, associated with 14th International Conference on Recent Advances in Natural Language Processing, RANLP 2023 - Proceedings, no. September, pp. 152–159, 2023, doi: 10.26615/978-954-452-085-4_020.
M. R. Haziq, Y. Sibaroni, and S. S. Prasetyowati, “Word Embedding Optimization in Sentiment Analysis of Reviews on Mytelkomsel App Using Long Short-Term Memory and Synthetic Minority Over-Sampling Technique,” Jurnal Teknik Informatika (Jutif), vol. 5, no. 6, pp. 1581–1589, 2024, doi: 10.52436/1.jutif.2024.5.6.2498.
Noryasminda, T. H. Saragih, R. Herteno, M. R. Faisal, and A. Farmadi, “Analysis of the Effect of Feature Extraction on Sentiment Analysis using BiLSTM: Monkeypox Case Study on X/Twitter,” Indonesian Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 7, no. 2, pp. 344–357, 2025, doi: 10.35882/ijeeemi.v7i2.73.
The Indonesian Institute, Policy Assessment 2025 – Analisis Implementasi Program Makan Bergizi Gratis sebagai Strategi Penurunan Stunting di Indonesia, The Indonesian Institute – Center for Public Policy Research, Policy Assessment 2025, 2 July 2025. [Online]. Available: https://www.theindonesianinstitute.com/policy-assessment-2025-analisis-implementasi-program-makan-bergizi-gratis-sebagai-strategi-penurunan-stunting-di-indonesia
F. M. S. Putra, S. Rakasiwi, and N. Ariyanto, “Twitter Sentiment Classification towards Telecommunication Provider Users in Indonesia,” J. Artif. Intell. Comput., vol. , 2025. [Online]. Available: https://jurnal.polibatam.ac.id/index.php/JAIC/article/view/9143
R. I. Perwira, et al., “Domain-Specific Fine-Tuning of IndoBERT for Aspect-Level Sentiment Analysis,” J. Inf. Syst. Eng. Bus. Intell., vol. 11, no. 1, pp. 30–40, 2025. [Online]. Available: https://e-journal.unair.ac.id/JISEBI/article/download/63660/32187
H. Alkaabi, A. K. Jasim, and A. Darroudi, “From Static to Contextual: A Survey of Embedding Advances in NLP,” PERFECT: Journal of Smart Algorithms, vol. 2, no. 2, pp. 57–66, 2025, doi: 10.62671/perfect.v2i2.77.
D. Kurniasari and F. Aulia Pradana, “Deep Learning-Driven Comparative Study of Word Embedding Techniques: Word2Vec, GloVe, and FastText in Health Condition Reviews,” ISRG Journal of Multidisciplinary Studies (ISRGJMS), vol. III, no. II, pp. 51–62, 2025, doi: 10.5281/zenodo.14890438.
M. Kurniawan, K. Kusrini, and M. R. Arief, “Part of Speech Tagging Pada Teks Bahasa Indonesia dengan BiLSTM + CNN + CRF dan ELMo,” Jurnal Eksplora Informatika, vol. 11, no. 1, pp. 29–37, 2022, doi: 10.30864/eksplora.v11i1.506.
P. Sayarizki and H. Nurrahmi, “Implementation of IndoBERT for Sentiment Analysis of Indonesian Presidential Candidates,” Journal on Computing, vol. 9, no. 2, pp. 61–72, 2024, doi: 10.34818/indojc.2024.9.2.934.
B. Thiyagarajan, M. Thenmozhi, and K. Revathy, “International Journal of INTELLIGENT SYSTEMS AND APPLICATIONS IN ENGINEERING An Improved Routing based Capsule Network for Hyperspectral Image Classification,” Original Research Paper International Journal of Intelligent Systems and Applications in Engineering IJISAE, vol. 2024, no. 2, pp. 79–89, 2024, [Online]. Available: www.ijisae.org
M. FATONI and E. ERNASTUTI, “Ornamental Plants Classification Using Integration of Convolution With Capsule Network,” MIND (Multimedia Artificial Intelligent …, vol. 8, no. 2, pp. 158–172, 2023, [Online]. Available: https://ejurnal.itenas.ac.id/index.php/mindjournal/article/view/9157%0Ahttps://ejurnal.itenas.ac.id/index.php/mindjournal/article/download/9157/3486
A. E. Regi and G. J. Leelipushpam, “Enhancing Aspect Based Sentiment Analysis Using BERT and Capsule Networks,” Proceedings - 2nd IEEE International Conference on Device Intelligence, Computing and Communication Technologies, DICCT 2024, pp. 364–369, 2024, doi: 10.1109/DICCT61038.2024.10532838.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Virgi Atha Raditya, Triando Hamonangan Saragih, Mohammad Reza Faisal, Friska Abadi, Muliadi

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





