35
SPM5 Segmentation

SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Embed Size (px)

Citation preview

Page 1: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

SPM5 Segmentation

Page 2: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

A Growing Trend

•Larger and more complex models are being produced to explain brain imaging data.•Bigger and better computers

•allow more powerful models to be used

•More experience among software developers•Older and wiser

•More engineers - rather than e.g. psychiatrists & biochemists

•This presentation is about combining various preprocessing procedures for anatomical images into a single generative model.

Page 3: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Traditional View of Pre-processing

•Brain image processing is often thought of as a pipeline procedure.

•One tool applied before another etc...•For example…

OriginalImage

SkullStrip

Non-uniformityCorrect

Classify BrainTissues

Extract BrainSurfaces

Page 4: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Another example (for VBM)

Page 5: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Bias Correction Informs Registration

•MRI images are corrupted by a smooth intensity non-uniformity (bias).

•Image intensity non-uniformity artefact has a negative impact on most registration approaches.

•Much better if this artefact is corrected.Image

with bias artefact

Corrected image

Page 6: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Bias Correction Informs Segmentation

•Similar tissues no longer have similar intensities.

•Artefact should be corrected to enable intensity-based tissue classification.

Page 7: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Registration Informs Segmentation•SPM99 and SPM2 require tissue probability

maps to be overlaid prior to segmentation.

Page 8: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Segmentation Informs Bias Correction

•Bias correction should not eliminate differences between tissue classes.

•Can be done by•make all white matter about the same intensity

•make all grey matter about the same intensity

•etc

•Currently fairly standard practice to combine bias correction and tissue classification

Page 9: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Segmentation Informs Registration

Original MRITemplate

Grey MatterSegment

Affine register

Priors Deformation

Affine Transform

Spatial Normalisation

- estimation

Spatial Normalisation

- writing

Spatially Normalised

MRI

Page 10: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow
Page 11: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Unified Segmentation

•The solution to this circularity is to put everything in the same Generative Model.•A MAP solution is found by repeatedly alternating

among classification, bias correction and registration steps.

•The Generative Model involves:•Mixture of Gaussians (MOG)

•Bias Correction Component

•Warping (Non-linear Registration) Component

Page 12: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Generative Model

y1c1

y2

y3

c2

c3

C

CyIcI

Page 13: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Gaussian Probability Density

•If intensities are assumed to be Gaussian of mean k and variance 2

k, then the probability of a value yi is:

Page 14: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Non-Gaussian Probability Distribution

•A non-Gaussian probability density function can be modelled by a Mixture of Gaussians (MOG):

Mixing proportion - positive and sums to one

Page 15: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Belonging Probabilities

Belonging probabilities are assigned by normalising to one.

Page 16: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Mixing Proportions

•The mixing proportion k represents the prior probability of a voxel being drawn from class k - irrespective of its intensity.

•So:

Page 17: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Non-Gaussian Intensity Distributions

•Multiple Gaussians per tissue class allow non-Gaussian intensity distributions to be modelled.

Page 18: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Probability of Whole Dataset

•If the voxels are assumed to be independent, then the probability of the whole image is the product of the probabilities of each voxel:

•It is often easier to work with negative log-probabilities:

Page 19: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Modelling a Bias Field

•A bias field is included, such that the required scaling at voxel i, parameterised by , is i().

•Replace the means by k/i()

•Replace the variances by (k/i())2

Page 20: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Modelling a Bias Field•After rearranging:

()y y ()

Page 21: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

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.

Page 22: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

“Mixing Proportions”• Tissue probability maps for

each class are included.

• The probability of obtaining class k at voxel i, given weights is then:

Page 23: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Deforming the Tissue Probability Maps• Tissue probability

images are deformed according to parameters .

• The probability of obtaining class k at voxel i, given weights and parameters is then:

Page 24: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

The Extended Model

• By combining the modified P(ci=k|) and P(yi|ci=k,), the overall objective function (E) becomes:

The Objective Function

Page 25: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Optimisation

•The “best” parameters are those that minimise this objective function.

•Optimisation involves finding them.

•Begin with starting estimates, and repeatedly change them so that the objective function decreases each time.

Page 26: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Steepest DescentStart

Optimum

Alternate between optimising different

groups of parameters

Page 27: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Schematic of optimisation

Repeat until convergence...

Hold , , 2 and constant, and minimise E w.r.t. - Levenberg-Marquardt strategy, using dE/d and d2E/d2

Hold , , 2 and constant, and minimise E w.r.t. - Levenberg-Marquardt strategy, using dE/d and d2E/d2

Hold and constant, and minimise E w.r.t. , and 2

-Use an Expectation Maximisation (EM) strategy.

end

Page 28: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Levenberg-Marquardt Optimisation

•LM optimisation is used for the nonlinear registration and bias correction components.

•Requires first and second derivatives of the objective function (E).

•Parameters and are updated by

•Increase to improve stability (at expense of decreasing speed of convergence).

Page 29: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Expectation Maximisation is used to update , 2 and

•For iteration (n), alternate between:•E-step: Estimate belonging probabilities by:

•M-step: Set (n+1) to values that reduce:

Page 30: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Linear Regularisation

•Some bias fields and distortions are more probable (a priori) than others.

•Encoded using Bayes rule:

•Prior probability distributions can be modelled by a multivariate normal distribution.• Mean vector and

• Covariance matrix and

• -log[P()] = (-T-1( + const

Page 31: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Initial Affine Registration

The procedure begins with a Mutual Information affine registration of the image with the tissue probability maps. MI is computed from a 4x256 joint probability histogram.

See D'Agostino, Maes, Vandermeulen & P. Suetens. “Non-rigid Atlas-to-Image Registration by Minimization of Class-Conditional Image Entropy”. Proc. MICCAI 2004. LNCS 3216, 2004. Pages 745-753. Background voxels

excluded

Joint Probability Histogram

Page 32: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Background Voxels are Excluded

An intensity threshold is found by fitting image intensities to a mixture of two Gaussians. This threshold is used to exclude most of the voxels containing only air.

Page 33: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Tissue probability maps of GM

and WM

Spatially normalised BrainWeb phantoms

(T1, T2 and PD)

Cocosco, Kollokian, Kwan & Evans. “BrainWeb: Online Interface to a 3D MRI Simulated Brain Database”. NeuroImage 5(4):S425 (1997)

Page 34: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow
Page 35: SPM5 Segmentation. A Growing Trend Larger and more complex models are being produced to explain brain imaging data. Bigger and better computers allow

Bayes Rule

• y - the data

• - a theory, model, or set of parameters

• P(|y) - probability of given y (posterior probability)

• P(y|) - probability of y given (likelihood)

• P() - probability of (prior probability)

• P(y) - probability of y (evidence)

• P(,y) - probability of and y (joint probability)