How your social media data can become a ‘mental health X-ray’

In the future, you might voluntarily share your social media data with your psychiatrist to inform a more accurate diagnosis.

Social media data may be a useful tool in psychiatry, leading to more accurate diagnoses and better outcomes.

Credit: I-Wei Huang / Adobe Stock
  • About one in five people suffer from a psychiatric disorder, and many go years without treatment, if they receive it at all.
  • In a new study, researchers developed machine-learning algorithms that analyzed the relationship between psychiatric disorders and Facebook messages.
  • The algorithms were able to correctly predict the diagnosis of psychiatric disorders with statistical accuracy, suggesting digital tools may someday help clinicians identify mental illnesses in early stages.


For the 20 percent of people with a mental illness, early identification of the condition is key to getting the best treatment. But people often suffer symptoms for months, even years, without receiving clinical attention. Part of the problem is that psychiatrists have few tools to identify mental illnesses; they rely mostly on self-reported data and observations from friends and family.

The field is, in some ways, "stuck in the prehistoric age," according to Michael Birnbaum, MD, an assistant professor at the Feinstein Institutes for Medical Research and an attending physician at Zucker Hillside Hospital and Lenox Hill Hospital at Northwell Health.

But digital tools could help bring psychiatry into the modern age.

"It became apparent, in my work with young folks, that social media was ubiquitous," Dr. Birnbaum told Big Think. "So, we started to think about ways that we could potentially explore the utility of the internet and social media in the way we diagnose our patients and the care that we provide."

The results of a recent study, conducted by Feinstein Institutes researchers and IBM Research, suggest that social media activity can provide useful insights into who's at risk of developing mental illnesses like mood disorders and schizophrenia spectrum disorders.

Published in the journal njp Schizophrenia, the study used machine-learning algorithms to analyze millions of Facebook messages and images, which were provided voluntarily by participants, ages 15 to 35. The data represented participants' Facebook activity for 18 months prior to hospitalization.

...the health disparity between people with mental illness and those without is larger than disparities attributable to race, ethnicity, geography or socioeconomic status.

Identifying psychiatric disorders

The goal was for the algorithms to analyze patterns in these datasets, then predict which group participants belonged to: schizophrenia spectrum disorders (SSD), mood disorders (MD), or healthy volunteers (HV). The results were promising, showing that the algorithms correctly identified:

  • The SDD group with an accuracy of 52% (chance was 33%)
  • The MD group with an accuracy of 57% (chance was 37%)
  • The HV group with an accuracy of 56% (chance was 29%)

The study also showed interesting differences in Facebook activity among the groups, such as:

  • The SSD group was more likely to use language related to perception (hear, see, feel).
  • The MD and SSD groups were far more likely to use swear words and anger-related language.
  • The MD group was more likely to use language related to biological processes (blood, pain).
  • The SSD group was more likely to express negative emotions, use second-person pronouns and write in netspeak (lol, btw, thx).
  • The MD group was more likely to post photos containing more blues and less yellows.

These differences tended to become more apparent in the months before a patient was hospitalized. But even 18 months before hospitalization, the results revealed signals that hinted participants might be on the path to developing a psychiatric disorder. That's where these tools may someday help improve early-identification efforts.

"In psychiatry, we often get a snapshot of somebody's life, for 30 minutes once a month or so," he said. "There's the potential to get much greater granularity with some of these new assessment tools. Facebook, for example, can allow us to understand somebody's thoughts and behaviors in a more real-time, longitudinal fashion, as opposed to cross-sectional moments in time."

Dr. Birnbaum noted that everyone has a unique style of online behavior and that certain behavioral changes may contain clues about mental health.

"The way that we're understanding this is that everybody has a digital baseline, a way they typically act and behave on social media and the internet," he said. "So, ultimately here we would want to identify this baseline for each individual—a fingerprint—and then monitor for changes over time, and identify which changes are concerning, and which are not."

Using digital tools to better identify psychiatric conditions could someday reduce the number of people who suffer without treatment.

"There's an alarming gap between the number of people who experience mental illness and those who receive care," said Michael Dowling, president and CEO of Northwell Health. "It's especially troubling when you consider that the health disparity between people with mental illness and those without is larger than disparities attributable to race, ethnicity, geography or socioeconomic status."

A step toward the future of psychiatry

Credit: Jewel Samad/AFP via Getty Images

Although previous research has examined the relationship between online activity and psychiatric disorders, the new study is unique because it paired online behavior with clinically confirmed cases of psychiatric disorders.

"The vast majority of the data thus far has been extracted from anonymous, or semi-anonymous individuals online, without any real way to validate the diagnosis or confirm the authenticity of the symptoms," Dr. Birnbaum said.

But before clinicians can use these kinds of digital approaches, researchers have more work to do.

"I think that we need much larger datasets," Dr. Birnbaum said. "We need to repeat these findings. We need to better understand how demographic differences, like age, ethnicity and gender, can play a role."

Privacy is another consideration. Dr. Birnbaum emphasized that these kinds of approaches would only be conducted on a voluntary basis, and that the Facebook data used in the recent study was anonymized, and the algorithms examined only individual words, not the context or meaning of sentences.

"This isn't about surveillance, or that Facebook should somehow be monitoring us," Dr. Birnbaum said. "It's about giving the power to the patient. I imagine a world where patients could come into the doctor's office and express their concerns, but also provide some additional clinically meaningful information that they own."

Dr. Birnbaum said the long-term goal isn't for algorithms to make official diagnoses or replace physicians, but rather to serve as supplementary tools. He added that these tools would be used only for people seeking help or information about their risk of developing a psychiatric condition, or suffering a relapse.

"Hopefully one day, we'll be able to incorporate this and other information to inform what we do, the same way you go to a doctor and you get an X-ray or a blood test to inform the diagnosis," he said. "It doesn't make the diagnosis, but it informs the doctor. That is where psychiatry is heading, and hopefully this is a step in that direction."

More From Stephen Johnson
Related Articles

Humanity's most distant space probe captures a strange sound

A new paper reveals that the Voyager 1 spacecraft detected a constant hum coming from outside our Solar System.

Credit: NASA / JPL - Caltech.
Surprising Science
  • Voyager 1, humankind's most distant space probe, detected an unusual "hum" in the data from interstellar space.
  • The noise is likely produced by interstellar gas.
  • Further investigation may reveal the hum's exact origins.
  • Keep reading Show less

    Why kids take board games so seriously

    How morally developed are you?

    Credit: Justin Sullivan via Getty Images
    Personal Growth
    • Lawrence Kohlberg's experiments gave children a series of moral dilemmas to test how they differed in their responses across various ages.
    • He identified three separate stages of moral development from the egoist to the principled person.
    • Some people do not progress through all the stages of moral development, which means they will remain "morally undeveloped."
    Keep reading Show less

    Study: Dunbar’s number is wrong. You can have more than 150 friends

    Dunbar's number is a popular estimate for the maximum size of social groups. But new research suggests that it's a fictitious number based on flimsy data and bad theory.

    Mind & Brain
    • A team of researchers recalculated Dunbar's number using his original methods and better data.
    • Their estimates were as high as 520 and were stretched over a wide enough range as to be nearly useless.
    • The authors suggest that the method used to calculate the number of friends a person can have is also theoretically unsound.
    Keep reading Show less
    Quantcast