Using HappyFeat in a BCI experiment
A BCI experiment consists of three steps:
-
signal acquisition using EEG hardware
-
signal analysis (realized using HappyFeat's main GUI)
-
online BCI with trained classifier, using EEG hardware
Steps 1&3 are also facilitated by HappyFeat. This section describes how to interface with EEG acquisition systems, using HappyFeat with OpenViBE.
Step 1: Acquisition
Setting up the experiment
- Make sure everything is ready for acquiring EEG data!
- EEG cap set up
- plugged to a computer with OpenViBE 3.5.0 installed
- drivers set up in the OpenViBE acquisition server
- etc.
- Launch the OpenViBE designer (using openvibe-designer.cmd (or .exe or .sh) in your install folder).
- Launch the OpenViBE acquisition server (using openvibe-acquisition-server.cmd (or .exe or .sh) in your install folder).
- Connect and run the server
- Run happyfeat_welcome.py, and either start a new workspace or select an existing one.
- In your workspace folder, open the scenario file sc1-monitor-acq.xml.
Note: as explained in the Workspaces section, we strongly advise to create one workspace per experiment.
Note: the BCI experiment sequencing is set up in the mi-stimulations.lua script. Please refer to the tutorials on the OpenViBE website to learn how to fine tune your BCI experiment.
Data Acquisition
When you are ready, click "Run" in the OpenViBE designer. The BCI experiment is carried out, with instruction provided on the screen. EEG signals are written in the signals folder of your current workspace, with a filename indicating date and time of the acquisition.
Step 3: Online classification / Testing
- Make sure everything is ready for acquiring EEG data! (same as Acquisition step...)
- Make sure the OpenViBE acquisition server is running.
- In HappyFeat's main GUI, select a training attempt in the list in the lower-right part, and lcick on
Use selected classifier. The scenariosc3-online.xmlin the current workspace is automatically updated with the trained classifier weights, and set of features used for training. - In the OpenViBE designer, open the scenario file sc3-online.xml located in your current workspace folder.
- Click "Run" in the OpenViBE designer. Instructions are provided to the user, along with visual feedback on the classification performance.
- EEG data is recorded in the signals folder for replay purposes.
- Classification results are recorded as CSV files in the results folder of the current session.
Note: the BCI experiment sequencing is set up in the mi-stimulations.lua script. Please refer to the tutorials on the OpenViBE website to learn how to fine tune your BCI experiment.