Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notes

Background Clinical notes contain protected health information, which can restrict their sharing and reuse in research. Manual de-identification is time-consuming and difficult to scale. Locally deployed open-weight large language models (LLMs) can process sensitive text without transmitting data to external model services, but their performance in removing identifiers from real-world discharge notes remains uncertain. Methods We evaluated 17 locally deployed open-weight LLMs on 100 real-world discharge notes in a study approved by the Institutional Review Board. Two reviewers trained in Health Insurance Portability and Accountability Act (HIPAA) requirements independently annotated the discharge notes and resolved disagreements by consensus, creating a consensus reference standard of 3,537 identifier spans. Each model processed every note in two sequential passes using a locked system prompt, user prompt template, and study-specific 18-category output schema based on HIPAA Safe Harbor; the complete evaluation was executed three times under these locked settings. The only comparator was Microsoft Presidio, an untuned, general-purpose personally identifiable information tool. We measured character recall, redaction outside the reference spans, identifier-boundary accuracy, note-level completeness, the incremental contribution of the second pass, and processing time. Results After two passes, character recall ranged from 39.6% to 98.9% across models; the six highest-recall models achieved 95.0% to 98.9%, with Gemma-4 31B having the highest observed recall. The highest reported mean note-level completeness was 67 of 100 notes, rounded across three executions. Residual characters occurred in both untouched and partially removed reference spans. The second pass increased recall by up to 15.0 percentage points. Median two-pass processing time ranged from 14.1 to 740.2 s per note. Conclusion Several locally deployed open-weight LLMs achieved high character recall, although redaction selectivity and processing time varied widely. High pooled recall coexisted with incomplete removal of reference-identifier characters within individual notes. These outcomes measure removal against the reference annotations and do not determine whether residual text remains identifying. The study does not establish suitability for autonomous release of clinical text or an advantage over optimized or supervised clinical de-identification tools.

Authors

Institutions

Publication Details

Journal
Frontiers in Digital Health
Published
2026-11-26
DOI
https://doi.org/10.3389/fdgth.2026.1995954
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
NOV
article

Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notes

Peter McCaffrey, James Weatherhead, George Golovko, Emily Cwiklik
Frontiers in Digital Health
Privacy-Preserving Technologies in Data
article

Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notes

Peter McCaffrey, James Weatherhead, George Golovko, Emily Cwiklik
article en

Abstract

Background Clinical notes contain protected health information, which can restrict their sharing and reuse in research. Manual de-identification is time-consuming and difficult to scale. Locally deployed open-weight large language models (LLMs) can process sensitive text without transmitting data to external model services, but their performance in removing identifiers from real-world discharge notes remains uncertain. Methods We evaluated 17 locally deployed open-weight LLMs on 100 real-world discharge notes in a study approved by the Institutional Review Board. Two reviewers trained in Health Insurance Portability and Accountability Act (HIPAA) requirements independently annotated the discharge notes and resolved disagreements by consensus, creating a consensus reference standard of 3,537 identifier spans. Each model processed every note in two sequential passes using a locked system prompt, user prompt template, and study-specific 18-category output schema based on HIPAA Safe Harbor; the complete evaluation was executed three times under these locked settings. The only comparator was Microsoft Presidio, an untuned, general-purpose personally identifiable information tool. We measured character recall, redaction outside the reference spans, identifier-boundary accuracy, note-level completeness, the incremental contribution of the second pass, and processing time. Results After two passes, character recall ranged from 39.6% to 98.9% across models; the six highest-recall models achieved 95.0% to 98.9%, with Gemma-4 31B having the highest observed recall. The highest reported mean note-level completeness was 67 of 100 notes, rounded across three executions. Residual characters occurred in both untouched and partially removed reference spans. The second pass increased recall by up to 15.0 percentage points. Median two-pass processing time ranged from 14.1 to 740.2 s per note. Conclusion Several locally deployed open-weight LLMs achieved high character recall, although redaction selectivity and processing time varied widely. High pooled recall coexisted with incomplete removal of reference-identifier characters within individual notes. These outcomes measure removal against the reference annotations and do not determine whether residual text remains identifying. The study does not establish suitability for autonomous release of clinical text or an advantage over optimized or supervised clinical de-identification tools.

Frontiers in Digital HealthVol. 8
The University of Texas Medical Branch at Galveston (US)
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.

Laika access coming soon