Palo Alto Health Labs
Resource · Data labeling

Medical imaging data for AI: DICOM de-identification, annotation formats and labeling tools

De-identify with a named DICOM profile, check the pixels, pick the label format first, and match the tool to the job.

Format
Guide
Read time
12 min
Sources
DICOM standard, NIfTI, tool docs, 45 CFR 164.514, HHS, TCIA, PubMed
Updated
Oct 27, 2026

The short answer

To send medical images to a labeling team, de-identify the DICOM with a named PS3.15 Annex E profile and options, check the pixels for burned-in text and faces, and agree on the label format before work starts. Use DICOM SEG if labels must stay tied to the source study, RTSTRUCT only when a radiation-therapy system needs it, and NIfTI for research pipelines. 3D Slicer, MONAI Label and CVAT suit different jobs: 3D Slicer for expert 3D segmentation, MONAI Label for AI-assisted labeling of CT and MRI at scale, and CVAT for 2D images and video. CVAT does not read DICOM natively.

Removing tags is not the same as de-identifying a study. The DICOM standard says the profiles “should be part of” a de-identification process, not a replacement for it.

De-identification: DICOM PS3.15 Annex E

DICOM PS3.15 Annex E (Attribute Confidentiality Profiles) defines action codes for each attribute: D (replace with a dummy value), Z (zero length or dummy), X (remove), K (keep), C (clean) and U (replace the UID consistently across related instances). It also requires the de-identifier to set Patient Identity Removed (0012,0062) to YES and to record what was done in De-identification Method (0012,0063) and the Method Code Sequence (0012,0064), using codes from CID 7050. Ask for that record. It tells the labeling team, and any later auditor, exactly which profile and options were applied.

Profile or optionWhat it doesNotes from the standard
Basic Profile (E.2)Removes or replaces identity, demographics, personnel, institution, UIDs, dates and times, descriptions and all private attributesCalled “an extremely conservative approach”. Does not touch pixel data unless a Clean Pixel option is added
Clean Pixel DataBurned-in text that matches removed attributes must be removed from the pixels; sets Burned In Annotation (0028,0301) = NOPixels must be changed (blacked out). An overlay, graphic or shutter over them is not enough. May need a human operator
Clean Recognizable Visual FeaturesPixel data that would let someone be recognized is removed or distorted; sets (0028,0302) = NORelevant to high-resolution head and neck volumes. Can make images unusable for their purpose
Clean DescriptorsCleans free-text descriptions (for example Study and Series Description) instead of deleting themKeeps useful series descriptions that the Basic Profile would remove
Retain Longitudinal Temporal Information with Modified DatesDates are shifted but intervals are kept; (0028,0303) = MODIFIEDMutually exclusive with the Full Dates option
Retain Patient CharacteristicsKeeps sex, age, size, weight and similar attributesOften needed for dose and body-size analyses
Retain Device / Institution IdentityKeeps device serial numbers, station name and institutionUseful for site and scanner effects; adds identifying context
Retain UIDsKeeps original Study, Series and SOP Instance UIDsUID roots can be traceable to an organization; access to the originals allows re-identification
Retain Safe PrivateKeeps private attributes known to be safeSome values (for example PET SUV scaling factors) may exist only in private tags. Vendors do not guarantee safety

The same standard notes that de-identifying the attributes “does not imply de-identification of the Information Object”. Pixels, private tags and free text can still carry identity.

How this lines up with HIPAA

Under 45 CFR 164.514, data is de-identified either by Expert Determination (a qualified expert finds the risk “very small” and documents the methods and results) or by Safe Harbor (removing 18 kinds of identifiers and having no actual knowledge that the rest could identify someone). The Safe Harbor list includes all elements of dates except the year, device identifiers and serial numbers, biometric identifiers, “full face photographic images and any comparable images”, and any other unique identifying number, characteristic or code. The HHS OCR de-identification guidance says an identifier must be removed wherever it appears, including free text, and that neither method brings risk to zero.

Our reading, not a legal opinion: some DICOM options sit uneasily with Safe Harbor. Retain Full Dates keeps dates that Safe Harbor removes, and Retain Device Identity keeps serial numbers that Safe Harbor lists. If a project needs them, plan for Expert Determination or another route your privacy officer approves. As one public example, TCIA submission and de-identification overview describes TCIA's process: the Basic Profile plus Clean Pixel Data, Clean Descriptors, Retain Longitudinal Temporal Information with Modified Dates, Retain Patient Characteristics and Retain Safe Private. TCIA says this process meets Safe Harbor. It shifts dates by a random offset that keeps intervals and has curators check every image for burned-in PHI.

Sources: PS3.15 Annex E, PS3.15 E.3 (options), E.3.9 Retain UIDs, E.3.10 Retain Safe Private, 45 CFR 164.514, HHS OCR de-identification guidance, TCIA submission and de-identification overview.

Burned-in text and faces

Tag rules don’t touch the pixels. PS3.15 notes that CT images “do not normally contain such burned in annotation, whereas Ultrasound images routinely do”. Screen captures, scanned documents and secondary-capture images deserve the same check. Under Clean Pixel Data the stored pixel values must be changed. Covering them with an overlay or shutter is not enough, because a receiving system may ignore it.

Faces are the other pixel-level risk. E.3.2 Clean Recognizable Visual Features says a 3D rendering of high-resolution head and neck imaging may be enough to identify someone. In a published test with 84 volunteers, face-recognition software was given each person’s photographs and faces reconstructed from research head MRI; for 70 of 84 (83%), the correct participant’s MRI was the top match (Schwarz et al., N Engl J Med 2019;381(17):1684–1686). The authors note that defacing software is rarely used because it can degrade some brain measurements. Decide early whether head scans will be defaced, and whether your labels need the facial region at all.

Sources: PS3.15 Annex E, E.3.2 Clean Recognizable Visual Features, Schwarz et al., N Engl J Med 2019;381(17):1684–1686.

Annotation formats: DICOM SEG, RTSTRUCT and NIfTI

FormatGeometryMetadata it carriesTypical use
DICOM SEG (Segmentation IOD)Multi-frame raster masks: BINARY (1 bit), FRACTIONAL (probability or occupancy) or LABELMAPShares the Frame of Reference of the source images; each segment has a number, label, coded category and type, and an algorithm type (MANUAL, SEMIAUTOMATIC, AUTOMATIC)Delivering labels that stay linked to the source DICOM study; recommended by 3D Slicer for storing segmentations in DICOM
DICOM RTSTRUCT (RT Structure Set)Planar contours: point triplets in patient coordinates (mm), per sliceROI number, name, generating algorithm and the Frame of Reference it was drawn onRadiation therapy workflows that expect structure sets. 3D Slicer notes they cannot store arbitrarily complex 3D shapes
NIfTI-1 (.nii / .nii.gz)Voxel volume with a 348-byte header and an affine (qform/sform) from voxel to world coordinatesNo study or patient model; label names need a separate lookup tableResearch pipelines (it came from the FMRI tool community). 3D Slicer loads NIfTI-1 only, not NIfTI-2
NRRD / .seg.nrrd (3D Slicer)Labelmap volume; 4D if segments overlapCustom header fields hold segment names, terminology and colorsWorking files inside 3D Slicer; export to DICOM SEG for delivery

Two practical points. First, keep geometry: DICOM SEG and RTSTRUCT carry the Frame of Reference, and a NIfTI mask is only usable if its affine matches the image it was drawn on. Second, NIfTI has no patient fields, but its header has an 80-character free-text description field (“any text you like”), an auxiliary file name field and optional extensions. In our view these are worth checking for identifiers after conversion. For writing DICOM SEG from research formats, the open-source libraries dcmqi (Herz et al., Cancer Res 2017;77(21):e87–e90 (dcmqi)) and highdicom (Bridge et al., J Digit Imaging 2022;35(6):1719–1737 (highdicom)) are described in the peer-reviewed literature.

Sources: PS3.3 A.51 Segmentation IOD, C.8.20.2 Segmentation Image Module, C.8.20.4 Segment Description, PS3.3 A.19 RT Structure Set IOD, C.8.8.5 Structure Set Module, C.8.8.6 ROI Contour Module, NIfTI-1, NIfTI-1 header fields, NIfTI-2, 3D Slicer Segmentations module, 3D Slicer data loading and saving.

Labeling tools: 3D Slicer, MONAI Label and CVAT

ToolHow it worksDICOM and formatsFits best for
3D SlicerDesktop. Segment Editor for 2D/3D/4D images: paint, threshold, grow from seeds, fill between slices; overlapping segmentsReads DICOM natively. Exports DICOM SEG (Reporting extension), RTSTRUCT (SlicerRT extension), NRRD and NIfTIExpert manual and semi-automatic 3D segmentation
MONAI LabelServer that hosts AI-assisted labeling apps and active learning; clients include 3D Slicer, OHIF and MITK for radiologyRadiology app lists NIfTI, NRRD and DICOM (CT, MRI); connects to PACS via DICOMweb. Apache-2.0Model-in-the-loop labeling of large CT or MRI sets
CVATWeb tool for images, video and point clouds; brush tool for pixel masksNo native DICOM. A repo utility converts some DICOM data to PNG first. Exports COCO, Pascal VOC, segmentation masks, YOLO and others2D images, video (MONAI Label lists it for endoscopy and pathology), and converted 2D slices

MONAI Label’s README says 3D Slicer is its most tested client for radiology studies. For CVAT, the repository’s CVAT dicom_converter utility turns DICOM into ordinary images. Our reading of its script is that it rescales pixel values into PNG, so treat any CVAT mask on converted slices as 2D work that needs to be mapped back to the original geometry.

Sources: 3D Slicer Segment Editor, 3D Slicer Segmentations module, 3D Slicer DICOM module, MONAI Label documentation, MONAI Label on GitHub, Diaz-Pinto et al., Med Image Anal 2024;95:103207 (MONAI Label), CVAT overview, CVAT tasks page, CVAT dicom_converter utility.

What to send an imaging labeling team

Our practice summary, based on the sources above:

Common pitfalls

Key references

Related resources

Frequently asked questions

Is removing DICOM tags enough to de-identify medical images?

No. DICOM PS3.15 says de-identifying the attributes does not de-identify the object. Burned-in text in the pixels, faces in head and neck volumes, private tags and free-text fields can all still identify a patient, so they need their own checks.

Should imaging labels be delivered as DICOM SEG, RTSTRUCT or NIfTI?

Use DICOM SEG when labels must stay linked to the source study; 3D Slicer recommends it for storing segmentations in DICOM. Use RTSTRUCT when a radiation-therapy system needs contours. Use NIfTI for research pipelines, and check that the affine matches the source image.

Can CVAT open DICOM files?

Not natively. CVAT reads ordinary image formats, video and point clouds. Its repository includes a utility that converts some DICOM data to PNG, so masks are drawn on converted 2D slices and have to be mapped back to the original geometry.

Does DICOM de-identification satisfy HIPAA Safe Harbor?

It depends on the options used. Safe Harbor removes all elements of dates except the year, plus device serial numbers and full-face or comparable images. In our reading, the DICOM options that keep full dates or device identity don't fit Safe Harbor, and Expert Determination is the other HIPAA route.

Scope it in 30 minutes

Book a scoping call and we'll name the smallest engagement that moves you forward. Most teams start with the fixed-scope Initial Audit.

Book a 30-min scoping call

Prefer to write? Send a short note.