Residual-based Conv1D-MGU thermal error prediction model and thermal error control system based on physics-data-edge-cloud architecture
By introducing the residual-based Conv1D-MGU prediction model and the physics-data-edge-cloud architecture into the thermal error model, the contradiction between the prediction accuracy, robustness and convergence of the existing thermal error model is solved, combined with the edge Computing and cloud computing realize efficient thermal error control.
Patent Information
- Application Number
- CN202210312252.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-28
AI Technical Summary
Existing thermal error models have conflicts between prediction accuracy, robustness and convergence, and cloud computing has low system execution efficiency due to insufficient network bandwidth, making it difficult to achieve real-time thermal error control.
A residual-based Conv1D-MGU thermal error prediction model is proposed, combining edge computing and cloud computing, through data collaboration and information collaboration in the physics-data-edge-cloud architecture, using one-dimensional convolution layers and gated loops The unit extracts thermal error data features and performs model training and update in the cloud.
It improves the accuracy and robustness of thermal error prediction, shortens the convergence time, realizes low latency and real-time thermal error control, and improves system efficiency.
Smart Images

Figure CN114896832B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mechanical error analysis, and specifically provides a Conv1D-MGU thermal error prediction model based on residual and a thermal error control system based on a physics-data-edge-cloud architecture. Background Art
[0002] Extreme operating conditions place extremely high demands on the geometric accuracy of machined parts, and thermal error is the most influential source of error in precision machine tools. Precision spindles are key components of machine tools. Precision spindles generate severe heat and have poor heat dissipation conditions, so the temperature field is unevenly distributed. Precision machinery has significant thermal errors, and it is urgent to eliminate or control thermal errors in real time to ensure the machining accuracy of the entire machine. However, thermal errors also have the characteristics of high complexity, high nonlinearity, and high coupling. During error control, a large amount of data is uploaded to the control platform. Due to insufficient network bandwidth, data transmission is blocked, and real-time data analysis on the control platform is difficult to achieve. Therefore, it is crucial to establish a thermal error model with high prediction accuracy, good robustness, and good convergence. In addition, low latency and real-time thermal error control are also crucial.
[0003] In recent years, theoretical thermal error models (THEM) and data-driven thermal error models (DTEM) have been used to control thermal errors. THEM is mainly based on the finite element method (FEM), which performs thermal characteristic analysis and optimization in the design stage to achieve thermal balance design and reduce thermal errors. THEM effectively reflects the mechanism of heat generation and dissipation, but THEM has limitations such as poor versatility, low computational efficiency, and poor convergence. The establishment of THEM is very time-consuming and requires expertise in heat transfer and mechanics.
[0004] To make up for the shortcomings of THEM, DTEM becomes a promising method to reduce thermal errors and reveal the relationship between thermal deformation and temperature. By applying back propagation (BP) neural network, least squares support vector machine (LSSVM), time series model, long short-term memory network (LSTMN) and gated recurrent unit (GRU), the above THEM has achieved excellent results. However, the existing DTEM model does not take into account the contradiction between prediction accuracy, robustness and convergence. Therefore, it is urgent to design a prediction model with high prediction accuracy, strong robustness and good convergence.
[0005] THEM and DTEM require a lot of computing resources. Cloud computing has been proven to be suitable for processing problems that require a lot of computing resources. However, the cloud computing decision terminal is too far away from the device terminal, and there is a problem of insufficient network bandwidth leading to low system execution efficiency. Edge computing is proposed to alleviate the time delay caused by insufficient network bandwidth and eliminate the network congestion problem caused by large-capacity data transmission. Therefore, edge computing is expected to improve system efficiency. Summary of the invention
[0006] In view of this, the purpose of the present invention is to provide a Conv1D-MGU thermal error prediction model based on residual and a thermal error control system based on a physical-data-edge-cloud architecture. The thermal error prediction model can improve the accuracy of thermal error prediction, and can also improve the robustness and convergence; the thermal error control system can combine the real-time nature of edge computing and the ability of cloud computing to handle complex problems, thereby realizing data collaboration and information collaboration, greatly improving system efficiency.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] The present invention firstly proposes a residual-based Conv1D-MGU thermal error prediction model, which includes an input layer, an MGU layer, a fully connected layer and an output layer arranged in sequence;
[0009] A residual block is provided between the input layer and the MGU layer, the residual block includes a main path and a shortcut branch, one end of the main path and the shortcut branch are respectively connected to the input layer, and the other end is connected to the accumulation layer; a one-dimensional convolution pooling unit and a one-dimensional convolution layer II are provided on the main path between the input layer and the accumulation layer, the one-dimensional convolution pooling unit is set to be at least one in series, and the one-dimensional convolution pooling unit includes a one-dimensional convolution layer I, a one-dimensional pooling layer and an activation function layer I arranged in sequence; an activation function layer II is provided between the accumulation layer and the MGU layer, and a flattening layer is provided between the activation function layer II and the MGU layer;
[0010] The shortcut branch is provided with down sampling.
[0011] Furthermore, the one-dimensional convolution layer I and the one-dimensional convolution layer II are used to extract the features of the time series thermal error data, and the convolution operation is:
[0012]
[0013] Where X = [x1, x2, …, x n ] T ∈R m×n , represents the thermal error data matrix; m is the characteristic number of error data; n is the length of thermal error; W c ∈R j×m represents the weight vector of the convolution kernel; j represents the length of the convolution kernel; b c Represents the bias of the convolutional layer; Represents the convolution operation between two vectors; f c (·) represents the activation function of convolution; o cm Represents the output result after the mth convolution.
[0014] Furthermore, the one-dimensional pooling layer adopts the maximum pooling method and is used to compress the features of the time series thermal error data, and its expression is:
[0015] maxdown(o cm ,λ)=max(o cm ,m≤m≤mλ)
[0016] Among them, cm Represents the output vector of the one-dimensional convolutional layer I; λ represents the pooling step size, and the dimension of the vector is compressed to the original 1 / λ through the processing of the pooling layer.
[0017] Furthermore, the operation rule of the MGU layer is:
[0018] u t =σ(W r ·x t )
[0019]
[0020]
[0021] Among them, W r represents the learnable weight; σ represents the logistic activation function; x t represents the input of the node at this time; tanh represents the activation function; ⊙ represents the point-by-point multiplication operation; represents the candidate hidden layer state; h t represents the hidden layer output at the current moment; h t-1 Indicates the hidden layer output at the previous moment; u t Represents the output of the forget gate at the current moment.
[0022] The present invention also proposes a thermal error control system based on a physical-data-edge-cloud architecture, including a physical terminal, a data terminal, an edge terminal and a cloud terminal;
[0023] The physical terminal comprises:
[0024] Data acquisition system, used to collect analog signals of temperature, displacement and feed speed of machine tool equipment;
[0025] A router, used to transmit the data collected by the data collection system to the data terminal;
[0026] The data terminal includes a data classification management module, a data online management module and a first database;
[0027] The data classification module is integrated with: Hadoop, which provides effective storage for data; Spark, which supports repeated iterative calculations or multiple calculations, reduces the IO overhead of data reading, and improves data transmission efficiency; YARN, which realizes data classification and computing resource management;
[0028] The data online management module divides the data into static data and dynamic data;
[0029] The first database is used to store data and facilitate the edge terminal and the cloud terminal to call;
[0030] The edge terminal includes an edge workstation and a second database, wherein the edge workstation is provided with a data processing module and the residual-based Conv1D-MGU thermal error prediction model as described above;
[0031] The data processing module comprises:
[0032] A data preprocessing module, used to clean the data input by the data terminal, fill in missing data and remove variant data;
[0033] A / D conversion module, used for converting analog signals into digital signals;
[0034] Data filtering module, used to remove high-frequency parts and noise of data;
[0035] Temperature variable fuzzy clustering module, used to perform fuzzy clustering on temperature variables and eliminate multicollinearity between temperature variables;
[0036] The second database is used to store data processed by the data processing module;
[0037] The Conv1D-MGU thermal error prediction model is used to predict thermal errors to achieve error control of machine tool equipment;
[0038] The cloud terminal includes a server, and the server is provided with:
[0039] Thermal characteristics analysis module, which performs thermal characteristics analysis based on the machine tool's 3D model and thermal boundary conditions calculated by data;
[0040] A model training module, used for training the Conv1D-MGU thermal error prediction model;
[0041] The model updating module transmits the Conv1D-MGU thermal error prediction model trained by the model training module to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal.
[0042] Furthermore, when the service time of the Conv1D-MGU thermal error prediction model in the edge terminal exceeds a set threshold, the Conv1D-MGU thermal error prediction model trained in the cloud terminal is transmitted to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal.
[0043] The beneficial effects of the present invention are:
[0044] The present invention is based on the residual Conv1D-MGU thermal error prediction model. By setting a residual block, the gradient disappearance and overfitting can be prevented. By setting a one-dimensional convolution layer I and a one-dimensional pooling layer in the residual block to respectively extract and compress the features of the time series thermal error data, it can not only mine the deeper features of the thermal error data, but also has a shorter convergence time and a faster response speed than the original residual block model. By setting downsampling on the shortcut branch to unify the data dimension, the addition operation of the accumulation layer is facilitated. The flattening layer reshapes the dimension of the thermal error data to meet the input dimension requirement of the MGU, and the processed data is sent to the MGU layer for error prediction. Finally, the fully connected layer synthesizes the output results of multiple MGUs to obtain the prediction result. It has the advantages of high prediction accuracy, excellent performance and good convergence.
[0045] In the thermal error control system based on the physical-data-edge-cloud architecture of the present invention, in the physical terminal, the data acquisition system is used to collect data analog signals; the data terminal performs data division, data fusion, and standardized online management; the edge terminal performs data cleaning, A / D conversion, and FFT filtering. In addition, error prediction is performed on the edge terminal; the cloud terminal has a cloud server with a GPU, which provides a large amount of computing resources and computing power, and supports FEA thermal simulation analysis and error control model training; thereby, it is possible to combine the real-time nature of edge computing with the ability of cloud computing to handle complex problems, realize data collaboration and information collaboration, and greatly improve system efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to make the purpose, technical solution and beneficial effects of the present invention clearer, the present invention provides the following drawings for illustration:
[0047] Figure 1 It is a structural schematic diagram of an embodiment of a Conv1D-MGU thermal error prediction model based on residuals of the present invention;
[0048] Figure 2 Schematic diagram of Conv1D;
[0049] Figure 3 This is the structural diagram of MGU;
[0050] Figure 4Figure 2 is the structural diagram of the residual block; (a) the existing residual block structure; (b) the proposed residual-based Conv1D network;
[0051] Figure 5 It is a framework diagram of an embodiment of a thermal error control system based on a physical-data-edge-cloud architecture of the present invention;
[0052] Figure 6 This is a physical picture of the data acquisition system;
[0053] Figure 7 This is the functional block diagram of the data terminal;
[0054] Figure 8 Functional block diagram for data cleaning;
[0055] Fig. 9 This is the circuit schematic diagram of the A / D conversion module;
[0056] Fig.10 This is a simplified model diagram of the boring machine spindle system;
[0057] Fig.11 This is the diagram of the heating and heat dissipation mechanism of the spindle system;
[0058] Fig.12 The finite element mesh division diagram of the main axis system;
[0059] Fig.13 is the transient temperature field of the spindle system;
[0060] Fig.14 Transient thermal deformation field of the main shaft system; (a) axial comprehensive deformation; (b) radial comprehensive deformation;
[0061] Fig.15 It is the relationship curve between temperature and axial thermal deformation;
[0062] Fig.16 Physical picture of the spindle and measuring system;
[0063] Fig.17 The graphs are for two working conditions; (a) normal distribution (working condition #1); (b) random distribution (working condition #2);
[0064] Fig.18 The temperature data collection curves under two working conditions; (a) temperature distribution under working condition #1; (b) temperature distribution under working condition #2;
[0065] Fig.19 Parameter setting diagram of the residual-based Conv1D-MGU thermal error prediction model in this embodiment;
[0066] Fig. 20The loss function curve of the model under different activation functions and optimizers; (a) activation function; (b) optimizer;
[0067] Fig.21 is the fitting curve of working condition #1;
[0068] Fig. 22 is the prediction curve for working condition #2;
[0069] Fig.23 This is the interface diagram of the PDECT architecture;
[0070] Fig.24 This is a system block diagram of the thermal error control system based on the physical-data-edge-cloud architecture of this embodiment;
[0071] Fig.25 For control systems; (a) hardware; (b) software;
[0072] Fig.26 Processing verification under the PDECT architecture; (a) processed workpiece; (b) error distribution of the test part. DETAILED DESCRIPTION
[0073] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0074] like Figure 1 The figure shows a schematic diagram of the structure of an embodiment of the residual Conv1D-MGU thermal error prediction model of the present invention. The residual Conv1D-MGU thermal error prediction model of the present embodiment includes an input layer, an MGU layer, a fully connected layer and an output layer arranged in sequence. A residual block is arranged between the input layer and the MGU layer, and the residual block includes a main path and a shortcut branch. One end of the main path and the shortcut branch are respectively connected to the input layer and the other end is connected to the accumulation layer; a one-dimensional convolution pooling unit and a one-dimensional convolution layer II are arranged between the input layer and the accumulation layer on the main path, and the one-dimensional convolution pooling unit is set to at least one in series, and the one-dimensional convolution pooling unit includes a one-dimensional convolution layer I, a one-dimensional pooling layer and an activation function layer I arranged in sequence; an activation function layer II is arranged between the accumulation layer and the MGU layer, and a flattening layer is arranged between the activation function layer II and the MGU layer. Downsampling is arranged on the shortcut branch. Specifically, this embodiment has two one-dimensional convolutional pooling units connected in series, and uses a one-dimensional convolutional layer I and a one-dimensional pooling layer to respectively extract and compress features of the time series thermal error data.
[0075] Gated recurrent unit (GRU) has been proven to be suitable for processing nonlinear and long-term memory time series data. The two gating mechanisms of reset gate and update gate are used to solve the gradient vanishing and gradient exploding problems of recurrent neural network (RNN). The MGU of this embodiment is an improved model of GRU. The reset gate and update gate of GRU are merged into one gate. While ensuring the same prediction accuracy as GRU, the convergence speed of MGU is faster. Because the number of gating mechanisms is less than that of GRU, the model based on MGU is used to predict and control thermal errors, which has higher prediction accuracy and excellent convergence time.
[0076] Specifically, CNN includes Conv1D NN, Conv2D NN and Conv3D NN. Conv2D NN has shown remarkable results in the field of image recognition and processing. Conv3D NN is more commonly used in complex medical imaging or video processing for motion detection of human behavior. Conv1D NN is usually used to process time series data. Figure 2 As shown in the figure, each layer of the Conv1D NN contains one or more convolution kernels of equal size, which slide on the time axis of the time series data to extract deeper and more representative features, and then form a new feature map, which is extracted by the convolution kernel of the next layer of the convolution layer. The feature vector of the thermal error data extracted by the last layer is used as the input of the MGU in the form of time series data, ensuring high prediction accuracy and strong robustness.
[0077] This embodiment designs a new Conv1D NN based on a one-dimensional convolutional layer (Conv1D) and a pooling layer. The Conv1D layer and the pooling layer are used to extract and compress the features of the time series thermal error data, respectively. Then the processed feature vector is input into the MGU layer. Assume X = [x1, x2, ..., x n ] T ∈R m×n is the thermal error data matrix, m is the feature number of the error data, and n is the length of the thermal error. One-dimensional convolution layer I and one-dimensional convolution layer II are used to extract the features of the time series thermal error data, and the convolution operation is:
[0078]
[0079] Where X = [x1, x2, …, x n ] T ∈R m×n , represents the thermal error data matrix; W c ∈R j×m represents the weight vector of the convolution kernel; j represents the length of the convolution kernel; b c Represents the bias of the convolutional layer; Represents the convolution operation between two vectors; f c(·) represents the activation function of convolution; o cm Represents the output result after the mth convolution.
[0080] The one-dimensional pooling layer of this embodiment adopts the maximum pooling method and is used to compress the features of the time series thermal error data, and its expression is:
[0081] maxdown(o cm ,λ)=max(o cm ,m≤m≤mλ)
[0082] Among them, cm Represents the output vector of the one-dimensional convolutional layer I; λ represents the pooling step size, and the dimension of the vector is compressed to the original 1 / λ through the processing of the pooling layer.
[0083] MGU is an improved model of GRU. It combines the reset gate and update gate of GRU into a forget gate. With the same number of hidden layer nodes, the number of parameter sets of MGU is reduced. The number of parameters of MGU is only 2 / 3 of that of GRU. Figure 3 As shown in the figure, the MGU completely removes the output gate and integrates the cell state and hidden state. The input of the forget gate is only the current input.
[0084] The operation rules of the MGU layer in this embodiment are:
[0085] u t =σ(W r ·x t )
[0086] The effect of the forget gate on the hidden state is:
[0087]
[0088]
[0089] Among them, W r represents the learnable weight; σ represents the logistic activation function; x t represents the input of the node at this time; tanh represents the activation function; ⊙ represents the point-by-point multiplication operation; represents the candidate hidden layer state; h t represents the hidden layer output at the current moment; h t-1 Indicates the hidden layer output at the previous moment; u t Represents the output of the forget gate at the current moment.
[0090] The conclusion is that the forget gate plays a decisive role in the hidden state. Unlike the information that needs to be forgotten and added in the standard GRU, the forget gate updates some old states while forgetting.
[0091] Figure 4(a) is the structure of the original residual block, and the network structure is expressed as:
[0092] H(x)=F(x)+x
[0093] Where x is the input vector; H(x) is the output vector; and F(x) is the residual mapping function.
[0094] The principle of residual is to introduce a "shortcut" to prevent gradient vanishing and overfitting. Generally speaking, the accuracy increases with the number of network layers, but in reality, as the NN goes deeper, the training error will first decrease and then increase. To solve this problem, the introduction of "shortcuts" helps ensure the prediction accuracy of deep networks.
[0095] Figure 4 (a) shows the original residual block structure, which is usually stacked into a deep residual network for two-dimensional image recognition. However, there is no residual network for processing one-dimensional data in the prior art. In this embodiment, the residual-based Conv1D network structure is intended to predict thermal errors, such as Figure 4 (b). Compared with the original residual block, the residual-based Conv1D network designed in this embodiment adds a pooling layer and multiple convolutional layers, and adds downsampling on the short-circuit branch. The added convolutional layer mines deeper features of the thermal error data by setting a reasonable number of channels, and continuously reduces the dimension of the thermal error data through the pooling layer. Compared with the original residual block, the convergence time is shorter and the response speed is faster. Downsampling is used to unify the data dimension for addition operations. The residual-based Conv1D network designed in this embodiment can simultaneously improve the prediction accuracy and accelerate the convergence speed.
[0096] Assuming that the input data is m×n dimensional time series data, the data is first processed by a one-dimensional convolution layer, and then compressed by a one-dimensional pooling layer and an activation function layer to preliminarily mine the deep features of the thermal error data and compress the dimensions of the data features. Similarly, through the processing of the above layers, the deeper features of the thermal error data are further mined and compressed. Downsampling is used to unify the data dimension, and the residual-based Conv1D processing is used to obtain richer data information with smaller data dimensions. The flatten layer reshapes the dimension of the thermal error data to meet the input dimension of the MGU layer. The data processed by the residual-based Conv1D is then sent to the MGU for error prediction, and finally the fully connected layer synthesizes the output results of multiple MGUs. Then the prediction result is obtained.
[0097] The specific implementation of the thermal error control system based on the physical-data-edge-cloud architecture of the present invention is described in detail below.
[0098] like Figure 5As shown, it is a principle block diagram of the thermal error control system based on the physical-data-edge-cloud architecture of the present invention. The thermal error control system of this embodiment is based on the physical-data-edge-cloud architecture, including a physical terminal, a data terminal, an edge terminal and a cloud terminal. In the error control process, real-time data acquisition and information feedback are required. The physical terminal and the decision terminal transmit information through a large number of sensors and communication devices. A large number of redundant communication devices lead to uneven traffic distribution, and the massive data collected by the sensors occupies storage space. In order to alleviate the network delay problem caused by data transmission between the physical terminal and the decision terminal, this embodiment designs a PDECT distributed structure to improve the execution efficiency of information exchange and error control process. Figure 5 The structure of the designed PDECT is shown in Table 1. The hardware and software configurations corresponding to the structure are listed in Table 1.
[0099] Table 1 Hardware and software equipment
[0100]
[0101]
[0102] Specifically, the physical terminal of this embodiment includes: a data acquisition system for collecting analog signals such as temperature, displacement, feed speed, etc. of machine tool equipment; a router for transmitting the data collected by the data acquisition system to the data terminal. The data acquisition system of this embodiment includes a temperature sensor, a displacement sensor, and a data acquisition card.
[0103] The physical terminal is the real physical world, such as Figure 6 As shown. HSTL-TTC-PT100 temperature sensor and MR50C displacement sensor are embedded in the boring machine system to collect dynamic data such as feed speed, temperature, error, etc. In addition, static data information such as mechanical and material properties are also collected. The PCI5655 analog data acquisition card is used to collect the original analog signal, and finally the data is transmitted to the data terminal through the TP-LINK WIFI6 router. The acquisition process is visualized on an Intel(R) Core(TM) i7-10700CPU@2.90GHz desktop computer to monitor the normal data acquisition process for timely adjustment.
[0104] The data terminal of this embodiment includes a data classification management module, a data online management module and a first database. The data classification module integrates: Hadoop, which provides effective storage for data; Spark, which supports repeated iterative calculations or multiple calculations, reduces the IO overhead of data reading, and improves data transmission efficiency; YARN, which realizes data classification and computing resource management. The data online management module divides the data into static data and dynamic data. The first database is used to store data and facilitate calls by edge terminals and cloud terminals.
[0105] The massive amount of sensor data collected takes up a lot of storage space and causes network congestion. Reasonable allocation of storage resources according to data structure can effectively improve execution efficiency. On the data terminal, through the effective integration of Spark, Hadoop, and YARN, the classification of collected data and the management of computing resources can be achieved. Figure 7 As shown in the figure, structured, unstructured, and multi-source heterogeneous data are collected by physical terminals. Hadoop provides effective storage for the collected data; the Cache mechanism provided by Spark supports repeated iterative calculations or multiple calculations, reduces the IO overhead of data reading, and improves data transmission efficiency; YARN implements the classification of collected data and the management of computing resources. At the same time, the data terminal also provides online management of data, dividing the data into static data and dynamic data. The Intel(R) Core(TM) i7-6700 CPU@3.40GHz desktop realizes the integration of multi-source heterogeneous data and online management, which facilitates timely adjustment of the mechanical status. Finally, a large amount of data is stored in the traditional MYSQL database so that edge and cloud terminals can call data at any time.
[0106] The edge terminal of this embodiment includes an edge workstation and a second database. The edge workstation is provided with a data processing module and the Conv1D-MGU thermal error prediction model based on residual as described above. The data processing module includes: a data preprocessing module, which is used to clean the data input by the data terminal, fill in missing data and eliminate variant data; an A / D conversion module, which is used to convert analog signals into data signals; a data filtering module, which is used to remove high-frequency parts and noise of the data; a temperature variable fuzzy clustering module, which is used to fuzzy cluster the temperature variables and eliminate multicollinearity between temperature variables. The second database is used to store data processed by the data processing module; the Conv1D-MGU thermal error prediction model based on residual connection is used to predict thermal errors to achieve error control of machine tool equipment.
[0107] The edge terminal of this embodiment runs on an Intel(R) Core(TM) i9-9900K CPU @ 3.60 GHz workstation with two NVIDIA GeForce RTX 2080Ti graphics cards. First, the data stored in the data terminal is cleaned, such as Figure 8 As shown. Then fill the missing data in the uploaded data and remove the variant data based on Python language. Then convert the collected analog signal into a digital signal that can be recognized by the computer. Fig. 9The schematic diagram of the A / D conversion module is shown in Figure 1. The conversion circuit consists of a comparator, a D / A converter, a counter, a pulse source, a control gate, and an output register. At the beginning of the conversion, the counter is set to 0 with a reset signal, and the conversion signal should maintain the state of VI = 0. At this time, gate G is blocked and the counter does not work. Then the counter adds all 0 signals to the A / D converter. Therefore, the analog voltage V0 output by the D / A converter is 0. If VI is a positive voltage signal, the output voltage of the comparator is 1, and all bits of DA are compared in the same way.
[0108] In the data filtering module of this embodiment, the data is smoothed and filtered by FFT. The essence of FFT is discrete Fourier transform, which removes the high-frequency part and noise of the data and is a commonly used data smoothing method. Based on MTALAB, fuzzy clustering of temperature variables is performed to eliminate the multicollinearity between temperature variables, improve the accuracy and robustness of the residual-based Conv1D-MGU model, and reduce the convergence time. The processed data is stored for training and prediction of the residual-based Conv1D-MGU model.
[0109] In order to alleviate the network delay caused by insufficient network bandwidth, it is necessary to reasonably allocate computing resources. The edge terminal proposed in this embodiment is closer to the data terminal and has a fast response to the error prediction of real-time data. Therefore, the prediction process of thermal error is carried out at the edge terminal, and the prediction time is compared with the preset system service time, and then it is decided whether to update the model and retrain.
[0110] The cloud terminal of this embodiment includes a server, which is provided with: a thermal characteristic analysis module, which performs thermal characteristic analysis according to the thermal boundary conditions of the three-dimensional model and data calculation of the machine tool; a model training module, which is used to train the Conv1D-MGU thermal error prediction model based on residual connection; and a model update module, which transmits the Conv1D-MGU thermal error prediction model trained by the model training module to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal. Specifically, when the service time of the Conv1D-MGU thermal error prediction model in the edge terminal exceeds the set threshold, the Conv1D-MGU thermal error prediction model trained in the cloud terminal is transmitted to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal.
[0111] The cloud terminal has a huge amount of computing resources and capabilities. This embodiment uses Alibaba Cloud's GPU cloud server as a computing platform. The performance of the GPU cloud server is listed in Table 2. It has NVIDIA V100 16GB, CUDA, and specially developed AIACC-Training and AIACC-Inference accelerators, providing parallel computing to solve complex computing problems. The thermal characteristic analysis, model training, and parameter update that require high server GPU and CPU are all performed on the GPU cloud server. The thermal boundary conditions are calculated using the three-dimensional model and data of the machine tool in the database, and then thermal analysis is performed based on ANSYS Workbench 19.2. The analysis results are used to guide sensor layout. On the other hand, thermal analysis is also the theoretical basis for designing a residual-based Conv1D-MGU model. The training of the residual-based Conv1D-MGU model also requires a large amount of historical data, and the training process will generate many parameters. Therefore, model training and parameter updates based on Pycharm are all performed on the cloud side.
[0112] Table 2 GPU cloud server performance
[0113]
[0114] The specific implementation of the thermal characteristic analysis is described below.
[0115] Fig.10 This is a simplified model of the spindle system of a high-precision horizontal boring machine TGK46100. Its maximum speed is 6000r / min. Two pairs of back-to-back SKF angular contact ball bearings (S71922 CE / P4A) are heat sources. The temperature rise caused by the heat source is the direct cause of thermal error. Heat is transferred to other components through thermal contact conduction, convection and radiation. Fig.11 The heat generation and dissipation mechanisms are shown.
[0116] (1) Thermal boundary conditions
[0117] ① Bearing heating
[0118] According to Palmgren's method, the heat generation is calculated, and the total friction torque M is divided into the inner raceway component M ij and outer raceway M oj ,Right now:
[0119]
[0120]
[0121] Where Z is the number of rolling elements; d i and d oare the distances between the center points of the inner and outer rings and the contact points of the rolling elements; f0 is a coefficient related to the lubrication method and bearing type; P 1i and P 1o are the calculated loads for the inner and outer rings respectively; f1 is a coefficient related to the bearing type and load.
[0122] Calculate the friction heat H of the contact area between single roller / inner groove and roller / outer groove ij and H oj :
[0123] H ij =ω roll M ij +ω sij M sij
[0124] H oj =ω roll M oj
[0125] Where M sij is the rotational friction torque between the roller and the inner groove; ω sij is the angular velocity of the drum.
[0126] ②Convection coefficient
[0127] The flow rate of the fluid is:
[0128]
[0129] Where u is the average flow velocity; V is the actual air flow; and A is the cross-sectional area.
[0130] When the Reynolds number is less than 2300, it is a laminar state; when the Reynolds number is between 2300 and 4000, it is a transitional state; when the Reynolds number is greater than 4000, it is a turbulent state. Specifically, the Reynolds number is:
[0131]
[0132] Where u is the average flow velocity; v is the kinematic viscosity; h gap It is the standard size of geometric features.
[0133] Different fluids have different Prandtl numbers, which are defined as:
[0134]
[0135] Where c is the specific heat capacity and λ is the dynamic viscosity.
[0136] The Nusselt number is determined by the Reynolds number and the Nusselt number. The Nusselt number under different flow states is:
[0137] Turbulence: Nu = 0.0225·Re 0.8 ·P r 0.4
[0138] Laminar Flow:
[0139] Among them, Nu is the Nusselt number; Re is the Reynolds number; Pr is the Prandtl number; L is the pipe length.
[0140] The convection coefficient is:
[0141] h=(Nu·λ) / h gap
[0142] Where h is the convective heat transfer coefficient of the air gap between the stator and the rotor; λ is the thermal conductivity of air; h gap is the characteristic size.
[0143] (2) Finite element model
[0144] To facilitate simulation and meshing, structures such as chamfers, fillets, threaded holes, gaskets, springs, etc. that have no or little effect on the simulation results are ignored. The solid model of the spindle system is a highly symmetrical rotating body, so a quarter of the three-dimensional solid model is used, and tetrahedral meshing is adopted, such as Fig.12 As shown in Figure 3, there are 60922 mesh elements and 288519 mesh nodes. Finite element simulation was performed on the cloud terminal using ANSYS Workbench 19.2, using 16-core parallel computing. Table 3 lists the main material parameters. Table 4 lists the thermal boundary conditions.
[0145] Table 3 Main material parameters of the spindle system
[0146]
[0147] Table 4 Thermal boundary conditions when the speed is 6000r / min
[0148]
[0149] ① Finite element simulation results
[0150] A transient temperature field
[0151] Add material properties, thermal boundary conditions and thermal loads to the finite element model to simulate the transient temperature field of the spindle system, such as Fig.13As shown. The friction heat generated by the front and rear bearings is the main heat source. The maximum temperature of the inner rings of the two front bearings reaches 31.06°C. The inner rings are in direct contact with the journal, and the contact thermal resistance blocks the heat transfer from the inner ring to the shaft. Moreover, since the spindle structure of the rear bearing is looser than that of the front bearing, the heat dissipation condition of the rear bearing is better than that of the front bearing, and the temperature of the rear bearing is significantly lower than that of the front bearing. Therefore, the temperature of the two rear bearings is about 3 to 4°C lower than that of the two front bearings. The axial heat conduction of the shaft is significant, and the heat is transferred from the rear end of the shaft to the front end, which provides guidance for the arrangement of temperature sensors in thermal error experiments.
[0152] ②Transient thermal deformation
[0153] Apply the transient temperature field as a thermal load to the thermal characteristics analysis model, and then perform thermal deformation simulation, such as Fig.14 As shown in the figure, the spindle system has serious thermal deformation. It can be seen that the non-uniform temperature field is the direct cause of the thermal bending of the spindle system. The largest comprehensive deformation occurs at the front end of the shaft, such as Fig.14 (a) The maximum combined deformations at the front and rear ends of the shaft are 24.41 μm and -22.14 μm, respectively. Fig.14 (b) is the comprehensive radial deformation of the spindle system. The radial deformations of the front and rear end faces are 7.37μm and -8.64μm, respectively.
[0154] The nonlinear relationship between axial comprehensive thermal deformation and temperature is as follows: Fig.15 As shown in Figure 2, the thermal deformation in the heating stage does not coincide with the thermal deformation in the cooling stage, which is a typical hysteresis phenomenon. The above results show that thermal errors have hysteresis effects and long-term memory behaviors, which provides a theoretical basis for thermal error modeling.
[0155] The technical effects of the residual-based Conv1D-MGU thermal error prediction model and the thermal error control system based on the physical-data-edge-cloud architecture of this embodiment are verified through specific examples below.
[0156] 1. Experimental data collection
[0157] The experiment was conducted on the spindle system of TGK4610. The HSTL-TTC-PT100 temperature sensor (T1~T11) was used to collect temperature information, and the MR50C displacement sensor (S1~S5) was used to obtain thermal elongation data. The measured analog signal was converted into a digital signal through the PCI5655 analog acquisition card and the TLC7135A / D converter, and finally the collected data was obtained. The test points are as follows Fig.16 As shown, the location of each sensor is listed in Table 5.
[0158] Table 5 Sensor layout scheme
[0159]
[0160] In order to truly simulate the actual machining process and verify the generalization ability, two spindle speed distributions under no-load conditions are designed, such as Fig.17 shown. Fig.17 (a) is operating condition #1, representing normal speed; Fig.17 (b) is working condition #2, indicating random distribution. The temperature collected by the temperature sensor under working condition #1 is as follows Fig.18 As shown in (a), the temperature distribution collected by the temperature sensor under working condition #2 is as follows Fig.18 (b) As shown. In the case of working condition #1, as the measurement time increases, the temperature first increases and then slowly decreases. In working condition #2, compared with working condition #1, the temperature first increases and then decreases faster. The reason is that the velocity gradient decreases significantly during the cooling process of working condition #2, and then the temperature drop gradient of working condition #2 is also relatively large. As the measurement time increases, the temperature trends of the two working conditions tend to be close and gradually show a certain degree of correlation.
[0161] To verify the proposed model, the temperature and error collected by the sensor under working condition #1 are used as training sets. To verify the generalization ability and versatility of the proposed model, the working condition will be changed, and several sets of temperature and displacement data from working condition #2 will be used to predict and analyze the proposed model.
[0162] 2. Parameter settings and evaluation indicators
[0163] In order to verify the residual-based Conv1D network of this embodiment, the MGU model is used as a comparison model. In order to verify that the pooling layer designed in the residual-based Conv1D network can reduce the data dimension, the residual-based Conv1D-MGU model with a pooling step of 1 is used as a comparison model. In addition, the residual-based Conv1D-GRU and GRU models are used as comparison models to verify the convergence of the MGU model. In order to verify the overall prediction performance of the proposed residual-based Conv1D-MGU model, the widely used LSTM and traditional LSSVM models are used as comparison models.
[0164] 2.1 Parameter settings
[0165] The parameter settings of the above models all follow the principle of the control variable method. The structure of the above models is regarded as a single variable, and other input parameters and settings remain unchanged. The proposed residual-based Conv1D-MGU model and other comparative models are built under the Tensor-Flow framework, and the integrated development environment is Pycharm. The GPU cloud server is Intel Xeon (CascadeLake) with two NVIDIA V100 16GB. The parameter settings of the residual-based Conv1D network and residual connection are as follows Fig.19The number of channels in the convolution layer is set to 128, the size of the convolution kernel is 2, and the convolution kernel and the channel jointly extract the deep features of the error data as shown in Fig.12 , the step size of the pooling layer is 3. With the processing of each pooling layer, the dimension of the data becomes 1 / 3 of the original data, which is conducive to compressing the dimension of the error data and accelerating the convergence process. Downsampling is used to unify the data dimension, and residual short-circuiting can avoid the overfitting phenomenon of the proposed model.
[0166] Fig. 20 The loss functions of the proposed model under several classic and commonly used activation functions and optimizers are shown. Fig. 20 (a) shows that the convergence performance of leaky_relu and relu activation functions is significantly better than that of sigmoid, softplus, and Tanh activation functions. In addition, the leaky_relu loss function is smoother and more stable than the relu loss function. Therefore, leaky_relu is selected as the activation function for the proposed model and other compared models. Fig. 20 (b) is the loss function of the model under different optimizers. The results using the AdaGrad optimizer do not converge within the iteration range, and the gradient descent trend using the SGD optimizer is not as obvious as using the Adam and RMSprop optimizers. The loss function of the Adam optimizer converges faster and is smoother than that of the RMSprop optimizer. Therefore, the Adam optimizer is used as the optimizer for the proposed model and other comparison models.
[0167] Taking thermal error as input can completely eliminate multicollinearity between temperature variables, thus greatly improving the accuracy and robustness of prediction. The thermal error data collected by S5 is input into the Conv1D-MGU model based on residual connection, with parameters such as Fig.19 As shown and listed in Table 6. The input of the traditional LSSVM model is the temperature variables obtained by the fuzzy clustering method, and then T5, T6, T7, T9 and T10 are selected as the most relevant key temperature variables according to the sensitivity, as listed in Table 7.
[0168] Table 6 Parameter settings of the residual-based Conv1D-MGU model
[0169]
[0170] Table 7 Sensitivity of temperature variables
[0171]
[0172] 2.2 Evaluation Indicators
[0173] In this example, the mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE) and determination coefficient (R 2) for quantitative evaluation. The evaluation index is calculated as follows:
[0174]
[0175]
[0176]
[0177]
[0178] Where N is the number of observations; y i is the measured value; is the predicted value; is the average of N measurements.
[0179] 3. Effect and analysis
[0180] 3.1 Fitting effect and analysis
[0181] The fitting performance of the above five algorithms is as follows: Fig.21 Table 8 lists the fitting capabilities of the above models. The fitting accuracy of the residual-based Conv1D-MGU model, the residual-based Conv1D-MGU model with a step size of 1, the residual-based Conv1D-GRU model, the MGU model, and the GRU model all reached 99%. The fitting accuracy of the LSTM and LSSVM models is about 98%. The R 2 All are close to 1, and MAE, MSE and RMSE are relatively small. More importantly, the proposed residual-based Conv1D-MGU model has the best fitting performance. The residual-based Conv1D-MGU algorithm model has the smallest MAE, MSE and RMSE, and R2 is 0.999, which is closest to 1, indicating that the proposed residual-based Conv1D-MGU model has the best fitting performance. The residual-based Conv1D-MGU and residual-based Conv1D-GRU models converge fastest, with convergence times of 8.326s and 9.521s, respectively. The convergence times of the MGU and GRU models are 9.932s and 10.578s, respectively. The effectiveness of the designed residual-based Conv1D network is verified. The designed residual-based Conv1D network can mine deeper error data features, thereby improving the fitting accuracy. In addition, the pooling layer can continuously compress the dimension of the error data, greatly reducing the convergence time.
[0182] The fitting accuracy of the residual-based Conv1D-MGU model and the residual-based Conv1D-MGU model with step size 1 is the same. But their convergence time is completely different, and the convergence time of the residual-based Conv1D-MGU is about half of that of the residual-based Conv1D-MGU with step size 1, because the residual-based Conv1D-MGU with step size 1 has a pooling step size of 1, while the residual-based Conv1D-MGU model has a pooling step size of 3. The pooling layer designed in the proposed residual-based Conv1D network can compress the dimension of the error data, thereby speeding up the convergence process. Comparing the fitting performance of the MGU, GRU, and LSTM models, it is concluded that the fitting accuracy of the MGU and GRU models is comparable. The difference is that the convergence time of the MGU is shorter. The convergence time of the MGU is 9.932s, and the convergence time of the GRU is 10.578s, because the MGU is a lightweight model of the GRU. The MGU model lacks a gating mechanism on the basis of the GRU model. The LSTM model is not as good as the MGU and GRU models because its fitting accuracy and convergence speed are 98.40% and 12.047s respectively. The reason is that both the MGU and GRU models are lightweight models of the LSTM model. The MGU and GRU have one and two gating mechanisms respectively, and the number of gating mechanisms of the MGU and GRU is less than that of the LSTM model. In addition, the fitting accuracy of the traditional LSSVM model is 98.74%, and the shortest convergence time is 1.6425s.
[0183] Table 8 Fitting performance evaluation
[0184]
[0185] 3.2 Prediction results and analysis
[0186] The data collected in condition #2 is used as the prediction set, and the prediction results are as follows Fig. 22 As shown, the quantitative evaluation of the prediction performance is shown in Table 9. The prediction accuracy and convergence speed of the above model are consistent with the fitting results. The difference is that the convergence time of the above model in the prediction process is longer than that in the fitting process. For the processing of time series data, when the sliding window is smaller than the threshold, the larger the sliding window, the better the prediction performance, because more historical information is provided. When the sliding window is larger than the threshold, the larger the sliding window, the worse the prediction performance. Working condition #1 is used for error fitting, and working condition #2 is used for error prediction. To ensure good prediction performance, more thermal error history features need to be provided, that is, the value of the sliding window is increased according to Table 6. The sliding window in the prediction process is 25, and that in the fitting process is 10. Therefore, the convergence time of the prediction model is longer than that in the fitting process.
[0187] By comparing Table 8 and Table 9, it can be concluded that changing the working conditions will reduce the prediction accuracy of the above models. The proposed residual-based Conv1D-MGU model has excellent prediction accuracy and convergence time, with prediction accuracy and convergence time of 98.18% and 13.7190s respectively. The prediction accuracy is reduced by about 1% compared with the fitting accuracy. In addition, the prediction accuracy of the residual-based Conv1D-MGU, residual-based Conv1D-GRU, MGU, GRU and LSTM models with stride 1 decreased by about 2% compared with the fitting accuracy. The traditional LSSVM model has an excellent convergence time during the fitting process, but the prediction accuracy is only 91.82%, indicating that the traditional LSSVM model has poor generalization and robustness. It is concluded that the proposed residual-based Conv1D-MGU model shows excellent prediction accuracy, excellent robustness and convergence.
[0188] Table 9 Prediction performance evaluation
[0189]
[0190] 4. Experimental verification
[0191] The interface of the thermal error control system (PDECT architecture) based on the physical-data-edge-cloud architecture in this embodiment is as follows Fig.23 In order to verify the effectiveness of the proposed residual-based Conv1D-MGU model and PDECT structure, the proposed residual-based Conv1D-MGU model is embedded into the PDECT architecture for experimental verification.
[0192] The PDECT developed for the thermal error control platform includes software and hardware systems to control thermal errors based on a feedback integration approach, such as Fig.24 As shown. The dynamic and static data of the machine tool are collected from the machine tool in real time. The raw data collected by the physical terminal is classified and temporarily stored by Spark and the data terminal, and then the preliminarily processed data is stored in the micro data center to support the needs of subsequent calculations of the edge terminal. At the edge terminal, the data uploaded by the data terminal is cleaned, A / D converted, filtered, clustered and stored in the database. In the cloud, some data is used for thermal analysis of the machine tool. According to the analysis results, the location layout of the sensor is reversely guided, which is the theoretical basis of sensor layout.
[0193] The training and parameter update of the residual-based Conv1D-MGU model are performed in the cloud, and the error prediction is performed on the edge. The error control system consists of a control module, a programmable logic controller (PLC), and a PC, such as Fig.25As shown in the figure. The control principle of the Siemens 840D system was studied. The control system calculated the predicted thermal errors in three directions. Combined with the initial parameters, the control offset was calculated through the human-machine interface (HMI), and the HMI sent the error offset to the programmable logic controller (PLC). The CNC system calls the control function to read the control signal sent by the PLC. The feedback integration method is used to superimpose the control signal with the original coordinates of the moving nut. Finally, the thermal error control is achieved by updating the nut position.
[0194] The effectiveness of the proposed modeling method and the designed PDECT architecture can be fully demonstrated by comparing the machining errors of the PDECT system. Then 32 workpieces were machined, made of 45# carbon steel. The main focus is on the roundness errors of the two cylindrical surfaces, such as Fig.26 (a) is shown. The precision machine tool starts working from a cold state until all workpieces are processed. The processed workpieces are then placed in the laboratory to eliminate environmental influences, and the roundness error of the processed workpieces is measured, as shown in Fig.26 (b) As shown in the PDECT framework experiment, the roundness error of the part is closer to the zero line, and the processing error is reduced by more than 80%, which verifies the effectiveness of the proposed modeling method and PDECT framework.
[0195] The proposed residual-based conv1D-MGU error control model is embedded into different architectures to verify the designed PDECT architecture. The data transfer time and total execution time of each architecture are listed in Table 10.
[0196] Table 10 Time consumption of residual-based conv1D-MGU model under different structures
[0197]
[0198] The execution time of the designed PDECT architecture and physical edge cloud (PEC) architecture is 166s and 177s respectively, and the data transmission time of the designed PDECT architecture and physical edge cloud (PEC) architecture is 25s and 38s respectively. The superiority of the designed data terminal is verified. Classifying a large amount of multi-source heterogeneous data and using Spark's cache mechanism can reduce I / O consumption, thereby improving data transmission efficiency.
[0199] By comparing the execution time of the proposed PDECT architecture and the physical data cloud (PDC) architecture, it is found that the cloud terminal consumption time of the PDECT and PDC architectures is 74s and 110s, respectively. The overall data transmission time of the PDECT and PDC architectures is 25s and 48s, respectively. The designed edge terminal performs data preprocessing such as data cleaning and filtering to improve data quality and reduce data volume. Data preprocessing is beneficial to the training and parameter update of the residual-based Conv1D-MGU model in the cloud, thereby reducing the computing time of the cloud terminal. Moreover, the edge terminal is closer to the physical terminal than the cloud terminal, which reduces the time consumption and delay of the PDECT architecture.
[0200] By comparing the time consumption and data transmission time of the proposed PDECT architecture with the other three architectures, it is found that the time consumption and data transmission time of the physical-cloud (PC) architecture are the longest. Moreover, the total time consumption and data transmission time are 205s and 55s respectively, which once again verifies the effectiveness of the designed data terminal and edge terminal in the PDECT architecture.
[0201] 5. Conclusion
[0202] In order to control thermal errors timely and accurately, a new PDECT architecture is designed to eliminate the time delay caused by network bandwidth. On the one hand, FEA thermal characteristics simulation guides sensor layout. On the other hand, nonlinear long-term memory and hysteresis effects are revealed, laying a theoretical foundation for DTEM. Finally, the model is embedded in the PDECT architecture for processing experiments. The results show that the proposed error control model shows good prediction performance and efficient error control effect. The conclusions are summarized as follows:
[0203] (1) The PDECT intelligent control architecture is designed by combining the advantages of cloud computing and edge computing. Spark's cache mechanism on the data end is used to reduce I / O consumption during data transmission and improve transmission efficiency. The edge terminal performs data cleaning, A / D conversion, FFT filtering, fuzzy clustering, and thermal error prediction on the collected raw data. The cloud terminal uses NVIDIA V100 GPU server to support FEA thermal analysis, model training, and parameter update.
[0204] (2) Combine THEM and DTEM. Perform FEA to simulate thermal behavior. The thermal analysis results guide the installation of the sensor. In addition, it is found that the thermal error has a nonlinear relationship with temperature and also has characteristics such as long-term memory and hysteresis effects, which provides a theoretical basis for establishing the residual-based Conv1D-MGU model.
[0205] (3) A novel residual-based Conv1D network is designed for data preprocessing, data feature extraction, and data dimension compression. In addition, the processed data of the residual-based Conv1D network is used as the input of the MGU. The results show that the designed residual-based Conv1D network can effectively improve the prediction accuracy and accelerate the convergence speed.
[0206] (4) The residual-based Conv1D-MGU model was embedded in the PDECT architecture for processing experiments, which showed that the prediction accuracy and convergence speed of the proposed model were 98.18% and 13.7190s respectively. Under the condition of changing operating conditions, it can still guarantee excellent prediction accuracy and convergence speed, and thus the proposed residual-based Conv1D-MGU model has strong generalization and robustness. Using the PDECT architecture, the processing error is reduced by more than 80%. Moreover, the control efficiency is greatly improved under the PDECT architecture, with an overall time of 166s and a data transmission time of 25s.
[0207] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A Conv1D-MGU thermal error prediction model, characterized in that: It includes an input layer, an MGU layer, a fully connected layer, and an output layer arranged in sequence; A residual block is provided between the input layer and the MGU layer, the residual block includes a main path and a shortcut branch, one end of the main path and the shortcut branch are respectively connected to the input layer, and the other end is connected to the accumulation layer; a one-dimensional convolution pooling unit and a one-dimensional convolution layer II are provided on the main path between the input layer and the accumulation layer, the one-dimensional convolution pooling unit is connected in series as at least one, and the one-dimensional convolution pooling unit includes a one-dimensional convolution layer I, a one-dimensional pooling layer and an activation function layer I which are arranged in sequence; an activation function layer II is provided between the accumulation layer and the MGU layer, and a flattening layer is provided between the activation function layer II and the MGU layer; The shortcut branch is provided with down sampling; The one-dimensional convolution layer I and one-dimensional convolution layer II are used to extract the features of the time series thermal error data, and the convolution operation is: Where X = [x1, x2, …, x n ] T ∈R m×n , represents the thermal error data matrix; m is the characteristic number of error data; n is the length of thermal error; W c ∈R j×m represents the weight vector of the convolution kernel; j represents the length of the convolution kernel; b c Represents the bias of the convolutional layer; Represents the convolution operation between two vectors; f c (·) represents the activation function of convolution; o cm Represents the output result after the mth convolution; The operation rules of the MGU layer are: you t =σ(W r ·x t ) Among them, W r represents the learnable weight; σ represents the logistic activation function; x t represents the input of the node at this time; tanh represents the activation function; ⊙ represents the point-by-point multiplication operation; represents the candidate hidden layer state; h t represents the hidden layer output at the current moment; h t-1 Indicates the hidden layer output at the previous moment; u t Represents the output of the forget gate at the current moment.
2. The Conv1D-MGU thermal error prediction model according to claim 1, characterized in that: The one-dimensional pooling layer adopts the maximum pooling method and is used to compress the features of the time series thermal error data, and its expression is: max down(o cm ,λ)=max(o cm ,m≤m≤mλ) Among them, cm Represents the output vector of the one-dimensional convolutional layer I; λ represents the pooling step size, and the dimension of the vector is compressed to the original 1 / λ through the processing of the pooling layer.
3. A thermal error control system based on a physics-data-edge-cloud architecture, characterized by: Including physical terminals, data terminals, edge terminals and cloud terminals; The physical terminal comprises: Data acquisition system, used to collect analog signals of temperature, displacement and feed speed of machine tool equipment; A router, used to transmit the data collected by the data collection system to the data terminal; The data terminal includes a data classification management module, a data online management module and a first database; The data classification module is integrated with: Hadoop, which provides effective storage for data; Spark, which supports repeated iterative calculations or multiple calculations, reduces the IO overhead of data reading, and improves data transmission efficiency; YARN, which realizes data classification and computing resource management; The data online management module divides the data into static data and dynamic data; The first database is used to store data and facilitate the edge terminal and the cloud terminal to call; The edge terminal includes an edge workstation and a second database, wherein the edge workstation is provided with a data processing module and the Conv1D-MGU thermal error prediction model as claimed in claim 1 or 2; The data processing module comprises: A data preprocessing module, used to clean the data input by the data terminal, fill in missing data and remove variant data; A / D conversion module, used for converting analog signals into digital signals; Data filtering module, used to remove high-frequency parts and noise of data; Temperature variable fuzzy clustering module, used to perform fuzzy clustering on temperature variables and eliminate multicollinearity between temperature variables; The second database is used to store data processed by the data processing module; The Conv1D-MGU thermal error prediction model is used to predict thermal errors to achieve error control of machine tool equipment; The cloud terminal includes a server, and the server is provided with: Thermal characteristics analysis module, which performs thermal characteristics analysis based on the machine tool's 3D model and thermal boundary conditions calculated by data; A model training module, used for training the Conv1D-MGU thermal error prediction model; The model updating module transmits the Conv1D-MGU thermal error prediction model trained by the model training module to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal.
4. The thermal error control system based on the physics-data-edge-cloud architecture according to claim 3, characterized in that: When the service time of the Conv1D-MGU thermal error prediction model in the edge terminal exceeds a set threshold, the Conv1D-MGU thermal error prediction model trained in the cloud terminal is transmitted to the edge terminal to update the Conv1D-MGU thermal error prediction model in the edge terminal.
