Skip to content

Deep Learning classification of EEG responses to multi-dimensional Transcranial Electrical Stimulation.

Notifications You must be signed in to change notification settings

alexispomares/DL-EEG-TES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning classification of EEG responses to TES

This repository contains a framework for leveraging Deep Learning (DL) algorithms to classify Electroencephalography (EEG) brain responses evoked by Transcranial Electrical Stimulation (TES).

Extensive documentation can be found in my MRes Neurotechnology thesis at Imperial College, London.

Our neuroscientific EEG-TES datasets used to train the DL models can be found in Kaggle, as Raw MFF and Preprocessed CSV files.

Usage

Clone the repo to your local/cloud machine. Download the EEG-TES data from Kaggle into the root data folder. If memory is a concern, feel free to choose either dataset depending on the desired pipeline: raw for EEG manipulation; preprocessed for DL classification.

Both pipelines are located inside the root code folder, with accompanying Jupyter notebooks that illustrate in detail how to use the modules.

Where do the EEG-TES datasets come from?

We enrolled 11 healthy resting awake participants (4 female; ages 20-37, average 25.0±4.6 years old) to conduct 13 separate experimental sessions (subjects P000 and P001 participated twice, after results from first sessions were found invalid). Participants were instructed to sit awake with eyes open, and blinded to conditions applied. Following an initial rest period of 120 seconds (including 60 seconds with eyes closed), up to 58 blocks of TES were performed, with a total time of up to ~60 minutes per session as tolerated per the participant. EEG was continuously recorded at 1000Hz, and later resampled to 250Hz in our MNE preprocessing pipeline.

For equipment we used a newly-acquired GTEN 200 neuromodulation system (Electrical Geodesics, Inc.) that allows simultaneously delivering TES and recording high-density EEG through the same 256-electrodes cap (see Figure below). We delivered tDCS and tACS stimulation across 2 cortical regions: bilateral posterior (targeting angular gyrus) and bilateral frontal (middle frontal gyrus).

Figure 1

How does the DL pipeline work?

It digests the input data folder (timeseries or features CSV files), splits into Train/Validation & Holdout tf.data.Datasets, trains our CNN models in TensorFlow, and evaluates model performance & interpretability.

Figure 2

Show below are the results for our best CNN algorithm, which outperformed other architectures such as GRU & LSTM RNNs and VGG-16. Top f1-score accuracies were 93% for the Training dataset & 68% for Holdout data.

Figure 3

Acknowledgments

Thank you to all my participants for playing a crucial part in this study, enabling the creation of two public datasets to be used freely by the DL-EEG research community.

Special thanks for their expert guidance during this research to:
Dr. Ines Ribeiro Violante
Dr. Gregory Scott

Questions?

Raise a GitHub Issue or contact me via LinkedIn.

Thanks,
Alexis Pomares

About

Deep Learning classification of EEG responses to multi-dimensional Transcranial Electrical Stimulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published