Universal Brain Dynamics (UBD) methodology for constructing a universal latent space of brain activity that integrates structural connectivity (dMRI) with temporal dynamics (fMRI) using GCNs and Deep Koopman Operators. Achieves Pearson's r > 0.9 across 8 cognitive states and 963 subjects. Enables analysis of cognitive transitions, structure-function coupling, and individual differences. Use when: (1) analyzing whole-brain fMRI dynamics, (2) studying structure-function coupling in the brain, (...
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill universal-brain-dynamics --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Universal Brain Dynamics?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-universal-brain-dynamics-f84185e8)More formats (shields.io, HTML) on the badges page.
---
name: universal-brain-dynamics
description: >
Universal Brain Dynamics (UBD) methodology for constructing a universal latent
space of brain activity that integrates structural connectivity (dMRI) with
temporal dynamics (fMRI) using GCNs and Deep Koopman Operators. Achieves
Pearson's r > 0.9 across 8 cognitive states and 963 subjects. Enables analysis
of cognitive transitions, structure-function coupling, and individual differences.
Use when: (1) analyzing whole-brain fMRI dynamics, (2) studying structure-function
coupling in the brain, (3) quantifying cognitive state transitions,
(4) investigating individual differences in brain dynamics,
(5) building universal brain representations.
Activation: universal brain dynamics, UBD, brain dynamics space, Koopman brain,
GCN fMRI prediction, structure-function coupling, cognitive state transition,
infra-slow fluctuation, brain manifold, universal latent space brain.
---
# Universal Brain Dynamics (UBD)
A Universal Space of Brain Dynamics for Unveiling Cognitive Transitions and Individual Differences.
## Source
- **Paper**: A Universal Space of Brain Dynamics for Unveiling Cognitive Transitions and Individual Differences
- **arXiv**: [2605.02936](https://arxiv.org/abs/2605.02936)
- **PDF**: [https://arxiv.org/pdf/2605.02936](https://arxiv.org/pdf/2605.02936)
- **Authors**: Ronghua Zheng, Chengyuan Qian, Weiyang Ding
- **Institute**: Institute of Science and Technology for Brain-Inspired Intelligence, Fudan University
- **Date**: 1 May 2026
- **Categories**: q-bio.QM (Quantitative Methods), q-bio.NC (Neurons and Cognition)
## Core Concept
Brain activity can be conceptualized as coordinated dynamics evolving within a unified system. UBD constructs a **universal latent space** tailored to brain activity by synergistically integrating:
- **Spatial properties** — structural connectivity (SC) from dMRI, reflecting physical wiring
- **Temporal properties** — functional connectivity (FC) from fMRI, reflecting brain function
The framework achieves unprecedented whole-brain fMRI prediction accuracy (Pearson's r > 0.9) across **8 cognitive states** and **963 subjects** from the Human Connectome Project (HCP), and generalizes to the UK Biobank dataset.
## Architecture
```
┌──────────────────────────────────────────────────────────┐
│ Measurement Space │
│ fMRI signals → Time-delay embedding → Snapshots (X_t) │
└──────────────────────────┬───────────────────────────────┘
│
┌──────▼──────┐
│ Encoder │
│ GCN (SC) │
└──────┬──────┘
│
┌──────▼──────┐
│ Latent │
│ Space Z_t │
└──────┬──────┘
│
┌────────────▼────────────┐
│ Deep Koopman Operator │
│ Z_{t+1} = exp(iθ) · Z_t│
└────────────┬────────────┘
│
┌──────▼──────┐
│ Decoder │
│ GCN (SC) │
└──────┬──────┘
│
┌──────▼──────┐
│ Predicted │
│ fMRI X̂_{t+1}│
└─────────────┘
```
### Three Components
1. **Encoder GCN**: Maps time-delay embedded fMRI snapshots to latent representations. Uses dMRI-derived SC to guide message passing across brain areas (426 nodes).
2. **Deep Koopman Operator (DKO)**: Learns angular frequency θ between consecutive latent representations via complex multiplication. Captures temporal evolution of brain dynamics.
3. **Decoder GCN**: Mirrors encoder architecture, maps evolved latent representations back to fMRI observation space.
### Loss Functions
- **Prediction Loss**: MSE between observed and predicted fMRI snapshots
- **Latent Loss**: Consistency between latent trajectories (DKO-projected vs. GCN-encoded)
## Key Findings
### 1. Infra-Slow Fluctuation (ISF) Architecture
UBD reveals four distinct spectral peaks in resting-state fMRI:
| Peak (rad/s) | Freq (Hz) | Band | Interpretation |
|-------------|-----------|------|---------------|
| 0–0.09 | 0–0.014 | Slow-5 | Large-scale cortical networks (dominant, ~65%) |
| 0.22–0.25 | 0.035–0.040 | Slow-4 | Subcortical, sensorimotor networks |
| 0.49–0.53 | 0.078–0.084 | Slow-3 | Higher-frequency components |
| 0.72–0.78 | 0.115–0.124 | — | Physiological rhythms (Mayer waves) |
**First empirical evidence** that ISF manifests as **distinct separable spectral peaks** rather than a continuous distribution, mirroring electrophysiological findings.
### 2. Structure-Function Coupling as Temporal Evolution
Brain dynamics derived from the Jacobian matrix show that SFC is not static but an **evolving process**:
- **At t=1**: Strong alignment with structural connectivity (SC) — PCC ~0.75
- **Over time**: SC alignment decreases; FC alignment increases
- **At t=7–10**: Dynamics align more closely with functional connectivity (FC)
- **Implication**: SC serves as the origin, FC as the destination — computational validation of the "structural-functional decoupling" hypothesis
### 3. Cognitive State Transitions
- Latent trajectories achieve **~100% classification accuracy** across 8 cognitive states
- Task-related information is far more distinguishable in the universal latent space than original fMRI space
- Cognitive transitions are driven by **specific cognitive demands**, not chronological time
- Demonstrates effector-specific topographies across motor tasks (tongue, hand, foot)
### 4. Individual Differences
- Latent trajectories encode more **subject-specific information** than raw fMRI signals (>90% clustering accuracy)
- High-performers show **stronger load-dependent modulation** (2-back vs 0-back) across distributed systems
- Individual differences are **highly condition-specific** (face vs. place vs. tool processing)
## Methodology
### Training
- **Data**: Resting-state fMRI from 35 HCP subjects
- **Brain Parcellation**: 426 regions
- **Structural Connectivity**: dMRI-derived SC guides GCN message passing
- **Prediction Horizon**: 100 time points (multi-step prediction)
### Dynamics Derivation
After training, brain dynamics are quantified using:
1. **Latent Trajectories**: Z_t = Encoder(X_t) — each fMRI snapshot maps to a point in the universal latent space
2. **Angular Frequency θ**: Learned by DKO, characterizes temporal properties and links to frequency bands
3. **Jacobian Matrix**: GCN-derived, quantifies each brain area's influence on latent trajectories — captures whole-brain dynamics
### Cross-State Generalization
| Dataset | Subjects | States | Mean PCC (t=1–25) |
|---------|---------|--------|-------------------|
| HCP | 963 | 8 | >0.9 |
| UK Biobank | 100 | 1 (resting) | Comparable to HCP |
## Implementation Guidelines
### Data Preparation
```python
# 1. Time-delay embedding of fMRI signals
def time_delay_embedding(fmri_signals, delay=5, dimension=10):
"""Stack fMRI signals with time delays to create snapshots."""
n_regions, n_timepoints = fmri_signals.shape
snapshots = []
for t in range(n_timepoints - (dimension - 1) * delay):
snapshot = fmri_signals[:, t:t + dimension * delay:delay]
snapshots.append(snapshot)
return torch.tensor(snapshots)
# 2. Structural connectivity matrix from dMRI
sc_matrix = load_dti_tractography() # shape: (n_regions, n_regions)
adjacency = normalize_connectivity(sc_matrix)
```
### GCN Encoder/Decoder
```python
import torch
import torch.nn as nn
class GraphConvLayer(nn.Module):
def __init__(self, in_features, out_features, sc_adjacency):
super().__init__()
self.weight = nn.Parameter(torch.randn(in_features, out_features) * 0.01)
self.sc_adjacency = sc_adjacency # dMRI-guided structural connectivity
def forward(self, x):
# Message passing guided by structural connectivity
return torch.relu(self.sc_adjacency @ x @ self.weight)
class GCNEncoder(nn.Module):
def __init__(self, n_regions, n_features, latent_dim, sc_adjacency):
super().__init__()
self.gcn1 = GraphConvLayer(n_features, 128, sc_adjacency)
self.gcn2 = GraphConvLayer(128, latent_dim, sc_adjacency)
def forward(self, snapshots):
# snapshots: (batch, n_regions, n_features)
h = self.gcn1(snapshots)
z = self.gcn2(h)
return z # latent representation
```
### Deep Koopman Operator
```python
class DeepKoopmanOperator(nn.Module):
def __init__(self, latent_dim):
super().__init__()
self.mlp = nn.Sequential(
nn.Linear(latent_dim, 64),
nn.ReLU(),
nn.Linear(64, 1) # outputs angular frequency θ
)
def forward(self, z_t):
# Predict angular frequency from current latent state
theta = self.mlp(z_t) # shape: (batch, 1)
# Complex multiplication for evolution
z_next = z_t * torch.exp(1j * theta)
return z_next, theta
```
### Training Loop
```python
def train_ubd(encoder, dko, decoder, snapshots, sc_adjacency, epochs=700):
optimizer = torch.optim.Adam(
list(encoder.parameters()) + list(dko.parameters()) + list(decoder.parameters()),
lr=1e-3
)
for epoch in range(epochs):
for t in range(len(snapshots) - prediction_horizon):
x_t = snapshots[t:t+1]
x_target = snapshots[t+1:t+prediction_horizon+1]
# Encode
z_t = encoder(x_t)
# Evolve via DKO (multi-step)
z_pred = []
z_current = z_t
thetas = []
for step in range(prediction_horizon):
z_next, theta = dko(z_current)
z_pred.append(z_next)
thetas.append(theta)
z_current = z_next
z_pred = torch.stack(z_pred, dim=1)
# Decode
x_pred = decoder(z_pred)
# Losses
pred_loss = nn.MSELoss()(x_pred, x_target)
latent_loss = nn.MSELoss()(z_pred, encoder(x_target))
total_loss = pred_loss + lambda_latent * latent_loss
total_loss.backward()
optimizer.step()
```
## Applications
| Domain | Application | Key Advantage |
|--------|------------|--------------|
| Cognitive Neuroscience | State transition analysis | Finer granularity than traditional methods |
| Clinical | Biomarker discovery | Universal representation across subjects |
| Individual Differences | Behavioral prediction | Subject-specific dynamics >90% accuracy |
| Brain-Computer Interface | fMRI decoding | High-dimensional latent space |
| Connectomics | Structure-function coupling | Temporal evolution perspective |
## Key Parameters
| Parameter | Description | Typical Value |
|-----------|-------------|---------------|
| n_regions | Brain parcellation resolution | 426 (HCP) |
| delay | Time-delay embedding step | 5 TR |
| dimension | Embedding dimension | 10 |
| latent_dim | Latent space dimension | 32–128 |
| prediction_horizon | Multi-step prediction length | 100 time points |
| λ_latent | Latent loss weight | 0.1–1.0 |
| epochs | Training epochs | 700 |
## Advantages
1. **Universality**: Single trained model generalizes across 8+ cognitive states and 963+ subjects
2. **Interpretability**: Jacobian matrix provides mechanistic insight into brain dynamics
3. **Cross-dataset**: Validated on HCP and UK Biobank
4. **Data efficiency**: Trained on only 35 subjects yet generalizes broadly
5. **Multi-scale**: Captures both spatial (SC) and temporal (FC) properties
## Limitations
1. **Data requirements**: Requires both fMRI and dMRI from same subjects
2. **Computational cost**: GCN on 426 nodes with time-delay embeddings
3. **Parcellation dependence**: Results may vary with atlas choice
4. **Hemodynamic lag**: BOLD signal's temporal resolution limits fine-grained dynamics
5. **Linear Koopman assumption**: DKO assumes approximately linear latent dynamics
## Relation to Existing Work
- Extends **Koopman theory** to brain dynamics analysis
- Connects **graph convolutional networks** with dynamical systems
- Validates **structural-functional decoupling** hypothesis
- Links **infra-slow fluctuations** to discrete spectral bands
- Bridges **macroscale brain dynamics** with **cognitive state transitions**
## Verification Steps
1. Verify prediction accuracy (PCC > 0.9 for t=1–25) across multiple cognitive states
2. Confirm the four spectral peaks in θ distribution across subjects
3. Validate SFC temporal evolution (SC→FC transition over time)
4. Test classification accuracy using latent trajectories vs. raw fMRI
5. Verify individual difference patterns are condition-specific
## Pitfalls
1. **Insufficient SC quality**: Poor dMRI tractography degrades GCN message passing
2. **Overfitting to resting-state**: Model trained only on rest may not generalize to all tasks
3. **Time-delay parameters**: Improper delay/dimension choices affect embedding quality
4. **Group-level averaging**: May obscure individual-specific dynamics
5. **Frequency interpretation**: Higher-frequency peaks may include physiological noise
## Activation Keywords
- universal brain dynamics
- UBD framework
- brain dynamics universal space
- Koopman brain dynamics
- GCN fMRI prediction
- structure-function coupling brain
- cognitive state transition dynamics
- infra-slow fluctuation fMRI
- brain latent manifold
- individual differences brain dynamics
- deep Koopman operator neuroscience
- structural-functional decoupling
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!