DynaGraph: Interpretable Multi-Label Prediction from EHRs via Dynamic Graph Learning and Contrastive Augmentation

Munib Mesinovic, Soheila Molaei, Peter J. Watkinson, Tingting ZhuarXiv 2025 · DOI

Introduction

Predicting clinical outcomes from Electronic Health Records (EHRs) is a complex task due to irregular sampling, missing values, and intricate dependencies between medical features that evolve over time. While traditional sequence models like LSTMs and Transformers capture temporal dynamics, they often overlook the explicit spatial relationships between different clinical variables. DynaGraph addresses these challenges by modeling EHRs as dynamic graphs, enabling both high-performance multi-label prediction and clinical interpretability.

Methodology

DynaGraph integrates several innovative components into a unified deep learning framework:

  1. Dynamic Graph Construction: The model learns to construct adjacency matrices dynamically across time windows, treating medical features as nodes and learning their evolving relationships (edges) without requiring a pre-defined graph structure.
  2. Hybrid Architecture: As shown in the architecture overview, the system processes data through an LSTM for intra-feature temporal patterns and a Dynamic Graph for inter-feature correlations. These representations are then processed by a Variational Graph Autoencoder (VGAE) using Graph Isomorphism Networks (GINs).
  3. Contrastive Augmentation: To enhance robustness against noise, DynaGraph employs graph augmentation techniques—such as shuffling time slices and masking nodes—paired with a contrastive loss.
  4. Pseudo-Attention Interpretability: A novel paired weight matrix, updated via loss gradients, acts as a "pseudo-attention" mechanism. This allows clinicians to visualize which features or relationships most influenced a specific prediction at any given time.
  5. Optimization: The framework utilizes a combination of Focal Loss to address class imbalance and Structural Similarity Loss to ensure the stability of the evolving graph representations.
DynaGraph Architecture Overview

Experimental Setup

The model was evaluated on four diverse clinical datasets:

  • MIMIC-III: 17,279 patients for phenotype classification.
  • eICU: Multi-center ICU data for heart attack complication prediction.
  • HiRID-ICU: Over 33,000 admissions for mortality and organ failure prediction.
  • EHRSHOT: 2,378 patients for long-term outcome prediction (e.g., one-year post-discharge heart attacks).

Results

DynaGraph consistently outperformed state-of-the-art baselines, including MedGNN, TodyNet, and Transformers, across all benchmarks. A key highlight is the significant improvement in sensitivity, which is critical in clinical settings to minimize false negatives. For instance, on the MIMIC-III dataset, DynaGraph achieved a sensitivity of 85.22%, substantially higher than MedGNN's 73.20%.

Comparative Performance Results

The model's interpretability mechanism revealed a logical shift in focus: early predictions rely on static factors (age, sex), while later assessments prioritize dynamic vital signs like blood pressure and lab results. This behavior aligns with clinical intuition and provides a transparent decision-making process.

Conclusion

DynaGraph represents a significant advancement in EHR-based predictive modeling. By combining dynamic graph learning with contrastive augmentation and an interpretable pseudo-attention mechanism, it offers a robust and transparent tool for multi-label clinical outcome prediction. Future work will focus on exploring potential biases and integrating the framework into real-time clinical decision support systems.

Summary updated

BibTeX
@misc{mesinovic2025dynagraph,
  author = {Munib Mesinovic and Soheila Molaei and Peter J. Watkinson and Tingting Zhu},
  title = {{DynaGraph: Interpretable Multi-Label Prediction from EHRs via Dynamic Graph Learning and Contrastive Augmentation}},
  year = {2025},
  eprint = {2503.22257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.22257},
}
Figure