Sentiment Analysis on TikTok Discourse Surrounding the 2024 North Sumatra Gubernatorial Election Using Support Vector Machine Algorithm

Authors

  • Istiqomah Universitas Islam Negeri Sumatera Utara, Indonesia
  • Aidil Halim Lubis Universitas Islam Negeri Sumatera Utara, Indonesia

DOI:

https://doi.org/10.47709/cnahpc.v7i3.6549

Keywords:

Sentiment Analysis, TikTok, Support Vector Machine (SVM), TF-IDF, Political Opinion

Abstract

This study aims to analyze public sentiment towards the 2024 North Sumatra gubernatorial election by leveraging social media data, specifically TikTok, which has become a major platform for political discourse in Indonesia. The two competing candidate pairs, Bobby Nasution–Surya and Edy Rahmayadi–Hasan Basri, have sparked widespread online discussions that range from enthusiastic support to harsh criticism. These interactions have a significant impact on public opinion formation and may influence electoral outcomes. To address this phenomenon, this research implements a sentiment classification model using the Support Vector Machine (SVM) algorithm with a polynomial kernel, known for its effectiveness in handling high-dimensional textual data. A total of 2,100 TikTok comments were collected using scraping techniques via Python. The data then underwent several preprocessing stages, including case folding, cleaning, normalization, tokenizing, slangword removal, stopword removal, and stemming. Feature extraction was conducted using the TF-IDF method, followed by lexicon-based sentiment labeling into positive and negative classes. The classification model achieved an accuracy of 82%, with a positive sentiment precision of 0.81, recall of 0.96, and F1-score of 0.88. For negative sentiment, the precision was 0.86, recall 0.51, and F1-score 0.64. These findings indicate that the model performs well in identifying explicit positive sentiments but faces challenges in recognizing complex negative expressions such as sarcasm or implicit criticism. The results provide valuable insights into digital political behavior and demonstrate the potential of machine learning-based sentiment analysis as a tool for monitoring public perception in real time during elections.

Downloads

Download data is not yet available.

References

Arsi, P., & Waluyo, R. (2021). Analisis Sentimen Wacana Pemindahan Ibu Kota Indonesia Menggunakan Algoritma Support Vector Machine (SVM). Jurnal Teknologi Informasi Dan Ilmu Komputer, 8(1), 147. https://doi.org/10.25126/jtiik.0813944

Aulia, T. M. P., Arifin, N., & Mayasari, R. (2021). Perbandingan Kernel Support Vector Machine (Svm) Dalam Penerapan Analisis Sentimen Vaksinisasi Covid-19. SINTECH (Science and Information Technology) Journal, 4(2), 139–145. https://doi.org/10.31598/sintechjournal.v4i2.762

Fahlevvi, M. R. (2022). Analisis Sentimen Terhadap Ulasan Aplikasi Pejabat Pengelola Informasi Dan Dokumentasi Kementerian Dalam Negeri Republik Indonesia Di Google Playstore Menggunakan Metode Support Vector Machine. Jurnal Teknologi Dan Komunikasi Pemerintahan, 4(1), 1–13. https://doi.org/10.33701/jtkp.v4i1.2701

Fathiarahma, A., Voutama, A., Ridwan, T., & Heryana, N. (2023). Analisis Text Mining Klasifikasi Kegiatan Keluarga menggunakan Orange dengan Metode Naive Bayes. Jurnal Teknologi Terpadu, 9(1), 35–41. https://doi.org/10.54914/jtt.v9i1.606

Furqan, M., Sriani, S., & Sari, S. M. (2022). Analisis Sentimen Menggunakan K-Nearest Neighbor Terhadap New Normal Masa Covid-19 Di Indonesia. Techno.Com, 21(1), 51–60. https://doi.org/10.33633/tc.v21i1.5446

Insani, S. C., Khuzaimah, N. A. Z., Maryadi, V. Z. D., & Hafizha, T. A. (2023). Meninjau Etika Masyarakat Indonesia Dalam Bermedia Sosial Di Masa Pemilu Menggunakan Etika Media Sosial. Nusantara: Jurnal Pendidikan, Seni, Sains Dan Sosial Humanioral, 1:2(September), 1–25. https://doi.org/10.11111/nusantara.xxxxxxx Nur, A. A., Dyah, A. G. R., Salima, H. N. S., & Rafi, A. M. A. (2023). Prospek Penggunaan Tiktok Sebagai Instrumen Politik Pada Pemilihan Umum 2024 Penulis. In Laboratorium Indonesia 2045 (Issue 2).

Puspitarini, D. S., & Nuraeni, R. (2019). Pemanfaatan Media Sosial Sebagai Media Promosi. Jurnal Common, 3(1), 71–80. https://doi.org/10.34010/common.v3i1.1950

Rabbani, S., Safitri, D., Rahmadhani, N., Sani, A. A. F., & Anam, M. K. (2023). Perbandingan Evaluasi Kernel SVM untuk Klasifikasi Sentimen dalam Analisis Kenaikan Harga BBM. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 3(2), 153–160. https://doi.org/10.57152/malcom.v3i2.897

Rifaldi, D., Abdul Fadlil, & Herman. (2023). Teknik Preprocessing Pada Text Mining Menggunakan Data Tweet “Mental Health.” Decode: Jurnal Pendidikan Teknologi Informasi, 3(2), 161–171. https://doi.org/10.51454/decode.v3i2.131

Romzi, M., & Kurniawan, B. (2020). Pembelajaran Pemrograman Python Dengan Pendekatan Logika Algoritma. JTIM: Jurnal Teknik Informatika Mahakarya, 03(2), 37–44.

Septian, J. A., Fachrudin, T. M., & Nugroho, A. (2019). Analisis Sentimen Pengguna Twitter Terhadap Polemik Persepakbolaan Indonesia Menggunakan Pembobotan TF-IDF dan K-Nearest Neighbor. Journal of Intelligent System and Computation, 1(1), 43–49. https://doi.org/10.52985/insyst.v1i1.36

Shevira, S., Suarjaya, I. M. A. D., & Buana, P. W. (2022). Pengaruh Kombinasi dan Urutan Pre-Processing pada Tweets Bahasa Indonesia. JITTER?: Jurnal Ilmiah Teknologi Dan Komputer, 3(2), 1074. https://doi.org/10.24843/jtrti.2022.v03.i02.p06 Tarihoran, Y., & Manurip, K. J. (2018). Analisis Sentimen Pemilihan Gubernur Jawa Barat Tahun 2018 Dengan Aplikasi Twitter Menggunakan Metode Naïve Bayesian Classification. TeIKa, 8(1), 99–105. https://doi.org/10.36342/teika.v8i1.2243

Utami, D. S., & Erfina, A. (2021). Analisis Sentimen Pinjaman Online Di Twitter Menggunakan Algoritma Support Vector Machine (Svm). SISMATIK (Seminar Nasional Sistem Informasi Dan Manajemen Informatika), 1, 299–305.

Downloads

Published

2025-07-23

How to Cite

Istiqomah, I., & Lubis, A. H. (2025). Sentiment Analysis on TikTok Discourse Surrounding the 2024 North Sumatra Gubernatorial Election Using Support Vector Machine Algorithm. Journal of Computer Networks, Architecture and High Performance Computing, 7(3), 840–853. https://doi.org/10.47709/cnahpc.v7i3.6549

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.