Hierarchical Spatio-Temporal State-Space Modeling for fMRI Analysis
Yuxiang Wei, Anees Abrol, Vince Calhoun
TL;DR
The paper tackles the challenge of extracting meaningful biomarkers from high-dimensional, dynamic fMRI functional network connectivity (dFNC) by introducing Functional Spatio-Temporal Mamba (FST-Mamba). This architecture uses separate Mamba-based encoders for spatial and temporal information, a component-wise varied-scale aggregation (CVA) to capture inter-network connectivity, and Symmetric Rotary Position Encoding (SymRope) to respect the FNC matrix's symmetry. Bidirectional state-space processing and a component-specific selective scan enhance long-range dependencies while preserving per-component signals. Empirical results on HCP, UKB, and ADNI demonstrate superior classification performance and offer interpretable biomarkers, underlining the value of attention-free sequence modeling for brain discovery. The work provides open-source code to facilitate further exploration and extension.
Abstract
Recent advances in deep learning structured state space models, especially the Mamba architecture, have demonstrated remarkable performance improvements while maintaining linear complexity. In this study, we introduce functional spatiotemporal Mamba (FST-Mamba), a Mamba-based model designed for discovering neurological biomarkers using functional magnetic resonance imaging (fMRI). We focus on dynamic functional network connectivity (dFNC) derived from fMRI and propose a hierarchical spatiotemporal Mamba-based network that processes spatial and temporal information separately using Mamba-based encoders. Leveraging the topological uniqueness of the FNC matrix, we introduce a component-wise varied-scale aggregation (CVA) mechanism to aggregate connectivity across individual components within brain networks, enabling the model to capture component-level and network-level information. Additionally, we propose symmetric rotary position encoding (SymRope) to encode the relative positions of each functional connection while considering the symmetric nature of the FNC matrix. Experimental results demonstrate significant improvements in the proposed FST-Mamba model on various brain-based classification and regression tasks. We further show brain connectivities and dynamics that are crucial for the prediction. Our work reveals the substantial potential of attention-free sequence modeling in brain discovery. The codes are publicly available here: https://github.com/yuxiangwei0808/FunctionalMamba/tree/main.
