390 likes | 406 Views
Explore Bayesian paradigm, hierarchical models, variational methods in fMRI & EEG analysis for dynamic causal modeling.
E N D
Bayesian inference Lee Harrison York Neuroimaging Centre 01 / 05 / 2009
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
Recognition Introduction Generation time
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
Ordinary least squares Curve fitting without Bayes Data
Curve fitting without Bayes Data Ordinary least squares
Bases (explanatory variables) Sum of squared errors Curve fitting without Bayes Data and model fit Ordinary least squares Bases (explanatory variables) Sum of squared errors
Curve fitting without Bayes Data and model fit Ordinary least squares Bases (explanatory variables) Sum of squared errors
Curve fitting without Bayes Data and model fit Ordinary least squares Bases (explanatory variables) Sum of squared errors
Curve fitting without Bayes Data and model fit Ordinary least squares Over-fitting: model fits noise Inadequate cost function: blind to overly complex models Solution: incorporate uncertainty in model parameters Bases (explanatory variables) Sum of squared errors
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
Bayesian Paradigm:priors and likelihood Model: Prior:
Bayesian Paradigm:priors and likelihood Model: Prior: Sample curves from prior (before observing any data) Mean curve
Bayesian Paradigm:priors and likelihood Model: Prior: Likelihood:
Bayesian Paradigm:priors and likelihood Model: Prior: Likelihood:
Bayesian Paradigm:priors and likelihood Model: Prior: Likelihood:
Bayesian Paradigm:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian Paradigm:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian Paradigm:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian Paradigm:model selection Bayes Rule: normalizing constant Model evidence: Cost function
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
recognition space space time Hierarchical models generation
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
True posterior L KL F Difference btw approx. and true posterior But cannot compute as do not know fixed Can compute Maximize minimize KL Variational methods:approximate inference and iteratively improve to approximate true posterior Initial guess But how?
If you assume posterior factorises then F can be maximised by letting where Variational methods:approximate inference complexity accuracy
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
degree of smoothness Spatial precision matrix smoothed W (RFT) prior precision of GLM coeff prior precision of AR coeff aMRI prior precision of data noise GLM coeff AR coeff (correlated noise) ML estimate of W VB estimate of W observations Penny et al 2005 fMRI time series analysis with spatial priors
smoothed W (RFT) prior precision of GLM coeff prior precision of AR coeff aMRI prior precision of data noise GLM coeff AR coeff (correlated noise) ML estimate of W VB estimate of W observations Penny et al 2005 fMRI time series analysis with spatial priors
Display only voxels that exceed e.g. 95% activation threshold Probability mass pn PPM (spmP_*.img) Posterior density q(wn) probability of getting an effect, given the data mean: size of effectcovariance: uncertainty fMRI time series analysis with spatial priors:posterior probability maps Mean (Cbeta_*.img) Std dev (SDbeta_*.img)
8 250 200 6 150 4 100 2 50 0 0 fMRI time series analysis with spatial priors:single subject -auditory dataset Active != Rest Active > Rest Overlay of effect sizes at voxels where SPM is 99% sure that the effect size is greater than 2% of the global mean Overlay of 2 statistics: This shows voxels where the activation is different between active and rest conditions, whether positive or negative
Log-evidence maps subject 1 model 1 subject N model K Compute log-evidence for each model/subject fMRI time series analysis with spatial priors:group data – Bayesian model selection
Log-evidence maps BMS maps subject 1 model 1 subject N PPM model K EPM Probability that model k generated data model k Compute log-evidence for each model/subject fMRI time series analysis with spatial priors:group data – Bayesian model selection Joao et al, 2009 (submitted)
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
[nxt] [nxt] [nxp] [pxt] MEG/EEG Source Reconstruction Distributed Source model Inversion (recognition) Forward model (generation) • under-determined system • priors required n : number of sensors p : number of dipoles t : number of time samples Mattout et al, 2006
Overview • Probabilistic modeling and representation of uncertainty • Introduction • Curve fitting without Bayes • Bayesian paradigm • Hierarchical models • Variational methods (EM, VB) • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modelling
Dynamic Causal Modelling:generative model for fMRI and ERPs Hemodynamicforward model:neural activityBOLD Electric/magnetic forward model:neural activityEEGMEG LFP Neural state equation: fMRI ERPs Neural model: 1 state variable per region bilinear state equation no propagation delays Neural model: 8 state variables per region nonlinear state equation propagation delays inputs