Journal article · 2026 · Open access

Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese

Mauricio Schiezaro, Guilherme Moraes Rosa, Bruno Augusto Goulart Campos, Hélio Pedrini

Frontiers in Public Health, 13, 1717303 · Published 5 January 2026 · DOI 10.3389/fpubh.2025.1717303

Open PDFView at the publisherCite this paper

In brief

“Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese” is a 2026 journal article by Mauricio Schiezaro and 3 co-authors, published in Frontiers in Public Health. OpenAlex counts 7 citations as of 19 November 2026, which puts it in the top 2% of works published in 2026 by citations. It is open access under a CC BY licence: the full text is free to read at Frontiers in Public Health.

Citations
7
Most cited in
2026 (7)
Field-weighted impact
7.51
References
51
Authors
4

Abstract

Introduction The anonymization of medical records is essential to protect patient privacy while enabling the use of clinical data for research and Natural Language Processing (NLP) applications. However, for Brazilian Portuguese, the lack of publicly available and high-quality anonymized datasets limits progress in this area. Methods In this study, we present AnonyMed-BR , a novel dataset of Brazilian medical records that includes both real and synthetic samples, manually annotated to identify personally identifiable information (PII) such as names, dates, locations, and healthcare identifiers. To benchmark our dataset and assess anonymization performance, we evaluate two anonymization strategies: (i) an extractive strategy based on Named Entity Recognition (NER) using BERT-based models, and (ii) a generative strategy using T5-based and GPT-based models to rewrite texts while masking sensitive entities. We conduct a comprehensive series of experiments to evaluate and compare anonymization strategies. Specifically, we assess the impact of incorporating synthetic generated records on model performance by contrasting models fine-tuned solely on real data with those fine-tuned on synthetic samples. We also investigate whether pre-training on biomedical corpora or task-specific fine-tuning more effectively improves performance in the anonymization task. Finally, to support robust evaluation, we introduce an LLM-as-a-Judge framework that leverages a reasoning Large Language Model (LLM) to score anonymization quality, estimate information loss, and assess reidentification risk. Model performance was primarily evaluated using the F1 score on a held-out test set. Results All evaluated models achieved good performance in the anonymization task, with the best models reaching F1 scores above 0.90. Both extractive and generative approaches were effective in identifying and masking sensitive entities while preserving the clinical meaning of the texts. Experiments also revealed that including synthetic data improved model generalization, and that task-specific fine-tuning yielded greater performance gains than pre-training the model on biomedical domain. Discussion and conclusion To the best of our knowledge, AnonyMed-BR is the first manually annotated anonymization dataset for Brazilian Portuguese medical texts, enabling systematic evaluation of both extractive and generative models. The dataset and methodology establish a foundation for privacy-preserving NLP research in the Brazilian healthcare context and the good performance achieved by all models demonstrates the feasibility of developing reliable anonymization systems for Brazilian clinical data. Importantly, the ability to anonymize sensitive information opens opportunities to create new datasets and train models for a variety of downstream tasks in the medical domain, such as clinical outcome prediction, medical entity recognition, diagnostic support, and patient stratification, fostering the growth of NLP research for Brazilian Portuguese healthcare texts. Motivated by our findings, future work includes a deeper…

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Schiezaro, M., Rosa, G. M., Campos, B. A. G., & Pedrini, H. (2026). Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese. Frontiers in Public Health, 13, 1717303. https://doi.org/10.3389/fpubh.2025.1717303

MLA 9

Schiezaro, Mauricio, et al. “Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese.” Frontiers in Public Health, vol. 13, 2026, p. 1717303. https://doi.org/10.3389/fpubh.2025.1717303.

Chicago

Schiezaro, Mauricio, Guilherme Moraes Rosa, Bruno Augusto Goulart Campos, and Hélio Pedrini. 2026. “Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese.” Frontiers in Public Health 13: 1717303. https://doi.org/10.3389/fpubh.2025.1717303.

Harvard

Schiezaro, M. et al. (2026) ‘Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese’, Frontiers in Public Health, 13, p. 1717303. doi:10.3389/fpubh.2025.1717303.

IEEE

M. Schiezaro, G. M. Rosa, B. A. G. Campos, and H. Pedrini, “Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese,” Frontiers in Public Health, vol. 13, p. 1717303, 2026, doi: 10.3389/fpubh.2025.1717303.

BibTeX

@article{schiezaro2026guardians,
  title     = {{Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese}},
  author    = {Schiezaro, Mauricio and Rosa, Guilherme Moraes and Campos, Bruno Augusto Goulart and Pedrini, Hélio},
  journal   = {Frontiers in Public Health},
  year      = {2026},
  volume    = {13},
  pages     = {1717303},
  doi       = {10.3389/fpubh.2025.1717303},
  url       = {https://doi.org/10.3389/fpubh.2025.1717303}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data

  • Brazilian Portuguese
  • named entity recognition
  • large language models
  • synthetic data
  • personally identifiable information
  • re-identification risk
  • LLM-as-a-judge
  • clinical data privacy

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Schiezaro, M., Rosa, G. M., Campos, B. A. G., & Pedrini, H. (2026). Guardians of the data: NER and LLMs for effective medical record anonymization in Brazilian Portuguese. Frontiers in Public Health, 13, 1717303. https://doi.org/10.3389/fpubh.2025.1717303

How many times has this paper been cited?

7 times, according to OpenAlex on 19 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at Frontiers in Public Health: sign in and open the PDF from this page.

Who wrote this paper?

Mauricio Schiezaro, Guilherme Moraes Rosa, Bruno Augusto Goulart Campos, Hélio Pedrini.

What is the DOI of this paper?

10.3389/fpubh.2025.1717303, permanently at https://doi.org/10.3389/fpubh.2025.1717303. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 19 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.