Paper commentary
fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification
fNIRSAtlas gives fNIRS classification one shared benchmark of 23 tasks
- Problem fNIRS model gains are hard to compare because each study uses its own dataset, preprocessing and evaluation protocol. Small single datasets make it unclear whether a new model is actually better.
- Method fNIRSAtlas runs 23 tasks from 19 public data collections through one fixed pipeline and one evaluation protocol. It scores every baseline model on the same cross-subject and within-subject splits.
- Results In cross-subject tests, fNIRSNet23 averages 57.8 accuracy, compared with 56.8 for LDA.

Figure 1 : Visual abstract of fNIRSAtlas. The benchmark integrates 23 classification tasks from 19 public data collections across multiple task suites into a standardized pipeline from raw recordings to benchmark tasks and model evaluation, enabling reproducible comparison of machine learning methods in both within-subject and cross-subject settings.
Original paper · CC BY 4.0 · Kalle Mäkelä, Tuukka Ruotsalo · fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification · Original paper figure · Extracted the figure area from page 2 of the original PDF.Why fNIRS model comparisons stay unreliable
fNIRS studies seldom share a dataset, a preprocessing chain and an evaluation protocol at the same time. So a reported gain can come from the setup as much as from the model. Most deep learning studies rely on small, single datasets, so the field can't easily separate stronger models from easier evaluations. Comparative evidence stays thin because datasets, preprocessing pipelines and evaluation protocols vary from study to study.
Computer vision, natural language processing and EEG all have shared benchmarks that guide progress in those fields. fNIRS had no such benchmark until BenchNIRS, which is the first and only multi-dataset fNIRS machine learning benchmark. BenchNIRS covers only five tasks, which limits large-scale and robust comparison across modeling approaches.
Near-chance performance on many of its tasks makes rankings unstable, and real model differences hard to detect.
Methods validated on limited data often fail to generalize beyond their original evaluation. Without a shared setup, a reader can't tell whether a new fNIRS model is actually better. Clear, standard comparisons matter because the field is still methodologically fragmented.
fNIRSAtlas tackles this by giving every model the same tasks, pipeline and evaluation protocol. The paper raises the dataset count from 5 to 23 to give model comparisons more coverage. Its tasks are also screened for how well they separate models, so rankings carry more signal.
One pipeline for 23 tasks
fNIRSAtlas holds the data handling, preprocessing, task construction and evaluation fixed, so every task gets the same treatment. Those 23 tasks come with 375 unique participants and span six experimental suites. The suites are motor, mental arithmetic, motor imagery, n-back, emotion and miscellaneous, which covers word generation, auditory speech and auditory-visual conditions.
Because one Python package runs every task, the same protocol supports both within-subject and cross-subject evaluation.
Table 1 lists each task with its subject count, epoch count, channel count, condition count, sampling rate and device. The authors selected datasets only when they used stimulus-response designs with short response windows. Datasets with incomplete files or annotations were dropped, because reliable epoch extraction needs complete metadata.
Long-horizon paradigms such as sleep, driving and gaming are therefore left out of the benchmark.

Table 1 : Overview of the 23 classification tasks included in fNIRSAtlas. #Sub: number of subjects; #Epo: total number of epochs across all recorded conditions; #Ch: number of channels; #Cl: number of recorded conditions; Hz: sampling rate; Len: epoch length used in the benchmark, excluding the 2 s baseline (s). Raw: CW: continuous wave; OD: optical density; Hb: oxygenated and deoxygenated haemoglobin. Suites and dataset suffixes: MA/ma: mental arithmetic; MI/mi: motor imagery; wg: word generation; empe: emotional perception; afim: affective imagery.
Original paper · CC BY 4.0Every recording passes through seven fixed steps, from optical density conversion to downsampling to 5 Hz. The steps are channel quality checks with SCI<0.2, motion correction with TDDR, haemoglobin conversion with a PPF of 6, and band-pass filtering from 0.01 to 0.1 Hz. The starting step depends on the raw format, since CW data begin at step 1, OD data at step 2 and haemoglobin data at step 4.
Fixing these defaults lets the authors compare heterogeneous datasets without tuning each one.
Ten baselines and their training recipe
The ten baselines cover the classical approach, earlier deep networks, EEG-derived networks, recent fNIRS-specific networks and one time-series classifier. Shrinkage LDA on window-based summary features is the classical anchor, because it is the most commonly used classifier and consistently strong in fNIRS-based BCI studies. Among the earlier deep baselines, the shallow ANN from Naseer et al.
sits beside a CNN from Trakoolwilaiwan et al. and an LSTM from Asgher et al. The recent fNIRS-specific models are fNIRS-T, fNIRSNet23 and fNIRSNet24, and each reported strong comparative results in its original study. MultiRocket+Hydra is the time-series classifier, combining MultiRocket and Hydra, and it is computationally efficient.
The ANN uses window-based summary features, while the deep models and MultiRocket+Hydra train directly on the preprocessed haemoglobin signal. The signal is z-normalized separately for HbO and HbR, using statistics from the training split only. That normalization keeps the relative amplitude differences between channels intact. The deep models train for 100 epochs with the Adam optimizer.
The starting learning rate comes from a grid search, and it decays by a factor of 0.5 every 20 epochs. Batch size is 32 for cross-subject experiments and 8 for within-subject experiments, and the loss is categorical cross-entropy on softmax outputs.
The authors evaluate these baselines on the same tasks, so differences in scores reflect the models rather than the setup. Cross-subject classification tests whether a model generalizes to unseen individuals, given the high physiological variability across people. Within-subject classification gives the upper-bound decoding performance for one subject's neural patterns.
The hyperparameter search spaces for each model appear in Appendix F, so readers can reproduce the grid search.
How cross-subject and within-subject scores are measured
Cross-subject classification asks whether a model generalizes to people it never saw during training. The outer loop is grouped 5-fold CV and is used only for performance evaluation.
Within-subject classification scores each subject separately, training and testing on that subject's own data. Fully nested CV was prohibitively expensive and noisy on small samples, so the authors avoided it. Instead, they ran a single stratified 5-fold CV per subject for every candidate hyperparameter setting and stored the subject-level scores.
The held-out subject's score is read directly from those stored results, which mimics applying a fixed configuration to a new subject.
All CV procedures are repeated 5 times with independently randomized splits, which reduces variance from random partitions. Appendix N studies how the number of repetitions changes model comparison. The authors report classification accuracy as the primary metric. Accuracy fits here because all benchmark tasks are class-balanced.
For multi-dataset comparison, the authors follow Demšar's methodology and apply the Friedman test across tasks. Each non-overlapping task contributes one mean per model, which keeps the tasks statistically independent. When the omnibus test is significant, the Nemenyi post-hoc test handles pairwise comparisons.
Cross-subject accuracy: fNIRSNet23 leads by a small margin
A one-point margin over LDA is small on its own, so the significance test carries the argument. The Friedman test over 22 tasks returns χ² = 83.252 with p < 0.001, so the ten baseline models differ overall.
The Nemenyi post-hoc test doesn't separate LDA, EEGNet and DCN from fNIRSNet23. Figure 2a shows these groupings as horizontal bars that join models the Nemenyi test does not separate.
![Figure 2: Critical difference diagrams [20] for cross-subject (a) and within-subject (b) accuracy
ranks. Models are ordered by average rank across tasks, with…](/papers/737a86b6-67d3-493d-ba06-3a82812f1ecd/figures/figure-d2cdd74a483088f787a9fc0f2134e53c.png?thumb=512)
Figure 2 : Critical difference diagrams [20] for cross-subject (a) and within-subject (b) accuracy ranks. Models are ordered by average rank across tasks, with lower rank indicating better per- formance. Horizontal bars connect models that are not significantly different under the Nemenyi post-hoc test (α= 0.05).
Original paper · CC BY 4.0These scores come from grouped 5-fold outer CV, with hyperparameters tuned in a 4-fold inner loop. Each cell reports mean test accuracy with the standard deviation of fold-level accuracies, so the spread reflects cross-validation variability. Accuracy is the metric, and the authors chose it because every benchmark task is class-balanced. Batch size was 32 for cross-subject runs, against 8 for within-subject runs.
The authors find that many recent architectures show no performance gains in this benchmark. Larger deep learning models show improved generalization in the cross-subject setting, though their benefits aren't yet consistent across evaluation regimes. They didn't test transfer learning or fine-tuning-based adaptation in this version.
Within-subject accuracy: LDA leads
The Friedman test over 22 tasks gives χ² = 94.681 with p < 0.001 for within-subject accuracy, so the models differ overall. Within-subject scores sit above cross-subject scores for the same models, so LDA moves from 56.8 to 64.9.
The Nemenyi test finds that ANN, fNIRSNet23, EEGNet and DCN don't differ significantly from LDA. MultiRocketHydra, CNN, fNIRS-T, LSTM and fNIRSNet24 fall well behind the leading baselines. MultiRocketHydra and CNN average 59.3 and 59.2, while LSTM and fNIRSNet24 average 56.3 and 54.1.
So higher-capacity architectures don't beat the classical linear model in this setting. The Discussion finds that bigger deep learning models offer no clear edge for personalized decoding. Those same models do improve cross-subject generalization, which the paper reads as a sign of more transferable representations. The persistent gap between within- and cross-subject performance points to subject variability as the central challenge.
BenchNIRS didn't evaluate the fNIRS-specific CNNs that were competitive in fNIRSAtlas.
Why the two protocols rank models differently
Cross-subject and within-subject accuracy reward different models, so the two rankings don't agree. fNIRSNet23 comes first in the cross-subject protocol, while LDA comes first when each subject is decoded alone. Larger deep models give no clear edge for personalized decoding, yet they generalize better across people.
The authors read this as a sign that recent architectures may learn representations that transfer between people. They stress that these gains aren't yet consistent across the two evaluation regimes. The gap between within-subject and cross-subject scores points to subject variability as the main obstacle for fNIRS decoding.
BenchNIRS didn't evaluate the fNIRS-specific CNNs that do well in this benchmark. Dissanayake et al. found compact CNNs beating heavier Transformer models in the cross-subject setting. Kwon and Im reported a compact CNN outperforming LDA. Eastmond et al. reviewed 26 of 32 deep learning studies that reported beating traditional machine learning.
The authors note that fNIRSAtlas includes only 10 baselines, because fNIRS deep learning papers share little code. Participants are mostly young adults, so the rankings may not hold for other age groups. Emotion and other non-motor cognitive tasks remain underrepresented in the benchmark. The fixed preprocessing defaults may not suit every dataset or model.
Which tasks separate models
Each task gets three diagnostics, and all three start from cross-subject Cohen's κ scores. Rank stability draws 9999 paired bootstrap resamples over folds and averages the Spearman correlations with the full-sample ranking. Top-3 κ is the mean Cohen's κ across the three best-performing models on a task, which shows whether the task offers usable decoding signal.
Luke2024b has a κ@3 of only 5.3, while Bak2019 reaches 64.9. Its κ@3 is much lower than that of the other motor execution tasks, so the authors call it a low-informativeness outlier. Low-informativeness tasks remain useful as difficult decoding settings, but they don't separate the tested models well.
fNIRSAtlas-Balanced drops tasks whose U_d falls below half the median within their task suite. Miscellaneous tasks stay in Balanced, because they don't belong to a larger suite for within-suite thresholding. fNIRSAtlas-HighInfo drops tasks whose U_d falls below half the benchmark-wide median, which gives a stronger model-comparison signal.
The full benchmark and complete task suites remain available for broader evaluation.
Where the evidence stops
The evidence in this benchmark stops short of several claims, starting with the number of baselines. The empirical comparison is limited to only 10 baselines. They expect this situation to improve in the future.
Coverage is uneven, because emotion and other non-motor cognitive tasks are less represented than other paradigms.
The benchmark can't tell whether a different preprocessing choice would reorder the models.
The benchmark covers only supervised classification in within-subject and cross-subject settings. It doesn't include transfer learning, self-supervised learning, data augmentation, or fine-tuning-based adaptation. The authors call these settings important for practical fNIRS modeling and natural additions for future versions.
Paper info
- Authors
- Kalle Mäkelä, Tuukka Ruotsalo
- Venue
- arXiv · Preprint
- First published
- 2026-11-6
- Added
- 2026-11-10
- Updated
- 2026-11-6
- Version
- v1
- arXiv
- 2611.10082
- Category
- cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Functional near-infrared spectroscopy (fNIRS) is a promising modality for brain-computer interfaces and cognitive state decoding, but progress in machine learning for fNIRS has been limited by small, isolated datasets and inconsistent evaluation protocols. We introduce fNIRSAtlas, the largest open benchmark for fNIRS classification to date, comprising 23 classification tasks from 19 public data collections, spanning diverse experimental paradigms, including motor execution, motor imagery, mental arithmetic, working memory, and emotion recognition. fNIRSAtlas provides a fully automated pipeline from raw data to evaluation and defines standardized benchmark tasks for both cross-subject and within-subject classification, ensuring reproducible comparison of methods. We evaluate a variety of baseline models from fNIRS and related neuroimaging and time-series machine learning literature on the benchmark. Our results demonstrate that performance varies substantially across tasks and that methods validated on limited data -- especially deep learning approaches -- often fail to generalize beyond their original evaluation. fNIRSAtlas serves as an extensible, open, and reproducible benchmark to support more robust and cumulative progress in machine learning for fNIRS data. Our code and data can be found at https://fnirsatlas.github.io.
Quote from the paper
Kalle Mäkelä, Tuukka Ruotsalo (2026). fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification. arXiv:2611.10082v1. https://arxiv.org/abs/2611.10082v1
BibTeX
@misc{mkel2026fnirsatlas,
title = {{fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification}},
author = {Kalle Mäkelä and Tuukka Ruotsalo},
year = {2026},
eprint = {2611.10082},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.10082v1}
}