Menu ☰
janus · · 3 min read

Proving 2 Billion De-Identified Patient Notes Are Anonymous

Ask a healthcare CISO how they know PHI is really gone from a de-identified corpus. Most will point at an aggregate accuracy number — say 98% — and stop there. That number is a trap.

CAI Technology · Last reviewed: 9/10/2026
Clean editorial photo of two diverse healthcare professionals (clinician with stethoscope and colleague) in a bright hospital corridor discussion; no text, no third-party logo

Proving 2 Billion De-Identified Patient Notes Are Anonymous

Ask a healthcare CISO how they know PHI is really gone from a de-identified corpus. Most will point at an aggregate accuracy number — say 98% — and stop there. That number is a trap.

In September 2026, John Snow Labs CEO David Talby published a study with Providence Health that ran de-identification across 2 billion clinical notes under HIPAA’s Expert Determination standard (45 CFR § 164.514(b)(1)). The engineering lesson is not the scale. It is that a single validation metric cannot prove anonymity — and neither can a human spot-check.

Why averages lie

An F1 of 0.98 on PHI detection sounds excellent. Now imagine the 2% of missed spans cluster in oncology notes for patients over 80 in one rural ZIP-3 area. Re-identification risk in that slice can be an order of magnitude higher than the reported average, while the top-line number stays green. HIPAA’s Expert Determination standard requires the expert to certify that residual risk is “very small” for the anticipated recipient — not on average, but for the actual worst-case cohort, and NIST SP 800-188 formalises the same requirement for federal data releases.

Manual review has a similar failure shape. Reviewers get bored, calibration drifts, and the notes they sample skew toward legible discharge summaries — not the free-text psychiatric addenda where PHI hides in nicknames and paraphrases.

Three tests, run separately

Talby’s argument reduces to a validation protocol with three independent gates. Any one gate can pass while another fails, and only running all three surfaces the failure modes:

deid_validation:
  gate_1_accuracy:
    metric: span_level_recall
    reference: dual_annotator_gold_set
    threshold: 0.995
  gate_2_equity:
    metric: recall_delta_across_cohorts
    cohorts: [age_band, race, gender, payer, specialty, zip3]
    threshold_max_delta: 0.01
  gate_3_adversarial:
    metric: linkage_attack_success_rate
    attacker_prior: voter_roll + hospital_directory
    threshold: 0.0004
flowchart TD A[Raw clinical notes] --> B[De-ID model output] B --> C{Gate 1: recall vs<br/>dual-annotator gold?} B --> D{Gate 2: recall parity<br/>across cohorts?} B --> E{Gate 3: linkage attack<br/>with public priors?} C -->|fail| X[Reject batch] D -->|fail| X E -->|fail| X C -->|pass| Y[Release to researcher] D -->|pass| Y E -->|pass| Y classDef bad fill:#fee2e2,stroke:#ef4444 classDef good fill:#dcfce7,stroke:#10b981 class X bad class Y good

Gate 2 is where most vendor benchmarks quietly fail. The EDPB Opinion 28/2024 on AI models and personal data treats disparate anonymisation quality as a lawfulness problem, not a fairness footnote. If recall on one cohort trails the average, the expert cannot certify the whole set.

Where this lands for engineering teams

Teams building on this pattern should treat de-identification as a governance pipeline in the Janus workflow, not a preprocessing step. The validation harness ships with the model, cohort slicing is a first-class column in your evaluation store, and adversarial linkage runs on every retrain — the same discipline used to gate a retrieval pipeline against poisoning. ENISA’s pseudonymisation techniques brief frames the same posture for European deployments under GDPR Art. 4(5).

At CAI Technology we build de-identification validation the way we build agent-safety topology: assume any single measurement is optimistic, and design the harness so a silent regression on one cohort trips a red light before the batch reaches a researcher. If your team is scoping a Romanian or EU healthcare data-lake release, our Janus governance track starts from these three gates.

Read further

We start with a 30-minute conversation.

Free AI-readiness audit for companies with 50+ employees. We reply within 24 hours.