Eeg model evaluation leakage

From Drchronx/ai-agent-research-starter-kit · View interactive version

Eeg model evaluation leakage is an AI agent skill from the GitHub repository Drchronx/ai-agent-research-starter-kit. Audit EEG/BCI model evaluation and prevent data leakage. Use for subject-wise splits, session-wise splits, trial-window leakage, nested cross-validation, permutation tests, confidence intervals, chance level, repeated runs, class imbalance, and reproducible EEG ML evaluation.

How to use this skill

Skill file

EEG Model Evaluation And Leakage Audit

Use this skill before trusting any EEG/BCI accuracy number.

Use scripts/create_bci_evaluation_audit.py to create an evaluation and leakage audit sheet.

Inputs

Workflow

  1. Identify all possible leakage paths: preprocessing, filtering, normalization, feature selection, windows, augmentation, hyperparameters, and early stopping.
  2. Match validation split to claim: within-subject, cross-session, cross-subject, or online.
  3. Require nested CV when tuning hyperparameters.
  4. Compute appropriate metrics: balanced accuracy, AUC, F1, confusion matrix, kappa, ITR when relevant.
  5. Estimate uncertainty with subject-level confidence intervals or paired tests.
  6. Run permutation or label-shuffle tests when needed.

Hard Constraints

Output

Claimed generalization:
Split audit:
Leakage risks:
Required fixes:
Metrics:
Uncertainty and statistical tests:
Accept/reject current evaluation:
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.