EEGdashOpenNeuroDS003848
Iss. 3848 · 6 subjects · 22 recordings · CC0
Dataset Brief · Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG

DS003848: ieeg dataset, 6 subjects#

Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG

Citation: van Blooijs D., Demuru M., Zweiphenning W, Hermes D., Leijten F., Zijlmans M. (20). Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG. 10.18112/openneuro.ds003848.v1.0.3

6-participant iEEG dataset — Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG.

iEEG · 133 (18), 68 (4) ch2048 Hz · mixedBIDS Brain Imaging Data Structure Specification v1.6.06 tasksEpilepsyOtherClinical/Intervention
Layer 01Study
What was asked
Hypothesis, independent & dependent variables, paradigm, cohort, and the editorial caveats around what the recordings can and cannot answer.
Layer 02Signal · BIDS
What was recorded
Sidecars, channels & electrodes, coordinate system, event semantics, and quality stats from the NEMAR pipeline when available.
Layer 03Training · ML
What you can train on
Recommended access modes — MNE Raw, braindecode windows, PyTorch DataLoader — plus the targets the metadata makes addressable.
§ 01Access · Get started

Quickstart#

Install

pip install eegdash

Access the data

from eegdash.dataset import DS003848

dataset = DS003848(cache_dir="./data")
# Get the raw object of the first recording
raw = dataset.datasets[0].raw
print(raw.info)

Filter by subject

dataset = DS003848(cache_dir="./data", subject="01")

Advanced query

dataset = DS003848(
    cache_dir="./data",
    query={"subject": {"$in": ["01", "02"]}},
)

Iterate recordings

for rec in dataset:
    print(rec.subject, rec.raw.info['sfreq'])

If you use this dataset in your research, please cite the original authors.

BibTeX

@dataset{ds003848,
  title = {Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG},
  author = {van Blooijs D. and Demuru M. and Zweiphenning W and Hermes D. and Leijten F. and Zijlmans M.},
  doi = {10.18112/openneuro.ds003848.v1.0.3},
  url = {https://doi.org/10.18112/openneuro.ds003848.v1.0.3},
}
§ 02Study · The README

About This Dataset#

Dataset description

This dataset is part of a bigger dataset of intracranial EEG (iEEG) called RESPect (Registry for Epilepsy Surgery Patients), a dataset recorded at the University Medical Center of Utrecht, the Netherlands.

It consists of 12 patients: six patients recorded intraoperatively using electrocorticography (acute ECoG), six patients with long-term recordings (3 patients recorded with ECoG and 3 patients recorded with stereo-encephalography SEEG). For a detailed description see Demuru M, van Blooijs D, Zweiphenning W, Hermes D, Leijten F, Zijlmans M, on behalf of the RESPect group. “A practical workflow for organizing clinical intraoperative and long-term iEEG data in BIDS“€, submitted to NeuroInformatics in 2020.

This data is organized according to the Brain Imaging Data Structure specification. A community- driven specification for organizing neurophysiology data along with its metadata. For more information on this data specification, see https://bids-specification.readthedocs.io/en/stable/ Each patient has their own folder (e.g., sub-RESP0280) which contains the iEEG recordings data for that patient, as well as the metadata needed to understand the raw data and event timing.

Two different implementation of the BIDS structure were done according to the different type of recordings (i.e. intraoperative or long-term) Intraoperative ECoG Surgery with intraoperative ECoG is composed of three main situations that can be logically grouped into BIDS sessions: * Pre-resection sessions, consisting of all recordings (with different configurations of the grid and strips/depth) carried out before the surgeon has started the planned resection. * Intermediate sessions, consisting of all subsequent recordings performed before any iterative extension of the resection area. * Post-resection sessions, consisting of all the recordings performed after the last resection.

Each situation is labelled with an increasing number starting from 1, indicative of the period in time respective to the surgical resection and a consecutive letter (starting from A) indicative of the position of the grid and strip/depth for a given session.

As an example see patient RESP0280 who had 4 sessions recorded: two pre-resection sessions, one intermediate sessions and one post-resection session. The first session is SITUATION1A consisting of the first recording, then the grid was moved to another position, resulting in SITUATION1B. After that, the surgeon resected part of the brain and then there was another recording(SITUATION2A). Finally the surgeon applied a resection for the last time and the recording after that was defined as SITUATION3A. In long-term recordings, data that are recorded within one monitoring period are logically grouped in the same BIDS session and stored across runs indicating the day and time point of recording in the monitoring period.

If extra electrodes were added/removed during this period, the session was divided into different sessions (e.g. ses-1A and ses-1b). We use the optional run key-value pair to specify the day and the start time of the recording (e.g. run-021315, day 2 after implantation, which is day 1 of the monitoring period, at 13:15).

The task key-value pair in long-term iEEG recordings describes the patient´s state during the recording of this file. Different tasks have been defined, such as “rest“€ when a patient is awake but not doing a specific task, “sleep“€ when a patient is sleeping the majority of the file, or “SPESclin“€ when the clinical SPES protocol has been performed in this file. Other task definitions can be found in the annotation syntax (UMCU-EpiLAB/umcuEpi_longterm_ieeg_respect_bids). License This dataset is made available under the Public Domain Dedication and License CC v1.0, whose full text can be found at https://creativecommons.org/publicdomain/zero/1.0/.

We hope that all users will follow the ODC Attribution/Share-Alike Community Norms (http://www.opendatacommons.org/norms/odc-by-sa/); in particular, while not legally required, we hope that all users of the data will acknowledge by citing Demuru M, van Blooijs D, Zweiphenning W, Hermes D, Leijten F, Zijlmans M, on behalf of the RESPect group. “A practical workflow for organizing clinical intraoperative and long-term iEEG data in BIDS“€, submitted to NeuroInformatics in 2020, in any publications.

Code available at: UMCU-EpiLAB. Acknowledgements We would like to thank the patients for providing their data for this dataset, the RESPect team of University Medical Center of Utrecht, for the acquisition of the dataset.

Please cite Demuru M, van Blooijs D, Zweiphenning W, Hermes D, Leijten F, Zijlmans M, on behalf of the RESPect group. “A practical workflow for organizing clinical intraoperative and long-term iEEG data in BIDS“€, submitted to NeuroInformatics in 2020, in any publications.

§ 03Cohort · Participants

Cohort#

Dataset Statistics#

Age distribution by gender (n=6, range 14–46 yr, mean 25.3 yr)

101545
Female · 2Male · 4

Sex composition

6
subjects
Female
2
Male
4
F : M ratio
0.50 : 1
33% female · n = 6 subjects with reported sex.

Channel counts (ch)

68133

Sampling frequencies (Hz)

5122048

Total recording duration: 20 h 16 min

§ 04Signal · Electrodes & trace

Signal · Electrodes & live trace#

Fig. 01 Signal & montage 133 (18), 68 (4) ch · iEEG · 2048 Hz · mixed · 6 subjects, 22 recordings
Live trace viewer — sub-RESP0699 · ses-1 · task-sleep · run-020722

Showing one representative recording out of 6 subjects and 22 recordings in this dataset. Browse the full set on OpenNeuro; drop any other _ieeg.{set,edf,bdf,vhdr} file onto the viewer (or pass ?ieeg=<url>) to inspect it.

Electrode layout — iEEG · 110 sensors — 110 channels

NEMAR Processing Statistics#

The plots below are generated by NEMAR’s automated EEG pipeline. The histogram shows pipeline success for data cleaning and ICA decomposition, the percentage of data frames and EEG channels retained after artefact removal, line noise per channel (RMS, dB), and the age/gender distribution of participants.

HED event descriptors word cloud HED event descriptors word cloud — DS003848
§ 05Manifest · BIDS tree

Manifest#

File Explorer#

Browse the BIDS file structure of this dataset. Records are fetched on demand from the EEGDash catalog the first time you open the explorer.

Recordings
Files
Subjects
Modalities
Click to load file structure…
Full dataset metadata table

Dataset ID

DS003848

Title

Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG

Author (year)

Blooijs2021

Canonical

Importable as

DS003848, Blooijs2021

Year

20

Authors

van Blooijs D., Demuru M., Zweiphenning W, Hermes D., Leijten F., Zijlmans M.

License

CC0

Citation / DOI

10.18112/openneuro.ds003848.v1.0.3

Source links

OpenNeuro | NeMAR | Source URL

Copy-paste BibTeX
@dataset{ds003848,
  title = {Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG},
  author = {van Blooijs D. and Demuru M. and Zweiphenning W and Hermes D. and Leijten F. and Zijlmans M.},
  doi = {10.18112/openneuro.ds003848.v1.0.3},
  url = {https://doi.org/10.18112/openneuro.ds003848.v1.0.3},
}
§ 06API · Programmatic access

API Reference#

Signature
eegdash.dataset
class
eegdash.dataset.DS003848(cache_dir, query=None, s3_bucket=None, **kwargs)
Bases: EEGDashDataset
Author (year)Blooijs2021
Canonical
Importable asDS003848 · Blooijs2021
Sourceeegdash/dataset/registry.py · [source ↗]
class eegdash.dataset.DS003848(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#

Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG

Study:

ds003848 (OpenNeuro)

Author (year):

Blooijs2021

Canonical:

Also importable as: DS003848, Blooijs2021.

Modality: ieeg; Experiment type: Clinical/Intervention; Subject type: Epilepsy. Subjects: 6; recordings: 22; tasks: 6.

Parameters:
  • cache_dir (str | Path) – Directory where data are cached locally.

  • query (dict | None) – Additional MongoDB-style filters to AND with the dataset selection. Must not contain the key dataset.

  • s3_bucket (str | None) – Base S3 bucket used to locate the data.

  • **kwargs (dict) – Additional keyword arguments forwarded to EEGDashDataset.

data_dir#

Local dataset cache directory (cache_dir / dataset_id).

Type:

Path

query#

Merged query with the dataset filter applied.

Type:

dict

records#

Metadata records used to build the dataset, if pre-fetched.

Type:

list[dict] | None

Notes

Each item is a recording; recording-level metadata are available via dataset.description. query supports MongoDB-style filters on fields in ALLOWED_QUERY_FIELDS and is combined with the dataset filter. Dataset-specific caveats are not provided in the summary metadata.

References

OpenNeuro dataset: https://openneuro.org/datasets/ds003848 NeMAR dataset: https://nemar.org/dataexplorer/detail?dataset_id=ds003848 DOI: https://doi.org/10.18112/openneuro.ds003848.v1.0.3 NEMAR citation count: 1

Examples

>>> from eegdash.dataset import DS003848
>>> dataset = DS003848(cache_dir="./data")
>>> recording = dataset[0]
>>> raw = recording.load()
__init__(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#
save(path: str, overwrite: bool = False, offset: int = 0)[source]#

Save datasets to files by creating one subdirectory for each dataset:

path/
    0/
        0-raw.fif | 0-epo.fif
        description.json
        raw_preproc_kwargs.json (if raws were preprocessed)
        window_kwargs.json (if this is a windowed dataset)
        window_preproc_kwargs.json  (if windows were preprocessed)
        target_name.json (if target_name is not None and dataset is raw)
    1/
        1-raw.fif | 1-epo.fif
        description.json
        raw_preproc_kwargs.json (if raws were preprocessed)
        window_kwargs.json (if this is a windowed dataset)
        window_preproc_kwargs.json  (if windows were preprocessed)
        target_name.json (if target_name is not None and dataset is raw)
Parameters:
  • path (str) –

    Directory in which subdirectories are created to store

    -raw.fif | -epo.fif and .json files to.

  • overwrite (bool) – Whether to delete old subdirectories that will be saved to in this call.

  • offset (int) – If provided, the integer is added to the id of the dataset in the concat. This is useful in the setting of very large datasets, where one dataset has to be processed and saved at a time to account for its original position.

Access modesMNE → braindecode → PyTorch → ML
.rawMNE Raw object — standard tools (filter, epoch, ICA, plot_psd).mne
DataLoaderWraps the windowed dataset into a PyTorch DataLoader; supports parallel workers and on-the-fly augmentations.pytorch
Zarr cacheOptional braindecode Zarr mirror for fast resume; persisted to cache_dir.zarr
Hugging FacePre-bundled mirror at EEGDash/ds003848 · pull with datasets.load_dataset("EEGDash/ds003848").huggingface
Croissant 1.0Machine-readable JSON-LD descriptorDS003848.croissant.json (MLCommons schema, ingestible by PyTorch / TensorFlow / JAX).mlcommons
Examples using EEGDashcurated · start here

Swap any load_dataset(...) call for ds003848 to reproduce the tutorial on this dataset.

Citation

van Blooijs D., Demuru M., Zweiphenning W, Hermes D., Leijten F., … (20). Dataset Clinical Epilepsy iEEG to BIDS - RESPect_longterm_iEEG. 10.18112/openneuro.ds003848.v1.0.3

Provenance

¹Contributed to openneuro in BIDS format.

²Curated & ingested by the EEGDash catalog; see CITATION.cff for canonical reference.

³Persistent identifier: 10.18112/openneuro.ds003848.v1.0.3.

BIDS
BIDS Brain Imaging Data Structure Specification v1.6.0
Sidecars
events · events.json · channels · electrodes · coordsystem
Machine-readable

See Also#