Public Opinion Sentiment Analysis of the #BoikotTrans7 Hashtag Case on YouTube Using the Naive Bayes Classifier Method

Authors

  • Mateus Jemboin Institut Bisnis dan Teknologi Indonesia
  • Desak Made Dwi Utami Putra Institut Bisnis dan Teknologi Indonesia
  • I Gede Made Yudi Antara Institut Bisnis dan Teknologi Indonesia
  • I Gusti Agung Indrawan Institut Bisnis dan Teknologi Indonesia
  • I Gede Iwan Sudipa Institut Bisnis dan Teknologi Indonesia

DOI:

https://doi.org/10.59261/jbt.v7i3.673

Keywords:

Sentiment Analysis, #BoikotTrans7, Naive Bayes, YouTube, SMOTE

Abstract

Background: The emergence of the hashtag #BoikotTrans7 on social media was triggered by public reaction to the broadcast of the “Xpose Uncensored” program on Trans7, which was perceived as offensive to the dignity of Islamic boarding schools (Pesantren) and religious figures. This issue quickly developed into widespread public discourse on digital platforms, particularly in YouTube comments.

Objective: This study aims to analyze public sentiment on YouTube to identify patterns of opinion and public response regarding the #BoikotTrans7 controversy.

Methods: Data were collected using the YouTube Data API v3 through a data crawling process from October 15 to December 4, 2025, resulting in 10,490 comments. Sentiment analysis was conducted using the Naïve Bayes classifier with TF-IDF (Term Frequency–Inverse Document Frequency) feature extraction. To improve model performance, class imbalance was addressed using the Synthetic Minority Over-sampling Technique (SMOTE), and hyperparameter optimization was performed using GridSearchCV.

Results: The Naïve Bayes model achieved an accuracy of 78.46% in classifying sentiments into positive, negative, and neutral categories. The findings indicate that positive sentiment dominated YouTube comments, largely originating from users supporting Trans7 rather than boycott supporters. This suggests a discrepancy between viral hashtag narratives and actual public opinion on YouTube. Word cloud visualization highlights dominant keywords such as “Pesantren,” “Kyai,” “Santri,” and “maaf,” indicating that religious and cultural elements strongly shape the discourse surrounding the controversy.

Conclusion: The study provides insights for broadcasting evaluation and contributes to the development of sentiment analysis and text mining methodologies in social media research.

References

Agusia, P., Manurung, M. U. A., Calista, V., & Mawardi, V. C. (2024). Pemanfaatan Word Cloud Pada Analisis Sentimen Dalam Menggali Persepsi Publik. Seminar Nasional CORISINDO, 25–30.

Aminu, S., & Aliyu, A. M. (2024). Impact of Printed and Audio-Visual Media on Students’ Academic Performance in Secondary Schools in Katsina State. UMYU Journal of Educational Research, 12(2), 73–82.

Artana, I. K., Pradnyana, A., & Darmawiguna, I. G. (2023). Analisis Sentimen Twitter untuk Menilai Kesiapan Pembelajaran Tatap Muka Terbatas dengan Inset Lexicon dan Levenshtein Distance. Jurnal Pendidikan Teknologi Dan Kejuruan, 20(2), 200–209.

Aufar, A. F., Mochamad Alfan Rosid, Eviyanti, A., & Astutik, I. R. I. (2023). Optimizing Text Preprocessing for Accurate Sentiment Analysis on E-Wallet Reviews. JICTE (Journal of Information and Computer Technology Education), 7(2), 42–50. https://doi.org/10.21070/jicte.v7i2.1650

Bisono, A. T., & Zulherry, A. (2025). Analisis Sentimen Game Genshin Impact untuk Mengetahui Reaksi dan Harapan Pemain Menggunakan Metode Naïve Bayes. Sudo Jurnal Teknik Informatika, 4(2), 183–193. https://doi.org/10.56211/sudo.v4i2.1131

Endah Fauziningrum, M. P., & M. Pd Encis Indah Suryaningsih, S. T. (2021). Evaluasi Dan Prediksi Penguasaan Bahasa Inggris Maritim Menggunakan Metode Decision Tree Dan Confusion Matrix (Studi Kasus Di Universitas Maritim Amni). Angewandte Chemie International Edition, 6(11), 951–952., 5–24.

Erlin, E., Desnelita, Y., Nasution, N., Suryati, L., & Zoromi, F. (2022). Dampak SMOTE terhadap Kinerja Random Forest Classifier berdasarkan Data Tidak seimbang. MATRIK : Jurnal Manajemen, Teknik Informatika Dan Rekayasa Komputer, 21(3), 677–690. https://doi.org/10.30812/matrik.v21i3.1726

Facchinetti, R. (2021). News discourse and the dissemination of knowledge and perspective: From print and monomodal to digital and multisemiotic. Journal of Pragmatics, 175, 195–206.

Garnham, N. (2020). The media and the public sphere. In The information society reader (pp. 357–365). Routledge.

Grossman, E. (2022). Media and policy making in the digital age. Annual Review of Political Science, 25, 443–461.

Hartati, T., Sohadi, R. T., Tohidi, E., & Wahyudin, E. (2024). Jurnal Informatika dan Rekayasa Perangkat Lunak Penerapan Algoritma Naive Bayes pada Analisis Sentimen Ulasan Aplikasi Whoosh-Kereta Cepat Di Google Play Store. Jurnal Informatika Dan Rekayasa Perangkat Lunak, 6(1), 244–249.

Jonkman, J. G. F., Boukes, M., Vliegenthart, R., & Verhoeven, P. (2020). Buffering negative news: Individual-level effects of company visibility, tone, and pre-existing attitudes on corporate reputation. Mass Communication and Society, 23(2), 272–296. https://doi.org/10.1080/15205436.2019.1694155

Kevin, K., Enjeli, M., & Wijaya, A. (2024). Analisis Sentimen Pengunaaan Aplikasi Kinemaster Menggunakan Metode Naive Bayes. Jurnal Ilmiah Computer Science, 2(2), 89–98. https://doi.org/10.58602/jics.v2i2.24

Labafi, S., Ebrahimzadeh, S., Kavousi, M. M., Abdolhossein Maregani, H., & Sepasgozar, S. (2022). Using an Evidence-Based Approach for Policy-Making Based on Big Data Analysis and Applying Detection Techniques on Twitter. Big Data and Cognitive Computing, 6(4), 160.

Liu, B. (2012). Sentiment analysis and opinion mining. https://doi.org/10.2200/S00416ED1V01Y201204HLT016.

Maulana, B. A., Fahmi, M. J., Imran, A. M., & Hidayati, N. (2024). Analisis Sentimen Terhadap Aplikasi Pluang Menggunakan Algoritma Naive Bayes dan Support Vector Machine (SVM). MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(2), 375–384. https://doi.org/10.57152/malcom.v4i2.1206

Mohammadi, R., & Jafari, J. S. (2025). The Role of Social Media in Shaping Regulatory Policies for Digital Businesses: Business and Policy Perspectives. Future of Work and Digital Management Journal, 3(1), 1–10.

Prasetija, Z. R. N. S., Romadhony, A., & Setiawan, E. B. (2022). Analisis Pengaruh Normalisasi Teks pada Klasifikasi Sentimen Ulasan Produk Kecantikan. E-Proceeding of Engineering, 9(3), 1769–1775.

Putra, D., Ilhaq, M., Desain, P., Visual, K., Jl, P. P., No, B. R., Jl, P., Royong, G., & Palembang, U. (2021). Pemahaman dasar film dokumenter televisi. 6(2), 86–91.

Zhou, R., Khemmarat, S., Gao, L., Wan, J., & Zhang, J. (2016). How YouTube videos are discovered and its impact on video views. Multimedia Tools and Applications, 75(10), 6035–6058.

Downloads

Published

2026-06-23