Subject-specific analysis of self-initiated attention shifts from EEG using interpretable machine learning. Demonstrates reliable within-subject classification of preparatory EEG activity distinguishing self-initiated vs externally instructed attention shifts. Uses SHAP feature attribution to identify spectral-spatial contributions. Applicable to: personalized BCI, asynchronous brain-machine interfaces, attention decoding, EEG-based voluntary intent detection. Activation: self-initiated atten...
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill eeg-self-initiated-attention-shifts --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Eeg Self Initiated Attention Shifts?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-eeg-self-initiated-attention-shifts-37cce623)More formats (shields.io, HTML) on the badges page.
---
name: eeg-self-initiated-attention-shifts
description: >
Subject-specific analysis of self-initiated attention shifts from EEG using interpretable machine learning.
Demonstrates reliable within-subject classification of preparatory EEG activity distinguishing
self-initiated vs externally instructed attention shifts. Uses SHAP feature attribution to identify
spectral-spatial contributions. Applicable to: personalized BCI, asynchronous brain-machine interfaces,
attention decoding, EEG-based voluntary intent detection.
Activation: self-initiated attention, EEG attention shifts, voluntary attention, asynchronous BCI,
SHAP EEG analysis, subject-specific EEG, preparatory EEG, attention decoding, internal vs external attention.
Based on arXiv:2605.18251 (May 2026).
---
# EEG Self-Initiated Attention Shifts Analysis
## Paper Details
- **Title**: Subject-Specific Analysis of Self-Initiated Attention Shifts from EEG with Controlled Internal and External Attention Conditions
- **arXiv**: 2605.18251 (2026-05-18)
- **Authors**: Yuwen Zeng, Dengzhe Hou, Zhang Zhang, Sai Sun, Yongsong Huang et al.
- **Categories**: eess.SP, cs.LG, q-bio.NC
## Core Problem
Self-initiated attention shifts are critical for voluntary behavior but lack explicit temporal markers,
making them difficult to study. This paper asks: **can preparatory EEG activity distinguish self-initiated
from externally instructed attention shifts?**
## Experimental Paradigm
- **Controlled comparison**: Task-constrained self-initiated shifts vs externally instructed shifts
- **Identical visual stimulation** across conditions (eliminates sensory confounds)
- **EEG recording** during preparatory period before attention shift execution
- **Machine learning classification** to detect which type of shift is being prepared
## Key Findings
1. **Within-subject classification is reliable**: Preparatory EEG contains subject-specific
discriminative information for distinguishing self-initiated vs externally cued shifts
2. **Higher-frequency bands contribute strongly**: Beta/gamma bands are important features
3. **Frontal regions are key discriminators**: Frontal EEG channels show strongest predictive power
4. **Caution needed for high-frequency EEG**: Non-neural artifacts (eye movements, muscle) can
contaminate high-frequency signals and must be carefully controlled
## Methodology
### Two-Pronged Analysis Approach
1. **Performance-Oriented Assessment**:
- Frequency-specific topographic pattern analysis
- Within-subject classification accuracy evaluation
- Identifies which frequency bands and brain regions carry discriminative information
2. **Model-Based Feature Attribution (SHAP)**:
- SHapley Additive exPlanations for interpretable feature importance
- Structured view of how spectral features across regions contribute to model behavior
- Identifies which EEG features drive classification decisions
## Implementation Framework
```python
import numpy as np
from sklearn.model_selection import cross_val_score
import shap
# EEG preprocessing
def extract_frequency_bands(eeg_data, bands):
"""Extract power in standard EEG frequency bands."""
features = {}
for band_name, (low, high) in bands.items():
# Bandpass filter + power estimation
band_power = compute_band_power(eeg_data, low, high)
features[band_name] = band_power
return features
def compute_topographic_features(eeg_features, roi_channels):
"""Compute region-of-interest features."""
roi_features = {}
for roi, channels in roi_channels.items():
roi_features[roi] = np.mean(eeg_features[:, channels], axis=1)
return roi_features
# SHAP analysis for interpretability
def analyze_feature_importance(model, X, roi_features):
"""Use SHAP to identify which features drive decisions."""
explainer = shap.KernelExplainer(model.predict, X)
shap_values = explainer.shap_values(X)
# Aggregate by region and frequency band
feature_importance = {}
for feat_idx, feat_name in enumerate(roi_features):
feature_importance[feat_name] = np.mean(np.abs(shap_values[:, feat_idx]))
return feature_importance
# Within-subject classification
def within_subject_analysis(subject_data, n_subjects):
"""Evaluate classification per subject."""
results = {}
for s in range(n_subjects):
X, y = subject_data[s]
scores = cross_val_score(model, X, y, cv=5)
results[f"subject_{s}"] = {
"accuracy": scores.mean(),
"std": scores.std()
}
return results
```
## Practical Applications
### Asynchronous BCI Systems
- Detect user's voluntary intent without explicit triggers
- Enable natural, self-paced interaction with BCI devices
- Reduce dependency on external cueing systems
### Personalized Attention Monitoring
- Individual calibration for attention state detection
- Track voluntary vs reflexive attention shifts
- Applications in ADHD assessment, cognitive training
### Clinical Applications
- Assess volitional control in disorders of consciousness
- Monitor recovery of voluntary attention in neurological conditions
- Potential biomarker for fronto-parietal network integrity
## Key Considerations
### Artifact Contamination
- High-frequency EEG is susceptible to muscle and eye movement artifacts
- Must carefully validate that discriminative features are neural in origin
- Use artifact rejection, ICA, and control conditions
### Subject Variability
- Results are **within-subject** — cross-subject generalization not demonstrated
- Individual calibration likely needed for practical deployment
- Inter-subject differences in preparatory activity patterns
## Related Skills
- `eeg-foundation-model-adapters`
- `attention-task-structure-cognitive-flexibility`
- `eeg-preprocessing-reliability`
- `brain-network-controllability`
## arXiv
- https://arxiv.org/abs/2605.18251
- https://arxiv.org/pdf/2605.18251
Is 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!