[Paper Review] Offensive Language and Hate Speech Detection for Danish
This paper introduces the first large-scale, human-annotated Danish dataset for offensive language and hate speech detection, collected from Reddit and Facebook. It proposes multilingual classification models that achieve a macro F1-score of 0.70 for offensive language detection and 0.73 for targeted offense detection in Danish, demonstrating that shared linguistic resources and cross-lingual modeling improve performance on low-resource languages like Danish.
The presence of offensive language on social media platforms and the implications this poses is becoming a major concern in modern society. Given the enormous amount of content created every day, automatic methods are required to detect and deal with this type of content. Until now, most of the research has focused on solving the problem for the English language, while the problem is multilingual. We construct a Danish dataset containing user-generated comments from extit{Reddit} and extit{Facebook}. It contains user generated comments from various social media platforms, and to our knowledge, it is the first of its kind. Our dataset is annotated to capture various types and target of offensive language. We develop four automatic classification systems, each designed to work for both the English and the Danish language. In the detection of offensive language in English, the best performing system achieves a macro averaged F1-score of $0.74$, and the best performing system for Danish achieves a macro averaged F1-score of $0.70$. In the detection of whether or not an offensive post is targeted, the best performing system for English achieves a macro averaged F1-score of $0.62$, while the best performing system for Danish achieves a macro averaged F1-score of $0.73$. Finally, in the detection of the target type in a targeted offensive post, the best performing system for English achieves a macro averaged F1-score of $0.56$, and the best performing system for Danish achieves a macro averaged F1-score of $0.63$. Our work for both the English and the Danish language captures the type and targets of offensive language, and present automatic methods for detecting different kinds of offensive language such as hate speech and cyberbullying.
Motivation & Objective
- To address the lack of annotated Danish datasets for offensive language and hate speech detection.
- To develop multilingual classification systems that perform well on both English and Danish.
- To analyze linguistic challenges such as obfuscation and context dependence in offensive language detection.
- To evaluate model performance across sub-tasks: offensive language detection, targeting detection, and target type classification.
- To release high-quality data and models under a CC-BY license for research and shared tasks.
Proposed method
- Constructed a Danish dataset from user-generated comments on Reddit and Facebook, annotated using standardized guidelines for offensive language, targeting, and target type.
- Applied transfer learning with multilingual BERT and fine-tuned models for both English and Danish across three sub-tasks.
- Used logistic regression and auxiliary Fast-BiLSTM models with additional features to compare performance against BERT-based models.
- Employed TF-IDF and n-gram analysis on misclassified samples to identify persistent failure patterns such as obfuscation and keyword over-reliance.
- Conducted manual analysis of misclassified examples to diagnose model weaknesses, especially around context and obfuscated terms.
- Evaluated models using macro-averaged F1 scores across all sub-tasks, with class imbalance and data quality assessed via precision, recall, and confusion matrices.
Experimental results
Research questions
- RQ1How effective are multilingual models in detecting offensive language in Danish compared to English?
- RQ2What linguistic patterns, such as obfuscation or context-dependent profanity, cause persistent misclassification in offensive language detection?
- RQ3To what extent does data quality and class imbalance affect model performance in Danish offensive language detection?
- RQ4How do different model architectures, including BERT and auxiliary feature-based models, compare in detecting targeted offensive language and target types?
- RQ5Can shared linguistic resources and transfer learning improve performance on low-resource languages like Danish?
Key findings
- The best-performing model for offensive language detection in Danish achieved a macro-averaged F1-score of 0.70, outperforming the English model (0.74) on this specific task.
- For targeted offensive language detection, the Danish model achieved a macro F1-score of 0.73, significantly outperforming the English model (0.62).
- In target type classification, the Danish model achieved a macro F1-score of 0.63, compared to 0.56 for English, indicating better generalization on fine-grained sub-tasks in Danish.
- The classifier struggled with obfuscated offensive terms such as 'barrrysoetorobullshit' and 'Hahhaaha lær det biiiiiaaaatch', often misclassifying them as non-offensive.
- The model exhibited strong bias toward keyword presence (e.g., 'she', 'svensken', 'pikfjæs') rather than contextual meaning, leading to false positives in offensive language detection.
- Data quality issues were evident, with some clearly targeted insults (e.g., 'HillaryForPrison') mislabeled as untargeted in the test set, affecting evaluation reliability.
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.