Development and Internal Validation of a Large Language Model Pipeline for Multi-Label Classification of Patient Portal Messages
B. D. Steitz, O. O. Ogunsan, J. S. Ancker, B. R. Carlson, L. S. Gaynor, R. T. Higashi, E. L. Morrow, T. J. Reese,
Key points
From the paper's conclusion- We developed and validated a large language model (LLM) pipeline for multi-label classification of messages using an expert-derived topic taxonomy, then characterized topic distribution across a two-year corpus.
Abstract
Objectives: Characterizing patient portal message content at scale can help target efforts to manage administrative work. We developed and validated a large language model (LLM) pipeline for multi-label classification of messages using an expert-derived topic taxonomy, then characterized topic distribution across a two-year corpus. Materials and Methods: We studied all medical advice request messages sent to ambulatory clinicians at an academic medical center from 2024-2025. We convened an expert panel that derived an 11-category taxonomy through a modified Delphi process. Two annotators labeled 750 randomly selected messages (Cohen kappa 0.80), holding out 500 for evaluation. The pipeline used GPT-4o-mini in a zero-shot prompt. On the held-out set, we measured micro- and macro-averaged precision, recall, and F1, and label stability across runs. We then characterized topic distribution and co-occurrence across the corpus. Results: The pipeline achieved micro- and macro-averaged F1 of 0.89 and 0.86. Labels were identical across runs for 93.6% of messages. Across 2.4 million messages, content concentrated on a few topics. The two most common topics, Problems & Management and Medications & Prescriptions, were present in 67.9% of messages, and the four most common in 93.9%. 51.7% of messages addressed multiple topics. Discussion and Conclusion: The pipeline classified patient message topics accurately and stably across millions of messages. Message content was concentrated within a small number of topics, highlighting opportunities for targeted interventions and enabling more efficient triage, routing, and patient-facing support.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cloud vs. on-premise large language models for urgent patient-portal message screening: a comparative evaluationnpj Digital Medicine · 2026
- PortalEvent: An Event-Based Ontology for Patient-Initiated Portal CommunicationmedRxiv · 2026
- EPPC-CARE: Staged Hierarchical Annotation of Communication Behaviors in Secure Patient-Provider MessagesarXiv · 2026
- Clinician use of language models diverges from how the models are evaluatedarXiv · 2026
- Guardrails for GenAI drafted replies in patient portal messagingnpj Digital Medicine · 2026
- A scalable framework for evaluating health language modelsnpj Digital Medicine · 2026