Skip to main content
QUICK REVIEW

[Paper Review] Prediction of the onset of cardiovascular diseases from electronic health records using multi-task gated recurrent units

Fernando Andreotti, Frank S. Heldt|arXiv (Cornell University)|Jul 16, 2020
Machine Learning in HealthcareComputer Science7 citations
TL;DR

This study proposes a multi-task gated recurrent unit (MT-GRU) with attention mechanism to predict ischemic stroke and myocardial infarction onset from longitudinal electronic health records (EHRs) across multiple time horizons. The model outperforms QRISK and baseline ML models, achieving AUCs of 0.85 for stroke and 0.89 for myocardial infarction at the 12-month horizon, with significant gains in short-term prediction via multi-task learning.

ABSTRACT

In this work, we propose a multi-task recurrent neural network with attention mechanism for predicting cardiovascular events from electronic health records (EHRs) at different time horizons. The proposed approach is compared to a standard clinical risk predictor (QRISK) and machine learning alternatives using 5-year data from a NHS Foundation Trust. The proposed model outperforms standard clinical risk scores in predicting stroke (AUC=0.85) and myocardial infarction (AUC=0.89), considering the largest time horizon. Benefit of using an \\gls{mt} setting becomes visible for very short time horizons, which results in an AUC increase between 2-6%. Further, we explored the importance of individual features and attention weights in predicting cardiovascular events. Our results indicate that the recurrent neural network approach benefits from the hospital longitudinal information and demonstrates how machine learning techniques can be applied to secondary care.

Motivation & Objective

  • To improve prediction of cardiovascular disease (CVD) onset using longitudinal EHR data beyond standard clinical risk scores.
  • To evaluate the performance of multi-task learning in modeling CVD risk across multiple time horizons (1 month to >12 months).
  • To assess the contribution of diverse EHR modalities—diagnoses, lab results, vital signs, medications, procedures—beyond traditional risk factors.
  • To interpret model decisions using feature importance and attention weights to identify clinically relevant historical observations.

Proposed method

  • A multi-task gated recurrent unit (MT-GRU) is trained to predict stroke and myocardial infarction (MI) onset simultaneously across multiple time horizons.
  • An attention mechanism is integrated into the MT-GRU to dynamically weigh the importance of different observation days in a patient’s EHR history.
  • EHR data is represented as daily feature vectors combining median values, median absolute deviation, observation counts, and abnormality flags for continuous variables.
  • The model processes heterogeneous EHR modalities: ICD-10 diagnoses, OPCS-4 procedures, BNF medication codes, LIMS lab results, vital signs, and demographic data.
  • Permutation feature importance and attention weights are used to interpret model predictions and identify influential features and historical time points.
  • Model performance is evaluated using AUC across multiple time horizons, with comparison to QRISK2 and baseline ML models.

Experimental results

Research questions

  • RQ1Can a multi-task RNN with attention improve prediction accuracy of stroke and MI onset across varying time horizons compared to standard clinical risk scores?
  • RQ2How do different EHR modalities—especially lab results and vital signs—contribute to predictive performance beyond traditional risk factors?
  • RQ3Does multi-task learning enhance performance, particularly in short-term prediction where data is scarcer?
  • RQ4Which historical EHR observations and features are most influential in the model’s prediction decisions, as revealed by attention weights and feature importance?

Key findings

  • The MT-Att-GRU model achieved an AUC of 0.89 for predicting myocardial infarction and 0.85 for stroke at the 12-month time horizon, outperforming QRISK and baseline models.
  • Multi-task learning provided a 2–6% AUC improvement on very short time horizons (e.g., 1 month), demonstrating its benefit in low-data regimes.
  • The model identified diagnoses and procedure codes as highly important predictors, with additional value from laboratory results and vital signs.
  • Attention weights revealed that the model focuses on both recent and historically significant observation days, not just the most recent data.
  • Permutation feature importance confirmed that age, systolic blood pressure, BMI, and cholesterol levels were among the most influential features, aligning with clinical standards.
  • The attention mechanism did not significantly improve AUC over the base MT-GRU, but still provided interpretable insights into temporal decision-making.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.