A spindle thermal error modeling method, prediction method and modeling system

Through the LSTM deep neural network and K-Means clustering method, combined with temperature and operating condition data, a spindle thermal error model is established, which solves the problem of low prediction accuracy in the existing technology and achieves high accuracy under different working conditions. Thermal error prediction improves production efficiency and accuracy.

CN114019909BActive Publication Date: 2024-10-08HUAZHONG UNIV OF SCI & TECH +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111258800.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2024-10-08
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

The spindle thermal error model prediction accuracy in the existing technology is low. Especially when the machine tool operating conditions change, the temperature data is insufficient to describe the entire thermal error generation process, resulting in insufficient prediction accuracy.

Method used

Using the LSTM deep neural network model combined with the K-Means clustering method, by collecting and preprocessing temperature and operating condition data, extracting feature data, forming an optimal limited feature input combination set, training the spindle thermal error model, and operating in different speed ranges Divide model parameters and use memory gates and hidden layer states to predict errors.

Benefits of technology

The robustness and accuracy of the thermal error model are improved, the thermal error generation process can be fully described under different working conditions, the prediction accuracy is improved, and the energy consumption and production time of the thermal engine process are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114019909B_ABST
    Figure CN114019909B_ABST
Patent Text Reader

Abstract

The present invention discloses a spindle thermal error modeling method, prediction method and modeling system, belonging to the field of numerical control technology. It includes: collecting temperature and operating condition data; preprocessing the data and extracting feature data; combining the feature data to form a finite input feature combination set, substituting it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtaining the mean index by the index weighted average method, forming a comprehensive index set, selecting the optimal solution, and obtaining the optimal finite feature input combination set; using the optimal finite feature input combination set as input, the actual thermal error as the output of the LSTM deep neural network model, and training the spindle thermal error deep neural network model. The present invention proposes to use the spindle operating condition data as the model input, which can fully describe the entire machine tool operation process generated by the thermal error, and the operating condition data is combined with the temperature data as the process quantity to improve the robustness of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of numerical control technology, and more specifically, relates to a spindle thermal error modeling method, a prediction method and a modeling system. Background Art

[0002] The thermal error of CNC machine tools is an important factor affecting machining accuracy. According to statistics, in precision machining and large parts machining, the errors caused by thermal errors account for 40%-70%. Thermal errors are caused by temperature changes in machine tool components. Depending on the components, different thermal error reduction measures are required. The spindle usually starts a cooling cycle to reduce the conduction of heat to the spindle structure, and the feed axis offsets thermal stress by applying a preload. However, in actual production environments, people often let the machine tool run idle for a period of time to reach a thermally stable state, and then start processing parts. The process of the machine tool running idle to achieve thermal stability is called the thermal process. The thermal process generally takes several hours, which not only affects production efficiency, but also generates energy consumption. Therefore, it is of great significance to accurately model and compensate for the thermal error of machine tools.

[0003] Thermal error compensation is an important means to reduce thermal errors of machine tools. Compared with thermal error avoidance, thermal error compensation does not require changing the original machine tool structure, while thermal error avoidance requires redesigning the material, structure and other aspects of the machine tool to reduce the impact of thermal errors. Compared with thermal error control, thermal error compensation has more cost advantages. Common error compensation methods include physical modeling methods and data-driven modeling methods. The physical model cannot accurately calculate the boundary conditions of the heat source, resulting in low error prediction accuracy of the model. Data-driven thermal error modeling methods mostly use the temperature of temperature sensitive points as input. This type of method is often not robust enough when the machine tool operating conditions change significantly. The reason for this phenomenon is that the temperature data only reflects the state quantity of the current local thermal state of the machine tool, and does not contain process information. It is not enough to fully describe the entire machine tool operation process caused by the thermal error. As a result, the thermal error model obtained by simply using the temperature sensor often has good prediction accuracy only under a certain specific condition, and the prediction accuracy is insufficient when the machine tool operating conditions change significantly. Summary of the invention

[0004] In view of the defects of the related art, the purpose of the present invention is to provide a spindle thermal error modeling method, a prediction method and a modeling system, aiming to solve the problem of low prediction accuracy of the thermal error model.

[0005] To achieve the above object, one aspect of the present invention provides a spindle thermal error modeling method, comprising the following steps:

[0006] S1. Collect temperature and operating condition data;

[0007] S2. Preprocessing the data and extracting feature data;

[0008] S3. Combine feature data to form a finite input feature combination set, substitute it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtain the mean index through the index weighted average method, form a comprehensive index set, select the optimal solution, and thus obtain the optimal finite feature input combination set;

[0009] S4. Using the optimal finite feature input combination set as input and the actual thermal error as the output of the LSTM deep neural network model, the spindle thermal error deep neural network model is trained.

[0010] Furthermore, in step S4, the speed intervals are divided using a K-Means clustering method, and model parameters of different speed intervals are obtained after training.

[0011] Furthermore, for each speed interval, the error at the current moment is determined by the states of the memory gate and hidden layer of the model at the previous moment, and the input feature vector corresponding to the current moment.

[0012] Furthermore, the step S2 comprises:

[0013] The data is filtered and then dimensionally reduced to obtain low-dimensional feature data for training the model.

[0014] Another aspect of the present invention also proposes a prediction method based on the above spindle thermal error modeling method, comprising the following steps:

[0015] Real-time temperature and operating condition data are collected, and features corresponding to the optimal finite feature input combination set are input into a spindle thermal error deep neural network model obtained by the spindle thermal error modeling method to predict the spindle thermal error.

[0016] Another aspect of the present invention provides a spindle thermal error modeling system, comprising:

[0017] A collection unit collects data on temperature and operating conditions;

[0018] A preprocessing unit, preprocessing the data and extracting feature data;

[0019] The feature selection unit combines feature data to form a finite input feature combination set, substitutes it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtains the mean index through the weighted average method of indicators, forms a comprehensive index set, selects the optimal solution, and thus obtains the optimal finite feature input combination set;

[0020] The training unit uses the optimal finite feature input combination set as input and the actual thermal error as the output of the LSTM deep neural network model to train the spindle thermal error deep neural network model.

[0021] Furthermore, in the training unit, the speed intervals are divided using a K-Means clustering method, and after training, model parameters of different speed intervals are obtained.

[0022] Furthermore, for each speed interval, the error at the current moment is determined by the states of the memory gate and hidden layer of the model at the previous moment, and the input feature vector corresponding to the current moment.

[0023] Furthermore, the preprocessing unit is used to filter the data and then reduce the dimension of the data to obtain low-dimensional feature data for training the model.

[0024] Compared with the prior art, the above technical solution conceived by the present invention can achieve the following beneficial effects:

[0025] (1) The present invention proposes to use the spindle operating condition data such as spindle speed, current, number of rotations, power, ambient temperature, etc. as model input, which can fully describe the entire machine tool operation process in which thermal errors are generated, and combine the condition data as process quantity with temperature data to improve the robustness of the model.

[0026] (2) The thermal error model was established using the LSTM algorithm. The LSTM algorithm can better fit the nonlinear and time-series characteristics of the thermal error process; in addition, the operating speed is divided into three speed sections: low, medium, and high, and a segmented model is established, which further improves the accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a flow chart of a spindle thermal error modeling and prediction method according to an embodiment of the present invention;

[0028] Figure 2 This is a flow chart of thermal error prediction based on a deep LSTM neural network model according to an embodiment of the present invention;

[0029] Figure 3 1 is a diagram showing the prediction effect of the spindle thermal error model considering the operating conditions in an embodiment of the present invention, wherein (a) is the spindle operating condition and (b) is the actual prediction result;

[0030] Figure 4 It is a diagram showing the compensation effect of the spindle thermal error model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0032] The present invention, for the spindle, obtains the electronic control data inside the numerical control system on the basis of temperature data to describe the generation process of thermal error, including spindle speed, number of rotations, power, current, ambient temperature and other data reflecting the operating conditions of the spindle, and proposes a feature extraction algorithm based on the operating condition data on this basis. Then, in view of the historical data dependency problem of thermal error, the LSTM algorithm is used to establish a thermal error model of the machine tool. The contents involved in the above embodiment are explained below in conjunction with a preferred embodiment.

[0033] During the machining control process, a large amount of data is generated in each control cycle of the CNC system. These data are closely related to the thermal error of the machine tool. While the CNC system controls the operation of the machine tool, these data are recorded, statistically analyzed, and analyzed. This method of analyzing and extracting features from the electronic control data of the CNC system and the temperature data of the temperature sensor is the basis for establishing a deep neural network model for the feed system.

[0034] By extracting sample data, training and establishing an LSTM deep neural network model for the thermal error of the spindle, and inputting time series features into the model, the thermal error of the spindle can be accurately predicted.

[0035] The method provided by the present invention is as follows Figure 1 As shown, it specifically includes the following steps:

[0036] S1: Data collection stage. The data collected during the experiment include the temperature of the upper end bearing of the spindle (T up ), lower bearing temperature (T down ), ambient temperature (T envir ), spindle speed (S spindle ), current (I state )、Speed(V state ) Thermal deformation data (δ t ), all these data can be obtained through the data acquisition interface open to users by the CNC system or external measuring instruments.

[0037] S2: Data preprocessing and feature data acquisition stage. Since the original signal has certain noise, such as high-voltage electromagnetic interference of temperature signals and current signals, it is necessary to process the original data through filtering. After data preprocessing, the cumulative number of spindle rotations and cumulative power consumption can be obtained by calculation. Therefore, the features that can be input into the thermal error model are: speed, current, temperature rise of the upper end bearing of the spindle, etc. Spindle lower end bearing temperature rise Ambient temperature The speed and current reflect the running state of the spindle. The corresponding process quantity can be obtained by integrating and summing the instantaneous speed and instantaneous current. For example, the integral of the speed can obtain the number of spindle rotations, and the integral of the current can obtain the power consumed by the spindle. After obtaining the above high-dimensional feature data, the data is reduced in dimension to obtain low-dimensional feature data for training the model.

[0038] S3: Model input feature selection. The features in S2 are qualitatively obtained based on the analysis of the thermal error generation mechanism of the spindle, and there may be a certain correlation. Therefore, it is necessary to process the preprocessed features and retain those variables that show good or high correlation with the target variable. The present invention combines feature data to form a finite input feature combination set (Set of Finite Input Feature Combinations, SFIFC), substitutes it into the LSTM model to obtain the maximum deviation (ME), root mean square error (RMSE), and accuracy (AC) of different finite input feature combination sets, and adopts the weighted average method of indicators to obtain the average index (WAMOI), form a comprehensive indicator set, and then select the optimal solution.

[0039] S4: Consider the training of the spindle thermal error model under the operating conditions. The optimal finite feature input combination set (SFIFC) obtained by feature selection is used as input, and the actual thermal error is used as the output of the LSTM deep neural network. The deep neural network model of the spindle thermal error is trained to obtain the training model parameter table to characterize the model. The K-Means clustering method is used to divide the speed range to form (0, v low ]、(v low , v middle ] and (v middle , V high ] three intervals. low , v middle ] speed interval as an example, the error δ at the current time t t The memory gate c of the model at time t-1 t-1 and the hidden layer h t-1 The state and the input feature vector corresponding to time t Similarly, time t-1 is determined by time t-2 and time t-1. After training, the model parameters are obtained to characterize the model in this speed range.

[0040] S5: Prediction stage. The operating condition data of the CNC system is collected in real time, and the features corresponding to the optimal feature selection results are used as the input of the model feature data. The model parameter table is selected according to different rotation speeds, and the corresponding prediction errors at different speeds are realized.

[0041] Another aspect of an embodiment of the present invention provides a spindle thermal error modeling system, comprising:

[0042] A collection unit collects data on temperature and operating conditions;

[0043] A preprocessing unit, preprocessing the data and extracting feature data;

[0044] The feature selection unit combines feature data to form a finite input feature combination set, substitutes it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtains the mean index through the weighted average method of indicators, forms a comprehensive index set, selects the optimal solution, and thus obtains the optimal finite feature input combination set;

[0045] The training unit uses the optimal finite feature input combination set as input and the actual thermal error as the output of the LSTM deep neural network model to train the spindle thermal error deep neural network model.

[0046] Furthermore, in the training unit, the speed intervals are divided using a K-Means clustering method, and after training, model parameters of different speed intervals are obtained.

[0047] Furthermore, for each speed interval, the error at the current moment is determined by the states of the memory gate and hidden layer of the model at the previous moment, and the input feature vector corresponding to the current moment.

[0048] Furthermore, the preprocessing unit is used to filter the data and then reduce the dimension of the data to obtain low-dimensional feature data for training the model.

[0049] like Figure 2 As shown, by using the spindle thermal error model and inputting characteristics such as temperature rise, speed, and current, the actual spindle thermal error change curve can be simulated.

[0050] like Figure 3 As shown in the figure, (a) is the operating condition of the spindle, and (b) is the actual operating result. The predicted residual of the spindle thermal error model considering the operating condition is within 8um. Figure 4As shown, the maximum thermal error of the spindle before compensation is 45um, and the maximum thermal error of the spindle after compensation is 13um.

[0051] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A spindle thermal error modeling method, characterized in that: The following steps are involved: S1. Collect temperature and operating condition data; S2. Preprocessing the data and extracting characteristic data, the characteristic data including spindle speed, spindle current, spindle upper bearing temperature rise, spindle lower bearing temperature rise, ambient temperature, spindle rotation number and spindle power consumption; S3. Combine feature data to form a finite input feature combination set, substitute it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtain the mean index through the index weighted average method, form a comprehensive index set, select the optimal solution, and thus obtain the optimal finite feature input combination set; S4. The K-Means clustering method is used to divide the spindle speed range. The optimal finite feature input combination set is used as input, and the actual thermal error is used as the output of the LSTM deep neural network model. The spindle thermal error deep neural network model is trained to obtain the model parameters of different speed ranges.

2. The spindle thermal error modeling method according to claim 1, characterized in that: For each speed interval, the error at the current moment is determined by the state of the memory gate and hidden layer of the model at the previous moment, and the input feature vector corresponding to the current moment.

3. The spindle thermal error modeling method according to claim 1, characterized in that: The step S2 comprises: The data is filtered and then dimensionally reduced to obtain low-dimensional feature data for training the model.

4. A prediction method based on the spindle thermal error modeling method according to any one of claims 1 to 3, characterized in that: The following steps are involved: Real-time temperature and operating condition data are collected, and features corresponding to the optimal finite feature input combination set are input into a spindle thermal error deep neural network model obtained by the spindle thermal error modeling method to predict the spindle thermal error.

5. A spindle thermal error modeling system, characterized in that: include: A collection unit collects data on temperature and operating conditions; A preprocessing unit preprocesses the data and extracts characteristic data, wherein the characteristic data includes spindle speed, spindle current, spindle upper end bearing temperature rise, spindle lower end bearing temperature rise, ambient temperature, spindle rotation number and spindle power consumption; The feature selection unit combines feature data to form a finite input feature combination set, substitutes it into the LSTM deep neural network model to obtain the maximum deviation, root mean square error and accuracy of different finite input feature combination sets, obtains the mean index through the weighted average method of indicators, forms a comprehensive index set, selects the optimal solution, and thus obtains the optimal finite feature input combination set; The training unit adopts the K-Means clustering method to divide the spindle speed range, takes the optimal finite feature input combination set as input, and uses the actual thermal error as the output of the LSTM deep neural network model to train the spindle thermal error deep neural network model to obtain model parameters of different speed ranges.

6. The spindle thermal error modeling system according to claim 5, characterized in that: For each speed interval, the error at the current moment is determined by the state of the memory gate and hidden layer of the model at the previous moment, and the input feature vector corresponding to the current moment.

7. The spindle thermal error modeling system according to claim 5, characterized in that: The preprocessing unit is used to filter the data and then reduce the dimension of the data to obtain low-dimensional feature data for training the model.

Citation Information

Patent Citations

  • Machine tool thermal error modeling method based on deep learning

    CN110083125A

  • Shaft system thermal error modeling method and thermal error compensation system based on SLSTM neural network

    CN111240268A

  • Intelligent production line dynamic error prediction system, control system, control method and digital twin system

    CN113051830A

  • Main shaft system thermal error modeling method, error prediction system, error control system, error control method and cloud computing system

    CN113051832A