Supervised Text Classification System Detects Fontan Patients in Electronic Records With Higher Accuracy Than ICD Codes

Autor: Yuting Guo, Mohammed A. Al‐Garadi, Wendy M. Book, Lindsey C. Ivey, Fred H. Rodriguez, Cheryl L. Raskind‐Hood, Chad Robichaux, Abeed Sarker
Jazyk: angličtina
Rok vydání: 2023
Předmět:
Zdroj: Journal of the American Heart Association: Cardiovascular and Cerebrovascular Disease, Vol 12, Iss 13 (2023)
Druh dokumentu: article
ISSN: 2047-9980
DOI: 10.1161/JAHA.123.030046
Popis: Background The Fontan operation is associated with significant morbidity and premature mortality. Fontan cases cannot always be identified by International Classification of Diseases (ICD) codes, making it challenging to create large Fontan patient cohorts. We sought to develop natural language processing–based machine learning models to automatically detect Fontan cases from free texts in electronic health records, and compare their performances with ICD code–based classification. Methods and Results We included free‐text notes of 10 935 manually validated patients, 778 (7.1%) Fontan and 10 157 (92.9%) non‐Fontan, from 2 health care systems. Using 80% of the patient data, we trained and optimized multiple machine learning models, support vector machines and 2 versions of RoBERTa (a robustly optimized transformer‐based model for language understanding), for automatically identifying Fontan cases based on notes. For RoBERTa, we implemented a novel sliding window strategy to overcome its length limit. We evaluated the machine learning models and ICD code–based classification on 20% of the held‐out patient data using the F1 score metric. The ICD classification model, support vector machine, and RoBERTa achieved F1 scores of 0.81 (95% CI, 0.79–0.83), 0.95 (95% CI, 0.92–0.97), and 0.89 (95% CI, 0.88–0.85) for the positive (Fontan) class, respectively. Support vector machines obtained the best performance (P
Databáze: Directory of Open Access Journals