Skip to content
Blog

Medical Data De-identification for AI: DICOM, Clinical Text and Compliance

Share:
Medical Data De-identification for AI: DICOM, Clinical Text and Compliance

Last updat­ed: Novem­ber 2026

Key take­aways

  • Med­ical data de-iden­ti­fi­ca­tion removes or trans­forms any­thing that could iden­ti­fy a patient, so imag­ing, notes and audio can be used to train AI with low­er pri­va­cy risk.
  • In the US, HIPAA offers two routes. Safe Har­bor removes 18 iden­ti­fi­er types. Expert Deter­mi­na­tion needs a qual­i­fied expert to doc­u­ment that risk is very small.
  • In the EU, pseu­do­nymized data is still per­son­al data under the GDPR. Only tru­ly anony­mous data falls out­side it.
  • Head­er scrub­bing is not enough. Burned-in text, free-text notes, spo­ken names and dates cause many leaks.
  • Good med­ical data de-iden­ti­fi­ca­tion is a repeat­able process: inven­to­ry, method choice, auto­mat­ed pass, human review, risk check and audit log.

Health­care AI teams need real clin­i­cal data, but every scan, note and dic­ta­tion can car­ry patient iden­ti­ty. Med­ical data de-iden­ti­fi­ca­tion is the step that makes that data safer to use for train­ing and eval­u­a­tion. Get it wrong and a sin­gle burned-in name on an ultra­sound frame can stall a whole pro­gram.

This guide is for ML leads, data own­ers and pri­va­cy teams prepar­ing imag­ing, clin­i­cal text or speech data. You get the US and EU rules in plain terms, a six-step process and com­mon mis­takes. You also get the TRACED check­list for review­ing a dataset before release.

Plan­ning a med­ical dataset? Book a 20-minute scop­ing call and we will map your modal­i­ties and review steps with you.

What is medical data de-identification?

Med­ical data de-iden­ti­fi­ca­tion is the process of remov­ing or trans­form­ing iden­ti­fiers in health data so a per­son can no longer be rea­son­ably iden­ti­fied. It cov­ers struc­tured fields, DICOM head­ers, pix­els, free-text notes and audio. Under HIPAA, prop­er­ly de-iden­ti­fied data is no longer pro­tect­ed health infor­ma­tion (PHI). The EU uses a stricter test for anony­mous data.

In short: med­ical data de-iden­ti­fi­ca­tion strips iden­ti­ty from patient records. The legal bar depends on where the data and patients are.

  • De-iden­ti­fi­ca­tion is the US term used in the HIPAA Pri­va­cy Rule. Data that meets one of its two meth­ods is no longer PHI.
  • Anonymiza­tion is the EU con­cept. Under GDPR Recital 26, data is anony­mous when the per­son is not, or no longer, iden­ti­fi­able by any means rea­son­ably like­ly to be used.
  • Pseu­do­nymiza­tion replaces direct iden­ti­fiers with codes, with the key kept sep­a­rate­ly. GDPR Arti­cle 4(5) defines it, and Recital 26 says pseu­do­nymized data is still per­son­al data.

For AI work, the dif­fer­ence mat­ters. A pseu­do­nymized dataset can keep patient links across vis­its, which helps lon­gi­tu­di­nal mod­els. But it stays inside GDPR scope.

No method gives zero risk. HHS Office for Civ­il Rights (OCR) guid­ance says prop­er­ly de-iden­ti­fied data “retains some risk of iden­ti­fi­ca­tion,” though that risk is very small.

Where does patient identity hide in medical AI data?

Patient iden­ti­ty hides in four places in most health­care AI datasets. These are DICOM head­er tags, text burned into image pix­els, free-text clin­i­cal notes and record­ed speech. Each needs its own detec­tion method. A tool that cleans one lay­er often miss­es the oth­ers, so plan med­ical data de-iden­ti­fi­ca­tion cov­er­age per modal­i­ty first.

Diagram of four places PHI hides in medical AI data: DICOM header tags, burned-in pixel text, clinical free text and speech audio
PHI can sit in meta­da­ta, pix­els, nar­ra­tive text and audio. Each lay­er needs its own check.

DICOM header tags

Every DICOM head­er can hold hun­dreds of attrib­ut­es. Some are obvi­ous, such as Patien­t’s Name (0010,0010) and Patien­t’s Birth Date (0010,0030). Oth­ers are sub­tle: insti­tu­tion names, oper­a­tors, acces­sion num­bers, study descrip­tions and UIDs.

DICOM PS3.15 Annex E defines the Basic Appli­ca­tion Lev­el Con­fi­den­tial­i­ty Pro­file. Its Table E.1–1 gives each attribute an action code. X means remove, Z means emp­ty or dum­my val­ue, C means clean, K means keep and U means a con­sis­tent new UID.

The stan­dard warns that the table alone may not be enough. Iden­ti­ty can sit in pri­vate attrib­ut­es, retired attrib­ut­es or struc­tured report text. File meta infor­ma­tion and the 128-byte pre­am­ble must be replaced too.

When done, set Patient Iden­ti­ty Removed (0012,0062) to YES. Record the method in De-iden­ti­fi­ca­tion Method Code Sequence (0012,0064) or as text.

Burned-in pixel text

Some modal­i­ties write patient details straight into the image. The DICOM Clean Pix­el Data Option cov­ers this. Its note says CT images do not nor­mal­ly con­tain burned-in anno­ta­tion, where­as ultra­sound images rou­tine­ly do.

Two rules stand out. The stored pix­el val­ues must be changed (blacked out); an over­lay or shut­ter on top is not enough. And Burned In Anno­ta­tion (0028,0301) should be set to “NO” once clean­ing is done.

OCR can find text, but judg­ing whether it iden­ti­fies some­one is hard­er. The stan­dard says this may need a human oper­a­tor’s approval. A sep­a­rate Clean Rec­og­niz­able Visu­al Fea­tures Option cov­ers fea­tures such as faces.

Clinical free text

Clin­i­cal notes, dis­charge sum­maries and reports are the hard­est lay­er. Names, dates and record num­bers appear in any order and for­mat.

HHS OCR guid­ance is explic­it. Safe Har­bor makes no dis­tinc­tion between struc­tured fields and free text. OCR’s own exam­ple is a note say­ing the patient is the Exec­u­tive Vice Pres­i­dent of the state uni­ver­si­ty. That detail must go, even though it is not a name.

Most teams pair clin­i­cal named enti­ty recog­ni­tion (NER) with rules and human review. The mod­el flags can­di­date PHI. Review­ers con­firm it and catch con­text clues, such as rare jobs or fam­i­ly links.

Detect­ed PHI can be redact­ed with a tag such as [NAME] or replaced with real­is­tic sur­ro­gates. Sur­ro­gates read nat­u­ral­ly, but one patien­t’s name must map to the same fake name through­out a record.

Speech and dictation audio

Dic­ta­tion, tele­health calls and ambi­ent scribe record­ings add two risks. One is spo­ken iden­ti­fiers, such as a name or date of birth. The oth­er is the voice itself. HIPAA’s Safe Har­bor list includes bio­met­ric iden­ti­fiers, “includ­ing fin­ger and voice prints.”

A prac­ti­cal approach is tran­script-first. Tran­scribe, detect PHI in the text, map flagged spans to time­stamps, then mute those seg­ments. Review­ers check flagged regions and spot-check the rest. Decide dur­ing scop­ing whether the voice itself needs trans­for­ma­tion.

How to de-identify medical data for AI: a six-step process

To de-iden­ti­fy med­ical data for AI, fol­low six steps. Inven­to­ry every source and field, then choose a legal method. Run an auto­mat­ed pass and send flagged and sam­pled items to human review. Test re-iden­ti­fi­ca­tion risk on the out­put and keep an audit log. Repeat the cycle for each new batch or release.

Six-step medical data de-identification process: inventory, choose method, automated pass, human review, risk check and audit log
A repeat­able six-step flow for imag­ing, text and audio datasets.

1. Inventory every source and field

List each modal­i­ty, file type and source sys­tem. For DICOM, sam­ple every scan­ner ven­dor, because pri­vate tags vary. For text and audio, list note types and record­ing setups.

Mark which fields your mod­el tru­ly needs. Data min­i­miza­tion is the cheap­est pri­va­cy con­trol.

2. Choose the method before touching data

Agree the method with your pri­va­cy or legal team: Safe Har­bor, Expert Deter­mi­na­tion, GDPR anonymiza­tion or pseu­do­nymiza­tion. Safe Har­bor, for exam­ple, removes all date ele­ments except the year, which can break time-series mod­els.

Write a short med­ical data de-iden­ti­fi­ca­tion spec list­ing each field, the action applied and the rea­son.

3. Run the automated pass

Apply your head­er pro­file to DICOM, OCR detec­tion to pix­els, NER plus rules to text and tran­script-based detec­tion to audio. Keep UID and date-shift map­pings con­sis­tent across a patien­t’s files.

Store any re-iden­ti­fi­ca­tion keys sep­a­rate­ly, with strict access con­trols. GDPR Arti­cle 4(5) makes that sep­a­ra­tion part of the def­i­n­i­tion of pseu­do­nymiza­tion.

4. Human review of flagged and sampled items

Automa­tion does the vol­ume work; peo­ple han­dle judg­ment. Review every low-con­fi­dence detec­tion plus a ran­dom sam­ple of items marked clean. Clin­i­cians help with ambigu­ous terms, such as an eponym that looks like a name.

5. Check re-identification risk

Look at the out­put as an attack­er would. Rare diag­noses, extreme ages, small hos­pi­tals or exact dates can make a record unique. Pub­lic data, such as news reports, can enable link­age.

For Expert Deter­mi­na­tion, this step is for­mal and doc­u­ment­ed by the expert. For GDPR anonymiza­tion, you assess all means rea­son­ably like­ly to be used.

6. Keep an audit log

Record the batch, method, tool ver­sions, con­fig­u­ra­tion, review­er deci­sions, excep­tions and sign-off for each release. A good log answers one ques­tion fast: what was done to this file, and who approved it?

How to check a dataset before release: the TRACED checklist

Before a med­ical dataset leaves your con­trol, check six lay­ers with the TRACED check­list. They are Tags, Ren­dered pix­els, Audio, Clin­i­cal text, Expo­sure risk and Doc­u­men­ta­tion. Each let­ter cov­ers one place iden­ti­ty leaks. A release pass­es only when every lay­er has an own­er, a test result and a signed deci­sion.

In short: TRACED turns med­ical data de-iden­ti­fi­ca­tion from a one-time script into a release gate.

TRACED checklist tiles for medical data de-identification: Tags, Rendered pixels, Audio, Clinical text, Exposure risk, Documentation
The TRACED check­list: six lay­ers to ver­i­fy before a med­ical dataset is released.
  • T – Tags. DICOM head­ers han­dled per pro­file, includ­ing pri­vate tags, sequences and pre­am­ble. UIDs replaced con­sis­tent­ly.
  • R – Ren­dered pix­els. Ultra­sound, screen cap­tures and scans checked. Stored pix­el val­ues changed, not just cov­ered.
  • A – Audio. Spo­ken iden­ti­fiers mut­ed at the right time­stamps. Voice han­dling deci­sion record­ed.
  • C – Clin­i­cal text. Names, dates, num­bers and con­text clues removed or replaced con­sis­tent­ly.
  • E – Expo­sure risk. Rare val­ues, extreme ages and exact dates reviewed. Link­age risk con­sid­ered.
  • D – Doc­u­men­ta­tion. Method, find­ings and sign-off logged. Keys stored sep­a­rate­ly.

Want a sec­ond pair of eyes on a sam­ple batch? Scope a pilot billed only on approved files to test our review work­flow.

Safe Harbor vs Expert Determination vs GDPR anonymization and pseudonymization

For med­ical data de-iden­ti­fi­ca­tion, HIPAA Safe Har­bor is a fixed list of 18 iden­ti­fi­er types to remove. Expert Deter­mi­na­tion is a doc­u­ment­ed risk analy­sis by a qual­i­fied expert. GDPR anonymiza­tion takes data out of GDPR scope only if no one is rea­son­ably iden­ti­fi­able. GDPR pseu­do­nymiza­tion keeps a sep­a­rat­ed key, so the data remains per­son­al data.

Matrix comparing HIPAA Safe Harbor, Expert Determination, GDPR anonymization and GDPR pseudonymization on fixed identifier list, risk analysis, exact dates kept and whether data stays regulated
How the four com­mon approach­es dif­fer on rules, date detail and what the data is after­ward.
ApproachWhat it requiresDates and detailSta­tus after­ward
HIPAA Safe Har­borRemove 18 iden­ti­fi­er types for the patient, rel­a­tives, employ­ers and house­hold mem­bers, and have no actu­al knowl­edge that the rest could iden­ti­fy any­oneAll date ele­ments except year removed; ages over 89 grouped as 90 or old­er; ZIP codes cut to three dig­its only where the area has more than 20,000 peo­pleNot PHI under HIPAA
HIPAA Expert Deter­mi­na­tionA qual­i­fied expert applies sta­tis­ti­cal and sci­en­tif­ic meth­ods, finds the risk very small for the antic­i­pat­ed recip­i­ent, and doc­u­ments meth­ods and resultsCan keep more detail, such as shift­ed dates, if the analy­sis sup­ports itNot PHI under HIPAA, with­in the con­di­tions the expert sets
GDPR anonymiza­tionNo one iden­ti­fi­able by any means rea­son­ably like­ly to be used, con­sid­er­ing cost, time and avail­able tech­nol­o­gyOften needs aggre­ga­tion or gen­er­al­iza­tion; detail kept only if it does not enable iden­ti­fi­ca­tionOut­side GDPR scope
GDPR pseu­do­nymiza­tionDirect iden­ti­fiers replaced; addi­tion­al infor­ma­tion kept sep­a­rate­ly under tech­ni­cal and organ­i­sa­tion­al mea­suresCan keep patient-lev­el links and detailStill per­son­al data; health data remains a spe­cial cat­e­go­ry

One detail trips up many teams. OCR guid­ance says dates tied to test mea­sures, such as lab report dates, are PHI. Under Safe Har­bor, only the year may stay.

In the EU, the Euro­pean Data Pro­tec­tion Board (EDPB) released Guide­lines 01/2025 on pseu­do­nymiza­tion for con­sul­ta­tion in Jan­u­ary 2025. They explain how pseu­do­nymiza­tion reduces risk. They do not make pseu­do­nymized data anony­mous.

If you are build­ing a high-risk AI sys­tem under the EU AI Act, Arti­cle 10 data-gov­er­nance rules also apply. See our guide to EU AI Act train­ing data require­ments. Teams with Indi­an data sources should also read our explain­er on the DPDP Act and AI train­ing data.

How much effort does medical data de-identification take?

Med­ical data de-iden­ti­fi­ca­tion effort depends on modal­i­ty mix, the share of burned-in and free text, your legal method and how much detail the mod­el needs. Head­er-only imag­ing work is the light­est. Free-text notes, ultra­sound frames and mul­ti-speak­er audio need far more human review per item, which dri­ves most of the cost.

The main dri­vers are:

  • Source vari­ety. More scan­ner ven­dors, note tem­plates and record­ing setups mean more rules to test.
  • Unstruc­tured share. Nar­ra­tive notes and dic­ta­tion need NER plus human review.
  • Burned-in text rate. Ultra­sound and screen cap­tures need pix­el checks.
  • Util­i­ty needs. Keep­ing shift­ed dates or patient links adds map­ping work and often an Expert Deter­mi­na­tion.
  • Review depth. Sam­ple size, dou­ble review and clin­i­cian adju­di­ca­tion scale effort.
  • Lan­guages. Mul­ti­lin­gual notes and speech need flu­ent review­ers.

Common medical data de-identification mistakes

In short: most leaks come from the lay­ers teams assume are clean.

Trusting the header scrub

Clean­ing DICOM tags while ignor­ing pix­els is the clas­sic fail­ure. Ultra­sound frames and scanned forms often show names right in the image. Cov­er­ing them with an over­lay is not enough; change the pix­els.

Mishandling dates

Dates hide in head­ers, reports, file­names, fold­er names, notes and lab val­ues. Teams shift dates in one place and leave orig­i­nals in anoth­er. Apply one rule every­where, pix­els includ­ed.

Free-text leaks

Mod­els miss con­text clues. “The patien­t’s daugh­ter, a nurse on Ward 4” can iden­ti­fy some­one in a small hos­pi­tal. Sam­pled human review is the safe­guard.

Ignoring private tags and sequences

Ven­dors store data in pri­vate attrib­ut­es and nest­ed sequences. Remove pri­vate tags unless you have con­firmed they are safe.

Forgetting linkage risk

A rare dis­ease, an exact date and a small town can make a record unique. Assess link­age against what the recip­i­ent could rea­son­ably hold.

How Graveiens AI approaches medical data de-identification

Graveiens AI sup­ports med­ical data de-iden­ti­fi­ca­tion across all three data types in this guide. Our health­care AI data ser­vices span med­ical imag­ing with DICOM work­flows and clin­i­cal text, includ­ing clin­i­cal NER and de-iden­ti­fi­ca­tion. They also cov­er med­ical speech, includ­ing clin­i­cal tran­scrip­tion.

Clin­i­cians val­i­date items that need med­ical judg­ment. Our pri­va­cy and com­pli­ance prac­tices cov­er de-iden­ti­fi­ca­tion, con­sent and audit trails, access con­trols and secure han­dling.

For speech, our clin­i­cal tran­scrip­tion and dic­ta­tion ser­vices fit the tran­script-first approach described above. For dataset checks before release, our data val­i­da­tion and QA reviews can fol­low your TRACED-style release sheet. Graveiens AI is ISO 9001 cer­ti­fied, and we work in 25+ lan­guages.

When we col­lect new speech data, we use an explic­it-con­sent work­flow: par­tic­i­pant onboard­ing, record­ing man­age­ment, meta­da­ta tag­ging, then QA. Pilots are billed only on approved files. For tool­ing, for­mats, legal method or any­thing else, we scope this with you.

This arti­cle is gen­er­al infor­ma­tion, not legal advice. Con­firm your de-iden­ti­fi­ca­tion method with qual­i­fied pri­va­cy coun­sel.

Frequently asked questions

What are the 18 HIPAA identifiers?

They are names, small geo­graph­ic units, date ele­ments except year, phone and fax num­bers, email address­es, Social Secu­ri­ty num­bers, med­ical record num­bers, health plan num­bers, account num­bers, cer­tifi­cate or license num­bers, vehi­cle and device iden­ti­fiers, URLs, IP address­es, bio­met­ric iden­ti­fiers, full-face pho­tos and any oth­er unique code. Safe Har­bor removes them for the patient, rel­a­tives, employ­ers and house­hold mem­bers.

Is de-identified data the same as anonymized data?

Not exact­ly. De-iden­ti­fied is the HIPAA term: data meet­ing Safe Har­bor or Expert Deter­mi­na­tion is no longer PHI. Anonymized is the GDPR con­cept, with a broad­er test: no one is iden­ti­fi­able by any means rea­son­ably like­ly to be used. A dataset can meet HIPAA and still fall short of EU anonymi­ty.

Is pseudonymized data still personal data under GDPR?

Yes. GDPR Recital 26 states that pseu­do­nymized data, which could be attrib­uted to a per­son using addi­tion­al infor­ma­tion, should be treat­ed as infor­ma­tion on an iden­ti­fi­able per­son. Pseu­do­nymiza­tion reduces risk and sup­ports safe­guards, but health data processed this way remains spe­cial-cat­e­go­ry per­son­al data with all relat­ed duties.

Can AI tools de-identify clinical notes on their own?

Auto­mat­ed NER tools han­dle the vol­ume, but they miss con­text clues such as rare jobs, fam­i­ly links or local places. HHS OCR guid­ance says any rec­og­niz­able iden­ti­fi­er in free text must be removed. Most teams pair automa­tion with human review of flagged spans and a ran­dom sam­ple of items marked clean.

Do I need to remove dates from DICOM files?

Under HIPAA Safe Har­bor, yes: all date ele­ments except the year must go, includ­ing burned-in dates. Expert Deter­mi­na­tion may allow shift­ed or par­tial dates if the risk analy­sis sup­ports it. The DICOM con­fi­den­tial­i­ty pro­file han­dles date attrib­ut­es through action codes, with options for stud­ies that need tim­ing.

Is a patient’s voice considered PHI?

Voice can be. HIPAA Safe Har­bor lists bio­met­ric iden­ti­fiers, includ­ing voice prints, among the 18 iden­ti­fi­er types. Spo­ken names, dates and num­bers in dic­ta­tion are also iden­ti­fiers. Whether you must trans­form the voice itself depends on your method and use, so set­tle it with your pri­va­cy team dur­ing scop­ing.

Prepar­ing imag­ing, clin­i­cal text or dic­ta­tion data for AI?

Tell us your modal­i­ties, vol­umes and tar­get med­ical data de-iden­ti­fi­ca­tion method. We will help you plan detec­tion, human review and audit steps, then prove it on a small batch.

Book a 20-minute scop­ing call or scope a pilot billed only on approved files.

Sources

  1. U.S. Depart­ment of Health and Human Ser­vices, Office for Civ­il Rights – Guid­ance Regard­ing Meth­ods for De-iden­ti­fi­ca­tion of Pro­tect­ed Health Infor­ma­tion in Accor­dance with the HIPAA Pri­va­cy Rule
  2. DICOM Stan­dard PS3.15, Annex E – Attribute Con­fi­den­tial­i­ty Pro­files (Basic Appli­ca­tion Lev­el Con­fi­den­tial­i­ty Pro­file)
  3. DICOM Stan­dard PS3.15, Sec­tion E.3 – Basic Appli­ca­tion Lev­el Con­fi­den­tial­i­ty Options (Clean Pix­el Data Option)
  4. Reg­u­la­tion (EU) 2016/679 (Gen­er­al Data Pro­tec­tion Reg­u­la­tion) – Recital 26, Arti­cle 4(5) and Arti­cle 9
  5. Euro­pean Data Pro­tec­tion Board – Guide­lines 01/2025 on Pseu­do­nymiza­tion

About the author

Graveiens AI Edi­to­r­i­al Team. The Graveiens AI Edi­to­r­i­al Team writes prac­ti­cal guides on col­lect­ing, anno­tat­ing and val­i­dat­ing train­ing data for AI. Our writ­ers work along­side the deliv­ery teams who run data col­lec­tion, anno­ta­tion and qual­i­ty review pro­grams.

Jitendra Choubay
Jitendra Choubay
CEO & Founder

Jitendra Choubay is the CEO & Founder of Graveiens AI, leading a human-in-the-loop data services team that helps AI builders with data collection, annotation, consent-backed voice data, transcription and LLM fine-tuning. He writes on building better, ethically sourced AI training data.

Get the next Graveiens AI article

Expert notes on AI data, annotation, LLMs and eLearning — no spam, unsubscribe anytime.

Need AI Development? Data Annotation? eLearning?

Talk to Graveiens AI about data collection, annotation, voice data, RLHF/SFT, LLM evaluation and AI training data — invoiced only on approved work.

Contact Graveiens AI