GithubHelp home page GithubHelp logo

node9909 / neurotechx-mental_backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rfratila/neurotechx-mental_backend

0.0 1.0 0.0 20.88 MB

Here we propose a method of classifying brain-states using novel machine learning techniques in conjunction with a brain-computer interface known as OpenBCI

License: MIT License

Python 99.95% Shell 0.05%

neurotechx-mental_backend's Introduction

NeuroTechx-MENTAL_Backend

This is where we will store all of the code produced. Please try to keep it documented so that we can all learn from one another.

To run the plugin

When the openbci is plugged in and on GPIO 6 mode (bluetooth dongle) and the board is on BLE mode, go to /dev on the system and grep for the tty.usb* = this will tell you the device ID for your board

Then to run in training mode run the following command (replace xxxxx with the actual ID), replace with your own name

python user.py -p /dev/tty.usbserial-xxxxx --add abhi person Abhishek

Make sure that the plugin shows up in the active plugins [abhi]

To start collecting data use /start on the openbci command line

Proper shutdown sequence is to type in /stop

By default it doesn't use the plotly plugin, to use it supply True value for graph argument

Things to install

Flask, sklearn, yapsy, plotly, scipy

Sampling rate values

0.00015592575073242188 0.00015497207641601562 0.00018215179443359375 0.00017786026000976562 0.00017309188842773438 0.0001628398895263672 0.00019121170043945312 0.00016379356384277344 0.00017714500427246094 0.00018906593322753906 0.0001659393310546875 0.00016307830810546875 0.00015783309936523438 0.0001671314239501953 0.00015783309936523438 0.00020003318786621094 0.00017499923706054688 0.00018596649169921875 0.00016617774963378906 0.00015997886657714844 0.0001590251922607422 0.000186920166015625

How to use the window_size and attentive

in addition to the instructions in the "To run the plugin" section, if you need to limit the number of samples being collected add the argument "window_size" followed by the number of samples to collect (default value is 10000). To mark data as attentive pass "attentive" as an argument to the above command, passing nothing means that it will store the data under the inattentive folder under the data folder

neurotechx-mental_backend's People

Contributors

atg-abhishek avatar rfratila avatar

Watchers

James Cloos 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.