Benchmarking large language models for clinical data extraction from Portuguese medical notes in a university hospital.
Breno Gabriel Araújo Sampaio de Jesus, Tomaz Castrillon Figueiredo, Clariele de Almeida Pereira, Bruno Henrique Lira Anjos, Ney Cristian Amaral Boa-Sorte, André Rodrigues Durães, Carlos Brites, Eduardo Martins Netto,
Hospital Universitário Professor Edgard Santos, Universidade Federal da Bahia, Salvador, Brasil. · Nuclearis, Recife, Brasil.
Key points
From the paper's conclusion- These findings support the feasibility of applying LLM-based natural language processing tools in resource-limited, non-English healthcare settings.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Domain-specific versus general large language models: a review and empirical benchmark in real medical texts.Scientific reports · 2026
- Large Language Models for Information Extraction from Neurosurgical Clinical Notes: A Benchmark Against Human AuditorsMachine Learning and Knowledge Extraction · 2026
- Large language models are powerful electronic health record encodersnpj Digital Medicine · 2026
- Automating clinical information retrieval from Finnish electronic health records using large language modelsnpj Digital Medicine · 2026
- Linguistic inequity in clinical AI evaluation: a scoping review of 806 studies across 62 languagesCommunications Health · 2026
- ClinicRealm: Re-evaluating large language models with conventional machine learning for non-generative clinical prediction tasksnpj Digital Medicine · 2026