SENTIMENT ANALYSIS OF DIRECT AND INDIRECT ELECTIONS ON X USING INDOBERT
DOI:
https://doi.org/10.46874/8tykhm20Keywords:
sentiment analysis, social media X, direct and indirect elections, political participation, IndoBERTAbstract
Social media X (Twitter) has become a digital public sphere where users frequently express political opinions. Discussions concerning direct and indirect local elections often appear through posts and public responses on the platform. These conversations may reflect public attitudes and levels of participation in democratic process. This study aims to examine trends in public sentiment toward direct and indirect election systems using data collected from social media X. This study applies a quantitative approach using web scraping techniques through the tweet-harvest library to collect public tweets. The data were subsequently cleaned and analyzed using the IndoBERT model to understand the context of the Indonesian language and classify user opinions into three sentiment categories: positive, negative, and neutral. The findings indicate that negative sentiment tends to be more dominant, particularly in discussions regarding indirect elections. This suggests that concerns, doubts and resistance toward the issue remain present among parts of the public, although positive sentiment is also evident. Overall, conversations on social media X may provide valuable insights into public perceptions of local electoral systems and political participation in the digital era.
References
Amirullah, F., Alam, S., & Sulistyo, S. (2023). Analisis sentimen terhadap Kinerja KPU Menjelang Pemilu 2024 Berdasarkan Opini Twitter Menggunakan Naïve Bayes." Jurnal Ilmiah Teknik Dan Ilmu Komputer 2(3), 69–76. https://doi.org/10.55123/storage.v2i3.2293
Anwar, D. D., Wibowo, K. A., & Rohayati, H. S. M. (2024). Pengaruh penggunaan media sosial X (Twitter) terhadap partisipasi politik pada Pemilu Presiden Indonesia tahun 2024. Jurnal Riset Komunikasi, 15(2), 314–328.
Artini, N. K. (2020). Partisipasi politik masyarakat dalam pemilihan umum legislatif di Kota Denpasar. Jurnal Ilmiah Dinamika Sosial, 4(2), 329–348.
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) (pp. 4171–4186). https://doi.org/10.18653/v1/N19-1423
Hakim, G., Fatyanosa, T. N., & Widodo, A. W. (2024). Analisis sentimen masyarakat terhadap kereta cepat Whoosh pada platform X menggunakan IndoBERT. Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 8(10), 1–10. http://repository.ub.ac.id/id/eprint/235285
Herman, A. (2023). Penyebaran berita politik dan partisipasi politik masyarakat Kota Palu di media sosial. Jurnal Komunikatif, 12(1), 51–61. https://doi.org/10.33508/jk.v12i1.4772
Ilyas, B., & Sharifi, A. (2025). A systematic review of social media-based sentiment analysis in disaster risk management. International Journal of Disaster Risk Reduction, 123(1), 1–20. https://doi.org/10.1016/j.ijdrr.2025.105487
Manoppo, M. R., Kolang, I. C., Nur Fiat, D. N., Mawara, R. M. C., Sumarno, A. D. P., Yusupa, A., & Tarigan, V. (2025). Analisis sentimen publik di media sosial terhadap kenaikan PPN 12% di Indonesia menggunakan IndoBERT. Jurnal Kecerdasan Buatan dan Teknologi Informasi, 4(2), 152–163. https://doi.org/10.69916/jkbti.v4i2.322
Montaser, A. Al, Ghosh, B. P., Barua, A., & Karim, F. (2025). Sentiment analysis of social media data: Business insights and consumer behavior trends in the USA. Learning Gate, 9(1), 545–565. https://doi.org/10.55214/25768484.v9i1.4164
Nip, J. Y. M., & Berthelier, B. (2024). Social media sentiment analysis. Encyclopedia, 4(4), 1590–1598. https://doi.org/10.3390/encyclopedia4040104
Oktaviani, V., Rosmawarni, N., & Muslim, M. P. (2024). Perbandingan kinerja random forest dan smote random forest dalam mendeteksi dan mengukur tingkat stres pada mahasiswa tingkat akhir. Informatik: Jurnal Ilmu Komputer, 20(1), 43–49. https://doi.org/10.52958/iftk.v20i1.9158
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Köpf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., Bai, J., & Chintala, S. (2019). PyTorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32, 1–12. https://arxiv.org/abs/1912.01703
Puri, R., & Catanzaro, B. (2019). Zero-shot text classification with generative language models. arXiv, 1–11. http://arxiv.org/abs/1912.10165
Satriawan, E. B., Hadi Wijoyo, S., & Ratnawati, D. E. (2024). Analisis sentimen terhadap pendapat masyarakat mengenai Pilkada 2024 menggunakan metode support vector machine (SVM). Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 1(1), 2548–2964. https://jtiik.ub.ac.id/index.php/jtiik/article/view/9447
Saud, M., Ida, R., Abbas, A., Ashfaq, A., & Ahmad, A. R. (2020). The social media and digitalization of political participation in youths: An Indonesian perspective. Society, 8(1), 87–97. https://doi.org/10.33019/society.v8i1.160
Sausan Nabila, A. (2023). Perbandingan model machine learning dan deep learning terhadap analisis sentimen pelanggan Shopee tugas akhir (Undergraduate thesis, Universitas Islam Negeri Ar-Raniry Banda Aceh). https://repository.ar-raniry.ac.id/37469
Schäfer, M. S. 2016. Schäfer, M. S. (2016). Digital public sphere. In The International Encyclopedia of Political Communication (pp. 322–328). https://doi.org/10.1002/9781118541555.wbiepc087
Septiani, S., Putri, N., Jessica, D., & Saputra, A. (2024). Sentiment analysis of social media data using deep learning techniques. International Journal of Computer Technology and Science, 1(2), 15–28. https://doi.org/10.62951/ijcts.v1i2.59
Wicaksono, A. T. S., & Sudarmiatin, S. (2025). Social media sentiment analysis: Customer perception of digital marketing. Asian Journal of Applied Business and Management, 4(2), 437–450. https://doi.org/10.55927/ajabm.v4i2.187
Yuswira, J. D., & Ginting, J. A. (2026). Analisis sentimen dan social network analysis pada isu makanan bergizi gratis di X/Twitter menggunakan IndoBERT. Jurnal Mahasiswa Teknik Informatika (JATI), 10(1), 1259–1265. https://doi.org/10.36040/jati.v10i1.16948
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Electoral Governance Jurnal Tata Kelola Pemilu Indonesia

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Terms and Conditions of Publication
1. Author's Rights and Authorities
As an author, you (or your employer or institution) may do the following:
- make copies (print or electronic) of the article for your own personal use (not for commercial purpose), including for your own classroom teaching use;
- make copies and distribute such copies (including through email) of the article to research colleagues, but not allowed to distribute commercially and systematically, e.g. via an email list or list server;
- present the article at a meeting or conference and to distribute copies of the article to the delegates attending such meeting;
- retain all proprietary rights in any process, procedure, or article of manufacture described in the work;
- include the article in full or in part in a thesis or dissertation;
- use the article or any part thereof in a printed compilation of your works, such as collected writings or lecture notes, and other derivative works, with full acknowledgement to JEP as the original journal publishing the article;
- may reproduce material extracted from the article or derivative works for the author's personal use, but must consider the copyrights procedure.
All copies, print or electronic, or other use of the paper or article must include the appropriate bibliographic citation for the article’s publication in the journal.
2. Requests from Third Parties
Although authors are permitted to re-use all or portions of the article in other works, this does not include granting third-party requests for reprinting, republishing, or other types of re-use. Requests for all uses not included above, including the authorization of third parties to reproduce or otherwise use all or part of the article (including figures and tables), should be referred to KPU by going to our website at https://journal.kpu.go.id/.
3. KPU Copyright Ownership
KPU owns the copyrights to reproduce, distribute, disseminate, translate, and other uses in accordance with the existing Laws and Regulations.
Every accepted manuscript should be accompanied by "Copyright Transfer Agreement" prior to the article publication.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Electoral Governance (Jurnal Tata kelola Pemilu Indonesia) by KPU is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at https://journal.kpu.go.id/index.php/TKP
If you are a nonprofit or charitable organization, your use of an NC-licensed work could still run afoul of the NC restriction, and if you are a for-profit entity, your use of an NC-licensed work does not necessarily mean you have violated the term.



