A Multi-Platform Arabic News Comment Dataset for Offensive Language Detection

Shammur A. Chowdhury, Hamdy Mubarak, Ahmed Abdelali, Soon-Gyo Jung, Bernard J. Jansen, Joni SalminenLREC 2020

TL;DR

This paper introduces the first multi-platform dataset for detecting offensive language in Arabic news comments, collected from Twitter, Facebook, and YouTube. They demonstrate that models trained on this diverse dataset generalize better across platforms and dialects than those trained on single-platform data, highlighting the importance of cross-platform learning for robust offensive language detection.

What Problem Does This Paper Address?

The proliferation of social media has unfortunately led to an increase in offensive language, which can have harmful consequences like inciting hate crimes and causing psychological distress. While detecting offensive language is crucial, most existing research focuses on a single platform and often on resource-rich languages like English. This leaves a significant gap in understanding and combating offensive language in less-resourced languages, particularly dialectal Arabic, and across the diverse landscape of social media platforms where offensive content can easily spread. The authors aim to bridge this gap by creating a comprehensive dataset and evaluating models that can generalize across different Arabic dialects and social media environments.

Methods

The core of this paper is the creation of a new dataset and the evaluation of machine learning models.

  • Dataset Creation: The authors collected over 100,000 Arabic news comments from Twitter, Facebook, and YouTube. They then filtered these comments and manually annotated a subset of 4,000 for offensiveness. A key methodological innovation is their two-step crowd-annotator selection process, designed to ensure quality and reliability for a less-represented language like dialectal Arabic. This involved a qualification test and an evaluation against gold-standard annotations.
  • Lexical and Emoji Analysis: Beyond just annotation, the paper delves into analyzing the linguistic features of offensive comments. They use a "valence score" to identify distinctive unigrams (single words), bigrams, and trigrams in offensive versus non-offensive comments. They also specifically analyze the usage of emojis in offensive content.
  • Classification Models: The authors employ Support Vector Machines (SVM) as their primary classification algorithm. They use a bag-of-character-n-grams approach for feature extraction, which is a standard technique for text classification.
  • Evaluation Strategy: The evaluation is multi-faceted, focusing on:
  • In-domain performance: How well models perform on the newly created dataset.
  • Cross-platform performance: Training on one platform (e.g., Twitter) and testing on another (e.g., Facebook) to assess generalization.
  • Cross-domain performance: Evaluating models on datasets from different sources (e.g., news comments vs. general tweets) and dialects.

Datasets

  • Multi-Platform Arabic News Comment Dataset (MPOLD): This is the primary contribution of the paper. It consists of 4,000 manually annotated Arabic news comments collected from Twitter, Facebook, and YouTube.
  • Egyptian Tweets and Corresponding Comment Dataset (ETCD): A dataset of Egyptian tweets and their comments, used for out-of-domain evaluation.
  • Levantine Tweets Dataset (L-HSAB): A dataset of Levantine tweets (without comments), used for out-of-domain evaluation.
  • Deleted Comments Dataset (DCD): A large dataset of deleted comments from Aljazeera.net, used to evaluate cross-platform performance on a news website domain.

Key Insights and Ideas

  • The "Platform Effect": Offensive language manifests differently and with varying prevalence across social media platforms. Models trained on a single platform struggle to generalize to others.
  • Dialectal Diversity Matters: Arabic dialects are diverse, and a model trained on one dialect may not perform well on another. A multi-platform approach helps capture this diversity.
  • Emojis as Indicators: Emojis, particularly those depicting animals, are significantly more prevalent in offensive comments, often used analogously to convey hostility. This suggests emojis can be valuable features for offensive language detection.
  • Crowdsourcing for Low-Resource Languages: The paper demonstrates a robust methodology for obtaining high-quality annotations for less-resourced languages using crowdsourcing, emphasizing the importance of careful annotator selection and evaluation.

Key Results

  • Cross-Platform Generalization: Models trained on combined multi-platform data (e.g., TW + YT + FB) significantly outperform models trained on single platforms, achieving higher macro-averaged F1-measures (Fm). For example, combining platforms led to an Fm of 0.84 for the FB+YT+DCD test set, compared to much lower scores for single-platform models.
  • Cross-Domain Generalization: The MPOLD dataset and models trained on it showed improved performance on out-of-domain datasets like ETCD and L-HSAB, indicating better cross-domain generalization. MPOLD+DCD achieved an Fm of 0.76 on ETCD, outperforming baselines.
  • Annotation Agreement: While unanimous agreement was lower for offensive comments (54.2%) compared to non-offensive ones (83.7%), the Fleiss's kappa score of 0.72 indicates good overall inter-annotator agreement. Expert evaluation showed a high accuracy of 94% for the crowdsourced annotations.
  • Lexical Analysis: Words like "dogs," "bark," and "dirty" were found to be more common in offensive comments, while "rage" and "curse" appeared frequently in offensive n-grams.

Limitations and Future Work

  • Dataset Size: While 4,000 annotated comments is a good start, the authors acknowledge that a larger dataset would further improve model performance and generalization.
  • Annotation Complexity: The paper notes that identifying offensive language can be complex due to sarcasm, irony, and long, nuanced comments, which sometimes led to misclassifications.
  • Future Work: The authors plan to extend their study by introducing a larger dataset and exploring more fine-grained classification and content analysis. They also aim to investigate the impact of different dialects and domains more extensively.

Summary updated

BibTeX
@inproceedings{chowdhury2020multi,
  author = {Shammur A. Chowdhury and Hamdy Mubarak and Ahmed Abdelali and Soon-Gyo Jung and Bernard J. Jansen and Joni Salminen},
  title = {{A Multi-Platform Arabic News Comment Dataset for Offensive Language Detection}},
  booktitle = {LREC},
  year = {2020},
}
Figure