Back to results

Missouri State University

Evaluation of Different Machine Learning, Deep Learning and Text Processing Techniques for Hate Speech Detection

Abstract

dc:description.abstract

Social media has become a domain that involves a lot of hate speech. Some users feel entitled to engage in abusive conversations by sending abusive messages, tweets, or photos to other users. It is critical to detect hate speech and prevent innocent users from becoming victims. In this study, I explore the effectiveness and performance of various machine learning methods employing text processing techniques to create a robust system for hate speech identification. I assess the performance of Naïve Bayes, Support Vector Machines, Decision Trees, Random Forests, Logistic Regression, and K Nearest Neighbors using three distinct datasets sourced from social media posts. To gauge the optimal approach, I employ Term Frequency-Inverse Document Frequency (TF-IDF), unigrams, bigrams, trigrams, a combination of unigrams and bigrams, and a combination of unigrams, bigrams, and trigrams for the machine learning models to analyze the text corpus. Given the imbalanced nature of the datasets, I implement both under-sampling and over-sampling techniques to investigate their impact on the results. I also investigated the performance of different deep learning algorithms on the three datasets. The results show that the Biderctional Encoders Representations from Transformers (BERT) model gives the best performance among all the models on imbalanced datasets by achieving an F1-score of 90.6% on one of the datasets, and F1-scores of 89.7% and 88.2% on the other two datasets. Comparative analysis reveals that BERT and Robustly Optimized BERT Pretraining Approach (RoBERTa) outperform traditional Machine Learning (ML) algorithms, with F1-scores approximately 20% higher. The investigation indicates that RoBERTa, with its enhanced training strategies, comes remarkably close to the performance of BERT. The outcomes show the transformative impact of deep learning and pretrained models on hate speech detection, with larger, more diverse datasets further enhancing model performance.

Degree

thesis:*
Name thesis:degree_name
Master of Natural and Applied Science in Computer Science
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Shawkat, Nabil
Contributors dc:contributor
  • Jamil Saquer

Subjects

dc:subject × 12

Rights

dc:rights
Statement dc:rights
  • © Nabil Shawkat

Identifiers

dc:identifier.*
Repository record dc:identifier
https://bearworks.missouristate.edu/theses/3913

Chain of custody

source
Harvested from
Missouri State University
Base URL
bearworks.missouristate.edu/do/oai/
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Shawkat, Nabil. Evaluation of Different Machine Learning, Deep Learning and Text Processing Techniques for Hate Speech Detection. Masters thesis, https://bearworks.missouristate.edu/theses/3913