EOG Artifact Removal
Many EEG applications analyse EEG signals for frequencies that are associated with specific activities.
Here is an OpenViBE pipeline that breaks down raw EEG signals into frequency bands and removes blinking artifacts in real-time.
Set-up
-
Optional: Install Explorepy using the Explorepy installation guide.
This is only necessary if you want to push to LSL from the command line or without a GUI.
-
Install Explore Desktop from the Explore Desktop Github page.
-
Prepare an 8-channel Mentalab Explore system using the following configuration.
You can use wet or dry electrodes for this and modify the configuration as needed.
| Explore Channel | Cap Location | OpenViBE Channel |
|---|---|---|
Ch1 |
F3 |
1 |
Ch2 |
C3 |
2 |
Ch3 |
Forehead (mid) |
3 |
Ch4 |
C4 |
4 |
Ch7 |
Right eye (beside outer canthus) |
5 |
Ch8 |
F4 |
6 |
-
Check impedances using Explore Desktop.
Aim for
<20 kΩfor wet electrodes and<150 kΩfor dry electrodes.For more information on this function, watch the video guide.
-
To visualize your data, consider using Explore Desktop.
By visualizing your data, you can ensure there is no obvious noise.
For more information, watch the video guide.
-
Finally, push your data stream to LSL using the LSL menu in Explore Desktop.
Refer to the LSL guide for more information.
Alternatively, if you have previously installed Explorepy, you can use the
explorepy push2lslcommand to push to LSL without keeping Explore Desktop open.
Run the script
-
Download the ZIP folder and extract the contents.
-
Install OpenViBE.
Start streaming
-
Launch an OpenViBE
Acquisition Serverand selectLabStreamingLayeras the driver. -
Under
Driver Properties, select the Explore device’sExGstream, for exampleExplore_XXXX_ExG, as the Signal stream. -
Press Apply, then Connect, then Play to start acquiring the Explore stream in OpenViBE via Lab Streaming Layer.
Calibrate EOG data
-
Open the OpenViBE Designer and go to
File → Open. -
Choose the
recorder.xmlfile extracted from the ZIP file you downloaded earlier and run the scenario for at least 60 seconds.Blink and turn your eyes to different directions during the recording.
A
GDFfile will be created in the same folder as the contents of your ZIP file. -
Run the EOG-calibration scenario in OpenViBE Designer.
Go to
File → Open, and then choose theEOG-calibration.xmlfile extracted earlier.Double click on the
GDFfile reader and select the file generated in the previous step as source. -
Run the EOG-calibration scenario in OpenViBE Designer.
Go to
File → Openand selectEOG-calibration.xml.Click on the keyboard simulator window and press
ato start the calibration.Run the scenario until
b-Matrix-EEG.cfgis generated.Check the log for confirmation.
Usually
30-40seconds are sufficient here.Blink during the recording and press
uto end the data calibration.
Visualize frequency bands with EOG artifacts removed
Open the Power_bands.xml scenario and run it.
You will see EEG signals before and after EOG denoising.
You can test the performance of the EOG artifact removal by blinking and checking both signals.
In the other tabs, the power bands, Alpha, Beta and Theta, are plotted.
For more information or support, do not hesitate to get in contact at: support@mentalab.com