NLP-driven hate speech detection on TikTok: a case study from UIN Sunan Ampel Surabaya
Achmad Teguh Wibowo, Aris Fanani, Mujib Ridwan, Bramasta Kurnia Aji
Abstract
This study examines hate speech detection in TikTok comments using natural language processing (NLP) techniques within the student community of UIN Sunan Ampel Surabaya. A dataset of 10,000 comments associated with the hashtag #PBAKUINSA2023 was analyzed using a lexicon-based sentiment analysis approach implemented through the TextBlob library, combined with Indonesian text preprocessing techniques, including tokenization, normalization, stopword removal, and stemming using the Sastrawi library. The results indicate that the proposed approach achieved an accuracy of 0.85, with precision of 0.88, recall of 0.83, and an F1-score of 0.854. Most comments were classified as neutral, while 31.8% were positive, and only a small proportion were negative. These findings suggest that discussions related to campus activities tend to be neutral or supportive. However, the findings also reveal that sentiment polarity does not always directly correspond to hate speech, as certain harmful expressions may appear neutral in lexicon-based analysis. This limitation highlights the need for more context-aware approaches. Overall, the proposed method provides an efficient solution for monitoring online discourse in academic environments.
Keywords
hate speech detection; lexicon-based sentiment analysis; natural language processing; sentiment analysis; TikTok;
DOI:
http://doi.org/10.12928/telkomnika.v24i4.27419
Refbacks
There are currently no refbacks.
This work is licensed under a
Creative Commons Attribution-ShareAlike 4.0 International License .
TELKOMNIKA Telecommunication, Computing, Electronics and Control ISSN: 1693-6930 , e-ISSN: 2302-9293 Universitas Ahmad Dahlan , 4th Campus Jl. Ringroad Selatan, Kragilan, Tamanan, Banguntapan, Bantul, Yogyakarta, Indonesia 55191 Phone: +62 (274) 563515, 511830, 379418, 371120 Fax: +62 274 564604
<div class="statcounter"><a title="Web Analytics" href="http://statcounter.com/" target="_blank"><img class="statcounter" src="//c.statcounter.com/10241713/0/0b6069be/0/" alt="Web Analytics"></a></div> View TELKOMNIKA Stats