Bern Sleep-Wake Registry: temporal extraction of comorbidities from unstructured clinical text using a large language model
I. Filchenko, F. Dennstaedt, K. Zub, F. I. Pompizii, J. van der Meer, A. Adamantidis, N. Cihoric, M. H. Schmidt,
Key points
From the paper's conclusion- These findings support the scalable use of LLMs for longitudinal clinical registries.
Abstract
Introduction Large language models (LLMs) may enable the extraction of clinically relevant information from unstructured electronic health records, but most previous work focused on identifying diagnoses without preserving their temporal context. We evaluated the ability of an LLM to extract diagnoses and associated dates from longitudinal clinical reports. Methods In an observational study using the Bern Sleep-Wake Registry, diagnostic annotations from 248 patients comprising 2343 clinical entries were analyzed. Six common comorbidity groups, subdivided into 32 hierarchical diagnostic categories, were evaluated. Using gpt-oss-20b, we extracted diagnosis presence, the number of diagnostic instances, and dates per instance. A reference standard was established through independent review by two physicians, with disagreements adjudicated by a third physician. LLM performance was assessed using diagnostic classification and temporal agreement. Direct annotation costs were compared. Results At the patient level, the LLM achieved an overall F1 score of 0.88 for diagnosis presence and 0.96 for the presence of a reported date. For the earliest reported diagnosis date, agreement with the reference standard was 86.73% at the day level. When considering the cumulative set of dates for each diagnosis, date recall was 87.63%, the extra-date rate was 20.88%, and full agreement was achieved in 58.19% of cases. Human annotators showed substantial disagreement in temporal annotation, with a date recall of 75.49%, an extra-date rate of 17.89%, and full agreement in 58.64% of cases. LLM-based extraction reduced direct annotation costs by 94.65%. Conclusions LLMs can extract diagnoses and their dates from heterogeneous clinical text with high agreement with an adjudicated reference standard. These findings support the scalable use of LLMs for longitudinal clinical registries.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Large Language Models for Information Extraction from Neurosurgical Clinical Notes: A Benchmark Against Human AuditorsMachine Learning and Knowledge Extraction · 2026
- Large language models are powerful electronic health record encodersnpj Digital Medicine · 2026
- Developing an open-source framework for LLM evaluation of patients using EHR clinical documentation; performance of LLMs relative to medical professionalsmedRxiv · 2026
- Diagnosis and Triage Performance of Contemporary Large Language Models on Short Clinical VignettesJournal of Medical Systems · 2025
- The Effect of LLM Assistance on Diagnostic Accuracy: A Systematic Review and Meta-AnalysismedRxiv · 2026
- Exploring the Effectiveness of Large Language Models in Generating Clinical Differential Diagnoses: A Case Study of ICU PatientsApplied Sciences · 2026