SEED-IV Skill (Dataset-Orchestration Layer)
Overview
seed-iv-skill is the NeuroClaw orchestration skill for the SEED-IV (SJTU Emotion EEG Dataset - 4 emotions) dataset, developed by the BCMI Lab at Shanghai Jiao Tong University.
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 classification.
Core workflow (never bypassed):
- Identify input SEED-IV 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_iv_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| EEG validation |
Validate SEED-IV BIDS structure |
scripts/validate_seed_iv.py |
Validation report |
| EEG preprocessing |
Filtering, artifact removal, epoching |
eeg-skill |
eeg_output/ preprocessed EEG |
| Feature extraction |
DE, PSD, connectivity features |
scripts/extract_seed_iv_features.py |
Feature matrices |
| Emotion classification |
4-class emotion recognition |
scripts/classify_seed_iv.py |
Classification results + accuracy |
Dataset Characteristics
- Cohort: 15 healthy subjects
- Sessions: 3 sessions per subject (different days)
- Emotions: 4 classes — happy, sad, fear, neutral
- Trials: 24 trials per session (6 per emotion)
- Stimuli: Short film clips designed to elicit specific emotions
- EEG System: ESI NeuroScan System, 62 channels
- Sampling rate: 1000 Hz (downsampled to 200 Hz commonly)
- Reference: Linked mastoids (M1/M2)
- Access: BCMI Lab (bcmi.sjtu.edu.cn/~seed/)
- Format: MATLAB .mat files (community BIDS conversion available)
Supported Modalities
| Modality |
Description |
Details |
| EEG |
62-channel EEG |
ESI NeuroScan, 1000 Hz |
| Eye tracking |
Eye movement data |
Gaze position, blinks |
| Physiological |
GSR (galvanic skin response) |
Skin conductance |
SEED-IV Emotion Labels
| Label |
Emotion |
Trials per Session |
| 0 |
Neutral |
6 |
| 1 |
Sad |
6 |
| 2 |
Fear |
6 |
| 3 |
Happy |
6 |
BIDS Preparation
Script: scripts/validate_seed_iv.py
Validates SEED-IV BIDS structure and generates a compliance report.
python skills/seed-iv-skill/scripts/validate_seed_iv.py \
--input /path/to/SEED-IV/bids \
--output /path/to/seed_iv_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Subject/session completeness check (15 subjects × 3 sessions)
- EEG file presence verification
- Event file validation (emotion labels)
Core Workflow (Never Bypassed)
- Identify user target: full SEED-IV 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_iv.py.
- Delegate to
eeg-skill for EEG preprocessing (filtering, artifact removal).
- Run
scripts/extract_seed_iv_features.py for feature extraction (DE, PSD).
- Run
scripts/classify_seed_iv.py for emotion classification.
- Save outputs into
seed_iv_output/.
Standard Output Layout
seed_iv_output/
├── bids/ # BIDS-staged data (or validation report)
├── eeg/ # Preprocessed EEG derivatives
├── features/ # Extracted features (DE, PSD, connectivity)
├── classification/ # Classification results and accuracies
├── 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-IV data validation.
- If the task starts from SEED-IV data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local SEED-IV 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
- SEED-IV is a relatively small dataset (15 subjects); cross-subject generalization is challenging.
- 62-channel EEG provides rich spatial information for source localization.
- Differential Entropy (DE) features are the most commonly used for SEED-IV classification.
- Session-level normalization is recommended to handle inter-session variability.
seed-iv-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end SEED-IV workflow.
- User asks to process SEED-IV EEG data.
- User needs BIDS validation for SEED-IV data.
- User asks for EEG-based emotion recognition analysis.
- User asks to extract DE or PSD features from SEED-IV.
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-IV: https://bcmi.sjtu.edu.cn/~seed/
- BCMI Lab, Shanghai Jiao Tong University
- Zheng & Lu (2015): Investigating Critical Frequency Bands and Channels for EEG-based Emotion Recognition with Deep Neural Networks. IEEE Trans. Autonomous Mental Development.
Created At: 2026-05-06 14:21 HKT
Last Updated At: 2026-05-06 14:21 HKT
Author: chengwang96
1---2name: seed-iv-skill3description: Use this skill whenever the user wants an end-to-end workflow for the SEED-IV (SJTU Emotion EEG Dataset - 4 emotions) dataset, including EEG validation, preprocessing, feature extraction, and emotion classification. Triggers include: 'SEED-IV', 'SEED4', 'emotion EEG', 'EEG emotion recognition', 'process SEED-IV', or any request to run the SEED-IV pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# SEED-IV Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`seed-iv-skill` is the NeuroClaw orchestration skill for the **SEED-IV (SJTU Emotion EEG Dataset - 4 emotions)** dataset, developed by the BCMI Lab at Shanghai Jiao Tong University.
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 classification.
17
18**Core workflow (never bypassed):**
191. Identify input SEED-IV 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_iv_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-IV BIDS structure | `scripts/validate_seed_iv.py` | Validation report |
34| EEG preprocessing | Filtering, artifact removal, epoching | `eeg-skill` | `eeg_output/` preprocessed EEG |
35| Feature extraction | DE, PSD, connectivity features | `scripts/extract_seed_iv_features.py` | Feature matrices |
36| Emotion classification | 4-class emotion recognition | `scripts/classify_seed_iv.py` | Classification results + accuracy |
37
38---
39
40## Dataset Characteristics
41
42- **Cohort**: 15 healthy subjects
43- **Sessions**: 3 sessions per subject (different days)
44- **Emotions**: 4 classes — happy, sad, fear, neutral
45- **Trials**: 24 trials per session (6 per emotion)
46- **Stimuli**: Short film clips designed to elicit specific emotions
47- **EEG System**: ESI NeuroScan System, 62 channels
48- **Sampling rate**: 1000 Hz (downsampled to 200 Hz commonly)
49- **Reference**: Linked mastoids (M1/M2)
50- **Access**: BCMI Lab (bcmi.sjtu.edu.cn/~seed/)
51- **Format**: MATLAB .mat files (community BIDS conversion available)
52
53---
54
55## Supported Modalities
56
57| Modality | Description | Details |
58|---|---|---|
59| EEG | 62-channel EEG | ESI NeuroScan, 1000 Hz |
60| Eye tracking | Eye movement data | Gaze position, blinks |
61| Physiological | GSR (galvanic skin response) | Skin conductance |
62
63---
64
65## SEED-IV Emotion Labels
66
67| Label | Emotion | Trials per Session |
68|---|---|---|
69| 0 | Neutral | 6 |
70| 1 | Sad | 6 |
71| 2 | Fear | 6 |
72| 3 | Happy | 6 |
73
74---
75
76## BIDS Preparation
77
78### Script: `scripts/validate_seed_iv.py`
79
80Validates SEED-IV BIDS structure and generates a compliance report.
81
82```bash
83python skills/seed-iv-skill/scripts/validate_seed_iv.py \
84 --input /path/to/SEED-IV/bids \
85 --output /path/to/seed_iv_output/qc/bids_validation.csv
86```
87
88Features:
89- BIDS directory structure validation
90- Subject/session completeness check (15 subjects × 3 sessions)
91- EEG file presence verification
92- Event file validation (emotion labels)
93
94---
95
96## Core Workflow (Never Bypassed)
97
981. Identify user target: full SEED-IV pipeline, feature extraction only, or classification only.
992. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
1003. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
1014. On confirmation, run BIDS validation using `scripts/validate_seed_iv.py`.
1025. Delegate to `eeg-skill` for EEG preprocessing (filtering, artifact removal).
1036. Run `scripts/extract_seed_iv_features.py` for feature extraction (DE, PSD).
1047. Run `scripts/classify_seed_iv.py` for emotion classification.
1058. Save outputs into `seed_iv_output/`.
106
107---
108
109## Standard Output Layout
110
111```
112seed_iv_output/
113├── bids/ # BIDS-staged data (or validation report)
114├── eeg/ # Preprocessed EEG derivatives
115├── features/ # Extracted features (DE, PSD, connectivity)
116├── classification/ # Classification results and accuracies
117├── qc/ # QC summaries
118└── logs/ # Processing logs
119```
120
121---
122
123## Benchmark Adapter Guidance
124
125For benchmark-style prompts, do not force the full orchestration when the task only asks for local SEED-IV data validation.
126
127- If the task starts from SEED-IV data already present on disk and only asks for BIDS validation:
128 - Skip the download stage
129 - Default to the narrow path `local SEED-IV discovery -> BIDS validation -> report`
130- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
131
132---
133
134## Safety and Execution Policy
135- No execution before explicit plan confirmation.
136- All execution must be routed via `claw-shell`.
137- Missing dependencies must be resolved by `dependency-planner` before running.
138
139---
140
141## Important Notes and Limitations
142- SEED-IV is a relatively small dataset (15 subjects); cross-subject generalization is challenging.
143- 62-channel EEG provides rich spatial information for source localization.
144- Differential Entropy (DE) features are the most commonly used for SEED-IV classification.
145- Session-level normalization is recommended to handle inter-session variability.
146- `seed-iv-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
147
148---
149
150## When to Call This Skill
151- User asks for end-to-end SEED-IV workflow.
152- User asks to process SEED-IV EEG data.
153- User needs BIDS validation for SEED-IV data.
154- User asks for EEG-based emotion recognition analysis.
155- User asks to extract DE or PSD features from SEED-IV.
156
157---
158
159## Complementary / Related Skills
160- `eeg-skill` → EEG preprocessing and feature extraction
161- `bids-organizer` → BIDS validation and organization
162- `brain-visualization` → visualization of derivatives
163- `dependency-planner` → dependency resolution
164- `conda-env-manager` → environment management
165- `claw-shell` → command execution
166
167---
168
169## Reference
170- SEED-IV: https://bcmi.sjtu.edu.cn/~seed/
171- BCMI Lab, Shanghai Jiao Tong University
172- Zheng & Lu (2015): Investigating Critical Frequency Bands and Channels for EEG-based Emotion Recognition with Deep Neural Networks. IEEE Trans. Autonomous Mental Development.
173
174Created At: 2026-05-06 14:21 HKT
175Last Updated At: 2026-05-06 14:21 HKT
176Author: chengwang96