Abstract
Social media platforms and online streaming services have spawned a new breed of Hate Speech (HS). Due to the massive amount of user-generated content on these sites, modern machine learning techniques are found to be feasible and cost-effective to tackle this problem. However, linguistically diverse datasets covering different social contexts in which offensive language is typically used are required to train generalizable models. In this paper, we identify the shortcomings of existing Bangla HS datasets and introduce a large manually labeled dataset BD-SHS that includes HS in different social contexts. The labeling criteria were prepared following a hierarchical annotation process, which is the first of its kind in Bangla HS to the best of our knowledge. The dataset includes more than 50,200 offensive comments crawled from online social networking sites and is at least 60% larger than any existing Bangla HS datasets. We present the benchmark result of our dataset by training different NLP models resulting in the best one achieving an F1-score of 91.0%. In our experiments, we found that a word embedding trained exclusively using 1.47 million comments from social media and streaming sites consistently resulted in better modeling of HS detection in comparison to other pre-trained embeddings.
Introduction
While hate speech detection is a mature field for English, "low-resource" languages like Bangla—spoken by over 210 million people—lag behind. Existing Bangla datasets are often too small, lack linguistic diversity, and fail to provide granular details about the targets of offensive language. Social media presents a unique challenge: users rarely use formal grammar, instead employing slang, phonetic spellings, and non-standard acronyms. This paper introduces BD-SHS, a large-scale, linguistically diverse, and hierarchically labeled benchmark designed to help machine learning models navigate the complexities of Bangla online discourse.
The BD-SHS Dataset
The authors curated a list of controversial events in Bangladesh since 2017 and scraped comments from Facebook, YouTube, and TikTok. The resulting dataset, BD-SHS, contains 50,281 manually labeled comments. As shown in the comparison below, it is significantly larger and more detailed than any previous Bangla HS dataset.
Hierarchical Annotation
Unlike previous datasets that used simple binary labels, BD-SHS employs a three-level hierarchical scheme:
- Level 1: Is it Hate Speech (HS) or Not Hate (NH)?
- Level 2: Who is the target? (Individual, Male, Female, or Group).
- Level 3: What is the type? (Slander, Religion, Gender, or Call to Violence).
This granular approach allows for a deeper understanding of how hate speech manifests in different social contexts.
Methodology
The researchers benchmarked the dataset using Linear SVMs (with TF-IDF) and Bi-LSTM architectures. A critical component of their approach was the development of IFT (InFormal Text) word embeddings, trained on 1.47 million raw social media comments. This domain-specific embedding space was designed to better capture the "noisy" nature of online Bangla compared to standard embeddings like BengFastText (trained on Wikipedia).
Key Results and Insights
- Model Performance: The Bi-LSTM model using IFT embeddings achieved the best performance with an F1-score of 91.0% for HS identification.
- Contextual Importance: The study found that formal language models fail on social media because they do not account for common misspellings or slang. The IFT model consistently outperformed pre-trained formal embeddings.
- Social Biases: The data revealed clear patterns: women are disproportionately targeted based on gender (65% of HS directed at females), while men and groups are more frequently targeted with general slander.
- Target Identification Difficulty: Models struggled more with identifying the target (77.5% F1) than the type of hate (89.1% F1). This suggests that identifying specific targets in noisy text remains a significant challenge for current NLP techniques.
- Annotation Quality: The authors reported a Fleiss Kappa score of 0.658 for Level 1, indicating "moderate agreement" among human annotators.
Limitations and Future Work
While Level 1 used a majority-vote system, Levels 2 and 3 relied on a single annotator per comment, which may introduce individual bias. Future efforts will focus on refining target identification models and expanding the dataset to include more diverse social contexts as online trends evolve.
Summary updated