Code Monkey home page Code Monkey logo

iv-2a's Introduction

Fast and Accurate Multiclass Inference for MI-BCIs Using Large Multiscale Temporal and Spectral Features

This is the code of an accepted conference paper submitted to EUSIPCO 2018. The preprint is available on this arXiv link. If you are using this code please cite our paper.

Getting Started

First, download the source code. Then, download the dataset "Four class motor imagery (001-2014)" of the BCI competition IV-2a. Put all files of the dataset (A01T.mat-A09E.mat) into a subfolder within the project called 'dataset' or change self.data_path in main_csp and main_riemannian.

Prerequisites

  • python3
  • numpy
  • sklearn
  • pyriemann
  • scipy

The packages can be installed easily with conda and the _config.yml file:

$ conda env create -f _config.yml -n msenv
$ source activate msenv 

Recreate results

For the recreation of the CSP results run main_csp.py. Change self.svm_kernel for testing different kernels:

  • self.svm_kernel='linear' -> self.svm_c = 0.05
  • self.svm_kernel='rbf' -> self.svm_c = 20
  • self.svm_kernel='poly' -> self.svm_c = 0.1
$ python3 main_csp.py

For the recreation of the Riemannian results run main_riemannian.py. Change self.svm_kernel for testing different kernels:

  • self.svm_kernel='linear' -> self.svm_c = 0.1
  • self.svm_kernel='rbf' -> self.svm_c = 20

Change self.riem_opt for testing different means:

  • self.riem_opt = "Riemann"
  • self.riem_opt = "Riemann_Euclid"
  • self.riem_opt = "Whitened_Euclid"
  • self.riem_opt = "No_Adaptation"
$ python3 main_riemannian.py

Authors

iv-2a's People

Contributors

mhersche avatar tinorellstab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iv-2a's Issues

env and install pyriemann

Hello,

  • i got this error "EnvironmentFileNotFound:" when I want to create env file using anaconda with following your code.
  • and I can't find execute the installation for pyriemann package using conda.
    Thanks...

KeyError: 'data'

Hi sir,

I got this error while running on Colab

KeyError Traceback (most recent call last)
in ()
192
193 if name == 'main':
--> 194 main()

2 frames
/content/get_data.py in get_data(subject, training, PATH)
55 data_return = np.zeros((NO_tests,NO_channels,Window_Length))
56
---> 57 a_data = a['data']
58 total_trials = 0
59 for ii in range(0,a_data.size):

KeyError: 'data'

Kindly give any suggestions to solve the error.

Thankyou

implementation source

hello
you did a good job implementing this code ,
but would it would be great help if you mention the source of your method
thank you

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.