An artificial intelligence framework for end-to-end rare disease phenotyping from clinical notes using large language models
Organizations: Department of Biomedical Informatics, Vanderbilt University Medical Center, 2525 West End Avenue, Nashville, 37203, TN, USA. · Department of Biostatistics, Vanderbilt University Medical Center, 2525 West End Avenue, Nashville, 37203, TN, USA. · Department of Pediatrics, Vanderbilt University Medical Center, 2200 Children’s Way, Nashville, 37232, TN, USA. · McWilliams School of Biomedical Informatics, The University of Texas Health Science Center at Houston, 7000 Fannin St #600, Houston, 77030, TX, USA. · Department of Medical Genetics and Genomics, Icahn School of Medicine at Mount Sinai, 1 Gustave L. Levy Pl, New York, 10028, New York, USA. · Department of Medicine, Vanderbilt University Medical Center, 1161 21st Ave S, Nashville, 37232, TN, USA. · Department of Computer Science, Vanderbilt University, 1400 18th Avenue S, Nashville, 37212, TN, USA. · Department of Biomedical Informatics and Data Science, Yale School of Medicine, 101 College Street, New Haven, 06520, CT, USA.
Abstract
Phenotyping is fundamental to rare disease diagnosis, but manual curation of structured phenotypes from clinical notes is labor-intensive and difficult to scale. Existing artificial intelligence approaches typically optimize individual components of phenotyping but do not operationalize the full clinical workflow of extracting features from clinical text, standardizing them to Human Phenotype Ontology (HPO) terms, and prioritizing diagnostically informative HPO terms. We developed RARE-PHENIX, an end-to-end AI framework for rare disease phenotyping that integrates large language model-based phenotype extraction, ontology-grounded standardization to HPO terms, and supervised ranking of diagnostically informative phenotypes. We trained RARE-PHENIX using data from 2,671 patients across 11 Undiagnosed Diseases Network clinical sites, and externally validated it on 16,357 real-world clinical notes from Vanderbilt University Medical Center. Using clinician-curated HPO terms as the gold standard, RARE-PHENIX consistently outperformed a state-of-the-art deep learning baseline (PhenoBERT) across ontology-based similarity and precision-recall-F1 metrics in end-to-end evaluation (i.e., ontology-based similarity of 0.70 vs. 0.58). Ablation analyses demonstrated performance improvements with the addition of each module in RARE-PHENIX (extraction, standardization, and prioritization), supporting the value of modeling the full clinical phenotyping workflow. By modeling phenotyping as a clinically aligned workflow rather than a single extraction task, RARE-PHENIX provides structured, ranked phenotypes that are more concordant with clinician curation and has the potential to support human-in-the-loop rare disease diagnosis in real-world settings.
Figures & tables
| Clinical Site | Number of patients, n (%) | Age, median (IQR) | Number of HPO terms, median (IQR) |
|---|---|---|---|
| Training Cohorts | |||
| UCLA | 248 (8.8%) | 11.0 (4.2–23.8) | 22.0 (13.0–38.2) |
| Baylor | 358 (12.7%) | 8.0 (3.0–18.0) | 16.0 (9.0–25.0) |
| Duke | 302 (10.7%) | 7.0 (3.0–14.5) | 21.5 (12.0–31.0) |
| Stanford | 325 (11.5%) | 11.0 (5.0–29.8) | 10.0 (6.0–17.0) |
| Harvard-affiliate | 240 (8.5%) | 12.5 (4.0–29.0) | 13.0 (7.0–22.0) |
| Clinical note type | N (%) | Number of notes per patient, median (IQR) | Number of characters per note, median (IQR) |
|---|---|---|---|
| Progress | 11083 (67.8%) | 16.0 (8.0–71.5) | 2326.0 (819.5–5008.0) |
| Consultations | 2074 (12.7%) | 9.0 (2.5–27.0) | 901.0 (506.2–2200.5) |
| Procedures / Operative | 926 (5.7%) | 9.5 (4.0–17.8) | 942.0 (205.0–2189.2) |
| Imaging | 712 (4.4%) | 4.0 (2.0–14.0) | 2276.5 (569.5–3376.2) |
| Rehabilitation & Therapy | 298 (1.8%) | 4.0 (1.2–12.0) | 2993.5 (610.0–4137.8) |
| Nutrition | 169 (1.0%) | 2.0 (1.0–14.0) | 349.0 (221.0–588.0) |