What can your words reveal about your mental health?
Published in Neuroscience, Computational Sciences, and Behavioural Sciences & Psychology
Imagine reading this message from a friend:
“I feel devastated about what happened, but I’m also excited to see what the future holds”.
Would you describe that message as positive or negative? Most people would probably say that it’s both.
Although determining a text’s emotional valence (called its sentiment) might appear a simple task, it is more complex than it seems. One issue that researchers who use sentiment analysis (i.e., using natural language processing (NLP) methods to label text as positive or negative) face is the wide variety of sentiment measures that rely on different methods and assumptions about emotions.
For example, some of the most commonly used sentiment analysis methods assume that positivity and negativity are at the opposite ends of a one-dimensional scale. These measures might classify the sentence above as near-neutral, since positivity and negativity cancel each other out. Bidimensional methods, which allow positivity and negativity to coexist, would mark the above sentence as high in both positivity and negativity. Consequently, the methods we choose may shape the conclusions we make, with some measures oversimplifying emotional complexity and potentially yielding weak or inconsistent relationships with emotion and mental health.
Sentiment measures are increasingly used in academic research and industry, as sentiment has emerged as a potential marker of emotions and even mental health difficulties. For example, using more negative language has been linked to experiencing more negative emotions or worse mood, and individuals with depression have been shown to use more negative language in their daily lives – for example, in their text messages, social media posts, and conversations with romantic partners. These findings provide important preliminary evidence that measuring the sentiment of one’s everyday language could serve as an indicator of one’s emotional well-being.
Therapy provides a unique window into emotional change
Psychotherapy offers an opportunity to see whether changes in language can prospectively predict health and symptom changes. Therapy typically aims to improve clients’ mental health through conversations that involve understanding and altering clients’ emotional experiences and interpretations. Unlike laboratory studies, therapy captures emotional language as it naturally unfolds while people discuss the challenges they are actively trying to overcome, making therapeutic dialogue a rare window into how emotional change unfolds over time.
In line with research outside clinical contexts, the sentiment of clients’ language in therapeutic settings has also been linked to their self-reported emotional distress and even their treatment outcomes. However, much less research has examined the sentiment of therapists' language. Therapists may use their emotional language strategically. For example, they might match clients’ negative language to make them feel heard and validated, or they might use more positive language to help clients reframe their experiences. Because previous work has mainly focused on clients’ language, it remains largely unknown how the therapists’ emotional language relates to their clients’ symptoms over the course of treatment.
Our study
Given this background, we examined three research questions. First, we wanted to conduct a “competition” to see how strongly 13 commonly used sentiment measures agree with human ratings of positive or negative sentiment. Second, we wanted to explore how well these measures captured depression and anxiety symptom severity in a large dataset of therapeutic conversations between clients and their therapists. We specifically examined the role of client sentiment, therapist sentiment, and client-therapist sentiment divergence in tracking symptoms. Finally, we wanted to explore the timing of the relationship between sentiment and symptoms: Does sentiment merely reflect symptoms, or do changes in more positive/negative language precede and potentially predict symptom changes?
Which sentiment measures agree with humans?
To see whether differences in sentiment measurement matter in practice, we compared thirteen widely used sentiment measures against human judgments of emotional language.
We found that some measures closely mirrored how humans evaluated positivity or negativity of movie reviews. Others consistently overestimated positivity and underestimated negativity, and several popular machine-learning approaches that forced every piece of text into either a positive or negative category actually performed among the worst.
Our findings suggest that some sentiment measures agree with human judgments of emotions more than others, which has important implications for studies that rely on sentiment analysis instead of human judgment when assessing emotional language.
Does sentiment track clients’ symptoms in therapy?
Working with a large messaging-based therapy platform (Talkspace), we analyzed de-identified therapeutic messaging conversations from more than 6,000 clients who consented to research. Clients completed symptom measures approximately every three weeks, allowing us to examine how changes in language related to changes in depression and anxiety over the course of treatment.
Rather than examining only clients' language, we also analyzed therapists' language and the degree to which therapists' emotional language differed from their clients'. This allowed us to ask whether therapists' own use of positive and negative language might also provide insight into therapeutic progress. Three findings stood out:
First, emotional language changed over time in therapy.
As treatment progressed, both clients and therapists gradually used more positive language. Interestingly, therapists became increasingly more positive relative to their clients over time. Thus, as people improve in therapy, their language changes in lockstep: Both clients and therapists use more positive language over time in treatment, with therapists outpacing clients in this shift towards positivity.
Second, language closely tracked mental health.
We found consistent evidence that clients who used more negative language on average tended to have worse symptoms, and more negative therapist language on average was also associated with clients having more severe symptoms. These relationships held both across individuals and, importantly, within individuals over time. For divergence, we found that when therapists are more positive than their clients on average, clients have worse symptoms. This likely reflects the fact that clients themselves are more negative when they have worse symptoms.
Finally, we found evidence that language change precedes symptom change.
Using longitudinal statistical models, we found that increases in positive client and therapist language consistently preceded later improvements in depression and anxiety. We did not find comparable evidence for the reverse pattern, in which symptom improvements reliably predicted later changes in language. This suggests that emotional language may serve as an early behavioral signal of improvement rather than simply reflecting changes that have already occurred.
And not all sentiment measures are equal
Our findings suggest that the choice of sentiment measure matters in therapeutic contexts.
Given the inconsistent performance of different measures particularly at detecting within-subjects relationships with symptoms, our findings highlight the importance of taking into account the basic assumptions of these models and encourage the use of multiple tools and methods to ensure robust patterns of results.
The methods that most closely matched human judgments and scientific theories about the complexity of emotion were also the ones that most consistently captured meaningful relationships with mental health over time. In contrast, some measures that forced language into a single positive-or-negative category performed substantially worse, particularly when tracking within-person changes across therapy.
This has important implications beyond psychotherapy.
Sentiment analysis is increasingly used throughout psychology, public health, computational social science, and artificial intelligence. Researchers often treat different sentiment measures as interchangeable, but the assumptions built into these tools can shape the scientific conclusions we reach and our ability to surface the signals that matter most in our understanding of human flourishing. Our comparison of sentiment measures suggest that more granular measures that allow measuring negative and positive sentiment independently may be best suited for detecting longitudinal, within-person changes in language that track clients’ symptoms over time.
While we cannot yet conclude that changing language causes improvements in mental health, because of many other important factors like motivation, life events, or the therapeutic process itself, it does seem to be an important signal of one’s well-being when measured properly.
Looking ahead
Language is one of the richest behavioral signals humans naturally produce. Every day, we communicate our hopes, fears, frustrations, and successes through conversations, text messages, and online interactions.
Our study has provided robust evidence of associations between emotional language and mental health in therapeutic settings, highlighting the potential of sentiment analysis as a tool for monitoring therapeutic progress. Our study sets the stage for exploring how these measures can be refined to investigate how language relates to emotions and mental health, and how they may be integrated into clinical practice to improve therapeutic outcomes.