ANALISIS SENTIMEN TERHADAP PIDATO PRESIDEN 2026 PADA APLIKASI TIKTOK DAN X MENGGUNAKAN METODE NAIVE BAYES CLASSIFIER

Authors

  • Muh. Yusril Hidayat Institut Teknologi dan Kesehatan Aspirasi

Abstract

The rise of social media platforms like TikTok and X has made them primary channels for the public to express opinions on various public issues, including the 2026 Presidential speech. The massive volume of comments generated necessitates sentiment analysis to automatically identify public opinion trends. This study aims to analyze public sentiment regarding the 2026 Presidential speech on TikTok and X using the Naive Bayes Classifier method. A quantitative approach based on text mining was employed, utilizing a secondary dataset of 2,000 comments obtained from Kaggle. The data underwent pre-processing stages—including cleaning, case folding, tokenizing, stopword removal, and stemming—followed by feature extraction using Term Frequency–Inverse Document Frequency (TF-IDF). Classification was performed using the Multinomial Naive Bayes algorithm and evaluated via a confusion matrix based on accuracy, precision, recall, and F1-score. The results indicate a sentiment distribution of 47.00% positive, 29.90% neutral, and 23.10% negative. The developed model achieved an accuracy of 82.25%, a weighted precision of 84.22%, a weighted recall of 82.25%, and a weighted F1-score of 82.06%, demonstrating good classification performance on Indonesian text data. However, the model struggled to distinguish between neutral and negative sentiments due to linguistic context similarities. The study concludes that the combination of pre-processing, TF-IDF weighting, and the Naive Bayes Classifier algorithm constitutes an effective approach for social media sentiment analysis; nevertheless, validation using original scraped data and comparisons with other algorithms are still required to enhance the model's accuracy and generalization capabilities

Downloads

Download data is not yet available.

References

Albarzand, A.F. (2024) “Peran Tiktok Sebagai Media Komunikasi Politik Bagi Generasi Milenial ( Studi Kasus Pada Karyawan Duta Lampung Tahun 2024 ),” 11(2), pp. 511–516.

Apriani, E., Hanif, I.F. and Oktavianalisti, F. (2024) “Sentiment Analysis of Using TikTok as a Learning Media Using the Naïve Bayes Classifiers Algorithm Analisis Sentimen Penggunaan TikTok Sebagai Media Pembelajaran Menggunakan Algoritma Naïve Bayes Classifier,” 4(July), pp. 1160–1168.

Fauzi, A.A., Liandaputra, D. and Yuni, T.D. (2026) “Analisis Komparatif Metode Machine Learning dalam Klasifikasi Risiko Penyakit Jantung Berbasis Data Kaggle,” (April).

Fitrianti, S. et al. (2025) “Analisis Sentimen Media Sosial Terhadap Calon Pilkada 2024 Dengan Metode Naïve Bayes Social Media Sentiment Analysis Towards 2024 Regional Election Candidates Using the Naïve Bayes Method,” 5(1), pp. 167–176.

Giovani, A.P., Haryanti, T. and Kurniawati, L. (2020) “ANALISIS SENTIMEN APLIKASI RUANG GURU DI TWITTER MENGGUNAKAN ALGORITMA KLASIFIKASI,” 14(2), pp. 116–124.

Halizah, N. et al. (2026) “Perbandingan Kinerja Artificial Neural Network Random Forest dan LightGBM dalam Prediksi Penyakit Jantung Menggunakan Dataset Kaggle,” 12, pp. 196–209.

Jufri, I. and Sonni, A.F. (2025) “Analisis Respon Publik dan Sentimen Video Berbagi Willy Salim yang Viral di TikTok,” pp. 77–88.

Marwa, E.A. and Kristanto, A.B. (2022) “Analisis Sentimen Pengungkapan Informasi Manajemen : Text Mining Berbasis Metode VADER,” 6, pp. 2973–2984.

Naufal Alief Alghifari, M.A.A. (2025) “Analisis Sentimen Masyarakat terhadap Kebijakan Efisiensi Anggaran Pemerintah Menggunakan Metode Naive Bayes,” 2(1).

Nurrun Muchammad Shiddieqy Hadna, Paulus Insap Santosa, W.W.W. (2016) “STUDI LITERATUR TENTANG PERBANDINGAN METODE UNTUK PROSES,” 2016(Sentika), pp. 18–19.

Setiawan, K. et al. (2025) “PENGEMBANGAN MODEL ANALISIS SENTIMEN BERBASIS NAÏVE BAYES TERHADAP ISU KEPEMIMPINAN PRESIDEN PRABOWO DI TIKTOK,” 8, pp. 1111–1121.

Utami, P. et al. (2025) “PIDATO KENEGARAAN PRESIDEN PRABOWO PADA SIDANG TAHUNAN MAJELIS PERMUSYAWARATAN RAKYAT ( MPR ),” 3(12).

Downloads

Published

2026-01-30

How to Cite

Hidayat, M. Y. (2026) “ANALISIS SENTIMEN TERHADAP PIDATO PRESIDEN 2026 PADA APLIKASI TIKTOK DAN X MENGGUNAKAN METODE NAIVE BAYES CLASSIFIER”, SAINTEKES: Jurnal Sains, Teknologi Dan Kesehatan, 5(1), pp. 15–23. Available at: https://ejournal.itka.ac.id/index.php/saintekes/article/view/530 (Accessed: 28 September 2026).