A local language model layered with rule-based and neural detectors for clinical text de-identification: an open-source toolkit and evaluation
minor signal 16
An open-source .NET toolkit, DeidSharp, stacks pluggable detectors (patterns, a clinical NER model, a local 26B mixture-of-experts LLM) and fails closed on any detector error; it was compared against deid, Philter, the Stanford/Penn de-identifier, OpenAI Privacy Filter and GLiNER on nursing notes (889 spans) and semi-synthetic MIMIC-IV-Note discharge summaries (29,023 spans). The recall-first stack found 98.9% of PHI in nursing notes versus Stanford/Penn at 9.3 points lower precision, and the precision-first stack matched recall at 19.6 points higher precision; both stacks led by more than 20
Action: If you de-identify clinical text, evaluate a fail-closed multi-detector stack against your current single-model pipeline, reporting recall and precision separately for typed and untyped PHI.
Migration effort: none
Cited
A local language model layered with rule-based and neural detectors for clinical text de-identification: an open-source toolkit and evaluation arxiv-ai · community · 2026-11-09