Skip to content

CIMH-Clinical-Psychology/EEGManyPipelines

Repository files navigation

EEGManyPipelines

Description and analysis plan for the EEGManyPipelines project

1. Preprocessing

1.0 manual data inspection

detect bad channels by RANSAC, interpolate bads. note down how many channels were interpolated per participant.

1.1 re-referencing

Re-referencing to average electrode (reasoning: to approximat electrode reference that is most generalizable to all electrodes)

1.2 filtering

  1. Band: 0.1-100 Hz (FIR). Before/after epoching is not relevant, as jitter is only +-4ms
  2. downsampling to 250 Hz (as for ERP no relevant frequencies are higher than that, and it's questionable if higher frequencies can even be measured reliably in EEG)
  3. For ERPs: 35 LP + Notch 50 Hz
  4. For Open questions: leave original LP

1.3 Artefact rejection

1.3.1 Eye blinks & horizontal eye movements

  1. ICA, find Eyeblink components from 64 components
  2. blinks will be easy to detect
  3. horizontal eye movements will be more difficult
  4. check manually!
  5. Only apply ICA correction to time spans where eye blinks / heog are actually observed
  6. Apply to all channels
  7. Are eyeblinks corrected? Visual random sample check

1.3.2 artefact rejection

  1. Epoch data based on trial trigger -200 to 500 ms

  2. Apply artefact criteria per trial

    • same as Bublatzky et al 2020)
    • maximal allowed voltage step of 50 mV/ms;
    • maximal allowed difference of values in 200 msec intervals of 200 mV;
    • minimal/maximal allowed amplitude of ± 100 mV
  3. good/bad trials measurement, percentage bad per participant

  4. calculate good/bad channels percentage per trial type / hypothesis interest

2. Analysis

Data at this point:

  • epochs_freq
    • from -200ms to +500ms after trigger onset
    • baseline corrected from -200ms to 0ms
    • bad epochs marked by autoreject
    • Original sampling frequency of 512
  • epochs_erp
    • same as above
    • additional LP 35 Hz
    • downsampled to 250 Hz

H1: Effect of scene category (done)

There is an effect of scene category (i.e., a difference between images showing
man-made vs. natural environments) on the amplitude of the N1 component, i.e. the
first major negative EEG voltage deflection.

Using epochs_erp

  • Don't use peak amplitude, because not reliable, as peak cannot always be determined accurately

Find best electrode to detect the N1

  1. make avg of trials per subj per electrode
  2. Find first negative peak 50-120ms, see which electrode has lowest amplitude
  3. use this electrode for further calculations

calculate component

  1. calculate voltage per participant for chosen electrode
  2. time windows for component min to max of peak +-5ms
  3. AUC +-5ms of peak, take one time window for all participants
  4. repeated measures ttest

Results:

  • Negative peak between 0.08 and 0.15 on grand average is at 125ms @ Fz.
  • voltage +-5ms:
    • man-made = -3.09+-1.86 uV
    • natural = -2.76+-1.87 uV
  • repeated measures ttest (ttest_rel)
    • p = 0.001187815
  • Cluster analysis showed significant cluster on occipital electrodes at a later point

H2: image novelty (done)

There are effects of image novelty (i.e., between images shown for the first time/new
vs. repeated/old images) within the time-range from 300–500 ms ...
   a. ... on EEG voltage at fronto-central channels.
   b. ... on theta power at fronto-central channels.
   c. ... on alpha power at posterior channels.

Using epochs_erp

H2a Calculate

  1. Take Fronto-Central channels for calculation ('FCx')
  2. AUC 300ms-500ms of peak
    • repeated measures ttest

Results

  • Negative peak between 0.3 and 0.5 on grand average is at FCz
  • Taking electrodes ['FCz', 'FC1', 'FC2']
  • voltage from 300-500ms on these electrodes:
    • new = -6.40+-3.50 uV
    • old = -5.99+-3.52 uV
  • repeated measures ttest (ttest_rel)
    • p = 0.000001946596

H2b Calculate

  1. calculate spectra for theta (4-7 Hz) for the time range using Wavelet

    methods:

For each participant:
    For each epoch of participant:
        1. calculate wavelet with
        - freq = array([4. , 4.5 , 5. , 5.5, 6., 6.5, 7.0 ])
        - use half cycles
    2. take segment between 300-500ms for fronto-central electrodes
    3. calculate mean over result

Result

  • For electrodes [FCz, FC1, FC2]
  • Mean Power between 300-500 ms
    • new 7.06e-10+-2.59-10
    • old 7.27e-10+-2.53e-10
    • p = 0.000802

Problems:

  • How to normalize histograms? -> doesn't matter bc within-subject and same sessions
  • What to do with outliers?

H2C

    methods:

For each participant:
    For each epoch of participant:
        1. calculate wavelet with
        - freq = array([8. ,  8.5,  9. ,  9.5, 10. , 10.5, 11. , 11.5, 12. , 12.5, 13. , 13.5, 14.0])
        - use half cycles
    2. take segment between 300-500ms for posterior electrodes
    3. calculate mean over result

Result

  • For electrodes [PO7', 'PO3', 'POz', 'PO8', 'PO4', 'O1', 'O2']
  • Mean Power between 300-500 ms
    • new 5.33e-10+-2.09e-10
    • old 5.32e-10+-2.04e-10
    • p = 0.85

H3: successful recognition

There are effects of successful recognition of old images (i.e., a difference between
old images correctly recognized as old [hits] vs. old images incorrectly judged as new
[misses]) ...
   a. ... on EEG voltage at any channels, at any time.
   b. ... on spectral power, at any frequencies, at any channels, at any time.

H3a: voltage

  • plot grand avrg and differences between categories
  • for later: divide in time windows, calculate statistics, use cluster analysis / stats corrections to check where differences are significant
  • mass univat ansatz
  • cluster correction from oostenfeld
  • Take repeated measures F test
  • Report all channels and all timepoints that are in cluster

Clusters based on TFCE

Clusters based on 0.05, two clusters found

H3b: frequency

Cluster analysis using 1 sample ttest reports three clusters that stretch across time and frequency and channels

H4: successful recognition

4. There are effects of subsequent memory (i.e., a difference between images that will
be successfully remembered vs. forgotten on a subsequent repetition) ...    
  a. ... on EEG voltage at any channels, at any time.
  b. ... on spectral power, at any frequencies, at any channels, at any time.

same as above

H4a: Voltage

Cluster analysis found no cluster that was significant with p<0.05.

pvalue map. darkest blue=0.2

H4b: Time-Frequency

No significant clusters.

notes/questions:

28.02

  1. Should timepoint/electrode be decided on ALL epochs or only on epochs relevant for the current H1?

  2. man-made contains all different kind of conditions for H1, combine?

 'man-made/new/correct-rejection/N/A': 158
 'man-made/new/correct-rejection/forgotten': 94
 'man-made/new/correct-rejection/remembered': 24
 'man-made/new/false-alarm/N/A': 15
 'man-made/new/false-alarm/forgotten': 18
 'man-made/new/false-alarm/remembered': 5
 'man-made/old/hit/N/A': 131
 'man-made/old/hit/forgotten': 102
 'man-made/old/hit/remembered': 6
 'man-made/old/miss/N/A': 10
 'man-made/old/miss/forgotten': 25
 'man-made/old/miss/remembered': 3
  1. spectogram: averaging before spectogram creation or after?
  2. Equalize event counts before averaging?
  3. Resampling later?

make difference topo plot

08.04

  • create difference on subj level
  • sanity check for f test: calcualte on previous results, sohuld give same p val

earlier

EMP20 weird oscillations EMP21 noisy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages