Related Experiment Video
Updated: Mar 26, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Developing EHR-driven heart failure risk prediction models using CPXR(Log) with the probabilistic loss function
Vahid Taslimitehrani1, Guozhu Dong2, Naveen L Pereira3
1Department of Computer Science and Engineering, Kno.e.sis Center, Wright State University, Dayton, OH, USA; Division of Health Informatics, Weill Cornell Medical College, New York, NY, USA.
Insights
A new algorithm, Contrast Pattern Aided Logistic Regression (CPXR(Log)), accurately predicts heart failure survival using electronic health records. This method improves upon existing models by accounting for patient comorbidities and disease heterogeneity.
Area of Science:
- Biomedical informatics
- Machine learning in healthcare
- Prognostic modeling
Background:
- Accurate survival prediction is crucial for effective patient management in healthcare.
- Electronic Health Records (EHRs) offer rich data for developing prognostic models but present challenges due to complexity and high dimensionality.
- Existing classification methods struggle with the intricacies of EHR data for survival prediction.
Purpose of the Study:
- To develop and validate prognostic risk models for predicting 1, 2, and 5-year survival in heart failure (HF) patients.
- To apply a novel classification algorithm, Contrast Pattern Aided Logistic Regression (CPXR(Log)), with a probabilistic loss function to EHR data.
- To assess the impact of incorporating patient comorbidities on model performance.
Main Methods:
- Utilized Contrast Pattern Aided Logistic Regression (CPXR(Log)) with a probabilistic loss function on Mayo Clinic EHR data.
- Developed prognostic models to predict 1, 2, and 5-year survival rates for heart failure patients.
- Incorporated patient comorbidities into the models to evaluate performance improvements.
Main Results:
- The CPXR(Log) model achieved an Area Under the Curve (AUC) of 0.94 and an accuracy of 0.91, outperforming previous prognostic models.
- Incorporating comorbidities improved CPXR(Log) model AUC by 15.9%.
- The proposed probabilistic loss function yielded a 1% AUC improvement over existing functions.
Conclusions:
- CPXR(Log) demonstrates superior performance in predicting heart failure survival using EHR data.
- Heart failure is a heterogeneous disease requiring subgroup-specific prediction models.
- The study highlights the potential and challenges of using EHR data for predictive modeling, advocating for subgroup-based approaches like CPXR(Log).
Abstract:
Computerized survival prediction in healthcare identifying the risk of disease mortality, helps healthcare providers to effectively manage their patients by providing appropriate treatment options. In this study, we propose to apply a classification algorithm, Contrast Pattern Aided Logistic Regression (CPXR(Log)) with the probabilistic loss function, to develop and validate prognostic risk models to predict 1, 2, and 5year survival in heart failure (HF) using data from electronic health records (EHRs) at Mayo Clinic. The CPXR(Log) constructs a pattern aided logistic regression model defined by several patterns and corresponding local logistic regression models. One of the models generated by CPXR(Log) achieved an AUC and accuracy of 0.94 and 0.91, respectively, and significantly outperformed prognostic models reported in prior studies. Data extracted from EHRs allowed incorporation of patient co-morbidities into our models which helped improve the performance of the CPXR(Log) models (15.9% AUC improvement), although did not improve the accuracy of the models built by other classifiers. We also propose a probabilistic loss function to determine the large error and small error instances. The new loss function used in the algorithm outperforms other functions used in the previous studies by 1% improvement in the AUC. This study revealed that using EHR data to build prediction models can be very challenging using existing classification methods due to the high dimensionality and complexity of EHR data. The risk models developed by CPXR(Log) also reveal that HF is a highly heterogeneous disease, i.e., different subgroups of HF patients require different types of considerations with their diagnosis and treatment. Our risk models provided two valuable insights for application of predictive modeling techniques in biomedicine: Logistic risk models often make systematic prediction errors, and it is prudent to use subgroup based prediction models such as those given by CPXR(Log) when investigating heterogeneous diseases.
Related Concept Videos
Hazard Rate
Mechanistic Models: Compartment Models in Individual and Population Analysis
Pathophysiology of Heart Failure
Pharmacodynamic Models: Linear Concentration–Effect Model
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...
Heart Failure I: Introduction

