EEG / MEG: Experimental Design & Preprocessing Alexandra Hopkins Jennifer Jung.

Slides:



Advertisements
Similar presentations
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Advertisements

All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Neuroimaging for Cognitive Research
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Electroencephalogram (EEG) and Event Related Potentials (ERP) Lucy J. Troup 28 th January 2008 CSU Symposium on Imaging.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
EEG / MEG: Experimental Design & Preprocessing Denisa Jamecna Sofie Meyer (Archy de Berker(
Basis of the M/EEG signal Evelyne Mercure & Bonnie Breining.
Time-Domain Signals, Filtering, and the Overlap Problem
FMRI Design & Efficiency Patricia Lockwood & Rumana Chowdhury MFD – Wednesday 12 th 2011.
Brain-computer interfaces: classifying imaginary movements and effects of tDCS Iulia Comşa MRes Computational Neuroscience and Cognitive Robotics Supervisors:
Contrasts & Inference - EEG & MEG Outi Tuomainen & Rimona Weil mfd.
Electrophysiology. Electroencephalography Electrical potential is usually measured at many sites on the head surface More is sometimes better.
Preprocessing for EEG & MEG
Overview Contrast in fMRI v contrast in MEG 2D interpolation 1 st level 2 nd level Which buttons? Other clever things with SPM for MEG Things to bear in.
MEG/EEG Module Trainees Kai Hwang Tina Rasmussen TA Gus Sudre Bronwyn Woods Instructor Bill Eddy, Ph.D. Anna Haridis Thanks to:
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Pre-processing for EEG and MEG
HST 583 fMRI DATA ANALYSIS AND ACQUISITION Neural Signal Processing for Functional Neuroimaging Emery N. Brown Neuroscience Statistics Research Laboratory.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Artifact (artefact) reduction in EEG – and a bit of ERP basics CNC, 19 November 2014 Jakob Heinzle Translational Neuromodeling Unit.
Electrophysiology.
Subdural Grid Intracranial electrodes typically cannot be used in human studies It is possible to record from the cortical surface Subdural grid on surface.
Electroencephalography The field generated by a patch of cortex can be modeled as a single equivalent dipolar current source with some orientation (assumed.
Electroencephalography and the Event-Related Potential
Electroencephalography Electrical potential is usually measured at many sites on the head surface.
Brain Electrical Source Analysis This is most likely location of dipole Project “Forward Solution” Compare to actual data.
Discussion Section: Review, Viirre Lecture Adrienne Moore
M/EEG pre-processing Holly Rossiter
EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu.
General Linear Model & Classical Inference
Closed and Open Electrical Fields
The M/EEG inverse problem and solutions Gareth R. Barnes.
The M/EEG inverse problem and solutions Gareth R. Barnes.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
M/EEG pre-processing Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Wavelet transformation Emrah Duzel Institute of Cognitive Neuroscience UCL.
EEG / MEG: Experimental Design & Preprocessing Lena Kästner Thomas Ditye.
Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Application of non-linear Wavelet De-noising
Functional Brain Signal Processing: EEG & fMRI Lesson 4
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Contrasts & Inference - EEG & MEG Himn Sabir 1. Topics 1 st level analysis 2 nd level analysis Space-Time SPMs Time-frequency analysis Conclusion 2.
Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Cognitive Psychology PSYC231 Cognition and the Brain: Basic Principles 2 Dr. Jan Lauwereyns, EA619, ext
Event-related potentials (ERPs) Jarrod Blinch motorbehaviour.wordpress.com May 31 st, 2011.
fMRI Task Design Robert M. Roth, Ph.D.
1 Experimental Design, Contrasts & Inference - EEG & MEG Joseph Brooks (ICN) Maria Joao (FIL) Methods for Dummies 2007 Wellcome Department For Neuroimaging.
The brain at rest. Spontaneous rhythms in a dish Connected neural populations tend to synchronize and oscillate together.
EEG / MEG: Experimental Design & Preprocessing
RESEARCH QUESTIONS Might having to lie still without moving, or having to lie down rather than sit up, change the pattern of neural activity in very young.
M/EEG: Statistical analysis and source localisation Expert: Vladimir Litvak Mathilde De Kerangal & Anne Löffler Methods for Dummies, March 2, 2016.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Methods for Dummies: Study Design and Pre-processing Tim West & Vanessa Meitanis Hans Berger- Inventor of EEG.
Essentials of Electroencephalography Groundwork Jarrod Blinch May 17 th, 2011 Comprehensive presentation.
Event-Related Potentials Chap2. Ten Simple Rules for Designing ERP Experiments (2/2) 임원진
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Electrophysiology. Neurons are Electrical Remember that Neurons have electrically charged membranes they also rapidly discharge and recharge those membranes.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
EEG Definitions EEG1: electroencephalogram—i.e., the “data”
[Ran Manor and Amir B.Geva] Yehu Sapir Outlines Review
Brain Electrophysiological Signal Processing: Postprocessing
M/EEG Statistical Analysis & Source Localization
Signal and Noise in fMRI
Cycle 10: Brain-state dependence
Dynamic Causal Modelling for M/EEG
MEG fundamentals.
Machine Learning for Visual Scene Classification with EEG Data
Presentation transcript:

EEG / MEG: Experimental Design & Preprocessing Alexandra Hopkins Jennifer Jung

Outline Experimental Design fMRI M/EEG Analysis – Oscillatory activity – EP Design Inferences Limitations Combined Measures Preprocessing in SPM12 Data Conversion Montage Mapping Epoching Downsampling Filtering Artefact Removal Referencing

MEG vs. EEG ●Both EEG and MEG signals arise from direct neuronal activity -> postsynaptic dendritic potentials ●Electric field is distorted by changes in conductivity across different layers unlike magnetic field ●High temporal resolution ~ms.

Sources of M/EEG signals gyrus sulcus ●MEG sensors only detect tangential components of fields from cortical pyramidal neurons ●Less sensitive to deeper regions ●EEG signal consists of both tangential and radial components of fields

Two types of MEG/EEG analysis Event related changes (EP / ERP – ERF) Oscillatory activity – cortical rhythms (Time-frequency analysis) Otten, L. (2012, November 21). EEG/MEG Acquisition, Analysis and Interpretation, MSc Cognitive Neuroscience, UCL Time locked to stimulus

post-stim pre-stim evoked response Averaging Event Related Changes Repeats at same time When response is time locked - signal averages in!

Evoked vs. Induced ( Hermann et al. 2004) With jitter effect - signal averages out! Average trial by trial

resting state falling asleep sleep deep sleep coma 1 sec 50 uV ongoing rhythms active awake state Oscillatory activity

Non-averaged data collected during continuous stimulation or task performance (or during rest) lends itself to analysis of spectral power. Signals can be decomposed into a sum of pure frequency components which gives information on the signal power at each frequency. i.e. We can do Fourier analysis and look at spectra (not-event related – break data in arbitrary segments and do some averaging Oscillations

Cortical and behavioral deactivation or inhibition Closed eyes Alert, REM sleep Attention, and higher cognitive function Attentional and syntactic language processes Deep sleep Codes locations in space, navigation Declarative/episodic memory processes Successful memory encoding (8 – 12or 13 Hz) (12 – 30 Hz) (0 – 4 Hz) (4 – 8 Hz) (30 – 80 Hz) Visual awareness Binding of information Encoding, retention and

EP vs. ERP / ERF Evoked potential (EP) –sensory processes –short latencies (< 100ms) –small amplitudes (< 1μV) Event related potential (EEG) / event related field (ERF) –higher cognitive processes –longer latencies (100 – 600ms), –higher amplitudes (10 – 100μV) used interchangeably in general

Non-time locked activity(noise) lost via averaging over trials Averaging ERP/ ERF

Experimental design Number of trials – EP: 120 trials, 15-20% will be excluded – Oscillatory activity: trials Duration of stimuli / task – Short: Averaged EP is fine – (Very) long: spectrotemporal analysis on averaged EP or non-averaged data Collecting Behavioral Responses

Inferences Not Based On Prior Knowledge Same ERP pattern Timing signals Distribution across scalp Differences in ERP across conditions and time Invariant patterns of neural activity from specific cognitive processes Timing of cognitive processes Degree of engagement Functional equivalence of underlying cognitive process Observation Inference

Observed vs Latent Components Latent componentsObserved waveform OR

Design Strategies Focus on specific, large and easily isolated component –E.g., P3, N400, LRP, N2pc… Use well-studied experimental manipulations -Similar conditions Component-independent experimental designs -Very hard to study anything interesting Luck, Ten Simple Rules for Designing and Interpreting ERP Experiments

How quickly can the visual system differentiate between different classes of object? Thorpe et al (1996) Component-independent experimental designs

Avoid confounds and misinterpretations – Physical stimulus confounds Side effect – What you manipulated indirectly influences other things Vary conditions within rather than between blocks - Fatigue effect ● Be cautious of behavioural confounds - Motor evoked potentials (MEPs) Design Strategies

Sources of Noise in M/EEG ●M/EEG activity not elicited by stimuli –e.g. alpha waves → relaxed but alert ●Trial-to-trial variability in the ERP components -variations in neural and cognitive activity → trial by trial consistency ●Artefactual bioelectric activity -eye blinks, eye movement, cardiac and muscular activity, skin potentials → keep electrode impedances low ●Environmental electrical activity -power lines, SQUID jumps, noisy, broken or saturated sensors → shielding

Signal-to-Noise Ratio Size of the noise in average = (1/√N) ×R Number of trials: –Large component: 30– 60 per condition –Medium component: 150– 200 per condition –Small component: 400– 800 per condition –Double with children or psychiatric patients

Limitations Ambiguous relation between observed ERP and latent components Signal distorted en route to scalp –arguably worse in EEG than MEG (head as “spherical conductor”) MEG: restrictions with magnetic implants Poor localization (cf. “inverse problem”)

Why? How? –Converging evidence, generative models – fMRI + EEG, fMRI + MEG Drawbacks –Signal interference –Complex experimental design Combining Techniques

Outline Experimental Design fMRI M/EEG Analysis – Oscillatory activity – EP Design Inferences Limitations Combined Measures Preprocessing in SPM12 Data Conversion Montage Mapping Epoching Downsampling Filtering Artefact Removal Referencing

PREPROCESSING IN SPM12 Goal: get from raw data to averaged ERP (EEG) or ERF (MEG) using SPM12

Conversion of data Convert data from its native machine-dependent format to MATLAB based SPM format *.mat (data) *.dat (other info) *.bdf *.bin *.eeg

Define settings: Read data as continuous or as trials (is raw data already divided into trials?) Select channels Define file name ‘just read’ option is a convenient way to look at all the data quickly Data Conversion

128 channels selected Unusually flat because data contain very low frequencies and baseline shifts Viewing all channels only with a low gain *.mat (data) *.dat (other info) Data Conversion - Example

Sampling frequency is very high at acquisition (e.g Hz) Downsampling is required for efficient data storage Sampling rate > 2 x highest frequency in the signal of interest = The Nyquist frequency Downsampling

Aliasing Sampling below Nyquist frequency will introduce artefacts known as aliases.

Downsampling reduces the file size and speeds up the subsequent processing steps At least 2x low pass filter e.g to 200 Hz. Downsampling: SPM 12 Interface

Montage - representation of EEG channels Referential montage - have a reference electrode for each channel Identify vEOG and hEOG channels, remove several channels that don’t carry EEG data. Specify reference for remaining channels: Single electrode reference: free from neural activity of interest e.g. Cz Average reference: Output of all amplifiers are summed and averaged and the averaged signal is used as a common reference for each channel, like a virtual electrode and less biased Montaging & Referencing

RE-referencing

Montage & Referencing : SPM 12 Interface

Review channel mapping Montage & Referencing : SPM 12 Interface

Cut out chunks of continuous data (= single trials, referenced to stim onset) EEG1 EEG2 EEG3 Event 1 Event 2 Epoching

Specify time e.g. 100 ms prestimulus ms poststimulus = single epoch/trial Baseline-correction: automatic; mean of the pre-stimulus time is subtracted from the whole trial Padding: adds time points before and after each trial to avoid ‘edge effects’ when filtering Epoching

Epoching: SPM 12 Interface

M/EEG data consist of signal and noise Noise of different frequency; filter it out Any filter distorts at least some part of the signal but reduces file size Focus on signal of interest - boost signal to noise ratio SPM12: Butterworth filter High-, low-, band-pass or bandstop filter Filtering

High-pass – filters out low-frequency noise, removes the DC offset and slow drifts in the data e.g. sweat and non-neural physiological activity Low-pass – remove high-frequency noise. Similar to smoothing e.g. muscle activity, neck Notch (band-stop) – remove artefacts limited in frequency, most commonly electrical line noise and its harmonics. Usually around 50/60Hz. Band-pass – focus on the frequency of interest and remove the rest. More suitable for relatively narrow frequency ranges. Types of Filters

Examples of Filters

Bandpass Filter

Filtering: SPM 12 Interface

Artefacts

Removal Visual inspection - reject trials Automatic SPM functions: Thresholding (e.g. 200 μV) 1 st – bad channels, 2 nd – bad trials No change to data, just tagged Robust averaging: estimates weights (0-1) indicating how artefactual a trial is EASY Removing Artefacts

Robust Averaging

Use your EoG! Regress out of your signal Use Independent Component Analysis (ICA) Eyeblinks are very stereotyped and large Usually 1 st component HARDER Removing Artefacts

Special thanks to our experts Bernadette and Vladimir Litvak

References Ashburner, J. et al. (2010). SPM8 Manual. Hansen, C.P., Kringelbach M.L., Salmelin, R. (2010) MEG: An Introduction to Methods. Oxford University Press, Hermann, C. et al. (2004). Cognitive functions of gammaband activity: memory match and utilization. Trends in Cognitive Science, 8(8), Herrmann, C. S., Grigutsch, M., & Busch, N. A. (2005). EEG oscillations and wavelet analysis. In T. C. Handy (Ed.), Event-related potentials: A methods handbook (pp ). Cambridge, MA: MIT Press. Luck, S. J. (2005). Ten simple rules for designing ERP experiments. In T. C. Handy (Ed.), Event- related potentials: a methods handbook. Cambridge, MA: MIT Press. Luck, S. J. (2010). Powerpoint Slides from ERP Boot Camp Lectures. Otten, L. (2012, November 21). EEG/MEG Acquisition, Analysis and Interpretation, MSc Cognitive Neuroscience, UCL Otten, L. J. & Rugg, M. D. (2005). Interpreting event-related brain potentials. In T. C. Handy (Ed.), Event-related potentials: a methods handbook. Cambridge, MA: MIT Press.. Sauseng, P., & Klimesch, W. (2008). What does phase information of oscillatory brain activity tell us about cognitive processes? [Review]. Neuroscience and Biobehavioral Reviews, 32(5), doi: /j.neubiorev MfD slides from previous years