0463 LLM-Driven Classification of Multidimensional Sleep Health Mentions from Free-Text Clinical Notes
Abstract
Abstract Introduction Large language models (LLMs) provide an opportunity for high-throughput extraction of multidimensional sleep health (MSH) information from unstructured clinical text to support cohort identification and the development of detection tools in clinical care. However, class imbalance and data sparsity present challenges for MSH information. Here, we investigated the optimal methods and performance limitations for using LLMs to extract 9 MSH categories from narrative text in the EHR: behaviors, satisfaction/quality, daytime sleepiness/alertness, timing, efficiency, duration, disorders, medication, and interventions. Methods Classification performance of Llama-3.1-8B (general domain) and BioMistral-7B (medical domain) is investigated over 300 notes annotated for 9 MSH classes (e.g. medication). We compare 7 context window sizes and 5 different few-shot (reference examples in the prompt) quantities. Few-shot examples are sampled using semantic relevance to the test example and come from a subset of annotated examples (in-domain) or MIMIC ICD-10 and SDOH annotated examples (out-of-domain, OOD). Results The best performing configuration showed moderate overall performance (F1: 0.43, Recall: 0.66, Precision: 0.32). Balancing maximum context window size for the GPU VRAM limit (6000 characters on our H100) was critical for performance (0.2 F1 over 1000 characters). BioMistral-7B outperformed Llama-3.1-8B by ~0.02 F1. In-domain few-shot examples outperformed OOD few-shot examples by ~0.03 F1. In the best configuration, classification of sleep medication (F1: 0.64), disorder (F1: 0.49), and efficiency (F1: 0.50) mentions evaluated best while sleep timing (F1: 0.35), duration (F1: 0.20), and behavior (F1: 0.31) classification evaluated worst. Conclusion Current LLMs demonstrate moderate success (e.g., sleep medication category). Nuanced sleep health categories (e.g., sleep duration) remain challenging due to complex representations and model limitations in temporal understanding. High recall rates and minimal performance loss when using OOD few-shot examples suggest potential for iterative screening of clinical notes, with annotation needed mainly for validation. Balancing context window size and the number of few-shot examples is critical for performance, while other parameters have little meaningful effect, especially in application. Current LLMs show a base level of competency, and our analysis points to future research foci: better representation of challenging sleep health classes, finetuning strategies, and addressing security barriers that limit access to more advanced models. Support (if any)
BibTeX
@inproceedings{hussain2025llm,
author = {Syed-Amad Hussain and Ariana Calloway and Joseph Sirrianni and Eric Fosler‐Lussier and Mattina Davenport},
title = {{0463 LLM-Driven Classification of Multidimensional Sleep Health Mentions from Free-Text Clinical Notes}},
booktitle = {SLEEP},
year = {2025},
doi = {10.1093/sleep/zsaf090.0463},
}Ask Althea to put this paper to the test.
Loading related content...