Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-graph-autoencoder-brain-networkgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-graph-autoencoder-brain-network/SKILL.md---
name: graph-autoencoders-for-brain-network-embedding
description: **Source:** arXiv:2107.12838
---
# Graph Autoencoders for Brain Network Embedding
**Source:** arXiv:2107.12838
**Utility:** 0.95
**Created:** 2026-03-25
## Activation Keywords
- graph autoencoder brain network
- GAE brain connectivity
- brain network embedding
- MDD classification
- GCN brain network
- connectome classification
## Description
A graph deep learning framework using Graph Autoencoders (GAE) to learn embeddings from fMRI-derived brain networks for Major Depressive Disorder (MDD) identification.
## Core Methodology
### 1. Problem: Brain Network Classification
**Challenges:**
- Traditional CNNs use Euclidean grid assumptions
- Brain networks are non-Euclidean graph structures
- Need to capture topological information
**Solution:** Graph Autoencoder for embedding learning
### 2. Architecture: GAE-FCNN
**Components:**
1. **Network Construction**
- Ledoit-Wolf (LDW) shrinkage for high-dimensional FC estimation
- Efficient FC metrics from fMRI data
- LDW-FC edges as node features
2. **Graph Autoencoder (GAE)**
- Graph Convolutional Networks (GCNs) encoder
- Embeds topological structure and node content
- Low-dimensional latent representations
3. **Fully-Connected Neural Network (FCNN)**
- Decoder/classifier
- Discriminates MDD from healthy controls
### 3. Learning Approaches
**Supervised:**
- End-to-end training with labels
- Direct optimization for classification
**Unsupervised:**
- Reconstruction-based learning
- Captures intrinsic graph structure
- Transfer to downstream tasks
## Implementation Framework
```python
# Conceptual architecture
import torch
import torch.nn as nn
from torch_geometric.nn import GCNConv
class BrainGAE(nn.Module):
"""Graph Autoencoder for brain network embedding"""
def __init__(self, num_nodes, input_dim, hidden_dim, latent_dim):
super().__init__()
# Encoder: GCN layers
self.conv1 = GCNConv(input_dim, hidden_dim)
self.conv2 = GCNConv(hidden_dim, latent_dim)
# Decoder: Inner product for link prediction
# or FCNN for classification
def encode(self, x, edge_index):
"""Encode graph to latent space"""
h = F.relu(self.conv1(x, edge_index))
z = self.conv2(h, edge_index)
return z
def decode(self, z):
"""Reconstruct adjacency from latent"""
return torch.sigmoid(torch.mm(z, z.t()))
def forward(self, x, edge_index):
z = self.encode(x, edge_index)
adj_recon = self.decode(z)
return adj_recon, z
class MDDClassifier(nn.Module):
"""FCNN classifier for MDD identification"""
def __init__(self, input_dim, hidden_dim):
super().__init__()
self.fc1 = nn.Linear(input_dim, hidden_dim)
self.fc2 = nn.Linear(hidden_dim, 1)
def forward(self, embeddings):
h = F.relu(self.fc1(embeddings))
out = torch.sigmoid(self.fc2(h))
return out
```
## Pipeline
```
fMRI Data → LDW FC Estimation → Brain Network Construction
→ Graph Autoencoder → Latent Embeddings
→ FCNN Classifier → MDD/HC Prediction
```
## Applications
### 1. MDD Identification
- Classify MDD vs healthy controls
- Achieves state-of-the-art accuracy
- Evaluated on two rs-fMRI datasets
### 2. Brain Disorder Diagnosis
- Extend to other neuropsychiatric disorders
- Transfer learning across disorders
### 3. Biomarker Discovery
- Latent embeddings reveal group differences
- Interpret discriminative features
## Key Results
| Method | Accuracy |
|--------|----------|
| GAE-FCNN (LDW-FC) | Best |
| Traditional CNN | Lower |
| SVM on FC | Lower |
**Findings:**
- LDW-FC edges as node features improve performance
- Graph embeddings show clear MDD vs HC separation
- Topology-aware approach outperforms Euclidean methods
## When to Use
- Brain network classification tasks
- fMRI-based disorder identification
- Learning embeddings from graph-structured brain data
- When topology matters (non-Euclidean data)
## Tools Used
- `read` - Read documentation and references
- `web_search` - Search for related information
- `web_fetch` - Fetch paper or documentation
## Instructions for Agents
Follow these steps when applying this skill:
### Step 1: Network Construction
### Step 2: Graph Autoencoder (GAE)
### Step 3: Fully-Connected Neural Network (FCNN)
### Step 4: Understand the Request
### Step 5: Search for Information
### When to Apply
- Brain network classification tasks
- fMRI-based disorder identification
- Learning embeddings from graph-structured brain data
## Examples
### Example 1: Basic Application
**User:** I need to apply Graph Autoencoders for Brain Network Embedding to my analysis.
**Agent:** I'll help you apply graph-autoencoder-brain-network. First, let me understand your specific use case...
**Context:** Problem: Brain Network Classification
### Example 2: Advanced Scenario
**User:** Brain network classification tasks
**Agent:** Based on the methodology, I'll guide you through the advanced application...
### Example 2: Advanced Application
**User:** What are the key considerations for graph-autoencoder-brain-network?
**Agent:** Let me search for the latest research and best practices...
## Related Skills
- `gnn-transformer-fusion` - GNN architectures for brain data
- `multimodal-brain-connectivity-gnn` - Multi-modal integration
- `dcorp-connectivity-refinement` - Connectivity preprocessing
## References
- Noman, F., et al. "Graph Autoencoders for Embedding Learning in Brain Networks and Major Depressive Disorder Identification." IEEE JBHI 2024.
- Graph Convolutional Networks (GCN)
- Ledoit-Wolf shrinkage estimator