hART: Deep learning-informed lifespan heart failure risk trajectories

Yue Li, Harry Moroz, Yue Li 0017, Ariane MarelliInt. J. Medical Informatics 2024

TL;DR

Researchers have developed hART (heart failure Attentive Risk Trajectory), a Transformer-based deep learning model that predicts lifetime heart failure risk for patients with congenital heart disease. By leveraging self-attention, the model outperforms traditional recurrent neural networks by 33%, identifying critical "turning points" in a patient's medical history up to a decade before clinical symptoms appear.

What Problem Does This Paper Address?

Congenital Heart Disease (CHD) is the most common birth defect. Thanks to medical advances, most patients now survive into adulthood, but they face a lifelong, evolving risk of heart failure (HF)—the leading cause of death in this population.

Predicting this risk is notoriously difficult. Electronic Health Record (EHR) data is "messy": it’s high-dimensional, recorded at irregular intervals, and contains long-range dependencies (e.g., a surgery at age 5 might impact health at age 50). Traditional models like Gated Recurrent Units (GRUs) often struggle to maintain "memory" over such long spans or fail to provide clinicians with an interpretable reason why a risk score is spiking.

Methods

The authors introduce hART, which pivots away from sequential processing (like RNNs) toward the Transformer architecture.

  • Tokenization of Time: The model partitions patient records into 6-month intervals. Each interval is treated like a "word" in a sentence, represented by a 23-dimensional vector of clinical variables (diagnoses, surgeries, age, etc.).
  • Masked Self-Attention: This is the core innovation. It allows the model to look back across a patient’s entire history and weigh the importance of specific past events relative to current risk. The "masked" part ensures the model only learns from the past and doesn't "peek" at future outcomes during training.
  • hART-GPT: The researchers also tested a "Generative Pre-trained Transformer" approach. They first trained the model to predict all future comorbidities (like stroke or sepsis) before fine-tuning it specifically for heart failure. This transfer learning approach further boosted accuracy.

Datasets

The study utilized the Quebec CHD database, one of the largest and most comprehensive datasets of its kind.

  • Scale: 137,493 patients.
  • Duration: Up to 35 years of follow-up (1983–2017).
  • Content: Administrative medical records including inpatient/outpatient diagnoses (ICD-9/10), surgical history, and vital status.

Key Insights and Ideas

  • The 10-Year Lead Time: Perhaps the most striking finding is that hART’s predicted risk trajectories began to rise significantly 10 years earlier than the actual clinical incidence of heart failure. This suggests a massive window for proactive intervention.
  • The "Convergence" at 50: Patients with genetic syndromes associated with CHD showed much higher HF risk early in life. However, around age 50, their risk profiles converged with those of non-genetic CHD patients, suggesting that the "genetic penalty" eventually levels off as age-related factors take over.
  • Surgery Timing Matters: The model revealed that the timing of interventions like arrhythmia surgery has a non-linear impact. Surgery performed in adulthood had a significant, lasting impact on the HF risk trajectory, whereas the same surgery performed in early childhood had a much more transient effect on long-term risk.
  • Interpretability via Attention Heatmaps: Unlike "black box" models, hART produces attention weights. Clinicians can see exactly which past events (e.g., a specific sepsis event at age 20) are driving the high-risk score at age 40.

Key Results

  • Superior Accuracy: hART achieved an AUPRC (Area Under the Precision-Recall Curve) of 28.2%, a 33% improvement over the previous state-of-the-art GRU-based models (21.0%).
  • High Precision at the Top: At a 1% recall rate, the model achieved over 80% precision, meaning it is exceptionally good at identifying the highest-risk individuals without a flood of false positives.
  • AUROC: The model maintained a high AUROC of 0.967, demonstrating robust classification across the entire patient cohort.
  • Pre-training Gains: The hART-GPT variant slightly outperformed the standard hART (AUPRC 0.290 vs 0.282), proving that learning the general "language" of disease progression helps predict specific outcomes.

Limitations and Future Work

While powerful, the authors note several areas for improvement:

  • Discretized Time: Using 6-month buckets simplifies the data but may lose nuance compared to modeling medical events at the exact day or hour they occur.
  • Feature Constraints: The current model only uses 23 selected variables. Future versions could incorporate a wider array of EHR data, including lab results or imaging reports.
  • Clinical Integration: The next step is moving from a retrospective study to a tool that can be used in real-time to help clinicians decide when to refer a patient to a specialist or schedule a preventative intervention.

Summary updated

BibTeX
@article{li2024hart,
  author = {Yue Li and Harry Moroz and Yue Li and Ariane Marelli},
  title = {{hART: Deep learning-informed lifespan heart failure risk trajectories}},
  journal = {Int. J. Medical Informatics},
  year = {2024},
  doi = {10.1016/j.ijmedinf.2024.105384},
}

Loading related content...

Figure