NM000544: fnirs dataset, 20 subjects#
Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making
Access recordings and metadata through EEGDash.
Citation: Xiaofei Zhang, Haoyi Zheng, Jun Li, Chaosheng Huang, Hong Wang (—). Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making. 10.82901/nemar.nm000544
Modality: fnirs Subjects: 20 Recordings: 591 License: CC-BY-4.0 Source: nemar
Metadata: Complete (100%)
20-participant fNIRS dataset — Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making.
Quickstart#
Install
pip install eegdash
Access the data
from eegdash.dataset import NM000544
dataset = NM000544(cache_dir="./data")
# Get the raw object of the first recording
raw = dataset.datasets[0].raw
print(raw.info)
Filter by subject
dataset = NM000544(cache_dir="./data", subject="01")
Advanced query
dataset = NM000544(
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{nm000544,
title = {Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making},
author = {Xiaofei Zhang and Haoyi Zheng and Jun Li and Chaosheng Huang and Hong Wang},
doi = {10.82901/nemar.nm000544},
url = {https://doi.org/10.82901/nemar.nm000544},
}
About This Dataset#
Functional near-infrared spectroscopy (fNIRS) from 20 participants of a brain-in-the-loop driving study in a driving
simulator, released by Xiaofei Zhang, Haoyi Zheng, Jun Li, Chaosheng Huang and Hong Wang on figshare (https://doi.org/10.6084/m9.figshare.27685629, CC BY 4.0). This is a BIDS copy of the fNIRS part of that release.
The dataset name is the title of the source record.
Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making
What the source contains, and what is here
The source release holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration values for 8 channels.
It does not hold raw light intensities. For that reason this dataset is typed as a BIDS derivative
(DatasetType: derivative); GeneratedBy in dataset_description.json states the processing as the paper words it.
View full README
Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making
What the source contains, and what is here
The source release holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration values for 8 channels.
It does not hold raw light intensities. For that reason this dataset is typed as a BIDS derivative
(DatasetType: derivative); GeneratedBy in dataset_description.json states the processing as the paper words it.
- task-rest: one recording per participant, 20 s (1000 samples), described by the source as resting-state data
collected before the task. It is a continuous recording.
task-driving: the source does not release continuous driving recordings. For each of 10 driving episodes it releases “fNIRS data slices for classification model training”: one 5 s window (250 samples) per simulation step. Consecutive windows cover almost the same 5 s and are not exact shifted copies of one another, so a continuous recording cannot be rebuilt from them and none is rebuilt here. Each run oftask-drivingis ONE window, written unchanged, withRecordingType“epoched”. Runs are separate segments: the time between them is not in the release.Of the 105231 windows in the source, 571 are in this copy. A window is kept when it no longer overlaps the previously kept window of the same episode, judged by the shift that best aligns consecutive windows (the shifts are added up until they reach 250 samples). The first window of each episode is always kept. The windows left out remain available at the source record.
run-EEKK: EE is the driving episode (01 to 10), KK counts the kept windows of that episode.*_events.tsvgives the human risk label the source stores for the window (low_risk = 0, high_risk = 1) and the position of the window in the source arrays (source_episode,source_window, both 0-based).
What the source does not state
Wavelengths, optode positions, source-detector layout and the device model are not given in the release, so they are not given here. SNIRF needs a source and a detector index for every channel: channel k is written as the nominal pair S<k>_D<k>. These indices are labels only. SNIRF also needs a wavelength array and optode position arrays: they hold zeros, which stand for “not stated”.
The unit of the concentration values is not stated;
channels.tsvhasn/a.Sampling rate: 50 Hz, from the source README (250 samples = 5 s; 1000 samples = 20 s).
According to the associated paper (https://doi.org/10.1109/tits.2025.3641715), the optical data were converted to concentration changes by OxySoft with the modified Lambert-Beer law, with a differential pathlength factor calculated from the participant’s age, and participants’ prefrontal activity was recorded.
Not converted
Simulator observations, rewards, collisions, time stamps of the simulation steps, trained classifier models and the analysis scripts of the source release are not part of this copy.
Ethics approval
This study complies with the Declaration of Helsinki and its later amendments. The content and procedures of this study is approved by the Institutional Review Board of Tsinghua University.
(Quoted from the associated paper, https://doi.org/10.1109/tits.2025.3641715, section “Experiment Subjects”.)
License and citation
CC-BY-4.0. Please cite the source dataset (https://doi.org/10.6084/m9.figshare.27685629) and the associated paper (https://doi.org/10.1109/tits.2025.3641715).
SNIRF container notes
Optode positions are stored as NaN in the SNIRF probe: the conversion kept only positions stored inside the original recording files, and these carried none (earlier versions of these files held zeros, which are not positions). Positions kept elsewhere in the original release (for example probe or layout files) may still be recovered.
All 591 files open with
mne.io.read_raw_snirf(MNE-Python 1.13.2) and pass the pysnirf2 validator; the data arrays are identical to the previous version.
NEMAR Metadata#
[](https://doi.org/10.82901/nemar.nm000544) # Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making Functional near-infrared spectroscopy (fNIRS) from 20 participants of a brain-in-the-loop driving study in a driving simulator, released by Xiaofei Zhang, Haoyi Zheng, Jun Li, Chaosheng Huang and Hong Wang on figshare (https://doi.org/10.6084/m9.figshare.27685629, CC BY 4.0). This is a BIDS copy of the fNIRS part of that release. The dataset name is the title of the source record. ## What the source contains, and what is here The source release holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration values for 8 channels. It does not hold raw light intensities. For that reason this dataset is typed as a BIDS derivative (DatasetType: derivative); GeneratedBy in dataset_description.json states the processing as the paper words it. - task-rest: one recording per participant, 20 s (1000 samples), described by the source as resting-state data
collected before the task. It is a continuous recording.
task-driving: the source does not release continuous driving recordings. For each of 10 driving episodes it releases “fNIRS data slices for classification model training”: one 5 s window (250 samples) per simulation step. Consecutive windows cover almost the same 5 s and are not exact shifted copies of one another, so a continuous recording cannot be rebuilt from them and none is rebuilt here. Each run of task-driving is ONE window, written unchanged, with RecordingType “epoched”. Runs are separate segments: the time between them is not in the release.
Of the 105231 windows in the source, 571 are in this copy. A window is kept when it no longer overlaps the previously kept window of the same episode, judged by the shift that best aligns consecutive windows (the shifts are added up until they reach 250 samples). The first window of each episode is always kept. The windows left out remain available at the source record.
run-EEKK: EE is the driving episode (01 to 10), KK counts the kept windows of that episode. *_events.tsv gives the human risk label the source stores for the window (low_risk = 0, high_risk = 1) and the position of the window in the source arrays (source_episode, source_window, both 0-based).
## What the source does not state - Wavelengths, optode positions, source-detector layout and the device model are not given in the release, so they
are not given here. SNIRF needs a source and a detector index for every channel: channel k is written as the nominal pair S<k>_D<k>. These indices are labels only. SNIRF also needs a wavelength array and optode position arrays: they hold zeros, which stand for “not stated”.
The unit of the concentration values is not stated; channels.tsv has n/a.
Sampling rate: 50 Hz, from the source README (250 samples = 5 s; 1000 samples = 20 s).
According to the associated paper (https://doi.org/10.1109/tits.2025.3641715), the optical data were converted to concentration changes by OxySoft with the modified Lambert-Beer law, with a differential pathlength factor calculated from the participant’s age, and participants’ prefrontal activity was recorded.
## Not converted Simulator observations, rewards, collisions, time stamps of the simulation steps, trained classifier models and the analysis scripts of the source release are not part of this copy. ## Ethics approval > This study complies with the Declaration of Helsinki and its later amendments. The content and procedures of this study is approved by the Institutional Review Board of Tsinghua University. (Quoted from the associated paper, https://doi.org/10.1109/tits.2025.3641715, section “Experiment Subjects”.) ## License and citation CC-BY-4.0. Please cite the source dataset (https://doi.org/10.6084/m9.figshare.27685629) and the associated paper (https://doi.org/10.1109/tits.2025.3641715). ## SNIRF container notes - Optode positions are stored as NaN in the SNIRF probe: the conversion kept only positions stored inside the original recording files, and these carried none (earlier versions of these files held zeros, which are not positions). Positions kept elsewhere in the original release (for example probe or layout files) may still be recovered. - All 591 files open with mne.io.read_raw_snirf (MNE-Python 1.13.2) and pass the pysnirf2 validator; the data arrays are identical to the previous version.
License: CC-BY-4.0
Authors:
Xiaofei Zhang
Haoyi Zheng
Jun Li
Chaosheng Huang
Hong Wang
Versions:
Version |
DOI |
Released |
|---|---|---|
|
Cohort#
Dataset Statistics#
Channel counts: 16 ch (n=591 recordings)
Sampling frequencies: 50.0 Hz (n=591 recordings)
Total recording duration: 54 min
Signal · Electrodes & live trace#
No scalp electrode layout is currently indexed for this dataset. Once the eegdash montage registry ingests it, the interactive viewer will appear here automatically.
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
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.
Full dataset metadata table
Dataset ID |
|
Title |
Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making |
Author (year) |
— |
Canonical |
— |
Importable as |
|
Year |
— |
Authors |
Xiaofei Zhang, Haoyi Zheng, Jun Li, Chaosheng Huang, Hong Wang |
License |
CC-BY-4.0 |
Citation / DOI |
|
Source links |
OpenNeuro | NeMAR | Source URL |
Copy-paste BibTeX
@dataset{nm000544,
title = {Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making},
author = {Xiaofei Zhang and Haoyi Zheng and Jun Li and Chaosheng Huang and Hong Wang},
doi = {10.82901/nemar.nm000544},
url = {https://doi.org/10.82901/nemar.nm000544},
}
API Reference#
eegdash.datasetEEGDashDataset- class eegdash.dataset.NM000544(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#
Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making
- Study:
nm000544(NeMAR)- Author (year):
—
- Canonical:
—
Also importable as:
NM000544.Modality:
fnirs; Subject type:Unknown. Subjects: 20; recordings: 591; tasks: 2.- 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
Notes
Each item is a recording; recording-level metadata are available via
dataset.description.querysupports MongoDB-style filters on fields inALLOWED_QUERY_FIELDSand is combined with the dataset filter. Dataset-specific caveats are not provided in the summary metadata.References
OpenNeuro dataset: https://openneuro.org/datasets/nm000544 NeMAR dataset: https://nemar.org/dataexplorer/detail?dataset_id=nm000544 DOI: https://doi.org/10.82901/nemar.nm000544
Examples
>>> from eegdash.dataset import NM000544 >>> dataset = NM000544(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, _check_subdirs: bool = True)[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. If a dataset still reads its data lazily from one of them, a
ValueErroris raised before anything is deleted: load the data into memory first (preload=True) or save to another directory.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.
BaseDataset from braindecode — windowed via create_windows_from_events.braindecodeDataLoader; supports parallel workers and on-the-fly augmentations.pytorchSwap any load_dataset(...) call for nm000544 to reproduce the tutorial on this dataset.
Citation
Xiaofei Zhang, Haoyi Zheng, Jun Li, Chaosheng Huang, Hong Wang (n.d.). Brain-in-the-Loop Learning for Intelligent Vehicle Decision-Making. 10.82901/nemar.nm000544
Provenance
¹Contributed to nemar in BIDS format.
²Curated & ingested by the EEGDash catalog; see CITATION.cff for canonical reference.
³Persistent identifier: 10.82901/nemar.nm000544.
See Also#
eegdash.dataset.EEGDashDataseteegdash.dataset