Public Sentiment Analysis of Train Services Based on Twitter Opinions Using K-Menas and SVM Methods

Authors

  • Dina Selvia Upi-Yptk Padang
  • Sumijan Universitas Putra Indonesia YPTK Padang
  • Musli Yanto Universitas Putra Indonesia YPTK Padang

DOI:

https://doi.org/10.35134/komtekinfo.v13i1.677

Keywords:

Sentiment Analysis, Public Opinion, Twitter, K-Means Clustering, Support Vector Machine (SVM)

Abstract

The development of social media, particularly Twitter, has become a primary means for the public to express opinions, criticisms, and complaints regarding train services, ranging from delays, facility comfort, to ticket policies. The large number of opinions appearing in short, non-standard characters, and containing slang and emoticons makes manual analysis ineffective, resulting in service providers not optimally utilizing valuable information from the public. This study aims to analyze public opinion sentiment on Twitter regarding train services to systematically and structuredly determine public perceptions. The methods used in this study are K-Means Clustering and Support Vector Machine (SVM). K-Means is used to group public opinion based on similarities in language patterns and sentiments to obtain initial labels, while SVM is used to classify opinions into positive and negative sentiments more accurately. The research data comes from the Twitter platform and is obtained through a crawling technique. The maximum limit of tweets retrieved is set at 2005 tweets. The results show that the K-Means method is able to assist the initial labeling process of sentiment data, while the SVM algorithm can classify public opinion with an accuracy level of 99.02%. The combination of clustering and classification methods has proven effective in processing large-scale, unstructured opinion data. Based on the research results, it can be concluded that the sentiment analysis approach using K-Means and Support Vector Machines can provide an objective picture of public perception of train service quality. The results of this analysis are expected to be used by service providers as evaluation material and a basis for decision-making to improve service quality to the public

References

R. Faris Triana, A. Irma Purnama Sari, A. Bahtiar, and E. Wahyudin, “Implementasi Algoritma Naïve Bayes Untuk Klasifikasi Sentimen Ulasan Pengguna KAI Access,” Jutisi: Jurnal Ilmiah Teknik Informatika dan Sistem Informasi, 2025.

F. Duta Sanubari, U. Enri, and U. Singaperbangsa Karawang Abstract, “Analisis Sentimen Terhadap Perubahan Rute Krl Commuter Jabodetabek Menggunakan Algoritme Support Vector Machine (Svm),” Jurnal Ilmiah Wahana Pendidikan, vol. 2023, no. 15, pp. 155–163, 2023, doi: 10.5281/zenodo.8206986.

A. Wirayudha, M. Murniyati, and R. Rosdiana, “Analisis Sentimen Terhadap Ulasan Access By KAI Pada Google Play Store Menggunakan Metode Indobert,” Portal Riset dan Inovasi Sistem Perangkat Lunak, vol. 3, no. 1, pp. 9–20, Jan. 2025, doi: 10.59696/prinsip.v3i1.69.

M. D. Pamungkas and H. Februariyanti, “PENERAPAN ALGORITMA K-MEANS CLUSTERING UNTUK MENGELOMPOKAN DATA REVIEW BARANG PADA E-COMMERCE LAZADA,” semanTIK, vol. 8, no. 2, p. 99, Dec. 2022, doi: 10.55679/semantik.v8i2.29058.

Y. Khoiruddin, A. Fauzi, and A. M. Siregar, “Analisis Sentimen Gojek Indonesia Pada Twitter Menggunakan Algoritme Naïve Bayes Dan Support Vector Machine,” Jurnal Ilmiah Komputer, 2023.

Antonius Yadi Kuntoro, Hermanto, and Taufik Asra, “KLASIFIKASI KELUHAN PENGGUNA KAI ACCESS UNTUK PEMESANAN TIKET DENGAN ALGORITMA SVM DAN NAÏVE BAYES,” JIKA (Jurnal Informatika) Universitas Muhammadiyah Tangerang, 2022.

R. Reynaldi, R. J. Faiz Djarot, M. Wahyudi, S. Sumanto, and A. S. Budiman, “Analisa Pola Penyebaran Pengguna Layanan Transjakarta dengan Metode K-Means Clustering,” Journal Software, Hardware and Information Technology, vol. 5, no. 2, pp. 128–138, Jun. 2025, doi: 10.24252/shift.v5i2.205.

K. N. F. Ariyanti and A. Susanti, “Identifikasi Pengguna Aplikasi Transportasi Access by KAI dengan Ulasan dan Rating Menggunakan Analisis Sentimen,” Mitrans: Jurnal Media Publikasi Terapan Transportas, vol. 2, 2024.

M. Refa et al., “Analisis Sentimen Terhadap Komentar Negatif (Hate Speech) Di Twitter Dengan Algoritma K-Means Clustering Menggunakan Rapidminer,” Journal of Information Technology and Informatics Engineering, vol. 1, no. 1, pp. 57–61, 2025.

G. Radiena and A. Nugroho, “ANALISIS SENTIMEN BERBASIS ASPEK PADA ULASAN APLIKASI KAI ACCESS MENGGUNAKAN METODE SUPPORT VECTOR MACHINE,” 2023.

A. Octaviani and P. Dewi, “Kecerdasan Buatan sebagai Konsep Baru pada Perpustakaan,” ANUVA, vol. 4, no. 4, pp. 453–460, 2021.

O. H. Rahman, G. Abdillah, and A. Komarudin, “Klasifikasi Ujaran Kebencian pada Media Sosial Twitter Menggunakan Support Vector Machine,” Jurnal RESTI, vol. 5, no. 1, pp. 17–23, Feb. 2021, doi: 10.29207/resti.v5i1.2700.

E. S. Eriana, S. Kom, M. Kom, and D. A. Zein, ARTIFICIAL INTELLIGENCE (AI) PENERBIT CV. EUREKA MEDIA AKSARA. Purbalingga: PENERBIT CV.EUREKA MEDIA AKSARA, 2023.

M. Indah Ramadhani, “IJIRSE: Indonesian Journal of Informatic Research and Software Engineering Implementation Of K-Means Algorithm For Palm Oil Productivity Data Clustering Implementasi Algoritma K-Means Untuk Klustering Data Produktivitas Kelapa Sawit,” IJIRSE: Indonesian Journal of Informatic Research and Software Engineering, vol. 3, no. 1, pp. 56–64, Mar. 2023, Accessed: Feb. 25, 2025. [Online]. Available: Journal Homepage: https://journal.irpi.or.id/index.php/ijirse

M. F. Shahzad, S. Xu, W. M. Lim, X. Yang, and Q. R. Khan, “Artificial intelligence and social media on academic performance and mental well-being: Student perceptions of positive impact in the age of smart learning,” Heliyon, vol. 10, no. 8, Apr. 2024, doi: 10.1016/j.heliyon.2024.e29523.

Y. Sibaroni and S. S. Prasetiyowati, “Buzzer Detection on Indonesian Twitter using SVM and Account Property Feature Extension,” Jurnal RESTI, vol. 6, no. 4, pp. 663–669, Aug. 2022, doi: 10.29207/resti.v6i4.4338.

K. Kusumaningtyas et al., “Tweet Analysis of Mental Illness Using K-Means Clustering and Support Vector Machine Analisis Tweet Gangguan Kesehatan Mental Menggunakan K-Means Clustering dan Support Vector Machine,” Jurnal Informatika dan Teknologi Informasi, vol. 20, no. 3, pp. 295–308, 2023, doi: 10.31515/telematika.v20i3.9820.

Z. Rani and B. K. Khotimah, “ANALISIS SENTIMEN TERHADAP KARAPAN SAPI DI TWITTER MENGGUNAKAN METODE K-MEANS DAN SUPPORT VECTOR MACHINE (SVM),” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 1, Jan. 2025, doi: 10.23960/jitet.v13i1.5685.

A. A. Arrosyad, A. I. Purnamasari, and I. Ali, “IMPLEMENTASI ALGORITMA K-MEANS CLUSTERING UNTUK ANALISIS PERSEBARAN UMKM DI JAWA BARAT,” 2024.

S. Trisya Amanda, K. Berlianindita, A. Jahid Alfarizi, W. A. Arifin, L. Kelautan, and K. Daerah Serang, “ANALISIS KOMPARATIF SVM DAN K-MEANS DALAM DATA MINING UNTUK PROMOSI PERGURUAN TINGGI,” JURNAL REKAYASA INFORMASI SWADHARMA (JRIS), vol. 05, Jul. 2025.

T. M. Ghazal et al., “Performances of k-means clustering algorithm with different distance metrics,” Intelligent Automation and Soft Computing, vol. 30, no. 2, pp. 735–742, 2021, doi: 10.32604/iasc.2021.019067.

K. Kusumaningtyas et al., “Tweet Analysis of Mental Illness Using K-Means Clustering and Support Vector Machine Analisis Tweet Gangguan Kesehatan Mental Menggunakan K-Means Clustering dan Support Vector Machine,” Jurnal Informatika dan Teknologi Informasi, vol. 20, no. 3, pp. 295–308, 2023, doi: 10.31515/telematika.v20i3.9820.

A. Z. Fuadi, I. N. Haq, and E. Leksono, “Support Vector Machine to Predict Electricity Consumption in the Energy Management Laboratory,” Jurnal RESTI, vol. 5, no. 3, pp. 466–473, Jun. 2021, doi: 10.29207/resti.v5i3.2947.

Styawati, A. Nurkholis, Z. Abidin, and H. Sulistiani, “Optimasi Parameter Support Vector Machine Berbasis Algoritma Firefly Pada Data Opini Film,” Jurnal RESTI, vol. 5, no. 5, pp. 904–910, Oct. 2021, doi: 10.29207/resti.v5i5.3380.

I. Salsabila and Y. Sibaroni, “Multi Aspect Sentiment of Beauty Product Reviews using SVM and Semantic Similarity,” Jurnal RESTI, vol. 5, no. 3, pp. 520–526, Jun. 2021, doi: 10.29207/resti.v5i3.3078.

M. Zalukhu and K. Kunci, “Analsis dan Implementasi Metode Naïve Bayes dan SVM Pada Sentimen Pemilihan Calon Presiden RI Info,” Jurnal Informatika Faatuatua Media Karya, 2023, [Online]. Available: https://jurnal.faatuatua.com/index.php/KETIK

Downloads

Published

2026-03-30

How to Cite

Dina Selvia, Sumijan, & Yanto, M. (2026). Public Sentiment Analysis of Train Services Based on Twitter Opinions Using K-Menas and SVM Methods. Jurnal KomtekInfo, 13(1), 17–35. https://doi.org/10.35134/komtekinfo.v13i1.677

Issue

Section

Articles