GithubHelp home page GithubHelp logo

githubpgq / eeglearn-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from numediart/eeglearn-pytorch

0.0 1.0 0.0 69.91 MB

License: GNU General Public License v2.0

Jupyter Notebook 90.09% Python 9.82% TeX 0.09%

eeglearn-pytorch's Introduction

Pytorch - EEGLearn

This repo describes an implementation of the models described in "Learning Representations from EEG with Deep Recurrent-Convolutional Neural Networks." Bashivan et al. at International conference on learning representations (2016).

EEGLearn is a tool aiming to classify electroencephalogram (EEG) into different classes representing different mental states. The framework specificity is based on the fact that the raw EEG are transformed into images representing spatial (electrodes' position) and frequential (power spectral bands analysis) information in a more understandable way. The pipeline of the implementation is described on the following diagram.

alt text
Taken from Bashivan et al. 2016

This implementation aiming to present a pytorch implementation of the mentioned works, the functions related to the creation of the images have directly been copied and pasted from original github in the Utils_Bashivan.py script. The rest of the implementation has been totally recoded with Pytorch lib.

Requirements

In order to run the codes, the following libraries (and their corresponding dependencies) have to been installed:

  • Python 3.7
  • Pytroch 1.3.1
  • Cudatoolkit 10.1.243
  • Cudnn 7.6.3

Installation with pip: pip install -r requirements.txt

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

Notes

A jupyter notebook presents a short summary of the codes. Before running it, it is necessary to create the "eeg images" by running the train script a first time or the create_img() function from Utils.

The early stopping being not implemented in Pytorch, a version of the code with a custom version will be uploaded as soon as possible.

References

If you are using this code please cite the paper:

Bashivan, et al. "Learning Representations from EEG with Deep Recurrent-Convolutional Neural Networks." International conference on learning representations (2016).

https://arxiv.org/pdf/1511.06448.pdf

eeglearn-pytorch's People

Contributors

vdelv avatar

Watchers

James Cloos 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.