Offensive Language and Hate Speech Detection with Deep Learning and Transfer Learning
Not on the map. Why?
Abstract (arXiv)
Toxic online speech has become a crucial problem nowadays due to an exponential increase in the use of internet by people from different cultures and educational backgrounds. Differentiating if a text message belongs to hate speech and offensive language is a key challenge in automatic detection of toxic text content. In this paper, we propose an approach to automatically classify tweets into three classes: Hate, offensive and Neither. Using public tweet data set, we first perform experiments to build BI-LSTM models from empty embedding and then we also try the same neural network architecture with pre-trained Glove embedding. Next, we introduce a transfer learning approach for hate speech detection using an existing pre-trained language model BERT (Bidirectional Encoder Representations from Transformers), DistilBert (Distilled version of BERT) and GPT-2 (Generative Pre-Training). We perform hyper parameters tuning analysis of our best model (BI-LSTM) considering different neural network architectures, learn-ratings and normalization methods etc. After tuning the model and with the best combination of parameters, we achieve over 92 percent accuracy upon evaluating it on test data. We also create a class module which contains main functionality including text classification, sentiment checking and text data augmentation. This model could serve as an intermediate module between user and Twitter.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 1 of its 4 references that are in the map. First posted on arXiv 6 Aug 2021.
Builds on
1 of 4 references.
References · 1
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 3; 2025: 1.
7 papers.
- 2023Opportunities and Risks of LLMs for Scalable Deliberation with Poliscited by 42
- 2024ToxiCloakCN: Evaluating Robustness of Offensive Language Detection in Chinese with Cloaking Perturbationscited by 31
- 2024Chinese Offensive Language Detection:Current Status and Future Directionscited by 5
- 2025CoGate-LSTM: Prototype-Guided Feature-Space Gating for Mitigating Gradient Dilution in Imbalanced Toxic Comment Classificationcited by 1
- 2022Multilingual and Multimodal Abuse Detectioncited by 0
- 2023Developing Linguistic Patterns to Mitigate Inherent Human Bias in Offensive Language Detectioncited by 0
- 2024Unveiling Social Media Comments with a Novel Named Entity Recognition System for Identity Groupscited by 0
- 2025CoGate-LSTM: Prototype-Guided Feature-Space Gating for Mitigating Gradient Dilution in Imbalanced Toxic Comment Classification19 Oct 2025
- 2024ToxiCloakCN: Evaluating Robustness of Offensive Language Detection in Chinese with Cloaking Perturbations18 Jun 2024
- 2024Unveiling Social Media Comments with a Novel Named Entity Recognition System for Identity Groups13 May 2024
- 2024Chinese Offensive Language Detection:Current Status and Future Directions27 Mar 2024
- 2023Developing Linguistic Patterns to Mitigate Inherent Human Bias in Offensive Language Detection4 Dec 2023
- 2023Opportunities and Risks of LLMs for Scalable Deliberation with Polis20 Jun 2023
- 2022Multilingual and Multimodal Abuse Detection3 Apr 2022