Abstract
Graphs are a natural representation of brain activity derived from functional magnetic imaging (fMRI) data. It is well known that clusters of anatomical brain regions, known as functional connectivity networks (FCNs), encode temporal relationships which can serve as useful biomarkers for understanding brain function and dysfunction. Previous works, however, ignore the temporal dynamics of the brain and focus on static graphs. In this paper, we propose a dynamic brain graph deep generative model (DBGDGM) which simultaneously clusters brain regions into temporally evolving communities and learns dynamic unsupervised node embeddings. Specifically, DBGDGM represents brain graph nodes as embeddings sampled from a distribution over communities that evolve over time. We parameterise this community distribution using neural networks that learn from subject and node embeddings as well as past community assignments. Experiments demonstrate DBGDGM outperforms baselines in graph generation, dynamic link prediction, and is comparable for graph classification. Finally, an analysis of the learnt community distributions reveals overlap with known FCNs reported in neuroscience literature.
Introduction
Functional magnetic resonance imaging (fMRI) captures neural activity by measuring blood-oxygen levels, typically represented as a "brain graph" where nodes are anatomical regions and edges denote functional connectivity. However, traditional models often treat these graphs as static snapshots, failing to capture the brain's dynamic "wiring diagram" that shifts over time. While some dynamic models exist, they often struggle with scalability or fail to capture mesoscale structures—clusters of nodes known as functional connectivity networks (FCNs). DBGDGM addresses this gap by simultaneously learning individual node behaviors and evolving community structures within multi-subject fMRI data.
Methods
The Dynamic Brain Graph Deep Generative Model (DBGDGM) is a hierarchical Bayesian model structured across three levels:
- Subject Level: A fixed embedding ($\alpha$) captures individual-specific traits.
- Node & Community Level: Node ($\phi$) and community ($\psi$) embeddings evolve via Markov chains, allowing the model to retain temporal context while adapting to new activity.
- Edge Level: Connections are generated by assigning a source node to a community and sampling a target node from that community’s distribution.
To enable unsupervised training, the authors utilize Variational Inference with Gated Recurrent Units (GRUs) to capture temporal dependencies. The Gumbel-softmax trick is applied to allow gradient flow through discrete community assignments, making the entire architecture end-to-end trainable.
Experimental Setup
The model was evaluated on two large-scale fMRI datasets: the Human Connectome Project (HCP) and the UK Biobank (UKB). Both datasets included 300 subjects, with brain activity processed into dynamic graph snapshots using the Glasser atlas (360 regions). Edges were defined using a sliding-window Pearson correlation, focusing on the top 5% of connections.
Key Results
DBGDGM was compared against static (VGAE, OSBM) and dynamic (VGRNN, ELSM) baselines.
Graph Reconstruction and Link Prediction
The model demonstrated superior performance in graph reconstruction, achieving an 18% to 30% improvement in Negative Log-Likelihood (NLL) compared to the next best models. In link prediction tasks, DBGDGM reached an AUROC of approximately 0.77-0.79, representing an 11% relative improvement over the strongest baselines.
Interpretability and Downstream Tasks
Beyond reconstruction, DBGDGM's learned community distributions align with established neuroscience, overlapping with networks such as the Default Mode Network (DMN). Furthermore, the unsupervised embeddings proved biologically relevant, achieving ~75% accuracy in predicting subject sex on the HCP and UKB datasets, proving that the model captures meaningful biological signals.
Discussion and Future Work
DBGDGM provides a robust framework for modeling dynamic brain connectivity with high interpretability and efficiency. Despite its complexity, it remains computationally efficient due to optimized forward-pass operations. Future work may address the current limitation of a fixed node set to accommodate growing graph structures or explore learning directly from raw BOLD time-series rather than pre-computed sliding-window graphs.
Summary updated