Wellbeing and Mental Health

This algorithm can help diagnose depression through your Facebook posts

Silhouettes of laptop users are seen next to a screen projection of Facebook logo in this picture illustration taken March 28, 2018.  REUTERS/Dado Ruvic/Illustration - RC1EC52FC080

Increased used of first-person pronouns is one indicator. Image: REUTERS/Dado Ruvic

Cassandra Huneke-Stony Brook
Share:
Our Impact
What's the World Economic Forum doing to accelerate action on Wellbeing and Mental Health?
The Big Picture
Explore and monitor how Mental Health is affecting economies, industries and global issues
A hand holding a looking glass by a lake
Crowdsource Innovation
Get involved with our crowdsourced digital platform to deliver impact at scale
Stay up to date:

Mental Health

Researchers have created an algorithm that analyzes social media posts to find linguistic markers for depression.

In any given year, depression affects more than six percent of the adult population in the United States—some 16 million people—but fewer than half receive the treatment they need.

Analyzing social media data that consenting users shared across the months leading up to a depression diagnosis, researchers found their algorithm could accurately predict future depression. Indicators of the condition included mentions of hostility and loneliness, words like “tears” and “feelings,” and use of more first-person pronouns like “I” and “me.”

Image: PNAS

Your Social Media 'Genome'

“What people write in social media and online captures an aspect of life that’s very hard in medicine and research to access otherwise. It’s a dimension that’s relatively untapped compared to biophysical markers of disease,” says H. Andrew Schwartz, assistant professor of computer science at Stony Brook University and senior paper author. “Conditions like depression, anxiety, and PTSD, for example, you find more signals in the way people express themselves digitally.”

For six years, researchers in the World Well-Being Project (WWBP), based in the University of Pennsylvania’s Positive Psychology Center and Stony Brook’s Human Language Analysis Lab, have been studying how the words people use reflect their inner feelings and contentedness. In 2014, Johannes Eichstaedt, WWBP founding research scientist and a postdoctoral fellow at Penn, started to wonder whether it was possible for social media to predict mental health outcomes, particularly for depression.

“Social media data contain markers akin to the genome. With surprisingly similar methods to those used in genomics, we can comb social media data to find these markers,” Eichstaedt explains. “Depression appears to be something quite detectable in this way; it really changes people’s use of social media in a way that something like skin disease or diabetes doesn’t.”

The writing's on the Facebook Wall

Rather than do what previous studies had done—recruit participants who self-reported they had depression—the researchers identified data from people consenting to share Facebook statuses and electronic medical record information, then analyzed the statuses using machine-learning techniques to distinguish those with a formal depression diagnosis.

“This is early work from our Social Mediome Registry from the Penn Medicine Center for Digital Health, which joins social media with data from health records,” says study coauthor Raina Merchant. “For this project, all individuals are consented, no data is collected from their network, the data is anonymized, and the strictest levels of privacy and security are adhered to.”

Nearly 1,200 people then consented to provide both digital archives. Of these, just 114 people had a diagnosis of depression in their medical records. The researchers then matched every person with a diagnosis of depression with five who did not, to act as a control, for a total sample of 683 people (excluding one for insufficient words within status updates). The idea was to create as realistic a scenario as possible to train and test the researchers’ algorithm.

"There's a perception that using social media is not good for one's mental health, but it may turn out to be an important tool for diagnosing, monitoring, and eventually treating it."

H. Andrew Schwartz

“This is a really hard problem,” Eichstaedt says. “If 683 people present to the hospital and 15 percent of them are depressed, would our algorithm be able to predict which ones? If the algorithm says no one was depressed, it would be 85 percent accurate.”

To build the algorithm, the researchers looked back at 524,292 Facebook updates from the years leading up to diagnosis for each individual with depression and for the same time span for the control. They determined the most frequently used words and phrases, then modeled 200 topics to suss out what they called “depression-associated language markers.” Finally, they compared in what manner and how frequently depressed versus control participants used such phrasing.

Have you read?

‘Yellow flags' for depression diagnosis

They learned that these markers comprised emotional, cognitive, and interpersonal processes such as hostility and loneliness, sadness and rumination, and could predict future depression as early as three months before first documentation of the illness in a medical record.

“There’s a perception that using social media is not good for one’s mental health, but it may turn out to be an important tool for diagnosing, monitoring, and eventually treating it,” Schwartz says. “Here, we’ve shown that it can be used with clinical records, a step toward improving mental health with social media.”

Eichstaedt sees long-term potential in using these data as a form of unobtrusive screening for a depression diagnosis. “The hope is that one day, these screening systems can be integrated into systems of care,” he says. “This tool raises yellow flags; eventually the hope is that you could directly funnel people it identifies into scalable treatment modalities.”

Despite some limitations to the study, including a distinctive urban sample, and limitations in the field itself—not every depression diagnosis in a medical record meets the gold standard that structured clinical interviews provide, for example—the findings offer a potential new way to uncover and get help for those suffering from depression.

Original Study DOI: 10.1073/pnas.1802331115

Don't miss any update on this topic

Create a free account and access your personalized content collection with our latest publications and analyses.

Sign up for free

License and Republishing

World Economic Forum articles may be republished in accordance with the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License, and in accordance with our Terms of Use.

The views expressed in this article are those of the author alone and not the World Economic Forum.

Related topics:
Wellbeing and Mental HealthIndustries in DepthHealth and Healthcare Systems
Share:
World Economic Forum logo
Global Agenda

The Agenda Weekly

A weekly update of the most important issues driving the global agenda

Subscribe today

You can unsubscribe at any time using the link in our emails. For more details, review our privacy policy.

From 'Quit-Tok' to proximity bias, here are 11 buzzwords from the world of hybrid work

Kate Whiting

April 17, 2024

2:12

About Us

Events

Media

Partners & Members

  • Join Us

Language Editions

Privacy Policy & Terms of Service

© 2024 World Economic Forum