Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2015 Oct 15.
Published in final edited form as: IEEE Trans Med Imaging. 2010 Nov 11;30(3):679–693. doi: 10.1109/TMI.2010.2091513

General Approach to First-Order Error Prediction in Rigid Point Registration

Andrei Danilchenko 1,, J Michael Fitzpatrick 2
PMCID: PMC4607070  NIHMSID: NIHMS727176  PMID: 21075718

Abstract

A general approach to the first-order analysis of error in rigid point registration is presented that accommodates fiducial localization error (FLE) that may be inhomogeneous (varying from point to point) and anisotropic (varying with direction) and also accommodates arbitrary weighting that may also be inhomogeneous and anisotropic. Covariances are derived for target registration error (TRE) and for weighted fiducial registration error (FRE) in terms of covariances of FLE, culminating in a simple implementation that encompasses all combinations of weightings and anisotropy. Furthermore, it is shown that for ideal weighting, in which the weighting matrix for each fiducial equals the inverse of the square root of the cross covariance of its two-space FLE, fluctuations of FRE and TRE are mutually independent. These results are validated by comparison with previously published expressions and by simulation. Furthermore, simulations for randomly generated fiducial positions and FLEs are presented that show that correlation is negligible correlation coefficient < 0.1 in the exact case for both ideal and uniform weighting (i.e., no weighting), the latter of which is employed in commercial surgical guidance systems. From these results we conclude that for these weighting schemes, while valid expressions exist relating the covariance of FRE to the covariance of TRE, there are no measures of the goodness of fit of the fiducials for a given registration that give to first order any information about the fluctuation of TRE from its expected value and none that give useful information in the exact case. Therefore, as estimators of registration accuracy, such measures should be approached with extreme caution both by the purveyors of guidance systems and by the practitioners who use them.

Index Terms: Accuracy, anisotropic, error analysis, fiducial, registration, surgical guidance, weighting

I. Introduction

In 2009, a new method of first-order analysis of the point-registration problem was introduced [2]. The method was developed to facilitate the statistical analysis of a phenomenon that had been observed years earlier, first by Steinmeier using phantoms [3] and more recently by Woerdeman in vivo [4]. These investigators attempted to establish for several fiducial-based, surgical navigation systems, a correlation between the displayed estimates of accuracy and the true accuracy. Steinmeier found no correlation, and Woerdeman observed a negligible correlation coefficient of only 0.08. Thus, lower than normal estimated accuracies were not accompanied by lower than normal true accuracies, nor were there correlations for higher than normal values. The navigational systems’ estimates of accuracy are based on the goodness of fit of the fiducial points after registration, and the surprising result that these estimates seem to be unrelated to truth, suggests that there is an underlying problem with this method of error prediction. The 2009 work [2] investigated this problem for a special case in which expected error in fiducial localization is isotropic and identical for all fiducials, and it proved to first order that fluctuations in registration accuracy are statistically independent of the fluctuations of any estimate of that accuracy based on the goodness of fit. In the present work, we extend this analysis to the general case. We show that, when ideal weighting is used for each fiducial, this independence is maintained, and we show by simulations that, without weighting, the correlation between them is on the order of that low value observed by Woerdeman. In addition, we provide new expressions for error statistics that are more general than those previously provided. We begin in Section II by providing background on, and precise definitions of, error in these navigation systems. In Section III we present our new approach and derive independence and the new statistical expressions. In Sections IV and V we compare our results to previously published results and to results from computer simulations. In Sections VI and VII we discuss our theory and its results and present our conclusions.

II. Background

Fiducial-based navigation has become a ubiquitous adjunct to surgery when rigid anatomy—bone or soft tissue constrained by bone—is involved. The major commercial guidance systems—the StealthStation Surgical Navigation System (Medtronic, Inc., Minneapolis, MN) and the VectorVision System (BrainLAB AG, Feldkirchen, Germany), each provide it as an option in addition to surface-based navigation, and both options incorporate rigid point registration in their algorithms to determine the position of the surgeon’s tracked probe or tracked instrument. The registration approach analyzed in the following sections is employed by both of these systems. Fiducials, often called “markers,” are provided that typically adhere to the skin, but the selection of anatomical “fiducials” are supported by these systems as well. Both fiducial and surface registration approaches are often called “frameless” stereotaxy, in reference to the cumbersome stereotactic frame that they are designed to replace. These frameless approaches are offered by virtually every surgical center as an adjunct to neurosurgery, spine surgery, and orthopedic surgery, and they are provided as well by radiation oncology centers as an adjunct to radiosurgery.

Because fiducials by their nature are discrete objects, they provide positional information only at isolated regions of the anatomy. Information about the position or movement of anatomy outside these regions can be inferred only if all these regions move as a single rigid object. As a result, fiducial-based navigation systems employ only rigid transformations during the registration process. To the extent that the anatomy is non-rigid, rigid transformations are inappropriate, but for surgical resections involving bone, such as a vertebra or a femur, or tissue and bone that move as a single rigid object, such as the head, rigidity is a reasonable assumption. Failure of the anatomy to remain rigid will cause systems’ predictions of fiducial-registration accuracy, such as those studied by Steinmeier and Woerdeman, to fail, but nonrigidity is not the source of failure that we present here. Indeed Steinmeier’s experiments involved only rigid phantoms. Instead we confine our attention to those applications in which rigidity is a valid assumption.

For rigid anatomy, the image-guidance problem is reduced to the determination of the rigid transformation that the anatomy has undergone between image acquisition and intervention. That transformation can be estimated via fiducials that are attached to the anatomy before imaging and remain in place through the registration procedure. The position of each fiducial is localized in both image space and physical space, and then a transformation from image space to physical space is usually chosen such that it minimizes the fiducial registration error (FRE), where, in the simplest method, which is employed by commercial systems, FRE is the root-mean-square of distances between corresponding fiducials after the registration, i.e., the distance between the localized position of each fiducial as transformed from image space to physical space and the position of that corresponding fiducial localized in physical space. In the general case, the displacement between the transformed image point and the physical point is multiplied by a “weighting” matrix, which may be different for each fiducial, and FRE is the root-mean-square of the lengths of the resulting vectors. The weighting matrix is used in cases when some information about the nature of fiducials localization procedure is available. The simplest method described above is equivalent to uniform weighting, and it is employed by commercial systems in the absence of such information. Because of fiducial localization error (FLE), the registration is invariably flawed to some degree, and FRE is a readily available measure of registration error that serves as the most commonly used indicator of the goodness of fit of the of the corresponding points.

Sibson in 1979 investigated the statistical relation between FRE and FLE for the case of isotropic FLE and provided an expression that can be used to relate their expected root-mean-square values as follows [5]:

FRE2=(1-2N)FLE2 (1)

where 〈·〉 means “expected value of.” Expressions for FRE for each individual fiducial have also been derived [10]. FRE is an easily measured quantity, but it is not as important as target registration error, TRE, which is the displacement from its true position of a registered point not used as a fiducial1. The target error TRE(r) at a point r of interest to the surgeon is the true measure of registration error. In 1998 and 2001, the statistical relation between TRE and FLE was investigated for isotropic FLE and expressions were provided relating their expected root-mean-square values [6], [7]

TRE(r)2=1N(1+13k=13dk2fk2)FLE2 (2)

where dk is the distance of x from principal axis k of the fiducial configuration, fk2 is the mean of the squared distances of the fiducials from that axis. Equation (1) can be used to estimate the distribution of FLE from measurements of FRE for many cases. With this estimate available, (2) can then be exploited to predict TRE based on the fiducial configuration when fiducials are used (a) on a patient, (b) on a coordinate reference frame attached to a patient, and (c) on a surgical probe [8]. Equation (2) is not appropriate for FLE that is anisotropic, which means that it varies with direction, inhomogeneous, which means that it is different for different points. For anisotropic and inhomogeneous FLE, more complex expressions than that of (2) have recently been derived by Wiles [9], [23] and Moghari [11].

Since both 〈FRE2〉 and 〈|TRE(r)|2〉 are proportional to 〈FRE2〉, it might be expected that for a given registration, if FRE is small, then |TRE(r)| will be small and when one is large the other will be large. While it may seem intuitive to expect the size of TRE to be correlated with that of FRE, it is easy to construct counter-examples, as is shown by Fig. 1. That figure shows two examples. For one of them FRE is zero while |TRE(r)| is large, and for the other |TRE(r)| is zero while FRE is large. The key difference is that in the first example the set of FLEs are equivalent to a rigid transformation, while in the second example, they are not. Fig. 1(a) shows image space, while (b) and (d) show physical space. The localizations are assumed to be perfect in image space. The “rigid” set of localization errors occur in (b), while the errors in (d) cannot be represented exactly or even approximately by any rigid transformation.

Fig. 1.

Fig. 1

FRE and TRE for two example registrations (a) Image space showing patient (dashed outline), three fiducials (dotted circles), and an anatomical target (dotted cross). For simplicity localization errors are zero (b) Physical space showing a set of fiducial localization errors. Arrows show the displacements from true positions (dotted outlines) to localized positions (solid outlines). The same anatomical target is shown (solid cross). This set of localization errors can be duplicated exactly by a rigid transformation that comprises a clockwise rotation R about the “bull’s eye” that is located just to the right of the nose (c) Point registration has been applied to the image to register the localized positions in (a) with those in (b) The transformation is incorrect by the same rotational error R (dashed arrow) about the bull’s eye, but it achieves an FRE of zero. TRE (arrow) is large, however, because R is large (d) Physical space showing a second set of fiducial localization errors. This set of localization errors can be duplicated by expansion from the target point but cannot be approximated by any rigid transformation (e) Point registration has been applied to the image in (a), and the resulting rigid transformation is perfect. Since the transformation is perfect, TRE is zero, but since no rigid transformation can approximate the localization errors, the fiducial fit is poor, as can be seen from the relatively large size of the individual FREs (distance between circles with dotted and solid outlines, so the root-mean square FRE is large.

Fig. 1 shows schematically that, despite the fact that 〈FRE2〉 and 〈|TRE(r)|2〉 are related functionally through (1) and (2), TRE is not necessarily related to FRE for specific registration instances. Thus, the fact that their means are related does not imply that their variations around those means are related. It is easy to construct such examples, but no example or set of examples can answer the question, “Are the fluctuations2 of FRE and TRE about their means correlated?” In the next sections we will show that, for the case of small FLE, when either of the two most common weighting schemes is employed, the answer to this question is, “No.”

We begin by proving this answer mathematically to first order in localization error for the case of so-called “ideal weighting”. That proof requires a statistical analysis of a linear model of the problem of rigid point registration. Recently a new approach [2] for such an analysis was developed for the special case of isotropic, homogeneous FLE with uniform weighting (i.e., un-weighted). In the next section, we extend that approach to the general case of anisotropic, inhomogeneous FLE with arbitrary weighting, and we use the approach both to investigate the dependence of FRE and TRE and to provide unified formulas for their respective covariances that are more general than any previous expressions.

III. Derivations

Our derivations are based on a linearization of the rigid, point registration problem. We begin with a statement of the registration problem, followed by the linearization of the problem for small FLE.

A. Registration Problem

The fundamental problem of rigid, fiducial registration is to find the rotation matrix R and translation vector t that minimize the expression

FRE2=i=1NWi(R(xi+Δxi)+t-(yi+Δyi))2 (3)

where FRE is the weighted fiducial registration error xi,yi, are 3×1 vectors representing corresponding points in two spaces, where at least three of the xi are not collinear, Δxi and Δyi represent localization errors in the two spaces, Wi is a 3×3 non-singular weighting matrix, which may be a function of R (see the discussion of “ideal weighting” at the beginning of Section III-G). Clearly the solution, R, t, obtained by minimizing FRE2 in (3) is unchanged if all the Wi are multiplied by the same factor w, while FRE2 itself is multiplied by w2. Thus, size of FRE as defined by (3) is somewhat arbitrary. For example, the general form for the uniform weighting scheme employed by commercial systems is Wi = wI, where I is the 3×3 identity matrix, and for this weighting FRE equals times the root-means square of the distance between fiducials after registration. We can remove this arbitrary factor of w from FRE by stipulating that the Wi be normalized such that 1NWi2=1Ntrace(WitWi)=3. With this stipulation, uniform weighting requires that Wi = N−1/2I, and FRE recaptures its meaning as the unweighted root-mean square of the fiducial fitting errors and satisfies (1).

The rotation matrix is restricted to be orthogonal, which means that RtR = I. The points, yi, arise from the application of the true, but unknown, rigid transformation, R(0), t(0), to the x, as follows:

yi=R(0)xi+t(0). (4)

R(0), t(0) is the transformation that is sought by the minimization of FRE in (3), but because of fiducial localization error, the transformation that minimizes FRE, namely R, t, will differ from the true transformation R(0), t(0). We model the Δxi and Δyi as random, independent vectors of fiducial localization error, with each of their three components being normally distributed with zero means and covariances i(1) and i(2), respectively. Thus, the localization errors in the two spaces may be anisotropic and inhomogeneous. While these statistics are known, it is assumed that no other information about the errors themselves is available. If any relationships among the specific errors for a given set of localizations or if any components of any of the errors were known, that information could be employed in the registration process, and the derivations and proofs below would need to be modified. It is helpful to rewrite (3) as

FRE2=i=1NWi(Rxi+t-yi-Δξi)2 (5)

where Δξi = ΔyiRΔxi, is the “two-space” localization error vector for point-pair i, and its elements are normally distributed with zero means and covariances Ri(1)Rt+i(2). We define i=Ri(1)Rt+i(2) to be the “two-space” covariance of FLE. Once the rotation and translation that minimize FRE2 have been found, they can be used to determine the vector TRE of target registration error at any point r that is not used as a fiducial point

TRE(r)=Rr+t-(R(0)r+t(0)). (6)

B. Linearization

Sibson showed how derivations of error statistics for this problem could be made tractable by (a) assuming that FLE is small, (b) approximating to first-order in FLE, (c) moving the origin of the coordinate system to the centroid of the xi, (d) reorienting the coordinate system along the principal axes of the xi, and (e) separating the rotational and translational problems [5]. He used this approach to investigate FRE; we and others have used it to investigate TRE [6], [7], [9], [11] and FRE [10], [19]. For our present investigation, we have developed a new approach. We employ (a) and (b), but we omit (c), (d), and (e). Thus, we solve to first order in FLE, but we retain the laboratory coordinate system, and we solve for both the rotation and the translation simultaneously. Solving the first-order problem allows us to cast the problem as a simple, unconstrained set of 3N linear algebraic equations in six unknowns of the form: Cq = e, where C is a 3N×6 matrix, e is a 3N×1 vector, and q is a 6×1 vector whose elements are Δθ1, Δθ2, Δθ3, Δt1, Δt2, Δt3, where Δθk, is an angle of rotation (in radians) about axis k, and Δtk, is a translation along that axis.

We begin by defining xi(0)=R(0)xi, and Δt = tt(0), which allows us to transform the vector whose squared length appears in the summation in (3) as follows:

R(xi+Δxi)+t-(yi+Δyi)=R(R(0)tR(0))(xi+Δxi)+t-R(0)xi-t(0)-Δyi=(RR(0)t-I)R(0)xi+Δt-(Δy-R(0)Δxi)+(RR(0)t-I)R(0)Δxi=ΔRxi(0)+Δt-Δξi(0)+ΔRR(0)Δxi (7)

where we have used (4) and have defined

ΔR=RR(0)t-I (8)

and

Δξi(0)=(Δyi-R(0)Δxi). (9)

Using (7) in (3) gives us

FRE2=i=1N|Wi(ΔRxi(0)+Δt-Δξi(0)+ΔRR(0)Δxi)|2. (10)

From assumption (a), we know that the components of Δξi(0) and Δxi, will be small. If they were all zero, then (10) tells us that we could achieve a perfect minimum of zero for (3) by setting ΔR and Δt to zero. For finite but small Δξi(0) and Δxi, we see from this same equation that, when FRE is minimized, the elements of both ΔR and Δt will be of first order in Δξi(0) and Δxi. We note that the elements of ΔRtΔR can be expected to be small relative to those of ΔR and that the elements of ΔRR(0)Δxi will be small relative to those of Δξi(0), because they are all of second degree in the elements of Δξi(0) and Δxi, which themselves can be expected to be small. Following Sibson, we now make the assumption that the Δξi(0) and Δxi are small enough to render the elements of ΔRtΔR negligible in comparison to the elements of ΔR and the elements of ΔRR(0)Δxi negligible in comparison to the elements of Δξi(0). We note that

ΔRtΔR=(RR(0)t-I)t(RR(0)t-I)=I-R(0)Rt-RR(0)t+I=-(ΔRt+ΔR) (11)

where we have used the orthogonality of rotation matrices to go from the first line to the second. From (11), we see that, if the elements of ΔRtΔR are indeed negligible in comparison to the elements of ΔR, then ΔRt + ΔR ≈ 0, which means that ΔR is antisymmetric, i.e., ΔRt= −ΔR. Thus, the nonlinear restriction RtR = I is replaced by a linear one.

This relaxed constraint is essential to the original approach of Sibson on the statistics of FRE [5], the approaches of the subsequent work on the statistics of TRE [6], [7], [9], and our current approach. However, we show in simulations below that our results hold to an excellent approximation even without linearization. The difference being that for the linearized equations we can prove that they hold for all configurations, all i(1) and all i(2), whereas for the nonlinear version, we can show agreement only for those cases that are simulated. Using our definitions of ΔR and Δt in (6) gives

TRE(r)=(RR(0)t-I)R(0)r+t-t(0)=ΔRR(0)+Δt (12)

where we have defined r(0) = R(0)r (similarly to our definition above of xi(0)). We note finally, that, to first order i=R(0)i(1)R(0)t+i(2).

C. Some Useful Results From Linear Algebra

The minimization of (10), subject to ΔRt= −ΔR with ΔRR(0)Δxi ignored in comparison to Δξi(0) is equivalent to finding the least-squares solution to the following over-determined set of 3N linear equations in the six unknowns, Δθ1, Δθ2, Δθ3, Δt1, Δt2, Δt3

(WiΔRxi(0))j+(WiΔt)j=(WiΔξi(0))j,i=1,2,N,j=1,2,3, (13)

where

ΔR=[0-Δθ3Δθ2Δθ30-Δθ1-Δθ2Δθ10] (14)

and the subscript j enumerates the components of the three-dimensional vectors.

The meaning of ΔR can be understood by adding I to both sides of its definition in (8) and multiplying on the right by R(0). The result, (IR)R(0) = R shows that the rotation matrix that we seek by minimizing (3) is the equivalent to the true rotation followed by a “rotation” IR. Thus, IR approximates the rotation away from the truth caused by fiducial localization error. If localization error were zero, then ΔR would also equal zero. Our assumption that localization error is merely small results in the approximation, ΔRt = −ΔR. The displacement Δr of a point r caused by that small rotation is Δr = (IR)rr = ΔRr, which, because ΔRt is equal to −ΔR, can be written in the form of the familiar cross product for small rotations, Δr = ΔRr = Δθ × r, where Δθ = (Δθ1, Δθ2, Δθ3). This cross product produces the exact expression for Δr in the limit of small rotation angle Δθ=(Δθ12+Δθ22+Δθ32)1/2. Equation (14) can also be derived by representing the exact rotation IR in terms of Euler angles, expanding each sine and each cosine in that representation via a Taylor’s series in the angles Δθ1, Δθ2, and Δθ3, and dropping all but zeroth- and first-order terms from those expansions. The first-order terms all equal one and give rise to the identity I; the first-order terms produce the expression given for ΔR in (14).

We now define the 3N×6 matrix C

C=[W1X1(0)W1W2X2(0)W2WNXN(0)WN] (15)

where

Xi(0)=[0xi3(0)-xi2(0)-xi3(0)0xi1(0)xi2(0)-xi1(0)0] (16)

and xik(0)=thekthcomponentofxi(0). By defining the 3N×1 vector e as follows:

e3(i-1)+j=(WiΔξi(0))j,i=1,,N,j=1,2,3 (17)

and using our definition of C, we can transform (13) into

Cq=e. (18)

With (18), we have transformed the problem into a generic linear-algebra problem, and we need to establish some properties of the least-squares solution to that problem. We begin by considering the singular-value decomposition [15] of C

C=UΛVt (19)

where U is a 33N orthogonal matrix, Λ is a 3N×6 diagonal matrix whose diagonal elements Λii are the singular values of C, and V is a 6×6 orthogonal matrix3. We will require that the six singular values Λii of C all be nonzero. This requirement is equivalent to the requirement that the columns of C be independent. We can prove that they are independent via proof by contradiction. Thus, we assume instead that the columns C of are linearly dependent, which means that for some set of six constants, a1, a2, …, a6, i=16aiCi=0, where each Ci is a column of C. Because each column is of length 3N, this constraint is equivalent to 3N equations, which have the form

xi2(0)a3-xi3(0)a2=a4xi3(0)a1-xi1(0)a3=a5xi1(0)a2-xi2(0)a1=a6}fori=1,2,,N. (20)

These 3N equations are in turn equivalent to the N vector equations xi(0)×a1,2,3=a4,5,6, where aα,β,γ is the 3×1 column vector whose elements are aα, aβ, aγ. In order for all N of these cross products to be equal to the same constant vector N, all points xi(0) must be collinear. We note from Section III-A above that at least three of the points xi must not be collinear and that rotating and translating these points to produce the points xi(0) does not change the linearity of the points. Thus, our assumption that the columns of C are dependent has led to a contradiction. Therefore, the columns of C are in fact independent, and therefore the singular values of C are all nonzero.

The least-squares solution of (18) is given as follows [15],

qmin=C+e (21)

where

C+=VΛ+Ut (22)

and Λ+ is a 6×3N diagonal matrix for which Λii+=Λii-1. We note that Λii+ are well defined because, as we have shown above, the Λii+ are nonzero. The elements of the 3N×1 vector

fmin=e-Cqmin (23)

are the residual errors in the solution and can be rewritten as follows:

fmin=(I-CC+)e (24)

where is the 3N×3N identity matrix. Using (19) and (22) in (24), we have

fmin=(I-CC+)e=(I-UΛΛ+Ut)e=U(I-ΛΛ+)Ute. (25)

For i, j = 1, …, 3N, we have (ΛΛ+)ij=k=16ΛikΛkj+=k=16ΛikΛkj-1, from which we find that the first six diagonal elements of ΛΛ+ are equal to 1 and the last 3N − 6 are equal to 0. Furthermore, we see that the first six diagonal elements of I − ΛΛ+ are equal to 0 and the last 3N − 6 are equal to 1. Using these diagonal elements of I − ΛΛ+ in the last line of (25), and defining

e=Ute (26)

we find that

(fmin)k=j=16Ukj·0·ej+j=73NUkj·1·ej=j=73NUkjej. (27)

Thus we see that each element of fmin is a function of only the last 3N − 6 elements of .

D. FRE in Terms of

We now return to the registration problem. We note that the elements of fmin in (27) are the components of the individual fiducial registration error vectors, FREi, of those points. Thus, (fmin)3(i−1)+j = FREij for i = 1, …, N, j = 1, 2, 3. Therefore, each component of FREi for each fiducial point is a function of only the last 3N − 6 elements of .

E. TRE in Terms of

Our expression for TRE(r) in (12) can be transformed into a simple matrix-times-vector multiplication

δ=Dq (28)

by defining δj = TRE(r)j, j = 1, 2, 3 and defining the 3×6 matrix

D=[0r3(0)-r2(0)100-r3(0)0r1(0)010r2(0)-r1(0)0001] (29)

where rk(0)=thekthcomponentofr(0). In (28), we use the least-squares solution of (18), as given by (21), and the decomposition of as given by (22), to get

δmin=Dqmin=DC+e=DVΛ+Ute=DVΛ+e. (30)

Thus,

(δmin)k=j=16l=13N(DV)kjΛjl+el=j=16(DV)kjΛjj-1ej (31)

where, in the second step, we have used the explicit form of Λ+ given just after (22). From (31) we see that each component of TRE(r) is a function of only the first 6 elements of .

F. General Formulation for the Covariances of FRE and TRE

Equation (31) can be employed to derive a general expression for ΣFRE, the covariance of FRE, and ΣFRE, the covariance of TRE. First, we define two 3N×3N block-diagonal matrices: a covariance matrix Σ for the entire set of FLEs and a weighting matrix W for the entire set of fiducial points. Each matrix is nonzero only within 3×3 blocks on the diagonal. Specifically, Σ3(i−1)+j,3(i−1)+j = (Σi)jj and W3(i−1)+j,3(i−1)+j = (Wi)jj, for i = 1 … N, j = 1, 2, 3, j′ = 1, 2, 3, and all other elements of each matrix equal zero. With these definitions it can be seen from the definition e of given by (17) that

eet=WWt. (32)

Our expression for ΣFRE can be gotten by noting that (FRE)kl=(fmin)k(fmint)l and then using (27), followed by (26) and (32), to get

(FRE)kl=j,j=73NUkjUljejej=j,j=73NUkjUlj(UtWWtU)jj. (33)

The summation over three diagonal elements corresponding to the same marker provides an expression for an individual weighted FRE of that marker

FREi2=k=3i-23ij,j=73NUkjUkjejej=k=3i-23ij,j=73NUkjUkj(UtWWtU)jj. (34)

The trace of ΣFRE provides a general expression for 〈FRE2

FRE2=k=13N(FRE)kk=k=13Nj,j=73NUkjUkj(UtWWtU)jj=j=73N(UtWWtU)jj. (35)

The expressions in (33) through (35) give statistics for the weighted FRE. Statistics for unweighted FRE (but with weighting used in the registration step), which we designate by using lower case, fre, are given by replacing Ujk and Ukj by (W−1U)kj and (W−1U)kj in each of these equations, resulting in

(fre)kl=j,j=73N(W-1U)kj(W-1U)lj(UtWWtU)jj (36)
frei2=k=3i-23ij,j=73N(W-1U)kj(W-1U)kj(UtWWtU)jj (37)

and

fre2=j,j=73N(UtW-2U)jj(UtWWtU)jj. (38)

For isotropic weighting, i.e., Wi = wiI, it can with some manipulation be seen that FREi2=wifrei2.

Our expression for ΣTRE can be gotten by remembering that in TRE(r)j = δj (31). Therefore,

(TRE)kl=(δmin)k(δmin)l=j,j=16(DV)kj(DV)ljejejΛjjΛjj. (39)

By applying (26) and (32) to 〈jj〉, we achieve the following result:

(TRE)kl=j,j=16(DV)kj(DV)lj(UtWWtU)jjΛjjΛjj. (40)

The trace of ΣTRE provides a general expression for 〈TRE2

TRE2=k=13(TRE)kk=k=13j,j=16(DV)kj(DV)kj×(UtWWtU)jjΛjjΛjj. (41)

It should be noted that (33) through (41) are completely general. Thus they are appropriate both for general fiducial localization error (i.e., possibly inhomogeneous and possibly anisotropic) and for general weighting (i.e., possibly not ideal). We have included in Fig. 4 in the Appendix an implementation of (33), (35), (40), and (41) written in Matlab (MathWorks, Inc., Natick, MA). This function is likewise completely general. While these equations have all been derived specifically for three-dimensional space, they all hold for the 2-D case as well with only minor changes to accommodate the reduced dimensionality. The details are given in Appendix C of the Appendix.

Fig. 4.

Fig. 4

Computer code to implement the derived formulas. The code is a function written in Matlab (The Mathworks, Natick, MA). Its input and output parameters are described in comments (lines beginning with a percent sign) and in the text.

G. Statistical Independence of FRE and TRE for Ideal Weighting

In Fig. 1, we show examples for which FRE is zero and TRE is nonzero. It can easily be seen from (5) that the number of such examples is infinite. Indeed, whenever there exists a rigid transformation R, t for which Rxi + t = yi + Δξi for all i, then FRE is zero, but unless all the Δξi are zero, TRE will be nonzero. The simplest example is for the localization errors in a given space to be equivalent to a global translation, i.e., all the Δxi are equal to the same nonzero vector vx, and all the Δyi are equal to some other nonzero vector vyvx. As a result, each Δξi = vyvx, the rigid transformation that minimizes FRE2 is, R = R(0), t = t(0) + vyvx, and TRE(r) = vyvx ≠ 0. Substituting these values into (5) reveals that each of the terms in the summation is zero. Thus, each FREi = 0. There is likewise an infinity of examples in which TRE is zero and FRE is nonzero. These examples occur when no rigid transformation can reduce the effect of the localization errors, and the transformation that minimizes (5) is the identity. One such example is also shown in Fig. 1. These examples suggest that FRE may not be a good predictor of TRE, but they provide little insight into their statistical relationship. In this section we examine the statistical relationship between FRE and TRE for our model of independent, normally distributed localization errors when an important weighting scheme—“ideal weighting”—is employed, and we show that for this weighting scheme FRE and TRE are statistically independent.

Ideal weighting is important in the rigid point registration problem because it maximizes the probability that the resulting transformation is the true one. We derive ideal weighting in Appendix I-A of the Appendix and show that it has the form Wi=w×i-1/2=w×(Ri(1)Rt+i(2))-1/2, where w is a constant, which for normalized weighting is equal to 31/2(1Ntrace(i-1))-1/2. Ideal weighting is not new. It was introduced into point registration as early as 1998 by Ohta and Kanatani [16], and it was employed by West et al. in 2001 [17] and Moghari et al.. in 2009 [11], [19]. In both of these 2009 papers a first-order registration equation equivalent to (18) was derived for the special case in which ideal weighting is employed and i1=04. As mentioned at the end of Section III-B, to first order R can be replaced by R(0) in the expression for Σi. This approximation is adequate for our purposes, and with it we can see that the R dependence of ideal weighting does not affect the first-order character of (13). Using this weighting in (32) gives us

eet=WWt=w2×-1/2-1/2=w2I. (42)

Since 〈eet〉 is diagonal, the elements ei are uncorrelated; since they are uncorrelated and also normally distributed, they are statistically independent [2], [18]. Because the diagonal elements equal w2, the variance of each ei is w2. As shown in Appendix I-B, since U is orthogonal, the elements of are also independent and normally distributed with variance equal to w2. In Section III-D, we found that each component of FREi for each fiducial point, which is also an element of fmin, is a function of only the last 3N − 6 elements of , while in Section III-E we found that each component of TRE(r), which is also a component of δmin, is a function of only the first six elements of . Since the elements of are independent of each other, any functions of nonoverlapping subsets of them are independent each other as well. It is important to note that this conclusion depends crucially on the fact that all 3N of the elements of are mutually independent. That independence is a consequence of ideal weighting.

Therefore, for the case of ideal weighting, every component of FREi of every one of the N fiducial points is statistically independent of any component of the vector TRE(r) at any point r. Thus fluctuations in TRE(r) are, in our first-order approximation, independent of fluctuations of any and all functions of the goodness of fit! We note that the overall fiducial registration error, FRE, from (3), is given in the linearized problem by (10) and can be expressed in terms of fmin as FRE=(fmintfmin)1/2 and that the length of the vector TRE(r) can be expressed in terms of δmin as TRE(r)=(δmintδmin)1/2. Since the elements of fmin are statistically independent of those of δmin, any function of only fmin is statistically independent of any function of only δmin. As primary examples, FRE is statistically independent of |TRE(r)|. Since they are independent, they are also uncorrelated. We let CC (FRE, TRE) be the correlation coefficient of FRE and |TRE(r)|

CC(FRE,TRE)=(FRE-μFRE)(TRE-μTRE)(σFREσTRE) (43)

where we have abbreviated |TRE(r)| as TRE, and are letting μ and σ denote means and standard deviations. It easy to see that, to first order in FLE, CC (FRE, TRE) = 0, meaning that there is to first order no correlation between FRE and TRE.

H. Two-Dimensional Space

The results of this section hold not only for 3-D space, but for 2-D space as well. The details are provided in Appendix I-C of the Appendix along with the 2-D forms of (33) through (41), but these equations can be transliterated to two dimensions merely by making the following changes to the summation limits:3N → 2N, 7 → 4, 3i → 2i, 3i − 2 → 2i − 1, and 6 → 3.

I. Comparison With Previously Published Derivations

We compare our formulations with five previous derivations. These derivations, which are spread among many publications with differing notations, are, unlike our general derivation, limited in every case to uniform weighting (i.e., no weighting) or to ideal weighting. In our validation section below, we compare our formulas with these other authors’ formulations on specific cases and find agreement in every case.

The first result is an expression for the probability density of FRE2 when ideal weighting is employed. We note that FRE2=fmintfmin=k=13N(fmin)k2, which by (27) equals j=73Nl=73Nejelk=13NUklUkj, and since U is orthogonal, we have FRE2=j=73Nej2. As noted in Section III-G, when ideal weighting is employed, the j become statistically independent and normally distributed with equal variances (= w2). Therefore, FRE2 is chi-square distributed with 3N − 6 degrees-of-freedom. The probability density of such a function is well known [22]

p(FRE2)=FRE(3N-8)e-(FRE2)/2w22(3/2N-3)Γ(32N-3) (44)

where Γ denotes the Gamma function5. This probability density is identical to that derived by Sibson for the case of isotropic, homogeneous FLE with no weighting [5]. Here we have not only re-derived a thirty-year-old result but also shown that it applies to a more general case, namely inhomogeneous, anisotropic FLE with ideal weighting. It differs from the distribution for ideal weighting published recently by Moghari [19] for fre (instead of FRE). Also, for ideal weighting, since the j are independent and normally distributed with variances equal to w2, we have 〈FRE2〉 = (3N − 6)w2, and for normalized weighting

FRE2=3(3N-6)1Ntrace(i-1). (45)

For the special case of homogeneous FLE (45) reduces to FRE2=3(3N-6)/k3σk2, where σk2 is the variance of FLE along one of its principal axes, and for the case of homogenous, isotropic FLE, which is the case originally treated by Sibson, it reduces exactly to (1).

The second result is an expression for 〈FRE2〉 for ideal weighting, first derived for the case of isotropic, homogeneous FLE in 1998 [6] and given above by (2) and derived for general FLE in 2009 [11]. With ideal weighting we find from (32) and (42) that (UtWΣWtU)jj = δij (i.e., the Kronecker delta). Using this result in (41) yields

TRE2=k,j=13,6(DV)kj2(Λjj2). (46)

Despite the considerable detail in our derivations of this result, its calculation is quite simple, requiring evaluation only of (16), (15), (19), (29), and (46) in that order.

The third result is an expression for 〈TRE2〉 when FLE is inhomogeneous and anisotropic but no weighting is employed, first derived in 2009 by Wiles first for the homogeneous case [9] and then for the general case [23]. Our expression for this case is gotten simply by removing W from the expression in (41) and noting that, in the construction of the block-diagonal covariance matrix Σ, the nonzero blocks Σ, are all equal.

The fourth result is the decomposition of TRE into three statistically independent orthogonal normally distributed components when FLE is homogeneous and isotropic and no weighting is employed, which was first accomplished in 2001 [7]. We begin by noting that, for this case, having no weighting is equivalent to employing ideal weighting with w = 1. We then have (UWΣWU)jj = δij, as in the second result above. Using this result in (39), we find that (TRE)kl=j=16(DV)kj(DV)lj/Λjj2. Performing an eigen decomposition yields TRE=VTREΛ(TRE)VTRE. Since ΣTRE is symmetric, VTRE is orthogonal. If we define η=Vδδmin, then, since VTRE is orthogonal and the elements of are independent and normally distributed, the three components, ηk, are uncorrelated, normally distributed, orthogonal components of TRE with variances equal to ηk.

The fifth result is the set of expressions in (36) through (38) for the statistics of the unweighted individual fiducial registration error with ideal weighting used the registration step when FLE is homogeneous or isotropic. Analytical expressions for these two cases were first derived in 2009 [19]. They reduce in the homogeneous and isotropic case to expressions first derived in 2008 [10].

IV. Validation

Our theory has three major results, which can be summarized as follows: For arbitrary weighting and arbitrary FLE, (a) (33) gives the covariance of FRE, (b) (40) gives the covariance of TRE, (c) FRE and TRE are statistically independent. Our other results are derived from (a) and (b). We tested our results as follows (1) We compared (33), (37), (41) and (46) to previously published analytic expressions for special cases. (2) We compared (33) and (39) to true values obtained by means of simulations, and we measured their cross correlation and dependence. All calculations were performed using Matlab 2010b (Mathworks, Natick, MA) on a Dell Latitude D830 with an Intel Centrino Duocore 2.2 GHz CPU with 2 GB RAM.

A. Comparisons to True Values via Simulations

For each simulation experiment, the following was performed: Randomly select a set S(N) of N unperturbed fiducial positions xi inside a 200 mm cube and one random target position r inside a 400 mm cube (the cubes share a common corner). Then repeat the following 15 times.

  1. For each xi, define a covariance FLE matrix i(1)=Vi(1)Λi(1)(Vi(1))t, where the columns of Vi(1) are the principal axes of FLE and the diagonal elements (Λi(1))jj=(σi(1))j2the variances of the independent components of FLE.

  2. Construct a random rotation R(0) and a random translation t(0) and apply them to the xi to produce N corresponding unperturbed positions yi [see (4)].

  3. Generate a covariance FLE matrix i(2) for each yi in a similar manner to that used to define i(1).

  4. Generate a weighting matrix Wi for each point.

  5. Repeat the following steps 10 000 times.

    1. Perturb each fiducial position in each space to produce xi + Δx and yi + Δy according to i(1) and i(2), respectively, with random, normally distributed, zero-mean components.

    2. Employ a registration algorithm to find R and t that minimize the exact registration formula of (3).

    3. Calculate TRE(r) and FRE.

  6. Calculate CC(FRE, TRE) for the 10 000 registrations of Step 5.

  7. Perform the chi-square test described in Appendix I-D of the Appendix to detect dependence between FRE and TRE for the 10 000 registrations of Step 5.

  8. Compute rms(TRE) and rms(FRE) for the 10 000 registrations of Step 5.

  9. Calculate rms(TRE) = 〈TRE21/2 and rms(FRE) = 〈FRE21/2 our formulas.

  10. Calculate CC between rms(TRE) from Steps 8 and 9; calculate CC between rms(FRE) from Steps 8 and 9.

The registration algorithm employed to accomplish Step 5b, depends on the weighting being used. For uniform weighting, the method of singular-value decomposition was employed (e.g., [20, Algorithm 8.1]). For ideal weighting, the algorithm of [21] was employed, except that in Step 1 of that algorithm, Wi=w×(Ri(1)Rt+i(2))-1/2=frei2, as given in Section III-G. This amendment to the algorithm is necessary for ideal weighting when FLE is anisotropic and/or inhomogeneous.

We employed these simulation experiments to determine the accuracy of 1) our expressions for TRE and FRE and 2) our claims that TRE and FRE are statistically independent and hence uncorrelated. As pointed out in [2], a failure to detect dependence does not guarantee that correlation is zero. The more specific correlation test may succeed where the dependence test fails, so we apply separate tests for correlation and dependence—the t-test to detect correlation and the chi-square test based on contingency tables to detect dependence [22]. The latter test is described Appendix I-D of the Appendix. For all tests we chose p = 0.05 with Bonferroni correction applied where appropriate. These tests were also used in [2].

V. Results

A. Comparison to Previously Published Expressions

We compared (33), (37), (41), and (46) with previously published and validated analytic expressions for the first three cases and the fifth case in Section III-A. Regarding (33), as pointed out in Section III-A, the simplification of that equation produced by the assumption of isotropy and homogeneity for FLE yields (45), which agrees exactly with the formula for FRE2 derived by Sibson that case. We compared the outputs of (41) to the formulas for Vi = 〈TRE2〉 published by Moghari [11] and Wiles [9] for a large set of inputs. Similarly we compared (37) to the formula for Vi=frei2 published by Moghari [19]. For each comparison, we repeated the following 1000 times: We generated sets S(N) of random fiducials and a random target and in the manner described above for the simulations, with N = 3, 4, 5,…, 10, 20, 30 and 40 fiducials. We generated a two-space covariance Σi in the same manner as that used in the simulations to generate i(1), based on Vi and (σi)j. We chose random orientations for each set of principle axes and chose random values of (σi)j. We compared (46), with the formulation of Moghari, who provided an analytic formula for the case of isotropic, inhomogeneous FLE with ideal weighting [11], and we compared (41) with W set to the identity (i.e., no weighting) to the formula given by Wiles’s for the case of anisotropic, homogeneous FLE with no weighting [9]. We compared (37) to Moghari’s formula for the case of isotropic inhomogeneous FLE with ideal waiting [17]. In every case, our outputs agreed with those of these previously published formulas (maximum difference = 1.2 × 10−10). In summary, our new general formulas agree with existing formulas, each of which is limited to a special case.

B. Comparison With Simulations

The important new feature that our theory supports is arbitrary weighting for arbitrary FLE. The sets of possible weightings and FLEs are each infinite, but we focused on two types of weighting—ideal weighting and uniform weighting, which is equivalent to no weighting—and on two sizes of FLE—small, which we defined as rms(FLE) < 1 mm, and large. For the latter case we used rms(FLE) = 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, and 70 mm. Our motivation for the small-versus-large-FLE dichotomy is to explore the limitations of our linear approximation, which is strictly correct only in the limit of small FLE. For small FLE, we tested with N = 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, and 40 fiducials. For the large FLE values, we limited our testing to four fiducials in order to control the requisite simulation time, which for each value of N requires 24 h for 15 values of rms(FLE). For the case of no weighting, we investigated only the case of small FLE, because we found correlation without moving above 1 mm.

Utilizing the simulation scheme above, in every case, we found the values calculated in Steps (8) and (9) to be statistically equivalent (no significant difference via paired t-test at p < 0.05). The maximum absolute percentage differences were less than 1.5% for FLE in the range from 1 to 10 mm (n = 555) and were less than 4.1% for FLE in the range from 1 to 50 mm (n = 120). For Step 10, in which we calculated the CC between the values of rms(TRE) of Steps 8 and 9, and the CC between the values of rms(FRE) calculated in Steps 8 and 9, we found in both cases that CC was well above 99.9%. The minimal lower bound of 95% confidence was 99.99%. Thus, our formulas for both FRE and TRE agree with simulation and show only a slight degradation in accuracy even when FLE is far larger than any value that would be tolerated in surgical guidance (50 mm is equal to one-fourth of the side of the 200 mm cube within which the fiducials were randomly placed for this simulation).

Figs. 2 and 3 summarize the results of our investigation into the correlation and dependence of FRE and TRE. As predicted by our theory, neither correlation nor dependence is detectable when ideal weighting is employed, and FLE is less than 1 mm [Fig. 2(a)]. For FLE > 20 mm, correlation is statistically significant but remains negligible (CC < 0.1) even for FLE = 70 mm [Fig. 2(b)]. For uniform weighting (i.e., no weighting) a very small correlation is observed, CC ≤ 0.1 that decreases with increasing N [Fig. 3(a)]. This correlation is statistically significant for all values of N, showing that, while FRE has some predictive power when higher order terms are included, that power is negligible. The dependence that this tiny correlation implies was undetectable for all but a very few cases. Detection is achieved when the chi-square statistic q (Appendix I-D of the Appendix) rises above a critical value shown by the horizontal line in Fig. 3(b). Such values were observed very rarely, as can be seen by the sub-critical means and, for N ≥ 20, the sub-critical values of mean + standard deviation.

Fig. 2.

Fig. 2

FRE-TRE correlation coefficient CC for ideal weighting (a) FLE < 1 mm with varying number of fiducials (b) Varying FLE with four fiducials. In each case, the solid line is the mean of 15 sets of 10,000 registrations for randomly selected fiducial and target positions (see text). The dashed lines are mean ± one standard deviation. Correlation is insignificant at p < 0.05 for all of (a) and for FLE < 10 mm in (b). Statistically significant but negligible (<0.1) correlation occurs for FLE ≥ 20 mm, showing that, while FRE has some predictive power when higher order terms are included, the power is negligible.

Fig. 3.

Fig. 3

FRE-TRE statistics for FRE < 1 mm when uniform weighting (i.e., no weighting) is employed (a) Correlation coefficient CC versus number of fiducials. A statistically significant but negligible (<0.1), correlation is apparent that decreases with increasing number of fiducials (b) The chi-square statistic q for dependence versus number of fiducials. The dashed lines are mean ± one standard deviation. The horizontal solid line in (b) is the critical level above which values of q indicate dependence. The slight dependence implied by the small correlation in (a) is not detected by q, whose mean remains below the critical level.

Finally, we repeated our experiments with targets positions chosen to be equal to fiducial positions in order to determine whether some dependence between TRE and FRE might appear in the special case in which a target is close to a fiducial. No such correlation is possible according to our theoretical development, but we explored this case to eliminate the possibility that appreciable second-order dependence might appear. The results were the same as for the randomly chosen target positions—no detectable dependence and no significant correlation.

VI. Discussion

We have generalized a method of first-order analysis of the point-registration problem introduced in 2009 [2] so that it accommodates inhomogeneous and anisotropic FLE with arbitrary weighting. With this generalization we are able to provide first-order expressions for the covariance matrices of FRE and TRE—(33) and (40)—an expression for individual FRE—(34)—and expressions for 〈FRE2〉 and 〈TRE2〉—(35) and (41). As a result, we have unified the theory of first-order FRE and TRE statistics, which has heretofore been solved piecemeal only for special cases, each of which involved a separate formulation [6], [7], [9], [11], [19]. We have included in Appendix I-E of the Appendix an implementation of (33), (35), (40), and (41) in Matlab. With this implementation, we have reduced to 25 lines of Matlab not only all the many special cases of weightings and FLE anisotropies heretofore spread over many pages of many papers with different notations but also all other possible combinations of weightings, inhomogeneities, and anisotropies.

In addition, by means of our new method we are able to generalize the major result of [2]: namely, that, to first order, FRE and TRE are independent when FLE is homogeneous and isotropic. Our generalization reveals that, in addition, if ideal weighting is employed, FRE and TRE are independent to first order when FLE is inhomogeneous and/or anisotropic. Ideal weighting, which we define in Section III-G, is not a new concept. It was introduced to point registration by Ohta and Kanatani in 1998 [16] and used by West et al.. in 2001 [17] and by Moghari et al.. in 2009 [11], [19] as well, but the proof that it produces independence between FRE and TRE is new.

We note that this independence in no way detracts from the importance of (1) and (2), from the generalizations of these expressions provided in the excellent work by Wiles [9], [23], Balachandran [10], and Moghari [11], [19], and further generalizations given in (33) through (38), (40) and (41), each of which relates one expectation value to another. Equation (1) and Wiles’s generalization of that relationship [23] can be used to estimate the FLE covariance from measurements of FRE obtained from repeated registrations based on independent fiducial localizations. Based on this estimate, (2) or one of its generalizations can then be used to estimate an expectation value for TRE for a given fiducial configuration and target position. What we have shown is that the value of FRE observed for a given registration is unreliable as means to estimate the deviation of TRE from its expected value for that same registration.

We have compared our results to previously published formulas for FRE and TRE and to our own simulations to validate our new formulation. While there is an infinite variety of FLE patterns and weighting schemes available, we focused on inhomogeneous and anisotropic FLE with both ideal weighting and uniform weighting. We generated random fiducial and target positions and used both small FLE—rms(FLE) < 1 mm, and large FLE—up to 70 mm. We found excellent agreement in all cases. We also used simulations to evaluate correlation and dependence between FRE and TRE when the first-order approximation is not made. We found, in agreement with our theoretical results, that correlation and dependence approach zero for both weighting schemes as FLE approaches zero, for every case tested. We found for very large FLE that, while there is clearly a statistically significant correlation at higher order, that correlation is so small as to have negligible value as a predictor of TRE.

Our experiments on uniform weighting explain why neither Steinmeier nor Woerdeman, both of whom experimented with systems that apply this weighting scheme, were able to detect appreciable correlation between FRE and TRE, and it provides further support for the argument advanced in [2] that estimates of fluctuations of registration accuracy, i.e., TRE, based on the goodness of fit of the fiducials, e.g., FRE, are unreliable.

VII. Conclusion

By means of a new unified approach to the first-order analysis of the point registration problem, we are able to provide general expressions for the covariances of fiducial registration error and of target registration error. These two expressions and all the other expressions that we derived from them are appropriate for any set of fiducial localization error patterns, whether inhomogeneous or not and whether anisotropic or not. Furthermore, they are appropriate for any arbitrary set of weightings in the point registration problem, including ideal weighting and uniform weighting. Furthermore, this approach allows us to show that, for ideal weighting, FRE and TRE are to first order neither correlated nor dependent. We have verified these results by means of comparison to previous derivations and to simulations. Finally, by means of simulation we have shown that, for all cases examined, correlation between FRE and TRE is also negligible for uniform weighting even for the exact case. These results reinforce the message delivered in [2] that for ideal weighting and uniform weighting, the latter of which is used in commercial guidance systems, fluctuations of measures of the goodness of fit of the fiducials, e.g., fiducial registration error, have no statistical relationship, or at most a negligible relationship, to fluctuations of individual measures of registration accuracy, i.e., target registration error. Therefore, as estimators of registration accuracy, they are unreliable and should approach with extreme caution both by the purveyors of guidance systems and by the practitioners who use them.

Acknowledgments

This work was supported in part by the National Institute on Deafness and Other Communication Disorders under Grant RO1DC008408 and Grant R01DC010184, in part by the National Institute of Biomedical Imaging and Bioengineering under Grant R01EB006136, and in part by Vanderbilt University’s International Office.

The authors would like to thank the anonymous reviewers whose suggestions greatly improved the form and clarity of this paper.

Appendix

Derivation of Ideal Weighting

The standard approach to finding the rigid transformation by minimizing (3) is based on maximum likelihood. Maximum likelihood was introduced into the point registration problem by Ohta and Kanatani in 1998 [16] and used by West et al. in 2001 [17] and by Moghari in 2009 [11], [19]. It has also been invoked for intensity-based registration methods [23]. The goal in point registration is to find the transformation that is most likely to be correct given the measured positions of the fiducial points in the two spaces. That goal can be reached only if the matrices Wi in that equation provide “ideal” weighting. In this section we derive the ideal weighting matrices and show that they provide the maximum-likelihood solution. We begin with the given sets { xi} and { ui}, i = 1, …, N of measured vector positions in two spaces, where xi=xi+Δxi and yi=yi+Δyi, xi and yi are the true but unknown positions of corresponding points in the respective spaces, and Δxi and Δyi are their unknown localization errors. We wish to find the most likely rigid transformation, but, as we do, we will also find the most likely true positions. Specifically, we wish to find the rotation matrix and translation vector R,t and the {xi} and{yi} that together maximize the conditional probability density p(R,t,{yi}{xi},{yi}). The set of true points {xi} is missing from the variables in this density because they are completely determined by R,t, and the {yi}, since by definition xi = RtyiRtt.

Thus, we wish to maximize p(R,t,{yi}{xi},{yi}) with respect to R,t, and {yi} for fixed { xi} and { yi}. From Bayes’ law, we have that

p(R,t,{yi}{xi},{yi})=p({xi},{yi}R,t,{yi})p(R,t{yi})p({xi},{yi}) (47)

and, absent prior knowledge of p({xi},{yi}), we neglect its dependence on R,t, and {yi}. Furthermore, p({xi},{yi}) is fixed because both { xi} and { yi} are fixed. Therefore, we may achieve our goal by maximizing the conditional probability p({xi},{yi}R,t,{yi}) with respect to R,t, and {yi}.

We now assume that all localization errors are independent and that their components have zero mean and are normally distributed about their principal axes. With this assumption we have

p({xi},{yi}R,t,{yi})=cexp(-i=1N(Δxitxi-1Δxi+Δyityi-1Δyi)) (48)

where Σxi and Σyi are respectively the covariances of Δxi and Δyi. It can be seen from our definitions above and from minor manipulation that Δxitxi-1Δxi equals (Rxi+t-yi)tSxi(Rxi+t-yi), where Sxi=Rxi-1Rt, and that Δyityi-1Δyi equals (yi-yi)tSyi(yi-yi), where Syi=yi-1. After these substitutions, we have p(R,t,{xi},{yi}{xi},{yi})=cexp(-G(R,t,{xi},{yi},{yi})), where

G(R,t,{xi},{yi},{yi})=i=1N(Rxi+t-yi)t×Rxi-1Rt(Rxi+t-yi)+(yi-yi)tSyi(yi-yi). (49)

Thus, in order to maximize the likelihood, we need to minimize G(R,t,{xi},{yi},{yi}) with respect to R,t, and {yi}. We minimize with respect to the {yi} by taking the derivative of G with respect to each of the components of each of the and setting all 3N derivatives to zero. The result is

yi=(Sxi+Syi)-1(Sxi(Rxi+t)+Syiyi). (50)

We note that the expression for yi given in (50), which is a weighted mean of the ith transformed measured point in x space and its corresponding measured point in y space, provides the best available approximation for the true positions needed in all the expressions for TRE and FRE statistics derived in the body of this paper. In the case of isotropic, homogeneous FLE, as, for example, in (2), this expression reduces to yi=((Rxi+t)+yi)/2, i.e., a simple unweighted average.

Finally, we substitute our expression for yi into G to obtain (after considerable manipulation)

G(R,t,{xi},{yi},{yi})=i=1N(Rxi+t-yi)tWi2(Rxi+t-yi) (51)

where Wi = (RΣxiRt + Σyi)−1/2. In order to reach our goal, the remaining task is to find the transformation R,t that minimizes G. In this minimization process, we can use Wi = w(RΣxiRt + Σyi)−1/2, where w is any constant. For this reason we refer to Wi = w(RΣxiRt + Σyi)−1/2 as “ideal” weighting. The right side of (51) has the same form as the right side of (3), but the weighting is unspecified in (3), whereas the derivation above shows that only ideal weighting can achieve maximum likelihood.

Statistical Independence of the Elements of ẽ

In this appendix we show that, if the M elements of the vector e are statistically independent, normally distributed variables with zero mean, then, if the M×M matrix V is orthogonal, the following vector has these same three characteristics:

ei=k=1MVkiek. (52)
  1. If the mean of e is zero, then the mean of ẽ is zero.

    That the mean is zero is easily seen by computing the expectation value, which we denote by 〈.〉, of both sides of (52)
    ei=k=1MVkiek=k=1MVkiek=k=1MVki·0=0. (53)
  2. If the elements of e are uncorrelated with equal variances and V is orthogonal, then the elements ẽ are uncorrelated.

    Because of (53), the correlation of i and j is equal to 〈(i − 〈i〉) (j − 〈j〉)〉
    (ei-ei)(ej-ej)=kMVki(ek-ek)lMVlj(el-el)=kMlMVkiVlj(ek-ek)(el-el)=σ2kMlMVkiVljδkl=σ2kMVkiVkj=σ2δij (54)

    where we used the fact that the elements of e are uncorrelated and equal in going from the first line of (54) to the second, defined σ2=ei2 to be the variance of an element of e, and used the orthogonality of V in the last step.

  3. If the elements of e are independent and normally distributed with equal variances and V is orthogonal, then the elements of ẽ are independent and are normally distributed with the same variance.

    We note that, since the elements ei are independent and normally distributed with variance σ2, their joint probability density has the form
    p1,2,,M(e1,e2,,eN)=i=1M(σ2π)-1exp(-ei2(2σ2))=(σ2π)-Mexp(-12σ2i=1Mei2) (55)
    where we have used the fact that the means of the ei are zero6. Because each i is a linear combination of the ei, their joint density has the form (by generalizing the derivations in [18, p. 199–201 ] from two variables to M variables)
    q1,2,,M(e1,e2,,eM)=J-1p1,2,,M(z1,z2,,zM) (56)
    where J = det(Vt) and z = (Vt)−1. Since V is orthogonal, |J| = 1 and (Vt)−1 = V. Using these properties and (55) in (56) gives us that
    q1,2,,M(e1,e2,eM)=(σ2π)-Mexp(-i=1M(Ve)i2(2σ2))=(σ2π)-Mexp(-(Ve)tVe2σ2)=(σ2π)-Mexp(-etVtVe2σ2)=(σ2π)-Mexp(-ete2σ2)=(σ2π)-Mexp(-i=1Mei22σ2) (57)

    where we have used the orthogonality of V in going from the second line of (57) to the third line. Equation (57) can be written as a product of functions of the individual i as follows: q1,2,M(e1,e2,,eM)=i=1Mqi(ei), where qi(ei)=(σ2π)-1exp(-ei2/(2σ2)), which is of normal form. Since the joint probability density of the i is equal to the product of individual functions, the i are mutually statistically independent. Since the individual functions are of normal form, they are normally distributed with variance σ2.

Two-Dimensional Case

The formulas and the proof of independence are derived in Section III only for 3-D transformations, but they all carry over to the 2-D case as well. We highlight here the salient changes that result when the points and the transformations are 2-D. First, xi, yiΔxi, Δyi, Δξi, and Δξi(0) are 2×1. Second, Wi, R, R(0), i(1),i(2), Σi, I, and ΔR, are now 2×2 matrices, t, Δt, and

ΔR=[0-ΔθΔθ0] (58)

Third, C is a now a 2N×3 matrix, and q is a three-element vector whose elements are Δθ, Δt1, Δt2. Fourth,

Xi(0)=[-xi2(0)xi1(0)] (59)

and

e2(i-1)+j=(WiΔξi(0))j,i=1,,N,j=1,2 (60)

Fifth, Λ is 2N×3, V is 3×3, Λ+ is 3×2N, and the proof that all singular values (there are now only three of them) are nonzero involves only the third of the three equations in (20). It is now the first three (instead of first six) diagonal elements of ΛΛ+ that are equal to 1, and the last 2N −3 (instead of the last 2N − 6) are equal to 0. As a result, each component of FREi for each fiducial point is a function of only the last 2N − 3 elements of i, and each component of TRE(r) is a function of only the first three elements of . The proof that the 2N elements of are independent makes no reference to the dimension of the space (see Appendix I-B above). Therefore, FREi and TRE(r) are statistically independent for the 2-D case, just as they are for the 3-D case.

Sixth, the block-diagonal matrices have slightly different forms to accommodate the reduced spatial dimensionality: Σ2(i−1)+j,2(i−1)+j = (Σi)jj and W2(i−1)+j,2(i−1)+j = (Wi)jj, for i = 1,…, N, j = 1, 2, j′ = 1,2 with all other elements equaling zero.

Seventh, (33) through (41) must be altered to accommodate the reduced dimensionality, as follows:

(FRE)kl=j,j=42NUkjUljejej=j,j=42NUkjUlj(UtWWtU)jj (61)
FREi2=k=2i-12i(j,j=42NUkjUkjejej)kk=k=2i-12i(j,j=42NUkjUkj(UtWWtU)jj)kk (62)
FRE2=k=12N(FRE)kk=k=12Nj,j=42NUkjUkj(UtWWtU)jj=j=42N(UtWWtU)jj (63)
(fre)kl=j,j=42N(W-1U)kj(W-1U)lj(UtWWtU)jj (64)
frei2=k=2i-12ij,j=42N(W-1U)kj(W-1U)kj(UtWWtU)jj (65)
fre2=j,j=42N(UtW-2U)jj(UtWWtU)jj (66)
(TRE)kl=(δmin)k(δmin)l=j,j=13(DV)kj(DV)ljejejΛjjΛjj (67)
(TRE)kl=j,j=13(DV)kj(DV)lj(UtWWtU)jjΛjjΛjj (68)
TRE2=k=12(TRE)kk=k=12j,j=13(DV)kj(DV)kj(UtWWtU)jjΛjjΛjj. (69)

Chi-Square Test for Dependence

To detect dependence, we employ the standard chi-square test based on the contingency tables [22]. Each element, C(i,j), i = 1,2, …, Nc, j = 1,2, …, Nc, of an Nc×Nc contingency table is a count of the number of registrations for which FREi ≤ FRE < FREi+1 and TREj ≤ TRE < TREj+1, where the thresholds, FREi and TREj can be chosen arbitrarily. The resulting table is then used to calculate the following test statistic: q=i,j=1NC(C(i,j)-C0(i,j))2/C0(i,j), where C0(i, j) is the count that is to be expected when FRE and TRE are independent, namely, C0(i, j) = C1(i)C2(j)/M, where M is the total of all counts, C1(i)=j=1NCC(i,j), and C2(j)=i=1NCC(i,j). The variance in q over repeated experiments (i.e., with different random localization errors) can be reduced by choosing the thresholds FREi and TREj such that j=1NCC(i1,j)j=1NCC(i2,j) and i=1NCC(i,j1)i=1NCC(i,j2). If q is sufficiently large, then it can be concluded that FRE and TRE are dependent. A “sufficiently large” value is that of the chi-square distribution (i.e., cumulative distribution) χν2(1-p0)7, where 1 − p0 is the desired confidence in the truth of dependence. The number, v, of degrees of freedom for this problem equals (NC −1)2. Thus, a value of q that is larger than χν2(1-p0) indicates that dependence between FRE and TRE is detected at pp0. Failure to detect q exceeding χν2(1-p0) suggests that our theory of independence can be extended from the linear approximation to the exact problem encountered in surgical guidance.

Computer Code to Implement the Derived Formulas

We provide in Fig. 4 a Matlab function to implement our new formulas for FRE and TRE. The values that it returns correspond to our equations as follows: (RMS_TRE)2 = 〈TRE2〉 from (41), (RMS_FRE)2 = 〈FRE2〉 from (35), Cov_TRE = ΣTRE from (40), and Cov_FRE = ΣFRE from (33). The inputs correspond to our definitions above as follows: X0(:,i)=xi(0)=R(0)xi, W(:,:,i) = Wi, Cov_FLE(:,:,i)=i=R(0)i(1)R(0)t+i(2), and r0 = r(0) = R(0)r.

Like the formulas that it implements, this code is general. This relatively simple function handles the special cases of uniform weighting for homogeneous, isotropic FLE, first solved by Fitzpatrick et al. [6], uniform weighting for homogeneous, anisotropic FLE first solved by Wiles et al. [9], and ideal weighting for inhomogeneous, anisotropic FLE first solved by Moghari et al. [11], and it handles all other cases as well.

Footnotes

1

For FLE, FRE, and TRE, we use boldface (only) when we are denoting a vector quantity

2

Also called “deviations”

3

For convenience, we have augmented both U and Λ to the decomposition described in [15] by adding 3N − 6 columns to U so as to make it orthogonal and adding Λ rows of zeros to U.

4

Equation (30) of [11] and (9) of [19].

5

If the distribution for |FRE| is desired, we note that ρ(|FRE|) = 2|FRE|ρ (FRE2).

6

Zero means are not necessary for this derivation. They simply reduce its complexity. Since the means are in fact zero, we take advantage of that fact to simplify the equations.

7

Note that χν2 denotes a variable, while χν2(1-p0) denotes a distribution.

This paper is a modification of a paper presented February 2010 at the SPIE Medical Imaging Symposium.

Contributor Information

Andrei Danilchenko, Email: andrei.v.danilchenko@vanderbilt.edu, Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, TN 37235 USA.

J. Michael Fitzpatrick, Email: j.michael.fitzpatrick@vanderbilt.edu, Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, TN 37235 USA.

References

  • 1.Danilchenko A, Fitzpatrick JM. General approach to error prediction in point registration. presented at the SPIE Med. Imag; San Diego, CA. Feb. 2010.. [Google Scholar]
  • 2.Fitzpatrick JM. Fiducial registration error and target registration error are uncorrelated. presented at the SPIE Med. Imag; Lake Buena Vista, FL. Feb. 2009.. [Google Scholar]
  • 3.Steinmeier R, Rachinger J, Kaus M, Ganslandt O, Huk W, Fahlbusch R. Factors influencing the application accuracy of neuron-avigation systems. Stereotactic Functional Neurosurg. 2000;75:188–202. doi: 10.1159/000048404. [DOI] [PubMed] [Google Scholar]
  • 4.Woerdeman PA, Willems PW, Noordmans HJ, Tulleken CA, van der Sprenkel JW. Application accuracy in frameless image-guided neurosurgery: A comparison study of three patient-to-image registration methods. J Neurosurg. 2007 Jun;106(6):1012–6. doi: 10.3171/jns.2007.106.6.1012. [DOI] [PubMed] [Google Scholar]
  • 5.Sibson R. Studies in the robustness of multidimensional scaling: Perturbational analysis of classical scaling. Journal of the Royal Statistical Society: Series B. 1979;41:217–229. [Google Scholar]
  • 6.Fitzpatrick JM, West JB, Maurer CR., Jr Predicting error in rigid-body, point-based image registration. IEEE Trans Med Imag. 1998 Oct;17(5):694–702. doi: 10.1109/42.736021. [DOI] [PubMed] [Google Scholar]
  • 7.Fitzpatrick JM, West JB. The distribution of target error in rigid-body, point-based registration. IEEE Trans Med Imag. 2001 Sep;20(9):917–927. doi: 10.1109/42.952729. [DOI] [PubMed] [Google Scholar]
  • 8.West JB, Maurer CR., Jr Designing optically tracked instruments for image-guided surgery. IEEE Trans Med Imag. 2004 May;23(5):533–545. doi: 10.1109/tmi.2004.825614. [DOI] [PubMed] [Google Scholar]
  • 9.Wiles AD, Likholyot A, Frantz DD, Peters TM. A statistical model for point-based target registration error with anisotropic fiducial localizer error. IEEE Trans Med Imag. 2007 Mar;27(3):378–390. doi: 10.1109/TMI.2007.908124. [DOI] [PubMed] [Google Scholar]
  • 10.Balachandran R, Fitzpatrick JM. The distribution of registration error of a fiducial marker in rigid-body point-based registration. presented at the SPIE; San Diego, CA. 2008. [Google Scholar]
  • 11.Moghari M, Abolmaesumi P. Distribution of target registration error for anisotropic and inhomogeneous fiducial localization error. IEEE Trans Med Imag. 2009 Jun;28(6):799–813. doi: 10.1109/TMI.2009.2020751. [DOI] [PubMed] [Google Scholar]
  • 12.Suess O, Picht T, Kuehn B, Mularski S, Brock M, Kombos T. Neurosurgery without rigid pin fixation of the head in left frontotemporal tumor surgery with intraoperative speech mapping. Operative Neurosurg Suppl. 2007;2(60):330–338. doi: 10.1227/01.NEU.0000255378.80216.52. [DOI] [PubMed] [Google Scholar]
  • 13.Fitzpatrick JM, Galloway RL. The use of fiducials in the registration of 3D images. Automedica Special Issue: Eng Approaches Neurological Surg. 2001;20 [Google Scholar]
  • 14.Fitzpatrick JM. In: Detecting Failure, Assessing Success Medical Image Registration. Hajnal JV, Hill DLG, Hawkes DJ, editors. Boca Raton, FL: CRC; 2001. pp. 117–139. [Google Scholar]
  • 15.Press WH, Teukolsky SA, Vetterling WT, Flannery BP. Numerical Recipes in C: The Art of Scientific Computing. 2. New York: Cambridge Univ. Press; 1992. [Google Scholar]
  • 16.Ohta N, Kanatani K. Lecture Notes in Computer Science. Berlin, Germany: Springer; 1998. Optimal estimation of 3-D rotation and reliability evaluation; pp. 175–187. [Google Scholar]
  • 17.West JB, Fitzpatrick JM, Batchelor PG. Point-based registration under a similarity transform. Proc. SPIE Med. Imag.; San Diego, CA. Feb. 2001; pp. 611–622. [Google Scholar]
  • 18.Papoulis A, U Pillai S. Probability, Random Variables, and Stochastic Processes. 4. Boston, MA: McGraw Hill; 2002. pp. 266–268. [Google Scholar]
  • 19.Moghari M, Abolmaesumi P. Distribution of fiducial registration error in rigid-body point-based registration. IEEE Trans Med Imag. 2009 Nov;28(11):1791–1801. doi: 10.1109/TMI.2009.2024208. [DOI] [PubMed] [Google Scholar]
  • 20.Fitzpatrick JM, Hill DLG, Maurer CR., Jr . Registration. In: Sonka M, Fitzpatrick JM, editors. Medical Image Processing: Volume II of the Handbook of Medical Imaging. Bellingham, WA: SPIE; 2000. pp. 447–513. [Google Scholar]
  • 21.Balachandran R, Fitzpatrick JM. Iterative solution for rigid-body point-based registration with anisotropic weighting. presented at the SPIE Med. Imag; Lake Buena Vista, FL. Feb. 2009.. [Google Scholar]
  • 22.Spiegel MR. Probability and Statistics, Schaum’s Outline Series. New York: McGraw-Hill; 1975. pp. 116–116. [Google Scholar]
  • 23.Wiles AD. Navigation accuracy of image-guided interventional systems. Dept. Med. Biophys., Univ. Western Ontario; London, ON, Canada: 2009. [Google Scholar]
  • 24.Roche A, Malandain G, Ayache N. Unifying maximum likelihood approaches in medical image registration. Int J Imag Syst Technol: Special Issue 3D Imag. 2000;11:71–80. [Google Scholar]

RESOURCES