mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.7k stars 1.31k forks source link

Using CHB-MIT seizure dataset in EDF format #4613

Closed syedumaramin closed 7 years ago

syedumaramin commented 7 years ago

I was wondering how could I use MNE for CHB-MIT seizure dataset classification which does not have stim channel and hence I can not find events.

agramfort commented 7 years ago

please share a file or tell us what you typed to try

syedumaramin commented 7 years ago

the CHB-MIT eeg database has no annotation channel so how can I use MNE to find events like seizure. It gives error that " no STIM channel found

agramfort commented 7 years ago

how are stored the annotations? in the edf file?

please give me an example file

syedumaramin commented 7 years ago

Here is the link for the files. These are edf files and seperate annotation file but no annotation channel https://physionet.org/physiobank/database/chbmit/

agramfort commented 7 years ago

I have no problem reading a file with current master:

raw = mne.io.read_raw_edf('chb01/chb01_01.edf', stim_channel='auto')

the annotation of seizures are stored outside of the edf AFAIK see eg chb01_03.edf.seizures

don't bother about stim channel

syedumaramin commented 7 years ago

thanks but how can i find events for classification purpose

syedumaramin commented 7 years ago

Ho can I find events in a file with no annotation channel

agramfort commented 7 years ago

you need to read the seizure file and do the maths to know where it corresponds to in the file. this is not an MNE problem.

syedumaramin commented 7 years ago

@agramfort , thanks

nurinathirahh commented 3 years ago

hi @syedumaramin can you share how did you manage to read the .seizure file? i am a beginner in this EEG im having difficulty to read the .seizure using mne. Thank you so much

saiful1604008 commented 2 years ago

Can anyone share the pre-processing code of CHB-MIT dataset. I am new in EEG and facing difficulty to read the files. My email - u1604008@student.cuet.ac.bd

Thank you

drammock commented 2 years ago

@saiful1604008 please use the MNE forum for usage questions. https://mne.discourse.group