Cited by 314Topic ModelingBiomedical Text Mining and OntologiesMachine Learning in Healthcare

Improving large language models for clinical named entity recognition via prompt engineering

Open access
Hu, Yan, Chen, Qingyu, Du, Jingcheng, Peng, Xueqing, Keloth, Vipina Kuttichi, Zuo, Xu, Zhou, Yujia, Li, Zehan +4 more·2024·Journal of the American Medical Informatics Association

Abstract

IMPORTANCE: The study highlights the potential of large language models, specifically GPT-3.5 and GPT-4, in processing complex clinical data and extracting meaningful information with minimal training data. By developing and refining prompt-based strategies, we can significantly enhance the models' performance, making them viable tools for clinical NER tasks and possibly reducing the reliance on extensive annotated datasets. OBJECTIVES: This study quantifies the capabilities of GPT-3.5 and GPT-4 for clinical named entity recognition (NER) tasks and proposes task-specific prompts to improve their performance. MATERIALS AND METHODS: We evaluated these models on 2 clinical NER tasks: (1) to extract medical problems, treatments, and tests from clinical notes in the MTSamples corpus, following the 2010 i2b2 concept extraction shared task, and (2) to identify nervous system disorder-related adverse events from safety reports in the vaccine adverse event reporting system (VAERS). To improve the GPT models' performance, we developed a clinical task-specific prompt framework that includes (1) baseline prompts with task description and format specification, (2) annotation guideline-based prompts, (3) error analysis-based instructions, and (4) annotated samples for few-shot learning. We assessed each prompt's effectiveness and compared the models to BioClinicalBERT. RESULTS: Using baseline prompts, GPT-3.5 and GPT-4 achieved relaxed F1 scores of 0.634, 0.804 for MTSamples and 0.301, 0.593 for VAERS. Additional prompt components consistently improved model performance. When all 4 components were used, GPT-3.5 and GPT-4 achieved relaxed F1 socres of 0.794, 0.861 for MTSamples and 0.676, 0.736 for VAERS, demonstrating the effectiveness of our prompt framework. Although these results trail BioClinicalBERT (F1 of 0.901 for the MTSamples dataset and 0.802 for the VAERS), it is very promising considering few training samples are needed. DISCUSSION: The study's findings suggest a promising direction in leveraging LLMs for clinical NER tasks. However, while the performance of GPT models improved with task-specific prompts, there's a need for further development and refinement. LLMs like GPT-4 show potential in achieving close performance to state-of-the-art models like BioClinicalBERT, but they still require careful prompt engineering and understanding of task-specific knowledge. The study also underscores the importance of evaluation schemas that accurately reflect the capabilities and performance of LLMs in clinical settings. CONCLUSION: While direct application of GPT models to clinical NER tasks falls short of optimal performance, our task-specific prompt framework, incorporating medical knowledge and training samples, significantly enhances GPT models' feasibility for potential clinical applications.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/jamia/ocad259

Cites

35 of 35 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Our extensive prior work comparing zero/few-shot and fine-tuned LLaMA models have demonstrated the superior performance of fine-tuned models.

    “Our extensive prior work comparing zero/few-shot and fine-tuned LLaMA models have demonstrated the superior performance of fine-tuned models51–54.”

    From Social determinants of health extraction from clinical notes across institutions using large language models (2025) · cites this paper as [53]

    The Results section reports that fine-tuned BioClinicalBERT outperformed few-shot GPT models on two clinical NER datasets, supporting the general performance comparison. But the Discussion says the study was limited to GPT models and identifies LLaMA as future work; it does not demonstrate superior performance for fine-tuned LLaMA models. Page numbers are unavailable in our copy. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • LLMs show significant potential in health informatics tasks such as name entity extraction, patient trial matching, biomedical reasoning and classification, prediction of admissions, and automation of administrative tasks.

    “LLMs show significant potential in health informatics, including tasks such as name entity extraction [11], patient trial matching [1213], biomedical reasoning and classification [14], prediction of admissions [15], automation of administrative tasks [16], and so forth.”
  • Recent advances in large language models present an opportunity to streamline the informed consent form creation process while improving readability, understandability, and actionability.

    “The recent advances in large language models (LLMs) present an opportunity to streamline the ICF creation process while improving readability, understandability, and actionability.”

    From Transforming Informed Consent Generation Using Large Language Models: Mixed Methods Study (2025) · cites this paper as [11]

    The Introduction and Discussion address using LLMs to streamline clinical named entity recognition, not informed consent form creation. Searches for informed consent forms and patient-facing document writing found no passage addressing ICF creation or improvements in readability, understandability, or actionability. (LLM, conf=0.75)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 5

  1. [5]Huang Z, Xu W, Yu K. Bidirectional LSTM-CRF models for sequence tagging. arXiv, arXiv:1508.01991, 2015, preprint: not peer reviewed. · arXiv
  2. [13]Brown T, Mann B, Ryder N, et al Language models are few-shot learners. Adv Neural Inform Process Syst. 2020; 33: 1877- 1901.
  3. [21]Chen Q, Du J, Hu Y, et al Large language models in biomedical natural language processing: benchmarks, baselines, and recommendations. arXiv, arXiv:2305.16326, 2023, preprint: not peer reviewed. · arXiv
  4. [25]Yu F, Quartey L, Schilder F. Exploring the effectiveness of prompt engineering for legal reasoning tasks. In: Findings of the Association for Computational Linguistics: ACL 2023; 2023.
  5. [33]Wolf T, Debut L, Sanh V, et al. Transformers: state-of-the-art natural language processing. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations; 2020.

Cited by

Sorted by citations

Authors
Hu, Y., Chen, Q., Du, J., Peng, X., Keloth, V. K., Zuo, X., Zhou, Y., Li, Z., Jiang, X., Lu, Z., Roberts, K., & Xu, H.
Affiliations
  • McWilliams School of Biomedical Informatics , Houston, TX, United States
  • National Institutes of Health (US)
  • Yale University (US)
Corresponding author
Xu, Hua
Venue
Journal of the American Medical Informatics Association
Published
2024-01-27
Volume
31
Issue
9
Pages
1812-1820
ISSN
  • 1067-5027 (ISSN-L)
  • 1527-974X
OpenAlex
W4391292768
Cited by
314
References
35
Citations by year
2026: 89 · 2025: 150 · 2024: 75
FWCI
29.60
Type
journal article
Language
en
Open access
Locations
  • Journal of the American Medical Informatics Association (publishedVersion, cc-by)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • Digital Commons-TMC (Texas Medical Center) (submittedVersion)
  • PubMed Central (submittedVersion)
Funders
  • National Institutes of Health (R21EB029575, R21AI164100, R01LM011934, 1K99LM01402, R01AG066749, R01AG066749-03S1, R01LM013712, U01TR002062)
  • National Institute on Aging (1RF1AG072799, 1R01AG080429)
  • Cancer Prevention and Research Institute of Texas (RR180012)
  • National Science Foundation (2124789)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Biomedical Text Mining and Ontologies
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
Keywords
medical named entity recognition, prompt engineering, large language models, GPT-3.5, GPT-4, clinical notes, adverse event reporting, VAERS, few-shot learning, annotation guidelines, error analysis, BioClinicalBERT, neurological disorders, safety reports
MeSH terms
Humans, Natural Language Processing, Data Mining, Electronic Health Records

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review