1 of 44

The Brain Imaging Data Structure (BIDS):

an open community standard for neuroscience

Some materials reused from slides by

  • Ariel Rokem, The University of Washington
  • Rémi Gau, McGill

Yaroslav O. Halchenko

Dartmouth College

http://centerforopenneuroscience.org

2 of 44

My Goals

  • introduce BIDS project
  • facilitate adoption of BIDS (as whole) or some ideas or elements
  • potentially gain recommendations and contributors
  • Make neuroscience a better science

​

​

3 of 44

4 of 44

Brain Imaging Data Structure (BIDS) is …

  • a standard for organizing and describing neuroscience data
  • a set of tools and services that use this standard
  • a community that develops, maintains and extends BIDS

5 of 44

  • Researcher A collects a dataset of Magnetic Resonance Imaging data and publishes a paper in the Annals of Anomalous Arcana
  • Researcher B requests the data after reading the paper
  • The following could happen:
    • Researcher A sends researcher B their data
    • The data are organized and described in a particular way
    • But researcher B does not know/understand how they are organized
    • Researcher B gives up and does not follow up on the original finding

Why do we need standards in science?

6 of 44

BIDS Standard Features

  • Modular composition�related: YODA principles, github.com/myyoda
  • Consistent folder organization
  • Expressive file naming schema�related: �“Naming Things” by Jenny Bryan, �“Project structure” by Danielle Navarro,� DataLad RDM Course: How to name a file
  • Standard file formats
  • Documented Metadata
  • Human and Machine readable data
    • Human readable specification�(Markdown, HTML, PDF)
    • Machine readable schema
  • Constant evolution

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

7 of 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

8 of 44

Modularity (explained with pasta, frequent reality)

From: Remi’s slides 10.5281/zenodo.5863713

​

Shared dataset

Shared dataset

with a README

9 of 44

Modularity (with BIDS)

MyBidsProject/

├── sourcedata/

│ ├── ingredient-1/

│ ├── ingredient-2/

│ └── raw/

├── derivatives/

│ ├── pasta-1/

│ └── pasta-2/

├── README.md

└── dataset_description.json

​

  • scales from a � “data dataset” to “project dataset”
  • each module can have the life of its own
  • separates source and derived data
  • helps reproducibility
  • facilitates reuse
  • reduces cognitive load

10 of 44

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

​

  • reduced cognitive load:�“seen one - seen them all”�explore datasets.datalad.org/?dir=/openneuro
  • just the right amount of folder nesting
  • easy to extend to new data types
  • WiP BIDS 2.0: researcher decides �github.com/bids-standard/bids-2-devel/issues/54�“... folders layout to be other than sub-{label}/[ses-{label}/]”

Typically you find these “raw BIDS” datasets being used/shared

11 of 44

File naming

key1-value_key2-value_suffix.extension

  • suffix preceded by an underscore
  • entities are composed of key-value pairs separated by underscores
  • key and value separated by hyphen
  • value could be a label (e.g. sam, 01) or a 0-padded index (e.g., 1, 01)
  • keys, labels, and suffixes can only contain letters and / or numbers
  • indices can only contain numbers

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?”

12 of 44

File naming

  • sub-*[_ses-*] duplicated
  • most entities are �data type specific
    • see (per data type) in an �“Entity Table”
    • some are REQUIRED
    • most are OPTIONAL:�use primarily to disambiguate
  • native/standard file formats (also data type specific)

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

13 of 44

File formats (extensions)

  • Microscopy
    • .ome.tif
    • .ome.btf
    • .ome.zarr
    • .png
    • .tif

​

  • Near infra-red spectroscopy
    • .snirf

​

  • …
  • MRI
    • Volume: .nii[.gz] (NIfTI)
    • Surface: .gii[.gz] (GIfTI)

​

  • PET
    • .nii[.gz] (NIfTI)

​

BIDS strives to use already existing and used in the community standards, again following 80/20 rule (Pareto principle):

14 of 44

Metadata

  • Provided in a “side-car” .json file

​

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

​

  • Might be extracted (duplicate) from data file or “supplemental”
  • Typically RECOMMENDED and for some REQUIRED

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",

}

15 of 44

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

16 of 44

Tabular (meta)data - TSV files

  • .tsv with (meta)data, e.g. participants.tsv:

​

​

​

​

​

  • complemented with .json to describe fields

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

17 of 44

Standards beyond file formats: BIDS is a meta-standard

18 of 44

Why do we need standards in science?

  • Researcher C develops a new method for analyzing neuroimaging data and publishes it in Memoranda of Magical Methods
  • Researcher D would like to use the method to analyze their own data
  • The following could happen:
    • Researcher D downloads C’s code and tries to run it
    • But the code expects the data to be organized in a particular way
    • The code requires knowledge of certain acquisition parameters
    • Those are no longer available to researcher D, since they did not save those parameters
    • The software crashes in ways that researcher D doesn’t understand and they give up

19 of 44

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)

20 of 44

FAIR Data archives embrace (and help develop) BIDS

21 of 44

The OpenNeuro resource for sharing of neuroscience data. eLife. Markiewicz et al. (2022)

https://doi.org/10.7554/eLife.71774

22 of 44

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

23 of 44

24 of 44

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

25 of 44

Not created at once!�BIDS is demand-driven/self-motivating

26 of 44

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

27 of 44

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)

28 of 44

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

29 of 44

BIDS Extension Proposals: Funding?

30 of 44

31 of 44

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

32 of 44

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

33 of 44

BIDS Apps and Modularity: YODA

34 of 44

BIDS-Apps 2.0

35 of 44

36 of 44

Governance

37 of 44

Governance: a democratically elected steering group

Current members:

    • Ariel Rokem, The University of Washington, USA
    • Yaroslav O. Halchenko, Dartmouth College, USA
    • Cyril Pernet, Copenhagen University Hospital, Denmark
    • Dora Hermes, Mayo Clinic, USA
    • Camille Maumet, INRIA, France
  • Responsible for approving and advancing BEPs
  • Provides overall direction for the community
  • Helps facilitate decision making
  • Elected by members of the community
  • Serve for two years in non-overlapping terms

38 of 44

Governance

39 of 44

Volunteer BIDS Maintainers Group

  • Researchers and Research Software Engineers

​

  • A range of different activities:
    • Development and maintenance of the specification
    • Surrounding tools
    • Extension proposals
    • Documentation
    • Community management
    • …

40 of 44

Governance

41 of 44

>300 contributors from many countries and institutions

42 of 44

Governance

43 of 44

>10,000 unique visitors to the BIDS specification website in the first half of 2023

​

44 of 44

Summary: Brain Imaging Data Structure (BIDS) is …

  • a standard for organizing and describing neuroscience data with
    • modular composition
    • consistent folder organization
    • expressive file naming schema
    • standard file formats
    • documented metadata
    • human and machine readable data
    • supported by a wide range of FAIR resources
    • constantly evolving through BEPs
  • a set of tools and services that use this standard
  • a community that develops, maintains and extends BIDS