FMRI Preprocessing John Ashburner. Contents *Preliminaries *Rigid-Body and Affine Transformations *Optimisation and Objective Functions *Transformations.

Slides:



Advertisements
Similar presentations
FIL SPM Course 2010 Spatial Preprocessing
Advertisements

VBM Susie Henley and Stefan Klöppel Based on slides by John Ashburner
A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow more powerful models.
SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow.
Unwarping.
Image Registration John Ashburner
Image Registration Carlton CHU
VBM Voxel-based morphometry
Overview fMRI time-series Statistical Parametric Map Smoothing kernel
Realignment – Motion Correction (gif from FMRIB at Oxford)
Concepts of SPM data analysis Marieke Schölvinck.
Computational Neuroanatomy John Ashburner SmoothingSmoothing Motion CorrectionMotion Correction Between Modality Co-registrationBetween.
Gordon Wright & Marie de Guzman 15 December 2010 Co-registration & Spatial Normalisation.
A Cortical Area Selective for Visual Processing of the Human Body by P.E. Downing, Y. Jiang, M. Shuman, N.Kanwisher presented by Ilya Levner.
Methods for Dummies Preprocessing: Realigning and Unwarping Rashmi Gupta and Luke Palmer.
Coregistration and Spatial Normalization Nov 14th
Co-registration and Spatial Normalisation Nazanin Derakshan Eddy Davelaar School of Psychology, Birkbeck University of London.
Introduction to Functional and Anatomical Brain MRI Research Dr. Henk Cremers Dr. Sarah Keedy 1.
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
SPM5 Tutorial, Part 1 fMRI preprocessing Tiffany Elliott May
Coregistration and Normalisation By Lieke de Boer & Julie Guerin.
Preprocessing: Coregistration and Spatial Normalisation Cassy Fiford and Demis Kia Methods for Dummies 2014 With thanks to Gabriel Ziegler.
SPM5- Methods for Dummies 2007 P. Schwingenschuh
Pre-processing in fMRI: Realigning and unwarping
Spatial Preprocessing
Realigning and Unwarping MfD
Realigning and Unwarping MfD
JOAQUÍN NAVAJAS SARAH BUCK 2014 fMRI data pre-processing Methods for Dummies Realigning and unwarping.
Zurich SPM Course 2011 Spatial Preprocessing Ged Ridgway With thanks to John Ashburner and the FIL Methods Group.
Spatial preprocessing of fMRI data Methods & models for fMRI data analysis 25 February 2009 Klaas Enno Stephan Laboratory for Social and Neural Systrems.
Spatial preprocessing of fMRI data
SPM+fMRI. K space K Space Mechanism of BOLD Functional MRI Brain activity Oxygen consumptionCerebral blood flow Oxyhemoglobin Deoxyhemoglobin Magnetic.
Preprocessing II: Between Subjects John Ashburner Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.
Voxel-Based Morphometry John Ashburner Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.
FIL SPM Course May 2011 Spatial preprocessing Ged Ridgway With thanks to John Ashburner and the FIL Methods Group.
Voxel-Based Morphometry John Ashburner Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.
Co-registration and Spatial Normalisation
SegmentationSegmentation C. Phillips, Institut Montefiore, ULg, 2006.
Statistical Parametric Mapping (SPM) 1. Talk I: Spatial Pre-processing 2. Talk II: General Linear Model 3. Talk III:Statistical Inference 3. Talk IV: Experimental.
Preprocessing of FMRI Data fMRI Graduate Course October 23, 2002.
Anatomical Measures John Ashburner zSegmentation zMorphometry zSegmentation zMorphometry.
Signal, Noise and Preprocessing
Coregistration and Spatial Normalisation
Coregistration and Spatial Normalization Jan 11th
Spatial Preprocessing Ged Ridgway, FMRIB/FIL With thanks to John Ashburner and the FIL Methods Group.
Statistical Parametric Mapping Lecture 11 - Chapter 13 Head motion and correction Textbook: Functional MRI an introduction to methods, Peter Jezzard, Paul.
Volumetric Intersubject Registration John Ashburner Wellcome Department of Imaging Neuroscience, 12 Queen Square, London, UK.
Image Registration John Ashburner
SPM Pre-Processing Oli Gearing + Jack Kelly Methods for Dummies
Preprocessing: Realigning and Unwarping Methods for Dummies, 2015/16 Sujatha Krishnan-Barman Filip Gesiarz.
MfD Co-registration and Normalisation in SPM
Spatial processing of FMRI data And why you may care.
Computational Neuroanatomy John Ashburner zSmoothing zRigid registration zSpatial normalisation zSegmentation zMorphometry zSmoothing.
Preprocessing In SPM Yingying Wang 7/15/2014 Tuesday
Statistical Parametric
Zurich SPM Course 2012 Spatial Preprocessing
Spatial Preprocessing John Ashburner
fMRI Preprocessing John Ashburner
Realigning and Unwarping MfD
Zurich SPM Course 2011 Spatial Preprocessing
Keith Worsley Keith Worsley
Computational Neuroanatomy for Dummies
Image Preprocessing for Idiots
Spatial Preprocessing
From buttons to code Eamonn Walsh & Domenica Bueti
Image Registration 박성진.
Image Registration John Ashburner
Preprocessing: Coregistration and Spatial Normalisation
Anatomical Measures John Ashburner
Mixture Models with Adaptive Spatial Priors
Presentation transcript:

fMRI Preprocessing John Ashburner

Contents *Preliminaries *Rigid-Body and Affine Transformations *Optimisation and Objective Functions *Transformations and Interpolation *Within Subject: Realignment & Coregistration *Between Subject: Spatial Normalisation & Smoothing

Rigid-Body Transformations *Assume that brain of the same subject doesn’t change shape or size in the scanner. *Head can move, but remains the same shape and size. *Some exceptions: *Image distortions. *Brain slops about slightly because of gravity. *Brain growth or atrophy over time. *If the subject’s head moves, we need to correct the images. *Do this by image registration.

Image Registration Two components: Registration - i.e. Optimise the parameters that describe a spatial transformation between the source and reference images Transformation - i.e. Re-sample according to the determined transformation parameters

2D Affine Transforms *Translations by t x and t y *x 1 = x 0 + t x *y 1 = y 0 + t y *Rotation around the origin by  radians *x 1 = cos(  ) x 0 + sin(  ) y 0 *y 1 = -sin(  ) x 0 + cos(  ) y 0 *Zooms by s x and s y *x 1 = s x x 0 *y 1 = s y y 0 * Shear * x 1 = x 0 + h y 0 * y 1 = y 0

2D Affine Transforms *Translations by t x and t y *x 1 = 1 x y 0 + t x *y 1 = 0 x y 0 + t y *Rotation around the origin by  radians *x 1 = cos(  ) x 0 + sin(  ) y *y 1 = -sin(  ) x 0 + cos(  ) y *Zooms by s x and s y : *x 1 = s x x y *y 1 = 0 x 0 + s y y * Shear * x 1 = 1 x 0 + h y * y 1 = 0 x y 0 + 0

3D Rigid-body Transformations *A 3D rigid body transform is defined by: *3 translations - in X, Y & Z directions *3 rotations - about X, Y & Z axes *The order of the operations matters TranslationsPitch about x axis Roll about y axis Yaw about z axis

Voxel-to-world Transforms *Affine transform associated with each image *Maps from voxels (x=1..n x, y=1..n y, z=1..n z ) to some world co- ordinate system. e.g., *Scanner co-ordinates - images from DICOM toolbox *T&T/MNI coordinates - spatially normalised *Registering image B (source) to image A (target) will update B’s voxel-to-world mapping *Mapping from voxels in A to voxels in B is by *A-to-world using M A, then world-to-B using M B -1 * M B -1 M A

Left- and Right-handed Coordinate Systems *NIfTI format files are stored in either a left- or right-handed system *Indicated in the header *Talairach & Tournoux uses a right-handed system *Mapping between them sometimes requires a flip *Affine transform has a negative determinant

Optimisation *Image registration is done by optimisation. *Optimisation involves finding some “best” parameters according to an “objective function”, which is either minimised or maximised *The “objective function” is often related to a probability based on some model Value of parameter Objective function Most probable solution (global optimum) Local optimum

Objective Functions *Intra-modal *Mean squared difference (minimise) *Normalised cross correlation (maximise) *Inter-modal (or intra-modal) *Mutual information (maximise) *Normalised mutual information (maximise) *Entropy correlation coefficient (maximise)

*Nearest neighbour *Take the value of the closest voxel *Tri-linear *Just a weighted average of the neighbouring voxels *f 5 = f 1 x 2 + f 2 x 1 *f 6 = f 3 x 2 + f 4 x 1 *f 7 = f 5 y 2 + f 6 y 1 Simple Interpolation

B-spline Interpolation B-splines are piecewise polynomials A continuous function is represented by a linear combination of basis functions 2D B-spline basis functions of degrees 0, 1, 2 and 3 Nearest neighbour and trilinear interpolation are the same as B-spline interpolation with degrees 0 and 1.

Contents *Preliminaries *Within Subject: Realignment & Coregistration *Realignment by minimising mean-squared difference *Residual artifacts and distortion correction *Coregistration by maximising mutual information *Between Subject: Spatial Normalisation & Smoothing

Pre-processing Overview fMRI time-series Motion Correct Anatomical MRI Coregister Deformation Estimate Spatial Norm Spatially normalised Smooth Smoothed Statistics or whatever Template

Mean-squared Difference *Minimising mean-squared difference works for intra- modal registration (realignment) *Simple relationship between intensities in one image, versus those in the other *Assumes normally distributed differences

Residual Errors from aligned fMRI *Re-sampling can introduce interpolation errors *especially tri-linear interpolation *Gaps between slices can cause aliasing artefacts *Slices are not acquired simultaneously *rapid movements not accounted for by rigid body model *Image artefacts may not move according to a rigid body model *image distortion *image dropout *Nyquist ghost *Functions of the estimated motion parameters can be modelled as confounds in subsequent analyses

Movement by Distortion Interaction of fMRI * Subject disrupts B 0 field, rendering it inhomogeneous * distortions in phase-encode direction * Subject moves during EPI time series * Distortions vary with subject orientation * shape varies

Movement by distortion interaction

Correcting for distortion changes using Unwarp Estimate movement parameters. Estimate new distortion fields for each image: estimate rate of change of field with respect to the current estimate of movement parameters in pitch and roll. Estimate reference from mean of all scans. Unwarp time series.  +  Andersson et al, 2001

Inter-modal registration. Match images from same subject but different modalities: –anatomical localisation of single subject activations –achieve more precise spatial normalisation of functional image using anatomical image. Coregistration

Coregistration maximises Mutual Information *Used for between-modality registration *Derived from joint histograms *MI=  ab P(a,b) log 2 [P(a,b)/( P(a) P(b) )] *Related to entropy: MI = -H(a,b) + H(a) + H(b) *Where H(a) = -  a P(a) log 2 P(a) and H(a,b) = -  a P(a,b) log 2 P(a,b)

Contents *Preliminaries *Within Subject: Realignment & Coregistration *Between Subject: Spatial Normalisation & Smoothing *Segmentation for spatial normalisation *More about this in the afternoon *Smoothing

Pre-processing Overview fMRI time-series Motion Correct Anatomical MRI Coregister Deformation Estimate Spatial Norm Spatially normalised Smooth Smoothed Statistics or whatever Template

Alternative Pipeline fMRI time-series Motion Correct Deformation Estimate Spatial Norm Spatially normalised Smooth Smoothed Statistics or whatever Template

Spatial Normalisation *Brains of different subjects vary in shape and size. *Need to bring them all into a common anatomical space. *Examine homologous regions across subjects *Improve anatomical specificity *Improve sensitivity *Report findings in a common anatomical space (eg MNI space) *In SPM, alignment is achieved by matching grey matter with grey matter and white matter with white matter. *Need to segment.

Segmentation *Segmentation in SPM8 also estimates a spatial transformation that can be used for spatially normalising images. *It uses a generative model, which involves: *Mixture of Gaussians (MOG) *Bias Correction Component *Warping (Non-linear Registration) Component

Tissue Probability Maps *Tissue probability maps (TPMs) are used instead of the proportion of voxels in each Gaussian as the prior. ICBM Tissue Probabilistic Atlases. These tissue probability maps are kindly provided by the International Consortium for Brain Mapping, John C. Mazziotta and Arthur W. Toga.

Deforming the Tissue Probability Maps *Tissue probability images are deformed so that they can be overlaid on top of the image to segment.

Evaluations of nonlinear registration algorithms

Smooth Before convolutionConvolved with a circleConvolved with a Gaussian Blurring is done by convolution. Each voxel after smoothing effectively becomes the result of applying a weighted region of interest (ROI).

References *Friston et al. Spatial registration and normalisation of images. Human Brain Mapping 3: (1995). *Collignon et al. Automated multi-modality image registration based on information theory. IPMI’95 pp (1995). *Thévenaz et al. Interpolation revisited. IEEE Trans. Med. Imaging 19: (2000). *Andersson et al. Modeling geometric deformations in EPI time series. Neuroimage 13: (2001). *Ashburner & Friston. Unified Segmentation. NeuroImage 26: (2005). *Klein et al. Evaluation of 14 nonlinear deformation algorithms applied to human brain MRI registration. NeuroImage 46(3): (2009).