De-identify clinical data for AI and ML model training under Expert Determination – CCPA/HIPAA-compliant de-identification per 45 CFR §164.514(b)(1)

Training machine-learning models on clinical data requires de-identification that preserves the statistical properties and clinical signal of the dataset while eliminating PHI. Expert Determination under 45 CFR §164.514(b)(1) is the preferred method for ML training data because it allows retention of quasi-identifiers valuable for model generalization while certifying that re-identification risk is very small.

When this applies

Apply this workflow when a health system, research institution, or AI developer needs to prepare clinical datasets — including structured EHR data, clinical notes, and imaging metadata — for model training and requires a statistically certified de-identification approach that preserves analytical utility beyond what Safe Harbor allows.

  1. Upload the clinical training dataset (CSV, XLSX, FHIR JSON, or clinical note corpus) to anonym.legal.
  2. Specify the ML use case: the engine tailors the de-identification approach to preserve features most predictive for the model domain while removing high-risk identifiers.
  3. Direct identifiers (names, MRNs, SSNs, contact details) are removed or pseudonymized with consistent tokens to preserve record linkage across training examples.
  4. Quasi-identifiers — age in years, ZIP code, rare diagnosis codes — are analyzed for re-identification risk at the k-anonymity level; the engine suggests targeted transformations (date-shifting, ZIP generalization, code suppression) that minimize risk while preserving model utility.
  5. A qualified statistical expert reviews the risk report and certifies that the risk of identifying any individual is very small per §164.514(b)(1).
  6. Clinical notes are processed through NLP entity detection to remove PHI from free-text training examples while preserving clinical semantics (symptom descriptions, treatment outcomes).
  7. The certified de-identified training dataset and the expert certification documentation are delivered as a compliance package.

What you provide

  • Clinical training dataset (CSV, XLSX, FHIR JSON, or clinical notes corpus)
  • ML use case description and feature importance specification
  • Expert's statistical risk threshold
  • Data dictionary describing all fields and their role in model training

Limitations & cautions

  • Expert Determination requires a qualified statistical expert to certify the result; this workflow provides the risk quantification infrastructure but the expert certification must be performed by a human expert under §164.514(b)(1).
  • Model training data de-identified today may carry higher re-identification risk in the future as new external auxiliary datasets (genomic registries, public health datasets) become available; re-assess de-identification adequacy when the training corpus is reused for new model versions.
  • Synthetic data generation is an alternative to de-identification for training data; if the clinical signal required for the model cannot be preserved through de-identification alone, evaluate differential privacy or synthetic generation approaches.

FAQ

Why is Expert Determination preferred over Safe Harbor for ML training data?

Safe Harbor de-identification removes all 18 identifier categories including dates, ZIP codes, and ages beyond simple year values — fields often important as predictive features in clinical models. Expert Determination allows these quasi-identifiers to be retained when a statistician certifies the residual risk is very small, preserving model utility while meeting the HIPAA de-identification standard.

Does de-identified training data eliminate HIPAA obligations for the AI developer receiving it?

Yes. Once de-identified under §164.514, the training data is not PHI and the AI developer is not subject to HIPAA obligations for that data. If the AI developer will also receive identified patient data for any purpose — validation testing, model deployment in the EHR — a BAA is required for those interactions.

Can the same de-identified clinical corpus be used for multiple model training projects?

Yes, provided each use remains within the scope of the original de-identification certification. If a new model training project requires retaining different quasi-identifiers or targets a different model domain, a new risk assessment and expert certification should be performed for that configuration.

Healthcare Records

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.