Skip to main content
QUICK REVIEW

[Paper Review] Detecting the Hate Code on Social Media

Rijul Magu, Kshitij Joshi|arXiv (Cornell University)|Mar 16, 2017
Hate Speech and Cyberbullying DetectionComputer Science9 references9 citations
TL;DR

This paper proposes a machine learning system to detect coded hate speech on Twitter, where extremists substitute racial and ethnic slurs with benign terms (e.g., 'Skype' for Jews). Using a support vector machine (SVM) classifier on lemmatized, preprocessed tweets, the system achieves 79.4% accuracy in distinguishing coded hate from non-hateful usage, while also identifying high-frequency users who propagate such content—enabling the study of hate-mongering patterns.

ABSTRACT

Social media has become an indispensable part of the everyday lives of millions of people around the world. It provides a platform for expressing opinions and beliefs, communicated to a massive audience. However, this ease with which people can express themselves has also allowed for the large scale spread of propaganda and hate speech. To prevent violating the abuse policies of social media platforms and also to avoid detection by automatic systems like Google's Conversation AI, racists have begun to use a code (a movement termed Operation Google). This involves substituting references to communities by benign words that seem out of context, in hate filled posts or Tweets. For example, users have used the words Googles and Bings to represent the African-American and Asian communities, respectively. By generating the list of users who post such content, we move a step forward from classifying tweets by allowing us to study the usage pattern of these concentrated set of users.

Motivation & Objective

  • To detect coded hate speech on social media where offensive terms are disguised using benign synonyms to evade detection.
  • To identify users who frequently post coded hate content, enabling analysis of their behavioral patterns.
  • To develop a system that distinguishes between legitimate and hate-motivated use of code words in tweets.
  • To explore the feasibility of detecting emerging code words and potential network structures among hate-mongering users.
  • To assess whether coded hate speech usage spikes during periods of political or social turmoil.

Proposed method

  • Collected over a million tweets using a web scraper (Jefferson-Henrique script) between September 23 and October 18, 2016, focusing on known code words.
  • Preprocessed tweets by lemmatizing tokens, removing punctuation, stopwords, and infrequent words.
  • Constructed a bag-of-words feature vector representation for each tweet using the most frequent terms in the training data.
  • Trained a linear kernel SVM classifier on 1,999 annotated tweets (951 benign, 1,048 hateful) with 10-fold cross-validation.
  • Evaluated the classifier on a 10% test set of 23,401 English tweets to generate predictions and identify hateful content.
  • Extracted user handles from predicted hateful tweets and applied a heuristic threshold (frequency ≥4) to identify high-frequency aggressors.

Experimental results

Research questions

  • RQ1Can a machine learning model effectively distinguish between the hateful and non-hateful use of code words in social media posts?
  • RQ2Which users are responsible for the repeated use of coded hate speech, and what patterns characterize their behavior?
  • RQ3Is there a detectable surge in coded hate speech during periods of political or social tension?
  • RQ4Can the system be extended to automatically detect new code words as they emerge in online discourse?
  • RQ5Do users who post coded hate speech form a connected network or shared community structure?

Key findings

  • The SVM classifier achieved an accuracy of 79.4397%, with a precision of 0.795 and recall of 0.794 on the test set.
  • The system correctly classified 83.3% of hateful tweets (recall) and 75.2% of benign tweets (true positive rate for benign class).
  • A threshold frequency of 4 was found to optimally identify high-frequency users posting coded hate content with minimal false positives.
  • The top correlated terms in hateful tweets included '#MAGA', '#MAWA', '#ALTRIGHT', and the word 'white', indicating alignment with far-right ideologies.
  • The term 'gas' was highly correlated with hate speech, particularly in phrases like 'gas the skypes', signaling calls for violence.
  • No new code words were observed in a follow-up study, suggesting a stable but evolving lexicon during the observation period.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.