Bayesian Modelling of Functional Imaging Data Will Penny The Wellcome Department of Imaging Neuroscience, UCL http//:www.fil.ion.ucl.ac.uk/~wpenny.

Slides:



Advertisements
Similar presentations
Bayesian fMRI models with Spatial Priors Will Penny (1), Nelson Trujillo-Barreto (2) Guillaume Flandin (1) Stefan Kiebel(1), Karl Friston (1) (1) Wellcome.
Advertisements

Bayesian inference Lee Harrison York Neuroimaging Centre 01 / 05 / 2009.
Hierarchical Models and
Basis Functions. What’s a basis ? Can be used to describe any point in space. e.g. the common Euclidian basis (x, y, z) forms a basis according to which.
1st level analysis - Design matrix, contrasts & inference
J. Daunizeau Wellcome Trust Centre for Neuroimaging, London, UK Institute of Empirical Research in Economics, Zurich, Switzerland Bayesian inference.
1st level analysis: basis functions and correlated regressors
Modeling fMRI data generated by overlapping cognitive processes with unknown onsets using Hidden Process Models Rebecca A. Hutchinson (1) Tom M. Mitchell.
TSTAT_THRESHOLD (~1 secs execution) Calculates P=0.05 (corrected) threshold t for the T statistic using the minimum given by a Bonferroni correction and.
Dynamic Causal Modelling (DCM): Theory Demis Hassabis & Hanneke den Ouden Thanks to Klaas Enno Stephan Functional Imaging Lab Wellcome Dept. of Imaging.
Contrasts (a revision of t and F contrasts by a very dummyish Martha) & Basis Functions (by a much less dummyish Iroise!)
FINSIG'05 25/8/2005 1Eini Niskanen, Dept. of Applied Physics, University of Kuopio Principal Component Regression Approach for Functional Connectivity.
FMRI Methods Lecture7 – Review: analyses & statistics.
18 th February 2009 Stephanie Burnett Christian Lambert Methods for Dummies 2009 Dynamic Causal Modelling Part I: Theory.
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
Learning Theory Reza Shadmehr LMS with Newton-Raphson, weighted least squares, choice of loss function.
Functional Brain Signal Processing: EEG & fMRI Lesson 14
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.
Statistical Analysis An Introduction to MRI Physics and Analysis Michael Jay Schillaci, PhD Monday, April 7 th, 2007.
FMRI Modelling & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Chicago, Oct.
The General Linear Model
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, May 2012.
SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging.
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.
Bayesian inference Lee Harrison York Neuroimaging Centre 23 / 10 / 2009.
The general linear model and Statistical Parametric Mapping II: GLM for fMRI Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline.
Dynamic Causal Models Will Penny Olivier David, Karl Friston, Lee Harrison, Andrea Mechelli, Klaas Stephan Mathematics in Brain Imaging, IPAM, UCLA, USA,
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.
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.
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.
functional magnetic resonance imaging (fMRI)
Group Analyses Guillaume Flandin SPM Course London, October 2016
Variational Bayesian Inference for fMRI time series
The general linear model and Statistical Parametric Mapping
The General Linear Model
Bayesian Inference Will Penny
Design Matrix, General Linear Modelling, Contrasts and Inference
The General Linear Model (GLM): the marriage between linear systems and stats FFA.
Dynamic Causal Modelling (DCM): Theory
Neuroscience Research Institute University of Manchester
and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline
The General Linear Model (GLM)
The General Linear Model
Dynamic Causal Modelling
Dynamic Causal Modelling
Statistical Parametric Mapping
The general linear model and Statistical Parametric Mapping
SPM2: Modelling and Inference
Bayesian Methods in Brain Imaging
The General Linear Model
Learning Theory Reza Shadmehr
Hierarchical Models and
The General Linear Model (GLM)
Bayesian inference J. Daunizeau
MfD 04/12/18 Alice Accorroni – Elena Amoruso
Bayesian Inference in SPM2
Wellcome Centre for Neuroimaging, UCL, UK.
The General Linear Model
Mixture Models with Adaptive Spatial Priors
Probabilistic Modelling of Brain Imaging Data
Mathematical Foundations of BME
The General Linear Model
The General Linear Model
Will Penny Wellcome Trust Centre for Neuroimaging,
Presentation transcript:

Bayesian Modelling of Functional Imaging Data Will Penny The Wellcome Department of Imaging Neuroscience, UCL http//:

OverviewOverview 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem

First level of Bayesian Inference First level of Inference: What are the best parameters ? We have data, y, and some parameters,  Parameters are of model, M, ….

First and Second Levels The first level again, writing in dependence on M: Second level of Inference: What’s the best model ?

Model Selection We need to compute the Bayesian Evidence: We can’t always compute it exactly, but we can approximate it: Log p(y|M) ~ F(M) Evidence = Accuracy - Complexity

Model Averaging Revisiting the first level: Model-dependent posteriors are weighted according to the posterior probability of each model

Multiple Levels w3w3 Y w1w1 w2w2 Evidence Up Posteriors Down w3w3 Y w1w1 w2w2

OverviewOverview 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem

Noise sources in fMRI 1. Slow drifts due to instrumentation instabilities 2. Subject movement 3. Vasomotor oscillation ~ 0.1 Hz 4. Respiratory activity ~ 0.25 Hz 5. Cardiac activity ~ 1 Hz 1. Slow drifts due to instrumentation instabilities 2. Subject movement 3. Vasomotor oscillation ~ 0.1 Hz 4. Respiratory activity ~ 0.25 Hz 5. Cardiac activity ~ 1 Hz Remove with ICA/PCA – but non-automatic

fMRI time series model Use a General Linear Model:Use a General Linear Model: y = X  + e y = X  + e The errors are modelled as an AR(p) processThe errors are modelled as an AR(p) process The order can be selected using Bayesian evidenceThe order can be selected using Bayesian evidence Use a General Linear Model:Use a General Linear Model: y = X  + e y = X  + e The errors are modelled as an AR(p) processThe errors are modelled as an AR(p) process The order can be selected using Bayesian evidenceThe order can be selected using Bayesian evidence

Synthetic GLM-AR(3) Data

Map of AR model order, p p=0,1,2,3 Face Data

AngiogramsAngiograms

Other subjects, a 1 Ring of voxels with highly correlated error

Other subjects, a 1 Unmodelled signal or increased cardiac artifact due to increased blood flow?

OverviewOverview 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem

fMRI time series model Use a General Linear Model for the signal :Use a General Linear Model for the signal : y = X  + e y = X  + e Priors factorise into groups:Priors factorise into groups: p(  ) = p(  1 ) p(  2 ) p(  3 ) p(  ) = p(  1 ) p(  2 ) p(  3 ) Priors in each group may be smoothnessPriors in each group may be smoothness priors or Gaussians priors or Gaussians Use a General Linear Model for the signal :Use a General Linear Model for the signal : y = X  + e y = X  + e Priors factorise into groups:Priors factorise into groups: p(  ) = p(  1 ) p(  2 ) p(  3 ) p(  ) = p(  1 ) p(  2 ) p(  3 ) Priors in each group may be smoothnessPriors in each group may be smoothness priors or Gaussians priors or Gaussians

Rik’s data 24 Transverse Slices acquired with TR=2s Press left key if famous, right key if not Time series of 351 images Part of larger study looking at factors influencing repetition suppresion Every face presented twice

Modelling the Signal Assumption: Neuronal Event Stream is Identical to the Experimental Event Stream Convolve event-stream with basis functions to account for the HRF

FIR model Separate smoothness priors for each event type Design matrix for FIR model with 8 time bins in a 20-second window Q. Is this a good prior ?

FIR basis set Left occipital cortex (x=-33, y=-81, z=-24) FIR model average responses

FIR basis set Right fusiform cortex (x=45, y=-60, z=-18) FIR model average responses

RFX-Event model Design Matrix 97 parameters ! But only 24 effective parameters Responses to each event of type A are randomly distributed about some typical “type A” response

Non-stationary models As RFX-event but smoothness priors Testing for smooth temporal variations statistically …

Simpler Designs Canon. + Temp. Deriv Gammas

Comparing Types of Models Left Occipital Canon. + Temp. Deriv Gammas RFX-Event FIR Right Fusiform Gammas RFX-Event FIR Canon. + Temp. Deriv Evidence Model averaging to get peak post-stimulus response NonStat

OverviewOverview 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem 1.Multiple levels of Bayesian Inference 2.A model of fMRI time series: The Noise 3.A model of fMRI time series: The Signal 4.The fMRI Inverse Problem

The fMRI Inverse Problem In EEG there is an ill-posed spatial inverse problem. We wish to recover the electrical activity at a particular voxel from scalp electrical activity.In EEG there is an ill-posed spatial inverse problem. We wish to recover the electrical activity at a particular voxel from scalp electrical activity. It is solved via modelling.It is solved via modelling. In fMRI there is an ill-posed temporal inverse problem. We wish to recover the electrical activity at a voxel from hemodynamic activity at that voxel.In fMRI there is an ill-posed temporal inverse problem. We wish to recover the electrical activity at a voxel from hemodynamic activity at that voxel. In EEG there is an ill-posed spatial inverse problem. We wish to recover the electrical activity at a particular voxel from scalp electrical activity.In EEG there is an ill-posed spatial inverse problem. We wish to recover the electrical activity at a particular voxel from scalp electrical activity. It is solved via modelling.It is solved via modelling. In fMRI there is an ill-posed temporal inverse problem. We wish to recover the electrical activity at a voxel from hemodynamic activity at that voxel.In fMRI there is an ill-posed temporal inverse problem. We wish to recover the electrical activity at a voxel from hemodynamic activity at that voxel.

HDM & DCM: Conceptual shift For a given subject and point in brain, the HRF is fixed !For a given subject and point in brain, the HRF is fixed ! Need two-stage modelsNeed two-stage models (i) How do experimental events affect neurodynamics ? (i) How do experimental events affect neurodynamics ? A. Via a bilinear dynamical model (ii) How do neurodynamics affect hemodynamics ? A. Via the balloon model For a given subject and point in brain, the HRF is fixed !For a given subject and point in brain, the HRF is fixed ! Need two-stage modelsNeed two-stage models (i) How do experimental events affect neurodynamics ? (i) How do experimental events affect neurodynamics ? A. Via a bilinear dynamical model (ii) How do neurodynamics affect hemodynamics ? A. Via the balloon model

Bilinear Dynamics - Z2Z2 Stimuli u 1 Set u 2 Z1Z u 1 Z 1 u 2 Z 2

Neuronal Transients and BOLD: I 300ms500ms More enduring transients produce bigger BOLD signals Seconds Bigger transients produce bigger BOLD signals The interaction changes the shape of the response

Neuronal Transients and BOLD: II BOLD is sensitive to frequency content of transients Seconds Relative timings of transients are amplified in BOLD

Inferences about Neuronal Transients U1,U2,F1,F2 F2 Z1Z Even for a single area we can ask eg.: Does the second presentation of a familiar face (a) increase the magnitude of the neuronal transient ?, (b) increase its time constant ? tt mm (or fast v. slow responses)

ConclusionsConclusions Bayesian model selection and averaging can help in the choice of signal and noise modelsBayesian model selection and averaging can help in the choice of signal and noise models I have described some useful exploratary toolsI have described some useful exploratary tools Spatial ModelsSpatial Models Need to solve fMRI inverse problemNeed to solve fMRI inverse problem Bayesian model selection and averaging can help in the choice of signal and noise modelsBayesian model selection and averaging can help in the choice of signal and noise models I have described some useful exploratary toolsI have described some useful exploratary tools Spatial ModelsSpatial Models Need to solve fMRI inverse problemNeed to solve fMRI inverse problem

Gaussian-smoothed contrast images

Wavelet-smoothed contrast images

w3w3 Y w1w1 w2w2 Analogy: Processing in sensory cortex Evidence Up Posteriors Down w3w3 Y w1w1 w2w2 “Reagan”