Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lazauk/neuro-relaxedbrain


https://github.com/lazauk/neuro-relaxedbrain

eeg moonshot neuroscience

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://choosemuse.com/) 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](https://pypi.org/project/muselsl/1.0.4/) 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](/images/Step1a.png)

## 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](/images/Step2a.png)

## 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](/images/Step3a.png)