Git Product home page Git Product logo

lightconvnet's Introduction

LightConvNet

A Temporal Dependency Learning CNN with Attention Mechanism for MI-EEG Decoding [paper]

This is the PyTorch implementation of the temporal dependency learning CNN for MI-EEG decoding.

Network Architecture

Network architecture The temporal dependency learning CNN is designed with the aim of learning temporal dependencies between discriminative features in different time periods during MI tasks. It is composed of the following five stages:

  1. Multi-view data representation: The multi-view representation of the EEG data is obtained by spectrally filtering the raw EEG with multiple narrow-band filters.
  2. Spatial and spectral information learning: The spatial and spectral discriminative patterns are then learned using a spatial convolution block.
  3. Temporal segmentation and feature extraction: A series of non-overlapped time windows is employed to segment the output data, and the discriminative feature is further extracted from each time window to capture MI-related patterns generated in different stages.
  4. Temporal attention module: A novel temporal attention module is designed to explore temporal dependencies between discriminative features in different time windows.
  5. Classification: A fully connected (FC) layer finally classifies features from the temporal attention module layer into given classes.

Requirements

  • PyTorch 1.7
  • Python 3.7
  • mne 0.23

Datasets

Toolbox

This repository is designed as a toolbox that provides all necessary tools for training and testing the proposed network. All the data functionalities are defined in the data directory. After preprocessing data, the cv.py and train_test.py are the entry points to train and test the proposed network in the session-dependent setting and session-independent setting (defined in the paper), respectively.

Results

The classification results for our proposed network and other competing architectures are as follows: Results

Citation

If you find this code useful, please cite us in your paper.

@article{ma2023temporal,
  title={A Temporal Dependency Learning CNN With Attention Mechanism for MI-EEG Decoding},
  author={Ma, Xinzhi and Chen, Weihai and Pei, Zhongcai and Liu, Jingmeng and Huang, Bin and Chen, Jianer},
  journal={IEEE Transactions on Neural Systems and Rehabilitation Engineering},
  year={2023},
  volume={31},
  pages={3188-3200},
  doi={10.1109/TNSRE.2023.3299355}
}

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.