preraulab / EDF_deidentify_toolbox

Code for EDF file deidentification implemented in Matlab and Python.
4 stars 1 forks source link

Prerau Lab Matlab and Python functions for Deidentifying EDF files



Table of Contents


General Information

European Data Format (EDF) is one of the primary ways polysomnography and EEG data are stored. De-identification of EDF files is a necessary step for safe sharing of data, removing any identifying information from the file headers. Often EDF de-identification tools are part of some larger toolbox or software package, making distribution to clinical sites and personnel more difficult.

Here we provide standalone GUI-based programs for PC, Mac, and Linux as well as functional source code in MATLAB and python to facilitate de-identification of EDF files. The program overwrites the following header data fields:

Patient Info: Overwrites with "X X X X"

Patient Recording Info: Overwrites with "Startdate X X X X"

Date: Overwrites with 01.01.01

Note: There is currently no standard for de-identification of the StartDate field under EDF/EDF+ specifications. We have chosen to use 01.01.01 since it will not return an error for readers or viewers that verify date validity.

This format is designed to retain compliance with EDF+ specification standards.


Deidentifier Standalone Program

The python code used to create these standalone GUI programs is available in the "GUI" folder. Let us know if you use this code to compile a standalone GUI for an OS other than Mac, PC, or Linux, we would love to add it to what we have available.

Download standalone programs for:

Click here for instructions on how to use EDF De-Identifier
## Deidentification Functions The Matlab and Python implementations of the de-identification function are available in the "Functions" folder. For more information and example code visit the [matlab](https://github.com/preraulab/EDF_deidentify_toolbox/tree/master/Functions/matlab) or [python](https://github.com/preraulab/EDF_deidentify_toolbox/tree/master/Functions/python) subfolder. Source code for EDF de-identification functions are available for direct download here: