The Healthy States of America: Creating a Health Taxonomy with Social Media

Sanja Scepanovic, Luca Maria Aiello, Ke Zhou, Sagar Joglekar, Daniele QuerciaarXiv 2021

TL;DR

Researchers have developed a deep learning pipeline to transform the "noise" of social media into a structured, comprehensive taxonomy of human health. By analyzing millions of posts on Reddit and Twitter, they created a data-driven map of medical conditions that mirrors official clinical classifications (ICD-11) and provides a real-time, patient-centric view of health trends across the United States.

What Problem Does This Paper Address?

Public health monitoring traditionally relies on official surveys from agencies like the CDC. While rigorous, these surveys are "temporally coarse" (often conducted every 3-5 years), expensive, and prone to recall bias. Furthermore, they capture what doctors ask, not necessarily what patients experience or worry about daily.

Previous attempts to use social media for health tracking often fell into the trap of "big data hubris"—overfitting narrow search terms to specific outbreaks (like the famous failure of Google Flu Trends). Most studies also focus on a single condition, like depression or the flu, failing to capture the complex, interconnected nature of human health. The authors sought to move beyond these narrow "silos" to create a broad, automated system that understands the full spectrum of medical discussions online.

Methods

The researchers employed a multi-stage pipeline combining Deep Learning and Network Science:

  1. Named Entity Recognition (NER): They built a state-of-the-art medical entity extractor using a Bi-LSTM architecture with a Conditional Random Field (CRF) layer, powered by RoBERTa contextual embeddings. This allowed them to extract mentions of symptoms and diseases even from messy, unstructured social media text.
  2. Taxonomy Generation: Instead of using a pre-defined list of diseases, they built co-occurrence networks. If two conditions (e.g., "chest pain" and "shortness of breath") were frequently mentioned in the same post, they were linked. They then used the Infomap community detection algorithm to group these conditions into a hierarchical taxonomy.
  3. Health Scoring: They developed a "health score" for different regions by calculating the weighted fraction of users mentioning specific categories of conditions. To ensure accuracy, they used PageRank centrality to give more weight to conditions that were most representative of their category.
  4. Causal Validation: To prove these weren't just random correlations, they used Propensity Score Matching (PSM) to estimate the causal effect of actual disease prevalence on social media mentions, controlling for 26 different demographic and economic confounders.

Datasets

  • MedRed: A new, custom-labeled dataset of 1,980 Reddit posts used to fine-tune their NLP model for the specific slang and structure of social media health discussions.
  • Social Media Data: A massive corpus including 7M+ posts and 130M+ comments from geo-referenced Reddit users (2017) and a random sample of 225M tweets (2010).
  • Benchmarks: Standard medical NER datasets CADEC and Micromed were used for initial model evaluation.
  • Official Statistics: Prevalence data for 18 conditions from the CDC and SAMHSA served as the ground truth for validation.

Key Insights and Ideas

  • Social Media Mirrors Medicine: The most striking finding is that an unsupervised algorithm, looking only at how people talk to each other, produced a taxonomy that matched 20 out of 22 official ICD-11 categories. The "wisdom of the crowd" naturally organizes health into clinically recognized structures.
  • Platform Personalities: Reddit proved to be a much richer source for specialized health knowledge than Twitter. Because Reddit is organized into specific sub-communities (subreddits), users engage in deeper, more technical discussions. Twitter, limited by character counts, tends to capture more general "unwellness" (e.g., headaches, tiredness).
  • Capturing Misconceptions: The network analysis revealed not just medical facts, but social ones. For example, their mental health network (Figure 3) showed a link between autism and measles, reflecting the widespread (though debunked) public discourse linking vaccines to autism.
Figure 3: Co-occurrence graph of symptoms in the mental health category. The link between measles and autism highlights how social media captures public misconceptions.

Key Results

  • High Accuracy: Their NER model outperformed existing state-of-the-art methods on standard benchmarks, achieving an F1-score of 0.78 on CADEC.
  • Strong Correlations: The Reddit-derived health scores significantly correlated with 18 official health statistics. For instance, their mental health score correlated with surveys on "mentally unhealthy days" ($r = -0.45$), and their STDs score correlated with syphilis prevalence ($r = -0.47$).
  • Causal Links: The causal inference framework confirmed that for 12 out of 14 conditions, the real-world prevalence was a significant driver of social media mentions. For example, a state having higher-than-median "mentally unhealthy days" caused a 10% decrease in the calculated mental health score.
Figure 1: Relationship between the number of Reddit users (left), Twitter users (right) and state population (log- transformed). Pearson correlation for Reddit r = .95 and p < e−23, and for Twitter r = .94 and p < e−21.

Limitations and Future Work

The authors acknowledge several hurdles. First, the taxonomy is currently limited to two levels; deeper hierarchies could provide more granular insights. Second, the data is currently aggregated at the U.S. state level; moving to city or neighborhood levels would be more useful for local health interventions.

Finally, there is the "digital divide" bias: social media users are generally younger, wealthier, and more tech-savvy than the general population. Future work could involve integrating platform-specific signals like downvotes or replies to better distinguish between genuine health experiences and the spread of medical misinformation.

Summary updated

BibTeX
@misc{scepanovic2021healthy,
  author = {Sanja Scepanovic and Luca Maria Aiello and Ke Zhou and Sagar Joglekar and Daniele Quercia},
  title = {{The Healthy States of America: Creating a Health Taxonomy with Social Media}},
  year = {2021},
  eprint = {2103.01169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.01169},
}
Figure