Leveraging large language models for rare disease named entity recognition
Nan Miles Xi, Yu Deng, Lin Wang

TL;DR
This study explores how large language models like GPT-4o can identify rare disease-related terms in medical text when labeled data is limited, showing promising results for research and clinical applications.
Contribution
The study introduces structured prompting and semantically guided few-shot example selection methods to enhance rare disease NER with GPT-4o under low-resource settings.
Findings
Task-level fine-tuning of GPT-4o outperforms BioClinicalBERT on the RareDis Corpus.
Few-shot prompting provides high performance at low token costs for rare disease NER.
Retrieval-augmented generation improves recall for challenging entity types like signs and symptoms.
Abstract
Named Entity Recognition (NER) in the rare disease domain poses unique challenges due to limited labeled data, semantic ambiguity between entity types, and long-tail distributions. In this study, we evaluate the capabilities of GPT-4o for rare disease NER under low-resource settings, using a range of prompt-based strategies including zero-shot prompting, few-shot in-context learning, retrieval-augmented generation (RAG), and task-level fine-tuning. We design a structured prompting framework that encodes domain-specific knowledge and disambiguation rules for four entity types. We further introduce two semantically guided few-shot example selection methods to improve in-context performance while reducing labeling effort. Experiments on the RareDis Corpus show that GPT-4o achieves competitive or superior performance compared to BioClinicalBERT, with task-level fine-tuning yielding the…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Fig 1
Fig 2
Fig 3- —http://dx.doi.org/10.13039/100000001National Science Foundation
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Biomedical Text Mining and Ontologies · Genomics and Rare Diseases
1. Introduction
Rare diseases are individually rare but collectively common, with over 6,000 distinct conditions affecting an estimated 300 million people worldwide [1]. Their low prevalence means that general practitioners have little experience with any given rare disease, while the clinical heterogeneity across conditions further complicates diagnosis [2]. As a result, patients often face prolonged processes before receiving a correct diagnosis and appropriate treatment [3]. This diagnostic gap has elevated rare diseases to a global health priority and highlights the urgent need for scalable methods to extract and disseminate rare disease knowledge. Automated information extraction, particularly named entity recognition (NER), can play a pivotal role in addressing this gap. NER enables the construction of biomedical knowledge graphs linking diseases to phenotypes, supports clinical decision-making, and assists patient care by surfacing relevant findings in medical narratives [4–6]. Machine learning decision support models have been explored to improve diagnostic accuracy using clinical data [7], but such approaches often depend on reliable extraction of disease and phenotype information from unstructured notes, motivating robust clinical NER. Recent work has also demonstrated the utility of NER for symptom surveillance in social media platforms [8]. However, extracting such information from unstructured text poses several challenges.
Foremost among these is the low-resource setting. Few annotated corpora exist for rare disease NER, as expert labeling is costly and time-consuming. In addition, rare disease terminology is often semantically ambiguous, which creates overlapping entity boundaries and introduces high annotation variability. Distinguishing between such entities requires nuanced domain understanding that even advanced models struggle to achieve [9]. Compounding these issues is the long-tail distribution of rare diseases. The vast majority occur with low frequency, often below one case per million individuals [10]. Consequently, most rare disease mentions appear infrequently in existing data, and language models may lack sufficient exposure to ultra-rare conditions. Any robust solution must contend with both data scarcity and domain-specific ambiguity to succeed in this setting.
Conventional biomedical NER systems rely on supervised learning with domain-specific models. Transformer-based architectures such as BioClinicalBERT and BioBERT have achieved strong performance on medical NER tasks when trained on large-scale corpora [11,12]. However, these supervised approaches are inherently constrained by their dependence on large and high-quality annotated datasets, which remain scarce in the rare disease domain. Even when such data are available, generalization to novel or ultra-rare entities remains difficult due to the long-tail distribution of biomedical concepts [13]. In parallel, generative large language models (LLMs) have enabled a shift toward prompt-based learning through natural language instructions. In general-domain applications, generative LLMs have demonstrated impressive zero-shot and few-shot capabilities, substantially reducing the need for task-specific labeled data [14]. Several recent studies have begun to test prompt-engineering for rare-disease extraction [3,15–17], yet systematic evaluation and broader generalization remain open questions.
Prompt-based NER in biomedical text introduces several open questions. Early evaluations indicate that general-purpose LLMs underperform compared to fine-tuned biomedical models on token-level clinical NER tasks [18,19]. Moreover, prompt designs tailored to rare disease extraction are still in their infancy. It remains unclear whether off-the-shelf LLMs can reliably disambiguate the subtle semantic distinctions in rare disease contexts. Beyond basic prompting, two complementary approaches, retrieval-augmented generation (RAG) and in-context learning, offer potential solutions. RAG enables an LLM to access external information at inference time by retrieving and incorporating supporting documents [20]. In rare disease NER, RAG can allow the model to consult definitions or explanations from curated biomedical knowledge databases. Similarly, the effectiveness of in-context learning relies on the choice of labeled learning exemplars. Recent studies have shown that selecting semantically similar examples can substantially improve few-shot learning in biomedical Natural Language Processing (NLP) tasks [21]. Yet, it remains unclear how example selection strategies affect LLM performance in disambiguating complex rare disease entities.
Given these challenges, we aim to answer the following question: Can generative LLMs accurately and cost-effectively perform NER in the rare disease domain using prompt-based methods, fine-tuning on domain-specific prompts, or retrieval-augmented context? We focus on OpenAI’s GPT-4o as a representative LLM [22] and evaluate its ability to identify rare disease-related entities under various low-resource settings. We benchmark GPT-4o against BioClinicalBERT to quantify the strengths and limitations of prompt-based LLMs in specialized biomedical tasks. BioClinicalBERT is a strong domain specific transformer pretrained on biomedical literature and clinical notes, widely used as a state-of-the-art (SOTA) baseline for clinical and biomedical NLP. Our goal is to assess whether prompt-only, in-context learning, and RAG can approach SOTA models without large and annotated datasets, and to understand their trade-offs relative to traditional supervised learning approaches.
Our contributions in this paper are summarized as follows. First, we design a prompt template that encodes domain knowledge for semantically overlapping entity types. This framework guides GPT-4o to perform entity recognition with nuanced semantic boundaries. Second, we evaluate GPT-4o under multiple prompting regimes and compare its performance against the SOTA. This comparison quantifies the effectiveness of prompt-based LLMs relative to conventional NER systems. Third, we investigate two context-aware strategies for selecting learning examples. We show that these methods outperform random selection and enhance GPT-4o’s ability to resolve ambiguous entity mentions. Another contribution is that we implement an RAG approach and let GPT-4o retrieve contextual snippets from a knowledge base. We assess the utility of this external biomedical context and highlight when RAG provides meaningful performance gains. We also evaluate the inference cost across different prompting strategies. This analysis provides insights into the deployment feasibility of prompt-based LLMs in real-world applications. Finally, we introduce a taxonomy of error types and perform an error analysis to identify common failures in GPT-4o’s output.
In our experiments, GPT-4o demonstrates strong performance on rare disease NER under minimal supervision. With a small number of in-context learning examples, GPT-4o’s performance approaches that of the fine-tuned BioClinicalBERT. Importantly, we find that the quality of selected examples plays a critical role in this success. Semantic selection strategies consistently outperform random selection by enabling the model to resolve ambiguous entity boundaries and improve recall. In contrast, RAG provides only marginal benefits. Overall, our findings indicate that prompt-engineered LLMs can deliver competitive NER performance in the rare disease domain. However, challenges remain in disambiguating closely related entity types and addressing edge cases with low frequency. Our error analysis reveals systematic failure modes, with most errors stemming from span boundary mismatches. These insights highlight specific areas for future refinement, such as post-processing heuristics and hybrid LLM rule-based systems to improve boundary resolution and type specificity [23,24].
The remainder of this paper is structured as follows. Section 2 describes the methodology, including the rare disease dataset, prompt design, learning example selection, and RAG components. Section 3 presents the experimental results and evaluation, performance comparisons, ablation studies, and error analysis. Section 4 discusses the implications of these findings and concludes the paper with future directions.
2. Methods
2.1 RareDis Corpus dataset
We utilize the RareDis Corpus, a domain-specific dataset developed to support NLP applications in the rare disease domain [25]. Let the dataset be denoted as:
where is a biomedical document and is the set of annotated entities, with denoting a surface text span, being the number of annotated entities in document , and representing the entity type. The entity space is defined as:
The corpus contains documents sourced from the National Organization for Rare Disorders (NORD) database [26]. Each document is structured into multiple clinically relevant sections, including general discussion, signs and symptoms, causes, diagnosis, related disorders, affected populations, and therapies. Entity annotations are performed manually by domain experts and contain 5,221 rare disease mentions, 2,348 general disease mentions, 5,333 signs, and 396 symptoms. The corpus is split into training (70%), validation (10%), and test (20%) subsets:
As shown in Table 1, the entity distribution is highly imbalanced across types. For example, symptoms are the sparsest category in the test set (n = 53). This imbalance, together with the long-tail nature of rare disease concepts, motivates imbalance-aware training and data augmentation strategies as important directions for future work.
Table 1: Summary statistics of RareDis Corpus dataset and definitions of its named entities.
The RareDis Corpus reports an Inter-Annotator Agreement (IAA) with an average F1 score of 83.5% for entity recognition, reflecting a high degree of annotation consistency [25]. The corpus makes fine-grained distinctions between semantically related entity types: disease vs. rare disease (based on prevalence thresholds) and sign vs. symptom, where signs are objective clinician-observable findings (e.g., physical exam, labs, imaging) and symptoms are subjective patient-reported experiences (e.g., pain, fatigue, nausea). These subtle boundaries introduce substantial challenges for LLMs in entity recognition. A detailed breakdown of the entity statistics, definitions, and representative examples is provided in Table 1.
2.2 Model and prompt design
We utilize OpenAI’s pretrained large language model GPT-4o to perform NER in the rare disease domain, treating the task as conditional sequence generation [27]. For each test input , the model is provided with a prompt , constructed from five structured components designed to instruct the model on entity recognition without labeled training examples:
Here, the components are defined as follows:
Task description specifies the recognition objective, denoted by a label . For instance: “Identify the names of rare diseases from the following text”.Output format enforces a standardized, comma-separated list of identified entities , enabling exact-match evaluation. For example: “Output only the exact disease names without any additional changes. If there are multiple diseases, separate their names with commas. If there is no disease, output none”.Task guidance provides formal definitions for each entity type , assisting the model to distinguish between semantically overlapping categories. For example: “Symptoms are subjective experiences reported by the patient, which cannot be directly observed or measured by others. They reflect what the patient feels, such as pain, fatigue, or nausea. Symptoms are experienced internally and rely on the patient’s description”.Disambiguation rule offers meta-instructions highlighting frequent errors observed during validation. These discourage undesirable behaviors such as misclassifying general diseases as rare diseases or merging distinct entities. For example: “Treat abbreviations as separate rare disease names. Do not identify regular diseases as rare diseases.”Input text ( ) is the raw contents from which entities are to be identified. A prefix marks its beginning, such as: “The text from which you need to extract the signs of rare diseases is: …”
We define the basic prompt components as the combination of the task description, output format, and . Basic prompt contains the core instruction and context. Advanced components include task guidance and disambiguation rules, which encode domain knowledge and observed failure modes. All prompts are constructed without including any labeled examples (i.e., zero-shot learning), ensuring that the model’s performance is attributable solely to prompt content and pretrained knowledge. To quantify the contribution of each prompt category, we vary the presence of basic and advanced components in the complete prompt π and evaluate the zero-shot performance of GPT-4o under each configuration using the evaluation framework described in Section 2.6. A complete set of prompt templates by entity type is summarized in Table 2.
Table 2: Prompt design components and task-specific instructions used for extracting each entity type.
2.3 In-context learning and example selection strategies
In-context learning refers to providing demonstration examples directly in the prompt to guide the model’s response, without gradient-based parameter updates [14,28]. Formally, let denote a set of in-context learning examples, where and . Here, is a flattened, comma-separated list of entities derived from the structured annotations . LLM receives a prompt of the form:
The model then generates output , where is the LLM conditioned on the full prompt. Depending on , the setup is referred to as one-shot ( ) or few-shot ( ) learning. To assess how different configurations of in-context learning examples affect model performance, we explore a set of example selection methods by leveraging semantic similarity between input texts. Each is mapped to an embedding vector using OpenAI’s text-embedding-3-large model. Given two texts and , semantic similarity is quantified via the Euclidean distance:
We then consider the following three selection strategies:
Inquiry-Random – For each , select learning examples uniformly at random from independent of semantic similarity.Inquiry-KNN – For each , compute for all , and select the top learning examples with the smallest distances. This yields context-specific, nearest-neighbor demonstrations.Cluster-KNN – Partition the test set into clusters using k-means clustering in the embedding space. Let denote the set of inquiry texts in cluster . For each training example , define its average distance to cluster as:
Then, for every , select the training examples with the smallest . This approach selects examples that are collectively representative for all members of a cluster, rather than individually optimized per inquiry. The number of clusters is treated as a hyperparameter, with values 32 or 64 explored in our analysis. Note that this clustering is applied only at evaluation time to guide example selection. This design is intended to improve coverage and diversity of demonstration. Related diversity‑preserving subsampling ideas have been studied in other high-dimensional biomedical settings [29].
To study the impact of demonstration count, we vary across all selection methods. The learning examples start with a prefix “Here are demonstration shots:” Model performance is evaluated for each and selection method combination across the four entity types. A representative summary of the learning examples and prompt configurations evaluated is presented in Table 3.
Table 3: Exemplary in-context learning examples contained in the prompts.
2.4 Task-level fine-tuning
Prompt engineering and in-context learning do not force the model to internalize domain-specific regularities in rare disease NER. We therefore investigate a complementary strategy: task-level fine-tuning. Unlike BioClinicalBERT and BioBERT pretrained on general-domain biomedical corpora, task-level fine-tuning updates the parameters of a pretrained LLM using the training set of RareDis Corpus, enabling it to learn task-specific patterns rather than relying solely on prompts [30]. For each training pair , the prompt is constructed by:
The objective of task-level fine-tuning is to minimize the empirical loss:
where is a token-level cross-entropy loss between the identified entity and the ground-truth . In this study, we fine-tune the GPT-4o-mini-2024-07-18 model on the RareDis Corpus. Training is conducted using OpenAI’s API interface, with hyperparameters batch size, learning rate multiplier, and number of epochs set to “auto”. The held-out validation set is used for early stopping to mitigate overfitting. Training and validation examples are formatted as JSONL records, each containing both the inquiry input and the corresponding entity labels , along with the full prompt structure. Unlike in-context learning, no additional examples are prepended at inference time. After fine-tuning, model performance is evaluated on the test set using the same five-component prompt structure but without any in-context demonstrations.
2.5 Retrieval-augmented generation analysis
To augment prompt-based inference with external domain knowledge, we implement a retrieval-augmented generation (RAG) approach in which external reference is dynamically incorporated into the prompt at inference time [31]. This enables the model to access semantically relevant background context without requiring gradient-based parameter updates, contrasting with task-level fine-tuning. We construct a domain-specific knowledge corpus from the Orphanet rare disease alignments database [32]. Alternative biomedical-QA RAG systems have reported only marginal gains when retrieval snippets overlap the prompt content [33]. Let denote the resulting corpus, where each entry consists of a disease name and corresponding definition snippet . The final RAG corpus contains entries, each tokenized to a length , with a median of 53 tokens. Each entry is mapped to a semantic embedding using OpenAI’s text-embedding-3-large model. Likewise, the inquiry text is embedded as . We define the retrieval score as the Euclidean distance:
For a given , the top- retrieved knowledge snippets are selected:
These retrieved snippets are concatenated into a prefix segment of the prompt, “Here are knowledge snippets:”, followed by the prompts described in previous sections. Two retrieval-augmented prompting strategies are tested:
Zero-shot + RAG – The full prompt consists of only the RAG knowledge prefix and the inquiry input and no labeled learning examples are included:
Few-shot + RAG – In this setting, labeled learning examples are included using the Inquiry-KNN strategy described in the Section 2.3. The full prompt becomes:
We vary , and , observing that larger values of often introduce semantic noise and lead to performance degradation. These two RAG-augmented strategies are evaluated against their non-RAG counterparts to quantify the incremental benefit of incorporating external biomedical knowledge at inference time.
2.6 Performance evaluation metrics
We formulate rare disease NER as a text-to-entity sequence generation problem, where an LLM outputs a set of entity mentions based on a natural language input. Let the input text be denoted by a token sequence , where is the total number of tokens. For any given entity type , the corresponding ground-truth entity set is given by , where each , and is the set of all valid entity strings. The model generates an identified set of entities , where and may differ.
An entity recognition is considered a true positive if there exists a such that (i.e., exact string match). We denote the number of such correct matches as the true positive for entity type :
Accordingly, we define the model evaluation metrics for entity type as follows. Precision is the proportion of identified entities that are correct:
Recall is the proportion of ground-truth entities that are correctly identified:
F1 score is the harmonic mean of precision and recall
These metrics are computed separately for each entity type {rare disease, disease, sign, symptom} under varying prompt configurations and learning methods described in previous sections.
We construct 95% confidence intervals (CIs) for precision, recall, and F1 using a nonparametric document-level bootstrap on the test set [34]. For each of 2000 bootstrap replicates, we resample test documents with replacement and recompute TP/FP/FN counts and the derived metrics. Reported CIs correspond to the 2.5th and 97.5th percentiles of the bootstrap distribution.
To assess whether retrieval augmentation yields statistically meaningful improvements, we perform a paired and document-level bootstrap on prespecified comparisons. For each bootstrap replicate, we resample the 208 test documents with replacement and recompute document-level precision, recall, and F1 for both the baseline prompt and its matched RAG variant, then record the paired difference = (RAG - baseline). We report the bootstrap mean and 95% CI. We additionally report a one-sided bootstrap p-value for improvement. To limit multiple comparisons, we only tested (i) zero-shot + RAG vs zero-shot and (ii) the best performing few-shot setting + RAG vs its few-shot baseline for each entity type.
2.7 Error taxonomy and quantification
To better understand model behavior, we perform a token-string error analysis on the test set for all four entity types. For each input text , we consider its ground-truth entity set and the model-identified set for entity type . The recognitions are obtained using Inquiry-KNN method, with selected based on the highest observed F1 score (see Results and Fig 1). For any input , if no ground-truth entities of type exist, then . Similarly, if the model produces no output for type , then . Each identified entity is compared to all ground-truth entities using a case-insensitive token overlap metric:
F1 scores of few-shot learning across different numbers of learning examples.A. Rear disease. B. Disease. C. Sign. D. Symptom. Two dash lines indicate the state-of-the-art (SOTA) performances using BioClinicalBERT model reported by Shyr et al. [3] and the best performance of prompt designs without learning examples (zero-shot) reported in Table 4, respectively.
Table 4: NER performance of different prompt designs under zero-shot learning. The BioClinicalBERT baseline is taken from Shyr et al., who fine-tuned BioClinicalBERT on the RareDis Corpus [3,11]. The best performances among different prompt designs and BioClinicalBERT model are underscored for each task. The 95% CIs constructed by bootstrap are shown in parentheses. CIs are computed for GPT based experiments and not available for the BioClinicalBERT baseline reported in the literature.
A greedy one-to-one alignment procedure is applied, where each recognition is matched to the first available ground-truth span with which it shares the highest token overlap . Remaining unmatched recognitions and ground-truth entities are retained as spurious and missed, respectively. Aligned entity pairs are classified into one of six mutually exclusive categories:
Correct – The identified span exactly matches the ground-truth span and the identified entity type matches the true annotation:
Boundary – The identified and ground-truth spans have non-zero token overlap but are not identical, with the correct entity type:
Type – The identified span exactly matches the ground-truth span, but the entity type is incorrect:
Boundary + Type – The identified and ground-truth spans overlap but are not identical, and the identified type is incorrect:
Spurious – The identified entity cannot be aligned to any ground-truth entity of type (i.e., no overlapping span), representing a false positive.Missed – A ground-truth entity cannot be aligned to any recognition, representing a false negative.
2.8 Performance-cost analysis
We conduct a performance-cost analysis to quantify how each -shot configuration trades off F1 score against the monetary cost incurred per query using the OpenAI API. Pricing is based on the April 2025 OpenAI pricing sheet, which charges [eqn]$ . We then regress F1 score against cost to obtain smooth performance-cost curves, aiming to characterize the cost-efficiency of different prompt configurations. Two distinct regression models are adopted based on the empirical shape of the F1-cost relationship for each entity type:
Asymptotic-exponential regression. For entity types exhibiting a monotonic and saturating increase in F1 score (rare disease, disease, and sign), we model the performance-cost curve using a one-phase asymptotic exponential function [35]. We define incremental cost and fit
where is the baseline F1 at zero-shot, is the asymptotic (plateau) performance, and controls the saturation rate. We derive the half-rise additional cost and the additional cost to achieve 95% of the attainable gain , and report the corresponding absolute cost as . Model fitting is performed using nonlinear least squares with a Gauss-Newton optimizer, implemented by nls function in R programming language.
Local polynomial regression. The symptom entity does not conform to the monotonic rise assumption; instead, its performance curve is non-monotonic and lacks a well-defined plateau. We therefore conduct local polynomial regression using a Locally Estimated Scatterplot Smoothing (LOESS) method with a span of 0.75 [36]. The smoother fits a first-order local regression at each evaluation point with tri-cube kernel weighting:
where is the distance between the evaluation point and training point , and is the maximum distance within the local neighborhood defined by the span. The fitted value is obtained by minimizing the locally weighted least squares criterion:
where is the observed F1 score at cost value . The coefficients , define a locally linear approximation of the performance-cost curve near , with as the locally fitted value. The span hyperparameter (0.75) is selected a priori to balance the bias-variance trade-off, given the relatively coarse granularity of the -shot cost grid.
Additionally, we propagate uncertainty to the cost-performance smoothers by applying the same document-level bootstrap at each -shot condition, refitting the entity specific smoother in each replicate, and plotting the pointwise 95% bootstrap bands across cost.
3. Results
3.1 Zero-shot learning
To evaluate model performance in the zero-shot learning setting, we conduct NER analysis using three prompt configurations, each excluding in-context examples. The first design includes only the basic components: task description, output format, and inquiry text. The second design extends this by incorporating task guidance, while the third design adds disambiguation rule on top of the prior components. We compare performance against BioClinicalBERT, a domain-specific BERT model pretrained on PubMed and MIMIC-III corpora and a widely used supervised baseline for clinical NER. In a prior study, Shyr et al. tested BioClinicalBERT on the RareDis Corpus and achieved SOTA performance on rare disease NER [3]. We adopt their reported results as the baseline in this comparison.
Table 4 summarizes precision, recall, and F1 score across all four entity types for each zero-shot prompt configuration and the BioClinicalBERT baseline. BioClinicalBERT outperforms all zero-shot prompt designs in overall F1, confirming the advantage of supervised learning in this domain. Besides, several trends emerge from the zero-shot results. For rare disease, the basic prompt achieves the highest precision (0.914) across all methods including BioClinicalBERT, though at the cost of reduced recall. Incorporating task guidance and disambiguation rule notably improves recall (from 0.463 to 0.576) and lifts the F1 score from 0.614 to 0.702. This demonstrates that task-specific guidance can significantly enhance recall without severely compromising precision, bringing zero-shot performance closer to the SOTA benchmark (F1 = 0.837).
For disease, a different pattern is observed. The prompt with all components achieves the highest precision (0.545), surpassing BioClinicalBERT (0.494). However, its recall remains low (0.221), leading to a relatively modest F1 score (0.314 vs. 0.491 for SOTA). This suggests that while disambiguation helps filter false positives, it may also suppress valid predictions in this entity type. In the case of sign, the basic prompt yields the highest F1 score (0.392) among zero-shot variants. Task guidance and disambiguation appear to reduce recall (from 0.362 to 0.221), without improving precision. This indicates that the pretrained LLM already captures sufficient contextual cues for sign recognition, and that additional prompt instructions may introduce constraints that hinder generalization. For symptom, precision and F1 score remain low across all configurations. Interestingly, the basic prompt achieves the highest recall (0.653), while the full prompt improves precision (0.142) and F1 score (0.230). Nevertheless, all zero-shot prompts fall well below the BioClinicalBERT (F1 = 0.648), highlighting the difficulty without explicit supervision.
Among the three prompt configurations, the full prompt yields the highest F1 scores for three out of four entity types, suggesting that task-specific definitions and error-aware instructions enhance model performance even without labeled examples. For the sign entity type, the basic prompt alone achieves the best F1 score. This result implies that the LLM pretrained on large-scale general corpora may already encode sufficient knowledge of signs, and that further guidance could introduce redundancy or noise. Overall, while none of the zero-shot prompts match the performance of BioClinicalBERT, they demonstrate competitive precision and recall in certain scenarios, indicating the potential of prompt engineering as a lightweight alternative in low-resource applications.
3.2 Few-shot learning
Fig 1 summarizes the F1 scores of few-shot learning across four entity types, comparing different example selection strategies. In general, increasing the number of in-context learning examples improves model performance, though the degree and pattern of improvement vary by entity type and selection method. For rare disease (Fig 1A), all methods except Inquiry-Random show consistent gains as increases. The Inquiry-KNN strategy consistently outperforms all others and notably exceeds the SOTA (F1 = 0.704) across almost all , with performance peaking around . Interestingly, even a small number of well-selected examples (e.g., ) leads to substantial improvement over zero-shot (F1 = 0.702), highlighting the value of semantically aligned demonstrations. A recent multilingual study likewise found that properly selected few-shot cues can outperform fully supervised baselines in English, French, and Spanish clinical NER [19].
For disease (Fig 1B), the model again benefits from increased , but the gains plateau earlier, around to . Inquiry-KNN achieves the best results (F1 = 0.518), surpassing the SOTA (F1 = 0.491), and Cluster-KNN follows closely. In contrast, Inquiry-Random yields marginal improvement over zero-shot (F1 = 0.314), underscoring the importance of semantic relevance in example selection. The sign entity (Fig 1C) exhibits a slower performance climb, with gains tapering after . Unlike rare disease and disease, Cluster-KNN-64 performs slightly better than Inquiry-KNN across most , suggesting that collective similarity within clusters is more effective than pointwise similarity in this entity type. All three semantic-based methods outperform Inquiry-Random, reinforcing the previous trend. For symptom (Fig 1D), performance is underperformed compared to zero-shot (F1 = 0.230) across all methods and values of . In some cases, adding examples degrades performance. This likely reflects the ambiguous nature of symptom annotations, or misalignment between training examples and the model’s pretrained representation of medical terms. Among different strategies, Inquiry-KNN yields the highest performance (F1 = 0.223 at ).
The low F1 for prompt-based symptom extraction is primarily driven by low precision rather than low recall. In our best few-shot configuration, symptom recall remains moderate (0.673), but precision is very low (0.134), resulting in F1 = 0.223. In contrast, BioClinicalBERT achieves higher and more balanced precision/recall (0.667/0.630), with F1 = 0.648 (Table 5). This precision collapse is consistent with our error taxonomy in Section 3.5, where nearly half of symptom outputs are spurious (46%), indicating substantial overgeneration. We also note that symptom is the sparsest entity type in the test set (53 mentions across 208 documents; Table 1), which limits coverage for in-context learning and contributes to wider uncertainty.
Table 5: NER performance of different models and learning methods. Each metric in zero-shot and few-shot learning is the best result across all prompt-example configurations. The best performances among different models are underscored for each task. The 95% CIs constructed by bootstrap are shown in parentheses. CIs are computed for GPT based experiments and not available for the BioClinicalBERT baseline reported by Shyr et al. [3].
Comparing selection strategies, we observe that Inquiry-KNN yields the highest F1 scores for rare disease, disease, and symptom, while Cluster-KNN-64 leads on sign. Across entity types, Inquiry-Random consistently underperforms, indicating that semantic similarity – either at the individual or cluster level – is crucial for effective in-context learning. Notably, Cluster-KNN’s strong performance demonstrates the potential of collective similarity, which may reduce overfitting to query-specific features that affect pointwise nearest-neighbor strategies like Inquiry-KNN. In addition, Cluster-KNN assigns the same exemplar set to all inputs within a cluster and therefore requires fewer total labeled examples than Inquiry-KNN, which selects a distinct set of examples per query. This makes Cluster-KNN more scalable in scenarios where annotation cost is a bottleneck. Overall, few-shot learning with semantically aligned examples improves performance over zero-shot learning and surpasses SOTA in rare disease and disease entities. These findings underscore the effectiveness of few-shot learning as a low-resource alternative to supervised training when guided by appropriate example selection strategies.
3.3 Task-level fine-tuning achieves best overall performance
Table 5 compares the NER performance of the task-level fine-tuned GPT-4o-mini model with zero-shot, few-shot, and BioClinicalBERT across four entity types. BioClinicalBERT results are taken from Shyr et al. and included as a reference baseline [3,11]. For zero-shot and few-shot settings, we report the best results across all prompt configurations and learning example selection strategies. Overall, fine-tuning GPT-4o-mini achieves the best performance among the methods evaluated in this study. For rare disease, fine-tuning achieves an F1 score of 0.837, exceeding both the zero-shot (0.702) and few-shot (0.776) variants, and outperforming BioClinicalBERT (0.704), despite its extensive pretraining on general biomedical corpus. The performance gain is especially pronounced in recall (0.822 vs. 0.702 for few-shot), indicating that model exposure to task-specific supervision improves entity coverage substantially. In the disease category, fine-tuning again leads in F1 (0.702), outperforming few-shot (0.518) and BioClinicalBERT (0.491). The fine-tuned model also achieves substantially higher precision (0.713 vs. 0.545) and recall (0.692 vs. 0.511) compared to the few-shot model. For sign, fine-tuning provides the highest F1 score (0.541), benefiting from the strongest recall (0.561) despite slightly lower precision than BioClinicalBERT (0.522 vs. 0.561). This highlights a recall-precision trade-off, where fine-tuning favors completeness over conservatism in recognition.
Compared to other entity types, the symptom exhibits a slightly different trend. BioClinicalBERT achieves the highest F1 score (0.648) and the highest precision (0.667), outperforming the fine-tuned GPT-4o-mini, which attains an F1 of 0.614 with slightly higher recall (0.633 vs. 0.630). The performance gap is narrower here than in other entity types, and both models substantially outperform the zero-shot (F1 = 0.230) and few-shot (F1 = 0.223) models. These results suggest that the more ambiguous and context-sensitive symptom extraction benefits from broad biomedical pretraining and may require additional contextual reasoning beyond prompt-based learning.
Across all four entity types, task-level fine-tuned GPT-4o-mini consistently yields balanced precision and recall, indicating robust generalization and reliability for NER tasks. In contrast, zero-shot prompting tends to favor precision at the expense of recall, while few-shot learning offers intermediate gains but does not consistently close the performance gap, particularly on high-recall tasks. These findings reinforce the value of full-model fine-tuning when task-specific labeled data is available. Unlike BioClinicalBERT, which is trained on general-purpose biomedical corpora (PubMed, MIMIC-III), GPT-4o-mini benefits from being directly fine-tuned on the RareDis Corpus, allowing it to internalize domain-specific terminology, entity structure, and annotation conventions. However, it is important to acknowledge the resource-intensive nature of fine-tuning, which requires substantial annotation effort, model retraining, and validation infrastructure. In contrast, few-shot learning achieves near-SOTA results at a fraction of the labeling cost, particularly for rare disease and sign.
3.4 Impact of RAG on zero- and few-shot learning
Table 6 presents the performance gains achieved by augmenting prompts with one or two knowledge snippets retrieved from the RAG corpus, across zero-shot and few-shot learning settings (with 1, 2, or 4 learning examples). Only metric-entity combinations that show improvement with RAG augmentation are reported. Among the 48 metric-entity combinations evaluated, 13 (27%) show higher point estimates with RAG augmentation. The degree of benefit varies across evaluation metrics: 7 out of 16 (44%) precision scores improve, compared to 3 out of 16 (19%) for recall and 3 out of 16 (19%) for F1 score. The average gains are modest, with 0.016 for precision, 0.045 for recall, and 0.013 for F1 score. By entity type, symptom recognition shows the greatest relative benefit (6 of 12 metrics improved, 50%), followed by sign (3 of 12, 25%), disease (2 of 12, 13%), and rare disease (2 of 12, 13%).
Table 6: NER performance gains from RAG relative to in-context learning. A k-shot model refers to one prompted with k labeled learning examples selected using the Inquiry-KNN method. The “+ n-RAG” condition additionally prepends n knowledge snippets retrieved from the RAG corpus. Only metrics showing performance improvement with RAG snippets are reported. A dash (-) indicates no observed benefit. The best-performing configuration for each task is underscored. The 95% confidence intervals constructed by bootstrap are shown in parentheses.
We further evaluate whether these changes are statistically supported using paired and document-level bootstrap tests on prespecified comparisons (S1 Table). Across most entities and settings, RAG does not yield a statistically significant improvement in F1, and several comparisons showed negative F1. The clearest benefit is for sign extraction in the zero-shot setting, where adding one retrieved snippet improves F1 by 0.030 (95% CI (0.005,0.055)). In contrast, for rare disease zero-shot using two snippets, F1 decreases by 0.108 (95% CI (−0.152, −0.064)), and for symptom, zero-shot RAG increases recall but reduces precision such that F1 declines overall by −0.041 (95% CI (−0.083, −0.001)).
These results suggest that, in the context of rare disease NER, RAG provides limited additional value when high-quality prompts and relevant learning examples are already available. Improvements in precision imply that RAG snippets may help suppress false positives in select cases. However, the gains are marginal and do not scale with the number of snippets included. Recall also shows small improvement, except for modest boosts in sign and symptom recognition, indicating that RAG does not substantially surface new entities beyond what is already captured by the base prompt. Given that each RAG snippet contains roughly 50 tokens and requires a separate embedding computation, the cost-benefit trade-off becomes unfavorable for scenarios constrained by token budget or inference latency. In such settings, allocating resources toward additional learning examples or lightweight fine-tuning may yield better returns.
Two factors likely explain the limited benefit of RAG in this task. First, GPT-4o model already encodes substantial biomedical knowledge, including lexical variants and factual associations relevant to rare and common diseases. As such, short RAG snippets often add little new information. Second, overlap between few-shot learning examples and retrieved snippets, in terms of disease mentions and syntactic structure, further diminishes the incremental value of RAG. When retrieved content redundantly mirrors patterns already shown in the prompt, its utility drops to near zero. RAG’s most consistent benefit is recall improvement for the most challenging entity types. For example, in the zero-shot setting, adding one retrieved snippet increases sign recall from 0.221 to 0.254 and symptom recall from 0.612 to 0.673 (Table 6). For symptoms, this recall increase can coincide with reduced precision, so overall F1 may not increase even when recall improves.
3.5 Error analysis
Fig 2 visualizes model-identified entities into six mutually exclusive categories defined in Section 2.7, providing a fine-grained view of model behavior. Rare disease recognition emerges as the most robust, with over half of all mentions correctly identified with exact span and type agreement (Correct = 51%), roughly twice the rate observed for disease (30%) and sign (23%). Most remaining errors are relatively benign, comprising modest span deviations (Boundary = 20%) and low-severity false positives (Spurious = 15%). Omissions are comparatively infrequent (Missed = 14%), and the near absence of entity type confusion (Type + Boundary and Type < 1%) confirms that rare disease are rarely mislabeled.
Error distribution for each entity type.Each bar represents the proportion of entity predictions falling into one of six mutually exclusive categories on the test set. Results are calculated using Inquiry-KNN methods with the best-performing k-shot configuration per entity as determined by F1 score in Fig 1.
The disease and sign categories exhibit complementary error profiles. Disease recognition is primarily limited by recall, with nearly one-third of ground-truth mentions undetected (Missed = 29%). Sign recognition, on the other hand, suffers more from low precision: boundary drift affects 31% of recognitions, and a further 33% are spurious hallucinations, indicating substantial over-generation. Together, these two entity types account for a substantial portion of the overall error volume illustrated in Fig 2 and highlight the divergent sources of model failure.
The symptom category presents a distinct pattern. While the model identifies a relatively large proportion of entities (Correct = 35%), nearly half of all outputs are unsupported by the ground truth (Spurious = 46%). To quantify whether these false positive symptom outputs reflect sign/symptom boundary ambiguity, we compare spurious symptom strings against sign annotations in the same documents under zero-shot setting. Among 182 spurious symptom outputs, 101 (55.5%) exactly match a sign mention, while the remaining 81 (44.5%) are unsupported by either symptom or sign annotations. This suggests symptom errors are driven by both sign/symptom boundary confusion and unsupported overgeneration. The remediation may require refining entity boundaries or prompt specificity than on increasing the number of examples.
Overall, Boundary, Spurious, and Missed collectively account for the majority of errors, with Spurious alone exceeding 30% in Sign and 45% in Symptom. This indicates that improvements in model performance may be more effectively achieved through post-processing heuristics, such as dictionary-based filtering to suppress unsupported outputs and head-noun alignment to correct span drift. From a deployment standpoint, these error profiles further motivate a human-in-the-loop use case, where extracted entities are treated as candidates requiring expert verification.
3.6 Performance-cost trade-off
Fig 3 illustrates the F1 scores achieved with zero- and few-shot learning as a function of the corresponding per-query cost. The asymptotic-exponential model provides a close fit to the observed points for rare disease, disease, and sign, as indicated by low RMSE and high pseudo- (S2 Table) and by residual plots showing no systematic patterns across cost (S1 Fig). Symptom remains non-monotonic, so we do not interpret plateau-based parameters for symptom. For rare disease, disease, and sign entities, the F1-cost relationship exhibits a smooth saturating trend, well-modeled by an asymptotic-exponential function. In contrast, the symptom entity displays pronounced non-monotonic behavior, for which a LOESS smoother is used. The confidence bands in Fig 3 also indicate wider uncertainty for symptom than for other entities, consistent with its small number of test mentions (Table 1). The estimated performance ceiling and the half-rise cost for the exponential fits are summarized in Table 7.
Table 7: Asymptotic performance and cost-efficiency metrics across four named entity types. For rare disease, disease, and sign, plateau and cost-efficiency metrics are derived from the fitted asymptotic-exponential model. c95 denotes the per-query cost required to reach 95% of the attainable gain relative to zero-shot.
Cost-performance curves for the four named entities.Each point corresponds to a k-shot prompt evaluated on the test set. Solid lines are entity-specific smoothers: an asymptotic-exponential fit for rare disease, disease and sign, as well as a LOESS smoother for symptom, whose non-monotonic pattern violates the exponential assumption. The color bands show the 95% confidence intervals of F1 scores constructed by bootstrap.
For rare disease recognition, F1 score increases from 0.702 at zero-shot (0.19¢) to 0.760 at (0.64¢), reaching 96% of the estimated ceiling. Beyond this point, each additional cent of inference cost contributes less than 0.003 F1 improvement, showing rapid saturation. For disease and sign, performance plateaues near F1 0.50, with half of the total gain achieved at a cost of approximately 0.10¢ ( ). However, an additional 0.9¢ is required to close the final 5% of the performance gap ( ). Past this threshold, marginal returns drop below 0.002 F1 per additional cent. For symptom recognition, the fitted LOESS curve fluctuates within 0.021 of the baseline F1 0.230 across the entire 0–2¢ cost range, revealing no meaningful benefit from increasing the number of learning examples. This result suggests that token budget is largely ineffective for improving model accuracy on this entity type.
Overall, a uniform budget cap of ~1¢ per query, equivalent to up to 8-shot prompting, is sufficient to capture ≥ 95% of the attainable performance for rare disease, disease, and sign entities. Beyond this threshold, further spending results in negligible gains. For symptoms, improvements are likely better achieved through alternative strategies, such as data augmentation, label refinement, or fine-tuning, rather than through prompt expansion.
4. Discussion
This study demonstrates that prompt-based LLMs can achieve competitive performance in rare disease NER without extensive task-specific training data. One key finding is the importance of prompt design and learning example selection. We observe that semantic selection of in-context examples consistently improves NER accuracy over random example selection. This is in line with recent reports that contextually relevant demonstrations boost medical NER performance [21]. Incorporating external knowledge via RAG yields modest average gains overall, consistent with GPT‑4o already possessing substantial biomedical knowledge. However, RAG can still be useful as a targeted recall booster for challenging entities such as signs and symptoms. This result diverges from the large improvements RAG has shown on knowledge-intensive QA tasks [20], indicating that for rare disease NER, the bottleneck is less about world knowledge but more about recognizing precise spans in context. Our analysis also highlights the cost-efficiency of the prompt-based approach. With only a handful of well-chosen examples, GPT-4o achieves strong results at a fraction of the total cost than collecting and curating a large expert-annotated corpus. In essence, prompt-based GPT-4o offers high returns for low investment, making it an attractive solution in low-resource NER scenarios [37].
Our NER pipeline represents a departure from traditional supervised approaches in biomedical NER. Historically, state-of-the-art results come from language models like BioBERT and BioClinicalBERT pretrained on general biomedical corpora, or earlier from statistical sequence taggers and LSTM-based models [38]. Recent studies begin to explore the potential of LLM in using prompt engineering. For instance, Agrawal et al*.* show that GPT-3 could perform few-shot clinical information extraction comparably to fully trained models [39]; Xi et al. apply GPT-based methods to Reddit posts to characterize patient-reported manifestations of sarcoidosis [40]. The significance of our findings is underscored by comparisons to earlier work on rare disease text mining, which are often bottlenecked by data scarcity [41]. We confirm these observations and demonstrate that a next-generation LLM can substantially close the performance gap with domain-trained models. Our work builds upon and goes beyond prior insights, showing that prompt-based LLMs can achieve near-parity with SOTA in low-resource rare disease NER.
The performance of GPT-4o in the few-shot learning context suggests that institutions can leverage a pretrained LLM to perform entity recognitions without large-scale data annotation. In settings where rapid deployment is valued over absolute peak performance, our prompt-based pipeline offers a compelling solution. LLM powered NER system can also be integrated into electronic health records to surface candidate rare disease mentions in physicians’ notes and support retrospective cohort screening, with expert verification before downstream clinical use. Another use case is biomedical knowledge curation, in which researchers could use GPT-4o to extract disease-phenotype associations from research papers or case reports. The system can also be easily repurposed for new subtasks by modifying the prompts, rather than retraining models. Because the NER logic resides in the prompt and model rather than custom code, deploying the system can be as simple as calling an API endpoint. This lowers the barrier for institutions that lack extensive machine learning infrastructure.
Our error taxonomy highlights that the dominant failure modes vary by entity type. In particular, spurious outputs remain substantial for sign and symptom, which in a clinical setting could translate into false alerts or unnecessary downstream review. Conversely, missed entities reduce sensitivity and may limit utility for automated cohort identification if used without safeguards, while boundary errors can impede normalization to controlled vocabularies and reduce interoperability with structured clinical systems. Taken together, these patterns indicate that the proposed pipeline is best positioned as a screening aid that surfaces candidate entities for expert confirmation, rather than as an autonomous diagnostic tool. In practice, the most appropriate workflow is that model outputs should be reviewed prior to any clinical interpretation.
The symptom results also highlight a broader limitation of prompt-only extraction for clinically nuanced categories. Prompt-based methods tend to overgenerate plausible clinical complaints, producing many false positives and depressing precision and F1. This is consistent with the high Spurious rate in Fig 2. At the same time, the strong symptom performance of supervised models of BioClinicalBERT and the substantial improvement under lightweight fine-tuning suggest that task specific supervision is important for learning the corpus specific symptom boundary, especially when the test set contains relatively few symptom mentions (Table 1).
From a practical standpoint, the symptom errors suggest several low cost mitigation strategies that directly target the dominant failure modes. First, because a substantial fraction of spurious symptom strings reflects sign/symptom boundary confusion (Section 3.5), prompts can be made more corpus-aware by explicitly restating the RareDis symptom definition and adding a small set of negative examples that are objective findings to discourage type swaps. Second, spurious symptom outputs can be reduced via lightweight post-processing, such as dictionary filtering to suppress unsupported generic complaints and a consistency check that removes or relabels symptom outputs that match a sign in the same document. Finally, missed symptoms may be addressed by providing more targeted in-context guidance for this nuanced category. It is helpful to retrieve short usage examples of symptom mentions rather than generic definitions or use a two-stage candidate generation plus verification prompt. These hybrid prompt and post-processing strategies provide a practical path to improving symptom extraction without requiring full model retraining.
Our study has several limitations that warrant discussion. First, prompting still lags behind specialized models in certain NER tasks. These gaps are consistent with recent evaluations showing that general purpose LLMs can underperform fine-tuned domain models on token-level clinical NER under strict boundary matching, even with prompt engineering or few-shot prompting [18,19,42,43]. For scenarios requiring strict annotation fidelity, post-processing or alignment is needed to refine the raw outputs of the LLM. The second limitation is the marginal benefit observed from RAG in our experiments. One possible reason is that GPT-4o already encodes a wealth of medical knowledge from its pretraining, and additional snippets contribute limited new information. It is also plausible that our retrieval method does not select sufficiently targeted context. More sophisticated retrieval, such as grabbing example sentences of the exact entity usage, might yield a greater benefit [21]. We outline a concrete implementation and evaluation plan as future work below. Finally, the reliance on API is a practical limitation. Using a closed-source model means that reproducibility and long-term deployment are not fully guaranteed. Sending sensitive patient data to an external API can also conflict with privacy regulations [44]. Therefore, deploying a similar system in a hospital setting would require robust de-identification solutions [45,46].
There are several avenues to extend current study. One direction is to combine the strengths of LLMs with rule-based systems. After generating candidate entities, a post-processing step could apply heuristic rules or dictionary matching to correct span boundaries and unify terminology [23]. Even simple alignment rules, such as ensuring the output exactly matches a known rare disease name, could substantially increase precision without requiring model retraining. Another promising avenue is self-consistency decoding, which generates multiple outputs for the same input and then taking a majority vote among the answers [47]. Similarly, incorporating chain-of-thought prompting may help the model internally reason about the text [48]. By guiding the model through intermediate reasoning steps, it is possible to resolve ambiguities and improve the recognition of difficult entities. Lastly, a hybrid strategy worth exploring is to fine-tune a model on synthetic annotations generated by the LLM. Recent work suggests that LLMs can create high-fidelity synthetic data for training downstream models [49]. To apply this strategy, GPT-4o could annotate a large collection of unlabeled clinical texts, possibly with iterative refinement or human review. A compact model fine-tuned on this corpus might then serve as a cost-effective and privacy-preserving solution that approaches SOTA.
A particularly promising direction is to make retrieval more targeted than the definition style snippets used in our current RAG setting. One practical approach is entity centric and sentence-level retrieval. We would index short sentences rather than whole documents from a reference corpus and attach lightweight metadata such as the entity type and the entity strings occurring in the sentence. At inference time, instead of retrieving generic descriptions, we would retrieve a small set of usage examples that (i) are semantically similar to the local context in the input text and (ii) contain the same or closely matched entity strings, so the retrieved evidence demonstrates how the entity appears in natural clinical language and how boundaries are annotated. These retrieved usage sentences could be injected into the prompt as concise demonstrations to reduce boundary errors and type confusions. For larger corpora, more computationally efficient subsampling methods could also be explored to select representative candidate demonstrations under a fixed token budget [50–52]. We would evaluate this targeted strategy via an ablation against our current RAG approach under a matched token budget, reporting performance deltas with bootstrap confidence intervals and examining shifts in the error taxonomy to identify which error modes are most affected.
Complementary to prompt centric directions, advances in supervised deep learning for sequential prediction remain relevant for biomedical NER. Traditional NER is commonly formulated as token-level sequence labeling, where performance can depend strongly on sequence modeling choices and training configuration. Recent work in imbalanced sequential settings shows that systematic hyperparameter optimization and targeted data augmentation can materially improve performance when minority class examples are scarce, and performance can be sensitive to training configuration and hyperparameter choices [53]. For example, Shukla et al. combine a temporal convolutional sequence model with GAN based minority class augmentation and automated hyperparameter optimization in an imbalanced setting [54]. Analogous approaches such as structured decoding for sequence labeling, automated hyperparameter searches for supervised baselines, and augmentation of rare entity mentions are promising complements to prompt based pipelines and may further mitigate the long-tail distribution challenges typical of rare disease corpora. In our setting, these imbalance-aware approaches would directly target low frequency entities such as symptoms and ultra rare disease mentions, where sparse supervision can lead to unstable performance and wider uncertainty.
In conclusion, our study shows that thoughtful prompt engineering and use of learning examples can serve as a powerful tool for rare disease NER. We have discussed how our findings both align with and extend prior knowledge, the practical trade-offs involved, and the limitations that temper the results. By addressing those limitations through the future directions outlined above, we anticipate that prompt-based LLM approaches will become even more accurate, interpretable, and integrated into real-world biomedical text mining pipelines.
Supporting information
S1 FigResidual diagnostics for asymptotic-exponential cost-performance models.(DOCX)
S1 TablePaired document-level bootstrap tests for RAG effects.(DOCX)
S2 TableGoodness-of-fit diagnostics for the asymptotic-exponential cost-performance models.(DOCX)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Lee CE, Singleton KS, Wallin M, Faundez V. Rare genetic diseases: nature’s experiments on human development. i Science. 2020;23(5):101123. doi: 10.1016/j.isci.2020.101123 32422592 PMC 7229282 · doi ↗ · pubmed ↗
- 2Segura-Bedmar I, Camino-Perdones D, Guerrero-Aspizua S. Exploring deep learning methods for recognizing rare diseases and their clinical manifestations from texts. BMC Bioinform. 2022;23(1):263. doi: 10.1186/s 12859-022-04810-y 35794528 PMC 9258216 · doi ↗ · pubmed ↗
- 3Shyr C, Hu Y, Bastarache L, Cheng A, Hamid R, Harris P, et al. Identifying and extracting rare diseases and their phenotypes with large language models. J Healthc Inform Res. 2024;8(2):438–61. doi: 10.1007/s 41666-023-00155-0 38681753 PMC 11052982 · doi ↗ · pubmed ↗
- 4Thukral A, Dhiman S, Meher R, Bedi P. Knowledge graph enrichment from clinical narratives using NLP, NER, and biomedical ontologies for healthcare applications. Int J Inf Tecnol. 2023;15(1):53–65. doi: 10.1007/s 41870-022-01145-y · doi ↗
- 5Durango MC, Torres-Silva EA, Orozco-Duque A. Named entity recognition in electronic health records: a methodological review. Healthc Inform Res. 2023;29(4):286–300. doi: 10.4258/hir.2023.29.4.286 37964451 PMC 10651400 · doi ↗ · pubmed ↗
- 6Cao L, Sun J, Cross A. An automatic and end-to-end system for rare disease knowledge graph construction based on ontology-enhanced large language models: development study. JMIR Med Inform. 2024;12:e 60665. doi: 10.2196/60665 39693482 PMC 11683654 · doi ↗ · pubmed ↗
- 7Xi NM, Wang L, Yang C. Improving the diagnosis of thyroid cancer by machine learning and clinical data. Sci Rep. 2022;12(1):11143. doi: 10.1038/s 41598-022-15342-z 35778428 PMC 9249901 · doi ↗ · pubmed ↗
- 8Guo M, Ma Y, Eworuke E, Khashei M, Song J, Zhao Y, et al. Identifying COVID-19 cases and extracting patient reported symptoms from Reddit using natural language processing. Sci Rep. 2023;13(1):13721. doi: 10.1038/s 41598-023-39986-7 37607963 PMC 10444846 · doi ↗ · pubmed ↗
