Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009.

Slides:



Advertisements
Similar presentations
Dynamic Causal Modelling (DCM) for fMRI
Advertisements

J. Daunizeau Institute of Empirical Research in Economics, Zurich, Switzerland Brain and Spine Institute, Paris, France Bayesian inference.
Bayesian inference Lee Harrison York Neuroimaging Centre 01 / 05 / 2009.
Bayesian inference Jean Daunizeau Wellcome Trust Centre for Neuroimaging 16 / 05 / 2008.
Bayesian Inference Lee Harrison York Neuroimaging Centre 14 / 05 / 2010.
SPM – introduction & orientation introduction to the SPM software and resources introduction to the SPM software and resources.
Hierarchical Models and
Overview of SPM p <0.05 Statistical parametric map (SPM)
Bayesian models for fMRI data
MEG/EEG Inverse problem and solutions In a Bayesian Framework EEG/MEG SPM course, Bruxelles, 2011 Jérémie Mattout Lyon Neuroscience Research Centre ? ?
Bayesian models for fMRI data
Bayesian models for fMRI data Methods & models for fMRI data analysis 06 May 2009 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
J. Daunizeau Wellcome Trust Centre for Neuroimaging, London, UK Institute of Empirical Research in Economics, Zurich, Switzerland Bayesian inference.
Group analyses of fMRI data Methods & models for fMRI data analysis 26 November 2008 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
Dynamic Causal Modelling (DCM) for fMRI
Dynamic Causal Modelling (DCM): Theory Demis Hassabis & Hanneke den Ouden Thanks to Klaas Enno Stephan Functional Imaging Lab Wellcome Dept. of Imaging.
Dynamic Causal Modelling (DCM) for fMRI
Corinne Introduction/Overview & Examples (behavioral) Giorgia functional Brain Imaging Examples, Fixed Effects Analysis vs. Random Effects Analysis Models.
Bayesian Inference and Posterior Probability Maps Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course,
J. Daunizeau ICM, Paris, France ETH, Zurich, Switzerland Dynamic Causal Modelling of fMRI timeseries.
Dynamic Causal Modelling for EEG and MEG
Bayesian models for fMRI data Methods & models for fMRI data analysis November 2011 With many thanks for slides & images to: FIL Methods group, particularly.
EEG/MEG source reconstruction
Ch. 5 Bayesian Treatment of Neuroimaging Data Will Penny and Karl Friston Ch. 5 Bayesian Treatment of Neuroimaging Data Will Penny and Karl Friston 18.
Bayesian Model Comparison Will Penny London-Marseille Joint Meeting, Institut de Neurosciences Cognitive de la Mediterranee, Marseille, September 28-29,
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,
Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12.
DCM: Advanced issues Klaas Enno Stephan Centre for the Study of Social & Neural Systems Institute for Empirical Research in Economics University of Zurich.
Mixture Models with Adaptive Spatial Priors Will Penny Karl Friston Acknowledgments: Stefan Kiebel and John Ashburner The Wellcome Department of Imaging.
Bayesian Inference in fMRI Will Penny Bayesian Approaches in Neuroscience Karolinska Institutet, Stockholm February 2016.
Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Zurich, February 2008 Bayesian Inference.
Bayesian Inference in SPM2 Will Penny K. Friston, J. Ashburner, J.-B. Poline, R. Henson, S. Kiebel, D. Glaser Wellcome Department of Imaging Neuroscience,
Dynamic Causal Models Will Penny Olivier David, Karl Friston, Lee Harrison, Stefan Kiebel, Andrea Mechelli, Klaas Stephan MultiModal Brain Imaging, Copenhagen,
The General Linear Model Christophe Phillips SPM Short Course London, May 2013.
Bayesian Model Selection and Averaging SPM for MEG/EEG course Peter Zeidman 17 th May 2016, 16:15-17:00.
J. Daunizeau ICM, Paris, France TNU, Zurich, Switzerland
Group Analyses Guillaume Flandin SPM Course London, October 2016
Probability Theory and Parameter Estimation I
Dynamic Causal Modeling of Endogenous Fluctuations
Variational Bayesian Inference for fMRI time series
The general linear model and Statistical Parametric Mapping
The General Linear Model
Bayesian Inference Will Penny
Effective Connectivity
Special Topics In Scientific Computing
Dynamic Causal Modelling (DCM): Theory
Neuroscience Research Institute University of Manchester
The General Linear Model (GLM)
Dynamic Causal Model for evoked responses in M/EEG Rosalyn Moran.
Linear Hierarchical Modelling
Statistical Parametric Mapping
The general linear model and Statistical Parametric Mapping
SPM2: Modelling and Inference
Dynamic Causal Modelling for M/EEG
Dynamic Causal Modelling
Bayesian Methods in Brain Imaging
Hierarchical Models and
The General Linear Model (GLM)
Effective Connectivity
Bayesian inference J. Daunizeau
M/EEG Statistical Analysis & Source Localization
Wellcome Centre for Neuroimaging at UCL
Bayesian Inference in SPM2
Wellcome Centre for Neuroimaging, UCL, UK.
Mixture Models with Adaptive Spatial Priors
The General Linear Model
Will Penny Wellcome Trust Centre for Neuroimaging,
Bayesian Model Selection and Averaging
Presentation transcript:

Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009

realignmentsmoothing normalisation general linear model template Gaussian field theory p <0.05 statisticalinference Bayesian segmentation and normalisation Bayesian segmentation and normalisation Spatial priors on activation extent Spatial priors on activation extent Dynamic Causal Modelling Dynamic Causal Modelling Posterior probability maps (PPMs) Posterior probability maps (PPMs)

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

Generation Recognition Introduction 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 DataOrdinary least squares

Bases (explanatory variables)Sum of squared errors Data and model fit Bases (explanatory variables)Sum of squared errors Ordinary least squares

Data and model fit Bases (explanatory variables)Sum of squared errors Ordinary least squares

Data and model fit Bases (explanatory variables)Sum of squared errors Ordinary least squares

Data and model fit Bases (explanatory variables)Sum of squared errors Over-fitting: model fits noise Inadequate cost function: blind to overly complex models Solution: include uncertainty in model parameters Ordinary least squares

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:

Bayesian approach: priors and likelihood Model: Prior:

Sample curves from prior (before observing any data) Mean curve Bayesian approach: priors and likelihood Model: Prior:

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 Cost function Bayes Rule: normalizing constant Model evidence:

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

Hierarchical models recognition time space generation space

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

Variational methods: approximate inference True posterior Log-model evidence ‘distance’ btw approx. and true posterior cannot compute as do not know Approximate posterior iteratively improve mean-field approximation can compute Maximize  minimize KL free energy L F KL

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

AR coeff (correlated noise) prior precision of AR coeff VB estimate of W ML estimate of W aMRI Smooth Y (RFT) fMRI time series analysis with spatial priors observations GLM coeff prior precision of GLM coeff prior precision of data noise Penny et al 2005 degree of smoothnessSpatial precision matrix

Mean (Cbeta_*.img) Std dev (SDbeta_*.img) PPM (spmP_*.img) activation threshold Posterior density q(w n ) Probability mass p n fMRI time series analysis with spatial priors: posterior probability maps probability of getting an effect, given the data mean: size of effect covariance: uncertainty Display only voxels that exceed e.g. 95%

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

fMRI time series analysis with spatial priors: group data – Bayesian model selection Compute log-evidence for each model/subject model 1 model K subject 1 subject N Log-evidence maps

fMRI time series analysis with spatial priors: group data – Bayesian model selection BMS maps PPM EPM model k Joao et al, 2009 Compute log-evidence for each model/subject model 1 model K subject 1 subject N Log-evidence maps Probability that model k generated data

(very simple) Computational model of sequence learning

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 Single subject design matrices

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 Group analysis - Bayesian Model Selection maps

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

Distributed Source model MEG/EEG Source Reconstruction Forward model (generation) Inversion (recognition) - under-determined system - priors required Mattout et al, 2006 [n x t][n x p] [n x t] [p x t] n : number of sensors p : number of dipoles t : number of time samples

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

Neural state equation: Electric/magnetic forward model: neural activity  EEG MEG LFP 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 fMRIERPs inputs Hemodynamic forward model: neural activity  BOLD Dynamic Causal Modelling: generative model for fMRI and ERPs

m2m2 m1m1 m3m3 m4m4 V1 V5 stim PPC attention V1 V5 stim PPC attention V1 V5 stim PPC attention V1 V5 stim PPC attention [Stephan et al., Neuroimage, 2008] m1m1 m2m2 m3m3 m4m V1 V5 stim PPC attention estimated effective synaptic strengths for best model (m 4 ) models marginal likelihood Bayesian Model Selection for fMRI

Thank-you

Design matrix of GLM Harrison et al 2006 Neural Networks fMRI study – sequence learning paradigm