# how to load .edf.seizure file of CHB-MIT dataset

**URL:** <https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829>\
**Category:** Support & Discussions\
**Tags:** eeg\
**Created:** [October 29, 2022, 6:34am UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829 "2022-10-29T06:34:13Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [October 29, 2022, 6:34am UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/1 "2022-10-29T06:34:13Z")

</div>

- MNE version: 1.2.1
- operating system: windows11

I am working on CHB-MIT dataset for seizure prediction project but the files with extension “.edf.seizure” are not accesible. Is there any way?

---

<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:** [November 3, 2022, 2:13pm UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/2 "2022-11-03T14:13:05Z")

</div>

duplicate of [EEG Database for classification purpose](https://mne.discourse.group/t/eeg-database-for-classification-purpose/5552)

see answer there.

---

<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 6, 2022, 6:18pm UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/3 "2022-11-06T18:18:34Z")

</div>

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 descriptions look weird because that annotation format was designed for use in ECG only.  
The last two annotations point to the start and the end of the seizure.  
You can modify the descriptions if you want using the annotation editor.  
Press ctrl-s to permanently save the imported annotations into an EDF file.

---

<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:** [November 8, 2022, 7:24pm UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/4 "2022-11-08T19:24:54Z")

</div>

thanks @Teuniz! Is this the relevant spec? [ANNOT(5)](https://ecg.mit.edu/dbag/annot-5.htm#toc3) If so, it seems we ought to be able to create a reader for them in MNE-Python.

---

<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 8, 2022, 7:49pm UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/5 "2022-11-08T19:49:36Z")

</div>

Correct 👍

---

<div class="post-metadata">

**Author:** ![lianna1016](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lianna1016](https://mne.discourse.group/u/lianna1016)\
**Post date:** [June 6, 2024, 12:51am UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/6 "2024-06-06T00:51:48Z")

</div>

@drammock Hi Dan! Has there been a feature added to be able to look at these annotations? Thanks 🙂

---

<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:** [June 13, 2024, 10:23pm UTC](https://mne.discourse.group/t/how-to-load-edf-seizure-file-of-chb-mit-dataset/5829/7 "2024-06-13T22:23:29Z")

</div>

Sorry @lianna1016, this fell off my radar and nothing has been done on it. I just opened [Add reader for annotations in MIT format · Issue #12660 · mne-tools/mne-python · GitHub](https://github.com/mne-tools/mne-python/issues/12660) so that hopefully someone might pick it up soon though!
