Averaging & Data Inspection

Video Navigator

  1. Why to Average Data (15s)
  2. Event-related Potentials (1m 04s)
  3. Amount of Trials to Average (2m 11s)
  4. Data Inspection (4m 32s)
  5. Reasons to Reprocess Data (7m 00s)
  6. Grand Averages (7m 02s)
  7. Process in Matlab (12m 05s)

Why to Average Data

  1. Individual ERP trials are noisy
  2. ERPs are embedded in a larder EEG signal
    1. The target neural signal is small relative to the large background activity
  3. Need to minimize noise to let smaller brain signals be visible
  4. Averaging increases the signal-to-noise ratio (SNR) to improve signal quality
    1. Signal Averaging: Simple arithmetic mean of voltages across time
      1. EEG segments: time-locked to the same class of event
      2. Consistent Features of segments are retained
      3. Varying Features across segments are attenuated

Event-related Potentials

  1. Event-related potentials (ERPs): Emerge when you time-lock the epoch to event and average across “like” trials
    1. Example: participants listen to sentences and determine whether the last word in the sentence makes sense
      1. The pizza was too hot to eat (related condition)
      2. The pizza was too hot to cry (unrelated condition)
        1. Eat is the related word, cry is unrelated
    2. We can pull the trials of each conditions, marked in our eeg with triggers, and average the like-kinds of trials
      1. This results in a common waveform across the different trials that we can compare to other conditions

Amount of Trials to Average

  1. How big is the background noise relative to the size of the neural component?
    1. Smaller components will need more trials
  2. ERP noise level varies with number of trials used to create average
    1. More trials in a condition can reduce noise
    2. Trade-off between improving SNR and fatigue/time to complete experiment

Data Inspection

  1. Is the component of interest in your data?
    1. Across electrodes, and specifically in your electrodes of interest

Reasons to Reprocess Data

Common Reasons to reject or re-process data set

  1. Insufficient number of trials in "bins" or conditions
    1. Task performance
      1. Minimum number of correct trials needed to create averages for each condition (influences SNR)
      2. Criteria defined by task and/or experimenter (e.g., max loss of 10% of trials)
    2. Data quality
      1. Need equal number of trials across bins or expected number of trials in specific bins
        1. N170 data: 50 face trials v. 50 car trials
        2. P3 data: 20 rare trials vs. 80 frequent trials
  2. Data quality
    1. Large artifacts remain after pre-processing or bad channel
      1. Example: During data inspection you can see a large eyeblink present across the data

Grand Averages

What is a Grand Average (GA) Waveform?

  1. Average of all individual-participant ERPs to make a group-average ERP.
  2. Examine and plot the condition effects across all participants’ data sets.
  3. Individual ERP waveforms vary due to individual differences.
  4. GA emphasizes the ERP pattern shared across participant data sets and minimizes individual differences.
    1. GAs reveal common neural response
      1. Individual average waveforms vary, but the GA of any 10 participants usually looks similar to GA of any other 10 participants!

Data inspection considerations for Grand Averages (GA)

  1. Data inspection criteria for individual data sets apply to GA too
    1. Apply same data inclusion criteria to all data sets
      1. Avoid bias of only accepting data that fits study's hypothesis
  2. Check that GA reflects the individual data set patterns
    1. Expect some variability in waveform latency and amplitude across participants
    2. Confirm GA waveform is not driven by only a few participants

GA is used for data quantification

  1. Combine all correct trials (i.e., combine conditions) to establish time window for component
  2. Make a time window for the component, not predicted condition differences
  3. Extract amplitudes, latencies and other data measures in next step….

GA used to communicate research findings

  1. Figures use GA in research findings to scientific community in posters, talks and articles
  2. Example:
    1. Qiu, R., Wang, H., & Fu, S. (2017). N170 Reveals the categorical perception effect of emotional valence. Frontiers in Psychology, 8, 2056.

Process in Matlab

  1. Open Matlab, Set Path to eeglab and erplab plugins, and open eeglab
  2. File > Load Existing Dataset > Load your dataset (Here 1001)
    1. The name in the eeglab GUI shows you all the steps that have occurred so far

Merge Artifact flags from EEGlab and ERPlab into eventlist

  1. ERPLab > Artifact Detection in Epoched Data > Synchronize Artifact info in EEG and EVENTLIST
    1. Select "Update EVENTLIST and EEG reject to mark any epochs that were marked"

Create and average of the erps

  1. ERPLAB > Compute Averaged ERPs
    1. With the artifact rejected data (includes both AR#1 and AR#2), now the subject’s data needs to be averaged for each experimental condition
  2. Run > save ERPset GUI pops up
  3. "Save ERP set as" and enter directory and filename
    1. This file is show under ERPSETS

Visually inspect your average

  1. ERPLAB > Plot ERP > Plot ERP Wave Forms
    1. In the plotting GUI:
      1. Bins: 1:2
        1. these are correct trials, and the incorrect trials often do not have many trials, making the data very noisy
      2. Channels: all channels
        1. You can select specific channels, but in this case we look at all of the channels to look for any noisy data, bad channels, and get an overall impression of the data
      3. Y-scale
        1. Auto y-scale works sometimes, but if you have your eye channels selected then the y-scale may be very large, making most of your channels look flat
      4. Plot
        1. Mastoids should be pretty flat (they are our comparison)
        2. Eye channels may show a blink, which may drive high auto y-scale amplitudes
        3. Is the component we are interested in present in the data, especially at electrodes of interest

Grand Averaging the data

  1. Once we have averaged a file, we are not loading a dataset, we load a erpset
    1. ERPlab > Load existing ERPset > navigate to where your erpsets are (here we load 10 erpsets)
  2. ERPlab > Average Across ERPsets (Grand Average)
    1. From ERPset in the ERPset Menu (select which files you want)
    2. Exclude any null bin from non-weighted average (defaults also okay)
    3. Run
    4. Save
  3. Examine the Grand Average the same as you did for an average file
    1. ERPLAB > Plot ERP > Plot ERP Wave Forms
      1. Bins 1:2
      2. All Channels
      3. Check auto y-scale
    2. The Grand Average plot is smoother than an individual plot because it is an average of all of the participants

Additional Information

PURSUE teaching modules provide instructors with everything they need to add EEG/ERP content in existing courses, teach a full semester course, or train research assistants in the lab. Follow this link to Lab Training Modules that can be used with tutorial videos.

Assocciated Teaching Modules: Lab Training Modules, Averaging and Grand Averages