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
- Diego Mellado (ORCID: https://orcid.org/0000-0001-8078-253X)
- Stéren Chabert (ORCID: https://orcid.org/0000-0002-2890-5077)
- Rodrigo Salas (ORCID: https://orcid.org/0000-0002-0350-6811)
- Eduardo Godoy (ORCID: https://orcid.org/0009-0009-6775-7941)
- Sofia Lazo
- Catalina Pacheco
- Joaquín de Ferrari
- Alex Saez
Institutions
- 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)
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