Metamorphosis on brain MRI containing Glioblastoma
Anton François
Supervised by
Joan Glaunès & Pietro Gori
Introduction
Metamorphosis
Constrained Metamorphosis
Segmentation with TDA
Anton François - 23/05/2023
Image registration of medical images is an important step in many medical applications:
Before
linear registration:
After
Image registration
Anton François - 23/05/2023
Diffeomorphic image registration:
Finding a smooth one-to-one (non-linear) deformation to be biologically plausible (no holes, shearing, tearing...)
But works only with healthy images...
Image registration
Anton François - 23/05/2023
Registration with topological changes
Healthy brain
Brain with a glioblastoma
Anton François - 23/05/2023
Glioma registration problem
MNI template
ET - GD enhancing tumour
ED - Peritumoural edematous/invaded tisue
NRC - Necrotic Tumour Core
Anton François - 23/05/2023
State of the art
For glioma registration:
LDDMM [Avants et al., 2008; Beg et al., 2005; Zhang and Fletcher, 2018] &
Metamorphosis [Holm et al., 2009; Trouvé and Younes, 2005]
We will base our registration on the methods:
Anton François - 23/05/2023
Source
Target
Automatic non-linear
matching
LDDMM
Anton François - 23/05/2023
Source
Target
Automatic non-linear
matching
LDDMM: Large Diffeomorphic Deformation Metric Mapping
Anton François - 23/05/2023
Let V be the Reproducing Kernel Hilbert Space (RKHS) of vector fields whose kernel is K. We denote L:V→V∗ the Riesz operator such that ∥v∥V2=(Lv,v) .
Let K be the Gaussian reproducing kernel with K(x,y)=exp(−2σ2∣x−y∣2)⋅IdRd
V is an admissible RKHS of vector fields.
Deformation as a flow of vector field
∂tφt=vt∘φt
vt∈V,∀t∈[0,1]
Anton François - 23/05/2023
G is a group of diffeomorphisms
The deformation defined from the ordinary differential equation:
∂tφt=vt∘φt;φ0=Id
with vt∈V,∀t∈[0,1], is a diffeomorphism. We note φv∈G such a diffeomorphism.
G := Space of Deformations
Deformation as a flow of vector field
Anton François - 23/05/2023
∂tφt=vt∘φt;φ0=Id
Image transport (advection): ∂tIt=vt⋅∇It
Deformed image
It=I0∘(φv)−1
The deformation acts on images.
Geodesic := Shortest path for the exact matching:
infv∫01∥vt∥V2dt
Anton François - 23/05/2023
LDDMM can reach only images with same topology
Metamorphosis deforms images and adds intensity.
Making the registration of images B and C possible.
∂tIt=vt⋅∇It
+μzt
Topology and appearances variations
Implementation
Anton François - 23/05/2023
A Metamorphosis on I is a pair of curves (φt,ψt), respectively on G and I, with φ0=Id.
G := Space of Deformations
I := Space of images
ψt is the intensity changes evolution part: It=ψt∘(φt)−1
Anton François - 23/05/2023
Metamorphosis
⎩⎨⎧vtz˙tI˙t=−μρKσ⋆ (zt∇It)=−∇⋅(ztvt) =−⟨vt,∇It⟩+μzt
Advection equation with source
Continuity equation
By computing the Euler-Lagrange equation of the exact matching cost :
and doing the variation with respect to I and v we obtain this set of geodesic equations:
[Trouvé & Younes, 2005]
EM(I,v)= 21∫01∥vt∥V2+ρ∥zt∥L22 dts.t. I0=S,I1=T
Anton François - 23/05/2023
Metamorphosis Optimisation
via Geodesic shooting
⎩⎨⎧vt∂tzt∂tIt=−μρKσ⋆ (zt∇It)=−∇⋅(ztvt) =−⟨vt,∇It⟩+μzt
We minimize the inexact matching cost :
HM(I,v)=21∥I1−T∥22+2λ∫01∥vt∥V2+ρ∥zt∥L22 dt
Geodesic Integration
z0
I1
Step 1:
Step 2:
We iterate over two steps:
Anton François - 23/05/2023
We minimize this cost :
HM(I,v)=21∥I1−T∥22+2λ∫01∥vt∥V2+ρ∥zt∥L22 dt
⇔HM(z0)=21∥I1−T∥22+2λ(∥z0∇I0∥V2+ρ∥z0∥L22)
∇HM and adjoint equations computed
with auto differentiation.
v0=−μρK⋆(z0∇I0)
∥v0∥V+ρ∥z0∥L2=∥vt∥V+ρ∥zt∥L2,∀t∈[0,1]
Metamorphosis Optimisation
via Geodesic shooting
Anton François - 23/05/2023
Lagrangian Formulation
x′(t)=v(t,x)
Lagrangian scheme
Not suitable for images
Eulerian scheme
It+δt=It−δt(vt×∇It)
Eulerian Formulation
∂tI(t,x)=−v(t,x)⋅∇I(t,x)
Integration of the geodesics equations
Anton François - 23/05/2023
Schemes stability
Field aberations
We have to augment the number of time steps -> slow
Anton François - 23/05/2023
Semi-Lagrangian scheme principle
∂tIt=vt⋅∇It+μzt
Semi-Lagrangian scheme
It+δt=Interp(It,φvt)+δtμzt
Anton François - 23/05/2023
Schemes stability
Image integration more stable
residual instabilities
Anton François - 23/05/2023
Schemes stability
Stable image
Stable residual
Semi-Lagrangian scheme on residual
zt+δt=Interp(zt,φvt)−δt ztdiv(vt)
∂tzt=−div(ztvt)
- Full semi-Lagrangian -
Anton François - 23/05/2023
github.com/antonfrancois/Demeter_metamorphosis
Anton François - 23/05/2023
Problem solved ?
ρ and μ control ratio between intensity changes and deformation
small intensity changes
big intensity changes
Problem solved ?
small intensity changes
big intensity changes
NO !
Residual entanglement!
Anton François - 23/05/2023
⎩⎨⎧vtz˙tI˙t=−μρKσ⋆ (zt∇It)=−∇⋅(ztvt) =−vt ⋅∇It+μMtzt
Let (Mt)t∈[0,1] be a continuous temporal mask. By computing the Euler-Lagrange equation of the exact matching cost :
EWM(I,v)=21∫01∥vt∥V2+ρ⟨zt,Mtzt ⟩L2dts.t. I0=S,I1=T
and doing the variation with respect to I and v we obtain this set of geodesic equations:
⟨zt,Mtzt⟩L2
Mt
Anton François - 23/05/2023
Source
Target
LDDMM
Metamorphosis
WM
A static mask gets stuck
Anton François - 23/05/2023
with a growing mask.
1. We set M1 as the topological difference segmentation.
2. We initialise M0 as a small ball at its center.
3. We register M0 to M1 using LDDMM.
Simple and realistic prior modelling:
Anton François - 23/05/2023
Source
Target
WM
WM w. Growing mask
with a growing mask.
Anton François - 23/05/2023
With textured images,
no mass effect is produced
WM fails on more realistic images
Anton François - 23/05/2023
Mt : Adding intensities
Oriented Metamorphosis
Pt: Indicates where the vector field should be followed
wt: vector field to follow
We want to force the registration to follow the LDDMM field.
Anton François - 23/05/2023
Let (Mt)t∈[0,1] and (Pt)t∈[0,1] be two continuous temporal masks and wt∈V, an admissible vector field.
By computing the Euler-Lagrange equation of the exact matching cost:
ECM(I,v)=∫01∥vt∥V2+ρ⟨zt,Mtzt⟩L2+γ∥Pt(vt−wt)∥V2 dt
Oriented & Weighted
s.t.,I0=S,I1=T
∥Pt(vt−wt)∥V2
Anton François - 23/05/2023
Let (Mt)t∈[0,1] and (Pt)t∈[0,1] be two continuous temporal masks and wt∈V, an admissible vector field.
By computing the Euler-Lagrange equation of the exact matching cost:
EWM(I,v)=∫01∥vt∥V2+ρ⟨zt,Mtzt⟩L2+γ∥Pt(vt−wt)∥V2 dt
Oriented & Weighted
s.t.,I0=S,I1=T
∥Pt(vt−wt)∥V2
Oriented Norm:
We seak to estimate vt similar to wt where the mask Pt is positive.
Anton François - 23/05/2023
Let (Mt)t∈[0,1] and (Pt)t∈[0,1] be two continuous temporal masks and wt∈V, an admissible vector field.
By computing the Euler-Lagrange equation of the exact matching cost:
ECM(I,v)=∫01∥vt∥V2+ρ⟨zt,Mtzt⟩L2+γ∥Pt(vt−wt)∥V2 dt
and doing the variation with respect to I and v we obtain this set of geodesic equations:
Oriented & Weighted
s.t.,I0=S,I1=T
Theorem:
⎩⎨⎧vtz˙tI˙t=−μ(1+γPt)ρK⋆(zt∇It)+1+γPtγPtwt=−∇⋅(ztvt) =−vt,⋅∇It+μMtzt
μ(1+γPt)ρ
1+γPtγPt
Anton François - 23/05/2023
CM
WM
It
It & φvt
zt
Constrained Metamorphosis
Results on ToyExamples
Anton François - 23/05/2023
On real data: BraTS 2021
Registration validation using manually segmented ventricles (40 subjects).
Registered ventricles overlap measured with DICE score.
Constrained Metamorphosis
Weighted Metamorphosis
Anton François - 23/05/2023
Qualitative results
Anton François - 23/05/2023
Quantitative Results:
Lower the better
Higher the better
Anton François - 23/05/2023
BraTSReg pré- to post- operative registration
Lower the better
Anton François - 23/05/2023
conclusion & perspective
Framework to add priors into Metamorphosis
Slower because of the increasing complexity
Anton François - 23/05/2023
conclusion & perspective
Framework to add priors into Metamorphosis
We have shown that growth has to drive registration
Implement Deep-Learning Version.
Prior modelisation: We can incorporate more complex glioma model (e.g., GLISTR [Gooya et al.]) or a growth model [Kaltenmark, 2016].
Versatile: can be used for healthy/pathological or pathological/pathological applications or others.
Automatic prior selection
Raphaël Tinarrage
TDA Glioblastoma Segmentation
Anton François - 23/05/2023
Statistical Atlas: [Roux, 2019] Glioma frequency of apparition by voxels.
Allows to show correlations between glioma location and symptoms
Anton François - 23/05/2023
A Diffeomorphic Atlas represents shape variations, it is a Template along with registrations from the template to each data points (images)
Given a sequence of images I1,…,In and a notion of distance d corresponding to the length of a geodesic path in shape space. We compute the template T by minimising:
M(T)=2n1k=1∑nd(T,Ik)2
Speculations about atlases.
Can we build a Metamorphic atlas ?
How to estimate T for a glioma data base?
A combination of a Statistical Atlas and a diffeomorphic shape space.
Anton François - 23/05/2023
Can we build a CM atlas ?
Not as it is: Because it is prior dependent, one can not define a single metric for a whole data set
Technically speaking, yes but there are interpretability issues.
Overall outcomes & Perspectives
First open-source implementation of Metamorphosis, with novel integration scheme and GPU support.
Framework to register complex medical images with increased explainability using a simplitistic model.
Glioblastoma segmentation method using TDA
Th
an
k
You !