Twitter Sentiment Analysis to Assess Public Opinion on Jokowi's Performance Over Two Periods using the Recurrent Neural Network (RNN) Method
DOI:
https://doi.org/10.59934/jaiea.v5i1.1736Keywords:
Sentiment Analysis, Recurrent Neural Network, JokowiAbstract
This study aims to analyze public sentiment toward President Joko Widodo’s performance over his two terms in office by utilizing data from the social media platform Twitter. Twitter was chosen due to its real-time nature and popularity among users for expressing opinions openly. The method employed is a Recurrent Neural Network (RNN) with a Long Short-Term Memory (LSTM) architecture, which is well-suited for processing sequential text data. The research process involves several preprocessing stages, including text cleaning, normalization, tokenization, stopword removal, and stemming, to prepare the textual data for model input. The dataset consists of 1,006 Indonesian-language tweets categorized into three sentiment classes: positive, negative, and neutral. After simplifying the classification into two classes, the model achieved an Accuracy of 63.33%. Evaluation using a Confusion matrix and classification report indicates that the model performs better in identifying positive sentiment, though it still struggles with misclassifying negative sentiment. The results demonstrate that the RNN method is fairly effective for social media-based sentiment analysis. It is expected that this study can serve as a reference for government institutions or policy researchers to understand public perceptions and support more data-driven and responsive policymaking processes.
Downloads
References
T. T. Widowati and M. Sadikin, “ANALISIS SENTIMEN TWITTER TERHADAP TOKOH PUBLIK DENGAN ALGORITMA NAIVE BAYES DAN SUPPORT VECTOR MACHINE,” J. Tek. Mesin, Elektro dan Ilmu Komput., vol. 11, no. 2, pp. 626–636, 2021.
G. S. Lasatiraa, K. D. Hartomo, and I. Sembiring, “Analisis Sentimen Terhadap Pengaruh Minat Belanja Berdasarkan Komentar di Marketplace Menggunakan Metode Recurrent Neural Network (RNN,” J. Sist. Inf. Bisnis, vol. 13, no. 2, pp. 112–119, 2023.
S. Mujilahwati, M. Sholihin, R. Wardhani, and M. R. Zamroni, “Python Based Machine Learning Text Classification,” J. Phys. Conf. Ser., vol. 2394, no. 1, 2022, doi: 10.1088/1742-6596/2394/1/012015.
J. Han, M. Kamber, and J. Pei, Data Mining: Concepts and Techniques, 3rd ed. Morgan Kaufmann, 2012.
C. D. Manning, P. Raghavan, and H. Schütze, Introduction to Information Retrieval. Cambridge University Press, 2008.
D. Jurafsky and J. H. Martin, Speech and Language Processing, 3rd ed. Pearson, 2021.
S. Mujilahwati, M. Sholihin, and R. Wardhani, “Optimasi Hyperparameter TensorFlow dengan Menggunakan Optuna di Python: Study Kasus Klasifikasi Dokumen Abstrak Skripsi,” J. Media Inform. Budidarma, vol. 5, no. 3, p. 1084, 2021, doi: 10.30865/mib.v5i3.3090.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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







