This project is build so that people can practice what components they should delete after doing an Independent Component Analysis (ICA). It uses EEGLAB and its IClabel toolbox.
Table of Contents
This is a video made by one of the creators of EEGlab that explains ICA.
We use ICA to clean our data, but we focus mainly on eye components. This is because these cause big artifacts in the data and are both identifiable by trained experts and this IClabel toolbox. You can delete other "bad" components as well such as noisy channels or other noise types.
However, the main problem for all of these components is that they are a mixture of things. IClabel breaks every component down into 7 parts. 1 = Brain, 2 = muscle, 3= eye, 4 = Heart, 5 = Line Noise, 6 = channel noise, 7 = other. This means that a component with 70% eye can still have 30% brain. Luckily this is very unlikely. There is always a mixture of these, but specifically for eye components it works out that with the >70% eye and <10% brain threshold IClabel catches all the same components as the experts in our lab.
However, we don't want to just blindly rely on a toolbox when we can do thing manually as well. By practicing, we learn what components are bad and why. When running this script you are asked if you want to delete eye components only or also other noise components. You can do as you want to, but it's more difficult/less clear to decide what the best thresholds and criteria are for deleting other components.
When deleting eye components manually this is what people focus on:
- topoplots, as you can see in the figure below, each IC has a topoplot. When looking for eye components they look one of 2 ways. Either they look like component 1 (eye blink) or like component 22 (horizontal eye movement)
- when opening the components
IClabel is built using the input of a lot of users to train the program. This means that it's also based on the input of less expert humans.
Similarities: when we tested it in our lab we noticed that for eye components if we set the threshold to >70% eye and <10% brain, the toolbox would exclude the same amount of eye components as we would. Differences: when we tested what other components to delete (we decided to not delete "other" and "brain") it became impossible for anyone to delete the same components as the toolbox would.
Potential conclusion: Eye components are well spotted by both experienced people in our lab as well as the toolbox. However, when it comes to other components this is not as straightforward.
For the script to work you need to have EEGlab and the IClabel plugin (this plugin is normally auto installed). You need to change to homepath to the place where you store the data. If you are at Einstein, you can use the path as is, otherwise you can set it to any place where you have data on which an ICA and IClabel are done. The subject_list should have the ID numbers of each dataset. When you are at Einstein you can use them as is. Otherwise this should be the unique part at the start of each dataset. The remaining part of the dataset is called _iclabel.set. If this is different for your data, you should change it in line 33. You will be asked if you want to look at eye components only, this is up to you. If you choose no, you will be asked later to select other noise components. When inputting what components you select you either leave it empty if you don't think there are noise/eye components or you type the number in between [] with a space between them (e.g. [1 22]).
When you are done, there are topoplots for each particpant. They will have the components you deleted and the auto deleted components so you can compare.
Douwe Horsthuis - [email protected]
- Ana Francisco
- Douwe Horsthuis
- Filip De Sanctis
- Sophie Molholm
- Seyda Tikir