480 likes | 705 Views
Bayesian inference. Lee Harrison York Neuroimaging Centre 23 / 10 / 2009. Posterior probability maps (PPMs). Spatial priors on activation extent. Bayesian segmentation and normalisation. Dynamic Causal Modelling. realignment. smoothing. general linear model. Gaussian field theory.
E N D
Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009
Posterior probability maps (PPMs) Spatial priors on activation extent Bayesian segmentation and normalisation Dynamic Causal Modelling realignment smoothing general linear model Gaussian field theory statistical inference normalisation p <0.05 template
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
Recognition Introduction Generation time
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
Ordinary least squares Ordinary least squares Data
Ordinary least squares Bases (explanatory variables) Sum of squared errors Ordinary least squares Data and model fit Bases (explanatory variables) Sum of squared errors
Ordinary least squares Ordinary least squares Data and model fit Bases (explanatory variables) Sum of squared errors
Ordinary least squares Ordinary least squares Data and model fit Bases (explanatory variables) Sum of squared errors
Ordinary least squares Data and model fit Ordinary least squares Over-fitting: model fits noise Inadequate cost function: blind to overly complex models Solution: include uncertainty in model parameters Bases (explanatory variables) Sum of squared errors
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
Bayesian approach:priors and likelihood Model: Prior:
Bayesian approach:priors and likelihood Model: Prior: Sample curves from prior (before observing any data) Mean curve
Bayesian approach:priors and likelihood Model: Prior: Likelihood:
Bayesian approach:priors and likelihood Model: Prior: Likelihood:
Bayesian approach:priors and likelihood Model: Prior: Likelihood:
Bayesian approach:posterior Model: Prior: Likelihood: Bayes Rule:
Bayesian approach:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian approach:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian approach:posterior Model: Prior: Likelihood: Bayes Rule: Posterior:
Bayesian approach:model selection Bayes Rule: normalizing constant Model evidence: Cost function
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
recognition space space time Hierarchical models generation
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
True posterior mean-field approximation iteratively improve Approximate posterior Log-model evidence ‘distance’ btw approx. and true posterior cannot compute as do not know free energy L KL F can compute Maximize minimize KL Variational methods: approximate inference
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
degree of smoothness Spatial precision matrix Smooth Y(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
Single subject design matrices Onsets only Short-term memory model long-term memory model (IT indices are smoother) onsets Missed trials IT indices: H,h,I,i H=entropy; h=surprise; I=mutual information; i=mutual surprise
Group analysis - Bayesian Model Selection maps Onsets only Regions best explained by short-term memory model Regions best explained by long-term memory model Including primary visual cortex anterior cingulate parahippocampus
Overview • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
[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 • Modeling uncertainty • Introduction • Ordinary least squares • Bayesian approach • Hierarchical models • Variational methods • SPM applications • fMRI time series analysis with spatial priors • EEG source reconstruction • Dynamic causal modeling
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
attention estimated effective synaptic strengths for best model (m4) 15 0.10 PPC 0.39 0.26 10 1.25 0.26 stim V1 V5 0.13 5 models marginal likelihood 0.46 0 m1 m2 m3 m4 Bayesian Model Selection for fMRI m1 m2 m3 m4 attention attention attention attention PPC PPC PPC PPC stim V1 stim V1 stim V1 stim V1 V5 V5 V5 V5 [Stephan et al., Neuroimage, 2008]
fMRI study – sequence learning paradigm Design matrix of GLM Harrison et al 2006 Neural Networks