Diffeomorphometry

Diffeomorphometry is the metric study of imagery, shape and form in the discipline of computational anatomy (CA) in medical imaging. The study of images in computational anatomy rely on high-dimensional diffeomorphism groups $$ \varphi \in \operatorname{Diff}_V $$ which generate orbits of the form $$ \mathcal{I} \doteq

\{ \varphi \cdot I \mid \varphi \in \operatorname{Diff}_V \} $$, in which images $$ I \in \mathcal{I} $$ can be dense scalar magnetic resonance or computed axial tomography images. For deformable shapes these are the collection of manifolds $$ \mathcal{M} \doteq

\{ \varphi \cdot M \mid \varphi \in \operatorname{Diff}_V \} $$, points, curves and surfaces. The diffeomorphisms move the images and shapes through the orbit according to $$(\varphi,I)\mapsto \varphi \cdot I$$ which are defined as the group actions of computational anatomy.

The orbit of shapes and forms is made into a metric space by inducing a metric on the group of diffeomorphisms. The study of metrics on groups of diffeomorphisms and the study of metrics between manifolds and surfaces has been an area of significant investigation. In Computational anatomy, the diffeomorphometry metric measures how close and far two shapes or images are from each other. Informally, the metric is constructed by defining a flow of diffeomorphisms $$\dot \phi_t, t \in [0,1], \phi_t \in \operatorname{Diff}_V$$ which connect the group elements from one to another, so for $$ \varphi,\psi \in \operatorname{Diff}_V $$ then $$\phi_0 = \varphi , \phi_1=\psi$$. The metric between two coordinate systems or diffeomorphisms is then the shortest length or geodesic flow connecting them. The metric on the space associated to the geodesics is given by$$\rho(\varphi,\psi) = \inf_{\phi: \phi_0=\varphi,\phi_1 = \psi} \int_0^1 \| \dot \phi_t \|_{\phi_t} \, dt$$. The metrics on the orbits $$\mathcal{I},\mathcal{M}$$ are inherited from the metric induced on the diffeomorphism group.

The group $$ \varphi \in \operatorname{Diff}_V $$ is thusly made into a smooth Riemannian manifold with Riemannian metric $$ \| \cdot \|_\varphi $$  associated to the tangent spaces at all $$ \varphi \in\operatorname{Diff}_V $$. The Riemannian metric satisfies at every point of the manifold $$ \phi \in \operatorname{Diff}_V $$ there is an  inner product inducing the norm  on the tangent space $$ \| \dot \phi_t  \|_{\phi_t} $$  that varies smoothly across $$ \operatorname{Diff}_V $$.

Oftentimes, the familiar Euclidean metric is not directly applicable because the patterns of shapes and images don't form a vector space. In the Riemannian orbit model of Computational anatomy, diffeomorphisms acting on the forms $$\varphi \cdot I \in \mathcal {I}, \varphi \in \operatorname{Diff}_V, M \in \mathcal{M}$$ don't act linearly. There are many ways to define metrics, and for the sets associated to shapes the Hausdorff metric is another. The method used to induce the Riemannian metric is to induce the metric on the orbit of shapes by defining it in terms of the metric length between diffeomorphic coordinate system transformations of the flows. Measuring the lengths of the geodesic flow between coordinates systems in the orbit of shapes is called diffeomorphometry.

The diffeomorphisms group generated as Lagrangian and Eulerian flows
The diffeomorphisms in computational anatomy are generated to satisfy the Lagrangian and Eulerian specification of the flow fields, $$ \varphi_t, t \in [0,1] $$, generated via the ordinary differential equation

with the Eulerian vector fields $$ v \doteq (v_1,v_2,v_3) $$ in $$ {\mathbb R}^3   $$  for $$v_t = \dot \varphi_t \circ \varphi_t^{-1}, t \in [0,1]$$. The inverse for the flow is given by $$ \frac{d}{dt} \varphi_t^{-1} = -(D \varphi_t^{-1}) v_t, \ \varphi_0^{-1} = \operatorname{id}, $$ and the $$3 \times 3$$ Jacobian matrix for flows in $$\mathbb{R}^3$$ given as $$ \ D\varphi \doteq \left(\frac{\partial \varphi_i}{\partial x_j}\right). $$

To ensure smooth flows of diffeomorphisms with inverse, the vector fields $$  {\mathbb R}^3   $$ must be at least 1-time continuously differentiable in space  which are modelled as elements of the Hilbert space  $$(V, \| \cdot \|_V )$$ using the Sobolev embedding theorems so that each element $$v_i \in H_0^3, i=1,2,3,$$ has 3-square-integrable derivatives thusly implies $$(V, \| \cdot \|_V )$$ embeds smoothly in 1-time continuously differentiable functions. The diffeomorphism group are flows with vector fields absolutely integrable in Sobolev norm:

The Riemannian orbit model
Shapes in Computational Anatomy (CA) are studied via the use of diffeomorphic mapping for establishing correspondences between anatomical coordinate systems. In this setting, 3-dimensional medical images are modelled as diffemorphic transformations of some exemplar, termed the template $$ I_{temp} $$, resulting in the observed images to be elements of the random orbit model of CA. For images these are defined as $$ I \in \mathcal {I}

\doteq \{ I = I_{temp} \circ \varphi, \varphi \in \operatorname{Diff}_V \} $$, with for charts representing sub-manifolds denoted as $$\mathcal{M} \doteq \{ \varphi \cdot M_{temp} : \varphi \in \operatorname{Diff}_V \}$$.

The Riemannian metric
The orbit of shapes and forms in Computational Anatomy are generated by the group action $$\mathcal{I} \doteq \{ \varphi \cdot I : \varphi \in \operatorname{Diff}_V \}$$, $$\mathcal{M} \doteq \{ \varphi \cdot M : \varphi \in \operatorname{Diff}_V \}$$. These are made into a Riemannian orbits by introducing a metric associated to each point and associated tangent space. For this a metric is defined on the group which induces the metric on the orbit. Take as the metric for Computational anatomy at each element of the tangent space $$\varphi \in \operatorname{Diff}_V$$ in the group of diffeomorphisms


 * $$ \| \dot \varphi \|_\varphi \doteq \| \dot \varphi \circ \varphi^{-1} \|_V=\| v \|_V, $$

with the vector fields modelled to be in a Hilbert space with the norm in the Hilbert space $$(V, \| \cdot \|_V )$$. We model $$V$$ as a reproducing kernel Hilbert space (RKHS) defined by a 1-1, differential operator $$ A: V \rightarrow V^* $$, where $$ V^*  $$ is the dual-space. In general,  $$ \sigma \doteq Av \in V^* $$ is a generalized function or distribution, the linear form  associated to the inner-product and norm for generalized functions are interpreted by integration by parts according to for $$v,w \in V$$,


 * $$ \langle v, w \rangle_V \doteq \int_X A v \cdot w \, dx, \ \| v\|_V^2 \doteq \int_X A v \cdot v \, dx, \ v,w \in V \.

$$

When $$ Av \doteq \mu \,dx $$, a vector density, $$\int Av \cdot v \,dx \doteq \int \mu \cdot v \, dx = \sum_{i=1}^3 \mu_i v_i \, dx.$$

The differential operator is selected so that the Green's kernel associated to the inverse is sufficiently smooth so that the vector fields support 1-continuous derivative. The Sobolev embedding theorem arguments were made in demonstrating that 1-continuous derivative is required for smooth flows. The Green's operator generated from the Green's function(scalar case) associated to the differential operator smooths.

For proper choice of $$A$$ then $$ (V,\| \cdot \|_V) $$ is an RKHS with the operator $$ K = A^{-1}: V^* \rightarrow V $$. The Green's kernels associated to the differential operator smooths since for controlling enough derivatives in the square-integral sense the kernel $$ k(\cdot,\cdot)

$$ is continuously differentiable in both variables implying


 * $$ K Av (x)_i \doteq \sum_j \int_{{\mathbb R}^3} k_{ij}(x,y) Av_j(y) \,dy \in V \.

$$

The right-invariant metric on diffeomorphisms
The metric on the group of diffeomorphisms is defined by the distance as defined on pairs of elements in the group of diffeomorphisms according to This distance provides a right-invariant metric of diffeomorphometry, invariant to reparameterization of space since for all $$ \phi \in \operatorname{Diff}_V $$,


 * $$ d_{\operatorname{Diff}_V}(\psi, \varphi) = d_{\operatorname{Diff}_V}(\psi \circ \phi, \varphi \circ \phi).$$

The metric on shapes and forms
The distance on images, $$ d_{\mathcal{I}}:\mathcal{I} \times \mathcal{I}\rightarrow \R^+ $$,

The distance on shapes and forms, $$ d_{\mathcal{M}}:\mathcal{M} \times \mathcal{M}\rightarrow \R^+ $$,

The metric on geodesic flows of landmarks, surfaces, and volumes within the orbit
For calculating the metric, the geodesics are a dynamical system, the flow of coordinates $$ t \mapsto \phi_t \in \operatorname{Diff}_V $$ and the control the vector field $$ t \mapsto v_t \in V$$ related via $$ \dot \phi_t = v_t \cdot \phi_t,\phi_0=\operatorname{id}. $$ The Hamiltonian view reparameterizes the momentum distribution $$ Av \in V^* $$ in terms of the Hamiltonian momentum, a Lagrange multiplier $$ p: \dot \phi \mapsto (p\mid\dot \phi) $$ constraining the Lagrangian velocity $$ \dot \phi_t = v_t \circ \phi_t$$.accordingly:

H(\phi_t,p_t,v_t)=\int_X p_t \cdot (v_t \circ \phi_t) \, dx-\frac{1}{2}\int_X Av_t \cdot v_t \, dx .$$ The Pontryagin maximum principle gives the Hamiltonian $$ H(\phi_t,p_t) \doteq \max_v H( \phi_t, p_t,v) \. $$ The optimizing vector field $$v_t \doteq \operatorname{argmax}_v H(\phi_t,p_t,v)$$ with dynamics $$ \dot \phi_t = \frac{\partial H( \phi_t, p_t)}{\partial p}, \dot p_t = -\frac{\partial H(\phi_t,p_t)}{\partial \phi} $$. Along the geodesic the Hamiltonian is constant: $$H(\phi_t,p_t) = H(\operatorname{id},p_0)=\frac{1}{2} \int_X p_0 \cdot v_0 \, dx $$. The metric distance between coordinate systems connected via the geodesic determined by the induced distance between identity and group element:
 * $$d_{\mathrm{Diff}_V}(\operatorname{id},\varphi) =\| v_0 \|_V = \sqrt{2H(\operatorname{id},p_0)}$$

Landmark or pointset geodesics
For landmarks, $$ x_i, i=1,\dots,n$$, the Hamiltonian momentum


 * $$ p(i), i=1,\dots,n$$

with Hamiltonian dynamics taking the form


 * $$ H(\phi_t,p_t) =\frac{1}{2}\textstyle \sum_j \sum_i \displaystyle p_t(i)\cdot K(\phi_t (x_i),\phi_t (x_j)) p_t(j) $$

with

\begin{cases} v_t = \textstyle \sum_i \displaystyle  K(\cdot, \phi_t (x_i)) p_t(i) , \ \\ \dot p_t (i) = - (Dv_t)^T_{|_{\phi_t(x_i)}} p_t(i), i=1,2,\dots, n \\ \end{cases} $$ The metric between landmarks $$ d^2 =\textstyle \sum_i p_0(i)\cdot \sum_j \displaystyle K(x_i,x_j) p_0(j). $$

The dynamics associated to these geodesics is shown in the accompanying figure.

Surface geodesics
For surfaces, the Hamiltonian momentum is defined across the surface has Hamiltonian


 * $$H(\phi_t,p_t) =\frac{1}{2} \int_U \int_U p_t(u)\cdot K(\phi_t (m(u)), \phi_t (m(v))) p_t(v) \, du \, dv $$

and dynamics

\begin{cases} v_t= \textstyle \int_U \displaystyle K(\cdot, \phi_t ( m(u)))p_t(u)\,du \ , \\ \dot p_t(u) = - (Dv_t)^T_{|_{\phi_t(m(u))} } p_t(u), u \in U \end{cases} $$
 * The metric between surface coordinates $$d^2 = (p_0 \mid v_0) =\int_U p_0(u) \cdot \int_U K(m(u), m(u^\prime)) p_0(u^\prime) \, du \, du^\prime $$

Volume geodesics
For volumes the Hamiltonian


 * $$ H(\phi_t,p_t) = \frac{1}{2}\int_{{\mathbb R}^3} \int_{{\mathbb R}^3} p_t(x)\cdot K(\phi_t(x),\phi_t(y)) p_t(y) \, dx \, dy \displaystyle $$

with dynamics



\begin{cases} v_t=\textstyle \int_X \displaystyle K(\cdot, \phi_t(x))p_t(x)\,dx \ , \\ \dot p_t(x) = - (Dv_t)^T_{|_{\phi_t(x)} } p_t(x), x \in {\mathbb R}^3 \end{cases} $$
 * The metric between volumes $$

\displaystyle d^2 =(p_0\mid v_0) = \int_{\mathbb R^3}   p_0(x)\cdot \int_{{\mathbb R}^3}  K(x,y) p_0(y)\,dy \, dx.$$

Software for diffeomorphic mapping
Software suites containing a variety of diffeomorphic mapping algorithms include the following:
 * Deformetrica
 * ANTS
 * DARTEL Voxel-based morphometry(VBM)
 * DEMONS
 * LDDMM
 * StationaryLDDMM

Cloud software

 * MRICloud