EEG / MEG: Experimental Design & Preprocessing

Slides:



Advertisements
Similar presentations
Dynamic causal Modelling for evoked responses Stefan Kiebel Wellcome Trust Centre for Neuroimaging UCL.
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.
What do we measure with EEG and MEG?
1 st Level Analysis: design matrix, contrasts, GLM Clare Palmer & Misun Kim Methods for Dummies
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(
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.
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 Waves. Brain Fingerprinting Forensic Science, Biometrics, etc…
An introduction to MEG Lecture 1 Matt Brookes.
Signal and Noise in fMRI fMRI Graduate Course October 15, 2003.
EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu.
General Linear Model & Classical Inference
Chapter 4 States of consciousness BY: DR. UCHE AMAEFUNA (MD)
Closed and Open Electrical Fields
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.
NeuroPhone : Brain-Mobile Phone Interface using a wireless EEG Headset Ilho nam.
EEG / MEG: Experimental Design & Preprocessing Lena Kästner Thomas Ditye.
Behavioral paradigm development for fMRI and EEG Jason Zevin Sackler Institute.
EEG / MEG: Experimental Design & Preprocessing Alexandra Hopkins Jennifer Jung.
Source localization for EEG and MEG Methods for Dummies 2006 FIL Bahador Bahrami.
Source localization MfD 2010, 17th Feb 2010
DCM for ERPs/EFPs Clare Palmer & Elina Jacobs Expert: Dimitris Pinotsis.
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.
You had it coming... Precursors of Performance Errors Tom Eichele, MD PhD Department of Biological and Medical Psychology University of Bergen Source:
Functional Brain Signal Processing: EEG & fMRI Lesson 18 Kaushik Majumdar Indian Statistical Institute Bangalore Center M.Tech.
Electromyography (EMG)
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.
Principal components analysis (PCA) as a tool for identifying EEG frequency bands: I. Methodological considerations and preliminary findings Jürgen Kayser,
Dynamic Causal Model for evoked responses in MEG/EEG Rosalyn Moran.
Multimodal Brain Imaging Wellcome Trust Centre for Neuroimaging, University College, London Guillaume Flandin, CEA, Paris Nelson Trujillo-Barreto, CNC,
1 Psychology 304: Brain and Behaviour Lecture 2. 2 Research Methods 1.What techniques do biological psychologists use to assess the structure and function.
The role of synchronous gamma-band activity in schizophrenia Jakramate 2009 / 01 / 14.
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) 임원진
Computer Architecture and Networks Lab. 컴퓨터 구조 및 네트워크 연구실 EEG Oscillations and Wavelet Analysis 이 윤 섭이 윤 섭.
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.
Electroencephalogram. Terms EEG- Elecrtoencephalogram Electroencephalograph ECoG- Electrocorticogram.
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
EEG Definitions EEG1: electroencephalogram—i.e., the “data”
Brain Electrophysiological Signal Processing: Postprocessing
A High-Density EEG investigation of the Misinformation Effect: Differentiating between True and False Memories John E. Kiat & Robert F. Belli Department.
M/EEG Statistical Analysis & Source Localization
Dynamic Causal Modelling for ERP/ERFs
Signal and Noise in fMRI
Dynamic Causal Modelling for M/EEG
MEG fundamentals.
Machine Learning for Visual Scene Classification with EEG Data
M/EEG Statistical Analysis & Source Localization
Presentation transcript:

EEG / MEG: Experimental Design & Preprocessing Lone Hørlyck Marion Oberhuber

Outline Experimental Design Technology Signal Inferences Design Limitations Combined Measures Preprocessing in SPM8 Data Conversion Montage Mapping Epoching Downsampling Filtering Artefact Removal Referencing

Outline Experimental Design Technology Signal Inferences Design Limitations Combined Measures Preprocessing in SPM8 Data Conversion Montage Mapping Epoching Downsampling Filtering Artefact Removal Referencing

Electricity & Magnetism Technology | Signal | Inferences | Design | Limitations | Combined Measures Electricity & Magnetism apical dendrites of pyramidal cells act as dipoles

Technology | Signal | Inferences | Design | Limitations | Combined Measures Why use EEG / MEG? high temporal resolution, direct measure relatively quick little safety or ethical concerns EEG: relatively cheap fMRI or EEG? depends on hypothesis, which method suits your questions

Oscillations alpha (3 – 18Hz): awake, closed eyes Technology | Signal | Inferences | Design | Limitations | Combined Measures Oscillations alpha (3 – 18Hz): awake, closed eyes beta (18 – 30Hz): awake, alert; REM sleep gamma (> 30Hz): memory (?) delta (0.5 – 4 Hz): deep sleep theta (4 – 8Hz): infants, sleeping adults

EP vs. ERP / ERF evoked potential event related potential / field Technology | Signal | Inferences | Design | Limitations | Combined Measures EP vs. ERP / ERF evoked potential short latencies (< 100ms) small amplitudes (< 1μV) sensory processes event related potential / field longer latencies (100 – 600ms), higher amplitudes (10 – 100μV) higher cognitive processes ERP = change in electrical activity due to some internal or external event

average potential / field at the scalp relative to some specific event Technology | Signal | Inferences | Design | Limitations | Combined Measures Okay, But What Is It? Definition: the average (across trials/ subjects) potential/field at the scalp relative to some specific event in time Stimulus/Event Onset average potential / field at the scalp relative to some specific event

non-time locked activity (noise) lost via averaging Technology | Signal | Inferences | Design | Limitations | Combined Measures Okay, But What Is It? Definition: the average (across trials/ subjects) potential/field at the scalp relative to some specific event in time Averaging non-time locked activity (noise) lost via averaging

Technology | Signal | Inferences | Design | Limitations | Combined Measures Evoked vs. Induced assumption: response locked to stimulus presentation  signal averages in problem, e.g. in self-paced task: jitter  signal averages out! (Hermann et al. 2004)

long time windows, not phase-locked Technology | Signal | Inferences | Design | Limitations | Combined Measures ERS & ERD event related synchronization oscillatory power increase associated with activity decrease? event related desynchronization associated with activity increase? long time windows, not phase-locked

Inferences Not Based On Prior Knowledge Technology | Signal | Inferences | Design | Limitations | Combined Measures Inferences Not Based On Prior Knowledge observe: time course … amplitude … distribution across scalp … differences in ERP infer: timing … degree of engagement … functional equivalence … of underlying cognitive process (1) assume: specific cognitive processes manifest themselves in specific, invariant patterns of neural activity  same ERP pattern implies same cognitive process (2) different signal across conditions in same electrode after, say, 200ms  cognitive process differentiating the two began 200ms after stimulus onset (3) different scalp distributions of ERPs (across conditions, times, or both)  different patterns of neural activity  distinct functional processes (4) different amplitude  quantitative difference in cognitive process

Inferences Based On Prior Knowledge Technology | Signal | Inferences | Design | Limitations | Combined Measures Inferences Based On Prior Knowledge An “ERP component is scalp-recorded elec-trical activity that is generated in a given neuroanatomical module when a specific computational operation is performed.” (Luck 2004, p. 22)

Observed vs. Latent Components Technology | Signal | Inferences | Design | Limitations | Combined Measures Observed vs. Latent Components Latent Components Observed Waveform OR any given electrode / sensor records a series of temporally overlapping latent components a given waveform could have arisen from many combinations of latent components OR many others…

Design Strategies focus on specific, large, easily isolable component Technology | Signal | Inferences | Design | Limitations | Combined Measures Design Strategies focus on specific, large, easily isolable component use well-studied experimental manipulations exclude secondary effects avoid stimulus confounds (conduct control study) vary conditions within rather than between trials avoid behavioral confounds

Sources of Noise in EEG EEG activity not elicited by stimuli Technology | Signal | Inferences | Design | Limitations | Combined Measures Sources of Noise in EEG EEG activity not elicited by stimuli e.g. alpha waves trial-by-trial variations articfactual bioelectric activity eye blinks, eye movement, muscle activity, skin potentials environmental electrical activity e.g. from monitors

Signal-to-Noise noise said to average out number of trials: Technology | Signal | Inferences | Design | Limitations | Combined Measures Signal-to-Noise noise said to average out 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

Technology | Signal | Inferences | Design | Limitations | Combined Measures 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: application restrictions patients with implants poor localization (cf. “inverse problem”) MEG: reduced sensitivity to radial sources (head as spherical conductor) EEG: inverse solution need to model conductivity profile of head, MEG doesn’t as secondary currents tend to cancel each other out in spherical conductor

The Best of All – Combining Techniques? Technology | Signal | Inferences | Design | Limitations | Combined Measures The Best of All – Combining Techniques? MEG & EEG simultaneous application complementary information about current sources joint approach to approximate inverse solution … and how about fMRI?

The Best of All – Combining Techniques? Technology | Signal | Inferences | Design | Limitations | Combined Measures The Best of All – Combining Techniques? EEG & fMRI simultaneous application e.g. spontaneous EEG-fMRI, evoked potential-fMRI problem: scanner artifacts

The Best of All – Combining Techniques? Technology | Signal | Inferences | Design | Limitations | Combined Measures The Best of All – Combining Techniques? MEG & fMRI no simultaneous application co registration (scalp-surface matching) use structural scan: infer grey matter position to constrain inverse solution run same experiment twice: use BOLD activation map to bias inverse solution

Summary – General Design Considerations Technology | Signal | Inferences | Design | Limitations | Combined Measures Summary – General Design Considerations large trial numbers, few conditions avoid confounds focus on specific effect, use established paradigm take care when averaging combined measures?

Summary – Specific EEG Considerations Technology | Signal | Inferences | Design | Limitations | Combined Measures Summary – Specific EEG Considerations amplifier and filter settings sampling frequency number, type, location of electrodes reference electrodes additional physiological measures?

Summary – Specific MEG Considerations Technology | Signal | Inferences | Design | Limitations | Combined Measures Summary – Specific MEG Considerations amplifier and filter settings sampling frequency equipment and participant compatible with MEG? need to digitize 3D head or recording position?

Outline Experimental Design Technology Signal Inferences Design Limitations Combined Measures Preprocessing in SPM8 Data Conversion Downsampling Montage Mapping Epoching Filtering Artefact Removal Referencing

Raw data to averaged ERP (EEG) or ERF (MEG) using SPM 8 PREPROCESSING Raw data to averaged ERP (EEG) or ERF (MEG) using SPM 8

Conversion of data Convert data from its native machine-dependent format to MATLABbased SPM format *.mat (data) ‘Just read’: without questions-spm converts whole dataset preserving as much data as possible ‘yes’: controlling features of conversion Is machine-dependent data already divided into trials/conditions? Refining number and type of channels needed for further processing *.bdf *.bin *.eeg ‘just read’ – quick and easy define settings: read data as ‘continuous’ or as ‘trials’ select channels define file name *.dat (other info)

Downsampling Sampling frequency: number of samples per second taken from a continuous signal Data are usually acquired with a very high sampling rate (e.g. 2048 Hz) Downsampling reduces the file size and speeds up the subsequent processing steps (e.g. 200 Hz) SF should be greater than twice the maximum frequency of the signal being sampled Useful if data acquired at higher sampling rate than one needs for making inferences about low-frequency components, for example, resampling from 1000Hz to 200 Hz = reduction of 20% Sampling at high frequencies necessary to get good quality digital conversions of analogue signals Nyquist frequency: minimum sampling frequency needs to be greater than twice the maximum frequency of any analogue signal likely to be present in the EEG. New sampling rate must be smaller than original value! Graph right bottom: example for good sampling frequency, each dot is recording of value of the wave (at different time points)

Montage and referencing 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 average reference: Output of all amplifiers are summed and averaged and the averaged signal is used as a common reference for each channel Vertical and horizontal electrooculogram average reference: “virtual electrode”; less susceptible to bias; used for source analysis and DCM Single electrode reference: e.g. behind the ear Graph right bottom: review channel mapping

Epoching Cut out chunks of continuous data (= single trials) Specify time window associated with triggers [prestimulus time, poststimulus time] Baseline-correction: automatic; the mean of the prestimulus time is subtracted from the whole trial Segment length: at least 100 ms for baseline-correction; the longer the more artefacts Padding: adds time points before and after each trial to avoid ‘edge effects’ when filtering Epoching splits the data into single trials, each referenced to stimulus presentation For each stimulus onset, the epoched trial starts at some user-specified pre-stimulus time and ends at some post-stimulus time, e.g. from 100 ms before to 600ms after stimulus presentation. The longer interval, the greater chance to include artefacts! Padding: will add time points before and after each trial to allow the user to later cut out this padding again For multisubject/batch epoching in future

Epoching

Filtering EEG data consist of signal and noise Some noise is sufficiently different in frequency content from the signal. It can be suppressed by attenuating different frequencies. Non-neural physiological activity (skin/sweat potentials); noise from electrical outlets SPM8: Butterworth filter High-, low-, stop-, bandpass filter Any filter distorts at least some part of the signal Gamma band activity occupies higher fequencies compared to standard ERPs Choose between low-(attenuating high frequencies), high- (low frequencies), band- (attenuate both) or stop- (takes everything except data within a specified range) filter

Reassignment of trial labels

Adding electrode locations Not essential because SPM recognizes most common settings automatically (extended 10/20 system) However, these are default locations based on electrode labels Actual location might deviate from defaults Individually measured electrode locations can be imported and used as templates Change/review 2D display of electrode locations 1. Load file 2. Change/review channel assignments 3. Set sensor positions Assign defaults From .mat file From user-written locations file

Artefact Removal Eye movements Eye blinks Head movements Muscle activity Skin potentials ‘boredom’ (alpha waves) Eye movements/eye blinks: Moving the eye itself actually changes the electrical gradients observable at the scalp, making them more positive in the direction the eye has moved towards. Also moves stimulus across retina, this generates unwanted visual ERPs. Less important over areas further away from the eye. If auditory task, justified to ignore eye artefacts Muscle activity is characterised by bursts of high frequency activity in the EEG (eg swelling) EKG reflects activity of the heart. This can intermittently appear in your data Skin potentials are only really a problem for EEG. They reflect changes in skin impedence, this could happen if the subject starts to sweat more as the experiment progresses. They look like slow drifts.. Sometimes if they drift far enough, they cause saturation of the amplifier - a flat ‘blocking’ line. Alpha waves are actually generated by the brain. They’re slow repetitive waves of about 10 hz which are unlikely to be of any interest to you if you’re looking at cognitive processes.

Artefact Removal It’s best to avoid artefacts in the first place Blinking: avoid contact lenses; have short blocks and blink breaks EMG: make subjects relax, shift position, open mouth slightly Alpha waves: more runs, shorter length; variable ISI; talk to subjects Removal Hand-picked Automatic SPM functions: Thresholding (e.g. 200 μV): 1st – bad channels, 2nd – bad trials No change to data, just tagged Robust averaging: estimates weights (0-1) indicating how artefactual a trial is The function only indicates which trials are artefactual of clean and subsequent processing steps (e.g. averaging) will take this information into account, no data is actually removed from the file Robust averaging: approach that estimates weights between 0 and 1 that indicate how artefactual a particular sample in a trial is. Later on, when averaging to produce evoked responses, each sample is weighted by this number e.g. if sample weight close to 0, it doesn’t have much influence in the average and is effectively treated like an artefact.

Excursus: Concurrent EEG/fMRI MR gradient artefact: Very consistent because it’s caused by the scanner Averaged artefact waveform template is created and substracted from EEG data Ballistocardiogram (BCG) artefacts: Caused by small movements of the leads and electrodes following cardiac pulsation Much less consistent Subtracting basic function from data SPM8 extension: FAST; http://www.montefiore.ulg.ac.be/~phillips/FAST.html FAST: EEG toolbox to clean EEG signal from artefacts created by simultaneous fMRI scanning BCG: due to pulsative changes in the blood flow leading to movement of EEG electrodes

Signal averaging S/N ratio increases as a function of the square root of the number of trials It’s better to decrease sources of noise than to increase number of trials Averaging: calculating mean value for each time point across all epochs Theoretically we would need a huge number of trials to get a good/strong signal BUT try to decrease noise!

Visualization, stats, reconstruction, … 2nd graph: signal changes over time 3rd graph: application of EEG data on structural MRI scan

References Ashburner, J. et al. (2010). SPM8 Manual. http://www.fil.ion.ucl.ac.uk/spm/ Hermann, C. et al. (2004). Cognitive functions of gammaband activity: memory match and utilization. Trends in Cognitive Science, 8(8), 347-355. Luck, R. L. (2005). Ten simple rules for designing ERP experiments. In T. C. Handy (Ed.), Event-related potentials: a methods handbook. Cambridge, MA: MIT Press. 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. Rippon, G. (2006). Electroencephalography. In C. Senior, T. Russell, & M. S. Gazzaniga (Eds.), Methods in Mind. Rugg, M.D. & Curran, T. (2007). Event-related potentials and recognition memory. Trends in Cognitive Science, 11(6), 251-257. Singh, K. D. (2006). Magnetoencephalography. In C. Senior, T. Russell, & M. S. Gazzaniga (Eds.), Methods in Mind. MfD slides from previous years (with special thanks to Matthias Gruber and Nick Abreu for their EEG signal illustrations)

… and next week: contrasts, inference and source localization Thank You! … and next week: contrasts, inference and source localization