Uncovering Key Topics in Indonesian Political Discourse Through Twitter Analysis After the 2024 Presidential Inauguration Using Clustering methods
DOI:
https://doi.org/10.29407/intensif.v9i1.23771Keywords:
Clustering, Social Media, President and Vice President Election, Trend, Text ProcessingAbstract
Background: Social media, especially Twitter, plays a key role in political discourse, shaping public opinion. In Indonesia, the 2024 presidential Inauguration , with candidates Prabowo Subianto and Gibran Rakabuming Raka, has generated significant online conversations. Understanding public sentiment and identifying key topics is urgent for analyzing and grouping these discussions, offering insights into political views. Objective: The purpose of this research is to analyze Twitter conversations surrounding the 2024 Indonesian presidential election. The goal is to identify the main topics in these conversations and assess the effectiveness of different clustering algorithms in grouping similar tweets. Methods: This study applies a quantitative approach, using a dataset of 29,905 tweets collected from October 20 to October 25, 2024. The method includes text preprocessing, such as tokenization, stemming, and word weighting. PCA is used for dimensionality reduction. The clustering algorithms K-means, DBSCAN, PAM, and Agglomerative Hierarchical are employed, with performance evaluated based on the Silhouette Score. Results: The results reveal that the Agglomerative Hierarchical Clustering algorithm with Ward linkage and two PCA components produced the highest Silhouette Score of 0.8018. The clustering identified three distinct topics: political leadership, work and collaboration, and unity. Conclusion: This research successfully identified key discussion topics in Twitter conversations about the 2024 Indonesian presidential election. The Agglomerative Hierarchical method with Ward linkage was the most effective clustering algorithm. These findings offer valuable insights into public opinion, and future studies could expand to other social media platforms or investigate the relationship between sentiment and political outcomes.
Downloads
References
A. H. Umam and K. E. Perdana, “Analisis Deskriptif Sosial Media Twitter dalam Proses Pembentukan Opini Kampanye Gubernur Jawa Barat 2018 dalam 30 Hari Pertama,” J. Ilmu Polit. dan Komun., vol. 9, no. 2, pp. 1–14, Dec. 2019, doi: 10.34010/jipsi.v9i2.2464.
E. P. Pradipta, T. Rahman, F. G. Sukmono, and F. Junaedi, “Analysis of Political Polarization Discourse on Social Media Ahead of the 2024 Election BT - HCI International 2023 Posters,” C. Stephanidis, M. Antona, S. Ntoa, and G. Salvendy, Eds., Cham: Springer Nature Switzerland, 2023, pp. 95–102.
J. Singh, D. Pandey, and A. K. Singh, “Event detection from real-time twitter streaming data using community detection algorithm,” Multimed. Tools Appl., vol. 83, no. 8, pp. 23437–23464, 2024, doi: 10.1007/s11042-023-16263-3.
C. C. Sujadi, Y. Sibaroni, and A. F. Ihsan, “Analysis Content Type and Emotion of the Presidential Election Users Tweets using Agglomerative Hierarchical Clustering,” Sinkron, vol. 8, no. 3, pp. 1230–1237, 2023, doi: 10.33395/sinkron.v8i3.12616.
L. Rokach, “A survey of Clustering Algorithms,” in Data Mining and Knowledge Discovery Handbook, O. Maimon and L. Rokach, Eds., Boston, MA: Springer US, 2010, pp. 269–298. doi: 10.1007/978-0-387-09823-4_14.
F. Widya Artanti, N. Atika, K. Putri Sholekha, Z. Shabrina Aderi, and A. Muti Yanuariska, “Analisa Pemerataan Imunisasi Campak Pada Anak Sekolah Di Jakarta Dengan Algoritma Clusteing Hierarki Dan Klasifikasi Standar,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 1, pp. 354–359, 2024, doi: 10.36040/jati.v8i1.7852.
S. Hidayatullah and A. Sofro, “Hierarchical Cluster Analysis Based on Waste Sources in Indonesia in 2022,” ComTech Comput. Math. Eng. Appl., vol. 15, no. 2, pp. 93–99, 2024, doi: 10.21512/comtech.v15i2.11088.
B. J. Alter et al., “Hierarchical Clustering Applied to Chronic Pain Drawings Identifies Undiagnosed Fibromyalgia: Implications for Busy Clinical Practice,” J. Pain, vol. xxx, no. xxx, p. 104489, 2024, doi: 10.1016/j.jpain.2024.02.003.
S. Choi, H. Lim, J. Lim, and S. Yoon, “Retrofit building energy performance evaluation using an energy signature-based symbolic hierarchical clustering method,” Build. Environ., vol. 251, no. January 2024, p. 111206, 2024, doi: 10.1016/j.buildenv.2024.111206.
H. Yu and X. Hou, “Hierarchical clustering in astronomy,” Astron. Comput., vol. 41, p. 100662, 2022, doi: 10.1016/j.ascom.2022.100662.
M. M. J. Adnan, M. L. Hemmje, and M. A. Kaufmann, “Social media mining to study social user group by visualizing tweet clusters using Word2Vec, PCA and k-means,” in BIRDS+WEPIR@CHIIR, 2021, pp. 40–51. [Online]. Available: https://api.semanticscholar.org/CorpusID:234785814
S. N. Wahyuni, N. N. Khanom, and Y. Astuti, “K-Means Algorithm Analysis for Election Cluster Prediction,” Int. J. Informatics Vis., vol. 7, no. 1, pp. 1–6, 2023, doi: 10.30630/joiv.7.1.1107.
S. Davidson, V. Kesarwani, and K. White, “Forecasting and Understanding the 2021 Canadian Federal Election Using Twitter Conversations,” Proc. Can. Conf. Artif. Intell., pp. 2021–2022, 2022, doi: 10.21428/594757db.0b36b534.
S. Munoz, “Predictive Analysis of United States Presidential Elections Using K-Prototype Clustering,” 2022. doi: 10.7302/7598.
L. E. E. Awong and T. Zielinska, “Comparative Analysis of the Clustering Quality in Self-Organizing Maps for Human Posture Classification,” Sensors, vol. 23, no. 18, 2023, doi: 10.3390/s23187925.
E. Irawan, T. Mantoro, M. A. Ayu, M. A. Catur Bhakti, and I. K. Y. T. Permana, “Analyzing Reactions on Political Issues in Social Media Using Hierarchical and K-Means Clustering Methods,” 6th Int. Conf. Comput. Eng. Des. ICCED 2020, pp. 1–5, 2020, doi: 10.1109/ICCED51276.2020.9415839.
Mustakim, M. Z. Fauzi, Mustafa, A. Abdullah, and Rohayati, “Clustering of Public Opinion on Natural Disasters in Indonesia Using DBSCAN and K-Medoids Algorithms,” J. Phys. Conf. Ser., vol. 1783, no. 1, 2021, doi: 10.1088/1742-6596/1783/1/012016.
R. W. Sembiring, J. M. Zain, and A. Embong, “Dimension Reduction of Health Data Clustering,” Int. J. New Comput. Archit. Their Appl., vol. 1, no. 3, pp. 1041–1050, 2011, [Online]. Available: https://doi.org/10.48550/arXiv.1110.3569
G. T. Reddy et al., “Analysis of Dimensionality Reduction Techniques on Big Data,” IEEE Access, vol. 8, pp. 54776–54788, 2020, doi: 10.1109/ACCESS.2020.2980942.
R. Yan, Z. Ma, G. Kokogiannakis, and Y. Zhao, “A sensor fault detection strategy for air handling units using cluster analysis,” Autom. Constr., vol. 70, pp. 77–88, 2016, doi: https://doi.org/10.1016/j.autcon.2016.06.005.
I. Ashari, R. Banjarnahor, D. Farida, S. Aisyah, A. Dewi, and N. Humaya, “Application of Data Mining with the K-Means Clustering Method and Davies Bouldin Index for Grouping IMDB Movies,” J. Appl. Informatics Comput., vol. 6, no. 1, pp. 07–15, Jul. 2022, doi: 10.30871/jaic.v6i1.3485.
M. Li, X. Bi, L. Wang, and X. Han, “A method of two-stage clustering learning based on improved DBSCAN and density peak algorithm,” Comput. Commun., vol. 167, pp. 75–84, Feb. 2021, doi: 10.1016/J.COMCOM.2020.12.019.
D. Deng, “DBSCAN Clustering Algorithm Based on Density,” in In Proceedings - 2020 7th International Forum on Electrical Engineering and Automation, IFEEA 2020, Institute of Electrical and Electronics Engineers Inc., Sep. 2020, pp. 949–953. doi: 10.1109/IFEEA51475.2020.00199.
Z. Francis, C. Villagrasa, and I. Clairand, “Simulation of DNA damage clustering after proton irradiation using an adapted DBSCAN algorithm,” Comput. Methods Programs Biomed., vol. 101, no. 3, pp. 265–270, Mar. 2011, doi: 10.1016/J.CMPB.2010.12.012.
L. Kaufman and P. J. Rousseeuw, “Partitioning Around Medoids (Program PAM),” in Finding Groups in Data: An Introduction to Cluster Analysis, John Wiley & Sons, Ltd, 1990, ch. 2, pp. 68–125. doi: https://doi.org/10.1002/9780470316801.ch2.
E. Schubert and P. J. Rousseeuw, “Fast and eager k-medoids clustering: O(k) runtime improvement of the PAM, CLARA, and CLARANS algorithms,” Inf. Syst., vol. 101, p. 101804, 2021, doi: 10.1016/j.is.2021.101804.
H. Chenan and N. Tsutsumida, “A Scalable k-Medoids Clustering via Whale Optimization Algorithm,” 2024, [Online]. Available: http://arxiv.org/abs/2408.16993
M. Kalantari and H. Hassani, “Automatic Grouping in Singular Spectrum Analysis,” Forecasting, vol. 1, no. 1, pp. 189–204, 2019, doi: 10.3390/forecast1010013.
W. Widyawati, W. L. Y. Saptomo, and Y. R. W. Utami, “Penerapan Agglomerative Hierarchical Clustering Untuk Segmentasi Pelanggan,” J. Ilm. SINUS, vol. 18, no. 1, p. 75, 2020, doi: 10.30646/sinus.v18i1.448.
M. Paramadina, S. Sudarmin, and M. K. Aidid, “Perbandingan Analisis Cluster Metode Average Linkage dan Metode Ward (Kasus: IPM Provinsi Sulawesi Selatan),” VARIANSI J. Stat. Its Appl. Teach. Res., vol. 1, no. 2, p. 22, 2019, doi: 10.35580/variansiunm9357.
Y. Chen, P. Tan, M. Li, H. Yin, and R. Tang, “K-means clustering method based on nearest-neighbor density matrix for customer electricity behavior analysis,” Int. J. Electr. Power Energy Syst., vol. 161, no. January, 2024, doi: 10.1016/j.ijepes.2024.110165.
M. Shutaywi and Nezamoddin N. Kachouie, “Silhouette Analysis for Performance Evaluation in Machine Learning with Applications to Clustering Meshal,” vol. 23, no. 6, p. 759, 2021, doi: https://doi.org/10.3390/e23060759 1.
Z. Efendi, I. S. Sitanggang, and L. Syaufina, “Analisis Dampak Kabut Asap dari Kebakaran Hutan dan Lahan dengan Pendekatan Text Mining,” J. Teknol. Inf. dan Ilmu Komput., vol. 10, no. 5, pp. 1039–1046, 2023, doi: 10.25126/jtiik.20231057248.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Syarif Hidayatullah, Ulfa Siti Nuraini

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright on any article is retained by the author(s).
2. The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
3. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
4. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
5. The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License