A framework for extraction of clinical information from radiological mammography reports using large language models and retrieval augmented generation

Extracting structured information from free-text radiology reports is essential for downstream clinical analysis and decision support. In mammography, this challenge is amplified by heterogeneous writing styles, the absence of standardized terminology across institutions, and limited availability of annotated Spanish datasets. Large language models (LLMs) offer a compelling alternative by enabling few-shot generalization without task-specific fine-tuning. We propose a structured Retrieval-Augmented Generation (RAG) framework that leverages annotated mammography reports as in-context demonstrations, enabling joint named entity and relation extraction without task-specific fine-tuning. The framework is evaluated on Spanish BI-RADS–style mammography reports and achieves performance comparable to fine-tuned BETO models in low-resource settings, while significantly reducing training and deployment overhead. In NER, GPT-based few-shot models achieved competitive performance (0.89–0.94 F $$_1$$ ) relative to the fine-tuned BETO baseline (0.97 F $$_1$$ ), despite requiring no task-specific training. In RE, LLMs showed moderate performance (up to 0.78 F $$_1$$ ), remaining below the supervised BETO model (0.99 F $$_1$$ ), reflecting the greater sensitivity of RE to boundary errors and cross-sentence context. Inference costs were low (fractions of a cent per report) and latency remained within seconds, enabling practical deployment scenarios. Local open-weight models preserved privacy and runtime efficiency but exhibited substantially lower accuracy. Few-shot RAG combined with modern LLMs provides a viable, data-efficient alternative for structuring Spanish mammography reports, particularly in low-resource or rapid-deployment settings. While fine-tuned encoders remain preferable for high-accuracy RE, the proposed framework offers a practical balance between performance, operational cost, and accessibility. A remaining limitation is the need for an initial annotated subset to populate the RAG store; future work will explore weak supervision, multimodal extensions, and cross-site generalization.

Authors

Institutions

Publication Details

Journal
BMC Medical Informatics and Decision Making
Published
2026-09-10
DOI
https://doi.org/10.1186/s12911-026-03633-8
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

A framework for extraction of clinical information from radiological mammography reports using large language models and retrieval augmented generation

Diego Mellado, Stéren Chabert, Rodrigo Salas, Eduardo Godoy et al.
BMC Medical Informatics and Decision Making
Topic Modeling
article

A framework for extraction of clinical information from radiological mammography reports using large language models and retrieval augmented generation

Diego Mellado, Stéren Chabert, Rodrigo Salas, Eduardo Godoy, Sofia Lazo, Catalina Pacheco, Joaquín de Ferrari, Alex Saez
article en

Abstract

Extracting structured information from free-text radiology reports is essential for downstream clinical analysis and decision support. In mammography, this challenge is amplified by heterogeneous writing styles, the absence of standardized terminology across institutions, and limited availability of annotated Spanish datasets. Large language models (LLMs) offer a compelling alternative by enabling few-shot generalization without task-specific fine-tuning. We propose a structured Retrieval-Augmented Generation (RAG) framework that leverages annotated mammography reports as in-context demonstrations, enabling joint named entity and relation extraction without task-specific fine-tuning. The framework is evaluated on Spanish BI-RADS–style mammography reports and achieves performance comparable to fine-tuned BETO models in low-resource settings, while significantly reducing training and deployment overhead. In NER, GPT-based few-shot models achieved competitive performance (0.89–0.94 F $$_1$$ ) relative to the fine-tuned BETO baseline (0.97 F $$_1$$ ), despite requiring no task-specific training. In RE, LLMs showed moderate performance (up to 0.78 F $$_1$$ ), remaining below the supervised BETO model (0.99 F $$_1$$ ), reflecting the greater sensitivity of RE to boundary errors and cross-sentence context. Inference costs were low (fractions of a cent per report) and latency remained within seconds, enabling practical deployment scenarios. Local open-weight models preserved privacy and runtime efficiency but exhibited substantially lower accuracy. Few-shot RAG combined with modern LLMs provides a viable, data-efficient alternative for structuring Spanish mammography reports, particularly in low-resource or rapid-deployment settings. While fine-tuned encoders remain preferable for high-accuracy RE, the proposed framework offers a practical balance between performance, operational cost, and accessibility. A remaining limitation is the need for an initial annotated subset to populate the RAG store; future work will explore weak supervision, multimodal extensions, and cross-site generalization.

BMC Medical Informatics and Decision MakingVol. 26(1)
Pontificia Universidad Católica de Chile (CL), BioClinica (United States) (US), Millennium Institute for Integrative Biology (CL), Federico Santa María Technical University (CL), University of Valparaíso (CL)
Openalex Percentile: Top 8%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.