Dynamic Causal Modelling Advanced Topics SPM Course (fMRI), May 2015 Peter Zeidman Wellcome Trust Centre for Neuroimaging University College London.

Slides:



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

Bayesian inference Lee Harrison York Neuroimaging Centre 01 / 05 / 2009.
Dynamic causal Modelling for evoked responses Stefan Kiebel Wellcome Trust Centre for Neuroimaging UCL.
Hierarchical Models and
Bayesian models for fMRI data
Group analyses of fMRI data Methods & models for fMRI data analysis in neuroeconomics November 2010 Klaas Enno Stephan Laboratory for Social and Neural.
Models of Effective Connectivity & Dynamic Causal Modelling
Group analyses Wellcome Dept. of Imaging Neuroscience University College London Will Penny.
Hanneke den Ouden Wellcome Trust Centre for Neuroimaging, University College London, UK Donders Institute for Brain, Cognition and Behaviour, Nijmegen,
DCM for fMRI: Theory & Practice
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 28 April 2009 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
Group analyses of fMRI data Methods & models for fMRI data analysis 26 November 2008 Klaas Enno Stephan Laboratory for Social and Neural Systems Research.
DCM: Dynamic Causal Modelling for fMRI
Rosalyn Moran Wellcome Trust Centre for Neuroimaging Institute of Neurology University College London With thanks to the FIL Methods Group for slides and.
GUIDE to The… D U M M I E S’ DCM Velia Cardin. Functional Specialization is a question of Where? Where in the brain is a certain cognitive/perceptual.
Dynamic Causal Modelling THEORY SPM Course FIL, London October 2009 Hanneke den Ouden Donders Centre for Cognitive Neuroimaging Radboud University.
Dynamic Causal Modelling
DCM Advanced, Part II Will Penny (Klaas Stephan) Wellcome Trust Centre for Neuroimaging Institute of Neurology University College London SPM Course 2014.
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
SPM Course Zurich, February 2015 Group Analyses Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London With many thanks to.
18 th February 2009 Stephanie Burnett Christian Lambert Methods for Dummies 2009 Dynamic Causal Modelling Part I: Theory.
Dynamic Causal Modelling for fMRI Friday 22 nd Oct SPM fMRI course Wellcome Trust Centre for Neuroimaging London André Marreiros.
Bayesian Inference and Posterior Probability Maps Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course,
Dynamic Causal Modelling Will Penny Wellcome Department of Imaging Neuroscience, University College London, UK FMRIB, Oxford, May
J. Daunizeau ICM, Paris, France ETH, Zurich, Switzerland Dynamic Causal Modelling of fMRI timeseries.
SPM short course Functional integration and connectivity Christian Büchel Karl Friston The Wellcome Department of Cognitive Neurology, UCL London UK http//:
Dynamic Causal Modelling (DCM) Marta I. Garrido Thanks to: Karl J. Friston, Klaas E. Stephan, Andre C. Marreiros, Stefan J. Kiebel,
Dynamic Causal Modelling Introduction SPM Course (fMRI), October 2015 Peter Zeidman Wellcome Trust Centre for Neuroimaging University College London.
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.
Dynamic Causal Model for evoked responses in MEG/EEG Rosalyn Moran.
Bayesian Methods Will Penny and Guillaume Flandin Wellcome Department of Imaging Neuroscience, University College London, UK SPM Course, London, May 12.
Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009.
Dynamic Causal Models Will Penny Olivier David, Karl Friston, Lee Harrison, Andrea Mechelli, Klaas Stephan Mathematics in Brain Imaging, IPAM, UCLA, USA,
Bayesian Inference in SPM2 Will Penny K. Friston, J. Ashburner, J.-B. Poline, R. Henson, S. Kiebel, D. Glaser Wellcome Department of Imaging Neuroscience,
Bayesian selection of dynamic causal models for fMRI Will Penny Olivier David, Karl Friston, Lee Harrison, Andrea Mechelli, Klaas Stephan The brain as.
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 Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, October 2012.
Bayesian Model Comparison Will Penny Wellcome Department of Imaging Neuroscience, University College London, UK UCL, June 7, 2003 Large-Scale Neural Network.
Bayesian Model Selection and Averaging SPM for MEG/EEG course Peter Zeidman 17 th May 2016, 16:15-17:00.
Group Analyses Guillaume Flandin SPM Course London, October 2016
5th March 2008 Andreina Mendez Stephanie Burnett
Dynamic Causal Modeling of Endogenous Fluctuations
Variational filtering in generated coordinates of motion
Bayesian Inference Will Penny
Effective Connectivity
Dynamic Causal Modelling (DCM): Theory
Group analyses Thanks to Will Penny for slides and content
Dynamic Causal Model for evoked responses in M/EEG Rosalyn Moran.
Wellcome Dept. of Imaging Neuroscience University College London
The General Linear Model
Dynamic Causal Modelling
Group analyses Thanks to Will Penny for slides and content
SPM2: Modelling and Inference
Dynamic Causal Modelling for M/EEG
Dynamic Causal Modelling
Bayesian Methods in Brain Imaging
CRIS Workshop: Computational Neuroscience and Bayesian Modelling
Hierarchical Models and
Wellcome Dept. of Imaging Neuroscience University College London
Effective Connectivity
Bayesian Inference in SPM2
Wellcome Centre for Neuroimaging, UCL, UK.
The General Linear Model
Will Penny Wellcome Trust Centre for Neuroimaging,
Bayesian Model Selection and Averaging
Group DCM analysis for cognitive & clinical studies
Presentation transcript:

Dynamic Causal Modelling Advanced Topics SPM Course (fMRI), May 2015 Peter Zeidman Wellcome Trust Centre for Neuroimaging University College London

The system of interest Stimulus from Buchel and Friston, 1997 Brain by Dierk Schaefer, Flickr, CC 2.0CC 2.0 Experimental Stimulus(Hidden) Neural ActivityObservations (BOLD) time Vector y BOLD ? off on time Vector u

DCM Framework Stimulus from Buchel and Friston, 1997 Figure 3 from Friston et al., Neuroimage, 2003 Brain by Dierk Schaefer, Flickr, CC 2.0CC 2.0 Experimental Stimulus (u) Observations (y) z = f(z,u,θ n ). How brain activity z changes over time y = g(z, θ h ) What we would see in the scanner, y, given the neural model? Neural Model Observation Model

DCM Framework Experimental Stimulus (u) Observations (y) Neural Model Observation Model

Contents Creating models –Preparing data for DCM Inference over models –Fixed Effects –Random Effects Inference over parameters –Bayesian Model Averaging Example DCM Extensions

PREPARING DATA

Choosing Regions of Interest We generally start with SPM results

Main effects → driving inputs Interactions → modulatory inputs FFAAmy Face Valence From a factorial design: A factorial design translates easily to DCM A (fictitious!) example of a 2x2 design: Factor 1: Stimulus (face or inverted face) Factor 2: Valence (neutral or angry) Main effect of face: FFA Interaction of Stimulus x Valence: Amygdala

+ ROI Options 1. A sphere with given radius Positioned at the group peak Allowed to vary for each subject, within a radius of the group peak or 2. An anatomical mask

Pre-processing 1.Regress out nuisance effects (anything not specified in the ‘effects of interest f-contrast’) 2.Remove confounds such as low frequency drift 3.Summarise the ROI by performing PCA and retaining the first component st eigenvariate: test time \{seconds\} 230 voxels in VOI from mask VOI_test_mask.nii Variance: 81.66% New in SPM12: VOI_xx_eigen.nii (When using the batch only)

Interim Summary: Preparing Data DCM helps us to explain the coupling between regions showing an experimental effect We can choose our Regions of Interest (ROIs) from any series of contrasts in our GLM We use Principle Components Analysis (PCA) to summarise the voxels in each ROI as a single timeseries

Contents Creating models –Preparing data for DCM Inference over models –Fixed Effects –Random Effects Inference over parameters –Bayesian Model Averaging Example DCM Extensions

INFERENCE OVER MODELS

Experimental Stimulus (u) Observations (y) Neural Model Observation Model Experimental Stimulus (u) Observations (y) Neural Model Observation Model Model 1: Model 2: Model comparison: Which model best explains my observed data?

Bayes Factor In practice we subtract the log model evidence: At the group level, over K subjects:

Bayes Factor - Interpretation Kass and Raftery, JASA, We can convert the Bayes Factor to a posterior probability using a sigmoid function BF of 3 = 95% probability Will Penny

Fixed Effects Bayesian Model Selection (BMS) Assumption: Subjects’ data arose from the same underlying model

Random Effects Bayesian Model Selection (BMS) 11 out of 12 subjects favour model 2 But… GBF = 15 in favour of model 1 Stephan et al. 2009, NeuroImage

Random Effects Bayesian Model Selection (BMS) Stephan et al. 2009, NeuroImage SPM estimates a hierarchical model with variables: Expected probability of model 2 Outputs: Exceedance probability of model 2

Random Effects Bayesian Model Selection (BMS) Assumption: Subjects’ data arose from different models Stephan et al. 2009, NeuroImage

Random Effects Bayesian Model Selection (BMS) Protected Exceedance Probability Models Prob of Equal Model Frequencies (BOR) = 0.45 Rigoux et al. 2014, NeuroImage

Family Inference Rather than having one hypothesis per model, we can group models into families. E.g. we have 9 models which all have a bottom-up connection and 5 models which all have a top-down connection Model Expected Probability Models Bayesian Model Selection: RFX

Family Inference

Interim Summary: Inference over Models We embody each of our hypotheses as a model or as a family of models. We can compare models or families using a fixed effects analysis, only if we believe that all subjects have the same underlying model Otherwise we use a random effects analysis and report the protected exceedance probability and the Bayesian Omnibus Risk.

Contents Creating models –Preparing data for DCM Inference over models –Fixed Effects –Random Effects Inference over parameters –Bayesian Model Averaging Example DCM Extensions

INFERENCE OVER PARAMETERS

Parameter Estimates The estimated parameters for a single model can be found in each DCM.mat file Inspect via the GUI Inspect via Matlab Estimated parameter means: DCM.Ep Estimated parameter variance: DCM.Cp

Bayesian Model Averaging Bottom-upTop-down Family Exceedance Probability Families What are the posterior parameter estimates for the winning family? SPM calculates a weighted average of the parameters over models: To give a posterior distribution for each connection: Region 1 to 2

Contents Creating models –Preparing data for DCM Inference over models –Fixed Effects –Random Effects Inference over parameters –Bayesian Model Averaging Example DCM Extensions

EXAMPLE

Reading > fixation (29 controls) Lesion (Patient AH)

1. Extracted regions of interest. Spheres placed at the peak SPM coordinates from two contrasts: A. Reading in patient > controls B. Reading in controls 2. Asked which region should receive the driving input 3. Performed fixed effects BMS in the patient and random effects BMS in the controls, and applied Bayesian Model Averaging.

Seghier et al., Neuropsychologia, 2012 Key: Controls Patient Bayesian Model Averaging

Seghier et al., Neuropsychologia, 2012

Interim Summary: Example When we don’t know how to model something, we can ‘ask the data’ using a model comparison Bayesian Model Averaging (BMA) lets us compare connections across patients and controls Posterior parameter estimates can be used as summary statistics for further analyses

DCM EXTENSIONS

DCM Framework Stimulus from Buchel and Friston, 1997 Figure 3 from Friston et al., Neuroimage, 2003 Brain by Dierk Schaefer, Flickr, CC 2.0CC 2.0 Experimental Stimulus (u) Observations (y) z = f(z,u,θ n ). How brain activity z changes over time y = g(z, θ h ) What we would see in the scanner, y, given the neural model? Neural Model Observation Model

DCM Extensions Non-Linear DCMTwo-State DCM driving input modulation Stephan et al. 2008, NeuroImage Marreiros et al. 2008, NeuroImage

DCM Extensions Stochastic DCMDCM for CSD Li et al. 2011, NeuroImage Friston et al. 2014, NeuroImage

DCM Extensions Post-hoc DCM Friston and Penny 2011, NeuroImage

Further Reading The original DCM paperFriston et al. 2003, NeuroImage Descriptive / tutorial papers Role of General Systems TheoryStephan 2004, J Anatomy DCM: Ten simple rules for the clinicianKahan et al. 2013, NeuroImage Ten Simple Rules for DCMStephan et al. 2010, NeuroImage DCM Extensions Two-state DCMMarreiros et al. 2008, NeuroImage Non-linear DCMStephan et al. 2008, NeuroImage Stochastic DCMLi et al. 2011, NeuroImage Friston et al. 2011, NeuroImage Daunizeau et al. 2012, Front Comput Neurosci Post-hoc DCMFriston and Penny, 2011, NeuroImage Rosa and Friston, 2012, J Neuro Methods A DCM for Resting State fMRIFriston et al., 2014, NeuroImage

EXTRAS

Approximates:The log model evidence: Posterior over parameters: The log model evidence is decomposed: The difference between the true and approximate posterior Free energy (Laplace approximation) AccuracyComplexity - Variational Bayes

The Free Energy Accuracy Complexity - posterior-prior parameter means Prior precisions Occam’s factor Volume of posterior parameters Volume of prior parameters (Terms for hyperparameters not shown) Distance between prior and posterior means

DCM parameters = rate constants The coupling parameter a thus describes the speed of the exponential change in x(t) Integration of a first-order linear differential equation gives an exponential function: Coupling parameter a is inversely proportional to the half life  of z(t):

Practical Workshop

DCM – Attention to Motion Paradigm Parameters - blocks of 10 scans scans total - TR = 3.22 seconds Stimuli 250 radially moving dots at 4.7 degrees/s Pre-Scanning 5 x 30s trials with 5 speed changes (reducing to 1%) Task - detect change in radial velocity Scanning (no speed changes) F A F N F A F N S …. F - fixation S - observe static dots+ photic N - observe moving dots+ motion A - attend moving dots+ attention Attention to Motion in the visual system Slide by Hanneke den Ouden

Results Büchel & Friston 1997, Cereb. Cortex Büchel et al. 1998, Brain V5+ SPC V3A Attention – No attention - fixation only - observe static dots+ photic  V1 - observe moving dots+ motion  V5 - task on moving dots+ attention  V5 + parietal cortex Attention to Motion in the visual system Paradigm Slide by Hanneke den Ouden

V1 V5 SPC Motion Photic Attention V1 V5 SPC Motion Photic Attention Model 1 attentional modulation of V1→V5: forward Model 2 attentional modulation of SPC→V5: backward Bayesian model selection: Which model is optimal? DCM: comparison of 2 models Slide by Hanneke den Ouden

DCM – GUI basic steps 1 – Extract the time series (from all regions of interest) 2 – Specify the model 3 – Estimate the model 4 – Review the estimated model 5 – Repeat steps 2 and 3 for all models in model space 6 – Compare models Attention to Motion in the visual system Slide by Hanneke den Ouden