The Brain Imaging Data Structure (BIDS):
an open community standard for neuroscience
Some materials reused from slides by
My Goals
Brain Imaging Data Structure (BIDS) is …
Why do we need standards in science?
BIDS Standard Features
Figure from: The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments
By Gorgolewski et al. Scientific Data, volume 3 (2016) https://doi.org/10.1038/sdata.2016.44
Modularity (explained with pasta)
From: Remi’s slides 10.5281/zenodo.5863713
Derivative data*
Source data
Raw data
* as expected from reading the method section
Modularity (explained with pasta, frequent reality)
From: Remi’s slides 10.5281/zenodo.5863713
Shared dataset
Shared dataset
with a README
Modularity (with BIDS)
MyBidsProject/
├── sourcedata/
│ ├── ingredient-1/
│ ├── ingredient-2/
│ └── raw/
├── derivatives/
│ ├── pasta-1/
│ └── pasta-2/
├── README.md
└── dataset_description.json
Folder organization
MyBidsProject/
├── sourcedata/
│ └── raw/
│ ├── sub-01/
│ │ ├── [ses-01/]
│ │ │ ├── anat/
│ │ │ ├── func/
│ │ │ ├── beh/
│ │ │ ├── eeg/
│ │ │ └── …
│ │ └── [ses-02/]
│ ├── sub-02/
│ └── dataset_description.json
├── derivatives/
├── README.md
└── dataset_description.json
Typically you find these “raw BIDS” datasets being used/shared
File naming
key1-value_key2-value_suffix.extension
raw/
├── sub-01/
│ ├── [ses-01/]
│ │ ├── anat/
│ │ └── …
…
“Software X says that this is not a BIDS valid filename.
What is a BIDS way to name files?”
File naming
sub-01/
└─ ses-01/
├─ anat/
│ ├─ sub-01_ses-01_T1w.json
│ └─ sub-01_ses-01_T1w.nii.gz
└─ eeg/
├─ sub-01_ses-01_task-olfloc_run-01_eeg.edf
├─ sub-01_ses-01_task-olfloc_run-01_eeg.json
├─ sub-01_ses-01_task-olfloc_run-01_events.tsv
└─ sub-01_ses-01_task-olfloc_run-01_channels.tsv
MRI anatomical (anat/) filename template
sub-<label>[_ses-<label>][_task-<label>][_acq-<label>][_ce-<label>][_rec-<label>][_run-<index>][_part-<mag|phase|real|imag>]_<suffix>.json
sub-<label>[_ses-<label>][_task-<label>][_acq-<label>][_ce-<label>][_rec-<label>][_run-<index>][_part-<mag|phase|real|imag>]_<suffix>.nii[.gz]
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_eeg.<extension>
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_eeg.json
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.json
sub-<label>[_ses-<label>]_task-<label>[_acq-<label>][_run-<index>]_events.tsv
File formats (extensions)
BIDS strives to use already existing and used in the community standards, again following 80/20 rule (Pareto principle):
Metadata
sub-control01_task-nback_bold.nii - data
sub-control01_task-nback_bold.json - metadata
sub-control01_task-nback_events.tsv - data
sub-control01_task-nback_events.json - metadata
https://bids-specification.readthedocs.io/en/stable/glossary.html lists all metadata fields, which are originally defined in https://github.com/bids-standard/bids-specification/blob/master/src/schema/objects/metadata.yaml
Example:� sub-control01_task-nback_bold.json
{
"TaskName": "N Back",
"RepetitionTime": 0.8,
"EchoTime": 0.03,
"FlipAngle": 78,
"MultibandAccelerationFactor": 4,
"ParallelReductionFactorInPlane": 2,
"PhaseEncodingDirection": "j",
"DeviceSerialNumber": "11035",
}
Common metadata
MyBidsDataset
├─ sub-control01
│ └─ func
│ └─ sub-control01_task-nback_bold.nii
├─ sub-control02
│ └─ func
│ └─ sub-control02_task-nback_bold.nii�└─ task-nback_bold.json
“I have 40 subjects, with 2 sessions and 4 runs per subject per session.
I have 320 JSON files to edit? HELP!”
MyBidsDataset
├─ sub-control01
│ └─ func
│ ├─ sub-control01_task-nback_bold.json
│ └─ sub-control01_task-nback_bold.nii
└─ sub-control02
└─ func
├─ sub-control02_task-nback_bold.json
└─ sub-control02_task-nback_bold.nii
Tabular (meta)data - TSV files
MyBidsDataset
├─ sub-control01/
│ └─ func/
│ └─ sub-control01_task-nback_bold.nii
├─ sub-control02/
│ └─ func/
│ └─ sub-control02_task-nback_bold.nii
├─ participants.tsv
└─ participants.json
participant_id\tage\tsex
sub-control01\t31\tM
sub-control02\t25\tM
{
"participant_id": {
"LongName": "patient identification",
"Description": "anonymized, BIDS compatible identification",
"Annotations": {
"IsAbout": {
"TermURL": "nb:ParticipantID",
"Label": ""
},
"Identifies": "participant"
}
},
"sex": {
"Levels": {
"M": "Male",
"F": "Female"
},
...
}
added by NeuroBagel
Standards beyond file formats: BIDS is a meta-standard
Figure from: BIDS Starter Kit https://bids-standard.github.io/bids-starter-kit/#philosophy
Why do we need standards in science?
The FAIR principles for data management and stewardship
Findable
Accessible
Interoperable
Reusable
The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data. Wilkinson et al. (2016)
FAIR Data archives embrace (and help develop) BIDS
The OpenNeuro resource for sharing of neuroscience data. eLife. Markiewicz et al. (2022)
BIDS enables uniform sharing of a large amount of data
It is estimated that measurements from more than 200,000 individuals are currently stored in BIDS format in research centers and data archives
From: The past, present, and future of the brain imaging data structure (BIDS)
By Poldrack et al. Imaging Neuroscience (2024) 2: 1–19. https://doi.org/10.1162/imag_a_00103
The ABCD Study
>11,000 subjects, measured at 3 time-points (and 2 more time-points to come!)
The ABCD Community Collection provides BIDS-compliant data and processing derivatives
Not created at once!�BIDS is demand-driven/self-motivating
Not created at once!
80/20. Not only for MRI!
From: The past, present, and future of the brain imaging data structure (BIDS)
By Poldrack et al. Imaging Neuroscience (2024) 2: 1–19. https://doi.org/10.1162/imag_a_00103
BIDS schema
(Luke et al., 2023)
NIRS-BIDS
UT Austin meeting (connectivity)
BIDS Steering Group
First Governance
Princeton meeting
(computational models)
Stanford meetings
(derivatives, stats models)
Copenhagen meeting
(derivatives)
Open Science Internat. Prize
Tanenbaum Institute
INCF endorsed
Initial BIDS meeting
Markiewicz et al.
Common derivatives
(Jeung et al. 2023)
Motion
-BIDS
Maintainers meetings (schema)
(Gorgolewski et al., 2016)
MRI-BIDS
(Niso et al., 2018)
MEG-BIDS
(Holdgraf et al., 2019)
iEEG-BIDS
(Pernet et al., 2019)
EEG-BIDS
(Gorgolewski et al., 2017)
BIDS-Apps
(Moreau et al., 2020)
Genetics
-BIDS
(Karakuzu et al., 2022)
qMRI-BIDS
(Bourget et al., 2022)
Microscopy-BIDS
(Clement et al., 2022)
ASL-BIDS
(Norgaard et al., 2022)
PET-BIDS
OHBM, INCF
Stanford meeting
(apps)
2023
2015
2016
2017
2018
2019
2020
2021
2022
BIDS Extension Proposals
Currently in the specifications
BEP | Title | Publication |
| Magnetic Resonance Imaging (MRI) | (Gorgolewski et al. 2016) |
BEP008 | Magnetoencephalography (MEG) | (Niso et al. 2018) |
BEP006 | Electroencephalography (EEG) | (Pernet et al. 2019) |
BEP010 | intracranial Electroencephalography (iEEG) | (Holdgraf et al. 2019) |
BEP007 | Hierarchical Event Descriptor (HED) Tags | C. Gorgolewski |
BEP018 | Genetic information | (Moreau et al. 2020) |
BEP003 | Common Derivatives | C. Markiewicz |
BEP001 | Quantitative MRI (qMRI) | (Karakuzu et al. 2022) |
BEP005 | Arterial Spin Labeling (ASL) | (Clement et al. 2022) |
BEP009 | Positron Emission Tomography (PET) | (Norgaard et al. 2022) |
BEP031 | Microscopy | (Bourget et al. 2022) |
BIDS Extension Proposals
Ongoing BEPs
BEP | Title | Moderators/Leads |
BEP002 | Models | Yarkoni |
BEP004 | Susceptibility Weighted Imaging (SWI) | Available |
BEP011 | Structural preprocessing derivatives | Siless |
BEP012 | Functional preprocessing derivatives | Maumet, Markiewicz |
BEP014 | Affine transf and nonlinear field warps | Esteban |
BEP016 | Diffusion weighted imaging derivatives | Pestilli, Esteban |
BEP017 | Generic BIDS connectivity data schema | Duff, McCarthy |
BEP019 | DICOM Metadata | Ghosh |
BEP020 | Eye Tracking (ET) | Gagl, Draschkow |
BEP021 | Electrophysiological Derivatives | Jas, Appelhoff, Niso, Pernet, Oostenveld |
BEP022 | Magnetic Resonance Spectroscopy (MRS) | Mikkelsen, Clarke, Wilson |
BEP023 | PET derivatives | Noergaard, Searle, Ganz |
BEP | Title | Moderators/Leads |
BEP024 | Computed Tomography scan (CT) | Boniface |
BEP025 | Medical Imaging Data structure (MIDS) | Saborit, Iglesia |
BEP026 | Microelectrode Recordings (MER) | Available |
BEP027 | Applications 2.0 | Markiewicz, Kiar |
BEP028 | Provenance | Ghosh, Maumet |
BEP029 | Virtual and physical motion data | Jeung, Welzel |
BEP030 | Near Infrared Spectroscopy (NIRS) | Luke, Pollonini |
BEP032 | Animal electrophysiology | Takerkart, Sprenger |
BEP033 | Advanced DWI (aDWI) | Gholam, Beltrachini, Szczepankiewicz |
BEP034 | Computational modeling | Schirner, Ritter |
BEP035 | Extended derivatives structure for individual-level meta-analyses | Gallitto, Kincses, Spisak |
BEP036 | Phenotypic Data Guidelines | Earl, Guay |
BIDS Extension Proposals: Funding?
Multiple tools facilitate using BIDS
General tools
Interaction with data
BIDS-Matlab
(Gau et al. 2022)
PyBIDS�(Yarkoni et al. 2019)
BIDS Converters
MRI, MEG, EEG, …
BIDS
RAW Data
BIDS Validator
BIDS specs compliance
✓
BIDS Apps
Analysis pipelines (container)
(Gorgolewski et al. 2017)
https://bids.neuroimaging.io/benefits.html includes list of converters and various tools
An eco-system of standards-compliant software
More on apps in BIDS apps: Improving ease of use, accessibility, and reproducibility of neuroimaging data analysis methods.
By Gorgolewski et al. PLoS Comput Biol (2017). https://doi.org/10.1371/journal.pcbi.1005209
BIDS Apps and Modularity: YODA
BIDS-Apps 2.0
Governance
Governance: a democratically elected steering group
Current members:
Governance
Volunteer BIDS Maintainers Group
Governance
>300 contributors from many countries and institutions
Governance
>10,000 unique visitors to the BIDS specification website in the first half of 2023
Summary: Brain Imaging Data Structure (BIDS) is …