Lab 4: Neurofeedback
In this lab, we will play around with some neurofeedback training!
First, install the libraries:
npm install pip install -r requirements.txt
(If you don't have
npm, you can install by running
brew install node. You can get
brew from https://brew.sh/)
Stimulus Presentation + Recording
- Attach Ganglion to participant's head.
- Record positions of EEG according to 10-20 system.
- Have participant sit in chair in front of monitor
- Connect to the ganglion and stream data:
- Run lsl-viewer to check connections and stream:
- Run neurofeedback:
neurofeedback.py, it will show a bar representing the ratio of beta (12-20Hz) to theta (4-8Hz) rhythms in all 4 electrodes.
The goal is to increase beta while decreasing theta, which has been shown to improve symptoms of ADHD .
You can play around with which frequency bands to use in the ratio for the bar by changing the following two variables in
decrease_fs = [4, 8] increase_fs = [12, 20]
References  Arns, M., de Ridder, S., Strehl, U., Breteler, M., & Coenen, A. (2009). Efficacy of neurofeedback treatment in ADHD: the effects on inattention, impulsivity and hyperactivity: a meta-analysis. Clinical EEG and neuroscience, 40(3), 180-189. (PDF)