# EEG Database for classification purpose

**URL:** <https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552>\
**Category:** Support & Discussions\
**Created:** [September 7, 2022, 6:24pm UTC](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552 "2022-09-07T18:24:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanna](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/hanna/32/1835_2.png) [@Hanna](https://mne.discourse.group/u/Hanna)\
**Post date:** [September 7, 2022, 6:24pm UTC](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552/1 "2022-09-07T18:24:44Z")

</div>

Hi, i’m using this database [CHB-MIT Scalp EEG Database v1.0.0 (physionet.org)](https://physionet.org/content/chbmit/1.0.0/)] on my master’s research project. I’m trying to use the annotations files but it’s in the edf.seizure extension. Does anyone ever worked with these files and knows how to open?

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [September 14, 2022, 3:18pm UTC](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552/2 "2022-09-14T15:18:55Z")

</div>

I looked at the dataset. all the `.seizures` files are only 54 bytes long, they don’t contain any actual annotations. I think they exist only to indicate _which recordings_ contained seizures, not to mark where in the file the seizures occurred. You _can_ read them with MNE-Python, but only if you change them to have an `.edf` extension. for example, this shell command:

```python
mv chb01_03.edf.seizures chb01_03.seizures.edf

```

renames the file, and then in python:

```python
import mne
mne.read_annotations('chb01_03.seizures.edf')

```

will return `<Annotations | 0 segments>`

If you have further questions about the dataset you should probably contact the authors / dataset uploaders directly.

---

<div class="post-metadata">

**Author:** ![ZeenatFirdosh](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/zeenatfirdosh/32/2027_2.png) [@ZeenatFirdosh](https://mne.discourse.group/u/ZeenatFirdosh)\
**Post date:** [November 7, 2022, 9:22am UTC](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552/3 "2022-11-07T09:22:05Z")

</div>

Thank you!!  
I wil work on it and will try implement what you said…

---

<div class="post-metadata">

**Author:** ![Teuniz](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@Teuniz](https://mne.discourse.group/u/Teuniz)\
**Post date:** [November 7, 2022, 11:12am UTC](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552/4 "2022-11-07T11:12:05Z")

</div>

Please have a look here:

> [@how to load .edf.seizure file of CHB-MIT dataset](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/3):
>
> These files are in “MIT annot” format. The annotation files belonging to EDF files which contain a seizure, have at least two annotations which point to the beginning and the end of the seizure. (for example file chb05\_06.edf.seizures) After opening the EDF file in EDFbrowser, go to Tools → Import annotations/events and select the tab MIT/WFDB to import the annotations from that annotations file. Click on the import button and in the file dialog, set the filter to “all files”. The descriptio…
