Using Deep Learning to Identify High-Risk Patients with Heart Failure withReduced Ejection Fraction

Zhibo Wang, Xi Chen, Xi Tan, Lingfeng Yang, Kartik Kannapur, Justin L. Vincent, Garin Kessler, Boshu Ru, Mei YangJournal of Health Economics and Outcomes Research 2021

Abstract

Background: Deep Learning (DL) has not been well-established as a method to identify high-risk patients among patients with heart failure (HF). Objectives: This study aimed to use DL models to predict hospitalizations, worsening HF events, and 30-day and 90-day readmissions in patients with heart failure with reduced ejection fraction (HFrEF). Methods: We analyzed the data of adult HFrEF patients from the IBM® MarketScan® Commercial and Medicare Supplement databases between January 1, 2015 and December 31, 2017. A sequential model architecture based on bi-directional long short-term memory (Bi-LSTM) layers was utilized. For DL models to predict HF hospitalizations and worsening HF events, we utilized two study designs: with and without a buffer window. For comparison, we also tested multiple traditional machine learning models including logistic regression, random forest, and eXtreme Gradient Boosting (XGBoost). Model performance was assessed by area under the curve (AUC) values, precision, and recall on an independent testing dataset. Results: A total of 47,498 HFrEF patients were included; 9,427 with at least one HF hospitalization. The best AUCs of DL models without a buffer window in predicting HF hospitalizations and worsening HF events in the total patient cohort were 0.977 and 0.972; with a 7-day buffer window the best AUCs were 0.573 and 0.608, respectively. The best AUCs in predicting 30- and 90-day readmissions in all adult patients were 0.597 and 0.614, respectively. An AUC of 0.861 was attained for prediction of 90-day readmission in patients aged 18-64. For all outcomes assessed, the DL approach outperformed traditional machine learning models. Discussion: The DL approach can automate feature engineering during the model learning, which can increase the clinical applicability and lead to comparable or better model performance. However, the lack of granular clinical data, and sample size and imbalance issues may have limited the model's performance. Conclusions: A DL approach using Bi-LSTM was shown to be a feasible and useful tool to predict HF-related outcomes. This study can help inform the future development and deployment of predictive tools to identify high-risk HFrEF patients and ultimately facilitate targeted interventions in clinical practice.

Introduction

Heart failure with reduced ejection fraction (HFrEF) is a complex and costly medical condition to manage. Proactively identifying "high-risk" patients—those likely to experience hospitalization or readmission—is essential for improving patient outcomes and optimizing healthcare resources. Traditional prognostic tools and machine learning (ML) models often require extensive manual "feature engineering," where clinical experts must pre-select and format variables. This process is labor-intensive and may fail to capture the complex, time-dependent patterns inherent in longitudinal medical histories. This study explores whether Deep Learning (DL) can overcome these limitations by learning directly from raw sequences of medical events.

Methods

The researchers utilized the IBM® MarketScan® Commercial and Medicare Supplement databases (2015–2017), identifying a cohort of 47,498 adult HFrEF patients. The primary data source consisted of longitudinal medical and pharmacy claims, including ICD-10 diagnosis codes, CPT procedure codes, and patient demographics.

Model Architecture

The core of the predictive framework was a sequential model based on Bi-directional Long Short-Term Memory (Bi-LSTM) layers. Unlike standard models, Bi-LSTMs process data sequences in both forward and backward directions, allowing the model to capture temporal context more effectively.

Overview of the Bi-LSTM model architecture, including embedding, attention, and dense layers.

Key components of the architecture included:

  • Embedding Layers: Discrete medical codes were converted into dense mathematical vectors.
  • Attention Mechanism: An attention layer helped the model prioritize clinically significant events within a patient's history.
  • Static Features: Patient demographics (age, sex, region, plan type) were integrated into the final dense layers.

Study Design and Baselines

To evaluate real-world applicability, the study compared models with and without a buffer window. A 7-day buffer window ensures the model does not "see" symptoms immediately preceding an event, simulating the lead time necessary for clinical intervention. The DL approach was benchmarked against traditional ML models, including Logistic Regression, Random Forest, and XGBoost.

Study designs for DL and traditional ML models, illustrating the use of buffer windows and outcome dates.

Results

The DL approach consistently outperformed traditional ML models across all measured outcomes.

  • Hospitalization Prediction: Without a buffer window, the DL model achieved a near-perfect AUC of 0.977. When a realistic 7-day buffer was introduced, performance remained superior to baselines, though the AUC dropped to approximately 0.573–0.608.
  • Readmission Prediction: The model was particularly effective for younger patients (aged 18–64), achieving an AUC of 0.861 for 90-day readmission. For the total population, 30-day and 90-day readmission AUCs were 0.597 and 0.614, respectively.
  • Feature Engineering: A key finding was the DL model's ability to automate feature engineering. It successfully identified risk patterns from raw code sequences, offering greater scalability than traditional ML.

Discussion and Conclusion

While the DL models showed significant promise, performance was likely constrained by the "thinness" of claims data, which lacks granular clinical details like lab results (e.g., ejection fraction percentages) or blood pressure readings. The drop in performance when using a buffer window highlights the importance of rigorous study design to avoid "data leakage" from the immediate pre-event period.

In conclusion, a DL approach using Bi-LSTM is a feasible and effective tool for predicting HF-related outcomes. By automating feature engineering and capturing temporal dependencies, these models can help identify high-risk HFrEF patients more efficiently than traditional methods, facilitating targeted clinical interventions and improving the management of this complex condition.

Summary updated

BibTeX
@article{wang2021using,
  author = {Zhibo Wang and Xi Chen and Xi Tan and Lingfeng Yang and Kartik Kannapur and Justin L. Vincent and Garin Kessler and Boshu Ru and Mei Yang},
  title = {{Using Deep Learning to Identify High-Risk Patients with Heart Failure withReduced Ejection Fraction}},
  journal = {Journal of Health Economics and Outcomes Research},
  year = {2021},
  doi = {10.36469/jheor.2021.25753},
}
Figure