Top Banner
ENS Workshop John Ashburner [email protected] Functional Imaging Lab, 12 Queen Square, London, UK.
38

ENS Workshop John Ashburner [email protected] Functional Imaging Lab, 12 Queen Square, London, UK.

Mar 28, 2015

Download

Documents

Ashley Pugh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

ENS WorkshopJohn Ashburner

[email protected] Imaging Lab, 12 Queen

Square, London, UK.

Page 2: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Training and Classifying

ControlTraining Data

PatientTraining Data

?

?

??

Page 3: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Classifying

Controls

Patients

?

?

??

y=f(aTx+b)

Page 4: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Support Vector Classifier

Page 5: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Support Vector Classifier (SVC)

SupportVector

SupportVector

Support

Vector

a is a weighted linear combination of the support vectors

Page 6: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Some Equations

o Linear classification is by y = f(aTx + b)o where a is a weighting vector, x is the test data, b is an

offset, and f(.) is a thresholding operation

o a is a linear combination of SVs a = i wi xi

o So y = f(i wi xiTx + b)

Page 7: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Going Nonlinear

o Nonlinear classification is by

y = f(i wi (xi,x))

o where (xi,x) is some function of xi and x.

oe.g. RBF classification (xi,x) = exp(-||xi-x||2/(22))

o Requires a matrix of distance measures (metrics) between each pair of images.

Page 8: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Nonlinear SVC

Page 9: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

What is a Metric?

o Positiveo Dist(A,B) ≥ 0o Dist(A,A) = 0

o Symmetrico Dist(A,B) = Dist(B,A)

o Satisfy triangle inequalityo Dist(A,B)+Dist(B,C) ≥ Dist(A,C)

AB

C

Page 10: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Concise representations

o Information reduction/compressiono Most parsimonious representation - best

generalisationo Occam’s Razor

o Registration compresses datao signal is partitioned into

odeformationsoresiduals

©Friston

Page 11: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Nonlinear Registration

Page 12: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Mapping

Page 13: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

How could DTI help?

Page 14: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Small Deformations

Page 15: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 16: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Diffeomorphisms

Page 17: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 18: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Partial Differential Equations

Model one image as it deforms to match another.

x(t) = V x(t)It’s a bit like DCM but with much bigger V matrices(about 10,000,000 x 10,000,000 – instead of about 4x4).

x(t+1) = eV x(t)

Page 19: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Matrix representations of diffeomorphisms

x(1) = eV x(0)x(0) = e-V x(1)

For large k

eV ≈ (I+V/k)k

Page 20: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Compositions

Large deformations generated from compositions of small deformations

S1 = S1/8oS1/8oS1/8oS1/8oS1/8oS1/8oS1/8oS1/8

Recursive formulation

S1 = S1/2oS1/2, S1/2 = S1/4oS1/4, S1/4 = S1/8oS1/8

Small deformationapproximation

S1/8 ≈ I + V/8

Page 21: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

The shape metric

o Don’t use the straight distance (i.e. √vTv)

oDistance = √vTLTLv

o What’s the best form of L?o Membrane Energyo Bending Energyo Linear Elastic Energy

Page 22: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Consistent registration

A B

C

A B

C

µ

Totally impractical for lots of scans

Problem: How can the distance between e.g. A and B be computed? Inverse exponentiating is iterative and slow.

Register to a mean shaped image

Page 23: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Metrics from residuals

o Measures of difference between tensors.

o Relates to objective functions used for image registration.

o Can the same principles be used?

Page 24: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 25: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 26: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 27: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Over-fitting

Test data

A simpler model can often do better...

Page 28: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Cross-validation

o Methods must be able to generalise to new datao Various control parameters

o More complexity -> better separation of training datao Less complexity -> better generalisation

o Optimal control parameters determined by cross-validationo Test with data not used for trainingo Use control parameters that work best for these data

Page 29: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Two-fold Cross-validation

Use half the data for training.

and the other half for testing.

Page 30: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Two-fold Cross-validation

Then swap around the training and test data.

Page 31: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Leave One Out Cross-validation

Use all data except one point for training.

The one that was left out is used for testing.

Page 32: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Leave One Out Cross-validation

Then leave another point out.

And so on...

Page 33: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Interpretation??

o Significance assessed from accuracy based on cross-validation.

o Main problems:o No simple interpretation.o Mechanism of classification is difficult to visualise

o especially for nonlinear classifiers

o Difficult to understand (not like blobs)

o May be able to use the separation to derive simple (and more publishable hypotheses).

Page 34: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Group Theory

o Diffeomorphisms (smooth continuous one-to-one mappings) form a Group.o Closure

o AoB remains in the same group.

o Associativityo (AoB)oC = Ao(BoC)

o Identityo Identity transform I exists.

o Inverseo A-1 exists, and A-1oA=AoA-1 = I

o It is a Lie Group.o The group of

diffeomorphisms constitute a smooth manifold.

o The operations are differentiable.

Page 35: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Lie Groups

o Simple Lie Groups include various classes of affine transform matrices.o E.g. SO(2) : Special

Orthogonal 2D (rigid-body rotation in 2D).

o Manifold is a circle

o Lie Algebra is exponentiated to give Lie group. For square matrices, this involves a matrix exponential.

Page 36: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.
Page 37: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Relevance to Diffeomorphisms

o Parameterise with velocities, rather than displacements.

o Velocities are the Lie Algebra. These are exponentiated to a deformation by recursive application of tiny displacements, over a period of time=0..1.o A(1) = A(1/2) oA(1/2)

o A(1/2) = A(1/4) oA(1/4)

o Don’t actually use matrices.

o For tiny deformations, things are almost linear.o x(1/1024) x(0) + vx/1024

o y(1/1024) y(0) + vy/1024

o z(1/1024) z(0) + vz/1024

o Recursive application byo x(1/2) = x(1/4) (x(1/4), y(1/4),z(1/4))o y(1/2) = y(1/4) (x(1/4), y(1/4),z(1/4))o z(1/2) = z(1/4) (x(1/4), y(1/4),z(1/4))

Page 38: ENS Workshop John Ashburner john@fil.ion.ucl.ac.uk Functional Imaging Lab, 12 Queen Square, London, UK.

Working with Diffeomorphisms

o Averaging Warps.o Distances on the manifold

are given by geodesics.o Average of a number of

deformations is a point on the manifold with the shortest sum of squared geodesic distances.

o E.g. average position of London, Sydney and Honolulu.

o Inversion.o Negate the velocities, and

exponentiate.o x(1/1024) x(0) - vx/1024

o y(1/1024) y(0) - vy/1024

o z(1/1024) z(0) - vz/1024

o Priors for registrationo Based on smoothness of the

velocities.o Velocities relate to distances

from origin.