Skip to content

dioptre/cloudbrain

 
 

Repository files navigation

x

##Overview CloudBrain is a platform for real-time EEG data analysis and visualization. EEG is the recording of electrical activity along the scalp. In other words, brainwaves.

CloudBrain enables you to:

  • Stream EEG data into a central database.
  • Analyze EEG data by computing aggregates.
  • Visualize EEG data and patterns in real-time.

x

CloudBrain @ The Exploratorium of San Francisco

CloudBrain is currently in use at the Exploratorium as part of the Exhibit called Cognitive Technologies. All the EEG headsets in the exhibit are sending data to CloudBrain. This data is being routed to booths where visitors can control different things with their brain. For visitors who are willing to share their data, CloudBrain computes aggregates and displays a baseline of the average brain. On the central screen, visitors can see everyone else's live EEG data. Each radar chart shows the state of the main brainwaves (alpha, beta, theta, gamma, delta). This is particularly interesting to see how one's brain compares to others, or to understand how it reacts to different stimuli.

Visualizations

Aggregated data (bar charts)

x

Live EEG data (radar charts)

x

Live EEG data (line charts)

x

##Getting started with CloudBrain

  • An instance of CloudBrain is currently running at cloudbrain.rocks.
  • The packages that you want to use are connectors and listeners. Connectors will allow you to send live data to CloudBrain. Listeners will allow you to read live data from CloudBrain.
  • Routing of live data is done via SpaceBrew (currently running on the CloudBrain server). To visualize how the data is being routed you can go to this interface.

##CloudBrain's Architecture

  • connectors: connectors for OpenBCI, Muse, Neurosky and Spacebrew sending data to CloudBrain
  • listeners: CloudBrain Listeners to get the live data data for OpenBCI,Muse, Neurosky and Spacebrew
  • webapp: contains the UI & web API to retrieve the history of data, route live data, or retrieve data aggregated data (see cloudbrain.rocks/api for the API documentation)
  • router: router to update spacebrew routes (for the Exploratorium exhibition)
  • spacebrew: python websocket wrapper to interface with Spacebrew
  • database : python wrapper to read and write data to cassandra

##Sending data to CloudBrain

  • Install the MuseIO SDK
  • Pair your Muse via Bluetooth.
  • Start MuseIO: open a terminal or command prompt and run: muse-io --osc osc.udp://localhost:9090
  • Open a new terminal tab and run:

`git clone https://github.com/marionleborgne/cloudbrain`
`cd cloudbrain/connectors/spacebrew`
`pip install websocket-client` `python spacebrew_server.py --name=YOUR_NAME_HERE` - The last command will register your muse to CloudBrain's Spacebrew - Check if you muse is in the column “publishers” of the [SpaceBrew interface](http://spacebrew.github.io/spacebrew/admin/admin.html?server=cloudbrain.rocks).

##Reading data from CloudBrain

  • Open a new terminal tab and run:

`cd cloudbrain/listeners`
`python example_spacebrew_client.py --name=YOUR_NAME_HERE` - The last command will register your booth to cloudbrain’s spacebrew - Check if you booth is in the column “subscridbers” of the [SpaceBrew interface](http://spacebrew.github.io/spacebrew/admin/admin.html?server=cloudbrain.rocks).

Infrastructure @ The Exploratorium

x

Infrastructure v2.0 x

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 46.2%
  • JavaScript 32.6%
  • HTML 14.6%
  • CSS 6.6%