Open Access Articles

Sentiment Analysis of TikTok Comments on Law Enforcement Misconduct Cases Using BiLSTM with RoBERTa Labeling

by Ajeng Windhyantika Dwi Ramadhani, Agung Tri Utomo , Patonangi M, Emanuel Gepetrix Excelcis Badin, Alfia Fharanita
Universitas Negeri Makassar, Indonesia
ARRUS Journal, Indonesia
Universitas Negeri Makassar, Indonesia
Universitas Negeri Makassar, Indonesia
Universitas Negeri Makassar, Indonesia
* Author to whom correspondence should be addressed.
ARRUS Journal of Mathematics and Applied Science 2026, 6(3), 207-215; https://doi.org/10.35877/mathscience5586
Submission received: 2026-11-11 Published: 2026-11-19
(This article belongs to the Section Articles)
Download PDF

Abstract

This study examines the sentiment distribution of TikTok comments on four law enforcement misconduct cases, explores how the comments relate to officer accountability and expectations of government responsiveness, and evaluates sentiment classification with a bidirectional long short-term memory (BiLSTM) network. The study uses a quantitative approach with comments from four purposively selected TikTok posts. Web scraping collects 3,685 comments, which decrease to 3,446 after the removal of empty and duplicate texts. RoBERTa assigns negative, neutral, and positive labels, and the normalized texts with these labels train the BiLSTM. A stratified split reserves 20% of the data for testing, and random oversampling balances the classes in the training data. The labeling results show negative sentiment at 72.37%, followed by positive at 16.37% and neutral at 11.26%. On 690 test comments, the BiLSTM obtains an accuracy of 71.01% and a macro-F1 of 0.580. The accuracy is lower than the 72.32% of a majority-class baseline, but the macro-F1 is higher than the baseline of 0.280. The findings suggest that the comments express criticism, demands for sanctions, and sympathy toward victims, so positive sentiment does not always signal support for officers. Recognition of the neutral and positive classes remains limited, and the automatic labels lack human validation.

Keywords

Share and Cite

Ramadhani, A. W. D., Tri Utomo, A., M, P., Badin, E. G. E., & Fharanita, A. (2026). Sentiment Analysis of TikTok Comments on Law Enforcement Misconduct Cases Using BiLSTM with RoBERTa Labeling. ARRUS Journal of Mathematics and Applied Science, 6(3), 207–215. https://doi.org/10.35877/mathscience5586

Article Metrics

0Views
0Downloads
Download data is not yet available.
Copyright (c) 2026 Ajeng Windhyantika Dwi Ramadhani; Agung Tri Utomo; Patonangi M, Emanuel Gepetrix Excelcis Badin, Alfia Fharanita Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.