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 Explorepy installation guide (Only necessary if you want to push to LSL from the command line / without a GUI)
- Install Explore Desktop from 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 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 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 (video guide).
- Finally, push your data stream to LSL using the LSL menu in Explore Desktop (refer to the [LSL guide](https://wiki.mentalab.com/explore-desktop-guide/lsl/ for more info). Alternatively, if you have previously installed Explorepy, you can use use the
explorepy push2lslcommand to push to LSL without keeping Explore Desktop open.
Run the script
- Download this ZIP folder and extract the contents.
- Install OpenViBE.
Start streaming
- Launch an OpenViBE
Acquisition Serverand selectLabStreamingLayeras the driver. - Under
Driver Propertiesselect the Explore device’sExGstream (i.e.Explore_XXXX_ExG) as the Signal stream. - Press
Apply, thenConnect, thenPlayto 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. AGDFfile 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 theGDFfile 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 pressato start the calibration. Run the scenario untilb-Matrix-EEG.cfgis generated (check the log). Usually 30-40 seconds are sufficient here. Do blink during the recording and pressuto 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