Git Product home page Git Product logo

gcn_for_eeg's Introduction

GCN_for_EEG

Graph Convolutional Networks for 4-class EEG Classification

The Pure PYTHON interpertation!

Inspirations :

Name Description
Michaël Defferrard Created the basics of GCN!
Shuyue Jia Created awsome codes for EEG classification

What I have done?

Shuyue's work was awsome but preprocessing should be done in MATLAb, which is not available for everyone. So I interperted python version! I also added other types of GCNs to code + changed some parts of code

How to run?

  1. Download - PhysioNet 4-class EEG and place it in 01loadData folder ( or easily run downloaddata.py
  2. Run edfread.py . This code will end up in 64 electrode data + 64 Label data
  3. It's time to copy the results of previous step into 02Preprocess . I placed both MATLAB and PYTHON , But my main intention is having PURE PYTHON environment So go into WithPython and create a folder called data and place 128 .mat files there. Then run the Code It results is available in folder pythondata as .csv files
  4. create files folder where the onEEGcode.py is. Then copy CSV files there. Run the onEEGcode.py and ENJOY!

Dependencies

  1. Tensorflow 1.13
  2. Numpy
  3. Scipy
  4. Pandas
  5. Pyedflib

Some Results of Preprocessing

  1. Absolute Pearso matrix

Classification with basic GCN

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.