akaraspt / deepsleepnet

DeepSleepNet: a Model for Automatic Sleep Stage Scoring based on Raw Single-Channel EEG
Apache License 2.0
398 stars 153 forks source link

how to extract many channel ? #6

Closed shqing closed 6 years ago

shqing commented 6 years ago

Hi, if we want to extract many channel, what should we do ? python prepare_physionet.py --data_dir data --output_dir data/eeg_fpz_cz --select_ch 'EEG Fpz-Cz EOG horizontal' is wrong

akaraspt commented 6 years ago

Hi,

The current implementation of the prepare_physionet.py only support extracting single-channel EEG at the moment.

So running: python prepare_physionet.py --data_dir data --output_dir data/eeg_fpz_cz --select_ch 'EEG Fpz-Cz EOG horizontal' would not work.

The code I provided here is to reproduce the results mentioned in the paper, which only used single channel in the Physionet dataset.

You can modify my script in prepare_physionet.py to extract signals from more than one channel.

Hope this helps.

Akara