seed-iv-skill

Orchestrates SEED-IV EEG validation, feature extraction, and emotion classification workflows.

89|5|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill seed-iv-skill-cuhk-aim-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seed-iv-skill
Source: https://github.com/CUHK-AIM-Group/NeuroDiscovery/tree/main/skills/seed-iv-skill
Command: npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill seed-iv-skill-cuhk-aim-group

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, pandas, scikit-learn, mne, and includes scripts (resource) components.

What problem does it solve? Running an end-to-end analysis on the SEED-IV emotion EEG dataset requires coordinating BIDS validation, EEG preprocessing, feature extraction, and classification across multiple tools, which is error-prone when done manually. ## Core Features & Use Cases - BIDS Validation: Checks SEED-IV directory structure, subject/session completeness (15 subjects x 3 sessions), and EEG/event file presence, producing a compliance report. - Feature Extraction: Computes Differential Entropy (DE) and Power Spectral Density (PSD) features across delta, theta, alpha, beta, and gamma bands from 62-channel EEG. - Emotion Classification: Trains SVM and Random Forest classifiers with Leave-One-Subject-Out cross-validation for 4-class emotion recognition (happy, sad, fear, neutral). - Use Case: A researcher downloads SEED-IV data, asks for the full pipeline, and receives a numbered execution plan; after confirmation, the skill validates the BIDS layout, delegates preprocessing to eeg-skill, extracts DE features, and outputs classification accuracies into a clean seed_iv_output/ directory. ## Quick Start Ask the agent to run the full SEED-IV pipeline on your local SEED-IV BIDS directory, including validation, DE feature extraction, and SVM emotion classification.

Frequently Asked Questions about seed-iv-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run the SEED-IV emotion recognition pipeline?

Point the skill at your SEED-IV BIDS directory and request the full pipeline. It generates a numbered execution plan, waits for your confirmation, then runs BIDS validation, EEG preprocessing via eeg-skill, DE/PSD feature extraction, and SVM or Random Forest classification.

How to extract DE and PSD features from SEED-IV EEG data?

Use the extract_seed_iv_features.py script with --feature-type de, psd, or both. It computes Differential Entropy and Welch-based PSD across delta, theta, alpha, beta, and gamma bands for each channel and epoch, writing results to a CSV file.

What EEG file formats does SEED-IV processing support?

The feature extraction script loads MATLAB .mat files via scipy, plus EDF, BDF, EEGLAB .set, and BrainVision .vhdr files via mne. Sampling rate is read from the file or defaults to 200 Hz for .mat data.

Does SEED-IV classification support cross-subject evaluation?

Yes, both the SVM (RBF kernel) and Random Forest classifiers use Leave-One-Subject-Out cross-validation via scikit-learn's LeaveOneGroupOut. Results include overall accuracy and per-class metrics saved as JSON.

What are the limitations of SEED-IV emotion classification?

SEED-IV contains only 15 subjects, making cross-subject generalization challenging. Session-level normalization is recommended to handle inter-session variability, and results should be treated as research-use only.