Comparison of rule- and large language model-based phenotype extraction from clinical notes for neurofibromatosis type 1
Open Access
- 12 September 2025
- journal article
- Published by Oxford University Press (OUP) in Journal of the American Medical Informatics Association
- Vol. 32 (11) , 1663-1673
Abstract
Introduction: Neurofibromatosis type 1 (NF1) is a rare genetic disorder affecting multiple organ systems with significant clinical heterogeneity. Managing individuals with NF1 is challenging due to variability in disease progression and outcomes and limited early risk assessment tools. Objective: This study aims to develop an effective, generalizable, user-friendly clinical entity extraction pipeline for identifying NF1-related phenotypes from unstructured clinical notes to enhance research and risk-modeling efforts. We compare the benefits of rule-based natural language processing (NLP) vs large language models (LLMs) for this purpose. Materials and Methods: Four phenotype extraction pipelines (3 LLM-based vs 1 rule-based) were developed to automatically extract selected NF1-relevant phenotypes. Subject matter experts manually reviewed clinical notes, generating a gold-standard annotation dataset for evaluation. In Phase 1, notes authored by a single NF1 physician were used to guide pipeline development and refinement. In Phase 2, notes from a second NF1 physician were used to assess pipeline generalizability, followed by further refinement to accommodate differences in physician terminology. Results: With refinement, the rule-based model had higher distributions of F1 scores than the LLMs in both Phase 1 and Phase 2. However, the LLMs demonstrated better generalizability between physicians without refinement, showing lesser performance decreases (4.4%-5.1%) when transitioning from Phase 1 to Phase 2 without refinement, compared to an 8.8% decrease for the rule-based model. Conclusion: We highlight trade-offs between the effectiveness of rule-based NLP vs generalizability and ease of implementation of LLMs for clinical entity extraction, with implications for pipeline portability across providers and institutions.Keywords
Funding Information
- National Institute of Neurological Disorders and Stroke of the National Institutes of Health (R01NS131112)
This publication has 46 references indexed in Scilit:
- Sex- and age-related differences in autistic behaviours in children with neurofibromatosis type 1Journal of Autism and Developmental Disorders, 2022
- Clinical spectrum of individuals with pathogenic
N
F1
missense variants affecting p.Met1149, p.Arg1276, and p.Lys1423: genotype–phenotype study in neurofibromatosis type 1Human Mutation, 2019
- Variation in Physicians’ Electronic Health Record Documentation and Potential Patient Harm from That VariationJournal of General Internal Medicine, 2019
- Disease Burden and Symptom Structure of Autism in Neurofibromatosis Type 1JAMA Psychiatry, 2016
- High Incidence of Noonan Syndrome Features Including Short Stature and Pulmonic Stenosis in Patients carrying NF1 Missense Mutations Affecting p.Arg1809: Genotype–Phenotype CorrelationHuman Mutation, 2015
- Evaluation of participant recruitment methods to a rare disease online registryAmerican Journal of Medical Genetics Part A, 2014
- Sex Is a major determinant of neuronal dysfunction in neurofibromatosis type 1Annals of Neurology, 2013
- Development of an international internet-based neurofibromatosis Type 1 Patient registryContemporary Clinical Trials, 2013
- NF1 microdeletions in neurofibromatosis type 1: from genotype to phenotypeHuman Mutation, 2010
- The Diagnostic Evaluation and Multidisciplinary Management of Neurofibromatosis 1 and Neurofibromatosis 2JAMA, 1997