DisMed-LLM: De-Identifying Spanish Medical Text with Large Language Models

Abstract Patient privacy and compliance with regulations such as the General Data Protection Regulation (GDPR) necessitate the robust de-identification of clinical texts. This study investigates the feasibility, computational cost, and limitations of de-identifying Spanish medical records using training-free Large Language Models (LLMs) compared to a supervised baseline. We evaluated five instruction-tuned LLMs on two Spanish clinical corpora (DisMed and MEDDOCAN) and benchmarked them against a fine-tuned multilingual BERT (110M parameters). On a held-out test set, the supervised baseline achieved a strict F1 of 0.904, outperforming the best training-free LLM (Gemma-2 9B, 0.796) while operating roughly 800 times faster. The LLMs’ performance gap was driven entirely by recall and concentrated in categories defined by corpus-specific conventions (e.g., institutions and locations) rather than universal surface forms (names and dates). Testing a newer model (Qwen3-8B) did not resolve this gap, indicating the limitation stems from annotation guidelines rather than model scale. However, when target-corpus annotations were unavailable, the dynamic reversed: in cross-corpus transfer, the supervised model’s F1 collapsed to 0.490, falling below all prompted LLMs, because it rigidly applied the source corpus’s conventions. Finally, novel disclosure metrics revealed that while LLM boundary errors are marginal (0.67%), they miss 26.7% of protected mentions entirely. We conclude that training-free LLMs are a highly adaptable, viable first-pass instrument for institutions lacking annotated data, but their residual disclosure rates mandate human review prior to data release.

Authors

Institutions

Publication Details

Journal
Journal of Healthcare Informatics Research
Published
2026-10-07
DOI
https://doi.org/10.1007/s41666-026-00256-6
Primary Topic
Privacy-Preserving Technologies in Data
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DisMed-LLM: De-Identifying Spanish Medical Text with Large Language Models

Jose Manuel Saborit-Torres, Joshua Bernal-Salcedo, Jesús Alejandro Alzate-Grisales, Francisco García‐García et al.
Journal of Healthcare Informatics Research
Privacy-Preserving Technologies in Data
article

DisMed-LLM: De-Identifying Spanish Medical Text with Large Language Models

Jose Manuel Saborit-Torres, Joshua Bernal-Salcedo, Jesús Alejandro Alzate-Grisales, Francisco García‐García, Reinel Tabares-Soto, Mariola Penadés Fons, María de la Iglesia-Vayá, Joaquim Montell Serrano
article en

Abstract

Abstract Patient privacy and compliance with regulations such as the General Data Protection Regulation (GDPR) necessitate the robust de-identification of clinical texts. This study investigates the feasibility, computational cost, and limitations of de-identifying Spanish medical records using training-free Large Language Models (LLMs) compared to a supervised baseline. We evaluated five instruction-tuned LLMs on two Spanish clinical corpora (DisMed and MEDDOCAN) and benchmarked them against a fine-tuned multilingual BERT (110M parameters). On a held-out test set, the supervised baseline achieved a strict F1 of 0.904, outperforming the best training-free LLM (Gemma-2 9B, 0.796) while operating roughly 800 times faster. The LLMs’ performance gap was driven entirely by recall and concentrated in categories defined by corpus-specific conventions (e.g., institutions and locations) rather than universal surface forms (names and dates). Testing a newer model (Qwen3-8B) did not resolve this gap, indicating the limitation stems from annotation guidelines rather than model scale. However, when target-corpus annotations were unavailable, the dynamic reversed: in cross-corpus transfer, the supervised model’s F1 collapsed to 0.490, falling below all prompted LLMs, because it rigidly applied the source corpus’s conventions. Finally, novel disclosure metrics revealed that while LLM boundary errors are marginal (0.67%), they miss 26.7% of protected mentions entirely. We conclude that training-free LLMs are a highly adaptable, viable first-pass instrument for institutions lacking annotated data, but their residual disclosure rates mandate human review prior to data release.

Journal of Healthcare Informatics Research
University of Caldas (CO), Generalitat Valenciana (ES), Universidad Autonoma de Manizales (CO), Conselleria de Sanitat Universal i Salut Pública (ES), Fundación para el Fomento de la Investigación Sanitaria y Biomédica de la Comunitat Valenciana (ES), Medical Research Network (US), Centro de Investigacion Principe Felipe (ES)
Openalex Percentile: Top 12%
Privacy-Preserving Technologies in Data
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.