Comorbidity classification from clinical free-text using large language models: application to sleep disorder patients
Patients presenting to neurology clinics commonly have a complex history of comorbidities and partially documented health trajectories, making it essential to reliably extract comorbidity information from historical records. However, existing extraction methods, ranging from rule-based systems to classical machine learning (ML), often fall short in accuracy, scalability, or adaptability across diverse document types.In this study, we present a large language model (LLM)-based framework for comorbidity extraction from diagnostic texts, capable of handling various prompt formats and textual sources such as patient history, prior diagnoses, and structured sleep assessments. The fine-tuned Mistral-24B (Instruct-2501) model achieves 95% macro classification accuracy and 92% F1 measure across six common classes of comorbidities, substantially outperforming prior state-of-the-art approaches. The proposed method extracts comorbidities through a transparent hierarchical approach, thereby supporting clinical analysis and providing interpretable insights for disease modeling and personalized treatment planning in sleep medicine.
Authors
- Fabio Dennstädt (ORCID: https://orcid.org/0000-0002-5374-8720)
- Kerstin Denecke (ORCID: https://orcid.org/0000-0001-6691-396X)
- Manuela Schmidt (ORCID: https://orcid.org/0009-0000-7964-9053)
- Yihan Deng (ORCID: https://orcid.org/0000-0003-4091-9284)
- Athina Tzovara
- Claudio L. A. Bassetti
- Julia van der Meer
- Xiaoli Yang
- Irina Filchenko
Institutions
- GP Forschungsgruppe (DE)
- University Clinic of Pulmonary and Allergic Diseases Golnik (SI)
Publication Details
- Journal
- Open Access CRIS of the University of Bern
- Published
- 2025-10-24
- DOI
- https://doi.org/10.48620/93219
- Primary Topic
- Machine Learning in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00