Evaluating Lexical and Semantic Representations for Cyberbullying-Related Utterance Classification in Indonesian High School Students
DOI:
https://doi.org/10.29408/edumatic.v10i3.37167Keywords:
cyberbullying-related utterances, sentence-bert, shap, text classification, tf-idfAbstract
Evidence on classifying cyberbullying-related utterances in Indonesian schools remains limited. We compared three approaches for classifying student-written texts against school counselors’ reference labels: term frequency-inverse document frequency with logistic regression (TF-IDF), Sentence-BERT with logistic regression (SBERT LR), and Sentence-BERT with a deep neural network (SBERT DNN). Two counselors labeled texts from 143 students in a structured writing task at one Indonesian high school. Preprocessing yielded 2,775 utterances. We used five-fold cross-validation, keeping each student’s responses within a single partition. TF-IDF with logistic regression achieved the highest mean positive-class F1 score (86.28%), compared with 81.17% for SBERT LR and 81.57% for SBERT DNN. The pooled F1 difference between the SBERT models was 0.35 percentage points (95% confidence interval: −0.55 to 1.25), indicating no clear performance advantage. In 77 multiword diagnostic cases, SHAP-guided masking at a nominal 30% reduced the predicted class probability by a mean of 42.09 percentage points, compared with 15.38 under random masking. These findings support TF-IDF with logistic regression as the strongest tested baseline and indicate that local predictions are sensitive to SHAP-selected words. Because the labels reflect counselors’ judgments of elicited utterances, not verified cyberbullying incidents, predictions should support rather than replace contextual review.
References
A’la, F. Y. (2025). Optimasi Klasifikasi Sentimen Ulasan Game Berbahasa Indonesia: IndoBERT dan SMOTE untuk Menangani Ketidakseimbangan Kelas. Edumatic: Jurnal Pendidikan Informatika, 9(1), 256–265. https://doi.org/10.29408/edumatic.v9i1.29666
Anistya, F., & Setiawan, E. B. (2021). Hate Speech Detection on Twitter in Indonesia with Feature Expansion Using GloVe. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 5(6), 1044–1051. https://doi.org/10.29207/resti.v5i6.3521
Asqolani, I. A., & Setiawan, E. B. (2023). Hybrid Deep Learning Approach and Word2Vec Feature Expansion for Cyberbullying Detection on Indonesian Twitter. Ingénierie Des Systèmes d Information, 28(4), 887–895. https://doi.org/10.18280/isi.280410
Borualogo, I. S., Wahyudi, H., & Kusdiyati, S. (2023). Prevalence and Predictors of Cyberbullying in Middle and High School Students During the COVID-19 Pandemic. Jurnal Psikologi, 50(2), 206–218. https://doi.org/10.22146/jpsi.76494
Dwitama, A. P. J., Fudholi, D. H., & Hidayat, S. (2023). Indonesian Hate Speech Detection Using Bidirectional Long Short-Term Memory (Bi-LSTM). Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 7(2), 302–309. https://doi.org/10.29207/resti.v7i2.4642
Ejaz, N., Razi, F., & Choudhury, S. (2024). Towards comprehensive cyberbullying detection: A dataset incorporating aggressive texts, repetition, peerness, and intent to harm. Computers in Human Behavior, 153, 108123. https://doi.org/10.1016/j.chb.2023.108123
Fati, S. M., Mahdi, M. A., Hazber, M. A. G., Ahamad, S., Saad, S. A., Ragab, M. G., & Al-Shalabi, M. (2025). Enhancing Multi-Class Cyberbullying Classification with Hybrid Feature Extraction and Transformer-Based Models. Computer Modeling in Engineering & Sciences, 143(2), 2109–2131. https://doi.org/10.32604/cmes.2025.063092
Gamal, D., Alfonse, M., Jiménez-Zafra, S. M., & Aref, M. (2023). Intelligent Multi-Lingual Cyber-Hate Detection in Online Social Networks: Taxonomy, Approaches, Datasets, and Open Challenges. Big Data and Cognitive Computing, 7(2), 58. https://doi.org/10.3390/bdcc7020058
Gutiérrez-Batista, K., Gómez-Sánchez, J., & Fernandez-Basso, C. (2024). Improving automatic cyberbullying detection in social network environments by fine-tuning a pre-trained sentence transformer language model. Social Network Analysis and Mining, 14(1), 136. https://doi.org/10.1007/s13278-024-01291-0
Hasan, M. T., Hossain, M. A. E., Mukta, M. S. H., Akter, A., Ahmed, M., & Islam, S. (2023). A review on deep-learning-based cyberbullying detection. Future Internet, 15(5), 179. https://doi.org/10.3390/fi15050179
Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
Li, T., Zeng, Z., & Sun, S. (2025). A two-stage cyberbullying detection based on multi-view features and decision fusion strategy. Applied Intelligence, 55(4), 294. https://doi.org/10.1007/s10489-024-06049-x
Loseto, G., Gramegna, F., Pinto, A., Scioscia, F., & Ruta, M. (2026). A hybrid framework combining large language models and Shapley-based methods for explainable cyberbullying detection. Discover Artificial Intelligence, 6(1), 1158. https://doi.org/10.1007/s44163-026-02204-0
Lyu, Q., Apidianaki, M., & Callison-Burch, C. (2024). Towards Faithful Model Explanation in NLP: A Survey. Computational Linguistics, 50(2), 657–723. https://doi.org/10.1162/coli_a_00511
Muneer, A., Alwadain, A., & Ragab, M. G. (2023). Cyberbullying Detection on Social Media Using Stacking Ensemble Learning and Enhanced BERT. https://doi.org/10.3390/info14080467
Musembi, N. K., Gakii, C., & Mugo, D. M. (2026). Hybrid model for detection of cyberbullying on social media through emotional and sentiment analysis. Discover Artificial Intelligence, 6(1), 842. https://doi.org/10.1007/s44163-026-01514-7
Pamput, J. P., Muthmainnah, A. R., Surianto, D. F., Budiarti, N. A. E., & Wahid, A. (2026). Evaluating Synonym Augmentation Impact on SBERT Performance for Indonesian Social Media Style Classification. Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control, 11(2), 373–382. https://doi.org/10.22219/kinetik.v11i2.2580
Park, Y., & Shin, Y. (2023). Using Multiple Monolingual Models for Efficiently Embedding Korean and English Conversational Sentences. Applied Sciences, 13(9), 5771. https://doi.org/10.3390/app13095771
Paul, S., & Saha, S. (2022). CyberBERT: BERT for cyberbullying identification. Multimedia Systems, 28(6), 1897–1904. https://doi.org/10.1007/s00530-020-00710-4
Qu, W., Chen, C., Lu, W., Chen, H., & Li, T. (2026). Towards trustworthy and interpretable prediction of school bullying: A NAS-driven framework with Shapley value explanation. Neurocomputing, 659, 131744. https://doi.org/10.1016/j.neucom.2025.131744
Rasyad, G. S., & Maharani, W. (2025). Logistic regression and Naïve Bayes comparison in classifying emotions on Indonesian X social media. Edumatic: Jurnal Pendidikan Informatika, 9(1), 31–40. https://doi.org/10.29408/edumatic.v9i1.29120
Rosenblatt, M., Tejavibulya, L., Jiang, R., Noble, S., & Scheinost, D. (2024). Data leakage inflates prediction performance in connectome-based machine learning models. Nature Communications, 15(1), 1829. https://doi.org/10.1038/s41467-024-46150-w
Sari, T. I., Ardilla, Z. N., Hayatin, N., & Maskat, R. (2022). Abusive comment identification on Indonesian social media data using hybrid deep learning. IAES International Journal of Artificial Intelligence (IJ-AI), 11(3), 895–904. https://doi.org/10.11591/ijai.v11.i3.pp895-904
Sarumpaet, L. H., & Suryono, R. R. (2025). Analisis Sentimen Publik Program PPPK di Media Sosial X menggunakan Naïve Bayes dan SVM. Edumatic: Jurnal Pendidikan Informatika, 9(2), 362–371. https://doi.org/10.29408/edumatic.v9i2.30065
Schwalbe, G., & Finzel, B. (2024). A comprehensive taxonomy for explainable artificial intelligence: a systematic survey of surveys on methods and concepts. Data Mining and Knowledge Discovery, 38(5), 3043–3101. https://doi.org/10.1007/s10618-022-00867-8
Syaputa, M. R., Arifin, M., & Fithri, D. L. (2025). Klasifikasi Sentimen Ulasan E-Wallet menggunakan TF-IDF dan Random Forest dengan Penyeimbangan Data SMOTE. Edumatic: Jurnal Pendidikan Informatika, 9(2), 532–541. https://doi.org/10.29408/edumatic.v9i2.31084
Tuarob, S., Satravisut, M., Sangtunchai, P., Nunthavanich, S., & Noraset, T. (2023). FALCoN: Detecting and classifying abusive language in social networks using context features and unlabeled data. Information Processing & Management, 60(4), 103381. https://doi.org/10.1016/j.ipm.2023.103381
Waleska, R. F., Asnal, H., Rahmiati, R., & Gunadi, G. (2025). Aplikasi Chatbot Interaktif Pembelajaran Bahasa Pemrograman PHP dengan Algoritma NLP berbasis BERT. Edumatic: Jurnal Pendidikan Informatika, 9(2), 609–618. https://doi.org/10.29408/edumatic.v9i2.31427
Yang, X., Lv, W., Reusens, M., Zhang, B., & Baesens, B. (2026). A benchmark framework for detecting cyberbullying: Conceptual and operational definitions, dataset development, and methods evaluation. Information Processing & Management, 63(8), 104903. https://doi.org/10.1016/j.ipm.2026.104903
Zhang, W., Huang, S., Lam, L., Evans, R., & Zhu, C. (2022). Cyberbullying definitions and measurements in children and adolescents: Summarizing 20 years of global efforts. Frontiers in Public Health, 10, 1000504. https://doi.org/10.3389/fpubh.2022.1000504
Zhou, J., Gandomi, A. H., Chen, F., & Holzinger, A. (2021). Evaluating the Quality of Machine Learning Explanations: A Survey on Methods and Metrics. Electronics, 10(5), 593. https://doi.org/10.3390/electronics10050593
Zhu, C., Huang, S., Evans, R., & Zhang, W. (2021). Cyberbullying Among Adolescents and Children: A Comprehensive Review of the Global Situation, Risk Factors, and Preventive Measures. Frontiers in Public Health, 9, 634909. https://doi.org/10.3389/fpubh.2021.634909
Zikrina, S. A., & Fitriyani. (2025). Advancing Hate Speech Detection in Indonesian Language Using Graph Neural Networks and TF-IDF. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 9(1), 137–145. https://doi.org/10.29207/resti.v9i1.6179
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Angger Dimas Bayu Sadewo, Totok Chamidy, Mochamad Imamudin

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles in this journal are the sole responsibility of the authors. Edumatic: Jurnal Pendidikan Informatika can be accessed free of charge, in accordance with the Creative Commons license used.

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


