Selective metamorphosis for growth modelling with applications to landmarks
Andreas Bock, Alexis Arnaudon, Colin Cotter

TL;DR
This paper introduces a shape matching framework in computational anatomy that allows localized control of deformations, enabling growth modeling in specific image regions with applications to landmarks.
Contribution
It develops a mathematical model for localized template deformation in shape matching, incorporating control over growth regions, and analyzes its well-posedness and geodesic equations.
Findings
Preliminary numerical results demonstrate the framework's potential.
The model allows specifying or learning growth locations in images.
Analysis confirms the mathematical well-posedness of the approach.
Abstract
We present a framework for shape matching in computational anatomy allowing users control of the degree to which the matching is diffeomorphic. This control is given as a function defined over the image and parameterises the template deformation. By modelling localised template deformation we have a mathematical description of growth only in specified parts of an image. The location can either be specified from prior knowledge of the growth location or learned from data. For simplicity, we consider landmark matching and infer the distribution of a finite dimensional parameterisation of the control via Markov chain Monte Carlo. Preliminary numerical results are shown and future paths of investigation are laid out. Well-posedness of this new problem is studied together with an analysis of the associated geodesic equations.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
11institutetext: Imperial College London
Selective metamorphosis for growth modelling with applications to landmarks
Andreas Bock
Alexis Arnaudon
Colin Cotter
Abstract
We present a framework for shape matching in computational anatomy allowing users control of the degree to which the matching is diffeomorphic. This control is given as a function defined over the image and parameterises the template deformation. By modelling localised template deformation we have a mathematical description of growth only in specified parts of an image. The location can either be specified from prior knowledge of the growth location or learned from data. For simplicity, we consider landmark matching and infer the distribution of a finite dimensional parameterisation of the control via Markov chain Monte Carlo. Preliminary numerical results are shown and future paths of investigation are laid out. Well-posedness of this new problem is studied together with an analysis of the associated geodesic equations.
Keywords:
LDDMM Computational anatomy Metamorphosis MCMC.
1 Introduction
In computational anatomy [11, 12] one of the most fundamental problems is to continuously deform an image or shape into another and thereby obtain a natural notion of distance between them as the energy required for such a deformation. Common methods to compute image deformations are based on diffeomorphic deformations which assume that the images are continuously deformed into one another with the additional property that the inverse deformation is also continuous. This is a strong requirement for images which implies that the ’mass’ of any part of the image is conserved: we cannot create or close ’holes’. This is also a crucial property in fluid mechanics and in fact the theory of diffeomorphic matching carrying the moniker Large Deformation Diffeomorphic Metric Mapping (LDDMM) [24, 5] has been inspired by fluid mechanics. Indeed, Arnold [4] made the central observation that the geodesic equations for the diffeomorphism group induced by divergence-free vector fields corresponded to that of incompressible flows. If a strictly diffeomorphic matching is not possible or necessary, an extension of LDDMM called metamorphosis [26, 15] is available which introduces a parameter parameterising the deviation from diffeomorphic matching allowing for topological variations e.g. growth via image intensity. In particular, if the deformation is purely diffeomorphic as in LDDMM. See [23, 25, 19] for technical details pertaining to the construction of the metamorphosis problem. While diffeomorphic paths always exist for landmark problems [13] this theory allows one to match images of shapes with different topological features, which is ill-conditioned for standard LDDMM. Indeed, even inexact matching in LDDMM for such problems yields large energies and spurious geodesics that do not contribute to an intuitive matching, see figure 1. As observed here, introducing regularises the problem and qualitative improves the matching.
In this work, we modify metamorphosis to include a spatially dependent control parameter in order to selectively allow non-diffeomorphic (metamorphic) matching in parts of the image. For our theory recovers the standard metamorphosis model. However, with a localised control (e.g. a Gaussian centred at a point in ), we can selectively introduce metamorphosis in an image and model local topological effects such as growth phenomena. The difficulty of this problem is to infer the function without prior knowledge of the location of the topological effects. This problem is similar to the one treated in [3], where such functions were parameterising the randomness in LDDMM matching of shapes. We will use a Markov chain Monte Carlo (MCMC) approach to infer appropriate functions , such that the topological effects are well described and a large part of the matching remains diffeomorphic. In this paper, we focus on landmark matching but aim to extend the theory of selective metamorphosis to data structures amenable to classical metamorphosis or LDDMM theory can handle.
Structure This paper is organised as follows. We review the theory of classical metamorphosis in section 2 and extend it to selective metamorphosis in section 3. We then introduce a Bayesian framework for inferring the metamorphic control parameter in section 4 and apply this theory to a few landmark examples in section 5. Section contains concluding remarks.
2 Metamorphosis for Landmarks
In this paper we are concerned with diffeomorphometric approaches to image and shape matching. To this end, we use time-dependent velocity fields occupying some Hilbert space , where is continuously embedded in , inducing a curve on a subgroup of diffeomorphisms [4, 27] via the following ordinary differential equation
[TABLE]
This is often used in a minimisation problem where the objective is to match two images and :
[TABLE]
where denotes a similarity measure between the deformed initial image and the target image to allow inexact matching parameterised by . The LDDMM approach takes as an norm of the difference between its arguments. In order to simplify the exposition, we will consider singular solutions of this problem, which are given by the Ansatz
[TABLE]
for landmarks with position and momenta . The vector field is thus
[TABLE]
where is the kernel associated to the norm . This parameterisation holds throughout this paper and we set . For metamorphosis, we introduce a discrete template variable such that the deformation of a set of landmarks is written as the composition of the template position and deformation as
[TABLE]
Then, we can define the template velocity as
[TABLE]
and extend the action functional (2) to
[TABLE]
where now the reconstruction relation is
[TABLE]
obtained from (6) and (5) together with , see [15] for more details.
By taking variations carefully, see again [15], we directly obtain a relationship between the momentum variable and the template variable as
[TABLE]
and the equation of motions are
[TABLE]
where is defined in (4).
3 Selective Metamorphosis for Landmarks
We can now extend the metamorphosis setting to be able to locally control the amount of non-diffeomorphic evolution. For this, we introduce a function replacing the parameter such that corresponds to the classic landmark metamorphosis. The action for selective metamorphosis thus becomes
[TABLE]
which we minimise subject to the reconstruction equation (8) and the boundary conditions and at time . In the case of landmarks we have as before that
[TABLE]
so we can eliminate the template variable and write
[TABLE]
The problem defined by (13) yields the following equations for selective metamorphosis for landmarks:
[TABLE]
with . Again, the velocity is fully described by and via (4). The landmark dynamics follow standard LDDMM trajectories as vanishes in parts of the domain. This can also be seen in the relation (12), where implies that the template variable remains fixed. Notice that these equations are Hamilton’s equations for the Hamiltonian and
[TABLE]
where we have used (4) for the standard landmark Hamiltonian
[TABLE]
A practical procedure for solving (14) with the landmark Hamiltonian above is called shooting, where we replace the end-point condition with a guess for , and iteratively update using automatically computed adjoint (or backward) equations until compares to below a certain tolerance. We will perform this procedure directly with an automatic differentiation package Theano [22], see [18, 17] for more details on the implementation. This section concludes with some theoretical results.
Theorem 3.1
Let be bounded from below away from zero by and from above by . Then there exists a minimiser of (13) admissible to (8).
Proof
The functional in (13) is not convex so we work with a reformulation to ensure the required lower semi-continuity. Define a variable in the problem:
[TABLE]
First, note that owing to the constraint effectively being a boundary value problem, we cannot always find a for arbitrary pairs of . We define a bounded operator :
[TABLE]
From this we generate a minimising sequence admissible to (3). The rest of the proof is standard, see e.g. [27]. We show the constraint equation is continuous with respect to the weak topology on i.e. where . Then,
[TABLE]
Further, for ,
[TABLE]
The first term vanishes trivially, while for the second we see
[TABLE]
Since linear operators are naturally compatible with the weak topology the required continuity follows. Passing to subsequences where necessary we can by classic results extract bounded subsequences converging to weak limits where necessary to obtain a minimiser. Convexity of implies weak lower semi-continuity concluding the proof.
Theorem 3.2
Assume and is embedded in , (continuous functions with continuous derivatives to order vanishing at infinity). Then, given , (14) with (4) are integrable for all time.
Proof
Establishing appropriate Lipschitz conditions implies integrability of the system akin to [6, Theorem 5]. We note that the kernel in (4) is Lipschitz in by assumption, so the composition is also Lipschitz. consider and :
[TABLE]
so the mapping is Lipschitz in both the position and velocity. Given the conditions on the mappings
[TABLE]
are locally Lipschitz. Consequently we verify that for any , the system (14) is locally Lipschitz with constant for some . By the conservation of the Hamiltonian we can extend the existence of solutions to arbitary .
4 Bayesian Framework
We now place a stochastic model on inspired by the approach taken in [6], see also [21, 1, 2] for similar Bayesian approaches in computational anatomy. The goal is to develop an algorithm to infer , passing via the deterministic problem seen above. First, we present some preliminaries on the Bayesian approach to inverse problems in section 4.1, essentially quoting concepts and results from [9], or [7] for an exposition of algorithmic aspects of function space MCMC. Section 4.2 then formally describes how we apply this stochastic approach to inverse problems to by a finite-dimensional family of parameterisations.
4.1 General Framework
The general framework is based on the idea that we can cast optimisation problems in a probabilistic framework where minimisers, roughly speaking, correspond to modes of a certain distribution over function space. In the context of optimisation we define a likelihood , mapping some control variable in to an observable in . A maximum a posteriori (MAP) estimator satisfies where is a density over . Equipped with a norm we can then define the Gaussian density by . Supposing further that the likelihood is on the form , for some desiderata then, at least formally, the MAP estimator minimises .
For general inverse problems on function space, several key properties documented in [9] must be verified before the inverse problem is well-posed. Beyond showing the existence of the MAP estimator minimising above, the infinite-dimensional version of Bayes’ rule must also be checked i.e. the Radon-Nikodym derivative of the prior with respect to the posterior must exist and be absolutely continuous. Finally, we request continuity of the posterior distribution w.r.t the initial data corresponding in a sense to Hadamard well-posedness in a probabilistic framework. Rigorously treating this Bayesian inverse problem is subject to further study in forthcoming works.
4.2 Finite-dimensional Parameterisation
We now introduce the main problem of this paper in the setting above. We consider as a random variable. If the growth location is not known a priori, then this is an appropriate framework as it allows for a qualitative evaluation of selective metamorphosis. Moreover, it can account for some observation error by its probabilistic nature. As a simple example, we consider the case where is given by a sum of Gaussians
[TABLE]
Here the finite family of centroids in together with the uniform length-scale fully determine , thus greatly reducing the complexity of sampling. We defer sampling from function space to future work. Defining a density over the space of triples leads to the preconditioned Crank-Nicholson algorithm 1, see e.g. [14].
Here, denotes the desired number of samples and the number of terms in (19). randomUnit() denotes a randomly generated number in . The coefficient scales between the previous sample and the new step . This needs to be calibrated as a too low value may increase the acceptance rate by taking shorter steps at the cost of slow exploration of the state space. Conversely, a too high value of results in lower acceptance and thus convergence. The next section shows the algorithm above in practice.
5 Numerical examples
This section displays some numerical results for our method. We apply algorithm 1 to infer a distribution for the growth location using the landmark boundary conditions seen in figure 1. The parameters and results for the first configuration is shown in figure 2. These preliminary results demonstrate that even for a small number of samples the density of accepted samples corresponds at least heuristically to the analytical density histogram obtained by computing the value of the metamorphosis functional in (11).
We arrive at the same conclusion for the second example, for which the results are shown in figure (3). Moreover, we note that the geodesic equations for and are time-reversible meaning that the configuration in figure 3 corresponds to both particle collapse as well as hole creation.
It is numerically relatively simple to control the behaviour of by simple scaling or by adding regularisation terms to (11) to e.g. penalise having ’s far away from the support of the images. Such cost can easily be added to the MCMC algorithm, depending on the prior information one can have on the shape matching problem.
6 Conclusion
We have presented a preliminary approach for selectively allowing photometric variation in a diffeomorphic image matching. We analysed the selective metamorphosis problem, the associated geodesic equations and demonstrated a proof of concept MCMC algorithm inferring a simple parameterisation of . This generalises LDDMM and metamorphosis and could provide a first-order exploratory tool for physicians to see if the development of a biological feature stems from a few violations of diffeomorphic evolution. This paper paves the way towards surgically investigating growth phenomena between topologically different images.
Future work is manifold. Firstly, we aim to extend the equations of section 3 to images e.g. using the kernel framework in [20] or developing a space-time method. We also aim to find an explicit solution to the geodesic equations for and and with the additional terms involving à la [25] to eliminate the need to be bounded from below. Further, as outlined in 4 there are many aspects of the probabilistic framework that need rigorous treatment. Beyond the references therein, see also the work in [8]. Natural extensions of our probabilistic approach also include fully treating as a function and interpreting the resulting inverse problem through the appropriate measure-theoretical lens. Adding a time-dependency to can also be explored. Determining a truncated Fourier series of could lead to efficient numerical methods. More generally, we hope to reconcile our attempts to model growth here with the mathematically elegant approach described in [16] and with the more general mathematics of growth [10].
Finally, it is our hope that we can extend the probabilistic approach developed here to encompass classic metamorphosis as well; that is to say, to develop the necessary theory in order to place a stochastic model on the state space consisting of velocities and source functions and sample from function space. This provides a derivative-free method of solving classic metamorphosis (or other problems in shape analysis) at the expense of interpreting the results probabilistically. In this work, we only used a simple MCMC algorithm, but a Metropolis-adjusted Langevin algorithm or Hamiltonian Monte-Carlo algorithm may be more appropriate to solve this problem.
Acknowledgements
AA acknowledges EPSRC funding through award EP/N014529/1 via the EPSRC Centre for Mathematics of Precision Healthcare.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Allassonnière, Y. Amit, and A. Trouvé. Towards a coherent statistical framework for dense deformable template estimation. Journal of the Royal Statistical Society: Series B (Statistical Methodology) , 69(1):3–29, 2007.
- 2[2] S. Allassonnière, E. Kuhn, and A. Trouvé. Map estimation of statistical deformable templates via nonlinear mixed effects models: Deterministic and stochastic approaches. In 2nd MICCAI Workshop on Mathematical Foundations of Computational Anatomy , pages 80–91, 2008.
- 3[3] A. Arnaudon, D. D. Holm, and S. Sommer. A Geometric Framework for Stochastic Shape Analysis. Foundations of Computational Mathematics , 2018.
- 4[4] V. I. Arnold. Sur la géométrie différentielle des groupes de lie de dimension infinie et ses applicationsa l’hydrodynamique des fluides parfaits. Ann. Inst. Fourier , 16(1):319–361, 1966.
- 5[5] M. F. Beg, M. I. Miller, A. Trouvé, and L. Younes. Computing large deformation metric mappings via geodesic flows of diffeomorphisms. International Journal of Computer Vision , 61(2):139–157, 2005.
- 6[6] C. J. Cotter, S. L. Cotter, and F.-X. Vialard. Bayesian data assimilation in shape registration. Inverse Problems , 29(4):045011, 2013.
- 7[7] S. L. Cotter, G. O. Roberts, A. M. Stuart, and D. White. MCMC methods for functions: modifying old algorithms to make them faster. Statistical Science , pages 424–446, 2013.
- 8[8] M. Dashti, K. J. Law, A. M. Stuart, and J. Voss. MAP estimators and their consistency in bayesian nonparametric inverse problems. Inverse Problems , 29(9):095017, 2013.
