Variationally Regularized Graph-based Representation Learning for Electronic Health Records

Weicheng Zhu, Narges RazavianarXiv 2019 · DOI

TL;DR

Researchers have developed a Variationally Regularized Graph Neural Network (VGNN) that learns the hidden relationships between medical concepts in Electronic Health Records (EHR) without needing a pre-defined medical "map." By applying variational regularization to node embeddings, the model avoids "mode collapse" and learns more expressive, robust representations, significantly outperforming standard deep learning models in predicting mortality, readmission, and Alzheimer’s Disease.

What Problem Does This Paper Address?

EHR data is notoriously messy: it is high-dimensional, extremely sparse, and full of missing values. While medical concepts (like a diagnosis of diabetes and a lab result for high blood sugar) are inherently linked, these connections are often implicit.

Existing approaches usually fall into two camps:

  1. Ontology-based: Using hand-crafted medical hierarchies (like ICD codes). These are rigid and often don't reflect real-world clinical practice or noisy data.
  2. Graph Neural Networks (GNNs): These can learn structures from scratch, but they often suffer from a "lazy" attention mechanism. In many cases, the model's attention weights become uniform, or node embeddings collapse into a tight, uninformative cluster, failing to capture the rich topological diversity of medical relationships.

The authors aim to build a model that can adaptively learn these medical graphs from scratch while remaining robust enough to handle the noise and missingness of real-world clinical data.

Methods

The core of the paper is the Variationally Regularized Encoder-Decoder Graph Network.

  • Encoder-Decoder GNN: The model treats every observed medical code in a patient's record as a node in a graph. Initially, the graph is fully connected. The encoder uses multi-head self-attention to learn the importance of edges between these nodes.
  • Variational Regularization (The "Secret Sauce"): Between the encoder and decoder, the authors insert a latent layer. Instead of passing raw embeddings, they sample latent variables from a distribution regularized by a Kullback–Leibler (KL) divergence term against a standard Gaussian prior.
  • The "Why": This regularization acts as a constraint. It prevents node representations from converging to a single point (mode collapse) and forces them to be centered around the origin with moderate distances. This "spread" in the latent space encourages the attention mechanism to find more distinct and meaningful connections.
The VGNN architecture, showing the latent layer and variational regularization between the encoder and decoder graphs.

Datasets

The model was evaluated on three distinct clinical tasks:

  1. AD-EHR (NYU Langone Health): A massive, real-world dataset of 1.6M patients used to predict the onset of Alzheimer’s Disease 12–24 months in advance.
  2. MIMIC-III: A standard public dataset for ICU mortality prediction.
  3. eICU: A public multi-center ICU database used for predicting hospital readmission.

Key Insights and Ideas

  • Preventing Mode Collapse: Standard GNNs often produce embeddings that are too similar. The authors use Singular Value Analysis (SVD) to prove that their variational approach increases the "rank" of the learned adjacency matrix. More non-zero singular values mean the model is capturing more independent "signals" or dimensions of medical relationships.
  • Attention Robustness: The paper compares two attention styles. They find that a concatenation-based attention (Method 2) is more robust for EHR than the standard dot-product attention used in Transformers, which tends to produce overly sparse "hard" edges that discard too much information.
  • Scaling with Data: Interestingly, the performance gap between simple models (like Bag-of-Words) and the VGNN grows as the dataset size increases. This suggests that learning a medical graph significantly expands the model's capacity to absorb information from large-scale data.
Heatmaps comparing attention patterns. VGNN (right) shows more distributed, meaningful weights across multiple medical concepts compared to the sparser Enc-dec (left).

Key Results

The VGNN consistently outperformed all baselines, including standard MLPs, RNNs, and even the Graph Convolution Transformer (GCT).

  • Alzheimer’s Prediction (AD-EHR): VGNN achieved an AUPRC of 0.4580, a significant jump over the standard Transformer (0.3957) and the ontology-guided GCT (0.3409).
  • Mortality Prediction (MIMIC-III): VGNN reached 0.7102 AUPRC, outperforming the best baseline (Enc-dec) at 0.6962.
  • Clinical Interpretability: When visualizing the learned embeddings via PCA, the model naturally clustered related diseases. For example, sepsis, diabetes, and urinary incontinence—conditions clinically linked to Alzheimer's risk—formed distinct, meaningful clusters.
2D PCA projection of learned representations. The right plot shows a patient with more significant singular values, resulting in clearer clusters for sepsis, diabetes, and urinary incontinence.

Limitations and Future Work

  • Computational Complexity: The model starts with a fully connected graph, which can be memory-intensive ($O(n^2)$ edge weights). While the authors used sparse implementations to mitigate this, scaling to extremely long patient histories remains a challenge.
  • Temporal Dynamics: For the AD-EHR task, the authors aggregated data over time. While they found this more effective than their RNN baseline, they acknowledge that better modeling of temporal sequences within the graph structure is a promising next step.
  • Self-Supervised Learning: The authors suggest that exploring self-supervised pre-training could further enhance the quality of the learned medical concept embeddings.

Summary updated

BibTeX
@misc{zhu2019variationally,
  author = {Weicheng Zhu and Narges Razavian},
  title = {{Variationally Regularized Graph-based Representation Learning for Electronic Health Records}},
  year = {2019},
  eprint = {1912.03761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03761},
}
Figure