Enhancing Cyberbullying Detection in Social Media using Semi-supervised Learning

Diana Ionescu, Andrei Dumitrescu, Traian RebedeaRoCHI 2022

Introduction

Automated cyberbullying detection is a critical tool for maintaining healthy social media environments. However, the field faces a significant bottleneck: data scarcity. High-quality labeled datasets are small, expensive to produce, and often subjective. When models are trained on these limited sets, they frequently overfit to specific keywords rather than learning the subtle nuances of harassment. This research investigates whether semi-supervised learning (SSL) can mitigate this issue by leveraging the vast amounts of unlabeled data available on platforms like Twitter.

Methodology

The researchers evaluated two primary semi-supervised strategies to enhance baseline Support Vector Machine (SVM) and Neural Network (NN) models.

1. Pseudo-labeling with Back-translation

In this self-training approach, a model is initially trained on labeled data and then used to predict labels for an unlabeled set. High-confidence samples are added back into the training pool. To improve robustness, the authors integrated back-translation (English to German and back to English) using Facebook’s fairseq toolkit. This paraphrasing technique helps the model generalize by providing semantic variations of the same underlying message.

2. Co-training with Dual Embeddings

Co-training utilizes two different "views" of the same data. The authors achieved this by employing two distinct word embedding types: Word2Vec (trained on Google News) and GloVe (trained on Wikipedia). Two separate classifiers were trained—one for each embedding—and they iteratively labeled unlabeled data for one another. Samples were only added to the training set if both models agreed on the classification.

Experimental Setup

The study utilized a combination of existing benchmarks and custom data:

  • Labeled Data: 16,846 samples from Wikipedia, YouTube, and Twitter.
  • Unlabeled Data: 16,000 samples from the "Fine-Grained Balanced Cyberbullying Dataset."
  • Custom Twitter Data: 80,000 tweets crawled using 200 manually selected keywords such as "bullied," "idiot," and "kill."

Results and Performance Gains

The application of semi-supervised learning led to consistent improvements in model performance. The SVM model, in particular, demonstrated superior robustness compared to the Neural Network, suggesting that high-margin classifiers may be more effective for text classification when labeled data is limited.

Comparison of SVM and NN model performance before and after dataset enhancement.

As shown in the table above, the SVM's Macro F1-score improved from 76.96% to 77.72% after dataset enhancement. Co-training also proved effective, with the SVM reaching a 77.58% F1-score when using Word2Vec embeddings.

The "False Positive" Trap and Thresholding

A key insight from the study is the risk of iterative labeling. While initial iterations improve performance, continued cycles eventually introduce "noise" in the form of false positives. As the model ingests its own incorrect predictions, the Macro F1-score begins to decline.

Macro F1-score performance across multiple iterations of pseudo-labeling, showing the eventual decline in accuracy.

To combat this, the researchers found that increasing the confidence threshold is essential. By raising the threshold for accepting a pseudo-label from 50% to 70%, the number of false positives added to the training set for the Neural Network dropped significantly from 400 to 75, resulting in a higher-quality augmented dataset.

Conclusion

Semi-supervised learning offers a viable path for improving cyberbullying detection without the need for massive manual labeling efforts. While classical models like SVM currently outperform simple neural networks in this context, future work will explore more advanced architectures like BERT and RoBERTa. Additionally, refining the data collection process to increase the density of actual bullying instances in crawled data remains a priority for developing more effective detection systems.

Summary updated

BibTeX
@inproceedings{ionescu2022enhancing,
  author = {Diana Ionescu and Andrei Dumitrescu and Traian Rebedea},
  title = {{Enhancing Cyberbullying Detection in Social Media using Semi-supervised Learning}},
  booktitle = {RoCHI},
  year = {2022},
  url = {https://openreview.net/forum?id=-NqTkZlfxN6},
}
Figure