Abstract
Traditional cyberbullying detection systems often rely on binary "bullying vs. non-bullying" classification, ignoring the complex social dynamics of online harassment. This paper presents a novel approach using a hierarchical ensemble of BERT models to identify specific participant roles, including harassers, victims, and bystanders. Our system achieves an F1-score of 0.83 for binary detection and a weighted F1-score of 0.76 for role identification, significantly outperforming previous state-of-the-art baselines.
Introduction
Most automated cyberbullying detection systems treat posts in isolation, focusing on whether a specific text is "bullying" or "not." While useful for basic filtering, this binary approach fails to distinguish between the person initiating harm (the harasser), the target (the victim), and those on the sidelines (bystanders). Identifying these roles is essential for precise detection and effective intervention. For example, a victim who retaliates with aggressive language might be incorrectly flagged as a harasser by a simple binary model. Understanding the role provides the context necessary to handle these nuanced situations.
Methods
The researchers developed a supervised learning framework addressing two main tasks: binary classification and multi-class role identification. For the latter, they developed a hierarchical ensemble of BERT models. Instead of a single multi-class classifier, the problem was decomposed into specialized sub-models to capture more granular linguistic features.
As shown in the architecture above, the system first employs an Outer Model to classify a post as "Bullying" or "Defending." Depending on this initial classification, the post is routed to either a Bullying Model (distinguishing between "Harasser" and "Bystander Assistant") or a Defending Model (distinguishing between "Victim" and "Bystander Defender"). To mitigate significant class imbalance, weighted random sampling was used during training.
Datasets
The study utilized the AMiCA dataset, consisting of data from the social networking site ASKfm. Posts were annotated by linguists using the BRAT tool across four roles: Harasser, Victim, Bystander Defender (who helps the victim), and Bystander Assistant (who encourages the harasser). The cyberbullying-related portion contained 5,380 instances, heavily skewed toward Harassers (3,576) and Victims (1,356), with only 24 Bystander Assistants.
Key Results
The proposed hierarchical approach demonstrated significant improvements over existing methods. The DistilBERT ensemble for binary classification achieved an F1-score of 0.83, a substantial increase from the previous state-of-the-art baseline of 0.64.
The hierarchical ensemble reached a weighted F1-score of 0.76 for role identification. As detailed in the results table, the "Defending" sub-model was particularly effective, identifying Victims with an F1 of 0.95. However, the "Bystander Assistant" role proved extremely challenging, yielding a 0.00 F1-score in the final ensemble. This is attributed to both extreme data scarcity and the linguistic similarity between assistants and primary harassers.
Discussion and Conclusion
A key insight from this research is the "Aggressive Victim" overlap. Victims often use swearing or insults to defend themselves, creating linguistic patterns that mirror harassment. This overlap makes it difficult for models to distinguish between a harasser and a retaliating victim without broader context.
While the hierarchical specialization allows for learning granular features, the current system is limited by analyzing individual posts in isolation. Cyberbullying is inherently conversational; future work will focus on thread-level analysis to capture discourse relationships and improve the detection of "aggressive victims" to prevent them from being misidentified as primary harassers.
Summary updated