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
- Prepare an 8-channel Mentalab Explore system using the following configuration. You can use wet or dry electrodes for this, and modify 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
-
Disable unnecessary channels using
explorepy set-channels
command:explorepy set-channels -n Explore_XXXX -m 11001111
The binary number must be in reverse order. So11111101
means channel 2 will be off. -
Check impedances using the
explorepy impedance
command. Aim for <20 kΩ for wet electrodes, and <150 kΩ for dry electrodes. For more on this function, please watch our video guide. -
To visualize your data, consider using Explore Desktop. By visualizing your data, you can ensure there is no obvious noise.
-
Finally, push your data stream to LSL using the
explorepy push2lsl
command. In Explore Desktop, simply click theLSL
button in the main visualization menu.
Run the script
- Download this ZIP folder and extract the contents.
- Install OpenViBE.
Start streaming
- Open an OpenViBE
acquisition server
and selectLabStreamingLayer
as the driver. - Under
Driver Properties
select Explore’sExG
andMarker
streams. - Press
Apply
, thenConnect
, thenPlay
to start acquiring an Explore stream in OpenViBE via Lab Streaming Layer.
Calibrate EOG data
- Open the OpenViBE
designer
and go toFile
–>Open
. - Choose the
recorder.xml
file (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. AGDF
file will be created in the same folder as the contents of your ZIP file. - Run the EOG-calibration scenario in OpenViBE
designer
. Go toFile
–>Open
, and then choose theEOG-calibration.xml
file extracted earlier. Double click on theGDF
file reader and select the file generated in the previous step as source. - Run the EOG-calibration scenario in OpenViBE. Go to
File
–>Open
and selectEOG-calibration.xml
. Click on the keyboard simulator window and pressa
to start the calibration. Run the scenario untilb-Matrix-EEG.cfg
is generated (check the log). Usually 30-40 seconds are sufficient here. Do blink during the recording and pressu
to 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