Application of K-Means Clustering in Public Opinion Analysis Based on Text Mining on Social Media
DOI:
https://doi.org/10.59934/jaiea.v5i2.2095Keywords:
Public opinion, social media, text maining, TD-IDF, K-means clusteringAbstract
The development of social media platforms has made Twitter a crucial tool for understanding public opinions on various social and policy aspects. Analyzing patterns of public opinion on large and unstructured text datasets requires the use of efficient computational techniques. This study aims to explore the public views of Indonesian citizens on Twitter by applying text processing methods and k-means clustering. The data used in this research method consists of a collection of Indonesian-language tweets taken from a common dataset. The research process includes data collection, text preparation (including lowercase conversion, word separation, removal of common words, and stemming), and feature extraction through TF-IDF. Then, the k-means clustering algorithm is applied to group tweets based on the similarity of word patterns used. The results of this study show that this approach can create representative groups of opinions and help identify the main themes discussed on Twitter. These findings are expected to contribute to the study of the use of data mining and clustering techniques in social media-based public opinion analysis that has been used in the life of Indonesian society.
Downloads
References
D.A.C.Rachman, R.Goejantoro, dan F.D.T. Amijaya, “Implementasi Text Mining Pengelompokkan Dokumen Skripsi Menggunakan Metode K-Means Clustering,” Jurnal Eksponensial, vol. 11, no. 2, pp. 167–170, Nov. 2020, ISSN: 2085-7829.
R. Adawiyah, “Cluster Text Random Opinion Tweet in Yogyakarta Using Automatic Clustering,” Jurnal Penelitian Rumpun Ilmu Teknik (JUPRIT), vol. 2, no. 1, pp. 73–89, Feb. 2023, e-ISSN: 2963-7813, p-ISSN: 2963-8178.
A.S. Ritonga dan I. Muhandhis, “Clustering Data Tweet E-Commerce Menggunakan Metode K-Means (Studi Kasus Akun Twitter Blibli Indonesia),” SMATIKA: STIKI Informatika Jurnal, vol. 12, no. 1, pp. 75–84, Jun. 2022, doi: 10.32664/smatika.v12i01.665.
G.Wong-Parodi dan I. Feygina, “Understanding and Countering the Motivated Roots of Climate Change Denial,” Current Opinion in Environmental Sustainability, Elsevier, 2019.
M.Yosafat dan Jatmika, “Implementasi Text Clustering Terkait Pilpres 2024 Menggunakan Metode K-Means,” Jurnal InFact Sains dan Komputer, vol. 8, no. 1, Januari 2024, doi: 10.61179/jurnalinfact.v8i01.496.
D.F. Surianto, “Clustering Data Cuitan pada Media Sosial Twitter Menggunakan Metode K-Means,” SCIENTIST: Journal of Security, Computer, Information, Embedded, Network, and Intelligence System, vol. 1, no. 1, pp. 44–51, 2023.
D.K. Alfiki, A. Indrasetianingsih, dan F. Fitriani, “Penerapan Text Mining pada Analisis Sentimen Pengguna Twitter Layanan Transportasi Online Menggunakan Metode DBSCAN dan K-Means,” J Statistika, vol. 15, no. 1, pp. 184–194, 2022.
M.F.Tyas, A. Kurnia, dan A. M. Soleh, “Text Clustering Online Learning Opinion During COVID-19 Pandemic in Indonesia Using Tweets,” BAREKENG: Journal of Mathematics and Its Application, vol. 16, no. 3, pp. 939–948, September 2022, doi: 10.30598/barekengvol16iss3pp939-948.
R.A.R.Wiguna dan A.I.Rifai, “Analisis Text Clustering Masyarakat di Twitter Mengenai Omnibus Law Menggunakan Orange Data Mining,” Journal of Information Systems and Informatics, Vol. 3, No. 1, pp. 1–6, Maret 2021.
D.A. Hanan, A.Y. Husodo, dan R.P. Rassy, “Sentiment Study of ChatGPT on Twitter Data with Hybrid K-Means and LSTM,” Matrik: Jurnal Manajemen, Teknik Informatika, dan Rekayasa Komputer, Vol. 24, No. 2, pp. 273–284, Maret 2025, doi:10.30812/matrik.v24i2.4791.
K.Kusumaningtyas, M. Habibi,I. Dwijayanti, dan R. Sumiyarini, “Analisis Tweet Gangguan Kesehatan Mental Menggunakan K-Means Clustering dan Support Vector Machine,” Telematika: Jurnal Informatika dan Teknologi Informasi, Vol. 20, No. 3, pp. 295–308, Oktober 2023, doi:10.31515/telematika.v20i3.9820.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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








