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-gnn-transformer-fusiongit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-gnn-transformer-fusion/SKILL.md--- name: gnn-transformer-fusion version: 1.0.0 description: | 图神经网络与 Transformer 融合的多模态数据融合方法论。 整合非欧几里得脑影像数据与欧几里得表格数据,支持时间感知的纵向预测。 触发词:多模态融合、脑网络、GNN、Transformer、时序预测、纵向分析、 multimodal fusion, brain connectivity, GNN-TF, temporal fusion。 --- # GNN-Transformer Fusion (GNN-TF) ## 核心方法论 ### 问题定义 **挑战:** 如何整合非欧几里得脑影像数据与欧几里得表格数据(临床、人口统计信息)进行纵向结果预测? **解决方案:** 时间感知图神经网络 + Transformer 融合 --- ## 架构设计 ``` ┌─────────────────────────────────────────────────────┐ │ GNN-TF 架构 │ ├─────────────────────────────────────────────────────┤ │ │ │ ┌──────────────┐ ┌──────────────┐ │ │ │ Tabular Data │ │ Brain FC │ │ │ │ (Euclidean) │ │ (Non-Euclid) │ │ │ └──────┬───────┘ └──────┬───────┘ │ │ │ │ │ │ ▼ ▼ │ │ ┌──────────────┐ ┌──────────────┐ │ │ │ Embedding │ │ GNN │ │ │ │ Layer │ │ Encoder │ │ │ └──────┬───────┘ └──────┬───────┘ │ │ │ │ │ │ └─────────┬─────────┘ │ │ ▼ │ │ ┌──────────────────┐ │ │ │ Transformer │ │ │ │ Fusion Layer │ │ │ │ (Time-Aware) │ │ │ └────────┬─────────┘ │ │ ▼ │ │ ┌──────────────────┐ │ │ │ Prediction Head │ │ │ └──────────────────┘ │ │ │ └─────────────────────────────────────────────────────┘ ``` --- ## 关键技术 ### 1. 双流编码器 | 数据类型 | 编码器 | 特点 | |----------|--------|------| | 表格数据(欧几里得) | MLP/Embedding | 处理临床、人口统计信息 | | 脑连接数据(非欧几里得) | GNN | 捕捉脑网络拓扑结构 | ### 2. 时间感知 Transformer 融合 - **时间嵌入:** 编码纵向数据的时间顺序 - **跨模态注意力:** 学习表格数据与脑网络的交互 - **序列建模:** 捕捉时间动态变化 ### 3. 端到端训练 - 联合优化多模态表示 - 端到端反向传播 - 支持多任务学习 --- ## 应用场景 | 场景 | 说明 | |------|------| | **临床预测** | 未来烟草使用、物质滥用风险 | | **疾病进展** | 神经退行性疾病轨迹预测 | | **治疗反应** | 个性化治疗效果预测 | | **脑发育** | 青少年脑发育轨迹建模 | --- ## 技术要点 ### 与传统方法对比 | 方法 | 表格数据 | 脑影像 | 时间动态 | 融合方式 | |------|----------|--------|----------|----------| | 传统 ML | ✅ | ❌ | ❌ | - | | 深度学习 | ✅ | ✅ | ❌ | 拼接 | | GNN | ❌ | ✅ | ❌ | - | | **GNN-TF** | ✅ | ✅ | ✅ | Transformer 注意力 | ### 实现步骤 1. **数据预处理** - 表格数据:标准化、缺失值处理 - 脑连接:构建功能连接矩阵 2. **特征提取** - GNN 编码脑网络拓扑 - Embedding 编码表格特征 3. **时序融合** - Transformer 融合多时间点数据 - 时间位置编码 4. **预测输出** - 分类或回归头 - 不确定性估计 --- ## 数据集验证 **NCANDA 数据集**(National Consortium on Alcohol and Neurodevelopment in Adolescence) - 纵向静息态 fMRI - 临床和人口统计数据 - 未来烟草使用预测任务 - GNN-TF 优于所有对比方法 --- ## 相关技能 - `time-varying-brain-connectivity` - 时变脑网络分析 - `elastic-memory-orchestration` - 弹性记忆编排 --- ## 来源 - **论文:** Graph Neural Networks with Transformer Fusion of Brain Connectivity Dynamics and Tabular Data for Forecasting Future Tobacco Use - **arXiv:** 2512.23137 - **效用评分:** 1.0 - **学习日期:** 2026-03-21 ## Activation Keywords - 脑网络分析 - 神经科学方法 - 计算神经科学 - 脑连接建模 ## Tools Used - **read**: Read skill documentation and references - **exec**: Run analysis scripts and data processing - **web_fetch**: Fetch papers and resources ## Instructions for Agents 1. Read the skill documentation carefully 2. Understand the methodology and key concepts 3. Apply the techniques to the specific problem 4. Document results and insights ## Examples ```python # Example usage of the skill methodology # Refer to the Technical Implementation section for details ```