• Abstract
Motor imagination is an act of thinking about body motor parts and motor imagery signals are the brain activities generated while performing motor imagination. Electroencephalogram (EEG) is a non- invasive way by which brain activities can be recorded with electrodes placed on the scalp. EEG measurements recorded for every other individ- ual are different even if they think about same moving body parts. And this makes motor imagery signal classification difficult. Many authors have proposed various machine learning and deep learning approaches for motor imagery signal classification. To the best knowledge of authors, in most of the studies, subject specific model is trained as EEG signature is subject specific. However, even when EEG measurments from different individuals are recorded, if they are for same motor imagination, then, there must be some hidden common features for a specific motor imagi- nation across all individuals. With subject specific models, those features can’t be learnt. We have proposed yet another deep learning approach for motor imagery signal classification where a single deep learning sys- tem is trained with a multi-task learning approach. The results illustrate that a single mult-task learnt model performs even better than subject specific trained models.
Keywords : EEG · Motor Imagery · Deep Learning · Multi-task Learning.
This repo contains following folders and files :
- input : Contains the input EEG spectral images
- notebooks : Contains notebooks made while developing this project
- models : Pytorch .pth model files are stored in this directory
- results : Results and training configs are stored as json file in this directory for each training
- src : It contains all the python scripts i.e., data precossing, models, training and evaluation scripts.
- main.py : It is the main driver scripts which can be used for training each models.
- First setup the project via :
git clone https://github.com/RahulnKumar/EEG-Multi-Tasking.git
pip3 install -r requirements.txt
-
For training and evaluation run main.py with these flags:
Single task training :
python3 main.py --st
Conventional Multi-task training :
python3 main.py --cmt
Private-Shared Multitask training:
python3 main.py --psmt
Adversarial Multitask training :
python3 main.py --amt
Graz Dataset B (EEG Data with Feedback, 2 Class Classification)
This data set also consists of EEG data from 9 subjects. The cue-based BCI paradigm consisted of two different motor imagery tasks, namely the imagination of right hand and left hand.For each subject 5 sessions are provided, whereby the first two sessions contain training data without feedback (screening), and the last three sessions were recorded with feedback.
Summary :
EEG data (3 + 3 channels, 250Hz) of 9 candidates and 2 classes
Total sessions = 5
1 session = 6 runs seperated by short breaks
1 run = 10 trials per class
Total trials = (10 trials)(2 classes)(6 runs) = 120 trials per session
- Rahul Kumar and Sriparna Saha
If you consider this work as useful, please cite it as
@inproceedings{kumar2021multi,
title={A Multi-task Learning Scheme for Motor Imagery Signal Classification},
author={Kumar, Rahul and Saha, Sriparna},
booktitle={International Conference on Neural Information Processing},
pages={311--322},
year={2021},
organization={Springer}
}
© 2021 Rahul Kumar
Licensed under the MIT License