Skip to content

A tool that learns your brain states and notifies you when you are no longer paying attention

License

Notifications You must be signed in to change notification settings

NTX-McGill/thinking-cap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tool that learns your brain states and notifies you when you are no longer paying attention

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published