McGill University
Addressing Bias and Improving Transparency in Automated Hate Speech Detection Systems
Abstract
dc:description.abstractIn the digital era, online hate speech poses a growing challenge for content moderation. This research seeks to illuminate the vital role played by the distribution of target groups in training datasets and its influence on the effectiveness of hate speech detection systems, with the aim of enhancing our understanding of this critical factor. Additionally, the project aims to raise awareness of the limitations of existing hate speech detection systems, highlighting their complexities and the need for further research to achieve more robust solutions.We selected Davidson et al.’s “Automated Hate Speech Detection and the Problem of Offensive Language” for replication after researching prominent papers in hate speech detection, including “Deep Learning for Hate Speech Detection in Tweets” by Pinkesh Badjatiya and Shashank Gupta, “A Survey on Automatic Detection of Hate Speech in Text” by Paula Fortuna, and “Hate Speech Detection Using a Convolution LSTM Based Deep Neural Network” by Ziqi Zhang. Davidson et al.’s work was chosen due to its widespread recognition and importance in the domain as demonstrated by its number of citations, aligning with standard research practices for validating and building upon existing knowledge.During our replication efforts based on Davidson’s GitHub repository, we encountered various challenges, including outdated and hard-coded elements, compatibility issues with newer Python versions, a lower-quality dataset, and missing information about the distribution of groups targeted by hate speech in the dataset. By revamping the GitHub repository, we have turned it into a flexible and adjustable framework, allowing experimentation with various target group distributions, outcome generation, distribution examination, and testing with different datasets.To enhance the existing work, we manually labeled specific target groups in the analysis data, including women, black individuals, and the LGBT community. We introduced a new training dataset from Berkeley, consisting of 39,565 comments annotated by 7,912 annotators, totaling 135,556 rows, to enrich our analysis. Like the original work, our validation process relied on k-fold validation since a dedicated validation dataset was unavailable, involving five groups for training and testing the model iteratively. Additionally, we conducted a comprehensive reassessment of the initial work, incorporating our newly trained classifier for a direct comparison with the original findings.Our study investigated the impact of distribution on hate speech detection across four scenarios: black-focused, women-focused, LGBT-focused, and balanced. In the first three scenarios, there is a higher number of tweets targeting black individuals, women, and LGBT, respectively. The fourth scenario, balanced, maintains an even distribution of tweets targeting both women and black individuals, as well as LGBT. The precision results for the various scenarios and target groups range from 87% to 96%, the recall results from 55% to 93%, and the F1 scores from 70% to 93%. For the black target group, the women-focused scenario yielded the highest precision (96%), the LGBT-focused scenario the highest recall (72%), and the LGBT-focused scenario the highest F1 score (79%). For the women target group, the women-focused scenario yielded the highest precision (96%) and the balanced scenario the highest recall (84%) and the highest F1 score (89%). For the LGBT target group, the women-focused scenario yielded the highest precision (96%) and the LGBT-focused scenario the highest recall (93%) and the highest F1 score (93%).In particular, the LGBT target group showcased the best performance in a single scenario, i.e., the LGBT-focused scenario, with the highest recall of 93%, a strong precision of 92%, and an impressive F1 score of 93%.Our research underscores the intricate impact of distribution on hate speech detection. The significant effects of diversity, dataset specifics, classifier bias, and data quality genuinely influenced our work, emphasizing the importance of aligning training data with natural distributions and addressing biases for a more inclusive AI landscape
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Grantor dc:publisher
- McGill University
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Sadri, Mo
- Advisor dc:contributor.advisor
-
- Mussbacher, Gunter (Supervisor)
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1443781314
- Identifier URI
- https://hdl.handle.net/20.500.14905/129113
- Dc Identifier Other
- hyrax:ww72bj452