[Paper Review] Hostility Detection Dataset in Hindi
This paper introduces a novel, manually annotated Hindi hostility detection dataset comprising ~8,200 social media posts labeled across four hostile dimensions—fake news, hate speech, offensive language, and defamation—along with a non-hostile class. The dataset supports multi-label tagging due to overlap among classes and is released as part of the CONSTRAINT-2021 shared task. Baseline models using m-BERT embeddings achieve a highest coarse-grained F1 score of 84.11% (SVM), demonstrating its utility for low-resource language NLP in crisis contexts like the pandemic.
In this paper, we present a novel hostility detection dataset in Hindi language. We collect and manually annotate ~8200 online posts. The annotated dataset covers four hostility dimensions: fake news, hate speech, offensive, and defamation posts, along with a non-hostile label. The hostile posts are also considered for multi-label tags due to a significant overlap among the hostile classes. We release this dataset as part of the CONSTRAINT-2021 shared task on hostile post detection.
Motivation & Objective
- To address the lack of large-scale, multi-dimensional hostility detection datasets in low-resource Indian languages like Hindi.
- To collect and manually annotate ~8,200 Hindi social media posts covering four hostile dimensions: fake news, hate speech, offensive language, and defamation.
- To support both coarse-grained (hostile vs. non-hostile) and fine-grained (multi-label) classification tasks for hostile content.
- To release the dataset as part of the CONSTRAINT-2021 shared task to promote research in low-resource, emergency-context hostility detection.
- To provide baseline models using m-BERT embeddings for benchmarking downstream tasks in Hindi NLP.
Proposed method
- The dataset was constructed by collecting ~8,200 online Hindi posts from diverse social media platforms, including forums, chat rooms, and gaming communities.
- Each post was manually annotated with up to four hostile labels (fake, hate, offensive, defamation) and a non-hostile label, allowing for multi-label classification due to semantic overlap.
- Preprocessing included removal of URLs, emojis, non-alphanumeric characters (except full stops), and stopwords using a standard Hindi stopword list.
- Sentence embeddings were extracted using the multilingual BERT (m-BERT) model, with the last layer’s token representations averaged to form sentence-level embeddings.
- Four traditional ML models—SVM, Logistic Regression, Random Forest, and MLP—were trained on the embeddings for both coarse-grained and fine-grained classification tasks.
- Class weights were balanced in SVM and Logistic Regression to mitigate data imbalance, especially in fine-grained tasks with ~800 training samples per class.
Experimental results
Research questions
- RQ1How effective are standard machine learning models in detecting multiple dimensions of hostility in low-resource Hindi text?
- RQ2To what extent do hostile categories in Hindi (e.g., hate, offensive, defamation) overlap, and how should this be modeled in annotation?
- RQ3Can m-BERT-based sentence embeddings effectively capture semantic cues for hostility detection in Hindi social media content?
- RQ4What is the performance gap between coarse-grained and fine-grained hostility detection in Hindi, particularly for underrepresented classes?
- RQ5How does data imbalance affect model performance in fine-grained hostility detection, and what mitigation strategies are effective?
Key findings
- The dataset contains 4,358 total hostile posts (3,834 with at least one label) and 4,358 non-hostile posts, with a balanced distribution across the four hostility dimensions.
- SVM achieved the highest coarse-grained F1 score of 84.11%, outperforming Logistic Regression (83.98%), MLP (83.45%), and Random Forest (79.79%).
- In fine-grained classification, SVM achieved the best F1 scores for hate (47.49%), offensive (41.98%), and defamation (43.57%) classes.
- Logistic Regression performed best for fake news detection with an F1 score of 68.15%, significantly outperforming other models in this class.
- Confusion matrices revealed that the models struggled most with the defamation and fake news classes, indicating high ambiguity or class imbalance.
- The dataset’s multi-label capability captures overlapping hostility dimensions, with 26.7% of hostile posts labeled with more than one category.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.