De-identification

How to de-identify clinical notes for AI training

Learn the legal tests and step-by-step process to strip patient identifiers from clinical notes so you can license them for AI training.

Written by Jimmy LinFounder of AI Training Data Broker

, 4 min read


You de-identify clinical notes by removing every element that could reveal a patient's identity and then passing a recognized privacy test. After the notes meet that test you can offer them to an AI lab as licensed data while you keep ownership.

Legal baseline for health data

HIPAA safe-harbor rule, 45 CFR 164.514(b). The rule lists 18 identifiers that must be removed for the remaining information to no longer be "protected health information." Delete names, geographic subdivisions smaller than a state, all dates except the year, telephone numbers, email addresses, social security numbers, medical record numbers, and any other direct or indirect identifiers.

HIPAA expert-determination method, 45 CFR 164.514(a). A qualified expert can certify that the risk of re-identifying a patient is very small, even if some identifiers remain. The expert must document the methods used, the data-set size, and the likelihood of successful re-identification.

California Consumer Privacy Act. Section 1798.140. California calls data "de-identified" when it cannot reasonably be used to identify a consumer, either because personal identifiers have been removed or because a statistical technique makes re-identification unlikely.

GDPR anonymisation. Recital 26 and Article 4(1). The regulation treats data as anonymous when an individual is not identifiable by any means "reasonably likely" to be used, given current technology. Strip identifiers and verify that any combination of remaining data cannot single out a person.

All of these rules share the same core: remove enough detail that a reasonable party cannot link the note back to a specific patient. Which test you follow depends on the jurisdiction of the data subjects and the expectations of the AI-lab buyer.

Practical steps for clinical notes

  1. Create an inventory. List every field that appears in your electronic health record export, patient name, MRN, admission date, provider name, facility address, and so on.
  2. Apply systematic masking. Use automated tools to replace each identifier with a stable pseudonym such as "patient-001" or "provider-A". The same pseudonym must appear wherever the same person is referenced, so the clinical narrative stays coherent for model training.
  3. Run a re-identification challenge. After the automated pass, give a small sample to a reviewer who was not involved in the cleaning. Their task is to try to link any record back to a real person using only the cleaned data. If they succeed, adjust the mask and repeat.
  4. Document the method. Record which legal test you are following, the tools used, the sample size, and the outcome of the re-identification challenge. This memo becomes part of the provenance packet that the AI lab will receive.
  5. Secure export and deletion. Move the cleaned files to an isolated, logged workspace. Delete the raw export on a recorded date and keep the deletion log for compliance verification.

When performed carefully, these actions satisfy the HIPAA safe-harbor and expert-determination routes, the CCPA de-identification definition, and the GDPR anonymity requirement.

Need data de-identified to meet HIPAA, CCPA or GDPR? See how we do it

Why de-identified notes are valuable

AI labs use clinical narratives to train language models that can understand medical terminology, extract diagnoses, and suggest care pathways. Because the data reflects real patient encounters, the resulting models can handle the nuances of everyday practice. However, labs can only use data that is properly de-identified, and they rely on a provenance memo to verify compliance. By providing clean, well-documented notes you make your data attractive to buyers while protecting patient privacy.

Our de-identification service

We run a stand-alone de-identification service that follows the steps above and produces a written record of the process. First we map the systems you use and the laws that apply. Then we export the data to a secure workspace, replace identifiers with consistent placeholders, and destroy the key that maps placeholders back to real names. A separate reviewer attempts to re-identify any records; the results are added to a compliance memo.

The fee is quoted per project once we know the volume of notes and the systems involved. In most licensing deals the AI lab covers the cost, but the allocation is negotiated case-by-case. You review a sample of the cleaned data before any buyer sees it, so you stay in control of the final product.

Learn more about the service on our de-identification page.

Preparing the data for licensing

When the notes are de-identified, you can present them to AI labs through our broker platform. We collect a short questionnaire from you, create a one-page summary (no data leaves your environment yet), and share it with vetted buyers. The buyer returns a quote and proposed licence terms. No contract is signed and no files move until you accept the offer.

Because the data remains yours, you can continue to use the clinical notes for internal purposes. The licence is usually a one-time payment for a defined term, often 24 months, with a perpetual right for the buyer to use the data in training. If you later add new notes, a refresh licence can be negotiated.

For more detail on how a deal works, see our sell page.

Request a de-identification quote

If you are ready to see how much it would cost to de-identify your clinical notes, click the button below to request a quote. Our team will review your environment, confirm the applicable legal test, and provide a project-level estimate.

Questions people ask

What is the difference between HIPAA safe-harbor and expert-determination?

Safe-harbor removes a fixed list of 18 identifiers. Expert-determination lets a qualified expert certify that the overall risk of re-identification is very low, even if some data elements remain.

Can de-identified clinical notes be used outside the United States?

Yes, if the de-identification meets the GDPR anonymisation standard, the notes can be transferred to AI labs in the EU. We check the regional rules on our regions page.

Who pays for the de-identification work?

The AI lab that purchases the data usually covers the cost, but the allocation is decided during licence negotiation.

How do I know the de-identification was successful?

We provide a written memo that records the masking methods, the re-identification test results, and the legal standard applied. This memo travels with the data package for the buyer.

Didn't find your question? Ask us directly.


See how we de-identify data

More articles