The relationship between text message sentiment and self-reported depression

J Affect Disord. 2022 Apr 1:302:7-14. doi: 10.1016/j.jad.2021.12.048. Epub 2021 Dec 25.

Abstract

Background: Personal sensing has shown promise for detecting behavioral correlates of depression, but there is little work examining personal sensing of cognitive and affective states. Digital language, particularly through personal text messages, is one source that can measure these markers.

Methods: We correlated privacy-preserving sentiment analysis of text messages with self-reported depression symptom severity. We enrolled 219 U.S. adults in a 16 week longitudinal observational study. Participants installed a personal sensing app on their phones, which administered self-report PHQ-8 assessments of their depression severity, collected phone sensor data, and computed anonymized language sentiment scores from their text messages. We also trained machine learning models for predicting end-of-study self-reported depression status using on blocks of phone sensor and text features.

Results: In correlation analyses, we find that degrees of depression, emotional, and personal pronoun language categories correlate most strongly with self-reported depression, validating prior literature. Our classification models which predict binary depression status achieve a leave-one-out AUC of 0.72 when only considering text features and 0.76 when combining text with other networked smartphone sensors.

Limitations: Participants were recruited from a panel that over-represented women, caucasians, and individuals with self-reported depression at baseline. As language use differs across demographic factors, generalizability beyond this population may be limited. The study period also coincided with the initial COVID-19 outbreak in the United States, which may have affected smartphone sensor data quality.

Conclusions: Effective depression prediction through text message sentiment, especially when combined with other personal sensors, could enable comprehensive mental health monitoring and intervention.

Keywords: Depression; Digital phenotyping; Language sentiment analysis; Machine learning; Personal sensing.

Publication types

  • Observational Study
  • Research Support, N.I.H., Extramural

MeSH terms

  • Adult
  • Attitude
  • COVID-19*
  • Depression / diagnosis
  • Depression / epidemiology
  • Female
  • Humans
  • SARS-CoV-2
  • Self Report
  • Text Messaging*