7.5: Exercise - Interpolating Bad Channels

Applied Event-Related Potential Data Analysis 2e · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    7.5: Exercise - Interpolating Bad Channels

    If you don’t already have the 1_MMN_preprocessed.set EEGset loaded, you should load it now. This dataset has already been preprocessed, including referencing to the average of P9 and P10 and high-pass filtering with a half-amplitude cutoff at 0.1 Hz. An EventList has been added, and BINLISTER has been run to assign events to bins. We have only two bins: Deviant Preceded by Standard (Bin 1, 200 epochs)) and Standard Preceded by Standard (Bin 2, 585 epochs).

    You’ve already looked carefully at the EEG while going through the video, and now we need to make a decision about whether C5 and/or F8 should be interpolated. To help make this decision, let’s calculate the SME. First, we need to epoch the continuous EEG, so go to the Extract bin-based epochs panel and epoch the data with the default parameters (epoch of -200 to 800 ms with Pre as the baseline).

    Now we’re ready to compute the SME. The SME is automatically computed when we create averaged ERPs, but we don’t need to look at averages right now, so you should instead get the SME values using the Compute Data Quality Metrics panel. This computes the SME in the same way that Compute Averaged ERPs does, but without creating an ERPset.

    In this experiment, MMN amplitude is scored as the mean voltage from 125 to 225 ms, so we want to get the SME values for this time range. To do this, select Custom parameters and click the Options button in the Compute Data Quality Metrics panel. A new window will appear, as shown in Screenshot 7.1. Click +Add a row to add a new time window. You’ll need to scroll down to see the new row. Change the submetric label to (Metric) at 125 to 225 and change the time window start and end fields to 125 and 225 (see the screenshot). Then click Save to get back to the panel and click RUN.

    Custom Data Quality GUI

    Screenshot 7.1

     A table with the data quality values will then appear (see Screenshot 7.2). If you look at the aSME values for Bin 1, the rightmost column will show the values for the 125-225 ms time range. You’ll see that the aSME values for Fp1, Fp2, and VEOG-bipolar are all substantially higher than the values for the other channels. That’s because of blinking, so you can ignore those channels. (You could perform artifact correction prior to examining the aSME to avoid this issue, especially if you were concerned that one of these channels should be interpolated.) Of the remaining channels, C5 really stands out, with a value that is much higher than the other channels.

    Data Quality Table

    Screenshot 7.2

     The data quality table GUI includes two tools that can help you find problematic values. First, the Color heatmap option colors each cell according to the value relative to the other cells. Try that, and you’ll see that the C5 channel pops out. The EOG, Fp1, and Fp2 sites also pop out, but that’s because we haven’t gotten rid of the blinks.

    The second way of identifying problematic channels is to click the Outliers button. This will cause the table to highlight any cells that are more than N standard deviations (SDs) away from the mean aSME value for that time period. The default setting of N is 2, which means that it will highlight cases that are more than 2 SDs above the mean. But when computing the SD, it would make sense to leave out the EOG, Fp1, and Fp2 channels, because they are a poor comparison for the other channels as a result of the blinking. The Outliers feature therefore allows you to specify a subset of the channels for computing the SD. Enter 3:28 in this text box. You’ll now see that the C5 channel is highlighted in most or all time periods. When combined with the fact that C5 was clearly problematic in our visual inspection of the data, these aSME results provide good reason to interpolate this channel.

    Oz will also be highlighted for the 600-700 ms time window. However, the value at Oz for the 125-225 window is just fine, and that's the window that matters for the MMN. Consequently, we don't need to interpolate Oz.

    What about F8, which also looked pretty bad in our visual inspection? The aSME for F8 is well within the range of the other frontal electrode sites. This indicates that the high-frequency noise in F8 isn’t really impacting our ability to quantify the amplitude of the MMN using the mean voltage between 125 and 225 ms. That noise could be problematic for other measures (e.g., peak amplitude), but it’s not problematic for the planned analyses of the present study (especially given that the main analysis will be limited to FCz). So, there would be little value in interpolating this channel given the way the data will be analyzed.

    In the analyses provided in the ERP CORE paper (Kappenman et al., 2021), F8 was interpolated because we did not yet have the SME metric and it “looked” noisy. Now I would make a different decision. I guess you can teach an old dog new tricks!

    Now that we’ve decided to interpolate C5 but not F8, it’s time to implement the interpolation. Close the Data Quality viewer window, and select the original continuous dataset (1_MMN_preprocessed) in the EEGsets panel. Then go to the Interpolate Channels panel and select Create new dataset. Put 11 in the Interpolated chan box (because C5 is Channel 11). We don’t want our bipolar EOG electrodes to be used for the interpolation, because they don’t have the same reference as C5 and would mess up the interpolation, so check the Ignored chans checkbox and put 32 33 in the corresponding text box. Select Spherical as the Interpolation method and click the Run button. Name the resulting dataset 1_MMN_preprocessed_interp (and you may want to save it to your disk because we’ll use it in the following exercises).

    Now scroll through the EEGset. The C5 channel should now look beautiful, even later in the session when the original C5 channel looked terrible (e.g., between 125 and 130 seconds). Success! However, keep in mind that the C5 channel now contains estimated voltages, not measured voltages. But that’s good enough for our present purposes, especially given that the main analyses will be performed on a different channel.

    One last note about interpolation: If you are using the average across sites as the reference, the data from any bad channels will contaminate all the channels. You might therefore want to use a single electrode (or a pair of electrodes such as P9 and P10) as the reference prior to interpolation. You can then re-reference to the average of all sites after interpolation. See Appendix 3 for a detailed discussion of when to implement interpolation. A more complex but more robust approach is implemented by the PREP pipeline (Bigdely-Shamlo et al., 2015).


    This page titled 7.5: Exercise - Interpolating Bad Channels was last modified on Thu, 01 Oct 2026 18:52:44 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Steven J Luck.