Skip to main content

De-identifying Free-Text Clinical Notes in Rioplatense Spanish in a Resource-Constrained Setting (Congreso I+I+I, Hospital Italiano 2026)

Author

María Nanton

Published

October 19, 2026

Together with Alejandro Domazet and Sabrina Laura López, I gave the talk “Experiencia de anonimización de texto libre de consultas de salud en español rioplatense en entorno de recursos limitados” at the Congreso de Informática, Innovación e Investigación of the Hospital Italiano de Buenos Aires. It is a follow-up to the poster we presented at SALA 2026, this time focused on the lessons learned along the way.

The work is developed at the Gerencia Operativa de Gestión de Información y Estadísticas de Salud, Ministerio de Salud, Ciudad Autónoma de Buenos Aires. SIGEHOS, the information system used by the City’s public healthcare providers, receives around 50,000 free-text progress notes per day and holds more than 55 million historical ones. These notes are a rich clinical source for secondary use, but they often contain personal data about the patient or the people around them: names, ID numbers, dates of birth, phone numbers, addresses.

De-identification is a NER problem, and clinical text in Rioplatense Spanish makes it a hard one: heavy use of abbreviations (csv is “control de signos vitales”, not a file), ambiguity (Dolores can be a person or a symptom), eponyms that look like surnames (Chagas, Glasgow, Parkinson), and little Spanish-language data to train on. On top of that, the model has to run where the data lives, and that infrastructure is CPU-only: a VM with 12 vCPUs and 64 GB of RAM.

For the first annotation process, five annotators labeled 5,000 progress notes in Doccano, following an annotation manual with a change log. We went through an induction phase, an inter-annotator agreement phase, and three rounds of full annotation with overlap and monitoring. Fleiss’ kappa went from 0.90 to 0.99.

We tried five NER models and looked at both NER performance and inference time. We then went deeper with two: BETO, a BERT-like transformer pre-trained on general Spanish, and a lightweight spaCy tok2vec pipeline, which is about 30 times faster per record. Both are combined with a customized version of Scrubadub, an open source rule-based library for which we wrote detectors for local identifiers (DNI, CUIT/CUIL, health record number, professional license, phone). Rules handle what has a fixed format, and the model handles what depends on context.

As of September, the BETO ensemble reached a micro F1 of 83.9% and the spaCy ensemble 79.2%. The errors we still see are mostly long entities such as addresses and organizations that get only partially masked, names missed when they are not capitalized, and numeric identifiers split between two labels.

We closed with what we learned and what a project like this requires:

The technical team also includes Max Wolf, Milagro Teruel and Ignacio Gamez, and the wider de-identification team includes Cecilia Palermo, Sofía Anastasía, Juliana Reves Szemere, Ariana Bardauil and Camila Ebensrtejin.