NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Aggression Identification Using Deep Learning and Data Augmentation

Julian Risch, Ralf KrestelCOLING 2018

TL;DR

This paper tackles the challenge of automatically identifying aggressive content on social media by proposing a novel data augmentation technique using machine translation to significantly expand the training dataset. They then leverage this augmented data with a deep learning model (GRU-based neural network) and an ensemble of other classifiers to achieve robust aggression detection across different platforms and languages.

What Problem Does This Paper Address?

Social media platforms are vibrant spaces for discussion, but they are often marred by aggressive and toxic content that can stifle productive conversations and even lead to legal issues. Manually moderating this content is a monumental and costly task. While automatic detection of such "toxic" posts is crucial for supporting moderation and enabling large-scale analysis, it faces a significant hurdle: the scarcity of accurately labeled training data. This paper addresses this data limitation by proposing a method to artificially increase the size and linguistic variety of existing datasets, thereby improving the performance of deep learning models for aggression identification.

Methods

The core of the paper's methodology revolves around two main ideas:

  • Data Augmentation via Machine Translation: The authors propose a clever way to expand their training data. They take existing English comments, translate them into a foreign language (like French or German), and then translate them back into English. The hypothesis is that this round-trip translation process, while preserving the original meaning, introduces linguistic variations (different word choices, phrasing) that can help a model generalize better. This method effectively triples the dataset size. They also attempted this with Hindi data, but found it less successful due to translation quality issues.
  • Ensemble of Classifiers: Recognizing that different models capture different aspects of text, the authors employ an ensemble approach. They combine predictions from four distinct models:
  • A deep neural network based on Bidirectional Gated Recurrent Units (GRUs), utilizing pre-trained fastText embeddings.
  • Logistic Regression models trained on character n-grams and word n-grams (with tf-idf weighting).
  • A model using hand-picked features (e.g., punctuation, capitalization, emoticons, sentiment scores).

    The final prediction is made by a "stacker" model (gradient boosting trees) that learns how to best combine the outputs of these individual models based on specific comment features.

Datasets

The paper utilizes datasets from the "First Shared Task on Aggression Identification," which includes:

  • Facebook Dataset: 15,000 aggression-annotated Facebook posts for both English and Hindi. This dataset was used for training and cross-validation.
  • Twitter Dataset: Provided as a test set only, containing tweets.

The authors' data augmentation technique effectively increased the training data size from 15,000 to 60,000 comments for the English task.

Key Insights and Ideas

  • Machine Translation as a Data Augmentation Tool: The success of using machine translation to generate diverse linguistic variations for training data is a significant finding. It highlights a practical and scalable way to overcome data scarcity in NLP tasks.
  • Ensembling for Robustness: Combining diverse models (deep learning, n-grams, hand-crafted features) proved more effective than any single model. This ensemble approach is robust to dataset shifts and improves generalization.
  • Linguistic Variety is Key: The augmentation method's success is attributed to introducing linguistic variety, which helps models learn to identify aggression even when expressed with different wording.
  • Hindi Translation Challenges: The paper points out that the effectiveness of machine translation for augmentation is highly dependent on the quality of available translation models, with Hindi showing lower success rates.

Key Results

  • The proposed ensemble approach achieved an F1-score of 60.0% on both English test datasets (Facebook and Twitter), ranking 6th out of 30 on the Facebook dataset and 2nd out of 30 on the Twitter dataset.
  • On the Hindi Facebook dataset, the ensemble achieved an F1-score of 63.1% (ranking 4th out of 15).
  • The Hindi Twitter dataset showed a lower performance with an F1-score of 38.3% (ranking 8th out of 15).
  • The data augmentation method improved the F1-score of the RNN model from 57.2% to 58.5% on the English data.
  • Confusion matrices reveal that the classifier struggles most with distinguishing between overtly aggressive and covertly aggressive posts, and also between covertly aggressive and non-aggressive posts, especially in the Hindi datasets.

Limitations and Future Work

  • Hindi Translation Quality: The paper acknowledges that the machine translation augmentation method did not work as well for Hindi due to lower translation quality, suggesting that better Hindi translation models are needed.
  • Dataset Differences: The significant performance drop on the Hindi Twitter dataset compared to the Hindi Facebook dataset suggests inherent differences in the datasets themselves, which could be a source of error.
  • Future Work: The authors suggest extending the augmentation to test datasets, exploring better word embeddings (especially for languages like Hindi), and training more complex neural network architectures with larger datasets. They also note that a human moderator might want fine-grained reasons for a classifier's decision, hinting at the need for explainable AI in this domain.

Summary updated

BibTeX
@inproceedings{risch2018aggression,
  author = {Julian Risch and Ralf Krestel},
  title = {{Aggression Identification Using Deep Learning and Data Augmentation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
}
Figure