fNIRSAtlas

A large-scale benchmark for functional near-infrared spectroscopy classification.

Code Paper (coming soon) Cite

About

fNIRSAtlas is the largest open benchmark for fNIRS classification: 23 classification tasks from 19 public data collections, with 375 unique participants and 29,438 epochs. A single automated pipeline takes every task from raw data to evaluation, under both cross-subject and within-subject protocols.

Six task suites (motor, mental arithmetic, motor imagery, n-back, emotion, miscellaneous) feed a standardized data format and any ML model, evaluated with cross-subject and within-subject splits.

Features

License

Code: MIT. Datasets keep their original licenses, listed below. Check them before use, some restrict derivatives or commercial use.

Code

Source, documentation, and examples are on GitHub.

Install

pip install "fnirsatlas[all]"

Run a suite

From a repository checkout. Downloads, processes, and classifies the data.

python scripts/run_all.py --suite ma

Load processed data

from fnirsatlas.io import fNIRSAtlasDataset

ds = fNIRSAtlasDataset("bnci")
X, y, groups, info = ds.as_tuple()

Datasets

The pipeline fetches data from its original sources. Raw data takes about 60 GB, processed data about 800 MB.

DatasetSuiteSubjectsEpochsChannelsConditionsHzDeviceLicense
Buccino2016Motor15150068410.4NIRx NIRScout 8-16CC BY 4.0
Bak2019Motor30225040313.3Shimadzu LIGHTNIRSCC BY 4.0
Ortega2020Motor1435648312.5NIRx NIRScoutMIT
Luke2021Motor54504037.8NIRx NIRScout 16x24Other (open)
Cockx2023Motor241844481650Artinis Brite24CC BY-SA 4.0
Guevara2024Motor2039544250Artinis Brite MKIICC BY 4.0
Luke2024bMotor10108112848.9NIRx NIRScoutCC BY 4.0
Gao2024Motor12108020028.7NIRx NIRSport2 16x16CC0
BnciMental arithmetic8348104210Hitachi ETG-4000CC BY-ND 4.0
Shin2016 (ma)Mental arithmetic29174072210NIRx NIRScoutGPL-3.0
Shin2018bMental arithmetic1272018210NIRx NIRScoutCC BY 4.0
Shin2019 (ma)Mental arithmetic18162032313.3Shimadzu LIGHTNIRSCC BY 4.0
Shin2016 (mi)Motor imagery29174072210NIRx NIRScoutGPL-3.0
Shin2019 (mi)Motor imagery18162032313.3Shimadzu LIGHTNIRSCC BY 4.0
Yi2025Motor imagery1857354887.8NIRx NIRScoutCC BY 4.0
Herff2014N-back1030016325Artinis Oxymon Mark IIIOn request
Shin2018 (n-back)N-back2670272310NIRx NIRScoutCC BY 4.0
Huang2021N-back681088445.2ISS ImagentCC BY 4.0
Nemo (empe)Emotion31120348450Artinis Brite24CC BY-NC 4.0
Nemo (afim)Emotion3171848450Artinis Brite24CC BY-NC 4.0
Shin2018 (wg)Misc26156072210NIRx NIRScoutCC BY 4.0
Shader2021Misc836810433.9NIRx NIRScoutCC BY 4.0
Luke2024aMisc1710205035.2NIRx NIRScoutXCC BY 4.0
Total37529438

Subjects total counts unique participants. Epochs and conditions cover all recorded conditions. Herff2014: access granted automatically after signing a form.

Citation

@inproceedings{makela2026fnirsatlas,
  title     = {fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification},
  author    = {M{\"a}kel{\"a}, Kalle and Ruotsalo, Tuukka},
  booktitle = {Advances in Neural Information Processing Systems, Datasets and Benchmarks Track},
  year      = {2026}
}