Keywords

1 Introduction

Thermal displacement is one of the most significant factors that degrade machine accuracy. With the progress of process integration and automation of machining process, it has become more important to maintain dimensional and geometric accuracy over the entire machining space of a machine during operation. The reduction of thermal displacement is achieved by measuring it and thermal deformation accurately and clarify the relationship between the temperature change and the thermal deformation and then creating the prediction and compensation model or applying the countermeasure to suppress the thermal deformation. Many studies have been conducted about reduction of thermal displacement [1]. The laser tracker was used to measure the thermal displacement of 5-axis machine tool [2]. About compensation for thermal displacement, the method using temperature sensors [3] and NC unit internal data [4] are developed and robust and accurate prediction models are developed for compensation [5, 6]. To reduce thermal deformation, isolation of heat sources, reduction of generated heat and equalization of temperature distribution are applied [7].

We have developed both measurement method and compensation method of tool trajectory. A laser tracker and vision cameras are used to measure the thermal displacement on a two-dimensional plane to visualize thermal deformation. Deep-learning is used for accurately predicting and compensating thermal displacement from temperature sensors. A measurement using a laser tracker achieved higher accuracy and smaller measurement uncertainty than the previous method. A measurement using vision cameras achieved shorter measurement time and lower cost than a laser tracker method. Deep-learning prediction model achieved higher accuracy than conventional models. In this paper, we present the detail of these methods.

2 Thermal Displacement Prediction by Deep-Learning

2.1 Convolutional Neural Network (CNN)

By using convolutional neural network (CNN), a type of deep learning, thermal displacement can be predicted with higher accuracy [8]. CNN is a commonly used method in the field of image recognition, which extracts image features by convolution and pooling process. Figure 1 shows a conceptual diagram of a CNN. In predicting thermal displacement, temperature data of machine structure is used as input and displacement as output.

Fig. 1.
figure 1

A conceptual diagram of a CNN

2.2 Thermal Sensitivity

To predict thermal displacement from temperature data, it is necessary to know the contribution of temperature variation of the machine structure to thermal displacement and install temperature sensors at the large contribution. Therefore, we defined the relationship between temperature and thermal displacement as thermal sensitivity as follows:

$$ W = K^{ - 1} H $$
(1)

where W is the thermal sensitivity, K is the stiffness matrix of the structure, and H is the temperature-load transformation matrix expressed as:

$$ p = H\Delta t $$
(2)

where p is the load applied to the machine structure by the temperature variation and \(\Delta t\) is the temperature variation.

The thermal sensitivity was calculated on a turning center. Figure 2 shows the thermal sensitivity in the X-axis direction. The red area shows the displacement of the turret and headstock away from each other as the temperature increases, and the blue area is in the opposite direction.

2.3 The Prediction Results

Figure 3 shows the performance of the CNN. By using temperature data from 10 locations, calculations were performed with ridge regression, non-convolutional NN and CNN. The CNN prediction error was 59.5% smaller than ridge regression and 71.6% smaller than non-convolutional NN.

Fig. 2.
figure 2

Thermal sensitivity of X-axis of turning center

Fig. 3.
figure 3

Comparison between CNN and conventional methods

Figure 4 shows the learning results. The prediction result of the evaluation data shows small error. The results show that CNN compensations can reduce the thermal displacement by 81.2% and 88.5% than non-compensation results.

Fig. 4.
figure 4

Thermal displacement prediction result by evaluation data

3 Thermal Deformation Measurement on a Two-Dimensional Trajectory

3.1 Principle of Error Estimation

Table 1 shows the geometric error parameter to be identified as an example of the measurement on the YZ plane of a vertical machining center. The two-dimensional trajectory can be calculated by using them. The purpose of the algorithm is to identify them for every point of measurement range, (y1, . , yNy in Y-axis and z1, . , zNz in Z-axis). (y0, z0) are the reference point where all geometric errors are defined zero [9]. EYY(yj) are defined as the values measured at z = z0.

Table 1. Geometric error parameters on the YZ plane [10].

The measurement is taken in YZ plane with the laser tracker. As shown in Fig. 5 a retroreflector attached to the spindle is positioned at every stop position \({\mathbf{P}}_{\mathbf{n}}^{\mathbf{*}}\) = [yj, zk]T(n = 1,…, N) and the distance d0 (n = 1,…, N) between the tracker and the retroreflector is measured. The 2D positioning error \(\Delta {\mathbf{P}}_{{\mathbf{n}}}\) for each command position can be expressed as follows by using the symbols in Table 1.

$$ \Delta {\varvec{P}}_{{\varvec{n}}} = { }\left[ {\begin{array}{*{20}c} {E_{YY} \left( {y_{j} } \right) + E_{YZ} \left( {z_{k} } \right) - (E_{A0Y} + E_{AY} \left( {y_{j} } \right))\left( {z_{k} - z_{0} } \right) + \Delta y_{0} } \\ {E_{ZY} \left( {y_{j} } \right) + E_{ZZ} \left( {z_{k} } \right) + \Delta z_{0} } \\ \end{array} } \right] $$
(3)

With these definitions, the parameters in Table 1 can be identified by solving the following problem.

$$ \mathop {\min }\limits_{e} \mathop \sum \nolimits_{n} (\left| {{\varvec{P}}_{{\varvec{n}}}^{*} + \Delta {\varvec{P}}_{{\varvec{n}}} - {\varvec{Q}}} \right| - \left( {d_{n} + d_{0} } \right))^{2} $$
(4)

where, Q = [yq, zq]T is the tracker position and d0 is the dead path length. e is unknown values consisting of Q, d0, and parameters in Table 1. (\(\Delta\)y0, \(\Delta\)z0) is defined as the displacement of reference point. The assumption that the tracker position Q is constant throughout the experiment leads to increased uncertainty [2]. By these additional parameters, the tracker position can be handled as a constant. (\(\Delta\)y0, \(\Delta\)z0) is directly measured with a displacement sensor and then uncertainty is greatly reduced.

Fig. 5.
figure 5

Tracking measurement on YZ plane

3.2 Experimental Results

Thermal deformation in the YZ plane of vertical machining center was measured. Figure 6 shows the configuration of the machine. The following measurements are performed at each measurement cycle. The distance between the tracker and the retroreflector was measured at every stop position along the rectangular trajectory shown in Fig. 5. EYY is measured directly by the tracker at the tracker’s Z position and EAY is measured by a level simultaneously. EZZ is measured at the tracker’s Y position. (\(\Delta \)y0, \(\Delta \)z0) is measured directly by displacement sensors. The above measurements were taken twice at one-hour intervals while the Z-axis was moving back and forth at the maximum speed, and then twice again at one-hour intervals while the machine was stopped. Figure 7 shows the experimental result and calculated 2D trajectory. The estimated trajectory is shifted to Z + direction due to heat generated by Z-axis movement. At the same time, Z-axis is tilted to the Y- direction. This indicates that heat generated by Z-axis movement caused thermal deformation of the machine column.

Fig. 6.
figure 6

Machine configuration

Fig. 7.
figure 7

Tool center point trajectory by Z-axis reciprocal motion

4 Vision-Based Machine Accuracy Measurement

4.1 Displacement Measurement Using Vision Camera

Figure 8 shows the principle of displacement measurement by camera. The deviation in the image due to camera movement is measured as a displacement. The grid intersection is defined as a target and the amount of movement is defined as the displacement. Figure 9 shows the process of detecting an intersection of the grid.

4.2 Accuracy Measurement Using Vision Camera

Figure 10 shows the setup to measure the displacement in the XY-plane. The camera is mounted on the spindle of the machine tool. Move the camera in the X-direction while overlapping the imaging range by 1mm and repeat capturing the image. The geometric accuracy is measured by identifying the displacement x, y and angle θ in the XY-plane and the displacement is calculated as follows [11]:

$$ V_{i,j}^{(k,l)} = \left\{ {\begin{array}{*{20}c} {x_{i,j}^{(k,l)} } \\ {y_{i,j}^{(k,l)} } \\ \end{array} } \right\} $$
(5)
$$ \left[ {\begin{array}{*{20}c} {E_{XX}^{{\left( {k,l + 1} \right)}} } \\ {E_{YX}^{{\left( {k,l + 1} \right)}} } \\ {E_{CX}^{{\left( {k,l + 1} \right)}} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {V_{i,j + 1}^{{\left( {k,l} \right)}} - V_{i,j}^{{\left( {k,l + 1} \right)}} } \\ {E_{CX}^{{\left( {k,l} \right)}} - \theta_{i,j}^{{\left( {k,l + 1} \right)}} } \\ \end{array} } \right] $$
(6)
$$ \left[ {\begin{array}{*{20}c} {E_{YY}^{{\left( {k + 1,l} \right)}} } \\ {E_{XY}^{{\left( {k + 1,l} \right)}} } \\ {E_{CY}^{{\left( {k + 1,l} \right)}} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {V_{i + 1,j}^{{\left( {k,l} \right)}} - V_{i,j}^{{\left( {k + 1,l} \right)}} } \\ {E_{CY}^{{\left( {k,l} \right)}} - \theta_{i,j}^{{\left( {k + 1,l} \right)}} } \\ \end{array} } \right] $$
(7)

Figure 11 shows the setup for multiple cameras to obtain a higher accuracy of angular deviation. The two-dimensional positional error \(\Delta p_{E}\) for each command can be described as follows:

$$ \Delta p_{E} = \left[ {\begin{array}{*{20}c} {E_{XX} \left( {x_{v} } \right) + E_{XY} \left( {y_{w} } \right) + \left( {E_{CX} \left( {x_{v} } \right) + E_{{C\left( {0X} \right)Y}} } \right)y_{v} } \\ {E_{YX} \left( {x_{v} } \right) + E_{YY} \left( {y_{w} } \right)} \\ \end{array} } \right] $$
(8)

The relationship among the measurement result pd, the position of each camera xcam, the command position pcmd, the positioning error of the machine \(\Delta p_{{\text{E}}}\) and the measurement target xtgt can be described as follows:

$$ p_{d} \cong x_{cam} + p_{cmd} + \Delta p_{E} - x_{tgt} $$
(9)

The geometric error parameters are obtained to solve the minimalize problem.

$$ \mathop {\min }\limits_{e} \Sigma_{m = 1, \ldots ,N} \left( {(p_{d} - \left( {x_{cam} + x_{cmd} + \Delta p_{E} - x_{tgt} } \right)} \right)^{2} $$
(10)

where e represents all the parameters obtained from Eq. 10 noted in Table 2. N represents the number of measurements. The squareness error EC(0X)Y can be estimated by pre-calibration of the camera position.

Table 2. Calculated parameters of X and Y-axis
Fig. 8.
figure 8

Vision-based displacement measurement system

Fig. 9.
figure 9

Edge detection by using bilinear interpolation

4.3 Two-Dimensional Thermal Displacement Measurement Under the Ambient Temperature Change

The thermal displacement of a two-dimensional plane is measured under the ambient temperature change. Figure 12 shows the results and comparison to our previous method using a tracker [8]. The results tend to be in good agreement. The measurement time was about twice as fast as the previous method by a tracker.

Fig. 10.
figure 10

The error measurement by vision camera

Fig. 11.
figure 11

Three vision cameras measurement

Fig. 12.
figure 12

Two-dimensional thermal deformation measurement results. (a) laser-based method [8], (b) vision-based method.

5 Conclusion

By using deep learning model, thermal displacement can be predicted with higher accuracy. The thermal displacement on a two-dimensional plane can be measured in a short time with high accuracy by using a laser tracker. Furthermore, vision cameras can measure thermal displacement in a shorter time and at a lower cost. Two-dimensional displacement can be used to see thermal deformation of the machine structure. Thermal displacement is caused by thermal deformation of machine structures by temperature variations. Therefore, these methods will clarify the root causes of thermal displacement and contribute to the development of machine tools with thermally robust and high accuracy.