项目作者: DevinHillenius

项目描述 :
With the Brain Powered honourscourse at the UvA we aimed to control a drone using brain signals, measured by means of EEG, only.
高级语言: Python
项目地址: git://github.com/DevinHillenius/brain-powered.git
创建时间: 2017-12-09T17:14:17Z
项目社区:https://github.com/DevinHillenius/brain-powered

开源协议:

下载


Brain Powered

Requirements

Besided python 3, these modules are required and can be installed using the
command pip3 install -r requirements.txt when inside the project root folder.

Brain Powered Python Script

The eeg.py script allows users to visualise the powers of EEG signals using
scatterplots.

Usage

The folders containing the signals can be selected using the -f or --folder
option (see Examples). The sample rate can be adjusted using the -s or
--sample_rate flag, it is 256 by default (see Examples). The frequency band
is 8Hz to 13Hz by default and can be adjusted as well, using the -b or
--band flag. Again, see the Example section for its usage.

Data organization

We organised our EEG data in the following way. The root folder data is divided
in multiple folders, each containing all the data about a particular
individual. The folders of the individuals are divided into multiple folders
each containing a single motor imagery movement, such as imagining moving
hand or feet. Inside these motor imagery movement folders are two files,
c1.mat and c2.mat. These are the channels of the actions and contain all
records of that particular action. c1.mat and c2.mat are required to be
present in the selected folders when using the eeg.py script. This data can be
found on a private repository and is not available to the public.

  1. data\
  2. personA
  3. personB
  4. personC\
  5. foot-right-cond
  6. hand-left-base
  7. hand-left-cond
  8. hand-right-cond\
  9. c1.mat
  10. c2.mat

Examples

  1. # Sample rate is 256 and band is 8 to 13 by default
  2. ./eeg.py --folder data/hand-left-cond data/foot-right-cond/
  3. # Using 3 different actions, a different sample rate and a different band
  4. ./eeg.py --folder data/hand-left-cond data/hand-right-cond data/foot-right-cond/ --sample_rate 512 --band 3 8