Identifying Cancer Patients at Risk for Heart Failure Using Machine Learning Methods

Xi Yang, Yan Gong, Nida Waheed, Keith March, Jiang Bian, William R. Hogan, Yonghui Wu · OpenReview

Introduction

Modern cancer therapies, including anthracyclines, HER2 inhibitors, and immune checkpoint inhibitors, have significantly improved survival rates. However, these treatments often carry the risk of cardiotoxicity. Heart failure (HF) is a severe side effect that can diminish quality of life and interrupt life-saving cancer treatments. While machine learning (ML) has been applied to predict HF in general populations, cancer patients represent a unique clinical cohort with distinct risk profiles. This study explores whether standard ML algorithms can be optimized to identify high-risk cancer patients early using electronic health record (EHR) data.

Methods

The researchers evaluated four machine learning algorithms: Logistic Regression (LR), Random Forests (RF), Support Vector Machines (SVM), and Gradient Boosting (GB) via XGBoost. To handle the high dimensionality and sparsity of medical coding, several techniques were employed:

  • Feature Grouping: Over 36,000 ICD-9/10 codes were mapped into approximately 5,000 "PheWAS" groups. Medications were mapped to core ingredients using RxNorm.
  • Encoding Strategies: The study compared One-Hot Encoding (binary presence) with TF-IDF (Term Frequency-Inverse Document Frequency). TF-IDF treats a patient's medical history as a "document" and clinical codes as "words," weighing events based on their frequency and uniqueness.
  • Case-Control Matching: 1,958 HF cases were matched with 15,488 controls based on age, race, gender, and cancer type.

Datasets

The study utilized data from the University of Florida Health (UF Health) Integrated Data Repository (IDR) spanning 2011 to 2017. The initial cohort of 143,199 cancer patients was filtered down to the final study group through a rigorous selection process.

Patient selection flowchart for the study cohort.

Key Results

The Gradient Boosting (GB) model using TF-IDF encoding emerged as the superior approach, achieving an AUC of 0.9077. This model also demonstrated high sensitivity (0.8520) and specificity (0.8138).

Performance comparison of machine learning algorithms and encoding methods.

The model identified several clinically relevant risk factors as top predictors, including essential hypertension, atrial fibrillation, shortness of breath, tobacco use, and hyperlipidemia.

Discussion and Insights

A primary finding was that TF-IDF encoding consistently outperformed one-hot encoding. This indicates that the frequency and uniqueness of clinical events are more predictive than their mere presence. The high predictive accuracy (higher than many general HF studies) is attributed to the "richness" of the cancer patient dataset, which typically includes a high volume of medications and procedures.

However, the model's specificity decreased when applied specifically to patients receiving chemotherapy. This suggests that while chemotherapy is a significant risk factor, its effect is non-deterministic; many patients receive treatment, but only a subset develops heart failure, making differentiation more challenging based on treatment records alone.

Conclusion

This research demonstrates that machine learning, particularly Gradient Boosting with TF-IDF encoding, can effectively leverage EHR data to predict heart failure in cancer patients. Future work will explore Deep Learning architectures like Recurrent Neural Networks to capture temporal sequences and integrate genomic data to improve risk stratification for patients undergoing chemotherapy.

Summary updated

BibTeX
@misc{yang2019identifying,
  author = {Xi Yang and Yan Gong and Nida Waheed and Keith March and Jiang Bian and William R. Hogan and Yonghui Wu},
  title = {{Identifying Cancer Patients at Risk for Heart Failure Using Machine Learning Methods}},
  year = {2019},
  eprint = {1910.00582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.00582},
}
Figure