SEED-VIG Skill (Dataset-Orchestration Layer)
Overview
seed-vig-skill is the NeuroClaw orchestration skill for the SEED-VIG (SJTU Emotion EEG Dataset - Vigilance) dataset, developed by the BCMI Lab at Shanghai Jiao Tong University for vigilance/fatigue detection research.
It strictly follows the NeuroClaw hierarchical design principles:
- This skill only describes WHAT needs to be done and which tool skill to delegate to.
- It contains no implementation code or concrete commands.
- All concrete execution is delegated to existing base/tool skills via
claw-shell.
- Companion scripts in
scripts/ provide reference implementations for EEG validation, feature extraction, and vigilance classification.
Core workflow (never bypassed):
- Identify input SEED-VIG data and target analysis.
- Generate a numbered execution plan clearly stating WHAT needs to be done and which tool skill will handle each step.
- Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
- On confirmation, delegate every step to the appropriate skill via
claw-shell.
- After execution, save all outputs in a clean directory structure (
seed_vig_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| EEG validation |
Validate SEED-VIG BIDS structure |
scripts/validate_seed_vig.py |
Validation report |
| EEG preprocessing |
Filtering, artifact removal |
eeg-skill |
eeg_output/ preprocessed EEG |
| Feature extraction |
Band power, DE, connectivity |
scripts/extract_seed_vig_features.py |
Feature matrices |
| Vigilance classification |
Binary/multi-class vigilance detection |
scripts/classify_seed_vig.py |
Classification results |
Dataset Characteristics
- Cohort: 23 healthy subjects
- Task: Simulated driving task (vigilance decrement paradigm)
- EEG System: 17-channel EEG (ESI NeuroScan or dry electrodes)
- Sampling rate: 200 Hz
- Reference: Linked mastoids (M1/M2)
- Labels: Vigilance levels (KSS scale or EEG-derived)
- Duration: ~2 hours per subject
- Access: BCMI Lab (bcmi.sjtu.edu.cn/~seed/)
- Format: MATLAB .mat files (community BIDS conversion available)
Supported Modalities
| Modality |
Description |
Details |
| EEG |
17-channel EEG |
ESI NeuroScan, 200 Hz |
| Eye tracking |
Eye movement data |
Blinks, gaze position |
| Peripheral |
EOG, EMG |
Eye/muscle artifacts |
SEED-VIG Vigilance Labels
| Label |
Description |
Method |
| KSS |
Karolinska Sleepiness Scale |
Self-report (1-9) |
| EEG-based |
Theta/alpha/beta power ratios |
Spectral analysis |
| Binary |
Alert vs. Drowsy |
Threshold-based |
BIDS Preparation
Script: scripts/validate_seed_vig.py
Validates SEED-VIG BIDS structure and generates a compliance report.
python skills/seed-vig-skill/scripts/validate_seed_vig.py \
--input /path/to/SEED-VIG/bids \
--output /path/to/seed_vig_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Subject completeness check (23 subjects)
- EEG file presence verification
- Vigilance label availability check
Core Workflow (Never Bypassed)
- Identify user target: full SEED-VIG pipeline, feature extraction only, or classification only.
- Generate a numbered plan with tools, outputs, runtime, storage, and risks.
- Wait for explicit confirmation (
YES / execute / proceed).
- On confirmation, run BIDS validation using
scripts/validate_seed_vig.py.
- Delegate to
eeg-skill for EEG preprocessing.
- Run
scripts/extract_seed_vig_features.py for feature extraction.
- Run
scripts/classify_seed_vig.py for vigilance classification.
- Save outputs into
seed_vig_output/.
Standard Output Layout
seed_vig_output/
├── bids/ # BIDS-staged data (or validation report)
├── eeg/ # Preprocessed EEG derivatives
├── features/ # Extracted features (band power, DE)
├── classification/ # Vigilance classification results
├── qc/ # QC summaries
└── logs/ # Processing logs
Benchmark Adapter Guidance
For benchmark-style prompts, do not force the full orchestration when the task only asks for local SEED-VIG data validation.
- If the task starts from SEED-VIG data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local SEED-VIG discovery -> BIDS validation -> report
- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
Safety and Execution Policy
- No execution before explicit plan confirmation.
- All execution must be routed via
claw-shell.
- Missing dependencies must be resolved by
dependency-planner before running.
Important Notes and Limitations
- 17-channel EEG provides limited spatial resolution compared to high-density systems.
- Simulated driving may not fully replicate real-world drowsiness.
- Theta/alpha/beta power ratios are commonly used spectral features for vigilance detection.
- Cross-subject calibration is often needed due to individual differences in EEG patterns.
seed-vig-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end SEED-VIG workflow.
- User asks to process SEED-VIG EEG data.
- User needs BIDS validation for SEED-VIG data.
- User asks for EEG-based vigilance/fatigue detection analysis.
- User asks for drowsiness detection or alertness monitoring.
Complementary / Related Skills
eeg-skill → EEG preprocessing and feature extraction
bids-organizer → BIDS validation and organization
brain-visualization → visualization of derivatives
dependency-planner → dependency resolution
conda-env-manager → environment management
claw-shell → command execution
Reference
- SEED-VIG: https://bcmi.sjtu.edu.cn/~seed/
- BCMI Lab, Shanghai Jiao Tong University
- Wei et al. (2017): EEG-based vigilance estimation using extreme learning machines. Neurocomputing.
Created At: 2026-05-06 14:21 HKT
Last Updated At: 2026-05-06 14:21 HKT
Author: chengwang96
1---2name: seed-vig-skill3description: Use this skill whenever the user wants an end-to-end workflow for the SEED-VIG (SJTU Emotion EEG Dataset - Vigilance) dataset, including EEG validation, preprocessing, feature extraction, and vigilance/fatigue detection. Triggers include: 'SEED-VIG', 'SEEDVIG', 'vigilance EEG', 'fatigue detection', 'drowsiness EEG', 'process SEED-VIG', or any request to run the SEED-VIG pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# SEED-VIG Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`seed-vig-skill` is the NeuroClaw orchestration skill for the **SEED-VIG (SJTU Emotion EEG Dataset - Vigilance)** dataset, developed by the BCMI Lab at Shanghai Jiao Tong University for vigilance/fatigue detection research.
11
12It strictly follows the NeuroClaw hierarchical design principles:
13- This skill **only describes WHAT needs to be done** and **which tool skill to delegate to**.
14- It contains **no implementation code or concrete commands**.
15- All concrete execution is delegated to existing base/tool skills via `claw-shell`.
16- Companion scripts in `scripts/` provide reference implementations for EEG validation, feature extraction, and vigilance classification.
17
18**Core workflow (never bypassed):**
191. Identify input SEED-VIG data and target analysis.
202. Generate a **numbered execution plan** clearly stating WHAT needs to be done and which tool skill will handle each step.
213. Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
224. On confirmation, delegate every step to the appropriate skill via `claw-shell`.
235. After execution, save all outputs in a clean directory structure (`seed_vig_output/`).
24
25**Research use only.**
26
27---
28
29## Quick Reference
30
31| Task | What needs to be done | Delegate to | Expected output |
32|---|---|---|---|
33| EEG validation | Validate SEED-VIG BIDS structure | `scripts/validate_seed_vig.py` | Validation report |
34| EEG preprocessing | Filtering, artifact removal | `eeg-skill` | `eeg_output/` preprocessed EEG |
35| Feature extraction | Band power, DE, connectivity | `scripts/extract_seed_vig_features.py` | Feature matrices |
36| Vigilance classification | Binary/multi-class vigilance detection | `scripts/classify_seed_vig.py` | Classification results |
37
38---
39
40## Dataset Characteristics
41
42- **Cohort**: 23 healthy subjects
43- **Task**: Simulated driving task (vigilance decrement paradigm)
44- **EEG System**: 17-channel EEG (ESI NeuroScan or dry electrodes)
45- **Sampling rate**: 200 Hz
46- **Reference**: Linked mastoids (M1/M2)
47- **Labels**: Vigilance levels (KSS scale or EEG-derived)
48- **Duration**: ~2 hours per subject
49- **Access**: BCMI Lab (bcmi.sjtu.edu.cn/~seed/)
50- **Format**: MATLAB .mat files (community BIDS conversion available)
51
52---
53
54## Supported Modalities
55
56| Modality | Description | Details |
57|---|---|---|
58| EEG | 17-channel EEG | ESI NeuroScan, 200 Hz |
59| Eye tracking | Eye movement data | Blinks, gaze position |
60| Peripheral | EOG, EMG | Eye/muscle artifacts |
61
62---
63
64## SEED-VIG Vigilance Labels
65
66| Label | Description | Method |
67|---|---|---|
68| KSS | Karolinska Sleepiness Scale | Self-report (1-9) |
69| EEG-based | Theta/alpha/beta power ratios | Spectral analysis |
70| Binary | Alert vs. Drowsy | Threshold-based |
71
72---
73
74## BIDS Preparation
75
76### Script: `scripts/validate_seed_vig.py`
77
78Validates SEED-VIG BIDS structure and generates a compliance report.
79
80```bash
81python skills/seed-vig-skill/scripts/validate_seed_vig.py \
82 --input /path/to/SEED-VIG/bids \
83 --output /path/to/seed_vig_output/qc/bids_validation.csv
84```
85
86Features:
87- BIDS directory structure validation
88- Subject completeness check (23 subjects)
89- EEG file presence verification
90- Vigilance label availability check
91
92---
93
94## Core Workflow (Never Bypassed)
95
961. Identify user target: full SEED-VIG pipeline, feature extraction only, or classification only.
972. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
983. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
994. On confirmation, run BIDS validation using `scripts/validate_seed_vig.py`.
1005. Delegate to `eeg-skill` for EEG preprocessing.
1016. Run `scripts/extract_seed_vig_features.py` for feature extraction.
1027. Run `scripts/classify_seed_vig.py` for vigilance classification.
1038. Save outputs into `seed_vig_output/`.
104
105---
106
107## Standard Output Layout
108
109```
110seed_vig_output/
111├── bids/ # BIDS-staged data (or validation report)
112├── eeg/ # Preprocessed EEG derivatives
113├── features/ # Extracted features (band power, DE)
114├── classification/ # Vigilance classification results
115├── qc/ # QC summaries
116└── logs/ # Processing logs
117```
118
119---
120
121## Benchmark Adapter Guidance
122
123For benchmark-style prompts, do not force the full orchestration when the task only asks for local SEED-VIG data validation.
124
125- If the task starts from SEED-VIG data already present on disk and only asks for BIDS validation:
126 - Skip the download stage
127 - Default to the narrow path `local SEED-VIG discovery -> BIDS validation -> report`
128- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
129
130---
131
132## Safety and Execution Policy
133- No execution before explicit plan confirmation.
134- All execution must be routed via `claw-shell`.
135- Missing dependencies must be resolved by `dependency-planner` before running.
136
137---
138
139## Important Notes and Limitations
140- 17-channel EEG provides limited spatial resolution compared to high-density systems.
141- Simulated driving may not fully replicate real-world drowsiness.
142- Theta/alpha/beta power ratios are commonly used spectral features for vigilance detection.
143- Cross-subject calibration is often needed due to individual differences in EEG patterns.
144- `seed-vig-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
145
146---
147
148## When to Call This Skill
149- User asks for end-to-end SEED-VIG workflow.
150- User asks to process SEED-VIG EEG data.
151- User needs BIDS validation for SEED-VIG data.
152- User asks for EEG-based vigilance/fatigue detection analysis.
153- User asks for drowsiness detection or alertness monitoring.
154
155---
156
157## Complementary / Related Skills
158- `eeg-skill` → EEG preprocessing and feature extraction
159- `bids-organizer` → BIDS validation and organization
160- `brain-visualization` → visualization of derivatives
161- `dependency-planner` → dependency resolution
162- `conda-env-manager` → environment management
163- `claw-shell` → command execution
164
165---
166
167## Reference
168- SEED-VIG: https://bcmi.sjtu.edu.cn/~seed/
169- BCMI Lab, Shanghai Jiao Tong University
170- Wei et al. (2017): EEG-based vigilance estimation using extreme learning machines. Neurocomputing.
171
172Created At: 2026-05-06 14:21 HKT
173Last Updated At: 2026-05-06 14:21 HKT
174Author: chengwang96