A graph-embedded topic model enables characterization of diverse pain phenotypes among UK Biobank individuals

Yuening Wang, Rodrigo Benavides, Luda Diatchenko, Audrey V. Grant, Yue Li

TL;DR

Researchers have developed the Graph-Embedded Topic Model (GETM), a deep learning framework that combines biomedical knowledge graphs with patient records to map complex disease networks. By applying this to nearly half a million UK Biobank participants, the model not only outperformed existing methods in predicting medical conditions but also uncovered a surprising "protective" link between cardiovascular medications and chronic pain.

What Problem Does This Paper Address?

Electronic Health Records (EHRs) are a goldmine for medical research, but they are notoriously difficult to analyze. They consist of "sparse and discrete" data—thousands of possible diagnostic codes and medications, most of which any single patient will never have.

Traditional statistical methods often treat these codes as independent entities. However, medicine is hierarchical: "Ibuprofen" isn't just a random string; it’s a non-steroidal anti-inflammatory drug (NSAID). "Asthma" and "COPD" are both respiratory conditions. Existing "topic models" (algorithms originally designed to find themes in text) have been used to group these codes into "phenotypes," but they usually ignore the vast amount of existing medical knowledge we already have about how diseases and drugs relate to one another. The authors sought to bridge this gap by injecting "common sense" medical taxonomies directly into the machine learning process.

Methods

The authors introduced GETM (Graph-Embedded Topic Model), which utilizes two main components:

  1. Knowledge Graph Embeddings: Before looking at patient data, the researchers used an algorithm called node2vec to create mathematical representations (embeddings) of 443 medical conditions and 802 medications. These embeddings were based on their positions in established taxonomic trees (like the ATC system for drugs). This ensures the model "knows" that two related drugs should be closer together in mathematical space.
  2. Variational Autoencoder (VAE) Framework: GETM uses a deep learning architecture where an "encoder" compresses a patient's complex medical history into a "topic mixture" (a set of latent phenotypes). A "linear decoder" then tries to reconstruct the original record. Because the decoder is linear, it remains interpretable—researchers can look at exactly which drugs and conditions define a specific "topic."

By combining these, GETM doesn't just learn from the raw data; it uses the pre-trained graph embeddings to guide its "understanding" of what makes a coherent medical topic.

Datasets

The study utilized the UK Biobank (UKB), one of the world's most comprehensive biomedical databases.

  • Participants: 457,461 individuals of European descent.
  • Features: 443 self-reported medical conditions and 802 self-reported medications.
  • Target Phenotypes: The model was specifically evaluated on its ability to characterize and predict various pain phenotypes, including chronic musculoskeletal (CMK) pain and site-specific pain (neck, hip, back, etc.).

Key Insights and Ideas

  • The Cardiovascular Connection: The most surprising finding was the "predominance of medications and conditions in the cardiovascular category" as predictors for chronic pain. Specifically, cardiovascular topics often showed a negative correlation with chronic pain.
  • Hypertension-Associated Hypoalgesia: The model identified that ACE inhibitors (used for high blood pressure) were highly predictive of lower reported pain. This aligns with a biological theory called "hypertension-associated hypoalgesia," where higher blood pressure (and the mechanisms regulating it) can actually decrease pain sensitivity.
  • Knowledge Transfer Works: The study proved that "transferring" knowledge from a hierarchy (like a drug classification tree) significantly improves a model's ability to handle noisy, self-reported data. GETM was much better at "imputing" (filling in) missing medical information than models that didn't use graph embeddings.
  • Interpretability vs. Performance: By using a linear decoder, the authors avoided the "black box" problem of deep learning. They could visualize "Topic 32" and see it clearly represented heart failure and its associated medications, making the results clinically actionable.

Key Results

  • Superior Imputation: GETM achieved the lowest reconstruction error and highest precision/recall when trying to predict masked (hidden) medications and conditions compared to five baseline models (including standard ETM).
  • Predictive Accuracy: When predicting chronic musculoskeletal pain, GETM’s inferred topic mixtures provided a significant performance boost over using raw data alone, especially when "obvious" pain-related features (like taking Ibuprofen) were removed from the dataset.
  • Robustness: The model maintained higher AUROC (Area Under the Receiver Operating Characteristic) and AUPRC (Area Under the Precision-Recall Curve) across 10 different pain types, proving it can generalize across diverse phenotypes.

Limitations and Future Work

The authors acknowledge several hurdles:

  • Cross-Sectional Data: Because the UK Biobank data used was a "snapshot" in time, the model can show correlations but cannot definitively prove that heart meds cause a reduction in pain (causality).
  • Self-Reporting Bias: The data relies on participant memory, which can be noisy or inaccurate compared to official hospital records.
  • Static vs. Dynamic: The current model is static. The authors suggest moving toward Dynamic Topic Models that account for how a patient’s health evolves over years of follow-up visits.
  • Advanced Graph Logic: Future versions might replace node2vec with more sophisticated Graph Convolutional Networks (GCNs) to better model the complex, multi-relational web of human health.

Summary updated

BibTeX
@inproceedings{wang2022graph,
  author = {Yuening Wang and Rodrigo Benavides and Luda Diatchenko and Audrey V. Grant and Yue Li},
  title = {{A graph-embedded topic model enables characterization of diverse pain phenotypes among UK Biobank individuals}},
  booktitle = {iScience},
  year = {2022},
  doi = {10.1016/j.isci.2022.104390},
}
Figure