An Attention-based Deep Learning Approach for Lifespan Assessment of Heart Failure Risk Among Patients with Congenital Heart Disease
Bibliographic record
Abstract
Objective—Congenital heart disease (CHD) presents persistent challenges and risks, including long-term comorbidities such as heart failure (HF), necessitating precise delivery of care. This study aims to develop a machine learning method for assessing the lifespan HF risk trajectories by incorporating the comprehensive medical histories of patients with CHD. Methods—We developed hART (heart failure Attentive Risk Trajectory), a deep-learning model to predict HF trajectories in CHD patients. hART is designed to capture the contextual relationships between medical events within a patient’s history. Specifically, it uses masked self-attention mechanisms to focus on the most relevant segments of the past medical events while not peaking ahead of the future events. To demonstrate the utility of hART, we used a retrospective cohort containing healthcare administrative data from the Quebec CHD database (137,493 patients, 35-year follow-up). We evaluated hART’s performance by area under the receiver operating characteristic (AUROC) curve and area under the precision-recall curve (AUPRC) in predicting future HF compared to the state-of-the-art methods. We further evaluated the effectiveness of hART by examining the differences in HF risk trajectory for patient subgroups, including those with genetic syndrome and severe CHD lesions, as well as patients who died at different ages. Additionally, we computed individualized trajectories and extracted attention weights to assess how specific medical events contribute to rising predicted HF risk. Finally, we extended hART by developing hART-Generative Pre-trained Transformer (GPT), which is pre-trained to learn the clinical language of the diagnoses and comorbidities conditions across all patients and then fine-tuned to more accurately predict HF compared to the baseline hART that was trained to predict HF from scratch.Results-hART outperformed existing methods, achieving an AUROC of 0.967 and an AUPRC of 0.282 for HF risk prediction. The analysis of computed HF trajectories across different populations revealed that patients with severe CHD lesion consistently exhibited elevated HF risks throughout their lifespan. This indicates the potential for the use of hART for effective risk stratification. Patients with the genetic syndrome of CHD exhibited elevated HF risks until the age of 50. Notably, we found a decrease in the impact of the birth condition on long-term risk, emphasizes how hART recognizes the significance of birth conditions and their varying impact on HF risk over different lifespans. Moreover, our study showcased how hART captured the importance of the timing of medical events, such as surgery. By analyzing the HF trajectory of individual patients, hART demonstrated that the timing of arrhythmic surgery had varying impacts on lifespan HF risk, as we demonstrated that arrhythmic surgery performed at a younger age had minimal long-term effects on HF risk, while surgeries during adulthood had a significant lasting impact. This underscores the model’s ability to consider the context and timing of medical events. The hART-GPT model demonstrated superior accuracy in predicting comorbidities associated with HF, such as stroke, infective endocarditis, sepsis, MI, and acute kidney disease. Furthermore, after fine-tuning, it demonstrated slightly improved HF prediction over hART. Conclusions-This study demonstrated that attention-based deep learning models can accurately assess lifelong HF risk in patients with CHD. This study developed a model that accurately captures both long—and short-range dependencies in patient histories while offering enhanced interpretability for clinicians through the inclusion of HF trajectories and attention matrices. The interpretable disease trajectories provided by our model have the potential to enable clinicians to identify high-risk individuals, optimize intervention timing, and assess the long-term impact of comorbidities in CHD patients
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame machine prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. The Gemma side is a direct model label for every work in the frame, read from the title-only record. The Codex side is a classifier learned from the 10,348 direct Codex labels and calibrated to design-weighted sample rates; fields without enough sample support carry no Codex call. Candidate is the union of the two sides; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels.
Distilled classifier scores by category (both heads)
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.002 |
| Meta-epidemiology (narrow) | 0.001 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.001 |
| Bibliometrics | 0.001 | 0.000 |
| Science and technology studies | 0.000 | 0.000 |
| Scholarly communication | 0.000 | 0.000 |
| Open science | 0.001 | 0.001 |
| Research integrity | 0.001 | 0.001 |
| Insufficient payload (model declined to judge) | 0.002 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one source (direct Gemma or distilled Codex), not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".