1 Introduction

Thermally induced errors contribute substantially to the overall error affecting the machining accuracy [1], particularly given the current high-speed trend in machine tools. The thermal-induced errors account for as much as 75% of the machined geometric errors [2]. Thermal errors can generally be attributed to the thermal deformations of the machine elements caused by heat sources within the structure, i.e., ball screws, bearings, nuts, axis drive motors, friction on the surfaces, cutting processes, the flow of coolant/lubricating oil, and the ambient temperature [3]. The ball screw feed drive system (BSFDS) is a crucial and indispensable transmission mechanism responsible for converting the motor-generated rotational motion into the linear motion of a nut-driven carriage. However, the thermal elastic deformation of ball screws resulting from heat generation in the motor, nuts, and bearings causes thermal errors that significantly impact machining accuracy. Hence, it is imperative to undertake research aimed at mitigating the thermal effects of the ball screw, enhancing the position accuracy of machine tools.

Thermal error avoidance/control and thermal error modeling/compensation are the two solutions for reducing thermal errors of BSFDS. Engineers tend to design and optimize the structure of the machine [4], add a cooling system [5, 6], separate the heat source, control the room temperature of the workshop, use new materials with high thermal conductivity [7] or the negative coefficient of thermal expansion [8], or employ real-time active thermal control method [2]. However, certain approaches necessitate modifying the machine tool structure or incorporating new systems, requiring a profound comprehension of the machine tool’s structure. Additionally, certain methods introduce new materials, increasing the concerns regarding material durability.

Thermal error compensation is a cost-effective strategy to offset thermal-induced errors by actively introducing controlled errors into the system, improving machining accuracy without necessitating modifications to the machine tool’s structure. The effectiveness of compensation relies heavily on precise temperature measurements at sensitive points and accurate prediction of thermal errors during machining operations. Consequently, establishing a thermal error model with high prediction accuracy and robustness is the fundamental basis for thermal error compensation. Nevertheless, given the nonlinear nature of thermal errors and the constantly ever-changing and intricate working conditions, accurately capturing the variation pattern of thermal errors using a model remains challenging.

Theoretical and empirical modeling are the two main modeling methods for thermal errors. Theoretical modeling involves utilizing heat transfer theory and appropriate boundary conditions to solve the temperature distribution and thermal error. In more intricate scenarios, these parameters are commonly obtained via finite element analysis (FEA) [9, 10]. The finite element modeling method’s precision hinges on the boundary conditions’ accuracy. However, obtaining accurate heat source intensity and boundary conditions is challenging due to the nonlinear temperature increase in BSFDS. Additionally, applying the FEA method is constrained by its time-consuming nature, limiting its widespread usage [11]. Empirical modeling directly builds a mapping relationship between the machine tool working conditions and the volumetric thermal error based on experimental data [2].

The general steps of empirical modeling include selecting thermal key points and using algorithms to establish a mapping relationship between thermal key points’ temperature and thermal errors. The temperature field of BSFDS can be mainly reflected by the temperature of thermal sensitive points [11]. Frequently used algorithms for thermal error modeling include the least square method, multiple regression analyses, grey system, support vector machine (SVM), hybrid model, and neural networks [12] .

Jiang and Yang [13] successfully fitted the thermal drift error curve of the spindle by employing the Chebyshev polynomial-based orthogonal least squares regression method. The authors concluded that the resulting curve agreed with the measurement error curve. Specifically, the maximum modeling residuals in the X, Y, and Z directions were found within the ranges of 0.8–1 μm, 0.6–0.9 μm, and 1.2–1 μm, respectively. Pajor and Zapłata [14] developed an analytical model for the spindle using the multiple regression approach. The authors reduced the thermal error from 73 to 13 μm by applying this model for thermal error compensation of the spindle. Despite these two methods’ relatively simple model structure and reliable performance, their predictive ability in complex conditions is low. Jiang and Yang [15] employed a genetic algorithm to optimize the dimensions and variable weights of a new gray system model based on the standard gray system model GM (1, 1) to minimize the residual value of the optimized model. The resultant optimized model captures the systematic trend of thermal errors and mitigates the impact of random fluctuations in thermal error, improving the prediction accuracy of the thermal error model. Although it does not depend on extensive and comprehensive data information, the model will be different when the input is altered, and its convergence speed is relatively slow.

Zhang et al. [16] incorporated the grid search method to optimize the penalty and kernel of the SVM thermal error model, enhancing the model’s performance. Significant reductions of 89.55% and 85.67% were achieved in the X-axis positioning error and Z-axis positioning error by applying the optimized model to the X and Z axes of the CNC platform, respectively. SVM demonstrates strong nonlinear function fitting capability [17]. However, it necessitates significant computing resources, exhibits slow convergence speed, and presents challenges in parameter selection.

Neural network, an emerging data-driven modeling method originating from artificial intelligence, has found widespread application in thermal error prediction. The thermal errors of machine tools in multiple directions can be accurately fitted and predicted after the network’s learning and training [18, 19]. Since single modeling methods often struggle to perform well, hybrid modeling methods have been proposed to compensate for their shortcomings. GA, particle swarm optimization (PSO), and grey theory have been adopted into the neural network to optimize the initial value and increase the accuracy, convergence, and robustness [11]. However, mechanism and data hybrid-driven models in thermal error compensation have not been reported.

Ma et al. [20] optimized BP algorithm with GA and PSO, enhancing the machining accuracy of a borer spindle system in a precision jig by 67% and 89%, respectively. Tan [21] combined multiple BP neural network models to enhance predictive performance. The integrated model was applied to a horizontal machining center THM6380, resulting in an RMSE of 5.6522 μm, demonstrating improved accuracy in prediction. BP neural networks have high robustness and fault tolerance ability. However, their convergence speed is slow and can easily fall into value-extremum. Zhang et al. [22] improved the radial basis function (RBF) neural network and developed a thermal error prediction model by utilizing the PSO algorithm to optimize critical parameters of the RBF neural network. Zhang et al. [23] employed fuzzy clustering and grey relational analysis techniques to optimize the placement of temperature measurement points. Subsequently, the authors developed a radial basis function neural network prediction model using a genetic algorithm. The enhanced model exhibits enhanced accuracy and increased robustness compared to the conventional RBF neural network approach. Moreover, the residual error of the forecasting model was reduced from 4.88 to 3.80 μm to 2.48–2.14 μm. However, extracting key feature functions poses a challenging task in utilizing RBF neural networks. Gao et al. [24] introduced a thermal error prediction method based on PSO and long short-term memory (LSTM) neural networks. Comparative analysis of the performance of PSO-LSTM, BP, and RBF models under various working conditions revealed that the PSO-LSTM model exhibits superior performance and robustness. As data-driven models, neural networks generally exhibit high prediction accuracy and faster training speed.

However, the abovementioned data-driven models encounter difficulties regarding full-time series prediction. This limitation arises because model validation is typically performed solely on a test set representing only a small portion of the entire dataset. Furthermore, all the compensation mentioned above methods necessitate temperature collection processes encompassing the selection of thermal error points, installation of temperature sensors, and precise temperature measurements, serving both thermal error modeling and compensation stages. Unfortunately, these complex temperature collection processes increase installation and maintenance expenses. Moreover, the disregard for the installation location of temperature sensors during the machine tool design phase poses challenges in the subsequent installation of sufficient temperature sensors.

This paper proposes a mechanism and data hybrid-driven model to address the abovementioned problems. Initially, a temperature model based on the heat transfer theory and thermal characteristic parameters of ball screws is proposed and experimentally validated. Furthermore, the data-driven models based on different traditional neural networks are established to predict the thermal error of ball screws with the calculated temperature as input data. Then, BAS is employed to optimize the hyperparameters of neural networks and improve the model’s performance. Finally, the predicted performance of the proposed hybrid-driven model is compared against traditional neural networks.

The hybrid-driven model proposed in this study utilizes working condition data to enable accurate prediction of thermal errors of ball screws in full-time series without temperature data collection. Furthermore, the thermal deformation can be easily converted into thermal error by establishing the relationship between thermal deformation and error during compensation. This study’s research logic and roadmap are visually depicted in Fig. 1.

Fig. 1
figure 1

Research logic and roadmap of this study

The remainder of this paper is organized as follows. In Section 2, the mechanism and data hybrid-driven modeling method is introduced. The thermal characteristic experiment is conducted to validate the temperature model and provide a dataset for data-driven modeling. In Section 3, the performance of the proposed mechanism and data hybrid-driven models is discussed and compared. The paper is summarized, and the main conclusions are drawn in Section 4.

2 Thermal error prediction of ball screws based on a hybrid-driven model

A hybrid-driven model comprising a mechanism-driven model and a data-driven model is proposed for the full-time series prediction of thermally induced errors in ball screws. Firstly, a temperature model of key thermal sensitive points is developed based on heat transfer theory and validated through thermal characteristic experiments. Secondly, data-driven models are proposed based on various traditional neural networks to predict thermal errors. Then, the essential hyperparameters of these deep learning models are optimized using the BAS algorithm. The input and output of the hybrid-driven model are the rotational speed and the thermal deformation of the ball screw, respectively. Finally, the established hybrid-driven model utilizes working condition data of thermal sensitive points instead of measured temperatures to predict thermal errors of ball screws in full-time series.

2.1 Mechanism and data hybrid-driven model for thermal error prediction of ball screws

Neural network models based on the time-varying characteristics of the thermal error in the ball screw are employed for regression prediction of the thermal error. A mechanism and data hybrid-driven model is proposed for thermal error prediction by integrating a temperature model, providing calculated temperature data as input for the data-driven model. This part establishes the mapping relationship between working conditions and thermal error. This approach eliminates the need for temperature measurements at thermal sensitive points because the temperature is theoretically calculated using the temperature model based on the rotational speed during operation and other related thermal parameters of the ball screw. Consequently, the proposed approach circumvents the complex and costly process of temperature data collection during the modeling and compensation phases. The mapping relationship between the input and output data of the hybrid-driven model is depicted in Fig. 2. The proposed mechanism and data hybrid-driven model capture the temperature rise mechanism and adjust input parameters to accommodate various working conditions while also possessing the nonlinear mapping capability and self-adaptive characteristics offered by the data-driven model. The mechanism-driven model for theoretical temperature and data-driven model for thermal errors are introduced in order.

Fig. 2
figure 2

Mapping relations between input and output data of a hybrid-driven model

2.2 Temperature model of ball screws based on heat transfer theory

2.2.1 Temperature modeling

A temperature model is developed based on the principles of heat transfer theory and the essential thermal parameters of a specific ball screw test bench to determine the temperature of the key thermal sensitive points on the ball screw. This paper focuses on the high-speed precision ball screw experimental platform as the primary subject of investigation. The primary parameters of the ball screw are presented in Table 1.

Table 1 Parameters of the ball screw

In the previous research, three thermal error-sensitive points specifically situated at the contact regions of the fixed bearing, supporting bearing, and nut of the ball screw [24] were identified through thermal modal analysis (TMA). Thus, these three key thermal sensitive points are chosen as the feature points in this study for computing the thermal parameters (Fig. 3).

Fig. 3
figure 3

Thermal sensitive points on the test bench of the ball screw

The variation in temperature of the ball screw primarily arises from the generation of frictional heat at the contact surfaces and the convective heat transfer with the surrounding environment. Therefore, the thermal analysis considers heat generation and diffusion [25]. The real-time temperature of each component of the ball screw was determined based on the operational rotational speed, the thermal boundary conditions of the system, and the relationship between temperature rise and heat transfer by employing the principles of heat transfer theory and utilizing the derived solution for the essential thermal parameters of the ball screw. The temperature rise of each component in the ball screw can be mathematically expressed as follows:

$${T_2}={T_{\text{1}}}{\text{+}}\frac{{{Q_\text{Z}}}}{{CM}}$$
(1)

where T1 and T2 represent the initial temperature and the temperature at the specific calculation time of the thermal sensitive point of the ball screw, respectively, QZ denotes the total heat absorbed by each component of the ball screw where thermal sensitive points are located, C signifies specific heat capacity of each component of the ball screw, and M represents the mess of each component of the ball screw.

The specific solution procedure of the temperature model for calculating the temperature rise of the component at the location of the thermal sensitive point is given in the Appendix.

2.2.2 Experimental validation

Thermal characteristic experiments were conducted on a high-speed test bench for the precision ball screw under four different working conditions to validate the effectiveness and accuracy of the abovementioned temperature model. The experimental setup and the data acquisition system employed for the experiments are illustrated in Fig. 4. The parameters of the measuring instrument are provided in Table 2. Three temperature sensors were positioned at the fixed bearing, supporting bearing, and nut locations to capture the real-time temperature variation. Additionally, an eddy current displacement sensor was installed at the end face of the screw to measure the thermal deformation.

Fig. 4
figure 4

The experimental setup

Table 2 Parameters of the experimental instrument

Four thermal characteristic experiments, comprising two randomly selected speeds, a step speed and a constant speed, were carried out under the rotational speeds specified in Table 3. During the experiments, the nut moves with the screw in the reciprocating cycle. The real-time temperature of the thermal sensitive points and the thermal deformation of the screw were collected during the experiment by a custom-made data acquisition system with a sampling period set at 1 s. After each experiment, a natural cooling period of 24 h was implemented to allow the temperature of the components to return to ambient temperature conditions.

Table 3 Rotational speed of four thermal characteristic experiments

The temperature of each thermal sensitive point under four working conditions was calculated based on the temperature model according to the rotational speed of the ball screw. Comparative analysis was conducted between the temperature data collected from the thermal characteristic experiment of the ball screw and the calculated temperature data obtained from the temperature model under four working conditions. The comparative results under random speed 1 are presented in Fig. 5, illustrating a favorable correspondence between the temperature variations of each component and the rotational speed variation of the ball screw. Similar consistency was also observed in the comparative results under the other working conditions (Appendix).

Fig. 5
figure 5

Temperature comparison among key thermal sensitive points at random speed 1

According to the obtained results, it is observed that the calculated temperature data for the supporting bearing exhibits minimal deviation and high accuracy. The calculated temperature data fluctuates around the corresponding experimental temperature data. This indicates a strong agreement between the calculated results of the temperature model and the experimental results in terms of capturing the temperature changes of the supporting bearing.

However, the nut’s calculated temperature is generally higher than the experimental temperature. In contrast, the temperature calculation results for the fixed bearing tend to be lower than the corresponding experimental values most of the time. The discrepancies can be attributed to variations in parameters such as thermal conductivity, specific heat capacity, and heat transfer characteristics between the temperature model and the physical model in its operational state. The maximum relative errors between the calculated and experimental temperature for each working condition are presented in Table 4. Specifically, the maximum relative errors for the nut, fixed bearing, and supporting bearing under different working conditions are 8.097%, 2.787%, and 1.275%, respectively. The results demonstrate that the temperature model applied to the thermally sensitive points of the ball screw exhibits acceptable accuracy, as indicated by the similarity between the fundamental trend of predicted data and the experimental data presented in the figure and further supported by the quantified error indicators within acceptable thresholds in the table. Consequently, this accuracy level facilitates the calculation and simulation of temperature rise during the actual operation of the ball screw and positions the proposed temperature model as a viable alternative to traditional temperature sensors. Furthermore, discrepancies between temperature calculated by the temperature model and real-world conditions can be improved and mitigated through subsequent application of data-driven modeling techniques designed to predict thermal errors.

Table 4 Maximum relative error of calculated temperature on each work condition

2.3 Data-driven models for thermal error prediction of ball screws

2.3.1 Thermal error modeling

Various neural network models, including BP, LSTM, and convolutional neural network (CNN), are employed for predicting the thermal deformation of the ball screw due to their capability to perform regression prediction and handle time series data. In these data-driven models, the calculated temperature (Tb1, Tb2, and TN) obtained from the temperature model under the random speed 1 and the experimental thermal deformation (D) obtained from the thermal characteristic experiment under the random speed 1 are utilized as input and output data to construct the feature dataset required for model training. The calculated temperature and experimental thermal deformation data in full time series under the other three working conditions are employed as the test sets to evaluate the performance of the established data-driven models. The developed data-driven models for full-time series thermal error prediction are employed to establish the mapping relationship between the calculated temperature of thermal sensitive points and thermal deformation. The dataset configurations, feature parameters, training, and testing methodologies of the models are kept constant to ensure a fair comparison among the three data-driven models. Additionally, the input and output data must be normalized before model training to mitigate the impact of data from different dimensions on the training outcomes. Lastly, the maximum number of training iterations is 100 to avoid excessive computational costs.

2.3.2 Hyperparameter optimization

Determining the optimal hyperparameters of the model is crucial for developing an accurate thermal error prediction model with optimal performance. Similar to other optimization algorithms, such as PSO and GA, the BAS algorithm can automatically search for the best solution. BAS algorithm is designed to mimic the movement of beetles towards the direction of antennae with strong odor signals, enabling efficient and rapid foraging. BAS can solve optimization problems quickly due to its simplicity and effective search process. Thus, in this study, the BAS algorithm is employed to optimize the hyperparameters of the thermal error prediction model for quick and automatic convergence towards high accuracy.

Since the prediction model based on the LSTM neural network exhibits abnormal and unacceptable prediction data during the initial prediction stage, the remaining two prediction models based on BP and CNN are further optimized by BAS. RMSE is utilized as the fitness function for hyperparameter optimization. The hyperparameters of the BP and CNN models are separately optimized to obtain the minimized RMSE value. In the CNN neural network, the optimized hyperparameters encompass the convolution kernel size for the two convolutional layers, the initial learning rate of the network, the learning rate decay factor, and the learning rate decay cycle. Simultaneously, the weights and thresholds of the BP neural network are optimized using the BAS algorithm to achieve the network’s optimal prediction performance. Additionally, the maximum number of iterations for the BAS optimization algorithm is set to 100 to ensure efficient convergence and accuracy.

2.4 Thermal error prediction based on mechanism and data hybrid-driven model

Initially, the rotational speed data, serving as the working condition data, are input into the temperature model to generate time series temperature data for three thermal sensitive points. Subsequently, the obtained temperature data and thermal deformation in the axial direction measured by the eddy current displacement sensor are fed into various networks to train the data-driven models, including CNN, LSTM, BP, BAS-CNN, and BAS-BP. Then, the key hyperparameters of each network determined by the BAS optimization algorithm are input into the networks to obtain the optimal configuration of the models and predict a thermally induced error. The flowchart illustrating the process of hybrid-driven modeling for thermal error prediction of ball screws is presented in Fig. 6.

Fig. 6
figure 6

Flowchart of the hybrid-driven modeling process for thermal error prediction of ball screws

Figure 7 illustrates the changes in fitness of the two models in the model training stage during the optimization process across various operational conditions, providing compelling evidence of the algorithm’s effective convergence.

Fig. 7
figure 7

Adaptation curve of the optimization process under different working conditions

Three test data sets in full-time series corresponding to different working conditions are utilized to validate the accuracy of the established mechanism and data hybrid-driven model. The prediction results will be discussed in the next chapter.

3 Prediction results and discussion

Comparative analyses are conducted among hybrid-driven models based on different neural networks to assess the proposed mechanism and data hybrid-driven models’ performance, validate the optimization algorithm’s effectiveness, and determine the optimal model with the highest accuracy. The comparison results are then thoroughly examined and discussed.

3.1 Comparison between hybrid-driven models based on CNN, BP, and LSTM

The average thermal error values of the five predicted results from CNN, LSTM, and BP neural network prediction models under different working conditions are presented in Fig. 8 to compare the predicted results and performance of the mechanism and data hybrid-driven models. The prediction accuracy of all three hybrid-driven models is relatively high during the early prediction stage. In contrast, the prediction errors mainly occur in the latter half of the prediction process. Furthermore, the prediction results indicate superior performance of all three models under the constant speed condition compared to other working conditions. Specifically, the CNN prediction model demonstrates the highest accuracy, followed by the LSTM and BP models. It is worth noting that the LSTM prediction model exhibits better overall prediction accuracy compared to others under the constant speed condition. However, it is characterized by occasional local deviation points in its prediction results.

Fig. 8
figure 8

Comparison between thermal error predicted mean results based on different neural networks

Two evaluation metrics, RMSE and MAE, are employed to quantitatively assess the model’s predictive performance. A lower value for these evaluation metrics indicates a higher accuracy of the established model. The evaluation results for the thermal error prediction model of the ball screw in the full-time series are presented in Tables 5 and 6. The model utilizing the CNN network as the data-driven framework demonstrates the closest alignment between the predicted and experimental results under random and step speed working conditions. This model exhibits superior performance compared to the other two hybrid-driven models. Moreover, the hybrid-driven prediction model based on the CNN neural network framework is characterized by a relatively stable prediction accuracy without any local mutation points observed during the initial prediction period (unlike the LSTM model).

Table 5 RMSE results
Table 6 MAE results

In conclusion, the hybrid-driven prediction model with the CNN network as the data-driven framework exhibits the highest accuracy among the three models, particularly under random and step speed working conditions. This model demonstrates stable prediction accuracy in full-time series and avoids local mutation points observed in the initial prediction period of the LSTM model.

3.2 Comparison between optimized and unoptimized models

The predicted thermal errors of the ball screw under three working conditions obtained from the BAS-CNN, CNN, BAS-BP, and BP prediction models are compared with the corresponding experimental results. Figures 9 and 10 illustrate the comparison.

Fig. 9
figure 9

BAS-CNN-based thermal error prediction results for different working conditions

Fig. 10
figure 10

BAS-BP-based thermal error prediction results for different working conditions

The thermal error prediction results based on the BAS-CNN and BAS-BP models demonstrate a closer alignment with the experimental values throughout the full-time series prediction than the unoptimized prediction model. The optimized models exhibit higher prediction accuracy and stability, validating the efficiency of the BAS-optimized algorithm. Although there may be some fluctuations in the predicted thermal error values compared to the experimental values under certain working conditions, these fluctuations have a limited impact on the overall prediction accuracy and stability.

3.3 Comparison between BAS-CNN and BAS-BP

The predicted thermal errors obtained from the BAS-CNN and the BAS-BP models under the same working conditions are compared with the corresponding experimental results in Fig. 11.

Fig. 11
figure 11

Comparison of thermal error prediction results based on BAS-CNN and BAS-BP

Both models exhibit favorable prediction performance under random and constant speed conditions. Both models exhibit fluctuations in the predicted values for the step speed condition. However, the BAS-BP prediction model exhibits stages in certain prediction times that deviate from the observed trend of the experimental thermal error. Furthermore, the BAS-BP model displays higher prediction errors than the BAS-CNN model at the initial and final stages of the prediction process under random and step speed working conditions.

The distribution of relative and absolute errors in the prediction results of the BAS-CNN and BAS-BP models is presented in Figs. 12 and 13, respectively, to assess their full-time series prediction performance and reliability. It can be observed that the prediction errors under the three different working conditions are acceptable in engineering. Specifically, for the random, step, and constant speed conditions, most absolute error values in the thermal error prediction results obtained from the BAS-CNN model are below 5 μm, 10 μm, and 9 μm, respectively. Similarly, most absolute error values in the thermal error prediction results obtained from the BAS-BP model are below 7 μm, 12 μm, and 14 μm for the respective working conditions. However, few absolute error values exceed the aforementioned thresholds. The maximum absolute errors in the prediction results of both models under the three working conditions are summarized in Table 7.

Fig. 12
figure 12

BAS-CNN-based error analysis of thermal error prediction for different working conditions

Fig. 13
figure 13

BAS-BP-based error analysis of thermal error prediction for different working conditions

Table 7 Maximum absolute errors in the prediction results of two models

RMSE and MAE of both models were calculated to quantitively compare the prediction performance of the prediction model before and after optimizing and to quantify the performance of the optimized model. The results are presented in Tables 8 and 9.

The optimized prediction model exhibits smaller RMSE and MAE values than the thermal error prediction model before hyperparameter optimization. Additionally, the RMSE and MAE values of the BAS-CNN model are consistently lower than those of the BAS-BP model under the three working conditions. It can be concluded that the BAS-CNN model achieves high prediction accuracy and superior performance. Furthermore, the BAS-CNN model presented in this study consistently demonstrates relatively high predictive accuracy for thermal error prediction across various working conditions and random rotational speeds, emphasizing the model’s excellent robustness.

Table 8 RMSE results
Table 9 MAE results

4 Conclusions

Traditional thermal error neural network models face challenges in achieving full-time series prediction. Additionally, the existing thermal error modeling methods rely on operating temperature data at thermal sensitive points collected through a complex and costly temperature collection process. In this paper, a new mechanism and data hybrid-driven model using rotational speed as input data was proposed for the prediction of thermal-induced errors of ball screws in full-time series without temperature data collection during operation. The following conclusions are drawn:

  1. (1)

    A mechanism and data hybrid-driven model for thermal error prediction of ball screws comprising the temperature model and the BAS-CNN was proposed. The model enables the prediction of thermal errors solely based on working condition data (specifically the rotational speed) without the requirement of collecting operating temperature data for ball screws.

  2. (2)

    A data-driven model based on BAS-CNN was proposed to achieve full-time series thermal error prediction of the ball screw. A comparison between the BAS-CNN model and the experimental data in full-time series demonstrates that the proposed model can accurately predict the thermal error of ball screws. Furthermore, the model exhibits excellent robustness, laying a solid foundation for thermal error compensation applications.

  3. (3)

    Comparative analyses were performed among the proposed hybrid-driven models based on different traditional neural networks. The results reveal that the hybrid-driven model utilizing BAS-CNN as the data-driven component achieves higher accuracy and lower error than CNN, BP, LSTM, and BAS-BP models. The BAS-CNN model exhibits the smallest RMSE and MAE values. Therefore, it can be concluded that the hybrid-driven model based on BAS-CNN outperforms the other models.

Even though this study provides a new thermal error prediction model architecture, the efficacy of thermal error compensation has not yet been assessed. Thermal error compensation will be explored in the subsequent research stages based on the proposed mechanism and hybrid-driven model, and its impact on reducing thermal errors will be evaluated.