Abstract
The total least square method based on singular value decomposition for fitting straight line and plane surface has been developed to deal with the straightness calibration problem. Different from the ordinary least square method only taking into account the error of the dependent variable, total least square method considers the errors of all the variables in a symmetrical way. However, in practice, it is difficult to choose an optimal method for the variable errors of measurement data in an asymmetric way. This article presents an improved calibration method for straightness error of a coordinate measuring machine. The proposed method, named as improved total least square, could fit straight line and plane surface when the variables are in an asymmetric way. In improved total least square method, weight matrices with parameter
Introduction
Straightness calibration of coordinate measuring machine (CMM) can be performed by scanning a standard workpiece with sensor. The straightness error is usually distributed to three dimensions in the real world. Compared with the straightness error, the flatness error of the datum plane where the measurement line is located may have the same and even bigger magnitude. The neglect of the straightness and flatness error will cause the calibration deviate from the true solution. To solve these problems, a lot of studies have been employed for the straightness and flatness calibration, for example, genetic algorithm,1,2 support vector machine, 3 data exchange algorithm, 4 and computational geometry methods.5–7 Murthy and Abdin 8 presented a simplex search method for form error calibration, which is a sequential gradient search for achieving the least minimum zone. Huang and Lee 9 proposed a minimum potential energy algorithm for solving the conicity problem. Venkaiah and Shunmugam 10 calculated cylindricity by identifying so-called extreme points to form a limacon-cylinder. Some researchers attempted to approximate the cylinder iteratively and then solved a sequence of linear programs.11,12 Carr and Ferreira 11 proposed a linear program model to solve the three-dimensional straightness problems, which is derived from the original nonlinear optimization problem constructed as a constrained nonlinear programming problem with a linear objective function. The small-displacement screw matrix is used for linearizing the nonlinear constraints, which can be easily implemented when a library of optimization subroutines is available. 13 Lai and Chen 14 calculated cylindricity by implementing a series of inverse transformations, in which a cylinder was converted into a plane and appropriate control points were obtained. However, these methods need a very good initial guess and are always prone to sub-optimal solution.
The ordinary least square (OLS) method 15 is used commonly for form and profile error calibration.16,17 It is to find the minimum sum of the squared errors of the measurement data from the nominal feature, which is efficient in computation and widely used on most of CMM. The total least square (TLS) method, in which the errors of all the variables are considered in a symmetry way, can be considered as natural generalization of the OLS method for dealing with errors-in-variables (EIVs) model.18,19 And TLS method is tightly related to the maximum likelihood principal component analysis method introduced in chemometrics by Schuermans et al. 20 However, the variable errors of measurement data are usually in an asymmetric way in practice. The generalized total least squares (GTLS) method21,22 with noise covariance matrix can be regarded as a restricted total least squares (RTLS) method for dealing with the data, which are measured with unequal precision and contaminated with uncorrelated errors. However, an implementation for this approach seems challenging in practice.
In this article, we consider a special case of the GTLS problem. The independent and dependent variables of measurement data are in an asymmetric way and uncorrelated. For the straightness calibration problem of CMM, an improved total least square (ITLS) method is proposed for fitting straight lines and plane surfaces which treats the variables in an asymmetric way. Moreover, in ITLS method, the parameter
Outline of OLS and TLS methods
The determination of calibration criterion and the corresponding measurement function is one of the most common problems in metrology. A supposed linear relation is usually written as
where
However, the independent variable from measurement is not always free of uncertainty. When errors occur in all the variables in a symmetrical way, it makes more sense to determine the approximant in the sense of TLS method. The TLS problem23–25
when an EIV model
is considered. Here,
Let
be a singular value decomposition of
A TLS solution exists if and only if
OLS and TLS methods evaluate the fitting coefficient in different ways. 26 OLS method minimizes the sum of the squared vertical distances from the measurement data to the fitting line or plane, whereas TLS method minimizes the sum of the squared orthogonal distances from measurement data, in which geometry of constraint function can be written as
To clarify the distinguish features of OLS and TLS methods, Figure 1 describes the two common methods for straightness calibration.

OLS and TLS methods for straightness calibration.
Algorithm and implementation
ITLS method
In this article, a close attention is paid to the augmented matrix of TLS method. As shown in Figure 1, OLS method only considers the error of the dependent variable which is carried out in the vertical direction, whereas TLS considers the errors of all the variables in a symmetry way carried out in the orthogonal direction. However, the variable errors of measurement data are usually in an asymmetric way in practice and it is difficult to choose an optimal method for measurement data with errors. This article attempts to propose an improved method for fitting straight line and plane surface named ITLS method. A weighted matrix with parameter
In the ITLS method,
where
Determination of parameter λ
Example 1
Consider the function
and choose a uniformly distributed set of points (
where
Fitting results of three methods.
OLS: ordinary least square; TLS: total least square; ITLS: improved total least square.
From Table 1, it can be seen that the fitting results of ITLS method are always better than those of OLS and TLS methods. And the variations in parameter

Variation in
The fitting results show that parameter
Fitting results of three methods.
OLS: ordinary least square; TLS: total least square; ITLS: improved total least square.
From Table 2, it can be seen that the fitting results of ITLS method are still always better than those of OLS and TLS methods. And, as shown in Figure 3, the variations in parameter

Variation in
Example 2
Consider the function
defined on the region Ω = [−10, 10] × [−10, 10] and choose a uniformly distributed set of points. The measurement data are generated in the same way as Example 1 and the fitting performance is characterized by
The parameter
Fitting results of three methods.
OLS: ordinary least square; TLS: total least square; ITLS: improved total least square.
As shown in Table 3, the fitting results of ITLS method for plane surface fitting are still better than those of OLS and TLS methods. And the fitting results of OLS and TLS methods demonstrate singular point when the independent and dependent variables have same error. The variations in parameter

Variation in
From these tables, the fitting results of three methods associated with the errors of the variables can be illustrated as shown in Figure 5. Compared with OLS and TLS methods, ITLS method always has the best results for the fitting performance, especially when the error of the independent variable is more than that of the dependent variable. Furthermore, the fitting results of OLS and TLS methods demonstrate dramatic changes when the variable errors are equal or close.

The
As has been shown in
Step 1: fit the measurement data (
Step 2: consider the function
and choose a set of points (
Step 3:
Step 4: fit the tested data (
Step 5: calculate the
and record the value of
Step 6: vary
Step 7: record
Step 8: repeat Steps 2–7 for
Step 9: average the record values of
Measurement experiment
The profile of an optical optical flat with peak-to-valley (PV) value of 31 nm is measured by coordinate measurement machine as shown in Figures 6 and 7 for verifying the performance of ITLS method compared with those of OLS and TLS methods.

Schematic diagram of measuring machine.

Profile measurement of optical flat: (a) coordinate measuring machine and (b) measurement for optical flat.
A laser interferometer (SIOS LM50) is set on a rotation axis B with an adjusting table to measure the profile of the optical optical flat set on the spindle C. The spindle C with optical flat is moved by a translation axis

Calibration for repetitive positioning error of
The measurement range of the sensor is about 50 mm and the repetitive error is about 127 nm. The scanning range and time for the optical flat are about 100 mm and 42 min, respectively, and the number of measurement data is 201. Figure 9 shows the measurement data of optical flat.

Measurement data of optical flat.
Based on the above-mentioned procedure in which
OLS: ordinary least square; TLS: total least square; ITLS: improved total least square.
The computation is implemented on a personal computer with MATLAB. The extra time for determining the parameter

Straightness calibration of ITLS method.
Straightness values of three methods.
OLS: ordinary least square; TLS: total least square; ITLS: improved total least square.
As shown in Table 5, ITLS method with
Conclusion
The approximant of OLS method is carried out in the vertical direction and that of TLS method is carried out considering the errors of all the variables in a symmetrical way. Considering the practical need for straightness calibration, this article presents a straight line and plane surface fitting method called ITLS method. Different from OLS and TLS methods, a parameter
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors would like to be grateful to the financial support from the National Natural Science Foundation of China (Grant Nos 51175086 and 51405085) and the National Key Basic Research and Development Program (973 program) of China (Grant No. 2011CB706702).
