arXiv(opens in a new tab)cs.CLSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.10049

MedDeID enables locally governed clinical-text de-identification from real or synthetic training data

Stig Hellemans, Tom Stroobants, Elyne Scheurwegs, Pieter Meysman, Philippe G. Jorens, Kris Laukens

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Clinical notes contain personally identifiable information (PII), restricting reuse for research and medical AI, especially when data cannot leave an institution. We developed MedDeID, an on-premises framework combining in-house annotation and synthetic-note generation with model training, inference, pseudonymisation and evaluation. On an independently annotated, adjudicated 300-note Dutch hospital benchmark, a hospital-trained compact transformer detected 98.9% of identifying text while redacting 0.24% of text outside annotated identifiers; a synthetic-only counterpart detected 96.1%. On 100 primary-care notes, the synthetic-trained model achieved higher recall than the hospital-trained model (90.3% versus 87.0%) and greater robustness to identifier-format perturbations. An English instantiation trained without real text detected 99.7% and 98.9% of annotated identifier characters on two external synthetic benchmarks. These results demonstrate transfer of the workflow to another language, but not clinical English performance. MedDeID provides a route to locally governed de-identification using real or synthetic training data.

Introduction

The unstructured free text of the electronic health record — admission documentation, discharge letters, progress notes, consultation reports — is the location where clinicians record the reasoning, history and nuance that structured fields cannot capture. It is therefore among the most valuable substrates for clinical research and for developing and evaluating medical artificial intelligence 1^{1}. Moreover, it is saturated with personally identifiable information (PII). Under the EU General Data Protection Regulation, processing health data for scientific research requires a lawful basis, an applicable Article 9 condition and appropriate technical and organisational safeguards. Article 89 specifically requires safeguards for research, including data minimisation and, where the purposes can be fulfilled, pseudonymisation 2,3^{2,3}. In the United States, the HIPAA Privacy Rule provides Safe Harbor and Expert Determination routes for de-identification 4^{4}. De-identification is therefore a key safeguard for secondary uses of clinical free text. The task extends beyond removing obvious identifiers: both direct identifiers, such as a patient's name, and indirect (or quasi-) identifiers, such as age, postal code or admission date, may reveal an individual's identity and therefore fall within scope 3,5^{3,5}.

English-language systems have reached both benchmark maturity and production scale. The i2b2/UTHealth shared tasks established a shared vocabulary for protected health information (PHI) 6,7^{6,7}; neural sequence models pushed entity-level F1 into the high nineties 8−10^{8-10}; and Philter, an openly released rule-based system 11^{11}, was subsequently certified by external audit and scaled at the University of California, San Francisco, where it has placed more than 130 million de-identified notes from 2.75 million patients in the hands of over 600 researchers without further ethics review 12^{12}. That audit found no residual identifiers in any of the seventeen non-date HIPAA categories and estimated that fewer than 0.025% of patients remained at risk of re-identification through shifted dates 12^{12}. Philter is the reference example of what a deployable, openly available de-identification system makes possible 11^{11}.

The situation for Dutch and Flemish clinical text, and by extension for most non-English settings, is very different, and the deficit is not merely one of effort. De-identification is inherently language-specific: identifiers are expressed through language-dependent patterns, including local lexicons, name morphology, date and address conventions, and the shorthand style of clinical documentation, all of which limit the transferability of methods developed for other languages. The principal rule-based Dutch tool, DEDUCE, was carefully hand-built for a single institution and achieves high recall there 13^{13}, but rule systems of this kind generalise poorly: Trienes and colleagues showed that an existing Dutch rule-based method failed on new data, whereas a state-of-the-art neural architecture generalised across institutions and domains with far less configuration effort 14^{14}, and a 2025 replication study confirmed the variability of these tools across settings 15^{15}. Dutch clinical language models — MedRoBERTa.nl, pre-trained on real hospital notes, and the general-purpose RobBERT family — provide practical encoder backbones for compact Dutch de-identifiers 16−18^{16-18}. In parallel, a wave of work applies generative large language models to de-identification with impressive recall in favourable conditions 19−24^{19-24}; however, the LLM evaluated here was substantially slower than the compact local model and remained brittle to the structured formatting of real notes.

Two further gaps compound the first. Public real-data benchmarks for Dutch clinical de-identification remain unavailable, so groups evaluate on inaccessible local corpora and independent reproduction is difficult 25^{25}. Synthetic pre-training, diversity-aware data construction and teacher-student distillation are emerging as routes around the same bottleneck in English and French 26,27^{26,27}, but their benefit depends on training regime and evaluation domain. Existing systems also often stop at detection, ignoring what healthcare institutions need from pseudonymisation: dates must be shifted so that clinical chronology survives, and ages must be reduced to the coarsest granularity that still carries clinical meaning. Collapsing a two-month-old infant to “0 years old”, for example, destroys information a paediatrician needs and creates an avoidable trade-off between re-identification risk and clinical value.

This study addresses three challenges across languages and clinical settings: poor transfer of de-identification systems, restrictions on sharing clinical text for model development and evaluation, and loss of useful information during pseudonymisation. MedDeID responds with a locally deployable workflow that supports training on local annotations or synthetic notes, evaluation on shareable synthetic benchmarks, and clinically informed date and age pseudonymisation. To compare real-data and synthetic-only training on authentic Dutch clinical text, we trained two independent models with the same compact architecture:

one on annotated hospital notes and the other exclusively on synthetic Dutch notes, and evaluated both on held-out hospital and primary-care notes. We then reuse MedDeID to train a separate English model exclusively on synthetic English data, testing whether researchers and healthcare institutions can adapt the framework to another language rather than rebuild the entire workflow. This does not involve transfer from the Dutch models or establish performance on real English clinical text. Across both language instantiations, MedDeID uses a common schema, character offsets, post-processing, pseudonymisation rules, and evaluation contract. Core PII recall measures the percentage of genuinely identifying characters detected, while non-PII redaction measures the clinical text removed outside annotated spans.

References (9)