Abstract
A natural requirement in pairwise image registration is that the resulting deformation is independent of the order of the images. This constraint is typically achieved via a symmetric cost function and has been shown to reduce the effects of local optima. Consequently, symmetric registration has been successfully applied to pairwise image registration as well as the spatial alignment of individual images with a template. However, recent work has shown that the relationship between an image and a template is fundamentally asymmetric. In this paper, we develop a method that reconciles the practical advantages of symmetric registration with the asymmetric nature of image-template registration by adding a simple correction factor to the symmetric cost function. We instantiate our model within a log-domain diffeomorphic registration framework. Our experiments show exploiting the asymmetry in image-template registration improves alignment in the image coordinates.
1 Introduction
Dense spatial correspondences among multiple images can be established by either directly registering pairs of images [1,2], or through a common coordinate system, where each image is aligned with a template [3,4,5]. Standard off-the-shelf pairwise registration algorithms are commonly used by both approaches. Yet, as we discuss in this paper, the two formulations are inherently different. In particular, we show that employing an algorithm designed for pairwise image registration can be sub-optimal if one of the images is a template.
In pairwise image registration, we seek a bi-directional mapping between the spatial coordinates of two images. It is therefore natural to assume that both coordinate systems should play equivalent roles in the algorithm. This symmetry of the pairwise image registration problem is exploited by inverse consistent algorithms [1,6,7,8,9,10,11]. These methods use the gradients of both images in the optimization while constraining the warps between the images to be inverses of each other, either explicitly or by construction. Empirically this strategy yields more robust and accurate alignment results [7,11].
In contrast, the problem of image alignment to a template is fundamentally asymmetric: registration must be unidirectional for the template to represent a valid probabilistic model [12,13]. In this paper, we further argue that this asymmetry is important in the context of atlas-based segmentation because the alignment quality should be measured in the image coordinate frame, rather than that of the atlas. To the best of our knowledge, this paper includes the first practical demonstration of this argument.
We present an energy-based formulation of the asymmetric image-template registration. Many of the derivations we include have previously appeared, cf. [8,10], but only in the context of symmetric pairwise image registration. The main point of the present paper is to demonstrate that accounting for the asymmetry in image-template registration will lead to improved segmentation. We develop an algorithm that employs a stationary velocity field parametrization of diffeomorphisms [11] to solve the proposed optimization problem. We include two sets of experiments on images from the OASIS [14] and Brainweb [15] datasets.
2 Problem Formulation
Given two images I, J: ℝ3 ↦ ℝ, the transformation Φ: ℝ3 ↦ ℝ3 that aligns the images is commonly determined via a regularized optimization problem, such as:
(1) |
where [J ◦ Φ](x) = J (Φ(x)) and for any f: ℝ3 ↦ ℝ.
While we only consider the L2 norm in this paper, the following discussion extends to other image dissimilarity measures. It can be shown that the L2 norm is not symmetric with respect to spatial transformation, and the optimization problem of Eq. (1) depends on which image is warped [8,1,10]. In the absence of a preference, it makes sense to symmetrize the dissimilarity measure either by using a symmetric differential form as in [10] or by seeking
(2) |
Eq. (2) is the basis of many inverse consistent image registration approaches [6,7,8,9,11]. The use of symmetry results in robust and accurate optimizers that employ gradients of both images.
As discussed in [12], a true probabilistic formulation requires the model (template) to be warped and thus registration of an image should be formulated uni-directionally. This argument can be extended to energy-based approaches. In segmentation, for example, one estimates an anatomical label for each voxel in image I. A typical approach involves registering the image I with template T, which might represent the average of training images. The goal is to bring the underlying hidden labels of the image into spatial agreement with the labels of the training data. Segmentation quality depends heavily on this accordance.
Since segmentation accuracy is measured as the agreement between estimated and ground truth labels in the spatial coordinates of the image I, using a dissimilarity term measured in the image coordinates should improve label alignment. This points to the “forward” formulation, where the template T is warped:
(3) |
By introducing y = Φ(x), we arrive at an equivalent formulation:
(4) |
where ∇Φ−1 denotes the Jacobian matrix of transformation Φ−1 with respect to the spatial coordinates. Eq. (4) involves warping the image I, and hence can be viewed as a “backward” formulation. Combining Eq. (3) and Eq. (4), we achieve a “bi-directional” formulation for image-template registration:
(5) |
Note that Eqs. (3), (4) and (5) are theoretically identical in the continuous domain, but may yield different numerical solutions after discretization. In particular, solving the bi-directional optimization problem of Eq. (5) will involve the gradients of both the image and template. Thus, we expect that similar to inverse consistent approaches, this formulation will enjoy robust and accurate performance. If we use an inverse consistent warp regularization, i.e., Reg(Φ) = Reg(Φ−1), the only difference between Eq. (5) and the symmetric formulation of Eq. (2) is the Jacobian weighting term that encodes local areal distortion due to the warp. Specifically, det(∇Φ−1(x)) is larger than 1 in regions where an area in image I is mapped to a smaller area in template T and less than 1 elsewhere. This weighting reflects the asymmetry in the objective function that evaluates alignment in image coordinates.
3 Log-Domain Diffeomorphic Registration
We demonstrate and compare the algorithms that solve Eq. (3), Eq. (4) and Eq. (5) in the log-domain diffeomorphic registration framework [11], which employs a Demons-style approach [16] to decouple the optimization of the similarity measure and of the regularization term, by introducing an auxiliary transformation Γ. In each iteration, the algorithm minimizes the following energy:
(6) |
where λ > 0 and Dist(Φ, Γ) encodes the distance between the two transformations. Reg(Γ) + λ Dist(Φ, Γ)2 replaces Reg(Φ) from the previous section. In each iteration, the Demons algorithm optimizes Eq. (6) in two steps. First, we fix Γ and estimate Φ that minimizes the first two terms. Then, we fix Φ and minimize the last two terms with respect to Γ. The second step searches for a smooth approximation to the current warp Φ and typically reduces to smoothing Φ.
In the log-domain diffeomorphic Demons framework [11], a warp Γ is parameterized with a smooth, stationary velocity field v: ℝ3 ↦ ℝ3 via an ODE: and an initial condition Γ (x, 0) = x. The solution of the ODE, Γ (x) = exp(v)(x), can be computed efficiently using scaling and squaring [17] and inverted by using the negative of the velocity field: Γ−1 = exp(−v). An update velocity field u computed in the first step of the current iteration, can be then combined with the previous warp estimate Γ = exp(v) to compute the current warp Φ = exp(v′) ≈ exp(v + u) [11]. The distance between the two warps Dist(Φ, Γ) is defined as .
We now derive the update formula for the asymmetric bi-directional dissimilarity cost of Eq. (5). For a fixed deformation Γ = exp(v), the first step of the Demons algorithm seeks u that minimizes the following objective function:
where, for simplicity, we approximate det(∇exp(−v − u)(x)) ≈ det(∇exp(−v)(x)) for a small u, removing dependencies between the voxels at each update and replace the integral with a discrete sum. This non-linear least squares problem can be efficiently solved using the Gauss-Newton method, which requires finding the gradient of the terms with respect to the stationary velocity field u at u = 0 and solving a linearized least-squares problem. We define: gT (x) = ∇T (exp(v)(x)), gI (x) = ∇I (exp(−v)(x)), cv (x) = det(∇ exp(−v)(x)), and
The image gradients are column vectors, cv (x) is a scalar, H (x) is a 3×3 matrix, (·)T denotes the transpose and Id3×3 is the 3 × 3 identity matrix. Solving the linearized least-squares problem yields the update for each voxel x
(7) |
Since the cost function in Eq. (5) is the average of the ones in Eq. (3) and Eq. (4), corresponding updates can be similarly derived. Furthermore, the symmetric formulation used by inverse-consistent registration algorithms for pairwise image alignment can be obtained by setting the Jacobian determinant term cv (x) = 1 in our framework. The following is a summary of the algorithm. ★ KσK denotes spatial convolution with an isotropic Gaussian with standard deviation σK.
Asymmetric bi-directional log-domain image-template registration
– Initialize Γ = exp(0)
-
– Iterate until convergence:
Given current Γ = exp(v), compute update u(x) based on Eq. (7).
Update: v ← v + u
Regularize: v ← v ★ KσK
The algorithm has two input parameters: λ that controls the step size taken in the update (via H(x)) and σK that controls the warp smoothness.
4 Experimental Results
Using two experiments, we compare five algorithms:
Template Warp: Optimize Eq. (3).
Image Warp: Optimize Eq. (4).
Asymmetric Bi-directional: Optimize Eq. (5).
Image Warp without Jacobian: Ignore the Jacobian term in the Image Warp Algorithm and treat the template as a second image.
Symmetric Bi-directional: Ignore the Jacobian term in the Asymmetric Bi-directional Algorithm.
For each ordered pair of images, we ran all five algorithms, treating the first image as the image I and the second image as the template T. The only algorithm invariant to the ordering of the two images is the symmetric Algorithm 5.
We quantify the quality of alignment in the image coordinates using: (1) image mean square error (MSE), obtained by averaging the squared differences between the image intensities and the interpolated template intensities over the image voxels, and (2) the Dice score [18] to measure overlap of regions of interest. Dice scores were computed in the image coordinates by measuring the overlap between the image labels and the transferred template labels obtained through nearest neighbor interpolation. Dice scores vary from 0 to 1 with higher values indicating better alignment. Both MSE and Dice have been extensively used in the literature to evaluate registration results, cf. [19]. Yet, it is important to note that different applications might require different evaluation metrics.
Due to the arbitrary tradeoff between the image-based term and regularization in the objective function, comparisons between registration algorithms are fair only when considered over a range of harmonic energy of the warps [20]. Harmonic energy measures the non-linearity of the warp, defined to be the average Frobenius norm of the Jacobian of the displacement field associated with the warp. A wider kernel used to estimate Φ (larger σK) results in smoother warps, yielding a lower harmonic energy.
We ran each algorithm on each ordered pair of images ten times with σK values at equally spaced intervals from one to ten voxels and λ = 10−3. For each ordered pair of subjects and each algorithm, we thus obtained 10 alignment scores with corresponding harmonic energies. We then computed the mean and standard error across trials for a particular harmonic energy.
In the two experiments, we provide a pairwise comparison of the Image Warp and Aysmmetric Bi-directional Algorithms (Algs. 2, 3) to their counterparts that ignore the Jacobian term (Algs. 4, 5). This pairwise comparison aims to investigate the effect of ignoring the Jacobian term in the cost function.
4.1 Oasis Experiment
In the first experiment, we employed pre-processed (skull stripped and gain-field corrected) MRI volumes (176 × 208 × 176, 1 mm isotropic) of 6 subjects from the OASIS database [14]. The subjects represent a wide spectrum of the population, both in terms of age and dementia score. Axial slices are shown in Fig. 1, demonstrating large anatomical variability across the six subjects. We applied the five algorithms to all thirty ordered pairings of these subjects.
Fig. 2 shows the image mean squared errors (MSE) over a range of harmonic energy values averaged across all pairings. Error bars are not included to avoid clutter. It is clear that the bi-directional methods (Algs. 3 and 5) outperform the unidirectional methods (Algs. 1, 2, and 4).
Furthermore, taking into account the asymmetry of image-template registration outperforms the respective algorithms that treat both images the same way (Algs. 2 vs 4 and Algs. 3 vs 5). Fig. 3 highlights this comparison. For each ordered pair of images and each harmonic energy value, we subtracted the MSE value of Alg. 2 (3) from Alg. 4 (5) and averaged across all pairings. Positive values indicate that the former algorithm outperforms the latter. It is clear that the algorithms incorporating the Jacobian term are statistically significantly better than the corresponding algorithms that do not. Moreover, the difference between the algorithms grows with increasing harmonic energy because under more nonlinear warps, certain regions shrink or grow more, resulting in an increased asymmetry due to substantial variations in the Jacobian map over space.
4.2 Brainweb Experiment
We used ten synthetic scans obtained from Brainweb [15]. Each scan contained a simulated T1-weighted MRI volume (256 × 256 × 181, 1 mm isotropic) with corresponding tissue label maps for CSF, gray and white matter. We ran the five algorithms on 20 random ordered pairings of the subjects. A comparison of the image mean squared error (MSE) values over a range of harmonic energy values (not shown) revealed a ranking of the algorithms consistent with the OASIS dataset: bi-directional methods outperform uni-directional methods, and taking into account the asymmetry of image-template registration improves alignment.
To further evaluate the algorithms, we used the tissue labels to quantify the overlap between the underlying tissue map of the image and interpolated tissue map of the warped template. Fig. 4a compares the Dice scores for the three tissue types of the Image Warp (Alg. 2) with its counterpart that ignores the Jacobian term (Alg. 4). Similar to the previous experiment, positive values indicate that taking the Jacobian term into account yields significantly improved alignment of the underlying tissue labels, suggesting better segmentation quality in a template-based segmentation application. Moreover, the difference between the two methods grows with increasing harmonic energy. Fig. 4b shows that this conclusion is also true for the bi-directional Algorithms (Algs. 3 and 5). Note that a Dice score difference of 10−3 roughly corresponds to 100 voxels in white matter, 600 voxels in grey matter and 1000 voxels in CSF.
5 Conclusions
This paper investigates the asymmetry in image-template registration. Due to this asymmetry, our analysis and experiments suggest that a straightforward application of off-the-shelf pairwise registration algorithms may be sub-optimal in the context of image-template registration. We present a bi-directional objective function that takes the asymmetry into account by introducing a correction factor: the Jacobian that quantifies the deformation of the spatial grid. This correction factor can be used to modify virtually any symmetric registration algorithm into an asymmetric bidirectional one.
Our experiments confirm that bi-directional methods yield improved results compared to unidirectional algorithms since the use of both image gradients in the optimization improves robustness against local minima. Furthermore, incorporating the Jacobian weighting term to account for the asymmetry produces significantly improved alignment scores in the image coordinates. This improvement becomes more pronounced under more nonlinear warps.
Acknowledgments
Support for this research is provided in part by: NAMIC (NIH NIBIB NAMIC U54-EB005149), the NAC (NIH NCRR NAC P41-RR13218), the mBIRN (NIH NCRR mBIRN U24-RR021382), the NIH NINDS R01-NS051826 grant, the NSF CAREER 0642971 grant, NCRR (P41-RR14075, R01 RR16594-01A1), the NIBIB (R01 EB001550, R01EB006758), and the NINDS (R01 NS052585-01). B.T. Thomas Yeo is funded by the A*STAR, Singapore.
References
- 1.Christensen G, Johnson H. Consistent image registration. IEEE Transactions on Medical Imaging. 2001;20(7):568–582. doi: 10.1109/42.932742. [DOI] [PubMed] [Google Scholar]
- 2.Heckemann R, Hajnal J, Aljabar P, Rueckert D, Hammers A. Automatic anatomical brain MRI segmentation combining label propagation and decision fusion. Neuroimage. 2006;33(1):115–126. doi: 10.1016/j.neuroimage.2006.05.061. [DOI] [PubMed] [Google Scholar]
- 3.Collins D, Neelin P, Peters T, Evans A. Automatic 3D intersubject registration of MR volumetric data in standardized Talairach space. J Comput Assist Tomogr. 1994;18(2):192–205. [PubMed] [Google Scholar]
- 4.Guimond A, Meunier F, Thirion J. Average brain models: A convergence study. Computer Vision and Image Understanding. 2000;77(2):192–210. [Google Scholar]
- 5.Sabuncu M, Balci S, Shenton M, Golland P. Image-driven population analysis through mixture-modeling. IEEE Transactions on Medical Imaging. 2009 doi: 10.1109/TMI.2009.2017942. in press. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Ashburner J. A fast diffeomorphic image registration algorithm. Neuroimage. 2007;38(1):95–113. doi: 10.1016/j.neuroimage.2007.07.007. [DOI] [PubMed] [Google Scholar]
- 7.Avants B, Grossman M, Gee J. Symmetric diffeomorphic image registration: Evaluating labeling of elderly and neurodegenerative cortex and frontal lobe. In: Pluim JPW, Likar B, Gerritsen FA, editors. WBIR 2006. LNCS. Vol. 4057. Springer; Heidelberg: 2006. pp. 50–57. [Google Scholar]
- 8.Cachier P, Rey D. Symmetrization of the non-rigid registration problem using inversion-invariant energies: Application to multiple sclerosis. In: Delp SL, DiGoia AM, Jaramaz B, editors. MICCAI 2000. LNCS. Vol. 1935. Springer; Heidelberg: 2000. pp. 697–708. [Google Scholar]
- 9.Leow A, Huang SC, Geng A, Becker J, Davis S, Toga A, Thompson P. Inverse consistent mapping in 3D deformable image registration: Its construction and statistical properties. In: Christensen GE, Sonka M, editors. IPMI 2005. LNCS. Vol. 3565. Springer; Heidelberg: 2005. pp. 493–503. [DOI] [PubMed] [Google Scholar]
- 10.Tagare H, Groisser D, Skrinjar O. A geometric theory of symmetric registration. Proc. of CVPRW; 2006; 2006. p. 73. [Google Scholar]
- 11.Vercauteren T, Pennec X, Perchant A, Ayache N. Symmetric log-domain diffeomorphic registration: A demons-based approach. In: Metaxas D, Axel L, Fichtinger G, Székely G, editors. MICCAI 2008, Part I. LNCS. Vol. 5241. Springer; Heidelberg: 2008. pp. 754–761. [DOI] [PubMed] [Google Scholar]
- 12.Allassonniere S, Amit Y, Trouve A. Towards a coherent statistical framework for dense deformable template estimation. J R Statist Soc B. 2007;69:3–29. [Google Scholar]
- 13.Van Leemput K. Probabilistic brain atlas encoding using Bayesian inference. In: Larsen R, Nielsen M, Sporring J, editors. MICCAI 2006. LNCS. Vol. 4190. Springer; Heidelberg: 2006. pp. 704–711. [DOI] [PubMed] [Google Scholar]
- 14.Marcus D, Wang T, Parker J, Csernansky J, Morris J, Buckner R. Open access series of imaging studies (OASIS): Cross-sectional MRI data in young, middle aged, nondemented, and demented older adults. Journal of Cognitive Neuroscience. 2007;19:1498–1507. doi: 10.1162/jocn.2007.19.9.1498. [DOI] [PubMed] [Google Scholar]
- 15.Aubert-Broche B, Evans A, Collins D. A new improved version of the realistic digital brain phantom. Neuroimage. 2006;32(1):138–145. doi: 10.1016/j.neuroimage.2006.03.052. [DOI] [PubMed] [Google Scholar]
- 16.Thirion JP. Image matching as a diffusion process: An analogy with Maxwell’s demons. Medical Image Analysis. 1998;2(3):243–260. doi: 10.1016/s1361-8415(98)80022-4. [DOI] [PubMed] [Google Scholar]
- 17.Arsigny V, Commowick O, Pennec X, Ayache N. A log-Euclidean framework for statistics on diffeomorphisms. In: Larsen R, Nielsen M, Sporring J, editors. MICCAI 2006. LNCS. Vol. 4190. Springer; Heidelberg: 2006. pp. 924–931. [DOI] [PubMed] [Google Scholar]
- 18.Dice L. Measures of the amount of ecologic association between species. Ecology. 1945;26(3):297–302. [Google Scholar]
- 19.Klein A, Andersson J, Ardekani B, Ashburner J, Avants B, Chiang MC, Christensen G, Collins D, Gee J, Hellier P, Song J, Jenkinson M, Lepage C, Rueckert D, Thompson P, Vercauteren T, Woods R, Mann J, Parsey R. Evaluation of 14 nonlinear deformation algorithms applied to human brain MRI registration. Neuroimage. 2009;46(3) doi: 10.1016/j.neuroimage.2008.12.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Yeo B, Sabuncu M, Desikan R, Fischl B, Golland P. Effects of registration regularization and atlas sharpness on segmentation accuracy. Medical Image Analysis. 2008;12(5):603–615. doi: 10.1016/j.media.2008.06.005. [DOI] [PMC free article] [PubMed] [Google Scholar]