Clinical named entity recognition in the Portuguese language: a benchmark of modern BERT models and LLMs

Vinicius Anjos de Almeida, Sandro Saorin da Silva, Josimar Chire, Leonardo Vicenzi, Nícolas Henrique Borges +6 more
3/27/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Clinical notes contain valuable unstructured information. Named entity recognition (NER) enables the automatic extraction of medical concepts; however, benchmarks for Portuguese remain scarce. In this study, we aimed to evaluate BERT-based models and large language models (LLMs) for clinical NER in Portuguese and to test strategies for addressing multilabel imbalance. We compared BioBERTpt, BERTimbau, ModernBERT, and mmBERT with LLMs such as GPT-5 and Gemini-2.5, using the public SemClinBr corpus and a private breast cancer dataset. Models were trained under identical conditions and evaluated using precision, recall, and F1-score. Iterative stratification, weighted loss, and oversampling were explored to mitigate class imbalance. The mmBERT-base model achieved the best performance (micro F1 = 0.76), outperforming all other models. Iterative stratification improved class balance and overall performance. Multilingual BERT models, particularly mmBERT, perform strongly for Portuguese clinical NER and can run locally with limited computational resources. Balanced data-splitting strategies further enhance performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{almeida2026clinical,
  title  = {Clinical named entity recognition in the Portuguese language: a benchmark of modern BERT models and LLMs},
  author = {Vinicius Anjos de Almeida and Sandro Saorin da Silva and Josimar Chire and Leonardo Vicenzi and Nícolas Henrique Borges and Helena Kociolek and Sarah Miriã de Castro Rocha and Frederico Nassif Gomes and Júlia Cristina Ferreira and Oge Marques and Lucas Emanuel Silva e Oliveira},
  year   = {2026},
  eprint = {2603.26510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.26510v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.26510.svg)](https://codeofpaper.com/paper/2603.26510)

Discussion