[Paper Review] Hate Speech Classification Using SVM and Naive BAYES
This paper proposes a supervised hate speech classification framework using Support Vector Machine (SVM) and Naïve Bayes (NB) algorithms, leveraging feature extraction from textual data to enable automated, interpretable detection of online hate speech. The approach achieves 99% accuracy with SVM and 50% with NB on a test set, offering a balance of high performance and model interpretability for real-world deployment on social media platforms.
The spread of hatred that was formerly limited to verbal communications has rapidly moved over the Internet. Social media and community forums that allow people to discuss and express their opinions are becoming platforms for the spreading of hate messages. Many countries have developed laws to avoid online hate speech. They hold the companies that run the social media responsible for their failure to eliminate hate speech. But as online content continues to grow, so does the spread of hate speech However, manual analysis of hate speech on online platforms is infeasible due to the huge amount of data as it is expensive and time consuming. Thus, it is important to automatically process the online user contents to detect and remove hate speech from online media. Many recent approaches suffer from interpretability problem which means that it can be difficult to understand why the systems make the decisions they do. Through this work, some solutions for the problem of automatic detection of hate messages were proposed using Support Vector Machine (SVM) and Naïve Bayes algorithms. This achieved near state-of-the-art performance while being simpler and producing more easily interpretable decisions than other methods. Empirical evaluation of this technique has resulted in a classification accuracy of approximately 99% and 50% for SVM and NB respectively over the test set. Keywords: classification; hate speech; feature extraction, algorithm, supervised learning
Motivation & Objective
- To address the growing challenge of online hate speech on social media and community forums.
- To develop an automated, scalable solution for detecting hate speech that reduces reliance on manual content review.
- To improve model interpretability in hate speech detection, addressing a key limitation of many deep learning-based approaches.
- To evaluate the performance of traditional machine learning models—SVM and Naive Bayes—on hate speech classification with a focus on accuracy and interpretability.
Proposed method
- The study employs supervised learning using labeled textual data for hate speech detection.
- Textual features are extracted using standard natural language processing techniques, including bag-of-words or TF-IDF representation.
- The Support Vector Machine (SVM) model is trained to classify text as hate speech or non-hate speech based on learned decision boundaries.
- The Naïve Bayes classifier is applied using conditional probability assumptions to estimate class likelihoods from feature frequencies.
- Both models are evaluated on a standardized test set to compare performance in terms of accuracy and interpretability.
- Feature selection and preprocessing steps such as tokenization, stopword removal, and lemmatization are applied to improve model input quality.
Experimental results
Research questions
- RQ1Can traditional machine learning models like SVM and Naive Bayes achieve high accuracy in classifying hate speech from online text?
- RQ2How do SVM and Naive Bayes compare in terms of classification performance and interpretability for hate speech detection?
- RQ3To what extent can these models provide transparent decision-making processes compared to complex deep learning models?
- RQ4Is it feasible to use simpler, interpretable models for large-scale hate speech detection in real-world social media environments?
Key findings
- The SVM model achieved a classification accuracy of approximately 99% on the test set, demonstrating strong performance in hate speech detection.
- The Naive Bayes model achieved a classification accuracy of approximately 50% on the same test set, indicating limited effectiveness for this specific dataset or task.
- Despite the lower accuracy of Naive Bayes, the model offers higher interpretability due to its probabilistic foundation and transparent decision logic.
- The SVM model provides a strong balance between high accuracy and reasonable interpretability, especially when combined with feature importance analysis.
- The study confirms that simpler models like SVM and NB can achieve near state-of-the-art performance in hate speech classification when properly tuned and feature-engineered.
- The results highlight the trade-off between model accuracy and interpretability, with SVM offering a more viable solution for practical deployment.
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.