Understanding and Measuring Psychological Stress using Social Media

Sharath Chandra Guntuku, Anneke Buffone, Kokil Jaidka, Johannes Eichstaedt, Lyle Ungar

TL;DR

This paper demonstrates how to leverage social media language to measure chronic psychological stress at both the individual and county levels. By using domain adaptation techniques, the authors successfully transfer stress-prediction models trained on rich, private Facebook data to public Twitter streams, outperforming traditional demographic models in predicting regional health and socioeconomic outcomes.

What Problem Does This Paper Address?

While social media has been widely used to predict acute mental health conditions like depression or anxiety, tracking chronic, trait-related psychological stress remains a challenge. Surveying large populations to monitor public health is expensive, slow, and resource-intensive.

Social media offers a real-time alternative, but there is a platform mismatch: the rich, deeply expressive data needed to train individual stress models is typically found on private Facebook profiles, whereas the data readily available at scale for geographic regions (counties) is public Twitter data. Because people express themselves differently across platforms, models trained on Facebook fail when directly applied to Twitter. The authors tackle this cross-platform gap to enable scalable, county-level stress monitoring without requiring massive regional surveys.

Methods

The authors extracted linguistic features using both dictionary-based methods (LIWC - Linguistic Inquiry and Word Count; TensiStrength stress lexicon) and data-driven approaches (Latent Dirichlet Allocation for topic modeling). They used Elastic-net linear regression to predict stress scores.

To bridge the platform gap, they evaluated two domain adaptation techniques to transfer Facebook-trained models to Twitter language:

  • Easy Adapt: A supervised approach that maps features from both the source and target domains into a higher-dimensional space.
  • Transfer Component Analysis (TCA): An unsupervised approach that uses Maximum Mean Discrepancy to align the feature distributions between the two platforms in a shared subspace, requiring no stress labels for the target (Twitter) data.

Datasets

  • User-level Dataset: 601 US participants who completed the standard 10-item Cohen Perceived Stress Scale survey via Qualtrics and consented to provide access to both their Facebook and Twitter histories.
  • County-level Twitter Dataset: A massive corpus of 1.7 billion geo-located tweets across 2,710 US counties collected between 2009 and 2015.
  • Validation Benchmarks: County-level ground truth stress data aggregated from the Gallup-Sharecare Well-Being Index, alongside socioeconomic and health metrics from the US County Health Rankings portal.

Key Insights and Ideas

  • The Anatomy of Stressed Language: Stressed individuals exhibit intense self-focus (high use of "I" and "me") and frequently post about exhaustion, physical pain, and a lack of control ("bored", "hurting", "lost mind"). Conversely, low-stress language centers on social inclusion, relaxation, and routine ("breakfast", "family", "travel").
  • The Cross-Platform Disconnect: Facebook language is inherently more predictive of stress than Twitter language. Interestingly, while stressed Facebook users rely heavily on first-person pronouns, stressed Twitter users tend to drop self-references entirely. Instead, "Comparisons" (e.g., "greater", "best") emerge as a stronger linguistic marker of stress on Twitter, likely reflecting dissatisfaction or pessimism.
  • Unsupervised Transfer Works Best: Unsupervised domain adaptation via TCA successfully aligned the linguistic distributions of the two platforms. This proves that researchers can train robust psychological models on small, high-quality datasets from one digital environment and deploy them effectively on massive, public data from another.

Key Results

  • Individual Prediction: Within the same platform, Facebook linguistic features outperformed traditional sociodemographic variables (age, gender, race, income, education) at predicting stress ($r = 0.31$ for topics vs. $r = 0.25$ for demographics).
  • Domain Adaptation Boost: Directly applying a Facebook-trained LIWC model to Twitter data yielded a baseline Pearson correlation of $r = 0.23$. Applying TCA improved this cross-platform performance by 16%, raising the correlation to $r = 0.27$.
  • County-Level Scaling: The domain-adapted model predicted county-level stress (validated against Gallup surveys) with a correlation of $r = 0.34$, significantly outperforming sociodemographic models ($r = 0.24$).
  • Macro-Level Correlations: Higher predicted county stress strongly correlated with poor health behaviors, such as physical inactivity ($r = 0.44$) and higher mortality rates ($r = 0.40$), even when controlling for socioeconomic status.

Limitations and Future Work

The study is purely correlational and cannot establish causal pathways between social media use, environment, and stress. There is also a potential selection bias: severely stressed individuals might stop posting altogether, though post frequency itself did not correlate with stress in this specific sample. Furthermore, the model does not yet differentiate between acute, short-term stressors (like moving or exams) and chronic trait stress.

The authors suggest that future iterations should integrate multi-modal data—such as images and phone-based sensor data—and utilize advanced autoregressive modeling to account for spatial correlations between neighboring counties.

Summary updated

Abstract

A body of literature has demonstrated that users' mental health conditions, such as depression and anxiety, can be predicted from their social media language. There is still a gap in the scientific understanding of how psychological stress is expressed on social media. Stress is one of the primary underlying causes and correlates of chronic physical illnesses and mental health conditions. In this paper, we explore the language of psychological stress with a dataset of 601 social media users, who answered the Perceived Stress Scale questionnaire and also consented to share their Facebook and Twitter data. Firstly, we find that stressed users post about exhaustion, losing control, increased self-focus and physical pain as compared to posts about breakfast, family-time, and travel by users who are not stressed. Secondly, we find that Facebook language is more predictive of stress than Twitter language. Thirdly, we demonstrate how the language based models thus developed can be adapted and be scaled to measure county-level trends. Since county-level language is easily available on Twitter using the Streaming API, we explore multiple domain adaptation algorithms to adapt user-level Facebook models to Twitter language. We find that domain-adapted and scaled social media-based measurements of stress outperform sociodemographic variables (age, gender, race, education, and income), against ground-truth survey-based stress measurements, both at the user- and the county-level in the U.S. Twitter language that scores higher in stress is also predictive of poorer health, less access to facilities and lower socioeconomic status in counties. We conclude with a discussion of the implications of using social media as a new tool for monitoring stress levels of both individuals and counties.
BibTeX
@inproceedings{guntuku2019understanding,
  author = {Sharath Chandra Guntuku and Anneke Buffone and Kokil Jaidka and Johannes Eichstaedt and Lyle Ungar},
  title = {{Understanding and Measuring Psychological Stress using Social Media}},
  booktitle = {ICWSM},
  year = {2019},
}
Figure