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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comorbidity classification from clinical free-text using large language models: application to sleep disorder patients

Fabio Dennstädt, Kerstin Denecke, Manuela Schmidt, Yihan Deng et al.
Open Access CRIS of the University of Bern
Machine Learning in Healthcare
article

Comorbidity classification from clinical free-text using large language models: application to sleep disorder patients

Fabio Dennstädt, Kerstin Denecke, Manuela Schmidt, Yihan Deng, Athina Tzovara, Claudio L. A. Bassetti, Julia van der Meer, Xiaoli Yang, Irina Filchenko
article en

Abstract

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.

Open Access CRIS of the University of Bern
GP Forschungsgruppe (DE), University Clinic of Pulmonary and Allergic Diseases Golnik (SI)
Quality Education
Openalex Percentile: Top 16%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.