seed-vig-skill

Orchestrates SEED-VIG EEG validation, feature extraction, and vigilance classification workflows.

89|5|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill seed-vig-skill-cuhk-aim-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seed-vig-skill
Source: https://github.com/CUHK-AIM-Group/NeuroDiscovery/tree/main/skills/seed-vig-skill
Command: npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill seed-vig-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? Processing the SEED-VIG vigilance EEG dataset requires coordinating BIDS validation, EEG preprocessing, spectral feature extraction, and classification across multiple tools, which is error-prone when done manually. ## Core Features & Use Cases - BIDS Validation: Checks SEED-VIG directory structure, subject completeness, EEG file presence, and vigilance label availability, producing a CSV compliance report. - Feature Extraction: Computes band power (delta through gamma) and vigilance spectral ratios (theta/alpha, (theta+alpha)/beta, theta/beta) per epoch from .mat, .edf, .set, and .vhdr EEG files. - Vigilance Classification: Trains SVM and Random Forest classifiers with Leave-One-Subject-Out cross-validation for alert vs. drowsy detection. - Use Case: A researcher downloads the 23-subject SEED-VIG dataset and wants an end-to-end pipeline that validates the BIDS layout, extracts spectral features, and reports classification accuracy and AUC. ## Quick Start Run the full SEED-VIG pipeline on my local BIDS dataset to validate the data, extract EEG features, and classify vigilance states.

Frequently Asked Questions about seed-vig-skill

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

FAQPage Schema
How do I extract EEG band power features from SEED-VIG data?

Run the extract_seed_vig_features.py script with --input pointing to your BIDS directory and --output for results. It computes delta, theta, alpha, beta, and gamma band power plus vigilance ratios per 4-second epoch and writes a CSV file.

How to classify alert vs drowsy states from EEG features?

Use the classify_seed_vig.py script with a features CSV containing a vigilance or KSS label column. It trains SVM and Random Forest classifiers with Leave-One-Subject-Out cross-validation and reports accuracy and AUC in a JSON output.

What EEG file formats does SEED-VIG processing support?

The feature extraction script loads MATLAB .mat files via scipy, plus .edf, .set, and .vhdr formats through mne. The original SEED-VIG dataset ships as .mat files from the BCMI Lab at Shanghai Jiao Tong University.

Does SEED-VIG validation require the full 23 subjects?

No, the validation script processes whatever sub-* directories exist in the input path and reports per-subject EEG presence, file counts, and vigilance label availability. It only fails if no subject directories are found at all.

What are the limitations of SEED-VIG vigilance detection?

The 17-channel EEG montage offers limited spatial resolution compared to high-density systems, and the simulated driving task may not fully reflect real-world drowsiness. Cross-subject calibration is often needed due to individual EEG differences.