Image Preprocessing for Idiots

Slides:



Advertisements
Similar presentations
FIL SPM Course 2010 Spatial Preprocessing
Advertisements

Unwarping.
Image Registration John Ashburner
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.
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
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.
Basics of fMRI Preprocessing Douglas N. Greve
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
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.
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.
FMRI Preprocessing John Ashburner. Contents *Preliminaries *Rigid-Body and Affine Transformations *Optimisation and Objective Functions *Transformations.
Co-registration and Spatial Normalisation
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.
Coregistration and Spatial Normalisation
Coregistration and Spatial Normalization Jan 11th
Spatio-Temporal Free-Form Registration of Cardiac MR Image Sequences Antonios Perperidis s /02/2006.
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.
Image Registration John Ashburner
SPM Pre-Processing Oli Gearing + Jack Kelly Methods for Dummies
Idiot's guide to... General Linear Model & fMRI Elliot Freeman, ICN. fMRI model, Linear Time Series, Design Matrices, Parameter estimation,
Preprocessing: Realigning and Unwarping Methods for Dummies, 2015/16 Sujatha Krishnan-Barman Filip Gesiarz.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
MfD Co-registration and Normalisation in SPM
Spatial processing of FMRI data And why you may care.
SPM short course – Mai 2008 Linear Models and Contrasts Jean-Baptiste Poline Neurospin, I2BM, CEA Saclay, France.
Preprocessing In SPM Yingying Wang 7/15/2014 Tuesday
University of Ioannina
Statistical Parametric
The general linear model and Statistical Parametric Mapping
Zurich SPM Course 2012 Spatial Preprocessing
The General Linear Model
2nd Level Analysis Methods for Dummies 2010/11 - 2nd Feb 2011
Spatial Preprocessing John Ashburner
fMRI Preprocessing John Ashburner
Realigning and Unwarping MfD
Zurich SPM Course 2011 Spatial Preprocessing
Computational Neuroanatomy for Dummies
The General Linear Model (GLM)
Spatial Preprocessing
The General Linear Model
Alysha Chelliah & Yuki Shimura
Image Registration 박성진.
Image Registration John Ashburner
The general linear model and Statistical Parametric Mapping
SPM2: Modelling and Inference
Preprocessing: Coregistration and Spatial Normalisation
The General Linear Model
The General Linear Model (GLM)
Anatomical Measures John Ashburner
The General Linear Model
Presentation transcript:

Image Preprocessing for Idiots Realignment, slice timing, normalisation, optimisation, @#!$%... Elliot Freeman, ICN.

Why preprocess? Goals: Problems Track patterns of activity over time Localise patterns re. anatomy Compare activity between subjects Problems Head movements Different modalities Between-subject differences

Preprocessing sequence Realignment Motion correction Coregistration Overlay structural and functional Normalisation Warp to fit to standard template brain Optional extras Slice time correction; unwarping

Realignment (within-modality registration) Benefits Identify common activation sites between successive slices Eliminate motion artefacts -> increase S/N Covary-out movements correlated with tasks Morphometry: coregister and compare structurals

General steps for transforming Coregister images Choose transformation parameters Apply transformation Create new transformed images from old Interpolate over borders of old voxels Optimise parameters Measure mismatch between source and reference images. Iterate until mismatch is minimised

Registration Affine transformation matrices Rigid-body model head movements do not affect head shape Six parameters: 3x translations & 3x rotations New coordinates are a linear combination of old: x1 = mxo + myo + mzo + m or in matrix algebra [x1 y1 z1] = M x [xo yo zo] X0 1 xt x1 y0 = yt y1 z0 zt z1 x0 cos(Ω) sin(Ω) x1 y0 = -sin(Ω) y1 z0 1 z1 …Two more matrices for rotations about x and y axes, & two more parameters to estimate...

Transformation & interpolation Create new transformed image Estimate intensity of a new voxel from corresponding intensity in old image Interpolation across old voxel boundaries Estimate from neighbours, trilinear, sinc Generalised (SPM2): reconstruct image from linear combination of basis functions. More efficient. + = + =

Optimise parameters Calculate mismatch between images Estimate parameters of transform matrix to reduce mismatch Minimise mismatch (χ2) by adjusting parameters Reiterate until there is no further improvement Better with smoothing

Slice timing correction Different slices acquired at different times ‘Time warp’, as if slices were acquired simultaneously Centre reference slice limits maximum lag to TR/2: centre. User-adjusted to minimise interpolation over region-of-interest Option to synchronize events with covariates Temporal interpolation: shift phase of sinusoidal components of signal

Slice timing correction: issues Before realignment? Assume head is still: one slice of brain per slice of time. Head movements can cause slice-overlap or separation -> interpolation over wrong brain areas Realignment may propagate error to other volumes. After realignment? Realignment after head movement may shift voxels onto successive slices -> incorrect temporal ordering Generally best with shorter TR

Unwarping Different tissues react differently to magnetization -> field distortions at interfaces Pattern depends on subject’s position in field gradient -> ‘susceptibility-by-movement’ interaction: Fairground mirror effect. Movement creates variance in image. Cannot be corrected by rigid-body model Model ‘deformation field’ Predict (and covary out) variance caused by motion through distorting field

Residual errors Head movements within a TR violate non-rigid model Resampling errors. Better with dithering Spin-excitation history: delay for tissue to recover from magnetism; movement causes different regions to be excited on each cycle Estimated motion parameters can be used as covariates, but only if they don’t correlate with experimental variables

Between-modality coregistration Benefits Match activations with anatomical sites, PET Increase precision of normalisation based on on structural details Problems Different modalities have very different intensity maps. Often non-linear relationship fMRI images usually distorted in phase-encode direction. Differences between scanners. Need non-linear warping too.

Coregistration methods Partitioning method (3 step): Determine same-modality transformation to functional and structural templates Segment images using Bayesian probability maps: produces modality-independent images Coregister image partitions, constrained by boundaries identified by segmentation Obsolete in SPM2

Coregistration: Information Theoretic approach Assume close mapping between intensities from different modalities Joint histograms Scan voxel by voxel Find intensity of same voxel in T1 and T2 Increment bin for that specific combination Mutual Information Quantifies dependence between images Related to deviation from diagonal and dispersion (entropy) of pattern Transform images to maximise MI T2 intensity T1 intensity T2 intensity T1 intensity

Normalisation Goals Identify commonalities and differences between subjects Morphometry Increase signal-to-noise Derive group statistics Essential for performing contrasts Report results in standard coordinates (e.g. Talairach)

Normalisation: issues Affine transforms not sufficient: Non-linear solutions required Optimally, move each voxel around until it fits. Millions of dimensions. Trade off dimensionality with performance Perfection is not good enough: Structural alignment doesn’t guarantee functional alignment. Fit is limited by differences in gyral anatomy and physiology between subjects. Perfect mapping will fold brain to create non-existent features Smoothing eliminates unnecessary fine detail Regularization: use prior information about what fit is most likely.

Normalisation: methods affine transform rigid-body + shears and zooms = 12 params zoom fails with insufficient slices (e.g. non-isotropic voxels) prior data helps predict z-zoom from x&y-zoom

Non-linear warping: low dimensionality Construct transformation from a linear combination of bases Each function describes transformation: positive and negative values shift voxel in opposite directions. E.g. stretch function = [1 2 3 4 5 …] Only a few functions required -> few dimensions to search

Optimisation & Regularisation Template Affine Transformed Optimisation Minimise sum of square differences χ2 by updating weighting for each base Regularization Minimise deviation of parameters from prior expectation Non-linear with regularization Non-linear without regularization

High-dimensional warping Model brain as mesh of interlocking triangles Perform affine transformation for local clusters of nodes Minimise image mismatch Simultaneously minimise how much the deformation field deviates from prior map of most likely distortions

Warping Results Source Template Deformation field Warped image

How dumb was that?