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-ic-based-encoding-braingit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-ic-based-encoding-brain/SKILL.md--- name: ic-based-encoding-brain description: "Independent Component (IC)-based encoding models for linking continuous stimulus features to fMRI brain activity. Dissociates stimulus-driven and noise-driven signals using ICA decomposition. Trigger words: IC-based encoding, independent component, fMRI encoding, story comprehension." category: neuroscience --- # Independent Component-Based Encoding Models for Brain Activity Skill based on arXiv:2604.24942v1 - IC-based encoding framework for fMRI data during naturalistic story listening. ## Core Methodology ### IC-Based Encoding Framework - **Purpose**: Dissociate stimulus-driven and noise-driven signals in fMRI - **Approach**: Decompose fMRI into Independent Components (ICs) - **Prediction**: Train encoding models to predict IC time series from LLM representations ### Framework Steps #### 1. Data Decomposition - Input: Continuous fMRI data from naturalistic story listening - Method: Independent Component Analysis (ICA) - Output: Spatial maps + time series for each IC #### 2. Model Training - Features: Large language model representations of linguistic input - Target: IC time series - Data Split: Independent subsets for decomposition and training #### 3. Component Analysis - **High Predictivity ICs**: Consistently predicted across subjects - **Spatial Consistency**: Reproducible across individuals - **Temporal Consistency**: Stable time courses - **Cognitive Networks**: Include auditory and language networks ## Key Advantages ### Over Voxelwise Approaches - **Noise Reduction**: Separates signal from artifacts - **Reduced Redundancy**: Addresses spatially correlated voxels - **Inter-Subject Variability**: Accommodates individual differences in network locations - **Interpretability**: Network-level analysis ### Validation Evidence - Auditory components correlate with acoustic features - Noise/motion artifacts show poor prediction (ICA-AROMA) - High predictivity indicates genuine stimulus-related neural signals - Components correspond to known cognitive networks ## Implementation ### ICA Decomposition ```python # Standard ICA approach from sklearn.decomposition import FastICA ica = FastICA(n_components=n_components, random_state=seed) ic_spatial = ica.fit_transform(fmri_data) ic_time = ica.components_ ``` ### Encoding Model ```python # Predict IC time series from LLM features from sklearn.linear_model import Ridge model = Ridge(alpha=regularization) model.fit(llm_features_train, ic_time_train) predictions = model.predict(llm_features_test) ``` ### Component Selection 1. **Predictivity Threshold**: High R² across subjects 2. **Spatial Consistency**: Reproducible spatial maps 3. **Cognitive Relevance**: Match to known networks 4. **Artifact Rejection**: Low prediction = likely noise ## Network-Level Analysis ### Identified Networks - **Auditory Network**: Strong correlation with acoustic features - **Language Network**: Semantic processing components - **Other Cognitive Networks**: Task-relevant activations ### Cross-Subject Consistency - ICs are spatially and temporally consistent - Network locations vary but functional roles preserved - Enables group-level inference ## Applications ### Research Domains - Naturalistic neuroimaging - Language processing - Narrative comprehension - Cross-modal integration ### Clinical Applications - Individual functional mapping - Network-based biomarkers - Pre-surgical planning - Language lateralization ## Technical Details ### Data Requirements - Continuous fMRI during naturalistic stimulation - Synchronized stimulus features (e.g., LLM embeddings) - Adequate scan duration for ICA stability ### Validation Methods - ICA-AROMA for artifact identification - Cross-validation of encoding models - Permutation testing for significance - Across-subject reproducibility ### Comparison Metrics - Predictive R² - Spatial correlation across subjects - Temporal correlation with stimulus features - Network membership overlap ## Key Findings ### From Paper (arXiv:2604.24942v1) - Subset of ICs shows consistently high predictivity - High-predicted ICs are spatially/temporally consistent - Auditory components correlate with acoustic features - Artifact components show uniformly poor prediction - Enables functional network-level analysis ## Advantages Summary | Feature | Voxelwise | IC-Based | |---------|-----------|----------| | Noise Handling | Limited | ICA separates | | Interpretability | Single voxel | Network level | | Cross-Subject | Registration | Consistent ICs | | Dimensionality | Thousands | Tens-hundreds | | Artifact Detection | Difficult | ICA-AROMA | ## References - **Paper**: Independent-Component-Based Encoding Models of Brain Activity During Story Comprehension - **Authors**: Kamya Hari, Taha Binhuraib, Jin Li, Cory Shain, Anna A. Ivanova - **arXiv**: 2604.24942v1 [cs.CL] - **Categories**: Computation and Language (cs.CL); Neurons and Cognition (q-bio.NC) - **Date**: April 27, 2026 ## Related Skills - fMRI encoding models - Naturalistic neuroimaging - ICA decomposition - Language network analysis - Large language models for neuroscience