Journal article icon

Journal article

An explainable transformer-based deep learning model for the prediction of incident heart failure

Abstract:
Predicting the incidence of complex chronic conditions such as heart failure is challenging. Deep learning models applied to rich electronic health records may improve prediction but remain unexplainable hampering their wider use in medical practice. We aimed to develop a deep-learning framework for accurate and yet explainable prediction of 6-month incident heart failure (HF). Using 100,071 patients from longitudinal linked electronic health records across the UK, we applied a novel Transformer-based risk model using all community and hospital diagnoses and medications contextualized within the age and calendar year for each patient's clinical encounter. Feature importance was investigated with an ablation analysis to compare model performance when alternatively removing features and by comparing the variability of temporal representations. A post-hoc perturbation technique was conducted to propagate the changes in the input to the outcome for feature contribution analyses. Our model achieved 0.93 area under the receiver operator curve and 0.69 area under the precision-recall curve on internal 5-fold cross validation and outperformed existing deep learning models. Ablation analysis indicated medication is important for predicting HF risk, calendar year is more important than chronological age, which was further reinforced by temporal variability analysis. Contribution analyses identified risk factors that are closely related to HF. Many of them were consistent with existing knowledge from clinical and epidemiological research but several new associations were revealed which had not been considered in expert-driven risk prediction models. In conclusion, the results highlight that our deep learning model, in addition high predictive performance, can inform data-driven risk factor identification.
Publication status:
Published
Peer review status:
Peer reviewed

Actions

Access Document

Files:
Publisher copy:
10.1109/jbhi.2022.3148820

Authors

More by this author
Institution:
University of Oxford
Division:
MSD
Department:
Women's & Reproductive Health
Role:
Author
ORCID:
0000-0002-3270-1165


Publisher:
IEEE
Journal:
IEEE Journal of Biomedical and Health Informatics More from this journal
Volume:
26
Issue:
7
Pages:
3362-3372
Publication date:
2022-02-07
Acceptance date:
2022-01-26
DOI:
EISSN:
2168-2208
ISSN:
2168-2194
Pmid:
35130176


Language:
English
Keywords:
Pubs id:
1238686
Local pid:
pubs:1238686
Deposit date:
2022-03-07
ARK identifier:

Terms of use


Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP