Repo of the winter EEG project by the Club d'Intelligence Artificielle of Laval University. The goal of this project is to interpret EEG signals in order to transform them into realtime game inputs.
- FlagEEG_v1
- Python version
- How to get started with the project
- How to get started with python
- How to get started with the EEG
- How to run the baseline
- How to run the annotation pipeline
Repo is tested for python 3.12.8
- Install python (please chose the python 3.12 version)
- Install the Git CLI (useful stuff for any programmer)
- Clone the FLapEEG_v1 repo with this command :
git clone [email protected]:cia-ulaval/FlagEEG_v1.git
(If it doesn't work, you need to setup an SSH key on your GitHub account) - Open the cloned repo with a Text Editor of your choice
- Create a virtual environnement for your python dependencies with the command :
python -m venv venv
- Activate the virtual env :
- For linux, mac :
source venv/bin/activate
- For Windows :
venv/Scripts/activate
- Download the dependencies :
pip install -r requirements.txt
1. Install the OpenBCI GUI : download
This is the official OpenBCI support user interface to allow streaming and seeing data from the EEG. Please download it and follow the installation instructions.
Important for Linux users : For Linux users only, there is a necessary hardware step, to make in order to allow the necessary permissions for your USB ports. Go look at the tutorial of the fix. The fix is in the section : Linux Users: Serial Port Permissions
- Connect the Daisy dongle to your USB port
- Run the OpenBCI GUI on your computer and start a streaming session : CYTON -> Serial (from Dongle)
To help connect your python scripts and the EEG helmet, OpenBCI provides us with a SDK : Brainflow. Go read the docs to learn how python and the EEG interacts.
-
Setup the env :
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
-
Connect the EEG with the dongle
-
Start the pipeline :
python main_annotation.py
-
Select the target folder where all the
.csv
files are exported : -
Write the name that your exported
.csv
file will take :⚠️ Important:- Do NOT write `.csv` in the name, the extension is automatically added. - The new data recorded is appended to the end of the document inputed. So if you want to have separate files for different recording session, change the name of the input.
-
Start recording with the Record button. A window is supposed to show up to help you annotate your EEG data. Please blink when the FlappyBrain shows up.
-
Stop recording with the red Stop button.