Polysomnography file format
European Data Format (EDF)
Additional PSG formats
Note
CÉAMS - Centre d’études avancées en médecine du sommeil (ceams-carsm)
Annotations file format
The columns of the annotations file are as follows:
group : The category of the annotation (annotations with different names can be grouped into the same category), e.g. artifact
name: The text label of the annotation, e.g., art_snooz
start_sec: The onset of the annotation in seconds, e.g., 300
duration_sec : The duration of the annotation in second, e.g., 30
channels : The list of channels on which the annotation occurs, e.g., [‘LOC’, ‘ROC’]
[Optional Column: time elapsed (HH:MM:SS)] : The time elapsed since the beginning of the recording, e.g., 00:05:00
Note
The time elapsed (HH:MM:SS) column is optional and intended solely for human readability; it is not processed by Snooz.
If this column is omitted, all tools will function normally.
When Snooz generates output .tsv files, the time elapsed column is automatically calculated from the start of the recording using the start_sec column.
Warning
The cells regarding the time elapsed (HH:MM:SS) column need to be properly configured in Excel or any other spreadsheet application to ensure that the time elapsed column has the correct format.
For example, the following figure shows the configuration in Excel for the time elapsed (HH:MM:SS) column.
To have an example of the Snooz annotations file see Snooz_accessory_file.tsv
The Snooz accessory .tsv file is human-readable and can be opened in any text editor or spreadsheet application (such as Excel). Items are separated by tabs, and decimal points are marked with a dot. The encoding format is UTF-8.
Item separator : t
Decimal separator : .
Encoder format : UTF-8
Many converters have been implemented in Snooz in order to create the Snooz accessory file for your cohort. I recommend exploring the preprocessing category to see if your annotation files can be converted into Snooz accessory files. The Snooz accessory file can be imported in the open-source universal viewer EDFbrowser. For more details, see EDFbrowser compatibility.
Sleep staging
Sleep stages are represented by numbers in Snooz, as shown in the lookup table below:
Description |
name |
|---|---|
Awake |
0 |
N1 |
1 |
N2 |
2 |
N3 |
3 |
REM |
5 |
Unscored |
9 |
Sleep staging is included in the annotation file. Snooz expects sleep staging annotations to be grouped by stage, and the annotation name represents the corresponding stage.
group |
name |
start_sec |
duration_sec |
channels |
|---|---|---|---|---|
stage |
9 |
0 |
30 |
[] |
stage |
9 |
30 |
30 |
[] |
stage |
0 |
60 |
30 |
[] |
stage |
0 |
90 |
30 |
[] |
stage |
0 |
120 |
30 |
[] |
stage |
1 |
150 |
30 |
[] |
stage |
1 |
180 |
30 |
[] |
stage |
2 |
210 |
30 |
[] |
stage |
2 |
240 |
30 |
[] |
stage |
2 |
270 |
30 |
[] |
stage |
2 |
300 |
30 |
[] |
stage |
3 |
330 |
30 |
[] |
stage |
5 |
360 |
30 |
[] |
stage |
2 |
390 |
30 |
[] |
stage |
2 |
420 |
30 |
[] |
Warning
Users can rename their sleep stages according to this table using the “Edit Annotations” tool under the Preprocessing menu. S4 stages are not supported in Snooz—please rename them as N3 for minimal compatibility.
Note
To download a sample accessory file containing only sleep stages : snooz_sleep_stages.tsv