Git Product home page Git Product logo

spatio-temporal-eeg-analysis's Introduction

Attention-EEG

Set of models for attention estimation from EEG: transformer EEG, RNN and resnet based CNN.

Instruction

The three proposed models are direcly available in models.py:

The considered inputs for the two considered datasets are proposed in the corresponding directory (car for the driving EEG dataset and phydaa for name related dataset). The file feature file for the first dataset being too voluminous and in a concern of reproducibility, we provide also the preprocessing scripts to extract the differential entropy feature matrices (preprocessing/). For the CNN approach, it is necessary to first generate the image by running CNN_EEG.ipynb for the first time.

During the training, the metrics evolution are reported in runs directory with tensorboard (https://www.tensorflow.org/tensorboard/) and the final training results are saved in res/.

Due to issues with limited size for files in github. Feature map examples have been published on Figshare, to proceed the code download them and placed them in the corresponding directory depending on the dataset. More it is necessary to approve the License from each considered datasets. For other analysis please refer to both datasets:

Installation and Dependencies

Pytorch 1.7

MNE

Cuda 10.2

Installation with pip: pip install -r requirement.txt

Import of the environment with conda: conda env create -f environment.yml

Remarks

If you are interested in our work, don't hesitate to contact us.

Wish you the best in your research projects!

spatio-temporal-eeg-analysis's People

Contributors

vdelv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.