Evidence map›Paper›PMID 40460022›Full record

ArticleJournal of the American Medical Informatics Association : JAMIA2025

Dynamic few-shot prompting for clinical note section classification using lightweight, open-source large language models.

Kurt Miller, Steven Bedrick, Qiuhao Lu, Andrew Wen, William Hersh, Kirk Roberts, Hongfang Liu

Abstract read
In one paragraph

Article in Journal of the American Medical Informatics Association : JAMIA, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 3 papers.

0numbers the graph read from it
0cells of the map it votes in
3citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

3 citing papers in PubMed.

  1. Article
  2. Article
  3. Article
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

7 authors.

Kurt MillerBioinformatics and Computational Biology Program, University of Minnesota, Rochester, MN, United States.
Steven BedrickDepartment of Medical Informatics & Clinical Epidemiology, Oregon Health and Science University, Portland, OR, United States.
Qiuhao LuMcWilliams School of Biomedical Informatics, University of Texas Health Science Center at Houston, Houston, TX, United States.
Andrew WenMcWilliams School of Biomedical Informatics, University of Texas Health Science Center at Houston, Houston, TX, United States.
William HershDepartment of Medical Informatics & Clinical Epidemiology, Oregon Health and Science University, Portland, OR, United States.ORCID 0000-0002-4114-5148
Kirk RobertsMcWilliams School of Biomedical Informatics, University of Texas Health Science Center at Houston, Houston, TX, United States.
Hongfang LiuMcWilliams School of Biomedical Informatics, University of Texas Health Science Center at Houston, Houston, TX, United States.ORCID 0000-0003-2570-3741

Funding

Semi-structured Information Retrieval in Clinical Text for Cohort IdentificationR01LM011934 · NLM · UNIVERSITY OF TEXAS HLTH SCI CTR HOUSTON · PI HERSH, WILLIAM R, LIU, HONGFANG · 2014 to 2025
$5.1M
NIH HHS R01LM011934NLM NIH HHS R01 LM011934
6 · The paper itself

Abstract

objectiveUnlocking clinical information embedded in clinical notes has been hindered to a significant degree by domain-specific and context-sensitive language. Identification of note sections and structural document elements has been shown to improve information extraction and dependent downstream clinical natural language processing (NLP) tasks and applications. This study investigates the viability of a dynamic example selection prompting method to section classification using lightweight, open-source large language models (LLMs) as a practical solution for real-world healthcare clinical NLP systems. MATERIALS AND

methodsWe develop a dynamic few-shot prompting approach to classifying sections where section samples are first embedded using a transformer-based model and deposited in a vector store. During inference, the embedded samples with the most similar contextual embeddings to a given input section text are retrieved from the vector store and inserted into the LLM prompt. We evaluate this technique on two datasets comprising two section schemas, including varying levels of context. We compare the performance to baseline zero-shot and randomly selected few-shot scenarios.

resultsThe dynamic few-shot prompting experiments yielded the highest F1 scores in each of the classification tasks and datasets for all seven of the LLMs included in the evaluation, averaging a macro F1 increase of 39.3% and 21.1% in our primary section classification task over the zero-shot and static few-shot baselines, respectively. DISCUSSION AND

conclusionOur results showcase substantial performance improvements imparted by dynamically selecting examples for few-shot LLM prompting, and further improvement by including section context, demonstrating compelling potential for clinical applications.

Indexed as

Electronic Health RecordsInformation Storage and RetrievalNatural Language ProcessingHumansLarge Language Modelsclinical natural language processingelectronic health recordslarge language modelsection classification

Identifiers

PMID40460022
PMCPMC12203503

What OpenQuestion holds

Textmetadata
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.