Skip to main content

ETHNOS_APP

Home • Search • Journals • List 0

Benchmarking large language models for clinical data extraction from Portuguese medical notes in a university hospital

Bibliographic Data

ID23309095
AuthorsBreno Gabriel Araújo Sampaio de Jesus (0009-0000-7643-1753, Universidade Federal da Bahia), Tomaz Castrillon Figueiredo (0009-0002-0425-0114, Universidade Federal da Bahia), Tomaz Castrillon de Figueiredo (Universidade Federal da Bahia), Clariele de Almeida Pereira (0009-0002-7887-8334, Universidade Federal da Bahia), Bruno Henrique Lira Anjos (0000-0002-2489-5596, Complexo Hospitalar Universitário Professor Edgard Santos), Ney Boa-Sorte (0000-0001-7068-3319, Universidade Federal da Bahia), Andre Rodrigues Duraes (0000-0002-1506-0327, Universidade Federal da Bahia), Carlos Brites (0000-0002-4673-6991, Universidade Federal da Bahia), Eduardo Martins Netto (0000-0003-1691-6761, Universidade Federal da Bahia), Leandro Maciel Almeida (0000-0001-8025-0517, Universidade Federal de Pernambuco), Cleber Zanchettin (0000-0001-6421-9747, Universidade Federal de Pernambuco), Vinícius de Oliveira Menezes (0000-0001-7360-2078, Universidade Federal de Pernambuco), Marcos Antônio Dórea Machado (0000-0002-0106-9769, Universidade Federal da Bahia)
Year2026
Volume42
Pagese00145025-e00145025
Publication date2026-01-01
Open AccessYes
TypeARTICLE
VenueCadernos de Saude Publica (JOURNAL)
Journal identifiersISSN: 0102-311X • E-ISSN: 1678-4464
PublisherFapUNIFESP (SciELO) (PUBLISHER)
DOI10.1590/0102-311xen145025
PMID42561294
OpenAlexW4411549816
SciELOS0102-311X2026000105076
LanguageEN
References cited12

Extracting structured data from electronic health records (EHRs) remains a major challenge, particularly in non-English and resource-constrained healthcare systems. This study benchmarks multiple large language models (LLMs) for the automated extraction of structured clinical variables from Portuguese-language medical notes under limited computational resources. We evaluated five LLMs (GPT-4o mini, DeepSeek-V3, Mixtral-8x7B, LLaMA 8B, and Qwen-32B) against a manually curated dataset of cardiology and infectiology outpatient records. Models were deployed in quantized versions to optimize computational efficiency. Outputs were compared with human annotations using F1 score, balanced accuracy, and recall. Among the tested models, Qwen-32B achieved the highest performance in both the infectiology domain (balanced accuracy = 0.91 [0.07]) and cardiology domain (balanced accuracy = 0.89 [0.07]). Performance varied by clinical variable, with better results for frequently and consistently documented conditions (e.g., diabetes) and lower accuracy for complex or infrequent variables (e.g., tumors). Extraction time ranged from 0.9 to 24.2 minutes per patient, depending on clinical domain and model. These findings support the feasibility of applying LLM-based natural language processing tools in resource-limited, non-English healthcare settings. Future research should assess emerging high-parameter models and explore additional clinical domains.

Benchmarking · Economics · Linguistics · Management · Natural language processing · Portuguese · Biomedical Text Mining and Ontologies · Computer Science · Natural Language Processing Techniques · Philosophy · Topic Modeling

  • ChatGPT Utility in Healthcare Education, Research, and Practice

    Open Access•Malik Sallam•Healthcare•2023

  • A guide to deep learning in healthcare

    Open Access•Andre Esteva, Alexandre Robicquet et al.•Nature Medicine•2019

  • Large language models in medicine

    Open Access•Arun James Thirunavukarasu, Darren Shu Jeng Ting et al.•Nature Medicine•2023

Highly citedNo

Tools

Open DOIOpen Access
Ethnos_APP • Open Source Project • MIT License • Frontend v2.0.0 • Privacy and Cookies • API Documentation: api.ethnos.app/docs • API Source Code: GitHub • DOI: 10.5281/zenodo.17049435 • Frontend Source Code: GitHub • DOI: 10.5281/zenodo.17050053 • cruz.rio.br • Expectantes Misericordiae