270 likes | 296 Views
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation. Diana Omigie Stjepana Kovac. Last week revisited. What do we measure with EEG and MEG? Why use these techniques? What do we do we do with the raw data we record? Downsampling Montage Mapping Epoching
E N D
Methods for DummiesM/EEG Analysis:Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac
Last week revisited What do we measure with EEG and MEG? Why use these techniques? What do we do we do with the raw data we record? • Downsampling • Montage Mapping • Epoching • Filtering • Artefact Removal • Averaging
1 0 0 0 0 time What Next? Event related potentials (ERPs) are signal-averaged epochs of EEG that are time-locked to the onset of a stimulus A waveform is a time series that plots scalp voltage (µV, T) over time (ms) However, We might also want • to carry out statistics comparing between conditions, subjects .. • to localise the generators of the electrical activity
This week Contrast and Inferences Source Reconstruction
Contrasts and Inferences using SPM 8 ……Which buttons do we need to press?
EEG data acquired on 128 channel ActiveTwo system sampled at 2048HzRandomised presentation of 86 faces and 86 scrambled faces Experimental Paradigm
Aim: Identify at what point in time and over what sensor area the greatest difference lies in the responses to faces and non faces. Steps
2D Interpolation Transformation of discreet channels into a continuous 2D interpolated image of M/EEG signals Sensor Space Scalp Space
MULTI DIMENSIONALSCALP SPACE create a 2D space by flattening the sensor locations and interpolating between them to create an image of M*M pixels ( where M=number of channels) or Create a 3 D space with time as added dimension. M*M*S (where S= number of samples)
MULTI DIMENSIONALSCALP SPACE 2D create a 2D space by flattening the sensor locations and interpolating between them to create an image of M*M pixels ( where M=number of channels) or 3D Create a 3 D space with time as added dimension. M*M*S (where S= number of samples)
MULTI DIMENSIONALSCALP SPACE 2D create a 2D space by flattening the sensor locations and interpolating between them to create an image of M*M pixels ( where M=number of channels) or 3D Create a 3 D space with time as added dimension. M*M*S (where S= number of samples)
MULTI DIMENSIONALSCALP SPACE 2D create a 2D space by flattening the sensor locations and interpolating between them to create an image of M*M pixels ( where M=number of channels) or 3D Create a 3 D space with time as added dimension. M*M*S where S= number of samples
MULTI DIMENSIONALSCALP SPACE 2D create a 2D space by flattening the sensor locations and interpolating between them to create an image of M*M pixels ( where M=number of channels) or 3D Create a 3 D space with time as added dimension. M*M*S where S= number of samples Time
Background Random Field theory allows us to: • make N dimensional spaces from sensor locations. • take into account the spatial correlation across pixels. • correct for multiple statistical comparisons.
SPM 8Steps 1stLEVEL
1stLEVEL New directory Faces & Scrambled faces 3D image file for each trial with dimension 32x 32x 161
1stLEVEL 3D IMAGE Sections through X and Y expressed over time 2D x-y space interpolated from the flattened electrode locations at one point in time
1stLEVEL 1st level analysis of EEG data is • not about modeling the data ( as in fMRI) • the transformation of data from filename.mat and filename.dat format to image files (N1fT1 format) • a necessary step to create the images which we carry out 2nd level analysis on
1st level analysis button • Used only when you know in advance the time window that you are interested in. • The Specify 1st level button results in a 2D image with just spatial dimensions.
Smoothing • Important step to take before 2nd level analysis (In SPM, use smooth images function in the drop down other menu) • Used to adjust images so that they better conform to the assumptions of random field theory • Necessary for taking into consideration spatial and temporal variability between subjects • General guiding principle: Let smoothing kernel match the data feature you need to enhance. Try to smooth the images with different kernels and see what looks best.
2ndLEVEL Which Buttons Do we Need to Press?
2ndLEVEL Create a new directory Then To produce a batch window Select directory created Select two sample t test as design Make group 1 contain 1st type of trials Make group 2 contain other type. Save batch description Run batch window
2ndLEVEL 2 sample t-testDesign Matrix click click
Result showing regions within epochs where faces and non faces differ reliably Maxima [-13 -78 180] & [21 -68 180] Coordinates correspond to the left and right posterior sites at 180ms
Transform data into frequency spectrum Time-frequency analysis Ideal for induced responses i.e. responses not phase locked to the stimulus onset Different methods but SPM uses the Morlet Waveform Transform ( mathematical functions which breaks a signal into different components) Trade off between time resolution and frequency resolution