Explainable and High-Performance Hate and Offensive Speech Detection
Authors:
Preprint
Abstract
The spread of information through social media platforms can create environments possibly hostile to vulnerable communities and silence certain groups in society. To mitigate such instances, several models have been developed to detect hate and offensive speech. Since detecting hate and offensive speech in social media platforms could incorrectly exclude individuals from social media platforms, which can reduce trust, there is a need to create explainable and interpretable models. Thus, we build an explainable and interpretable high performance model based on the XGBoost algorithm, trained on Twitter data. For unbalanced Twitter data, XGboost outperformed the LSTM, AutoGluon, and ULMFiT models on hate speech detection with an F1 score of 0.75 compared to 0.38 and 0.37, and 0.38 respectively. When we down-sampled the data to three separate classes of approximately 5000 tweets, XGBoost performed better than LSTM, AutoGluon, and ULMFiT; with F1 scores for hate speech detection of 0.79 vs 0.69, 0.77, and 0.66 respectively. XGBoost also performed better than LSTM, AutoGluon, and ULMFiT in the down-sampled version for offensive speech detection with F1 score of 0.83 vs 0.88, 0.82, and 0.79 respectively. We use Shapley Additive Explanations (SHAP) on our XGBoost models' outputs to makes it explainable and interpretable compared to LSTM, AutoGluon and ULMFiT that are black-box models.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- An empirical study of emoji usage on Twitter in linguistic and national contextsOnline Social Networks and Media, 2021
- HateXplain: A Benchmark Dataset for Explainable Hate Speech DetectionProceedings of the AAAI Conference on Artificial Intelligence, 2021
- HateBERT: Retraining BERT for Abusive Language Detection in English2021
- DeepHate: Hate Speech Detection via Multi-Faceted Text Representations2020
- A Survey on Automatic Detection of Hate Speech in TextACM Computing Surveys, 2018
- Fairness in Criminal Justice Risk Assessments: The State of the ArtSociological Methods & Research, 2018
- Large Scale Crowdsourcing and Characterization of Twitter Abusive BehaviorProceedings of the International AAAI Conference on Web and Social Media, 2018
- Fair Prediction with Disparate Impact: A Study of Bias in Recidivism Prediction InstrumentsBig Data, 2017
- Automated Hate Speech Detection and the Problem of Offensive LanguageProceedings of the International AAAI Conference on Web and Social Media, 2017
- The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literatureDecision Support Systems, 2011