HS-BAN: A Benchmark Dataset of Social Media Comments for Hate Speech Detection in Bangla

Nauros Romim, Mosahed Ahmed, Md Saiful Islam, Arnab Sen Sharma, Hriteshwar Talukder, Mohammad Ruhul AminarXiv 2021

Introduction

Detecting hate speech (HS) in Bangla presents unique challenges due to the language's informal usage on social media. Users frequently employ non-standard spellings, complex slang, and code-mixing. Previous datasets in this domain have been limited by small scales, domain biases, and a lack of rigorous annotation. This paper introduces HS-BAN, a large-scale, multi-domain benchmark dataset designed to reflect authentic communication on platforms like Facebook and YouTube.

The HS-BAN Dataset

The HS-BAN dataset comprises 50,314 comments collected between 2017 and 2020. It is categorized into seven domains: Sports, Entertainment, Crime, Religion, Politics, Celebrity, and Miscellaneous. The dataset maintains a balance of approximately 40.17% hate speech and 59.83% non-hate speech.

Dataset statistics across various categories

Annotation was conducted by 50 undergraduate volunteers following strict guidelines. Each comment was tagged by three individuals, with the final label determined by majority vote, achieving a moderate inter-annotator agreement score of 0.658.

Methodology

The researchers explored the impact of word embeddings on model performance, specifically comparing:

  • Formal Embeddings: Trained on 250 million articles from news and Wikipedia.
  • Informal Embeddings: Trained on 1.47 million Bangla social media comments.

Models tested included traditional machine learning baselines (SVM with character and word n-grams), deep learning architectures (CNN and Bi-LSTM), and Transformer-based models (mBERT and Bangla-BERT).

Key Results

The experimental results demonstrate that "informal" word embeddings significantly outperform "formal" ones for this task. The top-performing model was a Bi-LSTM paired with FastText (Skip-gram) informal embeddings, achieving an F1-score of 86.85%.

Performance comparison of various models on the HS-BAN dataset

Interestingly, a simple SVM baseline using character 1-6 grams was highly competitive, reaching an 85.97% F1-score. This suggests that character-level features are robust against the spelling variations common in social media text. Transformer models like Bangla-BERT, while effective, did not surpass the specialized Bi-LSTM + Informal FastText configuration. Performance also varied by category; for instance, the "Crime" category saw the highest detection accuracy with a 92.27% F1-score, while "Celebrity" and "Politics" proved more challenging due to nuanced language.

Discussion and Future Work

A critical insight from this work is the distinction between "Traditional Slang" (TS) and "Non-Traditional Slang" (NTS). While models effectively identify TS, they struggle with NTS, which is often context-dependent or culturally specific. Future research will focus on improving model interpretability and enhancing generalizability to keep pace with evolving internet vernacular.

Summary updated

BibTeX
@misc{romim2021hs,
  author = {Nauros Romim and Mosahed Ahmed and Md Saiful Islam and Arnab Sen Sharma and Hriteshwar Talukder and Mohammad Ruhul Amin},
  title = {{HS-BAN: A Benchmark Dataset of Social Media Comments for Hate Speech Detection in Bangla}},
  year = {2021},
  eprint = {2112.01902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.01902},
}
Figure