GithubHelp home page GithubHelp logo

matt's Introduction

README

This repository is the official implementation of "MAtt: A Manifold Attention Network for EEG Decoding, NeurIPS 2022".

MAtt is a novel manifold attention network applied in decoding complex EEG signals. It executes the forward procedure on both Euclidean space and SPD manifold while performing backpropagation on Stiefel manifold. For more details of MAtt, please refer to our paper: 'MAtt: A Manifold Attention Network for EEG Decoding, NeurIPS 2022'.

Requirements

Step 1:

To install requirements:

conda env create -f /path/to/mAtt_env.yml
conda activate mAtt_env

Step 2:

Create a new empty folder 'data' in this folder. Download datasets and unzip them to the folder 'data'.

Dataset

  1. BCIC-IV-2a: https://www.bbci.de/competition/iv/
  2. MAMEM-SSVEP-II: https://www.mamem.eu/results/datasets/
  3. BCI-ERN: https://www.kaggle.com/competitions/inria-bci-challenge/data

Link to download data

Training and testing

To train and test the mAtt in the paper, run this command:

python mAtt_<which_dataset>.py

All default hyperparameters are already set in files. 'which_dataset' can be chosen as 'bci' (BCIC-IV-2a), 'mamem' (MAMEM-SSVEP-II), or 'bcicha' (BCI-ERN).

Reference

@article{pan2022matt,
  title={MAtt: a manifold attention network for EEG decoding},
  author={Pan, Yue-Ting and Chou, Jing-Lun and Wei, Chun-Shu},
  journal={Advances in Neural Information Processing Systems},
  volume={35},
  pages={31116--31129},
  year={2022}
}
@inproceedings{wei2019spatial,
  title={Spatial component-wise convolutional network (SCCNet) for motor-imagery EEG classification},
  author={Wei, Chun-Shu and Koike-Akino, Toshiaki and Wang, Ye},
  booktitle={2019 9th International IEEE/EMBS Conference on Neural Engineering (NER)},
  pages={328--331},
  year={2019},
  organization={IEEE}
}
@inproceedings{huang2017riemannian,
  title={A riemannian network for spd matrix learning},
  author={Huang, Zhiwu and Van Gool, Luc},
  booktitle={Thirty-first AAAI conference on artificial intelligence},
  year={2017}
}
@article{brunner2008bci,
  title={{BCI Competition 2008--Graz data set A}},
  author={Brunner, Clemens and Leeb, Robert and M{\"u}ller-Putz, Gernot and Schl{\"o}gl, Alois and Pfurtscheller, Gert},
  journal={Institute for Knowledge Discovery (Laboratory of Brain-Computer Interfaces), Graz University of Technology},
  volume={16},
  pages={1--6},
  year={2008}
}
@article{Nikolopoulos2021,
author = "Spiros Nikolopoulos",
title = "{MAMEM EEG SSVEP Dataset II (256 channels, 11 subjects, 5 frequencies presented simultaneously)}",
year = "2021",
month = "5",
url = "https://figshare.com/articles/dataset/MAMEM_EEG_SSVEP_Dataset_II_256_channels_11_subjects_5_frequencies_presented_simultaneously_/3153409",
doi = "10.6084/m9.figshare.3153409.v4"
}
@article{margaux2012objective,
  title={{Objective and subjective evaluation of online error correction during P300-based spelling}},
  author={Margaux, Perrin and Emmanuel, Maby and S{\'e}bastien, Daligault and Olivier, Bertrand and J{\'e}r{\'e}mie, Mattout},
  journal={Advances in Human-Computer Interaction},
  volume={2012},
  year={2012},
  publisher={Hindawi}
}

We modified code from:

@misc{spdnet2020,
  author={adavoudi},
  title={spdnet},
  year={2020},
  url={https://github.com/adavoudi/spdnet},
}

matt's People

Contributors

cecnl avatar liquanoba avatar tim-pan 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.