Thermal error modeling method of truss robot based on GA-LSTM

Long Li (School of Artificial Intelligence, Anhui University of Science and Technology, Huainan, China and Application and Demonstration Base of Innovative Methods in Anhui Province, Anhui University of Science and Technology, Huainan, China)
Binyang Chen (School of Artificial Intelligence, Anhui University of Science and Technology, Huainan, China)
Jiangli Yu (School of Artificial Intelligence, Anhui University of Science and Technology, Huainan, China)

Industrial Robot

ISSN: 0143-991X

Article publication date: 24 May 2024

Issue publication date: 13 September 2024

284

Abstract

Purpose

The selection of sensitive temperature measurement points is the premise of thermal error modeling and compensation. However, most of the sensitive temperature measurement point selection methods do not consider the influence of the variability of thermal sensitive points on thermal error modeling and compensation. This paper considers the variability of thermal sensitive points, and aims to propose a sensitive temperature measurement point selection method and thermal error modeling method that can reduce the influence of thermal sensitive point variability.

Design/methodology/approach

Taking the truss robot as the experimental object, the finite element method is used to construct the simulation model of the truss robot, and the temperature measurement point layout scheme is designed based on the simulation model to collect the temperature and thermal error data. After the clustering of the temperature measurement point data is completed, the improved attention mechanism is used to extract the temperature data of the key time steps of the temperature measurement points in each category for thermal error modeling.

Findings

By comparing with the thermal error modeling method of the conventional fixed sensitive temperature measurement points, it is proved that the method proposed in this paper is more flexible in the processing of sensitive temperature measurement points and more stable in prediction accuracy.

Originality/value

The Grey Attention-Long Short Term Memory (GA-LSTM) thermal error prediction model proposed in this paper can reduce the influence of the variability of thermal sensitive points on the accuracy of thermal error modeling in long-term processing, and improve the accuracy of thermal error prediction model, which has certain application value. It has guiding significance for thermal error compensation prediction.

Keywords

Citation

Li, L., Chen, B. and Yu, J. (2024), "Thermal error modeling method of truss robot based on GA-LSTM", Industrial Robot, Vol. 51 No. 5, pp. 809-819. https://doi.org/10.1108/IR-11-2023-0283

Publisher

:

Emerald Publishing Limited

Copyright © 2024, Long Li, Binyang Chen and Jiangli Yu.

License

Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial & non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence may be seen at http://creativecommons.org/licences/by/4.0/legalcode


1. Introduction

As a typical industrial robot, the truss robot plays an important role in the manufacturing industry, especially in the field of high-precision machining. In high-speed precision machining, the machining error caused by thermal error accounts for about 40%–70% of the total error (Mayr et al., 2012; Li et al., 2015), which greatly affects the machining accuracy. Therefore, it is an urgent problem to find an effective thermal error control method.

The control methods of thermal error can be divided into two categories. One is to control the thermal error by changing the structure, such as optimizing the structure (Sun et al., 2017) and changing the cooling method (Grama et al., 2018). Such methods are not only economical and cost-intensive, but also complicated to operate, which is difficult to popularize in the actual processing process. The other is the method of thermal error compensation, which needs to arrange temperature measurement points on the robot, and establish a thermal error model based on the temperature difference data to predict the thermal error and then compensate for the thermal error. Generally speaking, the thermal error control method of changing the structure requires the selection of materials with a small thermal expansion coefficient for manufacturing or the improvement of the cooling method of the mechanism at the beginning of the mechanism design. This method will not only lead to economic cost-intensive, but also difficult to operate, so it is difficult to popularize in the actual machining process. The thermal error compensation method based on thermal error modeling only needs to arrange the temperature measurement points on the mechanism, and the temperature data can be collected for thermal error compensation, which is undoubtedly a lower cost and more effective method. The arrangement of temperature measuring points and the selection of thermal sensitive points are the basis of thermal error modeling.

Aiming at the screening of thermal-sensitive points, Huang et al. (2021) used a thermal imager combined with a fuzzy clustering method to screen the thermal-sensitive points of computer numerical control (CNC) machine tools. Sun et al. (2022) used the F statistical test to determine the number of fuzzy C-means clustering (FCM) and combined it with the grey correlation degree to screen out the thermal sensitive points. Wen et al. (2022) also used FCM combined with grey relational degree to screen the heat-sensitive points. These clustering methods simplified the screening method of thermal sensitive points and improved the accuracy of the thermal error prediction model.

However, because the traditional fuzzy clustering algorithm is easy to fall into the local optimal solution, the selected data cannot better express the real temperature change. Therefore, many scholars have improved the traditional fuzzy clustering algorithm and applied it to thermal error modeling. Shi et al. (2023) improved the initialization method of the initial membership matrix in FCM. Zhao et al. (2019) used the standardized Euclidean distance to improve the Euclidean distance and used the metric factor to select the initial clustering center. The above-improved clustering method reduced the multicollinearity of each temperature measuring point to a certain extent.

Miao et al. (2015) proved that the thermal sensitive point is variable by analyzing the batch gas cutting experimental data on the Leaderway-V450 machine tool. Therefore, the above selection of fixed thermal sensitive points ignores the variation characteristics of thermal sensitive points. In the long-term prediction, the robustness of the prediction accuracy will be greatly reduced. Aiming at the variation characteristics of thermal-sensitive points, Miao et al. (2015) proposed a thermal error modeling method based on a principal component regression algorithm, which significantly reduced the influence of temperature-sensitive point changes on the prediction accuracy of the model. Liao et al. (2020) proposed a method for selecting heat-sensitive points based on time characteristics. The point where the fastest temperature reaches the highest value in the measurement process is selected as the heat-sensitive point. Compared with the heat-sensitive point selected by the traditional correlation analysis method, it has higher prediction accuracy. Fu et al. (2022) proposed a set thermal error model based on the influence of temperature points on thermal error, which weights and optimizes multiple thermal error prediction models established by combining multiple thermal sensitive points. The above methods have improved the robustness of model prediction accuracy on the basis of traditional methods.

The traditional thermal error modeling method often uses the critical temperature at the current time as the input to predict the thermal error. However, the thermal error not only depends on the temperature characteristics of the current time but also has an inseparable relationship with the temperature characteristics of the past continuous time (Olabode et al., 2023; Hans and Ghosh, 2020). This leads to the low prediction accuracy and robustness of the thermal error model established by the traditional method due to the inability to consider the time series characteristics. The long short-term memory network (LSTM) network with strong memory ability can make up for this deficiency of the traditional model, and the LSTM network has good applicability in thermal error modeling and compensation. Therefore, the LSTM network is more and more widely used in the field of thermal error modeling. Liu et al. (2021a, 2021b) proposed variable mode decomposition-grey wolf algorithm-LSTM based on VDM, GW and LSTM for thermal error modeling. Gao et al. (2021) proposed particle swarm optimization (PSO)-LSTM based on PSO and LSTM for thermal error modeling. Guo et al. (2022) proposed convolutional neural network (CNN)-LSTM based on CNN and LSTM for thermal error modeling. Ngoc et al. (2022) and Liu et al. (2021a, 2021b) used LSTM for thermal error modeling. LSTM network has been applied more and more in the field of thermal error modeling and has more robust prediction accuracy than the traditional model used for thermal error modeling. Therefore, LSTM network is selected for thermal error modeling in this paper.

Based on the idea of attention mechanism, this paper optimizes the temperature data of the temperature measurement point and combines it with the LSTM network to model the thermal error of the truss robot. The rest of this paper is organized as follows: the second section introduces the basic principles of genetic algorithm (GA)-LSTM-based thermal error modeling methods. The third section introduces the experimental setup of thermal error acquisition of a truss robot. The fourth section verifies the performance of the thermal error prediction model based on the grey attention ‐ long short term memory (GA-LSTM) proposed in this paper. The fifth section summarizes the conclusion.

2. The thermal error modeling method based on genetic algorithm long short-term memory network

LSTM network has a strong ability of time series prediction and can well process thermal error data with time series characteristics. However, at the same time, there are many parameters to be trained in the LSTM network. If the temperature data of all temperature measurement points are input into the LSTM network for prediction, it will greatly affect the efficiency of thermal error modeling and is not conducive to real-time online compensation. Therefore, this paper optimizes the temperature data of the temperature measurement point based on the idea of attention mechanism and combines it with the LSTM network to model the thermal error of the truss robot.

2.1 The basic principle of long short-term memory network

LSTM network is a powerful recursive system, which is specially used to overcome the problems of gradient disappearance or gradient explosion when learning long-term dependence (Hochreiter and Schmidhuber, 1997). The LSTM unit consists of a forgetting gate ft, an input gate it, a unit state Ct and an output gate ot. Its unique gating unit and unit state can complete the forgetting of memory information and long-term and short-term memory operations. The structure of the LSTM unit is shown in Figure 1.

In LSTM, the first gating unit is the forgetting gate, whose input is the output ht–1 of the previous moment and the input Xt of the current moment. It forgets some of the input information through the sigmoid function and inputs the remaining information into the unit state of the current moment. The second gating unit input gate in LSTM determines which input information can update the information in the unit state. C¯t represents the state candidate value, which represents an intermediate state between the unit state Ct–1 at the previous moment and the unit state Ct at the current moment. The output gate of the third gating unit in LSTM determines what information is output, and the output result ht is mainly determined by the updated cell state Ct. The main calculation process of LSTM can be expressed as:

(1) ft=σ(Wfht1+WfXt+bf)
(2) it=σ(Wtht1+WtXt+bt)
(3) C¯t=tanh(Wcht1+WcXt+bc)
(4) Ct=ftCt1+it1C¯t
(5) ot=σ(Woht1+WoXt+bo)
(6) ht=ottanh(Ct)
where Xt is the input at the current time, W represents the weight matrix, b represents the bias, σ and tanh are activation functions and ⊗ represents the multiplication of matrix elements.

2.2 Fuzzy C-means clustering

The FCM describes the correlation between each data point of the sample and each cluster through the membership degree, updates the membership matrix and each cluster center through continuous iteration and finally converges the objective function. The objective function is defined as:

(7) Jm=i=1Nj=1Cuijm||xicj||2,1m

In the formula: m is the number of clusters in the cluster, N is the number of samples, C is the number of cluster centers, X = (x1, x2, …, xi) is the sample data, uij is the membership degree of the sample point xi to the cluster center cj, cj is the jth cluster center and ‖∗‖ is a distance metric, this paper uses Euclidean distance.

The convergence condition of the objective function is as follows:

(8) ||Uijt+1Uijt||<ε

In the formula: U is the membership matrix, t is the number of iterations and ε is a small constant, which represents the minimum variation of membership. That is, comparing the (t + 1)th iteration matrix with the tth iteration matrix, if it does not change, it represents the convergence of the objective function.

The calculation method of membership degree is as follows:

(9) uij=1k=1C(||xicj||||xick||)2m1

The calculation method of cluster center is as follows:

(10) cj=i=1Nuijmxii=1Nuijm

2.3 Temperature measurement point optimization method based on attention mechanism

The traditional temperature measurement point optimization method first divides the temperature measurement points into multiple categories by clustering method and then uses the correlation analysis method to select the temperature measurement point with the highest correlation with the thermal error data as the key temperature measurement point. This method reduces the workload by discarding the temperature data other than the key temperature measurement points, but the key temperature measurement points are often not fixed due to the change in ambient temperature. At this time, if the conventional method of selecting fixed key temperature measuring points is used for thermal error modeling, the temperature information of key temperature measuring points may be ignored, resulting in unstable prediction effect of LSTM network.

The attention mechanism is an input processing method of neural networks. Its essence is to imitate the thinking activity of the human brain when observing things. At this time, humans tend to pay more attention to the parts they are interested in Li and Yu (2023). In this paper, the idea of attention mechanism is introduced. After the clustering is completed, the temperature data of each type of temperature measurement point is divided into time steps. At the same time, attention is added between the input layer and the LSTM layer to extract the temperature data of the temperature measurement point in the key time step of each type to generate a new feature vector as the input of the LSTM network.

The basic principle of the attention mechanism is to calculate the weight of each input feature according to the scoring function and the softmax function, assign high weight to important features and assign low weight to non-important features. In thermal error modeling, the attention mechanism is to give the appropriate attention size from high to low by comparing the correlation degree between the data of the temperature measurement point and the thermal error data. According to the size of the attention, a new input feature is obtained to predict the thermal error. Its attention distribution calculation formula is as follows:

(11) ai=exp(S(Xi,Y))j=1Nexp(S(Xi,Y))

Among them, N represents an N-dimensional input variable, ai is the attention distribution, which represents the weight distribution of each temperature measurement point, S(Xi, Y) is the scoring function, X = {X1, X2, …, Xi} is the temperature data of each temperature measurement point and Y is the thermal error data of the end effector of the truss robot.

The conventional scoring functions in the attention mechanism include point product models and additive models. The weights of the feature vectors calculated by these scoring functions are more inclined to compare the similarity between the query vector and the input feature, which is a relatively hard comparison. In this paper, the method of grey correlation degree is used to replace the scoring function in the attention mechanism, and the temperature measurement points are scored by the correlation degree between the temperature measurement points and the thermal error data. Grey correlation degree is a method to quantify the degree of connection between the analyzed data sequences. The larger the calculated value of the grey correlation degree is, the greater the correlation degree between the corresponding sequences is. The grey correlation degree g(Xi, Y) is as follows:

(12) {ξij=mini=1sminj=1n|YjXij|+ρmaxi=1smaxj=1n|YjXij||YjXij|+ρmaxi=1smaxj=1n|YjXij|g(Xi,Y)=1nj=1nξij

In the formula: ξij is the coefficient of grey correlation degree between the reference sequence and the comparison sequence; Yj is the thermal error data of the jth hour; x is the temperature data of the jth hour of the ith temperature measurement point; s is the number of temperature measuring points; ρ is the resolution coefficient, usually 0.5.

The improved attention distribution calculation method is as follows:

(13) ai=exp(g(Xi,Y))j=1Nexp(g(Xi,Y))

After the attention distribution calculation is completed, the attention of the temperature data of each temperature measurement point is summarized by weighted average to generate a new feature vector. The calculation process is as follows:

(14) ε=i=1NaiXi

The attention-weighted feature vector is input into the LSTM network for thermal error prediction, which avoids the deficiency of ignoring the information of large-scale temperature measurement points in the conventional temperature measurement point optimization method and can reduce the influence of the variability of temperature measurement points on thermal error prediction. The framework of the temperature measurement point optimization method based on the attention mechanism is shown in Figure 2, where Xnt represents the temperature data at the time t of the nth temperature measurement point, and ε is the data completed by the time step feature extraction in each cluster.

2.4 Genetic algorithm long short-term memory network structure

The GA-LSTM structure is shown in Figure 3, where m, n and v. are the number of temperature measuring points in the first cluster, the second cluster and the v. cluster after clustering. A new feature vector sum is generated in each cluster, and the feature vector of each cluster is combined with the ambient temperature to form the input of the LSTM network at time t. In the training process, the gradient descent algorithm is used as the optimization algorithm for network weight update, and the mean square error (MSE) is used as the loss function.

3. Thermal error experiment of three truss robot

A long-term experiment was carried out on the truss robot prototype. The temperature data of each temperature measurement point and the thermal error data of the end effector in X, Y and Z directions were collected and the temperature measurement points were divided by the FCM algorithm.

3.1 Experimental settings

The truss robot is mainly composed of a column, an X-direction beam, a Y-direction beam and a mechanical arm. The X-direction double beams are connected to the column. Among them, the manipulator can realize X-direction and Y-direction sliding through the slide rail of each beam; at the same time, there is a movable Y-direction beam, which can slide along the X-direction track through a driving device composed of a motor, a reducer and a rack.

In the experiment, the ambient temperature is selected as the only heat source to study the thermal error of the truss robot in the high-temperature environment. The beam structure of the truss robot is its main supporting component. The span of the beam structure is often large, and it is connected to many truss robot components. The thermal error generated by the beam structure accounts for most of the overall thermal error of the truss robot. To improve the efficiency of simulation and experiment, the structure of the truss robot is simplified and only the main beam structure is retained as the simulation object. Using the simulation software, combined with the change range of the ambient temperature of the space environment in which the truss robot is located, the temperature change of the truss robot when the ambient temperature increases from 26°C to 36°C is analyzed. The temperature field is shown in Figure 4 when the steady state is reached.

According to the steady-state temperature field of the truss robot obtained by the simulation software, the high-temperature zone, the medium-temperature zone and the low-temperature zone are divided. Five, four and three PT100 magnetic suction temperature sensors are arranged in these three temperature zones, a total of 12 temperature measurement points. The temperature measurement point layout scheme is shown in Figure 5. Among them, T1–T5 are the temperature measurement points in the high-temperature zone, T6–T9 are the temperature measurement points in the middle-temperature zone and T10–T12 are the temperature measurement points in the low-temperature zone. According to the temperature measurement point arrangement scheme shown in Figure 5, the temperature sensor is installed, and the specific arrangement of the temperature measurement point of the truss robot is shown in Figure 6.

In the experiment, the data acquisition card is used to record and monitor the temperature change of each temperature measurement point. The ambient temperature is measured by a thermometer (accuracy of ±0.1°C), the dial gauge (accuracy of ±0.2 μm) is used and the special fixture is designed and installed at the corresponding position of the end-effector to measure the thermal error of the end-effector of the truss robot in X, Y and Z directions. The thermal error measurement method of the end-effector is shown in Figure 7. Only under the influence of ambient temperature, the thermal deformation of the truss robot beam structure is slow, so the dial gauge reading is observed and recorded every half an hour during the experiment. The temperature data of each temperature measurement point of the truss robot and the cumulative thermal error of the end effector were observed in 13 days, and a total of 300 sets of data were measured. Among them, the temperature of each temperature measurement point and the ambient temperature change curve are shown in Figure 8. The first 220 sets of data are taken as the training set, and the rest are taken as the verification set to predict the thermal errors of the end effector of the truss robot in X, Y and Z directions.

3.2 Division of temperature measurement points

FCM is used to divide 12 temperature measuring points, and the F-statistic test is used to determine the number of FCM clusters. The larger the F value is, the greater the difference between the types is and the more reasonable the classification is. The calculation process of the F-statistic test is as follows:

(15) F=Sa2Sb2

Among them, Sa2 is the intergroup variance of each cluster of temperature measurement points and Sb2 is the intragroup variance of each cluster of temperature measurement points:

(16) Sa2=1n1j=1n(cjc¯)2

Here, n is the number of clusters, cj is the cluster center of cluster j and c¯ is the clustering center of all temperature measurement points:

(17) Sb2=1m1i=1nj=1m(xijcj)2

Among them, m is the number of temperature measurement points in cluster j and xij denotes the ith temperature measurement point of cluster j.

The F values and clustering results of different clustering numbers are shown in Table 1, and the F values in the table retain two decimal places. Obviously when the number of clusters n = 3, the F value is the largest. Therefore, when the number of clusters of FCM is set to n = 3, clustering is performed and the classification results are shown in Table 2.

After the completion of clustering, the grey correlation degree method is used to sort the correlation degree of each temperature measuring point, so as to facilitate the comparison between the temperature measuring point optimization method based on the attention mechanism proposed in this paper and the traditional temperature measuring point optimization method of selecting fixed thermal sensitive points. The ranking results of grey correlation degree from large to small are shown in Table 3.

4. Model performance verification

To verify the effectiveness of the thermal error modeling method based on GA-LSTM proposed in this paper, it is compared with the A-LSTM that uses the conventional attention mechanism to extract the key time step features of each cluster of temperature measurement points and the LSTM that uses the traditional fixed temperature measurement method for error prediction. Among them, GA-LSTM and A-LSTM adopt the method proposed in this paper to extract the key time step feature of each type of temperature measurement point for thermal error modeling. LSTM adopts the traditional fixed temperature measurement point thermal error prediction method. According to the clustering and grey correlation degree ranking results in Section 3.2, the temperature measurement points T7, T9 and T10 are selected as the key temperature measurement points for thermal error modeling.

The hyperparameters of the three models are set as follows: Time step is 6, Batch _ size is 48, Epochs is 150, learning efficiency is 0.02, the number of hidden layer units in the first layer is 46, the number of hidden layer units in the second layer is 38 and the Dropout is 0.2. The experimental results of the end effector of the truss robot in X, Y and Z directions are shown in Figures 9, 10 and 11, respectively.

The (MAE, root mean square error (RMSE) and mean absolute percentage error (MAPE) are used as the performance evaluation indexes of the model. The smaller the value, the higher the prediction accuracy of the model. Defined as follows:

(18) MAE=1Ni=1N|y¯iyi|
(19) RMSE=1Ni=1N(y¯iyi)2
(20) MAPE=100%Ni=1N|y¯iyiyi|

In the above formula, N is the number of samples and y¯i and yi represents the predicted and observed values of the ith sample, respectively.

The (a)–(c) of Figures 911 are the thermal error prediction effects of each model in each direction of the end effector of the truss robot. It can be seen from the figure that compared with the thermal error prediction model established by LSTM using fixed temperature measurement points, the two GA-LSTM and A-LSTM using attention mechanism to extract the key time step features of temperature measurement points have better fitting performance with the measured values in X, Y and Z directions. At the same time, the prediction accuracy of the three directions of GA-LSTM improved by grey correlation degree is obviously better than that of A-LSTM before improvement.

The (d) of Figures 911 is the fitting residuals of each model in three different directions. The fitting residual is the difference between the measured value and the predicted value. The closer the fitting residual is to 0, the better the model performance is. From the results, it can be seen that compared with the thermal error prediction model established by LSTM using fixed temperature measurement points, the fitting residuals of GA-LSTM and A-LSTM using two attention mechanisms to extract the key time step features of temperature measurement points in X, Y and Z directions are closer to 0, and the fluctuation range is smaller. At the same time, compared with the A-LSTM before the improvement of the attention mechanism, the GA-LSTM after the improvement of the attention mechanism has smaller residual fluctuations in all three directions, and the residual fluctuations in all three directions are basically within 2 μm, which is much better than A-LSTM.

Table 4 is the comparison of the prediction effect of each model in three directions under the three evaluation indexes. It can be seen from the table that the thermal error models A-LSTM and GA-LSTM established by the key time step feature extraction method proposed in this paper are much smaller than the thermal error models established by the fixed temperature measurement point method. At the same time, except for the MAPE value in the Y direction, the GA-LSTM has the smallest errors in all three directions. The structure shows that the model has good prediction performance.

In the long-term thermal error experiment, with the change of ambient temperature every day, the change of key temperature measurement points will be more frequent and the conventional method of selecting fixed temperature measurement points has been greatly affected by the variability of key temperature measurement points. At this time, the selected thermal sensitive points often cannot effectively reflect the temperature characteristics of all temperature measurement points, which leads to the relatively poor prediction performance of LSTM. GA-LSTM and A-LSTM are used to extract the key time step features of each cluster of temperature measurement points, which can effectively reduce the influence of the variability of temperature measurement points on prediction accuracy. The GA-LSTM, which improves the scoring function in the attention mechanism, adopts the grey correlation method for scoring. Compared with the hardness of conventional scoring functions, it can more effectively calculate the degree of correlation between temperature measurement points and thermal errors. Therefore, its prediction is the best in all three directions. The experimental results prove the effectiveness of the thermal error modeling method for extracting key time step features by the attention mechanism and the effectiveness of the improved attention mechanism.

5. Conclusion

The traditional temperature measurement point optimization method is to select fixed thermal sensitive points for thermal error modeling, ignoring the variation characteristics of thermal sensitive points. In the long-term prediction, the robustness of the prediction accuracy will be greatly reduced. Based on the traditional attention mechanism, this paper improves it to optimize the temperature measurement point and improves the modeling efficiency and model prediction accuracy without abandoning the temperature measurement point data. Based on the current work, we draw the following conclusions:

  • The thermal error prediction model A-LSTM is constructed by using the conventional attention mechanism to extract the key time step features of each cluster of temperature measurement points. The average RMSE, MAE and MAPE in the X, Y and Z directions of A-LSTM are 31.6%, 35.0% and 35.9% lower than those of LSTM with fixed temperature measurement. It shows that the thermal error prediction model established by the temperature measurement optimization method based on the attention mechanism to extract the key time step characteristics of each cluster of temperature measurement points has higher prediction accuracy.

  • The average RMSE, MAE and MAPE of GA-LSTM thermal error prediction model constructed by improved attention mechanism in X, Y and Z directions are 28.0%, 31.2% and 15.4% lower than those of A-LSTM with conventional attention mechanism. It shows that the GA-LSTM thermal error prediction model GA-LSTM constructed by the improved attention mechanism has higher prediction accuracy than the A-LSTM using the conventional attention mechanism.

  • The GA-LSTM thermal error prediction model based on attention mechanism proposed in this paper can reduce the influence of the variability of thermal sensitive points on the accuracy of thermal error modeling in long-term processing, and improve the accuracy of thermal error prediction model, which has certain guiding significance for thermal error compensation prediction. However, the thermal error compensation effect has not been verified. In the future, the thermal error compensation experiment will be carried out based on this model, and its compensation effect will be verified in the next stage of research work.

Figures

LSTM unit structure diagram

Figure 1

LSTM unit structure diagram

Optimization method of temperature measurement point based on attention mechanism

Figure 2

Optimization method of temperature measurement point based on attention mechanism

GA-LSTM structure

Figure 3

GA-LSTM structure

Temperature field of truss robot

Figure 4

Temperature field of truss robot

Layout scheme of temperature measuring points

Figure 5

Layout scheme of temperature measuring points

The specific arrangement of temperature measurement points of truss robot

Figure 6

The specific arrangement of temperature measurement points of truss robot

Thermal error measurement method of end effect

Figure 7

Thermal error measurement method of end effect

Temperature change of each temperature measuring point

Figure 8

Temperature change of each temperature measuring point

X direction prediction effect

Figure 9

X direction prediction effect

Y direction prediction effect

Figure 10

Y direction prediction effect

Z direction prediction effect

Figure 11

Z direction prediction effect

F values and clustering results of different clustering numbers

No. of clusters F Clustering results
C = 2 100.87 {1,2,7,10} {3,4,5,6,8,9,11,12}
C = 3 155.69 {1,2,7,10} {3,8} {4,5,6,9,11,12}
C = 4 90.15 {2,7} {3,8} {4,5,6,9,11,12} {1,10}
C = 5 79.99 {1,2,7,10} {3,8} {4} {5,6,9} {11,12}
C = 6 69.2 {1,10} {2,7} {3,8,9} {4} {5,6} {11,12}

Source: Authors’ own work

Classification results

Class Temperature measuring point
1 T2, T7
2 T3, T4, T5, T6, T8, T9, T11, T12
3 T1, T10

Source: Authors’ own work

Grey correlation degree ranking results

Class Temperature measuring point
1 T2, T7
2 T3, T4, T5, T6, T8, T9, T11, T12
3 T1, T10

Source: Authors’ own work

Comparison of model prediction effects

Models X-direction Y-direction Z-direction
RMSE MAE MAPE RMSE MAE MAPE RMSE MAE MAPE
LSTM 2.58 2.159 1.411 1.772 1.346 0.93 1.001 0.747 1.223
A-LSTM 1.658 1.331 0.659 1.245 0.914 0.666 0.758 0.52 0.958
GA-LSTM 1.072 0.807 0.431 0.971 0.693 0.683 0.591 0.401 0.818

Source: Authors’ own work

References

Fu, G., Zhou, L., Lei, G., Lu, C., Deng, X. and Xie, L. (2022), “A universal ensemble temperature-sensitive point combination model for spindle thermal error modeling”, The International Journal of Advanced Manufacturing Technology, Vol. 119 Nos 5/6, pp. 3377-3393.

Gao, X., Guo, Y., Hanson, D.A., Liu, Z., Wang, M. and Zan, T. (2021), “Thermal error prediction of ball screws based on PSO-LSTM”, The International Journal of Advanced Manufacturing Technology, Vol. 116 Nos 5/6, pp. 1721-1735.

Grama, S.N., Mathur, A. and Badhe, A.N. (2018), “A model-based cooling strategy for motorized spindle to reduce thermal errors”, International Journal of Machine Tools and Manufacture, Vol. 132, pp. 3-16.

Guo, J., Xiong, Q., Chen, J., Miao, E., Wu, C., Zhu, Q., Yang, Z. and Chen, J. (2022), “Study of static thermal deformation modeling based on a hybrid CNN-LSTM model with spatiotemporal correlation”, The International Journal of Advanced Manufacturing Technology, Vol. 119 Nos 3/4, pp. 2601-2613.

Hans, S. and Ghosh, S. (2020), “Position analysis of brushless direct current motor using robust fixed order H-infinity controller”, Assembly Automation, Vol. 40 No. 2, pp. 211-218.

Hochreiter, S. and Schmidhuber, J. (1997), “Long short-term memory”, Neural Computation, Vol. 9 No. 8, pp. 1735-1780.

Huang, Z., Liu, Y., Liao, R. and Cao, X. (2021), “Thermal error modeling of numerical control machine tools based on neural network neural network by optimized SSO algorithm”, Journal of Northeastern University (Natural Science), Vol. 42 No. 11, pp. 1569-1578.

Li, K. and Yu, M. (2023), “An improved DA-LSTM time series prediction model based on dual attention mechanism”, Computer Applications and Software, Vol. 40 No. 2, pp. 253-258+349.

Li, Y., Zhao, W., Lan, S., Ni, J., Wu, W. and Lu, B. (2015), “A review on spindle thermal error compensation in machine tools”, International Journal of Machine Tools and Manufacture, Vol. 95, pp. 20-38.

Liao, Q., Wang, L., Yin, G. and Xie, Z. (2020), “Thermal key points selection and thermal error modeling of spindle system of CNC peripheral grinding machine”, Journal of Central South University (Science and Technology), Vol. 51 No. 6, pp. 1501-1508.

Liu, Y., Li, K. and Tsai, Y.C. (2021a), “Spindle thermal error prediction based on LSTM deep learning for a CNC machine tool”, Applied Sciences, Vol. 11 No. 12, p. 5444.

Liu, J., Ma, C., Gui, H. and Wang, S. (2021b), “Thermally-induced error compensation of spindle system based on long short term memory neural networks”, Applied Soft Computing, Vol. 102.

Mayr, J., Jedrzejewski, J., Uhlmann, E., Donmez, M.A., Knapp, W., Hartig, F., Wendt, K., Moriwaki, T., Shore, P., Schmitt, R., Brecher, C., Wurz, T. and Wegner, K. (2012), “Thermal issues in machine tools”, CIRP Annals, Vol. 61 No. 2, pp. 771-791.

Miao, E., Liu, Y., Liu, H., Gao, Z. and Li, W. (2015), “Study on the effects of changes in temperature-sensitive points on thermal error compensation model for CNC machine tool”, International Journal of Machine Tools and Manufacture, Vol. 97, pp. 50-59.

Ngoc, H.V., Mayer, J.R.R. and Bitar-Nehme, E. (2022), “Deep learning LSTM for predicting thermally induced geometric errors using rotary axes’ powers as input parameters”, CIRP Journal of Manufacturing Science and Technology, Vol. 37, pp. 70-80.

Olabode, O.F., Fletcher, S., Longstaff, A.P. and Bell, A. (2023), “Core temperature measurement using ultrasound for high precision manufacturing processes”, Proceedings of the Institution of Mechanical Engineers, Part B: Journal of Engineering Manufacture, Vol. 237 No. 13, pp. 2176-2187.

Shi, H., Qu, Q., Xiao, Y., Liu, Q. and Tao, T. (2023), “Temperature-sensitive points optimization of spindle on vertical machining center with improved fuzzy C-means clustering”, Machines, Vol. 11 No. 1, p. 80.

Sun, A., Wang, L. and Xie, X. (2022), “Modeling of spindle thermal error based on MEA-NARX neural network”, Machine Tool and Hydraulics, Vol. 50 No. 24, pp. 49-53.

Sun, L., Ren, M., Hong, H. and Yin, Y. (2017), “Thermal error reduction based on thermodynamics structure optimization method for an ultra-precision machine tool”, The International Journal of Advanced Manufacturing Technology, Vol. 88 Nos 5/8, pp. 1267-1277.

Wen, M., Zhong, J., Peng, B., Wang, P. and Wang, Z. (2022), “Thermal error optimization modeling of motorized spindles based on WOA-SVR”, Machine Tool and Hydraulics, Vol. 50 No. 22, pp. 38-42.

Zhao, J., Wu, L., Huang, L. and Hu, C. (2019), “Research on optimization and modeling of temperature measurement points based on improved fuzzy C means clustering algorithm”, Modular Machine Tool and Automatic Manufacturing Technique, Vol. 6, pp. 63-66.

Acknowledgements

Funding: The Key Project of Natural Science Research Project of Anhui Universities (Grant no. KJ2021A0418), the Anhui University of Science and Technology Re-search Start-up Fund for High-level Talents Introduction (13200391), the Anhui Province Innovation Method Promotion and Demonstration Base Open Fund (2022AHIMG03).

Corresponding author

Binyang Chen can be contacted at: 806902001@qq.com

Related articles