DICAT (DICOM Anonymization Tool)
DICAT is a simple graphical tool that facilitates DICOM (Digital Imaging and Communications in Medicine) de-identification directly on a local workstation. It was designed to work on all major operating systems (Windows, Linux and OSX) and is very light in terms of dependencies (Python). Binaries (with no dependencies) have been compiled for all operating systems and made available with each release of DICAT.
With the increasing use of web-based database systems, such as LORIS (Das et al., 2011, Das et al., 2016), for large scale imaging studies, de-identification of DICOM datasets becomes a requirement before they can be uploaded in such databases.
Typical Flow Chart of DICOM de-identification.
Before DICOM datasets can be uploaded into a web-based database, identifying information stored in the DICOM header (such as patient name, date of birth) should be removed.
DICAT produces two archival outputs: a back-up of the original DICOM files, and a de-identified DICOM dataset that can then be uploaded or transferred to other systems.
DICAT also features an ID key log that can be used to keep a record of the original candidate name (participant/patient) linked to their anonymized study identifier, for reference by study coordinators.
How to install and run DICAT
Installation instructions vary depending on the operating system used. See below for detailed information.
Running DICAT will open a window with three different tabs:
- A simple "Welcome to DICAT" tab giving a short description of the tool
- A "DICOM de-identifier" tab, in which DICOM de-identification will take place
- An "ID Key" tab, containing the key between candidates' name and their IDs
Welcome page of DICAT.
Using DICAT executables/applications
Executables of DICAT have been created for most systems and can be found with each release of DICAT in the Github repository. Download the executable relevant to your system and move it to any folder of your choice.
To open DICAT, simply double click on the executable.
Please note that for some obscure reason, DICAT is extremely slow to run on Windows OS.
From the source code
For Ubuntu distributions, TkInter can be installed via apt-get:
sudo apt-get install python-tk
The PyDICOM package is also required by DICAT.
For most platform, PyDICOM can be installed via easy_install:
sudo easy_install pydicom
To install DICAT source code on a computer, download and save the content of the current Github repository into a workstation.
DICAT can be started by executing
DICAT.py script with a Python compiler.
On UNIX computers (Linux and Mac OS X), open a terminal, go to the main
directory of DICAT source code (
dicat directory) and run the following:
How to use the DICOM de-identifier of DICAT?
DICOM de-identification with DICAT.
In the "DICOM de-identifier" tab (1), use the select button (2) to choose a directory containing DICOM files to de-identify.
Once a directory containing DICOM files have been selected (as described in the above section), the DICOM fields can be viewed when clicking on the “View DICOM fields” button (3).
The DICOM fields will be displayed in a table with editable fields in black (4) and non-editable fields greyed out (5). The non-editable fields will be replaced by empty strings in the DICOM files when running the de-identification, while the editable fields will be replaced by the value entered by the user. By default, editable fields are “PatientName”, “PatientBirthDate” and “PatientSex”.
The “Clear” button (6) will erase values from all editable fields.
Finally, once the user has finalized the edits, clicking on the “De-identify” button (7) will run the de-identification tool on the DICOM dataset.
How to use the ID Key of DICAT
The ID Key feature of DICAT allows storage of the key between identifiable candidates's information (Real Name and Date of Birth) and its study’s identifier. This information will be stored locally on the workstation within an XML file (candidate.xml) in DICAT's directory. See the following figure for detailed information on how to use this feature.
ID key feature of DICAT.
This feature (1) allows storage of the mapping information between candidates’s information and study IDs. This information will be stored in an XML file that can be either created (2) or opened (3). Changes will be automatically saved.
A candidate (participant/patient) can be looked up using the “Search candidate” button (5) after having entered either the “Identifier” or the “Real Name” text fields available in (4).
The “Clear fields” button (6) allows clearing the text in those text fields.
A new candidate can be registered using the “Add candidate” button (7) after having entered the “Identifier”, “Real Name” and “Date of birth” information in the text fields of (4).
Clicking on a subject row (8) of the table displayed at the bottom of the application will automatically populate the text fields (4) with the information of the candidate.
The “Real Name” or “Date of birth” of that candidate can be edited if needed by altering the field and clicking on the “Edit candidate” button (9).
Finally, the data table of candidate is sortable by clicking on any of the column headers (10).
Ayan Sengupta firstname.lastname@example.org - Concept, DICOM-toolkit implementation, Pydicom implementation
Cecile Madjar email@example.com - GUI implementation, PyDICOM implementation, python integration of DICOM-toolkit, ID key
Dave MacFarlane firstname.lastname@example.org - ID Key
Samir Das email@example.com - Concept and guidance
Daniel Krötz firstname.lastname@example.org - Documentation, testing on Windows
Christine Rogers email@example.com - Documentation
Leigh Evans firstname.lastname@example.org - Video tutorial
Derek Lo email@example.com - Logo design