arXiv:2610.17845cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.17845

GeoNIRS: Geometry-Aware Pretraining for Heterogeneous fNIRS Representation Learning

Zongsheng Li, Shengyuan Zhu, Zimo Zhang, Hanyao Li, Shengming Wang, Quanying Liu

ABSTRACT

Functional near-infrared spectroscopy (fNIRS) provides portable, low-cost, and spatially localized measurements of cortical hemodynamics, but substantial differences in channel count, probe layout, signal distribution, and task type hinder joint pretraining across datasets. We introduce GeoNIRS, a geometry-aware pretraining framework that uses the physical locations of source–detector pairs as a shared spatial reference across heterogeneous probe layouts. GeoNIRS compresses variable-size channel sets into a fixed-size latent representation and employs bidirectional HbO/HbR cross-reconstruction with contiguous temporal masking to learn transferable representations. GeoNIRS-base is pretrained on eight heterogeneous datasets, while GeoNIRS-large scales pretraining to 22 datasets. Neither the data nor labels of the downstream tasks are used during pretraining, enabling evaluation under a strict cross-task setting. To the best of our knowledge, GeoNIRS is the first fNIRS framework to explicitly model physical channel geometry during joint pretraining across heterogeneous channel configurations, and the first to provide both complete source code and downloadable pretrained checkpoints.

We evaluate GeoNIRS on eight held-out tasks spanning clinical and auditory assessment, pain and affective processing, semantic decoding, and motor function. GeoNIRS achieves the highest task-averaged balanced accuracy among the evaluated conventional machine-learning, fNIRS-specific, general time-series, and fNIRS pretraining baselines. Compared with random initialization, pretraining improves task-averaged balanced accuracy by 4.12 percentage points under linear probing and 3.30 points under full fine-tuning, with larger benefits when downstream labels are scarce. GeoNIRS also remains robust when input channels are missing. Geometry perturbations and pretraining ablations further demonstrate that both channel geometry and cross-chromophore reconstruction contribute to the learned representations. Overall, GeoNIRS provides an open and reproducible framework for transferable representation learning across heterogeneous fNIRS datasets. Our code and pretrained checkpoints are available at https://github.com/GeoNIRS/GeoNIRS

1 INTRODUCTION

Functional near-infrared spectroscopy (fNIRS) noninvasively measures changes in cortical oxygenated and deoxygenated hemoglobin (HbO/HbR), providing a hemodynamic proxy for neural activity (Ferrari & Quaresima, 2012; Scholkmann et al., 2014). Compared with functional magnetic resonance imaging, fNIRS is relatively inexpensive, portable, and silent, supporting bedside monitoring, measurements during movement, and experiments in naturalistic settings. Its spatially localized cortical signals also complement the high-temporal-resolution electrophysiological activity recorded by EEG (Pinti et al., 2020; Yücel et al., 2021). These properties have enabled appli-cations across cognitive and affective neuroscience, brain–computer interfaces, motor and neurorehabilitation research, and the assessment of neurological and psychiatric conditions (Obrig, 2014; Ehlis et al., 2014; Naseer & Hong, 2015; Mihara & Miyai, 2016). In the closely related EEG domain, neural foundation models and their benchmarking ecosystems are considerably more mature. OmniEEG-Bench and Meta FAIR's NeuralBench-EEG systematically evaluate pretrained models across multiple datasets, tasks, and standardized adaptation protocols (Lu et al., 2026; Banville et al., 2026). BENDR provided early evidence for large-scale self-supervised EEG pretraining, while LaBraM, EEGPT, BrainOmni, and REVE further demonstrated that aggregating unlabeled recordings across datasets, tasks, and acquisition systems can produce transferable neural representations (Kostas et al., 2021; Jiang et al., 2024; Wang et al., 2024a; Xiao et al., 2025; El Ouahidi et al., 2025). Such multi-dataset pretraining alleviates the limited scale of individual datasets while exposing models to variations in populations, paradigms, and acquisition systems, thereby facilitating transfer to unseen tasks and label-scarce settings. Extending this paradigm to heterogeneous fNIRS datasets is therefore an important step from dataset-specific decoding toward general-purpose neural representation learning.

Conventional fNIRS decoding remains largely dataset-specific and supervised, ranging from handcrafted HbO/HbR features with LDA or SVM to fNIRS-specific deep networks (Naseer et al., 2016a;b; Wang et al., 2022; 2023; 2026b). These methods are typically trained separately under fixed probe layouts and label spaces, preventing joint learning from heterogeneous unlabeled data. Extending multi-dataset pretraining to fNIRS presents two key challenges. First, channel semantics vary across probe layouts: the same channel index may correspond to different cortical locations, while the same region may be covered by different channels. Variable-channel support alone therefore cannot establish cross-layout spatial correspondence. Second, designing a non-trivial pretraining objective is difficult. Slowly varying hemodynamic signals make within-signal masked reconstruction susceptible to temporal interpolation (Scholkmann et al., 2014; Zhou et al., 2026). Self-reconstruction within each chromophore may primarily capture modality-specific signal structure. In contrast, cross-chromophore reconstruction encourages the model to leverage the shared physiological information between HbO and HbR, promoting more transferable representations (Cui et al., 2010). As shown in Table 13, existing methods address only parts of these challenges. Early approaches use a single dataset or train separately across datasets (Liu et al., 2021; Wang et al., 2021; 2024b). Jung et al. jointly pretrain across varying channel counts but do not model physical channel geometry (Jung et al., 2025); EFRM uses only one fNIRS dataset (Jung & An, 2025); and Subedi et al. assume a shared probe configuration and require supervised adaptation to new layouts (Subedi et al., 2026). ASDGPrompt and DSSER likewise do not perform joint multi-dataset pretraining (Cai et al., 2026; Wang et al., 2026a). Thus, existing work has yet to jointly address cross-layout spatial unification and physiologically grounded pretraining, while reproducibility remains limited by the scarcity of complete source code and downloadable pretrained checkpoints.

The design of our work is inspired by recent advances in EEG foundation models and physiological signal pretraining. First, BrainOmni shows that incorporating the physical properties of sensors into representation learning and compressing a variable number of sensor inputs into a fixed-size latent representation can mitigate structural differences across acquisition systems (Xiao et al., 2025). Second, xMAE performs masked cross-modal reconstruction between synchronously recorded ECG and PPG signals, demonstrating that predicting masked signals from related physiological observations can reduce reliance on local temporal smoothness (Zhou et al., 2026). However, each fNIRS channel is defined by a source–detector pair, while HbO and HbR are coupled but non-equivalent hemodynamic observations within the same modality (Cui et al., 2010). These ideas must therefore be redesigned for fNIRS to unify heterogeneous probe layouts and learn the hemodynamic structure shared between HbO and HbR.

Building on these ideas, we propose GeoNIRS, a geometry-aware pretraining framework for heterogeneous fNIRS data. GeoNIRS explicitly encodes source–detector geometry and compresses variable-size channel sets from heterogeneous probe layouts into a fixed-size latent representation. It is pretrained via bidirectional HbO/HbR cross-reconstruction with contiguous temporal masking, encouraging the model to capture shared hemodynamic structure while reducing reliance on local temporal interpolation. GeoNIRS-base is pretrained on 383.30 hours of recordings across eight datasets, while GeoNIRS-large scales pretraining to 827.04 hours across 22 datasets. To the best of our knowledge, GeoNIRS is the first fNIRS framework to explicitly incorporate physical channel geometry for joint pretraining across heterogeneous probe layouts, and the first to release both

Figure

Figure 1: Overview of the GeoNIRS framework. HbO/HbR signals from datasets with varying channel counts and probe layouts are divided into temporal patches and encoded alongside source-detector geometry. The geometry-aware channel compressor uses learnable latent queries and shared geometry-aware channel attention to map variable-size physical channel sets into a fixed number of latent-channel tokens. Pretraining employs bidirectional cross-chromophore reconstruction: contiguous patches of the target chromophore are masked and reconstructed using its visible context together with the complete complementary chromophore. The reconstruction loss is computed only at masked and valid target positions. After pretraining, the encoder and channel compressor are used for downstream adaptation.

complete source code and downloadable pretrained checkpoints. Across eight held-out downstream tasks, GeoNIRS achieves the strongest task-averaged performance among the evaluated methods. Compared with random initialization, pretraining improves average balanced accuracy by 4.12 percentage points under linear probing and 3.30 percentage points under full fine-tuning. Further experiments show larger pretraining gains in low-label regimes, robustness to missing channels, and task-averaged benefits from channel geometry and cross-chromophore reconstruction across all three adaptation protocols.

References (100)