Malcom: Indonesian Journal of Machine Learning and Computer Science
Vol. 6 No. 3 (2026): MALCOM July 2026

Sentiment Analysis of Cyberbullying Against Children on Social Media: A Naïve Bayes Approach

Fatin, Alfindian Kurnia (Unknown)
Adhitama, Rifki (Unknown)
Istighosah, Maie (Unknown)



Article Info

Publish Date
28 Jul 2026

Abstract

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. 

Copyrights © 2026






Journal Info

Abbrev

malcom

Publisher

Subject

Computer Science & IT

Description

MALCOM: Indonesian Journal of Machine Learning and Computer Science is a scientific journal published by the Institut Riset dan Publikasi Indonesia (IRPI) in collaboration with several Universities throughout Riau and Indonesia. MALCOM will be published 2 (two) times a year, April and October, each ...