A Piece of My Mind: A Sentiment Analysis Approach for Online Dispute Detection

Lu Wang, Claire Cardie

Abstract

Detecting disputes in online collaborative platforms is critical for maintaining healthy community dynamics. This paper introduces a novel approach that analyzes "sentiment flow"—the chronological sequence of emotions in a discussion—to identify conflicts. By utilizing isotonic Conditional Random Fields (CRFs) for sentiment tagging and an SVM classifier, the system achieves an 80% accuracy rate in detecting disputes on Wikipedia Talk pages.

Introduction

As platforms like Wikipedia scale, "edit wars" and heated disagreements become more frequent. While disagreement is a natural part of knowledge creation, toxic conflicts can hinder productivity. Traditional detection methods often rely on metadata (e.g., revision frequency), but these fail to capture the nuances of human interaction. This research addresses the gap by focusing on linguistic evidence: the shifting sentiments expressed by participants as a conversation unfolds.

Methodology: The Two-Stage Pipeline

The authors propose a two-stage system for automated dispute detection:

1. Sentence-level Sentiment Tagging

The system first labels every sentence on a 5-point ordinal scale (Very Negative to Very Positive). To handle the hierarchical nature of sentiment, the researchers use Isotonic Conditional Random Fields (CRFs). Unlike standard models, isotonic CRFs recognize that "Very Negative" is more extreme than "Negative," incorporating domain-specific sentiment lexicons to enforce these relationships.

2. Dispute Classification

The resulting sentiment "flow" is then fed into a classifier. The researchers found that an SVM (Support Vector Machine) with an RBF kernel provided the best performance. The classifier integrates four feature sets:

  • Lexical: Unigrams and bigrams.
  • Topic: Wikipedia article categories (e.g., Politics, Science).
  • Metadata: Turn count, participant count, and word count per turn.
  • Sentiment Flow: Distribution of labels and transition probabilities between sentiments.

Visualizing Sentiment Flow

The core insight of this work is that the sequence of sentiment is more predictive than isolated keywords. Unresolved disputes tend to maintain high levels of negative sentiment throughout the interaction. In contrast, resolved disputes often exhibit a "swing" toward positive or appreciative sentiment at the conclusion.

Comparison of sentiment flow in unresolved vs. resolved disputes with sample sentences.

Results and Performance

The study utilized the Wikipedia Dispute Corpus, containing 7,218 discussions. The inclusion of sentiment features significantly boosted performance over baseline models.

Performance comparison of baseline models and the proposed SVM classifiers.

As shown in the results, the SVM with an RBF kernel achieved the highest accuracy (80.00%) and F1 score (78.25%). This confirms that "how" people communicate—the emotional trajectory of their words—is a vital indicator of the state of a discussion.

Conclusion and Future Work

This research demonstrates that sentiment flow is a powerful proxy for conflict. While the current model is highly effective, future improvements could address error propagation from sentiment tagging (e.g., missing sarcasm) and model more complex, branched dialogue structures rather than linear sequences. By automating the detection of these patterns, platforms can better support moderators in maintaining constructive environments.

Summary updated

BibTeX
@inproceedings{wang2014piece,
  author = {Lu Wang and Claire Cardie},
  title = {{A Piece of My Mind: A Sentiment Analysis Approach for Online Dispute Detection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2113},
}
Figure