Sentiment Analysis of Indonesian Government Policies Using the LSTM Model for Public Opinion Mapping

  • Muhammad Rijal Institut Teknologi dan Bisnis Nobel Indonesia
  • Firman Aziz Universitas Pancasakti
  • Nuzul Tenriana Universitas Pancasakti Makassar
  • Eva Delilah Universitas Pancasakti
Keywords: Sentiment Analysis, LSTM, Government Policy, Social Media, Opinion Mapping

Abstract

Social media has evolved into a primary arena for citizens to express and negotiate opinions regarding government policies, creating vast opportunities for data-driven policy evaluation. This study aims to map public sentiment toward Indonesian government policies by integrating deep learning–based sentiment classification with linguistic and governance analysis. A dataset of approximately 50,000 Indonesian-language posts was collected from Twitter (X) and Facebook between January and June 2024. The data were processed through text cleaning, tokenization, stopword removal, and word embedding using Word2Vec and FastText, and subsequently classified into positive, negative, and neutral sentiments using a Long Short-Term Memory (LSTM) model. The results indicate that public opinion is predominantly negative (45%), particularly in relation to economic and taxation policies, while positive sentiment (34%) is mainly associated with education and health sectors. The LSTM model achieved an accuracy of 86.9%, outperforming Support Vector Machine (SVM) and Naïve Bayes models. Furthermore, linguistic analysis reveals that emotive and sarcastic expressions play a significant role in shaping critical public discourse, whereas colloquial language enhances engagement, especially among younger users. This study contributes by bridging computational sentiment analysis with linguistic interpretation and public policy evaluation within a unified framework. The findings provide practical implications for evidence-based policymaking by enabling governments to monitor public sentiment in real time, improve policy communication strategies, and foster more participatory and responsive governance.

References

Behera, R. K., Jena, M., Rath, S. K., & Misra, S. (2021). Co-LSTM: Convolutional LSTM model for sentiment analysis in social big data. Information Processing & Management, 58(1), 102435. https://doi.org/10.1016/J.IPM.2020.102435

Belkahla Driss, O., Mellouli, S., & Trabelsi, Z. (2019). From citizens to government policy-makers: Social media data analysis. Government Information Quarterly, 36(3), 560–570. https://doi.org/10.1016/J.GIQ.2019.05.002

Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/NECO.1997.9.8.1735

Kencana, N. (2024). The Impact of Online Media Discourse on Public Opinion in Regional Elections: A Critical Discourse Analysis. INTERACTION: Jurnal Pendidikan Bahasa, 11(2), 936–947. https://doi.org/10.36232/INTERACTIONJOURNAL.V11I2.1193

Khoirunnisa, S., & Setiawan, E. B. (2025). Sentiment Analysis on Social Media Using Long Short-Term Memory and Word2Vec Feature Expansion Methods with Adam Optimization. Khazanah Informatika : Jurnal Ilmu Komputer Dan Informatika, 11(1), 13–19. https://journals2.ums.ac.id/khif/article/view/3957

Kurniasari, L., & Setyanto, A. (2020). Sentiment Analysis using Recurrent Neural Network. Journal of Physics: Conference Series, 1471(1), 012018. https://doi.org/10.1088/1742-6596/1471/1/012018

Masruroh, D., Wardani, F. Y. K., Suhatmady, B., & Aridah, A. (2025). Patriarchal Ideology in Indonesian Social Media: A Critical Discourse Analysis. Scope : Journal of English Language Teaching, 9(2), 867–877. https://doi.org/10.30998/SCOPE.V9I2.26099

McHugh, M. L. (2012). Interrater reliability: the kappa statistic. Biochemia Medica, 22(3), 276–282.

Rahmatika, W. R. (2024). Sarcasm, Criticism, and Social Commentary: A Speech Act Analysis of Tahilalats Digital Comics. Applied Linguistics: Innovative Approaches and Emerging Trends, 1(2), 155–174. https://doi.org/10.58989/APPLING.V1I2.24

Rahmayanti, I., Rokhman, F., Mardikantoro, H. B., & Pristiwati, R. (2025). Language, strategy, and influence: a pragmatic analysis of Indonesian YouTube influencers and their impact on social media. Cogent Arts and Humanities, 12(1). https://doi.org/10.1080/23311983.2025.2531180;SUBPAGE:STRING:FULL

Suhendra, S., & Selly Pratiwi, F. (2024). Peran Komunikasi Digital dalam Pembentukan Opini Publik: Studi Kasus Media Sosial. Iapa Proceedings Conference, 293–315. https://doi.org/10.30589/PROCEEDINGS.2024.1059

Sukma, E. A., Hidayanto, A. N., Pandesenda, A. I., Yahya, A. N., Widharto, P., & Rahardja, U. (2020). Sentiment Analysis of the New Indonesian Government Policy (Omnibus Law) on Social Media Twitter. Proceedings - 2nd International Conference on Informatics, Multimedia, Cyber, and Information System, ICIMCIS 2020, 153–158. https://doi.org/10.1109/ICIMCIS51567.2020.9354287

Syamsuddin, S., & Munfarida, S. (2024). The Use of Figurative Language in Social Media Discourse during the 2024 Indonesian Presidential Election. Pulchra Lingua: A Journal of Language Study, Literature & Linguistics, 3(2), 138–154. https://doi.org/10.58989/PLJ.V3I2.39

Wankhade, M., & Rao, A. C. S. (2022). Opinion analysis and aspect understanding during covid-19 pandemic using BERT-Bi-LSTM ensemble method. Scientific Reports 2022 12:1, 12(1), 1–15. https://doi.org/10.1038/s41598-022-21604-7

Yanti, I., & Utami, E. (2025). SENTIMENT ANALYSIS OF INDONESIA’S CAPITAL RELOCATION USING WORD2VEC AND LONG SHORT-TERM MEMORY METHOD. Jurnal Teknik Informatika (Jutif), 6(1), 149–158. https://doi.org/10.52436/1.JUTIF.2025.6.1.2712

Published
2026-05-12
Abstract viewed = 0 times
PDF downloaded = 0 times