Opening the book…
Our goal in heavily filtering the data was to improve the ICA decomposition, but as was described in the chapter on filtering, this kind of filtering is usually a bad idea for ERP analyses. So, we’re going to take the weights from our optimized ICA decomposition and transfer them to the original dataset, which has not been distorted by heavy filtering.
To do this, first look at the EEGsets panel and note the EEGset number for the original EEGset (10_MMN_preprocessed) and the EEGset containing the ICA weights (10_MMN_preprocessed_filt_100Hz_del_ICAweights). The former is probably #1, and the latter is probably #5 or #6, but they might differ from this if you’ve done some other processing. Make sure that 10_MMN_preprocessed_filt_100Hz_del_ICAweights is the one EEGset selected in the EEGsets panel. Now go to the EEGLAB ICA panel and look at the section labeled Transfer ICA weights. The number corresponding to the EEGset with the ICA weights should be in the box labeled Selected dataset (EEGset 6 in Screenshot 9.12). Enter the number corresponding to the original EEGset in the box labeled Target dataset (EEGset 1 in Screenshot 9.12). Click Transfer to transfer the weights from 10_MMN_preprocessed_filt_100Hz_del_ICAweights to 10_MMN_preprocessed. Name the resulting EEGset 10_MMN_preprocessed_transferredICAweights and save it to disk.
Screenshot 9.12
The original EEGset with the transferred weights should now be active in the EEGsets panel, and you can see that the IC weights were successfully transferred because there are now 29 ICs listed in the ICs column in the Channel and IC Selection panel. These ICs have the same weight maps that you saw in the previous exercise (Screenshot 9.11).
Now let’s compare the time course of the ICs with the time course of the EEG and EOG data. To do this, go to the Plot Settings panel, check the box for Display ICs, set the Vertical Scale to 150 for the channels and 40 for the ICs, and click Apply. Then go to the Channel and IC Selection panel, select FP1, FP2, and all the EOG channels from the Channels column, select ICs 1-13 from the ICs column, and click Apply. The result should look like Screenshot 9.13.
Screenshot 9.13
You can see that the time course of IC 1 closely matches the time course of the blinks and vertical eye movements in VEOG-bipolar. To the naked eye, there isn’t any obvious difference between IC 1 from this decomposition and IC 1 from our original decomposition (Screenshots 9.2-9.4). However, given that the decomposition as a whole improved, IC 1 from our new decomposition is less likely to be contaminated by activity from other sources (less lumping).
Now let’s see if we can figure out what’s going on with the other ICs and see if any of them should be removed along with IC 1. Let’s start by looking for an IC related to horizontal eye movements. IC 13 seems like an excellent candidate: it matches the time course of the HEOG-bipolar channel quite well, with sudden changes in voltage at approximately 0.75 seconds, 1.8 seconds, 2.3 seconds, etc. If you scroll to the next time period (5-10 seconds), you'll see that IC 13 continues to match the jumps in voltage in the HEOG-bipolar channel. Note that we're looking at the break period before the stimuli have started. We deleted the break periods in the dataset used for the ICA decomposition, but we’ve now transferred the weights to the original dataset, which still has data during the break periods. Those weights work just fine for the time points during the break periods, even though they weren't used for the ICA decomposition process.
If you look at the scalp map for IC 13 (Screenshot 9.6), you'll see that it has the distribution you’d expect for horizontal eye movements (i.e., opposite-polarity foci just to the sides of the two eyes). This is definitely a horizontal eye movement IC, and we should consider removing it from the EEG.
Although none of the other ICs show the same pattern as the HEOG-bipolar channel, IC 3 has a sharp voltage spike at the onset time of each shift in eye position. This is the spike potential shown in Figure 9.1, which is the muscle contraction that causes the eyes to move. Given that the spike potential and the change in HEOG voltage are closely linked, you might wonder why they end up in different ICs. The answer is that ICA tries to find ICs that are maximally independent at a given time point. The HEOG signal is sustained, and the spike potential occurs only at the very beginning of the eye movement, so you often have a large HEOG voltage with no spike potential. In addition, the spike potential slightly precedes the HEOG change, so you can have a large spike potential without a simultaneous HEOG voltage. Consequently, they end up as different ICs. (The magnitude of the spike potential in the EEG/EOG recordings varies considerably across participants, so you don’t always see a separate IC for it.)
EEGLAB has a tool called ICLabel that is designed to automatically classify ICs on the basis of their scalp maps, their time courses, and their frequency content (Pion-Tonachini et al., 2019). Let's give it a try, starting with the initial ICA decomposition that we performed at the beginning of the chapter. Select 10_MMN_preprocessed_ICA from the EEGsets panel (you may need to load it from the Chapter_9 folder if you don't still have it loaded). Then go to the EEGLAB ICA panel and click Classify IC by ICLabel. You should see a new window of IC scalp maps that looks like the left side of Screenshot 9.14.
Under each scalp map, you will see the algorithm's guess about the nature of that IC, along with a percentage indicating the confidence of that guess. For example, IC 1 is labeled Eye with a confidence of 99.8%. That seems right given the frontal scalp map and the fact that the time course of this IC closely matched the time course of the blinks (Screenshot 9.4 in Section 9.2). IC 2 is classified as Brain with a confidence of 88.0%. The scalp map doesn't look like a perfect dipole, so it makes sense that the confidence is not close to 100%.
Screenshot 9.14
IC 3 is classified as Muscle, but with a confidence of only 41.1%. If you click on the box with the 3 in it, you'll see a new window like the one shown in Screenshot 9.15. Muscle activity is often relatively focused on the scalp, which fits the scalp map in this window. In the part of the window labeled Scrolling IC3 Activity, you can see the time course of this IC. It shows a pattern that looks a little bit like a saccade, but if you scroll along in that part of the window, you won't see a lot of these boxcar-shaped patterns. The time course also shows quite a bit of high-frequency noise, which you can also see in the power spectrum. That's consistent with muscle activity. But the overall pattern is pretty ambiguous. This just isn't a very "good" IC in terms of matching the kinds of patterns we should see in EEG recordings. And yet this IC is #3 in terms of variance accounted for. This is the kind of thing that you don't want to see if the ICA decomposition is working well. If ICA is working well, then this automatic classification algorithm should be able to label most of the ICs with high confidence (especially for the top half of the ICs). But with this decomposition, we see that IC 5 has a confidence of 76.4%, IC 6 has a confidence of 34.3%, and IC 15 has a confidence of 54.7%.
Screenshot 9.15
Let's see if things look any better with our second attempt at ICA decomposition, where we eliminated the kinds of C.R.A.P. that interfere with the decomposition. Close the window showing IC 3, select 10_MMN_preprocessed_transferredICAweights in the EEGsets panel, and click Classify IC by ICLabel in the EEGLAB ICA panel. You should see a new window of IC scalp maps that looks like the right side of Screenshot 9.14. Your maps might be a little different, and some polarities might be reversed, but they should otherwise look quite a bit like those in the screenshot (especially the top half of the ICs).
The first thing to notice is that the ICLabel algorithm was able to label all but 2 of the top 15 ICs with a confidence of >90%. IC 1 is still labeled as Eye with a confidence of 99.8%, and IC 2 has a much more brain-like scalp map and is classified as Brain with a confidence of 100.0% instead of a confidence of 88.0%. IC 3 is still not labeled with good confidence, but ICs 4-9 are labeled as Brain with a confidence of >95%. This is definitely an improvement over the original decomposition.
IC 13 is classified as Eye with a confidence of 92.3%. It has the classic horizontal eye movement scalp map, with opposite-polarity foci just lateral to the left and right eyes. And we already saw that the time course of this IC matched the time course of the eye movements in the HEOG-bipolar channel (Screenshot 9.13). We will definitely want to remove this IC.
IC 16 has a scalp distribution that is much like IC 1, and it is classified as Eye with a confidence of 89.8%. Blinks often appear in two or even three ICs, so you should take a close look at any IC that has a blink-like scalp map. If you scroll through the component activations and the EEG/EOG data in the main eStudio window, you’ll see that IC 16 exhibits a high-frequency burst at the beginning of each blink, often superimposed on a negative dip. Screenshot 9.16 shows this for a blink that occurred at approximately 28.8 seconds. The burst could be the EMG activity from the muscles that produce the blink. However, the slower negative dip doesn’t seem like EMG, so IC 16 may be mixing EMG and EOG signals (and maybe some EEG as well). Little EMG bursts like those in IC 16 don't really have much impact when we score the MMN as the mean voltage from 125-225 ms, so there doesn't seem to be a good reason to remove this IC. Also, because it's the 16th IC, it's not accounting for very much variance, which provides further reason not to remove it given that it is not clearly isolating a single problematic ocular artifact.
Screenshot 9.16
Blink-related EOG activity is primarily a result of the eyelids sliding across the eyeballs, but there may also be a slight vertical rotation of the eyeballs that produces a voltage. These two effects have similar but slightly different scalp distributions, so they may appear as separate ICs (especially when you have 60 or more channels and therefore 60 or more ICs). In theory, the two eyelids could start and stop moving at slightly different times, which might also produce separate ICs. We don't see any clear evidence of this in the present EEGset.
Now let's take a look at the other ICs. IC 5 has a relatively focused scalp distribution over the occipital pole. If you click on the 5 above the scalp map for this IC, the window that appears will show you that the frequency content has a clear peak at 10 Hz. You can also see bursts of 10 Hz activity if you scroll through the time course in the part of the window labeled Scrolling IC5 Activity. All of these properties are consistent with the classic alpha-band oscillation first described by Hans Berger in his original EEG study (Berger, 1929). This is an example where ICA is isolating a biologically meaningful component of the EEG. Unfortunately, that does not happen all that often in typical experiments, and there is nothing about the math behind ICA that guarantees that ICs will be true components.
If you close the window for IC 5 and open the corresponding window for IC 2, you'll see that it has a clear peak at approximately 7 Hz. Given this power spectrum and the fact that the scalp map peaks over midline frontal cortex, this is probably the commonly observed midfrontal theta oscillation. You can see bursts of oscillatory activity in this IC at a variety of time points (e.g., 127-128 s, 219 s, 297-302 s, 401-403 s), and you can see corresponding bursts of oscillations in the far frontal channels. However, the oscillation bursts sometimes occur simultaneously in other ICs (e.g., at 127 s), and IC 2 also shows some transient (non-oscillating) activity, so it's not clear that this IC does a very good job of isolating the midfrontal theta signal.
Check out the rest of the ICs and see if you can figure out what they represent. You’ll see that some contain alpha-band activity, like IC 5, but with somewhat different scalp topographies. This isn’t surprising given that alpha can be observed over different cortical areas at different times. Many ICs have no obvious interpretation.
Here's an important question: Should you rely on ICLabel to classify ICs and determine which ones come from the eyes and should therefore be removed in the artifact correction process? The experts I know like to use ICLabel to provide an initial classification, but then they visually confirm the classifications before using them to determine which ICs to remove during correction. When my lab has used ICLabel, we have ended up doing the same thing. I would say that ICLabel gets it right 80-90% of the time when everything is going well. That's pretty good, but not as good as combining ICLabel with your own judgment.
Perhaps the best thing about ICLabel is that it can help you learn what different kinds of ICs should look like, so that you can develop the expertise needed to combine your judgments with the ICLabel classifications.
Now let's correct for the two clear ocular artifact ICs, 1 and 13. Make sure that 10_MMN_preprocessed_transferredICAweights is selected in the EEGsets panel, and then click Remove ICs in the EEGLAB ICA panel. In the small window that appears, enter 1 13 in the text box labeled List of component(s) to remove from data, click the Ok button, and name the new EEGset 10_MMN_preprocessed_transferredICAweights_pruned.
If you look at the resulting EEG, you'll see that the blinks and horizontal eye movements have been removed from all channels except the VEOG-bipolar and HEOG-bipolar channels. In the frontal EEG channels, you'll still see the little spike potentials at the beginning of each horizontal eye movement, and brief EMG bursts at the beginning of each blink, but these are not a problem when we are scoring the MMN as the mean voltage from 125-225 ms.
Now that we've corrected the EEG, we can interpolate the two EEG channels that we left out of the ICA decomposition process in the previous exercise, namely F7 and PO4. To do this, go to the Interpolate Channels panel and set it up as shown in Screenshot 9.17. You can either put the interpolated data in the existing EEGset or create a new one. I like to create a new one in case I ever want to go back to the un-interpolated data, so make sure Create new dataset is selected. We're interpolating channels 3 and 24 (F7 and PO4). We're going to ignore the bipolar EOG channels because they do not use the same reference as the other channels. Note that it's perfectly fine to use the original EOG channels that have the same reference as the EEG channels, which have perfectly valid signals, so we're not excluding those channels. Click Run and name the new EEGset 10_MMN_preprocessed_transferredICAweights_pruned_interp.
Screenshot 9.17
You are now done with all the steps of artifact correction and interpolation for this participant, and you have beautiful data for the rest of the processing steps. It probably took you quite a while to go through all these steps, but once you've done it a few times, it will be pretty quick (except, perhaps, for the ICA decomposition step). And it's time well spent!
This page titled 9.5: Exercise- Transferring the Weights, Identifying the ICs, Correcting the EEG, and Interpolating was last modified on Thu, 01 Oct 2026 18:52:29 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Steven J Luck directly on the LibreTexts platform.
The book could not be loaded just now.