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!
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.
- Download content of this repo;
- Install python libraries, missing on your computer. E.g, to deploy muselsl for EEG streaming, use:
pip install muselsl
- 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;
- You should see the following output in your command line, confirming successful connectivity to the Muse device and activation of EEG stream:
- 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;
- You should see the following output in your command line, with the values for Alpha, Beta and Theta waves:
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.