Emotion-based Modeling of Mental Disorders on Social Media

Xiaobo Guo, Yaojia Sun, Soroush Vosoughi · DOI

Introduction

Mental health disorders represent a global health crisis, with the World Health Organization estimating that one in four individuals will be affected at some point in their lives. Despite the prevalence of conditions like Bipolar Disorder (BD), Major Depressive Disorder (MDD), and Anxiety Disorder (AD), many individuals never receive a formal diagnosis due to social stigma or limited access to care. In response, researchers have increasingly looked toward "passive detection"—using social media data to identify early warning signs of mental distress.

While early efforts in this field have shown promise, they often rely on content-based models that analyze specific keywords or language patterns. This paper introduces a novel Emotion Representation (ER) framework that shifts the focus from what users say to how their emotional states transition over time, offering a more robust and generalizable approach to mental health monitoring.

The Problem: The Brittleness of Content-Based Models

Most existing models for detecting mental disorders on platforms like Reddit are built on content-based representations. These models look for specific n-grams, topics, or linguistic markers associated with depression or anxiety. However, these methods are inherently "brittle" due to two primary issues:

  1. Topic Bias: A model might learn to associate a specific cultural event, video game release, or political movement with a certain year or demographic. When the conversation shifts, the model’s accuracy plummets.
  2. Information Leakage: Models often inadvertently learn to identify disorders by spotting medication names or specific subreddit jargon rather than underlying psychological patterns.

When faced with temporal shifts—such as the change in global discourse during a pandemic—content-based models like BERT often fail to generalize. The authors of this study sought a "topic-agnostic" alternative that captures the underlying emotional "fingerprint" of a disorder.

Methodology: The Emotion Representation (ER) Framework

The ER framework transforms a user’s raw text history into a mathematical map of emotional movement. The process involves four distinct stages:

1. Emotion Classification

Using a BERT-based model trained on the SemEval "Affect in Tweets" dataset, the researchers classified individual sentences into four primary emotions: joy, sadness, anger, and fear.

2. State Mapping

By combining these four emotions, the researchers defined 16 unique emotional states (e.g., a state representing both "anger and fear") plus one "no-activity" or neutral state (State N), resulting in 17 possible emotional states.

3. Markov Transitions

The core of the ER model is the calculation of a 17x17 transition probability matrix. By applying a sliding window to a user’s Reddit history, the model calculates the likelihood of a user moving from one emotional state to another within a 30-minute window. This captures the dynamics of emotional regulation—how a user moves from sadness back to neutral, or from joy to anger.

4. Classification

These matrices serve as the input for machine learning classifiers. After testing various architectures, the researchers found that a Random Forest (RF) classifier provided the best performance in distinguishing between disorder groups and the control group.

Data and Experimental Design

The study utilized a dataset of 1,997 users per category (BD, MDD, AD, and Control) sourced from Reddit between 2011 and 2019. To ensure the model was learning genuine psychological patterns rather than superficial cues, the researchers implemented several controls:

  • Pruning for Realism: All posts made after a user’s self-reported diagnosis were removed to simulate an early detection scenario.
  • Subreddit Matching: The control group was sampled from the same subreddits as the disorder groups to prevent the model from simply identifying which communities a user frequented.

Key Insights

The "Neutral Reset"

One of the most significant findings was the role of the neutral state (State N). Emotionally healthy users in the control group were significantly more likely to return to a neutral state quickly after an emotional event. In contrast, users with BD, MDD, or AD exhibited impaired emotional regulation, remaining in high-arousal or negative states for longer periods.

Anger Suppression

The data provided empirical support for the psychological theory of anger suppression in clinical populations. While healthy users might transition into an "anger" state when provoked, users in the disorder groups were statistically more likely to transition directly from a provocative state into "sadness," suggesting a different internal processing of negative stimuli.

Temporal Robustness

The ER model’s greatest strength is its generalizability. In "temporal testing"—where a model is trained on data from one year and tested on data from seven years later—traditional BERT models saw a performance drop of nearly 10%. The ER model, being topic-agnostic, remained stable and even showed slight improvements, proving that emotional transition patterns are more consistent over time than language use.

Results and Performance

The ER model achieved competitive accuracy rates: 85.1% for Bipolar Disorder, 80.7% for MDD, and 83.9% for Anxiety Disorder. Notably, in detecting Bipolar Disorder, the ER model achieved a significantly lower false-positive rate (0.649) compared to BERT (0.863) when the true positive rate was held at 1.0, making it a more reliable tool for screening.

Conclusion and Future Work

The Emotion Representation framework demonstrates that the dynamics of emotion are a powerful, stable indicator of mental health. By ignoring the specific topics of conversation and focusing on the transitions between emotional states, the ER model avoids the pitfalls of topic bias and information leakage.

Future research may expand this "emotion palette" beyond four basic emotions or incorporate multimodal data, such as the emotional shifts present in images or videos. While the current study is limited by its reliance on self-reported diagnoses and a relatively small sample size, it paves the way for more robust, longitudinal tools for mental health support in the digital age.

Summary updated

BibTeX
@inproceedings{guo2021emotion,
  author = {Xiaobo Guo and Yaojia Sun and Soroush Vosoughi},
  title = {{Emotion-based Modeling of Mental Disorders on Social Media}},
  booktitle = {WI/IAT},
  year = {2021},
  doi = {10.1145/3486622.3493916},
}
Figure