Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2013 Jun 27.
Published in final edited form as: Med Image Comput Comput Assist Interv. 2011;14(0 2):590–597. doi: 10.1007/978-3-642-23629-7_72

Spatially Adaptive Log-Euclidean Polyaffine Registration Based on Sparse Matches

Maxime Taquet 1,2, Benoît Macq 1, Simon K Warfield 2
PMCID: PMC3694439  NIHMSID: NIHMS477352  PMID: 21995077

Abstract

Log-euclidean polyaffine transforms have recently been introduced to characterize the local affine behavior of the deformation in principal anatomical structures. The elegant mathematical framework makes them a powerful tool for image registration. However, their application is limited to large structures since they require the pre-definition of affine regions. This paper extends the polyaffine registration to adaptively fit a log-euclidean polyaffine transform that captures deformations at smaller scales. The approach is based on the sparse selection of matching points in the images and the formulation of the problem as an expectation maximization iterative closest point problem. The efficiency of the algorithm is shown through experiments on inter-subject registration of brain MRI between a healthy subject and patients with multiple sclerosis.

Keywords: Registration, Polyaffine, Log-Euclidean, Structure Tensor

1 Introduction

Medical image registration is used in a variety of applications, from atlas construction to intraoperative navigation. The goal is to find a transform T that maps an image I onto another image J. A valuable property of the transform is diffeomorphism which guarantees invertibility and topology preservation [9].

Different models can be chosen for T [4]. Dense field models, as returned by diffeomorphic demons [9], are very flexible. However, models with fewer parameters are typically more robust. Log-euclidean polyaffine transforms (LEPT) [2,6] are compact and diffeomorphic transforms. They are built by composing affine transforms in the log-domain, and have been successfully used to register predefined anatomical structures [6].

The nature of tissues suggests that higher order deformations could also be modeled by LEPT with more degrees of freedom. However, predefining affine regions at a lower scale would be too cumbersome or impossible.

This paper introduces a registration method that adaptively fits a LEPT based on matching points sparsely selected in the image. The main contribution is the extension of the expectation-maximization iterative closest point (EM-ICP [7]) to use LEPT. This scheme accounts for matching ambiguities due to regularities in the image and naturally integrates regularization as a prior on T.

The rest of this paper is organized as follows. Section 2 introduces the elements of the algorithm. Section 3 shows results on brain inter-subject registration. Section 4 concludes and presents some directions for future work.

2 Methods

The proposed method, summarized in Table 1, aims at optimizing the parameters of a LEPT to map image J onto I. The location of the anchors of the affine components are first defined. The parameters of the affine components are then estimated in a multi-scale approach. At each scale, corresponding points are selected and their prior matching probabilities are recorded. The optimization then alternates between updating the posterior matching probabilities and optimizing the transform parameters. The image structure tensor is used in the definition of these probabilities to account for matching ambiguities.

Table 1.

Summary of the proposed method

1: Define the anchor locations ak in I.
2: for r = 0 to R − 1
3:   Compute the structure tensor 𝒮 of image I at scale r.
4:   Compute the LEPT weights w(x) at scale level r.
5:   Select the K best matches C = {(si;mij, πij)} between I and T (r−1)J.
6:   for i = 1 to Nit do
7:     E-Step Update the probabilities: C (r) ← Update(C (r−1); T (r−1)).
8:     M-Step Optimize the affine corrections δL (r) ← Optimize(T (r); C (r)).
9:     Composition of the transform: exp(Lk(n))exp(Lk(r1))exp(δLk(r)).
10:     Interpolation of the transformation: T (n) ← Interpolate(L (n), w(x)).
11:   end for
12: end for

2.1 Log-Euclidean Polyaffine Transforms

Log-euclidean polyaffine transforms (LEPT) are defined as a weighted composition of N affine transforms in the logarithm domain [2]. In other words, under the action of an LEPT, the point x is transformed to x + T(x) with

T(x)=exp(k=1Kwk(x)Lkx˜), (1)

where exp(.) is the exponential-map, Lk ∈ ℝ3×4 is the principal logarithm of an affine matrix in homogenous coordinates (with the last line ignored), wk(x) are the weights which depend on the anchor location ak, and = [x, 1]T. LEPT have remarkable properties. They are invertible and their inverse is a LEPT [2].

In this paper, the location of the anchors are determined a priori based on the local intensity heterogeneity of the image. More precisely, a measure of heterogeneity hI(x) is computed at every x (see Sec. 2.3). The anchors are defined as the K-means centroids of the point cloud spanned by all x s.t. hI(x) > I(x), where I(x) is a sliding mean of heterogeneity. Hence, the anchors will tend to concentrate more in areas with high local contrast. Given K anchors ak, we want to optimize the 12K parameters corresponding to Lk.

2.2 Block Matching

Block matching is used to establish a dense correspondence between points in image I and J as in [6]. The correlation coefficient is used as the similarity measure between blocks. This coefficient is invariant under linear transformations of the intensities. Let Bs (resp. Bm) be the block centered at si (resp. mj) in image I (resp. J), the correlation coefficient is:

ρ(si,mj)=Cov(Bs,Bm)Var(Bs)Var(Bm).

For each block in I, the correlation coefficient ρmax(si) of its best match in J is compared to the mean of all other correlation coefficients for this block, ρ̄(si). The N points in I with the highest ratio ρmax/ρ̄ are recorded. The prior matching probabilities are given by a normal distribution of the mean squared error (MSEn = 2−2ρ) between normalized blocks of zero mean and unit variance:

πij=12πσe2exp(22ρ(si,mj)2σe2).

Block matching is not robust to noise and suffers from the aperture problem. To deal with this issue, M matches in J are recorded for each of the N selected points in I, and we will choose NK. The remaining of this paper explains how the LEPT can be robustly estimated based on these K × M matching pairs.

2.3 Image Structure Tensor

The location of the matches can be ambiguous due to the regularity of the intensity profile around the point. Line-like profiles give rise to first-order ambiguity and surface-like profiles give rise to second-order ambiguity. This problem can be addressed by anisotropically weighting the error with the structure tensor [5].

The structure tensor at xk, S(xk) ∈ ℝ3 is defined as the autocorrelation of the intensity gradient I(x) in a neighborhood Ωk:

S(xk)=EΩk{I(x)I(x)T}=1|Ωk|xΩkI(x)I(x)T.

The normalized structure tensor, 𝒮(x) = S(x)/∥S(x)∥2, is a positive semidefinite matrix whose maximum eigenvalue is 1 with a corresponding eigenvector maximally aligned with the gradient in Ωk.

The norm of the weighted error, e = 𝒮e, is ∥e′∥2 = eT 𝒮T 𝒮e and is more affected by the component of e parallel to the gradient of the image. Consequently, matching ambiguities raised by regular structures have less impact on the overall error than errors made in a direction aligned with the image gradient.

Besides weighting the errors, the structure tensor is also used to define anchor locations. Indeed, its highest eigenvalue λ3 is significantly higher than zero only for heterogenous areas, making it natural to define hI(x) = λ3(x).

2.4 Transformation Estimation

Given the set C of matching pairs (si, mj) at each iteration, with prior probabilities πij, we propose to estimate the transform T by maximizing the joint log-likelihood of C and T [7,1]:

T*=arg maxTE{logP(C,T)}=arg maxTE{logP(C|T)}+E{logP(T)}. (2)

The first term of the likelihood tends to honor the correspondences established by block matching. The second term is a prior on T, which does not depends on C. This term favors, a priori, some transforms over the others, based on intrinsic properties of the transforms only. This is a statistical interpretation of the regularization energy used by many authors [6,9,4]. Here, we will define the prior as

logP(T)=λ2k,lak,lLkLl2+cst,

where ∥.∥2 is the Frobenius norm and ak,l=xwk(x)wl(x)(1xwk(x)+1xwl(x)) is an overlapping coefficient. This expression states that transforms are more likely if nearby affine components (affine components that share a common affecting area) are close to each other. Interestingly, this term is equivalent to the regularization energy defined in [6].

An efficient method to optimize (2) is EM-ICP [7]. This algorithm consists in alternatively optimizing the criterion for C considering T fixed (E-step) and for T considering C fixed (M-step). Provided that enough matching pairs are selected, EM-ICP is very robust to noise, hence being well suited to cope with the block matching issues. The E-step simply results in computing the matching probabilities:

(C)ij¯=πijp(si|mj,T)kπikp(si|mk,T), (3)

where the expression given in [7] is now extended to account for the matching ambiguities:

p(si|mj,T)=exp(𝒮(mj)(T*simj)2/2σn2).

.

The M-step then consists in optimizing the parameters of T:

T*=arg maxTi=1nsj=1M(C)ij¯logp(si|mj,T)λ2k,l=1Kak,lLkLl2. (4)

Unlike affine transforms, this equation does not have an obvious solution for the parameters Lk, due to the exponential map of (1). Therefore, we propose a first order approximation in which T(x) is approximated by:

T(x)𝕀+k=1Nwk(x)Lkx˜.

In that case, optimizing (4) amounts to the quadratic programming (QP):

l*=arg minl(HlD)TS(HlD)+λ2lTAl, (5)

where:

  • l ∈ ℝ12N is the vector of the elements of Lk taken row-wise and concatenated,

  • H ∈ ℝ 3ns × 12N is the interpolation matrix. Each 3 × 12 block [H]ij corresponds to point si = (xi, yi, zi) and the jth anchor aj and is equal to I3 ⊗ (wj(si)i)T, where I3 is the 3 × 3 identity matrix and ⊗ stands for the Kronecker product,

  • D ∈ ℝ3ns is the vector obtained by taking, for each si, the barycenter of its matches i weighted by (C)ij¯ (the equivalence between criterion (4) and the use of barycenters is justified in [7].),

  • S ∈ ℝ3ns × 3ns is the block diagonal matrix of the structure tensor. Each 3 × 3 block on the diagonal corresponds to the structure tensor at point si,

  • A ∈ ℝ12K × 12K is the prior matrix with (A)kl = −ak,l and (A)kk = ∑l ak,l.

In practice, the weights wi and overlapping coefficients ak,l are thresholded out, so that H, S and A are sparse. Taking the derivative of (5) w.r.t. l and setting it to 0 yields the linear system:

(HTSH+λ2A)l=HTSD. (6)

Interestingly, the regularization term is optimized simultaneously with the similarity term, unlike [6] where an ad-hoc one step gradient descent is performed on the regularization energy. Alternating the estimation of matching probabilities (3) and the estimation of parameters (6) until convergence results in a globally optimal LEPT that best fits the observations of the block matching.

2.5 Weights: the Kriging Estimator

In [6,2], the weights wk(x) are simply a normalized Gaussian function of the distance between the point and the anchor. Here we use the Kriging estimator (KE) to define these weights, as in [8]. The KE has the advantage of adapting the weights to the spatial distribution of anchors in a statistically sound way.

Let us interpret LEPT as random fields of matrix logarithms L(x) for which Lk are observations at locations ak. In this interpretation, the weights are the coefficients of a linear estimator of L at x. KE is a best linear unbiased estimator for the field L(x) given a (presumably valid) model of its spatial correlation encoded in a variogram: γ(x, y)=E {|L(x) − L(y)|2/2}. Given (γa(x))i=γ(ai, x), the weights w(x)=(w1(x)…wK(x))T are obtained by solving the linear system:

[w(x)μ]=Γ(x)1γa(x),withΓ(x)=[(γ(ai,aj))11T0](K+1)×(K+1)

where μ is the Lagrange multiplier ensuring unbiasedness of the estimate. In this paper an exponential isotropic variogram is used: γ(x, y) = 1 − e−∥x−y∥/t.

3 Experiments and Results

The method was tested on a dataset of ten brain T1-MRI (resolution: 256×256×l76). A synthetic experiment was first carried out. Inter-subject registration was then performed. Unless otherwise mentioned, parameter values are: K=500, N=(20+5r)3 at scale r, R=5, M=20, Nit=5, t=40, λ2=0.3, σen=5. For block matching, blocks of 53 voxels and searching region of 93 voxels are used.

3.1 Synthetic Experiments

The knowledge of a ground true deformation helps understanding how the algorithm behaves. A synthetic field T(x)=sin(πx50)cos(πy50)(3,3,3)T was applied to the image. Both adaptive LEPT and diffeomorphic demons accurately recovered T within the brain volume, with mean absolute error of 0.21 and 0.12 respectively (Fig. 1) and were invertible (min. jacobian of 0.67 and 0.65 respectively).

Fig. 1.

Fig. 1

(Left) LEPT (displayed as checkpoints) are able to accurately recover the synthetic field (deformed grid) within the brain volume (Middle) Influence of N on the recovering accuracy (the x — axis is logarithmic) (Right) Influence of K on the recovering accuracy.

The registration was then performed for different number N of sparse matches and K of anchors. The evolution of the accuracy with N (Fig. 1 (Middle)) suggests that the method is not sensitive to the number of selected matches as long as this number is high compared to K. For lower N, the affine transforms can no more be robustly estimated and the performances collapse. The evolution of the accuracy with K (Fig. 1 (Right)) tells us that no loss of accuracy is observed between K = 700 and K = 300, suggesting that the number of selected matches is the bottleneck here. For lower K, the performance decreases, but the method does not diverge, since all affine components can still be robustly estimated.

3.2 Inter-Subject Registration

The method was then applied to register ten multiple-sclerosis (MS) patients to one healthy subject. Each brain was skull stripped and affinely registered to the subject. Images were manually segmented by an expert in a validated protocol, providing an external validation criterion for the registration. More precisely, the Dice’s coefficient between the subject label image and the label image of the patients after alignment were computed for each tissue (Fig. 2).

Fig. 2.

Fig. 2

Dice’s coefficient with a 95% CI. Adaptive LEPT aligns structures better than diffeomorphic demons. The difference is especially significant for low contrast structures such as the putamen and the insluae.

As a whole, adaptive LEPT aligns tissues better than diffeomorphic demons. For high contrast regions (e.g.. lateral ventricles), both methods achieve comparable results. However, diffeomorphic demons tend to excessively favor these regions at the cost of a very poor alignment of low contrast structures (e.g. putamen). For these structures, the difference of performance between the two algorithms is strongly significant.

Fig. 3 depicts the aligned contours for one slice, along with the deformed grid. Again, the Jacobian of the field never fell under 0 (min. jacobian of 0.12). However, a strong pinching effect appear in the lobe regions. These regions are typically subject specific and, while good pairs of local matches can be detected, they may be misleading in the transform estimation. Finally, note that the non-rigid deformation of the structures (as seen e.g. by the bending of the lateral ventricles) would not be captured if a single affine region was defined for them as in the previous LEPT registration framework.

Fig. 3.

Fig. 3

(Left to right) Subject with labeled tissues, projected labels of the patient’s tissues after diffeomorphic demons registration and after adaptive LEPT registration, patient image with the deformed grid overlaid.

4 Conclusion and Future Work

This paper introduces a registration algorithm that adaptively fits a LEPT based on a set of sparse matches. Results on inter-subject registration show that LEPT are able to capture the local affine deformations occurring at small scales. In a future work, we want to investigate an adaptive way of incrementally defining the anchor locations such as it is done in [3].

Acknowledgements

MT thanks the B.A.E.F. and the F.R.S.-F.N.R.S for their financial support and the reviewers for their wise advices. This investigation was supported in part by NIH grants R01 RR021885, R01 EB008015, R03 EB008680 and R01 LM010033.

References

  • 1.Akselrod-Ballin A, Bock D, Reid R, Warfield S. IEEE ISBI. IEEE; 2009. Improved registration for large electron microscopy images; pp. 434–437. [Google Scholar]
  • 2.Arsigny V, et al. A Fast and Log-Euclidean Polyaffine Framework for Locally Linear Registration. JMIV. 2009;33(2):222–238. [Google Scholar]
  • 3.Buerger C, Schaeffter T, King A. Hierarchical adaptive local affine registration for fast and robust respiratory motion estimation. MedIA. 2011 doi: 10.1016/j.media.2011.02.009. [DOI] [PubMed] [Google Scholar]
  • 4.Cachier P, Bardinet E, Dormont D, Pennec X, Ayache N. Iconic feature based nonrigid registration: the pasha algorithm. CVIU. 2003;89(2–3):272–298. [Google Scholar]
  • 5.Clatz O, Delingette H, Talos I, Golby A, Kikinis R, Jolesz F, Ayache N, Warfield S. Robust nonrigid registration to capture brain shift from intraoperative mri. IEEE TMI. 2005;24(11):1417–1427. doi: 10.1109/TMI.2005.856734. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Commowick O, Arsigny V, Isambert A, Costa J, Dhermain F, Bidault F, Bondiau P, Ayache N, Malandain G. An efficient locally affine framework for the smooth registration of anatomical structures. MedIA. 2008;12(4):427–441. doi: 10.1016/j.media.2008.01.002. [DOI] [PubMed] [Google Scholar]
  • 7.Granger S, Pennec X. Multi-scale EM-ICP: A fast and robust approach for surface registration. ECCV. 2002:69–73. [Google Scholar]
  • 8.Ruiz-Alzola J, Westin C, Warfield S, Alberola C, Maier S, Kikinis R. Non-rigid registration of 3d tensor medical data. MedIA. 2002;6(2):143–161. doi: 10.1016/s1361-8415(02)00055-5. [DOI] [PubMed] [Google Scholar]
  • 9.Vercauteren T, Pennec X, Perchant A, Ayache N. Diffeomorphic demons: Efficient non-parametric image registration. NeuroImage. 2009;45(1):S61–S72. doi: 10.1016/j.neuroimage.2008.10.040. [DOI] [PubMed] [Google Scholar]

RESOURCES