Classification of Hate Speech in TikTok Social Media Comments Using Naive Bayes Algorithm and TF-IDF Weighting
Authors:
- Putri Febi UtamiPUPutri Febi Utami
- Dwi KrisbiantoroDKDwi Krisbiantoro
- Irfan SantikoISIrfan Santiko
- Andi Dwi RiyantoARAndi Dwi Riyanto
Open Access
- 27 December 2025
- journal article
- Published by Universitas AMIKOM Purwokerto in Journal of Multimedia Trend and Technology
- Vol. 4 (3) , 161-173
Abstract
This research focuses on the classification of hate speech in Indonesian Tik Tok comments. Tik Tok, as a social media platform with high interaction intensity, generates a large volume of comments with diverse linguistic characteristics, including the use of formal and informal language. This linguistic variation poses challenges in the content moderation process, particularly in automatically identifying hate speech. The research dataset is secondary data obtained by combining public datasets and scraped Tik Tok comments, with an initial total of 5,698 comments. The collected data represent general user comments with variations in formal and informal language. To improve data quality, pre-processing stages were carried out including text cleaning, tokenization, normalization, stop-word removal, and stemming. After pre-processing, 4,542 comments were obtained that were suitable for use in the modeling process. Experimental results show that the Multinomial Naïve Bayes model with TF-IDF weighting is able to classify hate speech with high performance. Model accuracy reached 93% before parameter optimization and increased to 95% after hyperparameter tuning with an alpha value of 0.5. The confusion matrix results show a relatively low misclassification rate, although the class distribution in the dataset still shows imbalance. The findings of this study indicate that the Multinomial Naïve Bayes approach is effective in recognizing linguistic patterns of hate speech in Indonesian TikTok comments, including text with informal language characteristics.Keywords
This publication has 19 references indexed in Scilit:
- Sentiment Analysis on SocialMedia Using TF-IDF Vectorization and H2O Gradient Boosting for Student Anxiety DetectionScientific Journal of Informatics, 2024
- BIJAKAWEB: Platform Berbasis Web Untuk Deteksi Hate Speech Pada Komentar Berita Bahasa IndonesiaJurnal Teknologi Informasi dan Ilmu Komputer, 2024
- Perilaku Cyberbullying Pada Media Sosial TikTok (Analisis Isi Kualitatif Perilaku Cyberbullying Di Kolom Komentar Dalam Akun TikTok @ofp24)LINIMASA: JURNAL ILMU KOMUNIKASI, 2024
- Deteksi hate speech pada kolom komentar TikTok dengan menggunakan SVMThe Indonesian Journal of Computer Science, 2024
- IDENTIFIKASI DAN NORMALISASI TEKS SLANG DENGAN FASTTEXT PADA TWITTER DALAM BAHASA INDONESIAJurnal Pendidikan Teknologi dan Kejuruan, 2024
- Building Prediction Model for Detecting Cyberbullying using TikTok Comments2023
- Hoax Detection News Using Naïve Bayes and Support Vector Machine AlgorithmInternational Journal of Advances in Data and Information Systems, 2023
- Comparison of Naive Bayes and SVM Classification in Grid-Search Hyperparameter Tuned and Non-Hyperparameter Tuned Healthcare Stock Market Sentiment AnalysisInternational Journal of Advanced Computer Science and Applications, 2022
- Analisis Sentimen terhadap Komentar Negatif di Media Sosial Facebook dengan Metode Klasifikasi Naïve BayesBuletin Sistem Informasi dan Teknologi Islam, 2020
- Comparative Analysis of Text Classification Using Naive Bayes and Support Vector Machine in Detecting Negative Content in Indonesian TwitterInternational Journal of Advanced Trends in Computer Science and Engineering, 2019