Sentiment Analysis of Government Policies Using LSTM: The Role of the Indonesian Language in Shaping Public Opinions
Abstract
Social media has become the primary arena for the public to express opinions on government policies. This study aims to analyze public sentiment toward government policies using the Long Short-Term Memory (LSTM) model, while also examining the role of language in shaping public opinion. Data were collected from social media posts related to economic, social, and health policies, followed by preprocessing stages including text cleaning, tokenization, stopword removal, and word embedding with Word2Vec. The LSTM model was compared with Support Vector Machine (SVM) and Naïve Bayes to evaluate accuracy and performance. The results indicate that public opinion is dominated by negative sentiment (45%), particularly regarding economic policies. The LSTM model outperformed the benchmarks with an accuracy of 86.9%, surpassing SVM and Naïve Bayes. Linguistic analysis revealed the frequent use of emotional diction, sarcasm, and economic burden narratives that reinforced public resistance, while colloquial language was found to be an effective tool for engaging younger generations. This study contributes to the advancement of sentiment analysis in the Indonesian language using deep learning and provides practical recommendations for policymakers to design more persuasive and participatory communication strategies.
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
Dewi, K. K., & Winiarti, S. (2023). Analisis Sentimen Menggunakan Long Short-Term Memory Terkait Vaksinasi Covid-19 Di Indonesia. Jurnal Sarjana Teknik Informatika, 11(3), 124–132. https://doi.org/10.12928/JSTIE.V11I3.27188
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
Kasus Media Sosial 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
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
Kukuh Jaluwana, G. A. M., Sasmita, G. M. A., & Suarjaya, I. M. A. D. (2022). Analysis of Public Sentiment Towards Goverment Efforts to Break the Chain of Covid-19 Transmission in Indonesia Using CNN and Bidirectional LSTM. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 6(4), 511–520. https://doi.org/10.29207/RESTI.V6I4.4055
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
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
Srinivas, A. C. M. V., Satyanarayana, C., Divakar, C., & Sirisha, K. P. (2021). Sentiment Analysis using Neural Network and LSTM. IOP Conference Series: Materials Science and Engineering, 1074(1), 012007. https://doi.org/10.1088/1757-899X/1074/1/012007
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
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
Yunanto, F., Sy, E. N. S., & Kasanova, R. (2024). Political Discourse In Media Space: A Critical Discourse Perspective In Indonesia. Journal Of Human And Education (JAHE), 4(4), 325–330. https://doi.org/10.31004/JH.V4I4.1262





