Abstract
Understanding the dynamic nature of functional connectivity in the human brain is essential for mapping neurodevelopment and identifying biomarkers for disease. However, existing models often rely on fixed temporal windows that fail to capture the varying speeds of brain state transitions. We introduce BrainATCL, an unsupervised framework designed for adaptive temporal brain connectivity learning. BrainATCL utilizes a novelty-based adaptive lookback mechanism to dynamically adjust the temporal context for each brain state. By combining Graph Isomorphism Networks with Edge features (GINEConv) and the efficient Mamba2 state-space model, the framework captures complex spatial and long-range temporal dependencies with linear complexity. Our experiments on the Human Connectome Project (HCP) dataset demonstrate that BrainATCL significantly outperforms existing methods in functional link prediction and biological age estimation, providing a robust and biologically-informed approach to dynamic functional connectivity analysis.
Introduction
The human brain is a highly dynamic system where functional connections between regions are constantly reconfiguring. Functional Magnetic Resonance Imaging (fMRI) provides a window into these fluctuations, revealing patterns of dynamic functional connectivity (dFC). Traditional analysis often treats these connections as static or uses fixed-length sliding windows to capture changes. However, such approaches are limited: fixed windows cannot account for the varying temporal scales of brain activity, and high-dimensional fMRI data poses significant computational challenges for traditional sequence models like Transformers.
The Challenge of Dynamic Functional Connectivity
Modeling dFC involves three primary hurdles. First, the fixed window problem: brain states do not evolve at a constant rate. A model looking back a fixed 30 seconds might miss rapid transitions or include irrelevant historical data during stable periods. Second, computational efficiency: while Transformers excel at capturing long-range dependencies, their quadratic complexity makes them difficult to scale for long fMRI sequences. Third, the neglect of biological priors: many models ignore the inherent structural organization of the brain, such as hemispheric symmetry and functional subnetwork identities.
The BrainATCL Framework
BrainATCL addresses these challenges through a multi-stage pipeline that transforms raw fMRI signals into biologically-informed, adaptive temporal sequences.
The core innovation is the Novelty-Based Adaptive Lookback. Instead of a fixed window, the model calculates a "novelty index" based on the rate of edge changes in the connectivity graph. When the network is in a state of flux (high novelty), the model uses a shorter lookback window to focus on immediate changes. Conversely, during stable periods (low novelty), it extends the window to capture longer-term context. This provides a custom temporal context for every snapshot, mimicking how human cognitive processes prioritize immediate versus historical information.
Architecture and Learning
The spatial features of each graph snapshot are encoded using a GINEConv-based Graph Neural Network, which incorporates neuroscience-informed edge attributes such as hemispheric identity and subnetwork membership. These spatial embeddings are then fed into a Mamba2 module. Mamba2, a state-space model (SSM), provides the long-range modeling capabilities of Transformers but with linear complexity, making it uniquely suited for the high-dimensional, long-duration sequences found in neuroimaging.
The model is trained in an unsupervised manner using a contrastive triplet loss. By representing nodes as multivariate Gaussian distributions, the model learns to cluster functionally related regions in the latent space while separating distant ones, all without the need for manual labels.
Experimental Results
We evaluated BrainATCL using resting-state fMRI data from the Human Connectome Project (HCP) Young Adult dataset, comprising 1,001 subjects. The model was tested on two downstream tasks: Functional Link Prediction and Age Estimation.
In Functional Link Prediction, BrainATCL achieved a Mean Average Precision (MAP) of 0.7630, significantly surpassing the previous state-of-the-art GDG-Mamba (0.7165). This performance indicates a superior ability to forecast future brain connectivity states. For Age Estimation, the model achieved a Mean Absolute Error (MAE) of 2.80 years, demonstrating that the learned embeddings capture stable, biologically relevant individual traits.
As shown in the figure above, the adaptive lookback mechanism (blue line) consistently performs at or near the top across various strides, effectively balancing temporal context. The "Average Novelty" (red dashed line) illustrates how the model's adaptive window correlates with the underlying dynamics of the brain network, proving that novelty is a reliable heuristic for setting temporal context.
Conclusion and Future Work
BrainATCL represents a significant step forward in dynamic functional connectivity modeling. By marrying adaptive temporal windows with the efficient Mamba2 architecture and biological priors, it offers a scalable and accurate framework for neuroimaging analysis. The results suggest that the "speed" of connectivity is a vital feature for understanding brain states. Future work will focus on end-to-end training of the embedding and downstream models, as well as further personalizing the adaptive mechanisms to individual-specific brain signal fluctuations.
Summary updated