Gaussian processes for non-rigid id regis istration - Con - - PowerPoint PPT Presentation

โ–ถ
gaussian processes for non rigid id regis istration
SMART_READER_LITE
LIVE PREVIEW

Gaussian processes for non-rigid id regis istration - Con - - PowerPoint PPT Presentation

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL Gaussian processes for non-rigid id regis istration - Con onnections to o medical im image an analysis is Marcel Lthi Graphics and Vision Research Group


slide-1
SLIDE 1

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Gaussian processes for non-rigid id regis istration

  • Con
  • nnections to
  • medical im

image an analysis is

Marcel Lรผthi

Graphics and Vision Research Group Department of Mathematics and Computer Science University of Basel

slide-2
SLIDE 2

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Aims of the talk

  • Show how Analysis by Synthesis and

Gaussian processes lead to a family of methods for non-rigid registration

  • Provide an understanding of many

common algorithms in terms of Gaussian processes

  • Show how to derive new registration

approaches using GPMMs and MCMC

slide-3
SLIDE 3

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Outline

  • The registration problem
  • Problem formulation
  • Registration as analysis by synthesis

problem

  • An algorithm using Gaussian process

priors

  • Priors for registration
  • Spline-based models, Radial basis

functions

  • Multis-scale and Spatially-varying models
  • Statistical deformation models
  • Likelihood functions
  • Landmark registration
  • Image to image registration
  • Surface to image registration
  • Advancing registration
slide-4
SLIDE 4

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Outline

  • The registration problem
  • Problem formulation
  • Registration as analysis by synthesis

problem

  • An algorithm using Gaussian process

priors

  • Priors for registration
  • Spline-based models
  • Radial basis functions
  • Statistical deformation models
  • Likelihood functions
  • Landmark registration
  • Image to image registration
  • Surface to image registration
  • Some ideas where to go from here

๐‘ฆ

slide-5
SLIDE 5

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

ฮฉ

The registration problem

5

Reference: ๐ฝ๐‘†: ฮฉ โ†’ โ„ Target: ๐ฝ๐‘ˆ: ฮฉ โ†’ โ„ ๐œ’: ฮฉ โ†’ ฮฉ

๐‘ฆ

๐œ’(๐‘ฆ) ฮฉ

slide-6
SLIDE 6

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

The registration problem

Variational formulation ๐œ’โˆ— = arg min

๐œ’ ๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ โˆ˜ ๐œ’ + ๐œ‡๐‘†[๐œ’]

Mapping ๐œ’โˆ— is trade-off that

  • makes the images look similar (for similarity measure ๐ธ)
  • matches the prior assumptions (encoded by regularizer R)
slide-7
SLIDE 7

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

ฮฉ

The registration problem

7

ฮฉ

Variational formulation ๐œ’โˆ— = arg min

๐œ’ ๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ โˆ˜ ๐œ’ + ๐œ‡๐‘†[๐œ’]

๐œ’

slide-8
SLIDE 8

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

ฮฉ

The registration problem

8

ฮฉ

Variational formulation ๐œ’โˆ— = arg min

๐œ’ ๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ โˆ˜ ๐œ’ + ๐œ‡๐‘†[๐œ’]

๐œ’

slide-9
SLIDE 9

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

ฮฉ

The registration problem

9

ฮฉ

Variational formulation ๐œ’โˆ— = arg min

๐œ’ ๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ โˆ˜ ๐œ’ + ๐œ‡๐‘†[๐œ’]

๐œ’

slide-10
SLIDE 10

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Representation of the mapping ๐œ’

slide-11
SLIDE 11

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Representation of the mapping ๐œ’

slide-12
SLIDE 12

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Representation of the mapping ๐œ’

Assumption: Images are rigidly aligned

  • Mapping can be represented as a

displacement vector field: ๐œ’ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ ๐‘ฆ ๐‘ฃ โˆถ ฮฉ โ†’ โ„๐‘’

๐‘ฆ u(๐‘ฆ)

slide-13
SLIDE 13

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Representation of the mapping ๐œ’

Assumption: Images are rigidly aligned

  • Mapping can be represented as a

displacement vector field: ๐œ’ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ ๐‘ฆ ๐‘ฃ โˆถ ฮฉ โ†’ โ„๐‘’ Further assumption:

  • ๐œ’ is parametric :

๐œ’ ๐œ„ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ[๐œ„](๐‘ฆ)

slide-14
SLIDE 14

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Representation of the mapping ๐œ’

Mapping: ๐œ’ ๐œ„ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ[๐œ„](๐‘ฆ) Observation:

  • Knowledge of ๐œ„ and ๐ฝ๐‘† allows us to

synthesize target image ๐ฝ๐‘ˆ

  • (at least up to intensity differences)
slide-15
SLIDE 15

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Registration as analysis by synthesis

Parameters ๐œ„

Comparison: ๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘†) Update using ๐‘ž(๐œ„|๐ฝ๐‘ˆ, ๐ฝ๐‘†) Synthesis ๐œ”(๐œ„)

Prior ๐œ’[๐œ„] โˆผ ๐‘ž(๐œ„) ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-16
SLIDE 16

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Probabilistic formulation of registration

Mapping ๐œ„โˆ— is trade-off that defines a mapping ๐œ’[๐œ„โˆ—] which

  • explains the data well (likelihood function)
  • matches the prior assumptions (prior distribution)

MAP solution ๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’[๐œ„] ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]) Using Bayes rule: ๐‘„ ๐œ’[๐œ„]|๐ฝ๐‘ˆ, ๐ฝ๐‘† =

๐‘„ ๐ฝ๐‘ˆ|๐œ’[๐œ„],๐ฝ๐‘† ๐‘„ ๐œ’[๐œ„],๐ฝ๐‘† ๐‘„ ๐ฝ๐‘ˆ

slide-17
SLIDE 17

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Registration problem

๐œ’โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]) = arg max

๐œ„

ln ๐‘ž(๐œ’ ๐œ„ ) + ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„] ) = arg min

๐œ„ โˆ’ ln ๐‘ž ๐œ’ ๐œ„

โˆ’ ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„] )

slide-18
SLIDE 18

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

The registration problem

Take home message: Registration is model fitting!!! Probabilistic formulation ๐œ„โˆ— = arg min

๐œ„ โˆ’ ln ๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’ ๐œ„

โˆ’ ln ๐‘ž ๐œ’ ๐œ„ Variational formulation ๐œ’โˆ— = arg min

๐œ’ ๐ธ ๐ฝ๐‘ˆ, ๐ฝ๐‘† โˆ˜ ๐œ’ + ๐œ‡๐‘†[๐œ’]

slide-19
SLIDE 19

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Gaussian processes

Define the Gaussian process ๐‘ฃ โˆผ ๐ป๐‘„ ๐œˆ, ๐‘™ with mean function ๐œˆ: ฮฉ โ†’ โ„2 and covariance function ๐‘™: ฮฉ ร— ฮฉ โ†’ โ„2ร—2 .

slide-20
SLIDE 20

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

  • We have a finite, parametric representation of the process.
  • We know the pdf for a deformation ๐‘ฃ

๐‘ž ๐‘ฃ = ๐‘ž ๐›ฝ = เท‘

๐‘—=1 ๐‘ 

1 2๐œŒ exp(โˆ’๐›ฝ๐‘—

2/2) = 1

๐‘Ž exp(โˆ’ 1 2 ๐›ฝ 2) Represent GP using only the first ๐‘  components of its KL-Expansion ๐‘ฃ = ๐œˆ + เท

๐‘—=1 ๐‘ 

๐›ฝ๐‘— ๐œ‡๐‘— ๐œš๐‘—, ๐›ฝ๐‘— โˆผ ๐‘‚(0, 1)

Parametric representation of Gaussian process

slide-21
SLIDE 21

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Registration problem

๐œ’โˆ— = arg min

๐œ„ โˆ’ ln ๐‘ž ๐œ’ ๐œ„

โˆ’ ln ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]) = arg min

๐œ„ โˆ’ln 1

Z exp(โˆ’ 1 2 ๐œ„ 2) โˆ’ ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„] = arg min

๐œ„

โˆ’ln 1 ๐‘Ž + 1 2 ๐œ„ 2 โˆ’ ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„] = arg min

๐œ„

1 2 ๐œ„ 2โˆ’ ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-22
SLIDE 22

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Summary: registration problem

  • Variational and probabilistic formulation are closely related
  • Prior can be seen as regularizer
  • Likelihood term is an image similarity
  • For a low-rank Gaussian process prior, the problem becomes parametric since

๐œ’[๐œ„](๐‘ฆ) = ๐‘ฆ + ๐œˆ(๐‘ฆ) + เท

๐‘—=1 ๐‘ 

๐œ„๐‘— ๐œ‡๐‘— ๐œš๐‘—(๐‘ฆ)

  • Can be optimized using gradient-descent schemes.
  • All the regularization assumptions are encoded in the eigenfunctions ๐œš๐‘—

arg min

๐œ„

1 2 ๐œ„ 2+ ln(๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„] )

slide-23
SLIDE 23

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Outline

  • The registration problem
  • Problem formulation
  • Registration as analysis by synthesis

problem

  • An algorithm using Gaussian process

priors

  • Priors for registration
  • Spline-based models, Radial basis

functions

  • Multis-scale and Spatially-varying models
  • Statistical deformation models
  • Likelihood functions
  • Landmark registration
  • Image to image registration
  • Surface to image registration
  • Advancing registration
slide-24
SLIDE 24

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Why are priors interesting?

๐œ„

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„])

slide-25
SLIDE 25

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Why are priors interesting?

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„])

๐œ„

slide-26
SLIDE 26

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

ex

Defining a Gaussian process

A Gaussian process ๐ป๐‘„ ๐œˆ, ๐‘™ is completely specified by a mean function ๐œˆ and covariance function (or kernel) ๐‘™.

  • ๐œˆ: ฮฉ โ†’ โ„๐‘’ defines how the average deformation looks like
  • ๐‘™: ฮฉ ร— ฮฉ โ†’ โ„๐‘’ร—๐‘’ defines how it can deviate from the mean
  • Must be positive semi-definite
slide-27
SLIDE 27

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

The mean function

  • Usual assumption:

๐œˆ ๐‘ฆ = ๐œˆ1(๐‘ฆ) โ‹ฎ ๐œˆ๐‘’(๐‘ฆ) = โ‹ฎ

  • The reference shape is an

average shape.

slide-28
SLIDE 28

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘ก exp(โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ2 )

๐‘ก = 1, ๐œ = 3 ๐‘ก = 1, ๐œ = 5 ๐‘ก = 2, ๐œ = 3

Scalar-valued Gaussian kernel

slide-29
SLIDE 29

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™(1)(๐‘ฆ, ๐‘ฆโ€ฒ) โ‹ฏ โ‹ฎ โ‹ฑ โ‹ฎ โ‹ฏ ๐‘™(๐‘’)(๐‘ฆ, ๐‘ฆโ€ฒ)

  • ๐‘™(1), โ€ฆ , ๐‘™(๐‘’): ๐’ด ร— ๐’ด โ†’ โ„ are scalar-valued kernels
  • ๐‘™ โˆถ ๐’ด ร— ๐’ด โ†’ โ„๐‘’ร—๐‘’ becomes a matrix valued kernel.

Assumption: Each dimension is modelled independently.

  • the output-dimensions are uncorrelated.

Diagonal kernel

slide-30
SLIDE 30

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = s1exp โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ1

2

s2exp โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ2

2

A model for smooth 2D deformations

slide-31
SLIDE 31

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘ก1 = ๐‘ก2 small, ๐œ1 = ๐œ2 large

A model for smooth deformations

slide-32
SLIDE 32

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘ก1 = ๐‘ก2 small, ๐œ1 = ๐œ2 small

A model for smooth deformations

slide-33
SLIDE 33

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐‘ก1 = ๐‘ก2 large, ๐œ1 = ๐œ2 large

A model for smooth deformations

slide-34
SLIDE 34

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Matern class of kernels

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐œ2 21โˆ’๐œ‰ ฮ“ ๐œ‰ 2 2๐œ‰ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ ๐œ

๐œ‰

๐ฟ๐‘ค( 2๐œ‰ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ ๐œ )

  • ฮ“ is the ฮ“ function, ๐‘™๐œ‰ the modified Bessel function and ๐œ‰, ๐œ are parameters
  • The derivatives are ๐œ‰ โˆ’ 1 times differentiable
  • Special cases:
  • ๐œ‰ =

1 2 : ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐œ2 exp(โˆ’ ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

)

  • ๐œ‰ =

3 2 : k x, xโ€ฒ = ๐œ2(1 + 3 ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

) exp(โˆ’

3 ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

)

  • ๐œ‰ โ†’ โˆž Gaussian kernel
slide-35
SLIDE 35

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Thin-plate splines

  • Minimize the bending energy of a metal sheet

๐‘† ๐œ’ = เท

๐‘™=1 ๐‘’

เถฑ

ฮฉ

๐›ผ๐‘ˆ๐›ผ๐œ’๐‘™ ๐‘ฆ

2 ๐‘’๐‘ฆ

  • Corresponding covariance function

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = 1 12 2 ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 3 โˆ’ 3๐‘†( ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 + ๐‘†3 where ๐‘† = max

๐‘ฆ,๐‘ฆโ€ฒโˆˆฮฉ โ€–๐‘ฆ โˆ’ ๐‘ฆโ€ฒโ€– Rohr, Karl, et al. "Landmark-based elastic registration using approximating thin-plate splines." IEEE Transactions on medical imaging 20.6 (2001): 526-534.

slide-36
SLIDE 36

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Elastic body splines

  • Mechanical model of an elastic body or material
  • Solution to the following PDE

๐œˆ๐›ผ2๐‘ฃ ๐‘ฆ + ๐œˆ + ๐œ‡ ๐›ผ ๐›ผ โ‹… ๐‘ฃ ๐‘ฆ = ๐‘‘|๐‘ฆ|

  • Corresponding (matrix-valued) covariance function (may not be positive definite)

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = 12 1 โˆ’ ๐œ‰ โˆ’ 1 |๐‘ฆ|2๐ฝ โˆ’ 3๐‘ฆ๐‘ฆ๐‘ˆ where ๐œ‰ = ๐œ‡ 2(๐œ‡ + ๐œˆ)

Kohlrausch, Jan, Karl Rohr, and H. Siegfried Stiehl. "A new class of elastic body splines for nonrigid registration of medical images." Journal of Mathematical Imaging and Vision 23.3 (2005): 253-280.

slide-37
SLIDE 37

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

B-Splines

  • Use B-Spline basis function

๐‘™ ๐‘ฆ, ๐‘ง = เท

๐‘™โˆˆโ„ค๐‘’

๐›พ ๐‘ก๐‘ฆ โˆ’ ๐‘™ ๐›พ ๐‘ก๐‘ง โˆ’ ๐‘™ Where ๐‘ก is a scaling constant

  • Rueckert, Daniel, et al. "Nonrigid registration using free-form deformations: application to breast MR images."

IEEE transactions on medical imaging 18.8 (1999): 712-721.

  • Klein, Stefan, et al. "Elastix: a toolbox for intensity-based medical image registration." IEEE transactions on

medical imaging 29.1 (2010): 196-205.

slide-38
SLIDE 38

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Statistical deformation models

Estimate mean and covariance function from data:

๐œˆ ๐‘ฆ = ๐‘ฃ ๐‘ฆ = 1 ๐‘œ เท

๐‘—โˆ’1 ๐‘œ

๐‘ฃ๐‘— (๐‘ฆ) ๐‘™๐‘‡๐‘ ๐‘ฆ, ๐‘ฆโ€ฒ = 1 ๐‘œ โˆ’ 1 เท

๐‘— ๐‘œ

(๐‘ฃ๐‘— ๐‘ฆ โˆ’ ๐‘ฃ(๐‘ฆ)) ๐‘ฃ๐‘— ๐‘ฆโ€ฒ โˆ’ ๐‘ฃ(๐‘ฆโ€ฒ)

๐‘ˆ

๐‘ฃ1 โˆถ ฮฉ โ†’ โ„2 ๐‘ฃ2 โˆถ ฮฉ โ†’ โ„2 โ€ฆ ๐‘ฃ๐‘œ โˆถ ฮฉ โ†’ โ„2

slide-39
SLIDE 39

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Summary: Priors

  • Leads to formulation of many standard transformation models in terms of Gaussian

process

  • Improves understanding of methods
  • Letโ€™s us switch between โ€œpriorsโ€
  • Purely conceptual formulation
  • No algorithms
  • Can sample and visualize deformations
  • Invaluable to check assumptions
slide-40
SLIDE 40

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Outline

  • The registration problem
  • Problem formulation
  • Registration as analysis by synthesis

problem

  • An algorithm using Gaussian process

priors

  • Priors for registration
  • Spline-based models, Radial basis

functions

  • Multis-scale and Spatially-varying models
  • Statistical deformation models
  • Likelihood functions
  • Landmark registration
  • Image to image registration
  • Surface to image registration
  • Advancing registration
slide-41
SLIDE 41

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Landmark likelihood

For one landmark pair (๐‘š๐‘†, ๐‘š๐‘ˆ): ๐‘ž ๐‘š๐‘ˆ ๐œ„, ๐‘š๐‘† = ๐‘‚ ๐œ’ ๐œ„ ๐‘š๐‘† , ๐œ2 For many landmarks ๐‘€ = ((๐‘š๐‘†

1, ๐‘š๐‘ˆ 1), โ€ฆ , (๐‘š๐‘† ๐‘œ, ๐‘š๐‘ˆ ๐‘œ))

๐‘ž ๐‘š1

๐‘ˆ, โ€ฆ , ๐‘š๐‘œ ๐‘ˆ ๐œ„, ๐‘š๐‘† 1, โ€ฆ , ๐‘š๐‘† ๐‘œ

= เท‘

๐‘—

๐‘‚ ๐œ’ ๐œ„ ๐‘š๐‘† , ๐œ2

๐‘š1

๐‘†

๐‘š1

๐‘ˆ

๐‘š๐‘—

๐‘†

๐‘š๐‘—

๐‘ˆ

slide-42
SLIDE 42

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Given:

  • Gaussian process: ๐‘ฃ โˆผ ๐ป๐‘„(๐œˆ, ๐‘™)
  • Observations: {(๐‘š๐‘—

๐‘†, เทค

๐‘ฃ๐‘—), ๐‘— = 1 , โ€ฆ , ๐‘›} Assume: ๐‘ฃ เทค ๐‘ฆ๐‘— + ๐œ— = เทค ๐‘ฃ๐‘— with ๐œ— โˆผ ๐‘‚(0, ๐œ2๐ฝ2ร—2). Goal:

  • Find posterior distribution

๐‘ฃ | ๐‘š1

๐‘†, โ€ฆ , ๐‘š๐‘œ ๐‘†, เทค

๐‘ฃ1, โ€ฆ , เทค ๐‘ฃ๐‘›

เทค ๐‘ฃ2

Landmark likelihood and GP Regression

เทค ๐‘ฃ1 ๐‘š๐‘†

1

๐‘š๐‘†

๐‘œ

slide-43
SLIDE 43

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐œˆ๐‘ž(๐‘ฆ) = ๐œˆ ๐‘ฆ + ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘›ร—2๐‘› )โˆ’1 เทฅ ๐’— โˆ’ ๐œˆ(๐‘) ๐‘™๐‘ž ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ โˆ’ ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘›ร—2๐‘› )โˆ’1๐ฟ(๐‘, ๐‘ฆโ€ฒ)

The posterior ๐‘ฃ |๐‘š1

๐‘†, โ€ฆ , ๐‘š๐‘œ ๐‘†, เทค

๐‘ฃ1, โ€ฆ , เทค ๐‘ฃ๐‘› is a Gaussian process

๐ป๐‘„ ๐œˆ๐‘ž, ๐‘™๐‘ž

Its parameters are known analytically.

Gaussian process regression

slide-44
SLIDE 44

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Landmark registration

slide-45
SLIDE 45

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Landmark likelihood: Some remarks

  • Classical problems in registration
  • Needs either many landmark points or good structure of prior to achieve good results

Rohr, Karl, et al. "Landmark-based elastic registration using approximating thin-plate splines." IEEE Transactions on medical imaging 20.6 (2001): 526-534.

slide-46
SLIDE 46

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Image to image registration

  • What is a good synthesis function?

Simple choice: Use the warped reference image! ๐ฝ๐‘† โˆ˜ โ„Ž๐œ„

โˆ’1

slide-47
SLIDE 47

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Image likelihood (single point)

  • Probabilistic model: ๐ฝ๐‘ˆ โ„Ž๐œ„ ๐‘ฆ

= ๐ฝ๐‘† ๐‘ฆ + ๐œ—, ๐œ— โˆผ ๐‘‚ 0, ๐œ2 , ๐‘ฆ โˆˆ ฮฉR

  • Likelihood for a single point ๐‘ฆ:

๐‘ž ๐ฝ๐‘ˆ โ„Ž๐œ„(๐‘ฆ) ๐œ„, ๐ฝ๐‘†, ๐‘ฆ โˆผ ๐‘‚ ๐ฝ๐‘† ๐‘ฆ , ๐œ2

๐ฝ๐‘†: ฮฉ โ†’ โ„ ๐ฝ๐‘ˆ: ฮฉ โ†’ โ„ ๐ฝ๐‘†(x) โ„Ž๐œ„ ๐ฝ๐‘ˆ(โ„Ž๐œ„(x))

slide-48
SLIDE 48

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Image likelihood (full image)

  • Assuming that noise is independent at each point:

๐‘ž ๐ฝ๐‘ˆ โˆ˜ โ„Ž๐œ„ ิฆ ๐œ„, ๐ฝ๐‘† โˆผ เท‘

๐‘ฆโˆˆI๐‘†

๐‘‚ ๐ฝ๐‘† ๐‘ฆ , ๐œ2 ๐‘ž ๐ฝ๐‘ˆ โˆ˜ โ„Ž๐œ„ ิฆ ๐œ„, ๐ฝ๐‘† = 1 ๐‘Ž เท‘

๐‘ฆโˆˆ๐ฝ๐‘†

exp(โˆ’ ๐ฝ๐‘† ๐‘ฆ โˆ’ ๐ฝ๐‘ˆ โ„Ž๐œ„ ๐‘ฆ

2

๐œ2 )

slide-49
SLIDE 49

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

The sum of squared distance metric

ln ๐‘ž ๐ฝ๐‘ˆ โˆ˜ โ„Ž๐œ„ ิฆ ๐œ„, ๐ฝ๐‘† = ln 1 ๐‘Ž เท‘

๐‘ฆโˆˆ๐ฝ๐‘†

exp โˆ’ ๐ฝ๐‘† ๐‘ฆ โˆ’ ๐ฝ๐‘ˆ โ„Ž๐œ„ ๐‘ฆ

2

๐œ2 = โˆ’๐‘Ž1 เท

๐‘ฆโˆˆ๐ฝ๐‘†

๐ฝ๐‘† ๐‘ฆ โˆ’ ๐ฝ๐‘ˆ โ„Ž๐œ„ ๐‘ฆ

2

= ๐ธ๐‘‡๐‘‡๐ธ[๐ฝ๐‘†, ๐ฝ๐‘ˆ, โ„Ž๐œ„]

  • The sum of squared differences implements an independence assumption
  • The parameter ๐œ2 becomes a weighting constant.
slide-50
SLIDE 50

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Likelihood from other metrics

  • We can use any standard image metric ๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ, โ„Ž๐œ„ to define a likelihood function:

๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘† = 1 ๐‘Ž exp โˆ’(๐ธ ๐ฝ๐‘†, ๐ฝ๐‘ˆ, โ„Ž๐œ„ )

  • Examples:
  • Normalized cross correlations
  • Mutual information
  • โ€ฆ
  • Makes it possible to reformulate any standard registration problem into the analysis by

synthesis framework.

  • Special case of collective likelihood
slide-51
SLIDE 51

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

What about surface registration?

Reference (surface): ฮ“๐‘† ฮ“๐‘† ฮ“๐‘ˆ โ„Ž๐œ„ Target (surface): ฮ“๐‘ˆ

slide-52
SLIDE 52

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

A trick: Implicit definition of a surface

  • Any surface ฮ“ can be represented as

the zero level set of a level set function ฮฆ ฮ“ = ๐‘ฆ ฮฆ ๐‘ฆ = 0}

  • Popular choice is the signed distance

function defined as ๐ธฮ“ ๐‘ฆ = CP

ฮ“(๐‘ฆ) โˆ’ ๐‘ฆ

with CP

ฮ“(๐‘ฆ) = arg min ๐‘ฆโ€ฒโˆˆฮ“ โ€–๐‘ฆ โˆ’ ๐‘ฆโ€ฒโ€– ๐ธฮ“ ๐‘ฆ = โˆ’30 ๐ธฮ“ ๐‘ฆ = โˆ’15 ๐ธฮ“ ๐‘ฆ = 0 ๐ธฮ“ ๐‘ฆ = 15 ๐ธฮ“ ๐‘ฆ = 30 ๐ธฮ“ ๐‘ฆ = 45

slide-53
SLIDE 53

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Reference ๐ธ๐‘†: ฮฉ๐‘† โ†’ โ„ Target ๐ธ๐‘ˆ โˆถ ฮฉ๐‘ˆ โ†’ โ„

Surface registration as image registration

  • We define the distance functions and use image to image likelihoods

๐‘ž ๐ธ๐‘ˆ โ„Ž๐œ„(๐‘ฆ) ิฆ ๐œ„, ๐ธ๐‘†, ๐‘ฆ โˆผ ๐‘‚ ๐ธ๐‘†(๐‘ฆ), ๐œ2

  • Most likely solution will map points on the zero level-sets to each other
  • Noise parameter ๐œ2 has geometric interpretation (variance of distance between the mapped points)

๐‘ฆ

โ„Ž๐œ„(๐‘ฆ)

slide-54
SLIDE 54

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐œ1 ๐‘ฆ1

Active shape models (surface to image registration)

  • ASMs model each profile as a normal

distribution ๐‘ž ๐œ๐‘— = ๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

  • Single profile point ๐‘ฆ๐‘—:

๐‘ž I๐‘ˆ(โ„Ž๐œ„(๐‘ฆ๐‘—))|๐œ„, ๐‘ฆ๐‘— = ๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

  • Image likelihood:

๐‘ž I๐‘ˆ(โ„Ž๐œ„(๐‘ฆ))|๐œ„, ฮ“

๐‘† = เท‘ ๐‘—

๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

slide-55
SLIDE 55

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Summary: Likelihood functions

  • Synthesis function is often just a warp of a reference
  • Works well if modality and dimensionality is the same
  • Leads to very simple systems
  • We get probabilistic interpretations of some standard metrics
  • Makes assumptions more clear
  • If we do not want full interpretation any metric can be turned into a likelihood function
slide-56
SLIDE 56

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Outline

  • The registration problem
  • Problem formulation
  • Registration as analysis by synthesis

problem

  • An algorithm using Gaussian process

priors

  • Priors for registration
  • Spline-based models
  • Radial basis functions
  • Statistical deformation models
  • Likelihood functions
  • Landmark registration
  • Image to image registration
  • Surface to image registration
  • Advancing registration
  • More expressive priors
  • Hybrid registration
  • ASM using the Metropolis Hastings

algorithm

slide-57
SLIDE 57

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

  • 1. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘” ๐‘ฆ ๐‘” ๐‘ฆโ€™ ๐‘ˆ, ๐‘”: ๐‘Œ โ†’ โ„๐‘’
  • 2. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐›ฝ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ , ๐›ฝ โˆˆ โ„+

(scaling)

  • 3. k ๐‘ฆ, ๐‘ฆโ€ฒ = ๐ถ๐‘ˆ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ ๐ถ, B โˆˆ โ„๐‘ ร—๐‘’ (lifting)
  • 4. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ + ๐‘™2 ๐‘ฆ, ๐‘ฆโ€ฒ

(or relationship)

  • 5. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ โ‹… ๐‘™2(๐‘ฆ, ๐‘ฆโ€ฒ)

(and relationship)

  • 6. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™(๐œš ๐‘ฆ , ๐œš ๐‘ฆโ€ฒ )

(domain warp)

Constructing s.p.d. kernels

slide-58
SLIDE 58

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Multi-scale kernels

Add kernels that act on different scales: ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = เท

๐‘—=0 ๐‘œ

เท

๐‘™โˆˆโ„ค๐‘’

๐›พ 2โˆ’๐‘—๐‘ฆ โˆ’ ๐‘™ ๐›พ 2โˆ’๐‘—๐‘ง โˆ’ ๐‘™ Opfer, Roland. "Multiscale kernels." Advances in computational mathematics 25.4 (2006): 357-380.

slide-59
SLIDE 59

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Multi-scale kernel

slide-60
SLIDE 60

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Anisotropic priors

Scale deformations differently in each direction k ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘†๐‘ˆ ๐‘ก1 ๐‘ก2 ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ ๐‘ก1 ๐‘ก2 ๐‘†

  • R is a rotation matrix
  • ๐‘™ is scalar valued
  • ๐‘ก1, s2 scaling factors
slide-61
SLIDE 61

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Anisotropic priors

slide-62
SLIDE 62

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Spatially-varying priors

Use different models for different regions ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐œ“ ๐‘ฆ ๐œ“ ๐‘ฆโ€ฒ ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ + 1 โˆ’ ๐œ“ ๐‘ฆ (1 โˆ’ ๐œ“ ๐‘ฆโ€ฒ ) ๐‘™2(๐‘ฆ, ๐‘ฆโ€ฒ) ฯ‡ ๐‘ฆ = แ‰Š1 if ๐‘ฆ โˆˆ thumb region

  • therwise

๐œ“ ๐‘ฆ = 1 ๐œ“ ๐‘ฆ = 0 Freiman, Moti, Stephan D. Voss, and Simon K. Warfield. "Demons registration with local affine adaptive regularization: application to registration of abdominal structures." Biomedical Imaging: From Nano to Macro, 2011 IEEE International Symposium on. IEEE, 2011.

slide-63
SLIDE 63

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Spatially-varying priors

slide-64
SLIDE 64

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

๐œˆ๐‘ž(๐‘ฆ) = ๐œˆ ๐‘ฆ + ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘›ร—2๐‘› )โˆ’1 เทฅ ๐’— โˆ’ ๐œˆ(๐‘) ๐‘™๐‘ž ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ โˆ’ ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘›ร—2๐‘› )โˆ’1๐ฟ(๐‘, ๐‘ฆโ€ฒ)

The posterior ๐‘ฃ | เทค ๐‘ฆ1 , โ€ฆ , เทค ๐‘ฆ๐‘›, เทค ๐‘ฃ1, โ€ฆ , เทค ๐‘ฃ๐‘› is a Gaussian process

๐ป๐‘„ ๐œˆ๐‘ž, ๐‘™๐‘ž

Its parameters are known analytically.

Landmark registration using Gaussian processes

slide-65
SLIDE 65

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Landmark registration

slide-66
SLIDE 66

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Hybrid registration

  • We can now combine landmark registration with intensity:

1. Compute a posterior model using landmarks ๐ป๐‘„(๐œˆ, ๐‘™) 2. Use ๐ป๐‘„(๐œˆ๐‘ž, ๐‘™๐‘ž) as prior for registration with any image likelihood you like

  • Example of Bayesian inference:

๐‘ž ๐‘ฃ โ†’ ๐‘ž ๐‘ฃ ๐‘€๐‘†, ๐‘€๐‘ˆ โ†’ ๐‘ž ๐‘ฃ ๐‘€๐‘†, ๐‘€๐‘ˆ, ๐ฝ๐‘†, ๐ฝ๐‘ˆ

  • Elegant solution to hybrid registration

Wรถrz, Stefan, and Karl Rohr. "Hybrid spline-based elastic image registration using analytic solutions of the navier equation." Bildverarbeitung fรผr die Medizin 2007. Springer Berlin Heidelberg, 2007. 151-155. Lu, Huanxiang, Philippe C. Cattin, and Mauricio Reyes. "A hybrid multimodal non-rigid registration of MR images based on diffeomorphic demons." Engineering in Medicine and Biology Society (EMBC), 2010 Annual International Conference of the IEEE. IEEE, 2010.

slide-67
SLIDE 67

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

  • Frees us from โ€œtyranny of differentiabilityโ€
  • Easy to integrate contours
  • Letโ€™s us model effects such as outliers, artifacts, โ€ฆ in principled ways
  • Makes it possible to integrate results of bottom up proposals (landmark detectors)
  • Letโ€™s us reason about uncertainty of a solution

Draw a sample ๐‘ฆโ€ฒ from ๐‘…(๐‘ฆโ€ฒ|๐‘ฆ) Propose With probability ๐›ฝ = min

๐‘„ ๐’šโ€ฒ ๐‘„ ๐’š , 1

accept ๐’šโ€ฒ as new sample Verify

Use Metropolis-Hastings for registration

67

slide-68
SLIDE 68

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Call to arms

  • Our MCMC scheme was designed for

really difficult problems

  • 3D => 2D
  • Complex illumination
  • No scale
  • Uncontrolled environment
  • Letโ€™s start together to tackle the

complicated problems in medical image analysis.

slide-69
SLIDE 69

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2016 | BASEL

Call to arms

  • Our MCMC scheme was designed for

really difficult problems

  • 3D => 2D
  • Complex illumination
  • No scale
  • Uncontrolled environment
  • Letโ€™s start together to tackle the

complicated problems in medical image analysis