NM000998: fnirs dataset, 10 subjects#
Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip
Access recordings and metadata through EEGDash.
Citation: Haoyi Zheng (—). Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip. 10.82901/nemar.nm000998
Modality: fnirs Subjects: 10 Recordings: 2099 License: CC-BY-4.0 Source: nemar
Metadata: Complete (100%)
10-participant fNIRS dataset — Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip.
Quickstart#
Install
pip install eegdash
Access the data
from eegdash.dataset import NM000998
dataset = NM000998(cache_dir="./data")
# Get the raw object of the first recording
raw = dataset.datasets[0].raw
print(raw.info)
Filter by subject
dataset = NM000998(cache_dir="./data", subject="01")
Advanced query
dataset = NM000998(
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{nm000998,
title = {Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip},
author = {Haoyi Zheng},
doi = {10.82901/nemar.nm000998},
url = {https://doi.org/10.82901/nemar.nm000998},
}
About This Dataset#
Functional near-infrared spectroscopy (fNIRS) slices from 10 participants who watched simulated autonomous-driving scenarios and
pressed a button when they perceived the situation as risky. Released by Haoyi Zheng on figshare (https://doi.org/10.6084/m9.figshare.28528001, version 2, CC BY 4.0) as “the additional data for reproduction of results and figures in the paper ‘Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS’” (https://doi.org/10.34133/cbsystems.0205).
This is a BIDS copy of the fNIRS arrays of that release. The dataset name is the title of the source record.
Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip
What the source contains, and what is here
The source holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration changes for 8 channels, as NumPy arrays. It does
not hold raw light intensities and it does not hold continuous recordings. For that reason the dataset is typed as a BIDS derivative
(DatasetType: derivative); GeneratedBy in dataset_description.json quotes the paper’s description of the processing.
- Three scenarios, one BIDS task each: task-aeb (autonomous emergency braking (AEB) scenario), task-cutin (front car cutting-in scenario), task-ped (pedestrian crossing scenario).
View full README
Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip
What the source contains, and what is here
The source holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration changes for 8 channels, as NumPy arrays. It does
not hold raw light intensities and it does not hold continuous recordings. For that reason the dataset is typed as a BIDS derivative
(DatasetType: derivative); GeneratedBy in dataset_description.json quotes the paper’s description of the processing.
- Three scenarios, one BIDS task each: task-aeb (autonomous emergency braking (AEB) scenario), task-cutin (front car cutting-in scenario), task-ped (pedestrian crossing scenario).
Each participant has 30 episodes per scenario in the source.
For each episode the source stores one 5 s slice (250 samples) per time step (“numerous 5-second slices of fNIRS data were gathered from 8 channels of our device, saved as 2 arrays (one for HHb and the other for O2Hb) with the dimensions of 8 x 250”, associated paper). Consecutive slices cover almost the same 5 s. In this release none of the 174793 consecutive slice pairs is an exact shifted copy of its predecessor, so a continuous recording cannot be rebuilt from the slices and none is rebuilt here.
Each run is ONE slice, written unchanged, with
RecordingType“epoched”. Runs are separate segments; the time between them is not in the release.Of the 175693 slices in the source, 2099 are in this copy. Consecutive slices are best aligned by a shift of about one sample (median best-correlation shift 1), so they are near-copies of each other. The first slice of each episode is kept; a later slice is kept when it no longer overlaps the previously kept slice (the best-aligning shifts are added up until they reach 250 samples); and the last slice of each episode is always kept, so that the end of the episode is not lost. The last slice therefore usually overlaps the slice kept before it in time. This selection is a choice of this conversion, made to avoid publishing 175 thousand near-identical segments; the slices left out remain available at the source record, and
source_windowinevents.tsvgives the position of each kept slice in the source array.run-EEKK: EE is the episode (01 to 30), KK counts the kept slices of that episode (the highest KK is the last slice).*_events.tsvgives the label the source stores for the slice (button_not_pushed = 0, button_pushed = 1) and the position of the slice in the source arrays (source_episode,source_window, both 0-based).
What the source states, and what it does not
Device, from the associated paper: “an OctaMon 2 x 4 channel (Artinis, the Netherlands) continuous wave (CW) NIRS device, consisting of 8 active channels (8 light-emitting diodes as transmitters Tx1 to Tx8, along with 2 photodiodes as detectors Rx1 and Rx2)”, nominal wavelengths 760 and 850 nm. The SNIRF wavelength array holds these two nominal values from the paper.
Which transmitter and receiver form each of the 8 array channels is not stated, and optode positions are not given. Channel k is written as the nominal pair S<k>_D<k>; these indices are labels only. Optode coordinates are n/a (NaN in the SNIRF arrays).
The unit of the concentration values is not stated;
channels.tsvhasn/a.Sampling rate 50 Hz: the paper states that the signal was resampled to 50 Hz and that a slice is 5 s = 250 samples.
The paper describes three processing steps (baseline correction with 20 s of resting data, resampling to 50 Hz with cubic spline interpolation, and a double exponential moving average filter). It does not say explicitly whether the released slices were stored before or after the filter.
The paper reports 10 participants (5 males and 5 females, aged 18 to 29). The release numbers the files 1 to 10 and gives no per-participant age or sex, so
participants.tsvlists identifiers only.
Not converted
classifier_acc.csv (classifier accuracies, an analysis result) is not part of this copy.
Ethics approval
This study complied with the Declaration of Helsinki and later amendments of it. The content and procedures of this study were approved by the Institutional Review Board of Tsinghua University.
(Quoted from the associated paper, https://doi.org/10.34133/cbsystems.0205, section “Ethics statement”.)
License and citation
CC-BY-4.0. Please cite the source dataset (https://doi.org/10.6084/m9.figshare.28528001) and the associated paper (https://doi.org/10.34133/cbsystems.0205).
NEMAR Metadata#
[](https://doi.org/10.82901/nemar.nm000998) # Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip Functional near-infrared spectroscopy (fNIRS) slices from 10 participants who watched simulated autonomous-driving scenarios and pressed a button when they perceived the situation as risky. Released by Haoyi Zheng on figshare (https://doi.org/10.6084/m9.figshare.28528001, version 2, CC BY 4.0) as “the additional data for reproduction of results and figures in the paper ‘Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS’” (https://doi.org/10.34133/cbsystems.0205). This is a BIDS copy of the fNIRS arrays of that release. The dataset name is the title of the source record. ## What the source contains, and what is here The source holds oxygenated (O2Hb) and deoxygenated (HHb) haemoglobin concentration changes for 8 channels, as NumPy arrays. It does not hold raw light intensities and it does not hold continuous recordings. For that reason the dataset is typed as a BIDS derivative (DatasetType: derivative); GeneratedBy in dataset_description.json quotes the paper’s description of the processing. - Three scenarios, one BIDS task each: task-aeb (autonomous emergency braking (AEB) scenario), task-cutin (front car cutting-in scenario), task-ped (pedestrian crossing scenario).
Each participant has 30 episodes per scenario in the source.
For each episode the source stores one 5 s slice (250 samples) per time step (“numerous 5-second slices of fNIRS data were gathered from 8 channels of our device, saved as 2 arrays (one for HHb and the other for O2Hb) with the dimensions of 8 x 250”, associated paper). Consecutive slices cover almost the same 5 s. In this release none of the 174793 consecutive slice pairs is an exact shifted copy of its predecessor, so a continuous recording cannot be rebuilt from the slices and none is rebuilt here.
Each run is ONE slice, written unchanged, with RecordingType “epoched”. Runs are separate segments; the time between them is not in the release.
Of the 175693 slices in the source, 2099 are in this copy. Consecutive slices are best aligned by a shift of about one sample (median best-correlation shift 1), so they are near-copies of each other. The first slice of each episode is kept; a later slice is kept when it no longer overlaps the previously kept slice (the best-aligning shifts are added up until they reach 250 samples); and the last slice of each episode is always kept, so that the end of the episode is not lost. The last slice therefore usually overlaps the slice kept before it in time. This selection is a choice of this conversion, made to avoid publishing 175 thousand near-identical segments; the slices left out remain available at the source record, and source_window in events.tsv gives the position of each kept slice in the source array.
run-EEKK: EE is the episode (01 to 30), KK counts the kept slices of that episode (the highest KK is the last slice). *_events.tsv gives the label the source stores for the slice (button_not_pushed = 0, button_pushed = 1) and the position of the slice in the source arrays (source_episode, source_window, both 0-based).
## What the source states, and what it does not - Device, from the associated paper: “an OctaMon 2 x 4 channel (Artinis, the Netherlands) continuous wave (CW) NIRS device,
consisting of 8 active channels (8 light-emitting diodes as transmitters Tx1 to Tx8, along with 2 photodiodes as detectors Rx1 and Rx2)”, nominal wavelengths 760 and 850 nm. The SNIRF wavelength array holds these two nominal values from the paper.
Which transmitter and receiver form each of the 8 array channels is not stated, and optode positions are not given. Channel k is written as the nominal pair S<k>_D<k>; these indices are labels only. Optode coordinates are n/a (NaN in the SNIRF arrays).
The unit of the concentration values is not stated; channels.tsv has n/a.
Sampling rate 50 Hz: the paper states that the signal was resampled to 50 Hz and that a slice is 5 s = 250 samples.
The paper describes three processing steps (baseline correction with 20 s of resting data, resampling to 50 Hz with cubic spline interpolation, and a double exponential moving average filter). It does not say explicitly whether the released slices were stored before or after the filter.
The paper reports 10 participants (5 males and 5 females, aged 18 to 29). The release numbers the files 1 to 10 and gives no per-participant age or sex, so participants.tsv lists identifiers only.
## Not converted classifier_acc.csv (classifier accuracies, an analysis result) is not part of this copy. ## Ethics approval > This study complied with the Declaration of Helsinki and later amendments of it. The content and procedures of this study were approved by the Institutional Review Board of Tsinghua University. (Quoted from the associated paper, https://doi.org/10.34133/cbsystems.0205, section “Ethics statement”.) ## License and citation CC-BY-4.0. Please cite the source dataset (https://doi.org/10.6084/m9.figshare.28528001) and the associated paper (https://doi.org/10.34133/cbsystems.0205).
License: CC-BY-4.0
Authors:
Haoyi Zheng
Versions:
Version |
DOI |
Released |
|---|---|---|
|
Cohort#
Dataset Statistics#
Channel counts: 16 ch (n=2099 recordings)
Sampling frequencies: 50.0 Hz (n=2099 recordings)
Total recording duration: 2 h 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 |
Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip |
Author (year) |
— |
Canonical |
— |
Importable as |
|
Year |
— |
Authors |
Haoyi Zheng |
License |
CC-BY-4.0 |
Citation / DOI |
|
Source links |
OpenNeuro | NeMAR | Source URL |
Copy-paste BibTeX
@dataset{nm000998,
title = {Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip},
author = {Haoyi Zheng},
doi = {10.82901/nemar.nm000998},
url = {https://doi.org/10.82901/nemar.nm000998},
}
API Reference#
eegdash.datasetEEGDashDataset- class eegdash.dataset.NM000998(cache_dir: str, query: dict | None = None, s3_bucket: str | None = None, **kwargs)[source]#
Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip
- Study:
nm000998(NeMAR)- Author (year):
—
- Canonical:
—
Also importable as:
NM000998.Modality:
fnirs; Subject type:Unknown. Subjects: 10; recordings: 2099; tasks: 3.- 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/nm000998 NeMAR dataset: https://nemar.org/dataexplorer/detail?dataset_id=nm000998 DOI: https://doi.org/10.82901/nemar.nm000998
Examples
>>> from eegdash.dataset import NM000998 >>> dataset = NM000998(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 nm000998 to reproduce the tutorial on this dataset.
Citation
Haoyi Zheng (n.d.). Additional Data for Safety Decision-Making for Autonomous Vehicles Integrating Passenger Physiological States by fNIRS.zip. 10.82901/nemar.nm000998
Provenance
¹Contributed to nemar in BIDS format.
²Curated & ingested by the EEGDash catalog; see CITATION.cff for canonical reference.
³Persistent identifier: 10.82901/nemar.nm000998.
See Also#
eegdash.dataset.EEGDashDataseteegdash.dataset