Visual Semantic Decoding of Electrocorticography from Video Stimuli using End-to-End Deep Learning - methodology for decoding visual categories from ECoG using Transformer-based deep learning with mixup augmentation and high-gamma band analysis.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill arxiv-2607-18923-visual-semantic-decoding-ecog --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Arxiv 2607 18923 Visual Semantic Decoding Ecog?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-arxiv-2607-18923-visual-semantic-decoding-ecog)More formats (shields.io, HTML) on the badges page.
---
name: arxiv-2607-18923-visual-semantic-decoding-ecog
description: "Visual Semantic Decoding of Electrocorticography from Video Stimuli using End-to-End Deep Learning - methodology for decoding visual categories from ECoG using Transformer-based deep learning with mixup augmentation and high-gamma band analysis."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
hermes:
tags: [ecog, visual-decoding, brain-computer-interface, deep-learning, transformer, semantic-decoding]
related_skills: [eeg-to-text-real-world-feasibility, mindalign-eeg-visual-decoding, stambridge-eeg-visual-decoding]
activation_words: ["ECoG visual decoding", "semantic decoding", "video stimuli ECoG", "end-to-end deep learning brain"]
---
## Overview
This skill implements the methodology from arXiv:2607.18923 for visual semantic decoding from electrocorticography (ECoG) recordings during video stimulus presentation. The approach uses end-to-end deep learning without handcrafted features to predict visual categories from neural activity.
## Core Methodology
### Dataset Characteristics
- **Participants**: n=17 patients with drug-resistant epilepsy
- **Stimuli**: Video clips from multiple visual categories
- **Neural recording**: ECoG with high spatial and temporal resolution
- **Training data**: Fewer than 50 samples per visual category (data-efficient)
### Deep Learning Architecture
- **Encoder**: Transformer-based architecture for sequence modeling
- **Input representation**: High-gamma band (80-150 Hz) filtered ECoG signals
- **Temporal window**: 900 ms post-stimulus onset
- **Data augmentation**: Mixup augmentation for limited training data
- **Output**: Visual category classification
### Spectral Analysis
- **Frequency bands tested**: Multiple bands including delta, theta, alpha, beta, gamma, high-gamma
- **Optimal band**: High-gamma (80-150 Hz) provided best decoding performance
- **Rationale**: High-gamma reflects local neuronal population activity and correlates with BOLD fMRI
### Temporal Dynamics
- **Window optimization**: Tested multiple post-stimulus windows (100-1000 ms)
- **Optimal window**: 900 ms window starting at stimulus onset
- **Interpretation**: Captures both early visual processing and higher-level semantic processing
### Cortical Contributions
Key brain regions contributing to decoding performance:
- **Early visual cortex**: V2-V4 areas for basic visual feature extraction
- **Ventral stream**: Object recognition pathway (inferior temporal cortex)
- **MT+ complex**: Motion processing areas with neighboring visual regions
- **Lateral temporal cortex**: Higher-level semantic processing
## Implementation Guidelines
### Preprocessing Pipeline
1. **Filtering**: Band-pass filter to extract high-gamma (80-150 Hz) components
2. **Epoching**: Extract 900 ms epochs starting from stimulus onset
3. **Normalization**: Z-score normalization across channels and time
4. **Augmentation**: Apply mixup augmentation to increase effective training data
### Model Architecture Details
- **Input layer**: Time-series ECoG channels × time points
- **Transformer encoder**: Multi-head self-attention with positional encoding
- **Classification head**: Fully connected layers with softmax output
- **Training**: Cross-entropy loss with Adam optimizer
### Evaluation Protocol
- **Cross-validation**: Leave-one-subject-out or k-fold cross-validation
- **Metrics**: Accuracy, F1-score, confusion matrices
- **Statistical testing**: Permutation tests to establish significance
- **Baseline comparison**: Compare against traditional machine learning approaches
## Applications
### Brain-Computer Interfaces
- **Visual prosthetics**: Decoding perceived visual content for sensory restoration
- **Communication systems**: Enabling communication through visual imagery
- **Neurofeedback**: Real-time feedback based on decoded visual perception
### Cognitive Neuroscience
- **Visual processing hierarchy**: Understanding temporal dynamics of visual processing
- **Semantic representation**: Mapping neural correlates of visual semantics
- **Individual differences**: Studying variability in visual processing across subjects
### Clinical Applications
- **Epilepsy monitoring**: Understanding functional organization in epileptic brains
- **Pre-surgical mapping**: Identifying critical visual areas before resection
- **Neurorehabilitation**: Developing targeted rehabilitation protocols
## Pitfalls and Limitations
### Technical Challenges
- **Limited data**: Small sample sizes per category require careful regularization
- **Inter-subject variability**: Individual differences in electrode placement and brain anatomy
- **Signal quality**: ECoG signals can be affected by clinical factors and artifacts
- **Generalization**: Models trained on specific stimuli may not generalize to novel content
### Methodological Considerations
- **Causal interpretation**: Correlation does not imply causation in decoding results
- **Feature attribution**: Understanding what the model actually learns requires careful analysis
- **Temporal resolution**: Trade-off between temporal precision and signal-to-noise ratio
- **Spatial coverage**: Limited electrode coverage may miss critical brain regions
## Best Practices
### Data Collection
- Maximize number of visual categories and exemplars within constraints
- Ensure consistent stimulus presentation timing
- Record high-quality ECoG with appropriate sampling rates (>500 Hz)
- Collect detailed metadata about electrode locations and patient characteristics
### Model Development
- Use appropriate regularization techniques for small datasets
- Validate models on held-out subjects when possible
- Perform ablation studies to understand contribution of different components
- Analyze model behavior across spectral, temporal, and spatial dimensions
### Interpretation
- Relate findings to established neuroscience knowledge
- Consider both successful and failed decoding attempts
- Account for potential confounding factors (e.g., eye movements, attention)
- Report effect sizes and confidence intervals alongside accuracy metrics
## References
- Ho, S., Villalobos, J., West, J., Liu, J., Qi, W., Kishima, H., Fukuma, R., Yanagisawa, T., John, S. E., & Grayden, D. B. (2026). Visual Semantic Decoding of Electrocorticography from Video Stimuli using End-to-End Deep Learning. arXiv:2607.18923.
- Pasley, B. N., David, S. V., Mesgarani, N., Flinker, A., Shamma, S. A., & Chang, E. F. (2012). Reconstructing speech from human auditory cortex. PLoS biology, 10(1), e1001251.
- Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, B., & Gallant, J. L. (2011). Reconstructing visual experiences from brain activity evoked by natural movies. Current Biology, 21(19), 1641-1646.
## Activation Examples
Use this skill when:
- Designing ECoG-based visual decoding experiments
- Implementing end-to-end deep learning for neural decoding
- Analyzing high-gamma band contributions to visual processing
- Developing brain-computer interfaces for visual communication
- Interpreting Transformer-based neural decoding resultsIs 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!