eeg-model-evaluation-leakage

Audit EEG/BCI model evaluation procedures and mitigate risks of data leakage. Applicable to checks on subject splits, session splits, trial-window leakage, nested cross-validation, permutation testing, confidence intervals, random effects, repeated runs, class imbalance, and reproducible EEG ML evaluation.

Last repository push
GitHub Stars
193
Forks
15
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "eeg-model-evaluation-leakage" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-309c5f1b0e3cd518f0e4164fc6190541988238888b9223948d92cce165fd355f. Verify the upstream source and version against https://github.com/Drchronx/ai-agent-research-starter-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Audit EEG/BCI model evaluation procedures and mitigate risks of data leakage. Applicable to checks on subject splits, session splits, trial-window leakage, nested cross-validation, permutation testing, confidence intervals, random effects, repeated runs, class imbalance, and reproducible EEG ML evaluation.

0 Downloads

Introduction source: third_party · Drchronx · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
Not specified in the source documentation.
Inputs and outputs
Dataset structure. Feature extraction and preprocessing steps. Split strategy and model outputs. Claimed generalization level.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Do not evaluate on data used for tuning. Do not split overlapping windows randomly. Do not aggregate across subjects without subject-level reporting. Do not compare against chance without class-balance adjustment.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: eeg-model-evaluation-leakage
description: "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."

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

  • Dataset structure.
  • Feature extraction and preprocessing steps.
  • Split strategy and model outputs.
  • Claimed generalization level.

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

  • Do not evaluate on data used for tuning.
  • Do not split overlapping windows randomly.
  • Do not aggregate across subjects without subject-level reporting.
  • Do not compare against chance without class-balance adjustment.

Output

Claimed generalization:
Split audit:
Leakage risks:
Required fixes:
Metrics:
Uncertainty and statistical tests:
Accept/reject current evaluation:

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 解决EEG/BCI模型评估中数据泄露的核心科研痛点
  • 提供从划分策略到统计检验的完整审计流程
Trigger Precision92/100

Highlights

  • 触发词覆盖被试者划分、会话划分、嵌套交叉验证等多种EEG评估场景
  • 边界清晰,无歧义或宽泛描述
Structure and Standards90/100

Highlights

  • 结构清晰,包含Inputs、Workflow、Hard Constraints、Output等完整章节
  • 提供端到端输出示例,frontmatter完整
Execution Reliability65/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 引用了 scripts/create_bci_evaluation_audit.py 但未传入该文件

    Recommendation: 请补充 scripts/create_bci_evaluation_audit.py 文件以确保执行闭环

Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.