Related Experiment Video
Updated: Jul 10, 2026

Inverse Probability of Treatment Weighting (Propensity Score) using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Evaluating a large language model for identifying key comorbidities in discharge summaries of patients with obesity:
Thanathip Suenghataiphorn1, Kanachai Boonpiraks2, Vitchapong Prasitsumrit3
1Department of Internal Medicine, Griffin Hospital, Derby, CT, USA. Thanathip.sue@gmail.com.
Background:
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.
Objective:
To 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.
Methods:
This 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.
Results:
The 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.
Conclusion:
The 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.
Related Concept Videos
Classification of Illness
An illness is a response to a disease in which the person's level of functioning is changed compared with a previous level. The general classification of illness includes acute and chronic.
Acute illness is severe and...
Diagnostic and Statistical Manual of Mental Disorders (DSM)