Read the paper
A local language model layered with rule-based and neural detectors for clinical text de-identification
on GitHub
RECALL-FIRST STACK FOUND
+98.9%
OVER STANFORDPENN
+95%
PRECISION-FIRST STACK FOUND
+96.5%
PHI
+83.2%
Imagine you're proofreading a letter for a friend who's paranoid about leaving their address anywhere. You read through once with a highlighter, catching obvious stuff — phone numbers, dates, ZIP codes. Then you hand it to a second reader who knows medical jargon and catches the doctor names you missed. Then a third reader — slower, smarter, more contextual — goes through and finds the one reference to "the clinic on Elm Street" that the first two missed. Now stack all three sets of highlights. Anything ANY reader flagged gets redacted. That's DeidSharp: three detectors (regex patterns, a clinical NER model, a local 26B mixture-of-experts LLM), unioned together, fail-closed on any detector error. The committed claim: a locally hosted LLM stacked with deterministic and neural detectors finds more protected health information than existing open-source de-identification tools, at controllable precision, without sending patient text to a cloud API. This is not a new architecture or a new model — it's a new stacking strategy applied to an operational problem that matters enormously in healthcare IT. The ladder here is honest and well-constructed. DeidSharp was compared against five named baselines — deid, Philter, Stanford/Penn, OpenAI Privacy Filter, and GLiNER — on reporting halves of two PhysioNet corpora (nursing notes with 889 spans, MIMIC-IV-Note discharge summaries with 29,023 spans) plus synthetic ASQ-PHI queries. The recall-first stack hit 98.9% on nursing notes (+2.8 over Stanford/Penn) at 9.3 points lower precision. The precision-first stack matched Stanford/Penn recall (96.5%) at 19.6 points higher precision (83.2%). On discharge summaries, both stacks led Stanford/Penn by 20+ recall points. But — and this is the kind of honesty you want — no configuration beat deid significantly on deid's home corpus, and Philter found more discharge-summary spans than the recall-first stack, albeit at 23 points lower precision. The paper doesn't hide its losses. Architecturally, this is an ensemble of three detector families: deterministic pattern matchers (regex, dictionaries), a clinical named-entity recognition model (neural, supervised), and a 26B mixture-of-experts LLM running locally. The key design choice is the fail-closed union: if any detector flags a span, it's flagged; if any detector errors out, the pipeline halts rather than silently missing PHI. The LLM does the heavy lifting. The NER mostly adds place names. An interesting finding: when asked to verify its own findings, the LLM discarded a quarter of true PHI — self-verification hurts recall, which is exactly the kind of failure mode you want documented. Integrity is above average for this kind of systems paper. The protocol was prespecified. Configurations were fixed on tuning halves and evaluated on reporting halves. Comparisons used paired patient-level bootstrap confidence intervals. All four prespecified comparisons held. The corpora are public (PhysioNet). The code is on GitHub. The main weakness: this is still one-team evaluation on public benchmarks, not independent replication on private clinical data from a different institution. The milestone that matters is deployment on real EHR text at hospital scale. DeidSharp demonstrates viability on PhysioNet data; the gap is institutional validation on private clinical notes where PHI distributions differ, annotation standards vary, and the consequences of a miss are real. The paper's 98.9% recall on nursing notes means roughly 1 in 100 PHI spans still leaks — for a 500-bed hospital generating thousands of notes daily, that's a non-trivial residual risk that needs quantification in situ. The obvious next experiment not run: testing on private, multi-institution clinical text with genuinely unseen PHI distributions. The honest read is (a) — access to such data requires IRB approvals and institutional partnerships that a single-author open-source project doesn't easily command. This is a resource constraint, not a hidden failure.
The analogy
Like triple-checking a letter with three different proofreaders — a grammar-checker, a domain expert, and a careful general reader — then redacting anything ANY of them flagged. The insight isn't a better single reader; it's that the union of imperfect detectors with a fail-closed policy catches more than any one alone.
Triple proofread
Three readers with different specialties each highlight suspicious text; anything flagged by any reader gets redacted
DeidSharp stack
Regex, clinical NER, and a local 26B MoE LLM each flag PHI spans; union of all flags with fail-closed on detector error
Honest assessment
This is a well-executed engineering paper, not a research breakthrough. The value is in the honest head-to-head comparison, the fail-closed design philosophy, the open-source code, and the proof that a local 26B LLM plus simple detectors can match or beat cloud-dependent tools on public benchmarks. The gap — no private clinical data validation — is real and honestly acknowledged. Healthcare IT teams evaluating local de-identification should read this; ML researchers looking for architectural novelty should not.
What Is CLAIMS?
73
/ 100
BedrockNews applies a structured analytical framework called CLAIMS to academic papers and technical research releases.
How CLAIMS worksClaim
2/5
Ladder
5/5
Architecture
4/5
Integrity
4/5
Milestone
3/5
Successor
4/5
What is this paper actually committing to?
Engineering integration, not model novelty. Stacking local LLM + regex + NER with fail-closed union for PHI removal is useful but not a new paradigm — it's careful systems design applied to a known problem.
The field fight
Should clinical text de-identification rely on cloud-based LLM APIs or locally hosted models?
Side A
Cloud APIs (GPT-4, etc.) are more capable and easier to maintain; compliance risk can be managed contractually
Held by: OpenAI Privacy Filter, Azure Health APIs
Side B
PHI must never leave institutional control; local models with deterministic fallbacks are the only HIPAA-safe path
Held by: DeidSharp, deid, Philter, institutional CISOs
Milestone tracker
Unlocks: Production-grade de-identification for hospital data pipelines without cloud dependency
Current
98.9
% recall
PhysioNet nursing notes
Next
99.5+
% recall
Private multi-site EHR validation
~1-2 years, gated by IRB access and institutional partnerships
Verified Facts (8)
Recall-first stack found 98.9% of PHI (+2.8 over Stanford/Penn, 95% CI 1.4 to 4.4) at 9.3 points lower precision on nursing notes
Precision-first stack found 96.5% PHI at 83.2% precision, 19.6 points higher than Stanford/Penn
Both stacks led Stanford/Penn by more than 20 points on discharge summaries (recall-first 95.3%, +21.5, 20.5 to 22.4)
No configuration beat deid significantly on its home corpus
Philter found more discharge-summary spans than the recall-first stack at 23 points lower precision
LLM asked to verify its own findings discarded a quarter of true PHI
889 spans in nursing notes, 29,023 spans in discharge summaries
All four prespecified comparisons held
Practical Implications (4)
Hospitals and research institutions can run PHI de-identification entirely on-premise using a 26B parameter LLM, avoiding cloud data transfer and associated HIPAA risk
The recall-first vs precision-first toggle lets teams choose their operating point: aggressive redaction for public data releases vs conservative redaction for internal research
The fail-closed union design means adding a new detector can only improve recall, never degrade it — useful for iterative deployment
Self-verification by the LLM discards ~25% of true PHI — teams should avoid using the LLM to second-guess its own findings
More latest news
Read all