Source localization for EEG and MEG Methods for Dummies 2006 FIL Bahador Bahrami.
-
Upload
nigel-mark-davis -
Category
Documents
-
view
225 -
download
0
Transcript of Source localization for EEG and MEG Methods for Dummies 2006 FIL Bahador Bahrami.
Source localization for EEG and MEG
Methods for Dummies 2006
FILBahador Bahrami
Before we start …
• SPM5 and source localization: • On-going work in progress
• MFD and source localization:• This is the first on this topic
• Main references for this talk: • Jeremie Mattout’s slides from SPM course • Slotnick S.D. chapter in Todd Handy’s ERP handbook • Rimona Weil’s wonderful help (thanks Rimona!)
Outline
• Theoretical• Source localization stated as a problem • Solution to the problem and their limitations
• Practical*• How to prepare data • Which buttons to press• What to avoid • What to expect
* Subject to change along with the development of SPM 5
Source localization as a problem
+
-
+ -
Any field potential vector could be consistent with an infinite number of possible dipoles
The possibilities only increase with tri-poles and quadra-poles
+-
+ -
ERP and MEG give us
And source localization aims to infer
+-
among
How do we know which one is correct?
+-
+ -
We can’t. There is no correct answer.
We can only see which one is better
Can we find the best answer?
Source localization is an ILL-DEFINED PROBLEM
Only among the alternatives that you have considered.
HUNTING for best possible solution
Step ONE: How does your data look like?
MEG sensor locationMEG sensor location
MEG dataMEG data
Source ReconstructionRegistration
HUNTING for best possible solution
If then
If then
If then
If then
And on and on and on and …
FORWARD MODEL
Step Two
HUNTING for best possible solution
Forward Model Experimental DATA
Which forward solutions fit the DATA better (less error)?
Inverse Solution
HUNTING for best possible solution
Forward
Inverse Solution
DATA
Iterative ProcessUntil solution stops getting better (error stabilises) iteration
erro
r
Components of the source reconstruction process
Source modelSource model
Forward modelForward model
Inverse methodInverse method
RegistrationRegistration
‘Imaging’‘Imaging’‘ECD’‘ECD’
DataData AnatomyAnatomy
Recipe for Source localization in SPM5
• Ingredients– MEG converter has given you
• .MAT data file (contains experimental data)
• sensloc file (sensors locations)
• sensorient (sensors orientations)
• fidloc (fiducial locations in MEG space)
– fidloc in MRI space (we will see shortly)
– Structural T1 MRI scan
All in the same folder
fidloc in MRI space
Nasion
Left Tragus
Right Tragus
X
X
X
Y
Y
Y
Z
Z
Z
Nasion Nasion
Left Tragus
Left Tragus
Right Tragus Right Tragus
Get these using SPM Display button
Save it as a MAT file in the same directory as the data
Components of the source reconstruction process
Source modelSource model Forward modelForward model Inverse solutionInverse solutionRegistrationRegistration
Source modelSource model
Source model
TemplatesTemplatesIndividual MRIIndividual MRI
Compute transformation TCompute transformation T
Apply inverse transformation T-1Apply inverse transformation T-1
Individual meshIndividual mesh
- Individual MRI- Template mesh
- spatial normalization into MNI template- inverted transformation applied to the template mesh
- individual mesh
functions output
Scalp Mesh
iskull mesh
Components of the source reconstruction process
RegistrationRegistration
Registration
Rigid transformation (R,t)Rigid transformation (R,t)
Individual MRI spaceIndividual MRI space
fiducials
Individual sensor spaceIndividual sensor space
fiducials
- sensor locations- fiducial locations(in both sensor & MRI space)- individual MRI
input
- registration of the EEG/MEG data into individual MRI space
- registrated data- rigid transformation
functions output
Forward modelForward model
Foward model
Compute foreach dipole
Compute foreach dipole
Individual MRI spaceIndividual MRI spaceModel of the
head tissue properties
Model of thehead tissue properties
+
Forward operatorForward operator
Kn
- sensor locations- individual mesh
input - single sphere- three spheres- overlapping spheres- realistic spheres
- forward operator K
functions
output
BrainStorm
Inverse solutionInverse solution
Inverse solution (1) - General principles
1 dipole sourceper location
Cortical meshCortical mesh
General Linear Model
Y = KJ+ E[nxt] [nxp] [nxt][pxt]
n : number of sensorsp : number of dipolest : number of time samplesUnder-determined GLMUnder-determined GLM
Regularized solutionRegularized solution J : min( ||Y – KJ||2 + λf(J) )J
data fit priors
^
Inverse solution (2) - Parametric empirical Bayes
2-level hierarchical model
E2 ~ N(0,Cp)
E1 ~ N(0,Ce)Y = KJ + E1
J = 0 + E2
Sensor levelSensor level
Source levelSource level
Gaussian variableswith unknown variance
Gaussian variableswith unknown variance
Linear parametrization of the variances
Linear parametrization of the variances
Gaussian variableswith unknown variance
Gaussian variableswith unknown variance
Ce = 1.Qe1 + … + q.Qe
q
Cp = λ1.Qp1 + … + λk.Qp
kQ: variance components(,λ): hyperparameters
Q: variance components(,λ): hyperparameters
Inverse solution (3) - Parametric empirical Bayes
Bayesian inference on model parameters
Inference on J and (,λ)Inference on J and (,λ)
Model MModel MQe
1 , … , Qeq
Qp1 , … , Qp
k+J K
+,λ
F = log( p(Y|M) ) = log( p(Y|J,M) ) + log( p(J|M) ) dJ
E-step: maximizing F wrt J J = CJKT[Ce + KCJ KT]-1Y^
M-step: maximizing of F wrt (,λ) Ce + KCJKT = E[YYT]
Maximizing the log-evidenceMaximizing the log-evidence
data fit priors
Expectation-Maximization (EM)Expectation-Maximization (EM)
MAP estimateMAP estimate
ReML estimateReML estimate
Inverse solution (4) - Parametric empirical Bayes
Bayesian model comparison
B12 =p(Y|M1)p(Y|M2)
Model evidenceModel evidence
• Relevance of model M is quantified by its evidence p(Y|M) maximized by the EM scheme
Model comparisonModel comparison
• Two models M1 and M2 can be compared by the ratio of their evidence
Bayes factorBayes factor
Model selection using a‘Leaving-one-prior-out-strategy‘
Model selection using a‘Leaving-one-prior-out-strategy‘
Inverse solution (5) - implementation
- preprocessed data- forward operator- individual mesh- priors
input
- compute the MAP estimate of J- compute the ReML estimate of (,λ)- interpolate into individual MRI voxel-space
- inverse estimate- model evidence
functions output
- iterative forward and inverse computation
ECD approach
HUNTING for best possible solution
Forward
Inverse Solution
DATA
Iterative ProcessUntil solution stops getting better (error stabilises) iteration
erro
r
Types of Analysis
• Evoked– The evoked response is a reproducible response which occurs after each
stimulation and is phase-locked with the stimulus onset.
• Induced– The induced response is usually characterized in the frequency domain and
contrary to the evoked response, is not phased-locked with the stimulus onset.
• The evoked response is obtained (on the scalp) as the stimulus or event-locked average over trials. This is then the input data for the 'evoked' case in source reconstruction.
• One can also reconstruct the evoked power in some frequency band (over the time window), this is what is obtained when choosing 'both' in source reconstruction.
Jeremie says:
Conclusion - Summary
Data spaceData space MRI spaceMRI space
RegistrationRegistration
Forward modelForward model
EEG/MEG preprocessed data
EEG/MEG preprocessed data
PEB inverse solution
PEB inverse solution
SPMSPM
Important!
Source model
Source model
Forward model
Forward model
Inverse solution
Inverse solution
Registration
Registration
The same for all conditions.
Therefore, only done ONCE for each subject
Repeated for each condition
Considerations
• Source localization project is still ongoing
• Unable to incorporate prior assumptions about source (e.g., from fMRI blobs)
• Source localization only for conditions
• Not for contrasts
• Source localization is a single subject analysis (no way to look at group effects)
Thank you Rimona!
Thank you MFD!