Twitter Data May Help Shed Light On Sleep Disorders


The beginnings of a “digital phenotype” of insomnia and other sleep disorder has been assembled by researchers from Boston Children’s Hospital and Merck, using data from Twitter.

The study is one of the first to investigate relationships between social media use and sleep issues. Based on assessments of sentiments expressed in users’ tweets it gives preliminary hints that patients with sleep disorders may be at greater risk of psychosocial issues.

Insomnia and other sleep issues affect between 50 and 70 million Americans. Apart from their impact on productivity, accidents and risky behaviors, chronic sleep disorders also contribute to diabetes, cardiovascular disease and depression.

Study co-leader John Brownstein, PhD, explained:

“Sleep deprivation and chronic sleep disorders are not well understood. We wanted to see if we could use new forms of online data, such as Twitter, to characterize the sleep disordered individual and possibly uncover new, previously-undescribed populations of patients suffering sleep problems.”

Overcoming Survey Limitations

Population-level research on sleep disorders has typically relied on survey methods such as the Behavior Risk Factor Surveillance System. However, such methods are time- and resource intensive, expensive, suffer from long lag times before reporting and are not generalizable to the larger U.S. population.

Research based on social media data may help overcome these limitations. To support such research, Brownstein, along with co-leaders Jared Hawkins, David McIver, and their colleagues, sought to develop a “digital phenotype,” or baseline profile of what a person suffering insomnia or other sleep disorders “looks” like on social media.

The research team used publically available anonymized data from Twitter to create a virtual cohort of 896 active Twitter users whose tweets contained sleep-related words (e.g., “can’t sleep,” “insomnia”), or hashtags (e.g., #cantsleep, #teamnosleep), or the names of common sleep aids or medications. They then compared data from that cohort to those of a second group of 934 users who did not tweet using sleep-related terms.

The team examined each user’s:

  • age
  • total number of tweets
  • total numbers of followers or people followed
  • number of favorite tweets (that is, the number of tweets by others that the user had favorite)
  • length of time on Twitter (that is, how long the user had had an active Twitter account)
  • average number of tweets per day
  • location
  • time zone

The researchers also assessed the time of day and average sentiment–positive, neutral, negative–of each user’s tweets.

Sleep-disordered Twitterers

The resulting profile of a Twitter user with sleep issues–compared to a Twitter user without–looked like this:

  • have been active on Twitter for a relatively long time
  • has fewer followers and follows fewer people
  • posts few tweets per day on average
  • more active on Twitter between 6:00 pm and 5:59 am
  • more active on Twitter on weekends and early weekdays
  • more likely to post tweets with negative sentiment

Taken together, the data suggest that Twitter users suffering from a sleep disorder are less active on Twitter on average but tweet more during traditional sleeping hours. The increase in negative sentiment in their tweets suggests that sleep-disordered users could be at an increased risk for psychosocial issues.

“These findings are preliminary and observational only, and need to be studied further,” Brownstein cautioned. “But they suggest that social media can be a useful addition to our toolkit for studying the patient experience and behavioral epidemiology of sleep disorders.”


David J McIver, Jared B Hawkins, Rumi Chunara, Arnaub K Chatterjee, Aman Bhandari, Timothy P Fitzgerald, Sachin H Jain, John S Brownstein.
Characterizing Sleep Issues Using Twitter.
Journal of Medical Internet Research, 2015; 17 (6): e140 DOI: 10.2196/jmir.4476

Photo: Thomas Hawk/flickr