Skip to content
Data & information systems International Journal of Advances in Data and Information Systems
Open access E-ISSN 2721-3056

Comparative Analysis of LSTM and IndoBERTweet with Multi-Factor Evaluation for Sentiment Analysis of Indonesia’s Free Nutritious Meals (MBG) Program

Authors

  • Dela Gustiara School of Statistics and Data Science, Mathematics, and Informatics, IPB University, Indonesia image/svg+xml
  • Hari Wijayanto School of Statistics and Data Science, Mathematics, and Informatics, IPB University, Indonesia image/svg+xml
  • Sachnaz Desta Oktarina School of Statistics and Data Science, Mathematics, and Informatics, IPB University, Indonesia image/svg+xml

Keywords:

Sentiment Analysis , Class Imbalance , Long Short-Term Memory (LSTM) , IndoBERTweet, Free Nutritious Meals (MBG)

Abstract

This study analyzes the impact of labeling methods, preprocessing techniques, class imbalance handling, and model selection on sentiment classification performance using data related to the Free Nutritious Meals (MBG) program obtained from the social media platform X (Twitter). Two models were utilized, LSTM and IndoBERTweet. The models were trained using hyperparameter configurations and evaluated using balanced accuracy and F1-score through stratified 5-fold cross-validation and four-way ANOVA. The results indicate that the main factors and several interactions significantly affect classification performance. The best results were achieved using manual labeling, preprocessing that preserves emojis and normalizes slang, and the class weight method, resulting in the highest balanced accuracy on IndoBERTweet at 0.78 and an F1-score of 0.77, whereas LSTM achieved a balanced accuracy of 0.74 and an F1-score of 0.71. The training time required for LSTM was 91.080 seconds, while IndoBERTweet required 247.802 seconds. Manual labeling yielded more stable performance compared to GPT-4.1 Mini, while preprocessing contributed only a small improvement. Additionally, IndoBERTweet consistently outperformed LSTM. These findings indicate that model selection, labeling methods, and balancing techniques are important factors in improving sentiment classification performance on social media data.

Downloads

Download data is not yet available.

References

[1] F. Aftab et al., “A Comprehensive Survey on Sentiment Analysis Techniques,” Int. J. Technol., vol. 14, no. 6, pp. 1288–1298, 2023, doi: 10.14716/ijtech.v14i6.6632.

[2] M. Birjali, M. Kasri, and A. Beni-hssane, “Knowledge-Based Systems A comprehensive survey on sentiment analysis : Approaches , challenges and trends,” Knowledge-Based Syst., vol. 226, p. 107134, 2021, doi: 10.1016/j.knosys.2021.107134.

[3] Q. Ariel, V. Chang, and C. Jayne, “A systematic review of social media-based sentiment analysis : Emerging trends and challenges,” Decis. Anal. J., vol. 3, no. May, p. 100073, 2022, doi: 10.1016/j.dajour.2022.100073.

[4] N. Bhargava, M. I. Radaideh, O. H. Kwon, A. Verma, and M. I. Radaideh, “On the Impact of Language Nuances on Sentiment Analysis with Large Language Models: Paraphrasing, Sarcasm, and Emojis,” IEEE Access, vol. 14, pp. 81885–81900, 2025, doi: https://doi.org/10.48550/arXiv.2504.05603.

[5] J. Khan, K. Ahmad, S. K. Jagatheesaperumal, and K. Sohn, “Textual variations in social media text processing applications: challenges, solutions, and trends,” Artif. Intell., vol. 58, no. 3, p. 89, 2025, doi: https://doi.org/10.1007/s10462-024-11071-z.

[6] A. S. Imran, S. M. Daudpota, Z. Kastrati, and R. Batra, “Cross-Cultural Polarity and Emotion Detection Using Sentiment Analysis and Deep Learning on COVID-19 Related Tweets,” IEEE Access, vol. 8, pp. 181074–181090, 2020, doi: 10.1109/ACCESS.2020.3027350.

[7] Y. HaCohen-Kerner, D. Miller, and Y. Yigal, “The influence of preprocessing on text classification using a bag-of-words representation,” PLoS One, vol. 15, no. 5, pp. 1–22, 2020, doi: 10.1371/journal.pone.0232525.

[8] M. Siino, I. Tinnirello, and M. La Cascia, “Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on Transformers and traditional classifiers,” Inf. Syst., vol. 121, no. March 2023, 2024, doi: 10.1016/j.is.2023.102342.

[9] A. Khan, D. Majumdar, and B. Mondal, “Sentiment analysis of emoji fused reviews using machine learning and Bert,” Sci. Rep., vol. 15, no. 1, pp. 1–14, 2025, doi: 10.1038/s41598-025-92286-0.

[10] Z. Mansur, N. O. Id, S. Tiun, and E. M. Alshari, “A normalization model for repeated letters in social media hate speech text based on rules and spelling correction,” PLoS One, vol. 19, no. 3, pp. 1–25, 2024, doi: https://doi.org/10.1371/journal.pone.0299652.

[11] O. Feyisetan, E. Simperl, M. Luczak-Roesch, R. Tinati, and N. Shadbolt, “An extended study of content and crowdsourcing-related performance factors in named entity annotation,” Semant. Web, vol. 9, no. 3, pp. 355–379, 2017, doi: 10.3233/sw-170282.

[12] I. Mozetic, M. Grcar, and J. Smailovic, “Multilingual twitter sentiment classification: The role of human annotators,” PLoS One, vol. 11, no. 5, pp. 1–26, 2016, doi: 10.1371/journal.pone.0155036.

[13] W. Van Atteveldt, M. A. C. G. Van Der Velden, and M. Boukes, “The Validity of Sentiment Analysis: Comparing Manual Annotation, Crowd-Coding, Dictionary Approaches, and Machine Learning Algorithms,” Commun. Methods Meas., vol. 15, no. 2, pp. 121–140, 2021, doi: 10.1080/19312458.2020.1869198.

[14] F. Gilardi, M. Alizadeh, and M. Kubli, “ChatGPT outperforms crowd workers for text-annotation tasks,” Proc. Natl. Acad. Sci. U. S. A., vol. 120, no. 30, 2023, doi: 10.1073/pnas.2305016120.

[15] N. Khamidah, K. A. Notodiputro, S. D. Oktarina, D. Science, D. Science, and D. Science, “Sentiment Analysis of Imbalanced Sarcastic Flood Disaster Texts Using Deep Learning Models,” IRJIET, vol. 8, no. 11, pp. 150–158, 2024, doi: https://doi.org/10.47001/IRJIET/2024.811015.

[16] B. Santoso, H. Wijayanto, K. A. Notodiputro, and B. Sartono, “Synthetic Over Sampling Methods for Handling Class Imbalanced Problems : A review,” IOP Conf. Ser. Earth Environ. Sci. 58, 2017, doi: 10.1088/1755-1315/5.

[17] M. Buda, A. Maki, and M. A. Mazurowski, “A systematic study of the class imbalance problem in convolutional neural networks,” Neural Networks, vol. 106, pp. 249–259, 2018, doi: 10.1016/j.neunet.2018.07.011.

[18] Z. Zhou, J. Chen, and J. Wu, “Sentiment analysis method for e-commerce review on weak-label data and deep learning model,” Int. J. Wirel. Mob. Comput., no. December 2022, 2024, doi: 10.1504/IJWMC.2023.10061392.

[19] A. N. Ma’aly, D. Pramesti, A. D. Fathurahman, and H. Fakhrurroja, “Exploring Sentiment Analysis for the Indonesian Presidential Election Through Online Reviews Using Multi-Label Classification with a Deep Learning Algorithm,” Inf., vol. 15, no. 11, pp. 1–33, 2024, doi: 10.3390/info15110705.

[20] S. Khoirunnisa and E. B. Setiawan, “Sentiment Analysis on Social Media Using Long Short- Term Memory and Word2Vec Feature Expansion Methods with Adam Optimization,” Khazanah Inform., vol. 11, no. 1, pp. 13–19, 2025, doi: https://doi.org/10.23917/khif.v11i1.3957.

[21] F. Koto, J. H. Lau, and T. Baldwin, “INDOBERTWEET: A Pretrained Language Model for Indonesian Twitter with Effective Domain-Specific Vocabulary Initialization,” EMNLP 2021 - 2021 Conf. Empir. Methods Nat. Lang. Process. Proc., pp. 10660–10668, 2021, doi: 10.18653/v1/2021.emnlp-main.833.

[22] F. Indriani, R. A. Nugroho, M. R. Faisal, and D. Kartini, “Comparative Evaluation of IndoBERT, IndoBERTweet, and mBERT for Multilabel Student Feedback Classification,” J. RESTI, vol. 8, no. 6, pp. 748–757, 2024, doi: 10.29207/resti.v8i6.6100.

[23] C. Suhaeni, H. Wijayanto, and L. N. A. Mualifah, “LDA Topic Modeling Analysis of Public Discourse on Indonesia’s Free Nutritious Meals Program ( MBG ),” IJID, vol. 14, no. 1, pp. 587–600, 2025, doi: 10.14421/ijid.2025.5211.

[24] A. Thakur and S. Arya, “Comparative analysis of manual and programmed annotations for crowd assessment and classification using artificial intelligence,” Data Sci. Manag., vol. 7, no. April, pp. 340–348, 2024, doi: https://doi.org/10.1016/j.dsm.2024.04.001.

[25] S. M. Al-Selwi et al., “RNN-LSTM: From applications to modeling techniques and beyond—Systematic review,” Journal of King Saud University - Computer and Information Sciences, vol. 36, no. 5. Elsevier B.V., p. 102068, 2024. doi: 10.1016/j.jksuci.2024.102068.

[26] D. Olaniyan, R. O. Ogundokun, O. P. Bernard, J. Olaniyan, R. Maskeliūnas, and H. B. Akande, “Utilizing an Attention-Based LSTM Model for Detecting Sarcasm and Irony in Social Media,” IEEE Access, vol. 3, no. 3, pp. 993–1022, 2024, doi: 10.1109/ACCESS.2024.3393295.

[27] J. Devlin, K. Lee, M. Chang, and K. Toutanova, “BERT : Pre-training of Deep Bidirectional Transformers for Language Understanding,” Proc. NAACL-HLT, pp. 4171–4186, 2019.

[28] M. Ridha, D. Nurjanah, and M. Rakha, “Multilabel Classification Abusive Language and Hate Speech on Indonesian Twitter Using Transformer Model: IndoBERTweet & IndoRoBERTa,” 2024 Int. Conf. Intell. Cybern. Technol. Appl. ICICyTA 2024, pp. 48–54, 2024, doi: 10.1109/ICICYTA64807.2024.10912874.

[29] S. Li, Z. Wang, G. Zhou, and S. Y. M. Lee, “Semi-Supervised Learning for Imbalanced Sentiment Classification,” in International Joint Conference on Artificial Intelligence, 2011, vol. 3, pp. 1826–1831.

[30] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár, “Focal Loss for Dense Object Detection,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 42, no. 2, 2017, doi: 10.1109/TPAMI.2018.2858826.

[31] L. Xiong et al., “A Confidence-based Partial Label Learning Model for Crowd-Annotated Named Entity Recognition,” in Findings of the Association for Computational Linguistics, Toronto, Canada: Association for Computational Linguistics, 2023, pp. 1375–1386. doi: 10.18653/v1/2023.findings-acl.89.

[32] D. C. Montgomery, “Design and Analysis of Experiments,” 9th edition, Ed. John Wiley & Sons, Incorporated, 2017.

[33] J. Demšar, “Statistical Comparisons of Classifiers Over Multiple Data Sets,” J. Mach. Learn. Res., vol. 7, pp. 1–30, 2006.

[34] H. Liu, J. Ren, and Y. Yang, “Randomization-based Joint Central Limit Theorem and Efficient Covariate Adjustment in Randomized Block 2K Factorial Experiments,” J. Am. Stat. Assoc., vol. 119, no. 545, pp. 136–150, 2024, doi: https://doi.org/10.1080/01621459.2022.2102985.

[35] H. Liu and Y. Yang, “Regression-adjusted average treatment effect estimates in stratified randomized experiments,” Biometrika, vol. 107, no. 4, pp. 935–948, 2020, doi: 10.1093/biomet/asaa038.

Downloads

Published

2026-12-05

How to Cite

[1]
D. Gustiara, H. Wijayanto, and S. D. Oktarina, “Comparative Analysis of LSTM and IndoBERTweet with Multi-Factor Evaluation for Sentiment Analysis of Indonesia’s Free Nutritious Meals (MBG) Program”, International Journal of Advances in Data and Information Systems, vol. 7, no. 3, pp. 1155–1170, Dec. 2026, Accessed: Dec. 06, 2026. [Online]. Available: https://mail.ijadis.org/index.php/ijadis/article/view/1590

Share

Similar Articles

41-50 of 149

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