Skip to main content
QUICK REVIEW

[Paper Review] Impact of Sentiment Detection to Recognize Toxic and Subversive Online Comments

Éloi Brassard-Gourdeau, Richard Khoury|arXiv (Cornell University)|Dec 4, 2018
Hate Speech and Cyberbullying DetectionComputer Science9 references9 citations
TL;DR

This paper proposes integrating sentiment detection into toxicity detection systems to counter subversive users who evade keyword-based filters by altering toxic words. Using neural networks trained on real-world datasets, the authors show that including sentiment information improves toxicity detection accuracy by up to 3% under subversion, confirming that sentiment is harder to disguise than keywords.

ABSTRACT

The presence of toxic content has become a major problem for many online communities. Moderators try to limit this problem by implementing more and more refined comment filters, but toxic users are constantly finding new ways to circumvent them. Our hypothesis is that while modifying toxic content and keywords to fool filters can be easy, hiding sentiment is harder. In this paper, we explore various aspects of sentiment detection and their correlation to toxicity, and use our results to implement a toxicity detection tool. We then test how adding the sentiment information helps detect toxicity in three different real-world datasets, and incorporate subversion to these datasets to simulate a user trying to circumvent the system. Our results show sentiment information has a positive impact on toxicity detection against a subversive user.

Motivation & Objective

  • To investigate the correlation between sentiment and toxicity in online comments.
  • To develop a sentiment detection tool using lexicons and linguistic features for integration into toxicity detection systems.
  • To evaluate whether sentiment information enhances toxicity detection performance, especially under subversion.
  • To simulate subversive behavior by replacing toxic keywords with homophones or misspellings to test system robustness.
  • To assess the impact of sentiment on toxicity detection across diverse real-world datasets (Kaggle, Wikipedia, Reddit).

Proposed method

  • Built a sentiment detection system using multiple sentiment lexicons (SentiS, VADER, SentiStrength) and linguistic features such as word frequencies and negation handling.
  • Trained a deep neural network for toxicity detection using both text embeddings and sentiment scores as input features.
  • Simulated subversive users by applying a substitution list that replaces 191 common toxic keywords with homophones or misspellings (e.g., 'kill' → 'kilt').
  • Conducted experiments on three datasets (Kaggle, Wikipedia, Reddit), training on 70% of data, validating on 20%, and testing on 10%, with three random runs per dataset.
  • Compared detection accuracy with and without sentiment input, both in clean and subversive conditions.
  • Used balanced datasets by undersampling non-toxic messages to match the number of toxic messages in each corpus.

Experimental results

Research questions

  • RQ1Is there a significant correlation between sentiment and toxicity in online comments?
  • RQ2Can sentiment information improve the accuracy of toxicity detection in standard and subversive contexts?
  • RQ3How effective is sentiment-based detection when toxic users modify keywords to evade keyword-based filters?
  • RQ4Does the performance gain from sentiment vary across different datasets with varying toxicity-sentiment correlations?
  • RQ5Can sentiment detection help detect toxicity when keyword-based systems fail due to subversion?

Key findings

  • A clear correlation exists between negative sentiment and toxicity, with sentiment scores showing strong alignment with toxicity labels across all three datasets.
  • In clean conditions (no subversion), sentiment inclusion improved toxicity detection accuracy by 0.5% on average, with minimal gains in Reddit (0.1%) due to weaker sentiment-toxicity correlation.
  • Under subversion, where 65–82% of toxic messages were altered with homophonic substitutions, accuracy dropped significantly in models without sentiment (e.g., from 93.2% to 77.2% on Kaggle), but improved when sentiment was included.
  • The addition of sentiment information led to a 2.9% improvement in detection accuracy on the subversive Kaggle dataset (from 77.2% to 80.1%), and similar gains were observed on Wikipedia (from 81.4% to 82.0%) and Reddit (from 83.0% to 83.9%).
  • The largest performance gains from sentiment occurred in subversive settings, confirming that sentiment is more resilient to obfuscation than lexical content.
  • Even without sentiment, models achieved high baseline accuracy (e.g., 93.2% on clean Kaggle), likely due to robust character-level encoding and noise tolerance in deep learning models.

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.