Sentiment Analysis of Cyberbullying Against Children on Social Media: A Naïve Bayes Approach
DOI:
https://doi.org/10.57152/malcom.v6i3.2858Keywords:
Cyberbullying, Data Balancing, Sentiment Analysis, Sentiment Classification, Social Media, TwitterAbstract
Cyberbullying involving children has become a major concern on social media, generating diverse public responses. This study aims to analyze public sentiment toward child cyberbullying cases on social media and to evaluate the effectiveness of data-balancing techniques in improving the performance of a Naïve Bayes (NB) classifier. The motivation for using NB lies in its computational efficiency, strong performance in text classification, and suitability for high-dimensional Term Frequency–Inverse Document Frequency (TF-IDF) features. A dataset consisting of 3,137 comments was collected from X/Twitter and processed through text preparation, lexicon-based sentiment labeling using Indonesian Sentiment Lexicon (InSet), and TF-IDF feature representation. Three balancing scenarios, namely Random Oversampling, Random Undersampling, and Non-Balancing, were compared by varying the proportion of training and testing samples across four split ratios: 90:10, 80:20, 70:30, and 60:40. The experimental results show that balancing techniques contribute to classification effectiveness, with Random Oversampling producing the best outcome. The highest accuracy of 86.36% was achieved with Random Oversampling and a 90:10 training-test split, outperforming Random Undersampling and Non-Balancing. Furthermore, the sentiment distribution indicates that negative sentiment dominates public responses to child cyberbullying incidents.
Downloads
References
H. S. N. Dwi, S. Susanti, and A. Reswara Sanjaya, “Analisis Sentimen Publik Terhadap Kampanye Pengurangan Sampah Plastik Menggunakan Algoritma Naïve Bayes,” Agustus, vol. 15, no. 2, pp. 202–212, 2025.
Y. Muhammad Zainun Irsyad, Syamsuddin Mallala, “Analisis sentimen dan klasifikasi tanggapan pengguna media sosial tiktok terhadap cyber security di indonesia,” 2014.
N. Apriliani, N. Suarna, and W. Prihartono, “Analisis Sentimen Review Penggunaan Tiktok Melalui Pendekatan Algoritma Naïve Bayes,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 6, pp. 3725–3731, 2024, doi: 10.36040/jati.v7i6.8299.
A. B. Carroll and J. A. Brown, Business & Society: Ethics, Sustainability & Stakeholder Management, 11th ed. Boston, MA: Cengage Learning, 2022.
T. Nita, R. G. Alam, and M. Muntahanah, “Identifikasi Cyberbullying Pada Media Sosial Menggunakan Algoritma Naïve Bayes,” Djtechno: Jurnal Teknologi Informasi, vol. 6, no. 2, pp. 738–748, 2025, doi: 10.46576/djtechno.v6i2.7154.
F. T. Samosir, D. N. Pitasari, and P. E. Tjahjono, “The Effectiveness of Youtube as a Student Learning Media (Study at the Faculty of Social and Political Sciences, University of Bengkulu),” Record and Library Journal, vol. 4, no. 2, pp. 81–91, 2018, [Online]. Available: https://e-journal.unair.ac.id/index.php/RLJ
D. S. Wijaya and D. Widyaningrum, “Komparasi Metode Algoritma Klasifikasi Pada Analisis Sentimen Komentar Cyberbullying Di Instagram,” Jurnal Teknik Informasi dan Komputer (Tekinkom), vol. 7, no. 1, p. 466, 2024, doi: 10.37600/tekinkom.v7i1.1392.
P. S. Rahmadani, F. C. Tampubolon, A. N. Jannah, N. L. H. Hutabarat, and A. M. Simarmata, “Tiktok Social Media Sentiment Analysis Using the Nave Bayes Classifier Algorithm,” SinkrOn, vol. 7, no. 3, pp. 995–999, 2022, doi: 10.33395/sinkron.v7i3.11579.
D. Budiman, Adhi Dwi Saputra, Revano Maliq Reynanda, and Anggraini Puspita Sari, “Analisis Sentimen Aplikasi Gojek Pada Twitter Menggunakan Algoritma Naive Bayes,” Jurnal Mahasiswa Teknik Informatika, vol. 3, no. 2, pp. 107–116, 2024, doi: 10.35473/jamastika.v3i2.3375.
A. D. Rahayu and E. I. H. Ujianto, “Public Sentiment Analysis on Bullying Cases of Binus Serpong Students Using the Naive Bayes Method,” Malaysian Journal of Science and Advanced Technology, vol. 4, no. 4, pp. 489–497, 2024, doi: 10.56532/mjsat.v4i4.412.
A. R. Ismail and Raden Bagus Fajriya Hakim, “Implementasi Lexicon Based Untuk Analisis Sentimen Dalam Menentukan Rekomendasi Pantai Di DI Yogyakarta Berdasarkan Data Twitter,” Emerging Statistics and Data Science Journal, vol. 1, no. 1, pp. 37–46, 2023, doi: 10.20885/esds.vol1.iss.1.art5.
D. Nafisah, Y. Rada, and D. A. Sitaniapessy, “Analisis Sentimen Terhadap Ulasan Penggunaan Aplikasi Game Online Playerunknown’s Battlegrounds (Pubg) Mobile Menggunakan Algoritma Naive Bayes,” Jurnal INOVATIF WIRA WACANA, vol. 04, no. 02, pp. 211–221, 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Alfindian Kurnia Fatin, Rifki Adhitama, Maie Istighosah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright © by Author; Published by Institut Riset dan Publikasi Indonesia (IRPI)
This Indonesian Journal of Machine Learning and Computer Science is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.










