Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Nov 4;7(11):e2443925.
doi: 10.1001/jamanetworkopen.2024.43925.

Natural Language Processing of Clinical Documentation to Assess Functional Status in Patients With Heart Failure

Affiliations

Natural Language Processing of Clinical Documentation to Assess Functional Status in Patients With Heart Failure

Philip Adejumo et al. JAMA Netw Open. .

Abstract

Importance: Serial functional status assessments are critical to heart failure (HF) management but are often described narratively in documentation, limiting their use in quality improvement or patient selection for clinical trials.

Objective: To develop and validate a deep learning natural language processing (NLP) strategy for extracting functional status assessments from unstructured clinical documentation.

Design, setting, and participants: This diagnostic study used electronic health record data collected from January 1, 2013, through June 30, 2022, from patients diagnosed with HF seeking outpatient care within 3 large practice networks in Connecticut (Yale New Haven Hospital [YNHH], Northeast Medical Group [NMG], and Greenwich Hospital [GH]). Expert-annotated notes were used for NLP model development and validation. Data were analyzed from February to April 2024.

Exposures: Development and validation of NLP models to detect explicit New York Heart Association (NYHA) classification, HF symptoms during activity or rest, and frequency of functional status assessments.

Main outcomes and measures: Outcomes of interest were model performance metrics, including area under the receiver operating characteristic curve (AUROC), and frequency of NYHA class documentation and HF symptom descriptions in unannotated notes.

Results: This study included 34 070 patients with HF (mean [SD] age 76.1 [12.6] years; 17 728 [52.0]% female). Among 3000 expert-annotated notes (2000 from YNHH and 500 each from NMG and GH), 374 notes (12.4%) mentioned NYHA class and 1190 notes (39.7%) described HF symptoms. The NYHA class detection model achieved a class-weighted AUROC of 0.99 (95% CI, 0.98-1.00) at YNHH, the development site. At the 2 validation sites, NMG and GH, the model achieved class-weighted AUROCs of 0.98 (95% CI, 0.96-1.00) and 0.98 (95% CI, 0.92-1.00), respectively. The model for detecting activity- or rest-related symptoms achieved an AUROC of 0.94 (95% CI, 0.89-0.98) at YNHH, 0.94 (95% CI, 0.91-0.97) at NMG, and 0.95 (95% CI, 0.92-0.99) at GH. Deploying the NYHA model among 182 308 unannotated notes from the 3 sites identified 23 830 (13.1%) notes with NYHA mentions, specifically 10 913 notes (6.0%) with class I, 12 034 notes (6.6%) with classes II or III, and 883 notes (0.5%) with class IV. An additional 19 730 encounters (10.8%) could be classified into functional status groups based on activity- or rest-related symptoms, resulting in a total of 43 560 medical notes (23.9%) categorized by NYHA, an 83% increase compared with explicit mentions alone.

Conclusions and relevance: In this diagnostic study of 34 070 patients with HF, the NLP approach accurately extracted a patient's NYHA symptom class and activity- or rest-related HF symptoms from clinical notes, enhancing the ability to track optimal care delivery and identify patients eligible for clinical trial participation from unstructured documentation.

PubMed Disclaimer

Conflict of interest statement

Conflict of Interest Disclosures: Dr Thangaraj reported having a provisional (pending) patent not related to the current work (63/606,203). Dr Xu reported owning stock in Melax Technologies outside the submitted work. Dr Krumholz reported serving as cofounder and owning stock in Hugo Health, Refactor Health, and ENSIGHT-AI and receiving stock options from Element Science and Identifeye, personal fees from F-Prime, and grants from Janssen, Kenvue, Novartis, and Pfizer (paid to Yale University) outside the submitted work. Dr Khera reported receiving grants from National Heart, Lung, and Blood Institute and Doris Duke Charitable Foundation during the conduct of the study; and serving as academic cofounder for Evidence2Health and Ensight-AI and receiving grants from Bristol Myers Squibb (paid to institution), Novo Nordisk (paid to institution), and BridgeBio (paid to institution) outside the submitted work. No other disclosures were reported.

Figures

Figure 1.
Figure 1.. Top 15 Features by Mean Positive Shapley Additive Explanations (SHAP) Value Across New York Heart Association (NYHA) Class and Heart Failure (HF) Activity- and Rest-Related Symptom Models
The y-axis lists individual features, and the x-axis represents the SHAP value indicating the feature’s impact on model predictions. Each “X” represents a clinical note, with the size of the “X” representing the weight of the token presented on the y-axis on model prediction. Higher SHAP values suggest greater importance of the feature in the model’s decision-making process.
Figure 2.
Figure 2.. Frequency of New York Heart Association (NYHA) Class Mention and Recategorization by Activity-Related Symptoms
GH indicates Greenwich Hospital; ICD, implantable cardioverter defibrillator; NLP, natural language processing; NMG, Northeast Medical Group; YNHH, Yale New Haven Hospital.

References

    1. Petrie MC, Berry C, Stewart S, McMurray JJ. Failing ageing hearts. Eur Heart J. 2001;22(21):1978-1990. doi: 10.1053/euhj.2000.2558 - DOI - PubMed
    1. Cooper TJ, Anker SD, Comin-Colet J, et al. Relation of longitudinal changes in quality of life assessments to changes in functional capacity in patients with heart failure with and without anemia. Am J Cardiol. 2016;117(9):1482-1487. doi: 10.1016/j.amjcard.2016.02.018 - DOI - PubMed
    1. Holland R, Rechel B, Stepien K, Harvey I, Brooksby I. Patients’ self-assessed functional status in heart failure by New York Heart Association class: a prognostic predictor of hospitalizations, quality of life and death. J Card Fail. 2010;16(2):150-156. doi: 10.1016/j.cardfail.2009.08.010 - DOI - PMC - PubMed
    1. Friedrich EB, Böhm M. Management of end stage heart failure. Heart. 2007;93(5):626-631. doi: 10.1136/hrt.2006.098814 - DOI - PMC - PubMed
    1. Pierce JB, Ikeaba U, Peters AE, et al. Quality of care and outcomes among patients hospitalized for heart failure in rural vs urban US hospitals: the Get With the Guidelines-Heart Failure Registry. JAMA Cardiol. 2023;8(4):376-385. doi: 10.1001/jamacardio.2023.0241 - DOI - PMC - PubMed

Publication types