EEGPreTrainingDatasets
The code of my master thesis at UCLouvain. Contains a MViT architecture and some pre-processing functions to generate pre-training datasets from unlabelled EEG data.
Install / Use
/learn @tbary/EEGPreTrainingDatasetsREADME
Generation of Pre-training Datasets for EEG Classification
This repository contains the code used for my master’s thesis at UCLouvain. The objective is to generate several pre-training datasets from EEG data and evaluate their effectiveness on the MViT transformer architecture. For further details on the methodology, refer to Annex A of my master thesis, which is included in this repository.
Requirements
To run the code in this repository, please install the following packages:
pandas1.4.2numpy1.24.3pywt1.5.0 (PyWavelets GitHub)matplotlib3.7.1tensorflow2.10.0tensorflow_addons0.18.0scipy1.8.0pyedflib0.1.30tqdm4.64.1scikit-learn1.1.3
Note: These package versions were used in development. Other versions may also work but are untested.
Datasets
The datasets used in this project cannot be publicly shared due to licensing restrictions. One dataset is proprietary to UCLouvain, while access to the other dataset requires an online form submission.
The scripts 4_pre_processing_TUSZ.py, 5_train_model_TUSZ.py, and 6_TUSZ_model_performances.py are compatible with .edf files. If starting the pipeline from EEG data, begin with 4_pre_processing_TUSZ.py.
For access to the Temple University Seizure Detection Corpus (TUSZ) used in this project, please fill out the form here.
Citation
This work was presented at the 22nd IEEE Mediterranean Electrotechnical Conference (MELECON 2024) (link to paper).
If you use this code in your own research, please cite as follows:
@inproceedings{bary2024designing,
title={Designing Pre-training Datasets from Unlabeled Data for EEG Classification with Transformers},
author={Bary, Tim and Macq, Beno{\^\i}t},
booktitle={22nd IEEE Mediterranean Electrotechnical Conference (MELECON 2024)},
year={2024}
}
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
