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-dcorp-connectivity-refinementgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-dcorp-connectivity-refinement/SKILL.md---
name: differentiable-connectivity-refinement-for-brain-n
description: **Source:** arXiv:2405.18658
---
# Differentiable Connectivity Refinement for Brain Networks
**Source:** arXiv:2405.18658
**Utility:** 0.95
**Created:** 2026-03-25
## Activation Keywords
- D-CoRP
- differentiable connectivity refinement
- brain network refinement
- connectivity denoising
- information bottleneck brain network
- graph neural network plugin
## Description
A differentiable module for refining brain connectivity using multivariate optimization based on information bottleneck theory, designed as a flexible plugin adaptable to most graph neural networks for brain network analysis.
## Core Methodology
### 1. Problem: Connectivity Noise in Brain Networks
**Issues with existing models:**
- Primarily focus on brain regions
- Overlook complexity of brain connectivities
- MRI-derived brain network data susceptible to connectivity noise
**Need:** Incorporate connectivities into brain network modeling
### 2. D-CoRP Framework
**Approach:** Differentiable Connectivity Refinement module
**Key Components:**
- Multivariate optimization based on information bottleneck theory
- Filters noisy or redundant connections
- Preserves meaningful connectivity patterns
### 3. Information Bottleneck Optimization
**Principle:** Compress network while preserving task-relevant information
**Benefits:**
- Addresses brain network complexity
- Removes noise and redundancy
- Enhances signal-to-noise ratio
### 4. GNN Plugin Architecture
**Flexibility:**
- Functions as a plugin for existing GNNs
- Adaptable to most graph neural network architectures
- End-to-end differentiable training
## Implementation Framework
```python
# Conceptual architecture
class DCoRP(nn.Module):
"""Differentiable Connectivity Refinement Plugin"""
def __init__(self, input_dim, hidden_dim):
super().__init__()
# Learnable connectivity refinement weights
self.refinement_net = nn.Sequential(
nn.Linear(input_dim, hidden_dim),
nn.ReLU(),
nn.Linear(hidden_dim, input_dim),
nn.Sigmoid() # Soft edge selection
)
def forward(self, adjacency, features):
"""
Refine brain network connectivity
Args:
adjacency: Original connectivity matrix
features: Node features
Returns:
Refined adjacency matrix
"""
# Compute refinement scores
edge_scores = self.refinement_net(features)
# Apply differentiable refinement
refined_adj = adjacency * edge_scores
# Information bottleneck regularization
ib_loss = self.information_bottleneck_loss(refined_adj, adjacency)
return refined_adj, ib_loss
def information_bottleneck_loss(self, refined, original):
"""Encourage compression while preserving information"""
# Mutual information approximation
compression = -torch.mean(torch.sum(refined, dim=-1))
preservation = -F.mse_loss(refined, original)
return compression + preservation
# Usage as GNN plugin
class BrainNetworkGNN(nn.Module):
def __init__(self, dcorp_plugin, backbone_gnn):
super().__init__()
self.dcorp = dcorp_plugin
self.gnn = backbone_gnn
def forward(self, adjacency, features):
# Refine connectivity first
refined_adj, ib_loss = self.dcorp(adjacency, features)
# Apply GNN on refined network
output = self.gnn(refined_adj, features)
return output, ib_loss
```
## Applications
1. **Brain Disease Classification**
- Major depressive disorder identification
- Autism spectrum disorder classification
- Alzheimer's disease detection
2. **Brain Network Analysis**
- Connectivity denoising
- Feature enhancement
- Network refinement
3. **Multi-site Studies**
- Harmonizing connectivity across sites
- Reducing scanner-related noise
## Experimental Results
- Significantly improves performance of various baseline models
- Outperforms other state-of-the-art methods
- Effective and generalizable across datasets
## When to Use
- Brain network analysis with noisy connectivity
- Enhancing GNN performance on brain data
- When connectivity quality is a concern
- Multi-site neuroimaging studies
## Key Benefits
- **Flexible plugin** - Works with most GNN architectures
- **Differentiable** - End-to-end training
- **Information-theoretic** - Principled noise filtering
- **Generalizable** - Strong performance across datasets
## 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: Brain Disease Classification
### Step 2: Brain Network Analysis
### Step 3: Multi-site Studies
### Step 4: Understand the Request
### Step 5: Search for Information
### When to Apply
- Brain network analysis with noisy connectivity
- Enhancing GNN performance on brain data
- When connectivity quality is a concern
## Examples
### Example 1: Basic Application
**User:** I need to apply Differentiable Connectivity Refinement for Brain Networks to my analysis.
**Agent:** I'll help you apply dcorp-connectivity-refinement. First, let me understand your specific use case...
**Context:** Problem: Connectivity Noise in Brain Networks
### Example 2: Advanced Scenario
**User:** Brain network analysis with noisy connectivity
**Agent:** Based on the methodology, I'll guide you through the advanced application...
### Example 2: Advanced Application
**User:** What are the key considerations for dcorp-connectivity-refinement?
**Agent:** Let me search for the latest research and best practices...
## Related Skills
- `graph-laplacian-denoising` - Graph signal denoising
- `gnn-transformer-fusion` - GNN architectures for neural data
- `brain-graph-augmentation-template` - Brain graph preprocessing
## References
- Hu, H., et al. "D-CoRP: Differentiable Connectivity Refinement for Functional Brain Networks." arXiv:2405.18658 (2024)
- Information bottleneck theory
- Graph neural networks for brain networks