Related Experiment Video
Updated: May 15, 2025

Author Spotlight: Workflow for Integrating POCUS Data into EHR for Managing Heart Failure Patients
Published on: July 12, 2024
Identification of Patients With Congestive Heart Failure From the Electronic Health Records of Two Hospitals:
Daniel Sumsion1,2, Elijah Davis1,2, Marta Fernandes3
1Department of Neurology, Beth Israel Deaconess Medical Center, Boston, MA, United States.
Insights
A new natural language processing (NLP) model accurately identifies congestive heart failure (CHF) using electronic health records (EHRs). This validated approach improves upon traditional methods, enabling efficient large-scale CHF research.
Area of Science:
- Health Informatics
- Computational Medicine
- Artificial Intelligence in Healthcare
Background:
- Congestive heart failure (CHF) is a leading cause of hospitalizations, necessitating efficient patient data analysis.
- Manual review of medical records for CHF diagnosis is labor-intensive and time-consuming.
- Existing claims databases using International Classification of Diseases (ICD) codes offer scalability but lack diagnostic accuracy.
Purpose of the Study:
- To develop and compare machine learning models for accurate CHF diagnosis using structured and unstructured patient data.
- To leverage electronic health records (EHRs), including medications, ICD codes, and provider notes, for improved CHF classification.
- To validate the performance of natural language processing (NLP) models across multiple healthcare institutions.
Main Methods:
- An NLP model was developed to extract CHF indicators from 2800 clinical visit notes of 1821 patients across two hospitals (2010-2023).
- Logistic regression, random forests, and RoBERTa models were trained and evaluated using area under the receiver operating characteristic curve (AUROC) and area under the precision-recall curve (AUPRC).
- Models underwent external validation by training on data from one hospital and testing on data from the other, with overall error rates calculated on a random sample.
Main Results:
- The logistic regression model, integrating ICD codes, medications, and NLP-extracted notes, achieved the highest performance (AUROC: 0.968, AUPRC: 0.921).
- Models relying solely on ICD codes or medications demonstrated lower performance compared to the integrated approach.
- The model exhibited strong external validity between institutions (AUROC 0.927-0.968) with an estimated overall error rate of 1.6% in a random EHR sample.
Conclusions:
- The developed EHR-based phenotyping model for CHF demonstrates excellent performance, external validity, and generalizability across different institutions.
- This NLP-driven approach offers a robust and efficient method for CHF diagnosis and patient stratification.
- The model facilitates large-scale research into CHF treatment effectiveness, comorbidities, outcomes, and underlying mechanisms.
Background:
Congestive heart failure (CHF) is a common cause of hospital admissions. Medical records contain valuable information about CHF, but manual chart review is time-consuming. Claims databases (using International Classification of Diseases [ICD] codes) provide a scalable alternative but are less accurate. Automated analysis of medical records through natural language processing (NLP) enables more efficient adjudication but has not yet been validated across multiple sites.
Objective:
We seek to accurately classify the diagnosis of CHF based on structured and unstructured data from each patient, including medications, ICD codes, and information extracted through NLP of notes left by providers, by comparing the effectiveness of several machine learning models.
Methods:
We developed an NLP model to identify CHF from medical records using electronic health records (EHRs) from two hospitals (Mass General Hospital and Beth Israel Deaconess Medical Center; from 2010 to 2023), with 2800 clinical visit notes from 1821 patients. We trained and compared the performance of logistic regression, random forests, and RoBERTa models. We measured model performance using area under the receiver operating characteristic curve (AUROC) and area under the precision-recall curve (AUPRC). These models were also externally validated by training the data on one hospital sample and testing on the other, and an overall estimated error was calculated using a completely random sample from both hospitals.
Results:
The average age of the patients was 66.7 (SD 17.2) years; 978 (54.3%) out of 1821 patients were female. The logistic regression model achieved the best performance using a combination of ICD codes, medications, and notes, with an AUROC of 0.968 (95% CI 0.940-0.982) and an AUPRC of 0.921 (95% CI 0.835-0.969). The models that only used ICD codes or medications had lower performance. The estimated overall error rate in a random EHR sample was 1.6%. The model also showed high external validity from training on Mass General Hospital data and testing on Beth Israel Deaconess Medical Center data (AUROC 0.927, 95% CI 0.908-0.944) and vice versa (AUROC 0.968, 95% CI 0.957-0.976).
Conclusions:
The proposed EHR-based phenotyping model for CHF achieved excellent performance, external validity, and generalization across two institutions. The model enables multiple downstream uses, paving the way for large-scale studies of CHF treatment effectiveness, comorbidities, outcomes, and mechanisms.
More Related Videos
18:11A Research Method For Detecting Transient Myocardial Ischemia In Patients With Suspected Acute Coronary Syndrome Using Continuous ST-segment Analysis
Published on: December 28, 2012
04:24A Novel Digital Platform for a Monitored Home-based Cardiac Rehabilitation Program
Published on: April 19, 2019
Related Concept Videos
Pathophysiology of Heart Failure
Methods of Documentation VII: EMR
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Assessment of the Cardiovascular System I: Subjective Data
Initial Enquiry
Ask the patient about their primary concern and thoroughly explore all reported symptoms.
Medical History
Investigate past illnesses affecting the cardiovascular system, such as angina, anemia, rheumatic fever, congenital heart disease, stroke, thrombophlebitis, dysrhythmias, varicosities
Inquire about symptoms...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...