Detecting Anxiety through Reddit

Judy Hanwen Shen, Frank Rudzicz

Abstract

Anxiety disorders are the most prevalent mental health conditions in the United States, yet access to professional screening remains limited. This research explores the potential of using Reddit's long-form personal narratives as a "digital exhaust" for automated anxiety detection. By combining modern vector embeddings (Word2Vec) with traditional psychometric lexicons (LIWC), the study developed a machine learning pipeline that achieves up to 98% classification accuracy. The findings underscore the superiority of narrative-rich platforms over micro-blogging sites like Twitter for mental health monitoring.

Introduction

While social media has long been considered a valuable data source for mental health research, most studies have focused on detecting depression via Twitter. However, Twitter’s character limits often strip away the nuanced, first-person narratives necessary for deep clinical insight. This paper addresses the need for scalable, automated screening tools by pivoting to Reddit, where users frequently share detailed stories about their struggles with anxiety.

Methodology

The researchers treated anxiety detection as a binary classification task (Anxiety vs. Control). They evaluated several feature engineering strategies:

  1. Vector Embeddings: Word2Vec (CBOW) and Doc2Vec (DM) were used to capture semantic meanings.
  2. Topic Modeling: Latent Dirichlet Allocation (LDA) identified latent themes.
  3. Psychometric Lexicons: Linguistic Inquiry and Word Count (LIWC) categorized words into functional and emotional groups.
  4. N-gram Models: Traditional unigram and bigram probabilities served as baselines.

These features were processed using Logistic Regression (LR), Support Vector Machines (SVM), and a 2-layer Neural Network (NN).

Dataset and Domain Comparison

The study utilized a custom dataset of 22,808 Reddit posts. The Anxiety Group (9,971 posts) was sourced from subreddits like r/anxiety and r/socialanxiety, while the Control Group (12,837 posts) came from 22 diverse subreddits such as r/askscience and r/teaching.

A key finding was that models trained on Reddit data significantly outperformed those trained on Twitter data. The extended length of Reddit posts allows for more robust document-level representations compared to the fragmented nature of tweets.

Performance comparison of SVM and NN models across Reddit and Twitter datasets.

Key Insights

The "I" in Anxiety

Frequency analysis confirmed that individuals with anxiety use significantly more first-person singular pronouns ("I," "me," "myself") and fewer third-person or plural pronouns. This linguistic pattern suggests a high degree of self-focus often associated with anxious states.

Predictive Collocations

The study identified specific "anxiety trigrams" that are highly predictive of the disorder. Phrases like "does anyone else," "wondering if anyone," and "stop thinking about" were frequently collocated in the anxiety group, reflecting common themes of seeking validation and ruminative thought patterns.

Most collocated bigrams and trigrams for Anxiety and Control groups.

Results

The best-performing model was a Neural Network utilizing a hybrid of Word2Vec + LIWC, reaching 98% accuracy. Standalone Word2Vec features also performed strongly, achieving 91% accuracy with an SVM. Even simple LIWC features—which count emotional words—provided 82-85% accuracy, demonstrating the robustness of lexical signals in mental health classification.

Conclusion and Future Work

This research demonstrates that long-form social media narratives are a powerful signal for mental health screening. While the current study uses subreddit membership as a proxy for diagnosis, future work aims to distinguish between specific types of anxiety (e.g., social anxiety vs. PTSD) and integrate longitudinal data to predict future anxiety spikes.

Summary updated

BibTeX
@inproceedings{shen2017detecting,
  author = {Judy Hanwen Shen and Frank Rudzicz},
  title = {{Detecting Anxiety through Reddit}},
  booktitle = {CLPsych @ ACL},
  year = {2017},
  doi = {10.18653/v1/w17-3107},
}
Figure