Presentation is loading. Please wait.

Presentation is loading. Please wait.

Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12.

Similar presentations


Presentation on theme: "Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12."— Presentation transcript:

1 Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12 th 2006

2 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

3 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

4 Bayes rule  YY Given p(Y), p(  ) and p(Y,  ) Conditional densities are given by Eliminating p(Y,  ) gives Bayes rule Likelihood Prior Evidence Posterior

5 Gaussian Likelihood and Prior Posterior Relative Precision Weighting Prior Likelihood Posterior

6 Bivariate Gaussian

7 Model Comparison Select the model m with the highest probability given the data: Model comparison and Bayes factor: Model evidence (marginal likelihood): Accuracy Complexity B 12 p(m 1 |Y)Evidence 1 to 350-75Weak 3 to 2075-95Positive 20 to 15095-99Strong  150  99 Very strong

8 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

9 ANOVA Four conditions Model 0 (dotted lines) – no effect Model 1 (solid lines) – an effect

10 Bayesian Classical p=0.05 BF=3 Compare inferences on 100 data sets

11 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

12 Spatial Normalisation Deformation parameters Mean square difference between template and source image (Likelihood) Mean square difference between template and source image (Likelihood) Squared distance between parameters and their expected values (Prior) Squared distance between parameters and their expected values (Prior) Template Max Posterior Max Likelihood Posterior

13 Segmentation Intensities are modelled by a mixture of K Gaussian distributions. Overlay prior belonging probability maps to assist the segmentation:  Prior probability of each voxel being of a particular type is derived from segmented images of 151 subjects. Intensities are modelled by a mixture of K Gaussian distributions. Overlay prior belonging probability maps to assist the segmentation:  Prior probability of each voxel being of a particular type is derived from segmented images of 151 subjects.

14 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

15 fMRI stats Even without applied spatial smoothing, activation maps (and maps of eg. AR coefficients) have spatial structure. AR(1)Contrast  Definition of a spatial prior via Gaussian Markov Random Field  Automatic spatial regularisation of Regression coefficients and AR coefficients

16 Generative Model  A   Y Y=X β +E where E is an AR(p) General Linear Model with Auto-Regressive error terms (GLM-AR):

17 Spatial prior Over the regression coefficients: Shrinkage prior Same prior on the AR coefficients. Spatial kernel matrix Spatial precison: determines the amount of smoothness Gaussian Markov Random Field priors 1 on diagonal elements d ii d ij > 0 if voxels i and j are neighbors. 0 elsewhere

18 Convergence & Sensitivity o Global o Spatial o Smoothing Sensitivity Iteration Number F 1-Specificity ROC curve Convergence

19 Event related fMRI: familiar versus unfamiliar faces Global prior Spatial Prior Smoothing

20 Posterior Probability Maps Posterior distribution: probability of getting an effect, given the data Posterior probability map: images of the probability or confidence that an activation exceeds some specified threshold, given the data Two thresholds: activation threshold  : percentage of whole brain mean signal (physiologically relevant size of effect) probability  that voxels must exceed to be displayed (e.g. 95%) Two thresholds: activation threshold  : percentage of whole brain mean signal (physiologically relevant size of effect) probability  that voxels must exceed to be displayed (e.g. 95%) mean: size of effect precision: variability

21 Posterior Probability Maps Mean (Cbeta_*.img) Std dev (SDbeta_*.img) PPM (spmP_*.img) Activation threshold  Probability  Posterior probability distribution p(  |Y )

22 SPM5 Interface

23 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

24 Hemodynamic basis sets Informed Fourier Gamma

25 FIR models Time after event Size of signal 5s

26 Inf2: Canonical + temporal deriv

27

28 SPM5: from spm_vb_roi_basis.m

29

30

31 Overview Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)

32 Dynamic Causal Models V1 V5 SPC Motion Photic Attention 0.85 0.57 -0.02 0.84 0.58 V1 V5 SPC Motion Photic Attention 0.85 0.57 -0.02 1.36 0.70 0.85 0.23 V1V5SPC Motion Photic Attention 0.86 0.56 -0.02 1.42 0.55 0.75 0.89 Bayesian Evidence: Bayes factors: m=1 m=3 m=2 0.70 Attention 0.03

33 Summary Bayes rule and model comparison ANOVAs Normalisation Segmentation fMRI stats Hemodynamic models Connectivity models (DCM)


Download ppt "Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12."

Similar presentations


Ads by Google