The Wayback Machine - https://web.archive.org/web/20201031035300/https://github.com/DevinHillenius/brain-powered
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.

data\
    personA
    personB
    personC\
        foot-right-cond
        hand-left-base
        hand-left-cond
        hand-right-cond\
            c1.mat
            c2.mat

Examples

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

About

With the Brain Powered honourscourse at the UvA we aimed to control a drone using brain signals, measured by means of EEG, only.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.