Skip to content

LazaUK/Neuro-RelaxedBrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Neuro Hack - Analysing brain waves of relaxed brain

This is my attempt to read and visualise brain wave telemetry, retrieved from the Muse meditation device. The focus is particularly on Alpha waves (8-12 Hz), as they are characteristic of a relaxed state.

Note: This solution has been built and tested in Python 3.8.

Kudos: Thanks to the earlier experiments by Alexandre Barachant & Steve Korson. Learnt from their code to enhance and adapt to my hack requirements!

Pre-requisites

For this tutorial, you would need the following hardware and software components:

  • Muse meditation device. See the Muse Web site for available models that support EEG streaming;
  • Computer with pre-installed Python 3.x.

Step 0 - Client Setup

  1. Download content of this repo;
  2. Install python libraries, missing on your computer. E.g, to deploy muselsl for EEG streaming, use:
pip install muselsl

Step 1 - Stream EEG telemetry

  1. Execute Python script Laziz_step1.py. It uses muselsl Python module, published on PyPI by Alexandre Barachant, to stream EEG data out of the Muse meditation device;
  2. You should see the following output in your command line, confirming successful connectivity to the Muse device and activation of EEG stream:

Step1a

Step 2 - Process brain wave details

  1. Execute Python script Laziz_step2.py. This second script will spin up Dash Web service, process EEG telemetry and send the data to Dash charts;
  2. You should see the following output in your command line, with the values for Alpha, Beta and Theta waves:

Step2a

Step 3 - Visualise real-time EEG readings in Dash

Finally, you can open the local instance of Dash Web service at http://127.0.0.1:8050/ to see real-time brain wave visualisations on the line and radar charts.

Step3a

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages