Evaluating a large language model for identifying key comorbidities in discharge summaries of patients with obesity: a comparative validation study against ICD codes using MIMIC-IV
摘要
Accurate identification of comorbidities like Type 2 Diabetes Mellitus (T2DM), Hypertension (HTN), Hyperlipidemia (HLD), and Obstructive Sleep Apnea (OSA) is crucial for managing patients with obesity and for large-scale research. While electronic health record discharge summaries contain rich clinical information, manual extraction is resource-intensive. Large Language Models (LLMs) present a potential automated solution.
ObjectiveTo evaluate the performance of utilizing LLM in identifying the presence of T2DM, HTN, HLD, and OSA documented within discharge summaries of adult patients with obesity, using administrative ICD codes as the primary reference standard and complete manual review as a secondary sensitivity analysis.
MethodsThis retrospective validation study used MIMIC-IV data. A random sample of 350 discharge summaries was processed by the LLM for the presence or absence of each target comorbidity. Performance was evaluated against ICD-9/10 coding and against manual review of all 350 discharge summaries using accuracy, precision, recall, and F1-score.
ResultsThe analyzed sample included 350 admissions from 341 unique patients (mean age 59.7 [SD 14.3], 60.4% female). Prevalence based on ICD codes was 45.4% for Type 2 Diabetes Mellitus (T2DM), 60.0% for Hypertension (HTN), 55.4% for Hyperlipidemia (HLD), and 29.4% for Obstructive Sleep Apnea (OSA). In the primary ICD-based analysis, F1-scores ranged from 0.815 to 0.948. In the manual-review sensitivity analysis, accuracy was 0.963 for T2DM, 0.971 for HTN, 0.863 for HLD, and 0.966 for OSA, with F1-scores ranging from 0.879 to 0.981.
ConclusionThe LLM showed promising concordance with ICD codes for T2DM, HTN, OSA, and HLD in obesity patient discharge summaries. Further research, including validation against clinical expert review and investigation into reasons for discrepancies, is necessary before considering practical applications.