EEG Feature Engineering For BCI
Use this skill when converting EEG trials or windows into model-ready features.
Inputs
- Cleaned EEG or epochs.
- Task type: motor imagery, P300, SSVEP, workload, emotion, attention, neuromarketing, or HCI.
- Frequency bands, time windows, channels, and labels.
- Evaluation design.
Workflow
- Choose features based on task physiology and timing.
- Define windows and channels before seeing model performance.
- Extract baseline features: time-domain statistics, band power, PSD, ERP amplitude/latency.
- Add BCI features when relevant: CSP, FBCSP, Riemannian covariance, connectivity.
- Fit scaling, feature selection, CSP, PCA, or normalization only on training folds.
- Export feature matrix with subject/session/trial metadata.
Hard Constraints
- Do not fit feature selection or normalization on the full dataset before cross-validation.
- Do not choose windows after inspecting test performance.
- Do not use future samples in online or pseudo-online features.
- Do not report feature importance as neural mechanism without caution.
Output
Feature set:
Window and channel plan:
Training-fold-only transforms:
Feature matrix schema:
Baseline features:
Advanced features:
Leakage audit: