Professional project

DICOM anonymization.

Medical imagingIn production

Bringing together text detection, redaction decisions and configurable handling of DICOM metadata.

My role
Developed the anonymization tool
Focus
Vision-language models · Florence-2
Example kidney ultrasound with acquisition settings, used to illustrate DICOM image anonymization
Example ultrasound · Schomynv / Wikimedia Commons · Public domain.
The interactive comparison uses synthetic identifiers and a synthetic ultrasound image. It demonstrates the redaction interaction; it does not run Florence-2 or process DICOM files.

My contribution.

What I built
The anonymization tool: Florence-2 text detection, redaction rules and configurable DICOM metadata handling.
How it works
The tool handles metadata and pixels separately, and its rules set what to remove, what to keep and what to flag for review.

Context.

Identifying information can live in both DICOM metadata and the pixels of an image. These require different handling, with careful attention to the formats a tool supports.

My approach.

I developed a tool using Florence-2 for text detection, rules to decide which regions to redact, and configurable metadata handling. The processed output returns to the calling application.

  1. Inspect image and metadata
  2. Locate embedded text
  3. Apply redaction rules
  4. Return processed output

Project considerations.

Anonymization involves more than finding text. The workflow needs explicit decisions about what to remove, what to preserve and which cases need additional review. Image formats and multiframe data also need deliberate handling.

Synthetic image · no DICOM files processed

Try the visual explanation.

US · Synthetic sample4 fictional identifiers
OriginalAnonymized
A synthetic ultrasound image with four fictional identifiers. Drag horizontally or use the arrow keys. Home reveals the anonymized image; End reveals the original. Only the text regions are covered; the underlying image stays identical.
Drag the handle across the image50% original
Synthetic image & data · visual demonstration
Explore the anonymization workflowFrom incoming DICOM to processed output
Step 1 of 6

One file. Two places to check.

Identifying information can be stored in DICOM tags and burned into image pixels.

Incoming pixels
4 example identifiersImage content preserved
Source application supplies the DICOM file.

Receive · step 1 of 6

Prepared visual explanation based on the supplied walkthrough. Synthetic image and identifiers; no file is processed.

1 min 20 sec

See the complete anonymizer workflow.

Conceptual walkthrough supplied by Olivia, with example data and illustrative results. Playback starts when you choose.

Read the workflow description
  1. Receive

    The source application supplies a DICOM file containing metadata and image pixels.

  2. Metadata

    Configured rules replace or clear identifying tags. The image pixels are unchanged at this stage.

  3. Locate text

    Florence-2 OCR locates text and its boundaries in the image.

  4. Select

    Text rules and device-layout information help choose sensitive regions; useful technical text can be retained.

  5. Redact

    Selected text regions are covered in the image pixels.

  6. Return

    The processed DICOM, with updated metadata and pixels, returns to the calling application.

Make yourself at home

Search the portfolio.

↑ ↓ navigate↵ openesc close
Quick tour

Explore