Compensation prediction method and system for numerically-controlled machine tool spindle state diagnosis
The trajectory coordinates of the spindle of the CNC machine tool are reconstructed through non-contact laser displacement sensor and variational modal decomposition method, and combined with simulation model and GRU prediction model for fault diagnosis and compensation prediction, solving the problem of messy spindle trajectory diagrams and improving the accuracy and efficiency of state recognition.
Patent Information
- Application Number
- CN202510051917.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-14
AI Technical Summary
During the machining process, the displacement signal noise interference caused by vibration and measurement errors of the CNC machine tool spindle is messy and affects the accurate identification of state types.
The non-contact laser displacement sensor is used to obtain the spindle radial gyro error, axis tilt error and axial twitching error. The trajectory coordinates are reconstructed through the variational modal decomposition method, and the simulation model is constructed for transfer learning, and fault diagnosis and compensation prediction are combined with the GRU prediction model.
Extract useful feature information from the accurate gyro axis trajectory diagram, improve the accurate recognition rate of the spindle state type of CNC machine tool, and reduce the cost of state detection.
Smart Images

Figure CN119937451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of CNC machine tool control, and in particular to a compensation prediction method and system for CNC machine tool spindle state diagnosis. Background Art
[0002] The state of the machine tool spindle system is intuitively expressed on the axis trajectory diagram. Therefore, obtaining a clear and smooth spindle rotation axis trajectory diagram is crucial for accurately identifying the axis trajectory. However, in the actual CNC machine tool processing process, the vibration and measurement error of the spindle itself often cause the displacement signal collected by the displacement sensor to be interfered by noise, which causes the directly calculated rotation axis trajectory diagram to often appear messy and difficult to extract useful feature information from, thus affecting the accurate identification of the state type. However, traditional state diagnosis methods expose many problems, such as a large amount of data to be diagnosed, low feature extraction efficiency and high state detection cost, and signal processing algorithms are difficult to cope with multiple states. Summary of the invention
[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a compensation prediction method and system for CNC machine tool spindle state diagnosis, which can extract useful feature information from the accurate rotary axis trajectory diagram, thereby improving the accurate recognition rate of CNC machine tool spindle state type.
[0004] The first technical solution adopted by the present invention is: a compensation prediction method for spindle state diagnosis of a CNC machine tool, comprising the following steps:
[0005] Based on the non-contact laser displacement sensor, the spindle radial rotation error, spindle axis tilt error and spindle axial movement error of the CNC machine tool are obtained;
[0006] According to the spindle radial rotation error, spindle axis tilt error and spindle axial movement error of the CNC machine tool, the CNC machine tool tool feed compensation amount and the spindle rotation axis center trajectory coordinates of the CNC machine tool are calculated;
[0007] The coordinates of the rotation axis center trajectory of the CNC machine tool spindle are reconstructed by using the variational mode decomposition method to obtain the reconstructed coordinates of the rotation axis center trajectory of the CNC machine tool spindle;
[0008] Construct a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates;
[0009] Transfer learning is performed on the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis results of the CNC machine tool;
[0010] The GRU prediction model is used to predict the fault diagnosis results of CNC machine tools and the tool feed compensation amount of CNC machine tools, and the compensation prediction results of CNC machine tool spindle status diagnosis are obtained.
[0011] Further, the step of obtaining the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor specifically includes:
[0012] Obtain the measured cross section of the spindle of the CNC machine tool;
[0013] The spindle radial rotation error and spindle axis tilt error of the CNC machine tool of the spindle measured section are obtained in the spindle axial direction by a non-contact laser displacement sensor;
[0014] The spindle axial movement error of the CNC machine tool is obtained along the spindle axis direction through a non-contact laser displacement sensor.
[0015] Further, the step of calculating the tool feed compensation amount of the CNC machine tool and the coordinates of the spindle rotation axis center of the CNC machine tool according to the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool specifically includes:
[0016] Error separation is performed according to the spindle radial rotation error of the CNC machine tool to obtain the spindle radial error of the CNC machine tool;
[0017] The tool feed compensation amount of the CNC machine tool is calculated according to the spindle radial error of the CNC machine tool and the spindle axis tilt error of the CNC machine tool, and the tool feed compensation amount of the CNC machine tool is obtained;
[0018] According to the relationship between the spindle radial rotation error and the spindle radial error of the CNC machine tool, the axis trajectory coordinate calculation model is constructed;
[0019] The axis trajectory coordinate calculation model is solved and calculated according to the axial movement error of the spindle of the CNC machine tool, and the axis trajectory coordinates of the spindle rotation of the CNC machine tool are obtained.
[0020] Further, the step of reconstructing the coordinates of the CNC machine tool spindle rotation axis trajectory by using the variational mode decomposition method to obtain the reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory specifically includes:
[0021] Obtain the sampling time of the non-contact laser displacement sensor, and construct a two-dimensional array based on the coordinates of the CNC machine tool spindle rotation axis trajectory;
[0022] The two-dimensional array is decomposed by variational mode decomposition method to obtain several IMF sub-signals;
[0023] The correlation coefficient analysis method is used to obtain the correlation between several IMF sub-signals and the two-dimensional array and screen them to obtain the effective component signal of the CNC machine tool spindle rotation axis trajectory coordinates.
[0024] The coordinates of the rotation axis center trajectory of the spindle of the CNC machine tool are reconstructed according to the effective component signal, and the reconstructed coordinates of the rotation axis center trajectory of the spindle of the CNC machine tool are obtained.
[0025] Furthermore, the step of constructing a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates specifically includes:
[0026] Simulating and generating the axis trajectory signal of the CNC machine tool to obtain the simulated axis trajectory signal;
[0027] Add random vibration signals to the axis trajectory signals generated by simulation and input them into the axis trajectory coordinate calculation model for solution calculation to obtain the axis coordinates of the simulated spindle rotation;
[0028] Combined with the spindle state type of the CNC machine tool, a relationship model between the simulated spindle rotation axis coordinates and the reconstructed spindle rotation axis trajectory coordinates of the CNC machine tool is constructed.
[0029] Furthermore, the step of performing transfer learning on the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis result of the CNC machine tool specifically includes:
[0030] Performing continuous wavelet transform on the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the transformed CNC machine tool spindle rotation axis trajectory coordinates;
[0031] Combine the convolution layer, GN normalization layer, ReLU activation function, pooling layer and feature fusion layer to build a group normalized parallel convolutional neural network model;
[0032] Based on the group normalized parallel convolutional neural network model, the transformed CNC machine tool spindle rotation axis trajectory coordinates and the simulated spindle rotation axis coordinates are extracted to obtain the fault type data of the CNC machine tool;
[0033] The VGG-16 convolutional neural network model is used to diagnose the fault type data of the CNC machine tool and obtain the fault diagnosis results of the CNC machine tool.
[0034] Further, the step of predicting the compensation amount of the fault diagnosis result of the CNC machine tool and the tool feed compensation amount of the CNC machine tool by using the GRU prediction model to obtain the compensation prediction result of the spindle state diagnosis of the CNC machine tool specifically includes:
[0035] Performing normalization processing on the CNC machine tool tool feed compensation amount to obtain the normalized CNC machine tool tool feed compensation amount;
[0036] The GRU prediction model is used to predict the normalized CNC machine tool tool feed compensation amount and the CNC machine tool fault diagnosis result, and the compensation prediction result of the CNC machine tool spindle state diagnosis is obtained.
[0037] The second technical solution adopted by the present invention is: a compensation prediction system for CNC machine tool spindle state diagnosis, comprising:
[0038] The first module is used to obtain the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor;
[0039] The second module is used to calculate the CNC machine tool tool feed compensation amount and the CNC machine tool spindle rotation axis trajectory coordinates according to the CNC machine tool spindle radial rotation error, the CNC machine tool spindle axis tilt error and the CNC machine tool spindle axial movement error;
[0040] The third module is used to reconstruct the coordinates of the CNC machine tool spindle rotation axis trajectory by using the variational mode decomposition method to obtain the reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory;
[0041] The fourth module is used to construct a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates;
[0042] The fifth module is used to transfer the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis result of the CNC machine tool;
[0043] The sixth module is used to predict the compensation amount of the fault diagnosis results of the CNC machine tool and the tool feed compensation amount of the CNC machine tool through the GRU prediction model, and obtain the compensation prediction result of the spindle state diagnosis of the CNC machine tool.
[0044] The beneficial effects of the method and system of the present invention are as follows: the present invention obtains the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor, and then calculates to obtain the CNC machine tool tool feed compensation amount and the CNC machine tool spindle rotation axis trajectory coordinates. Based on the measurement principle of the laser displacement sensor, it is proposed to use two laser displacement sensors to measure the offset of the rotor relative to the initial position, and obtain an accurate axis trajectory instead of an approximate axis trajectory by solving the model. The spindle rotation axis trajectory coordinates of the CNC machine tool are further reconstructed by the variational mode decomposition method to obtain the reconstructed spindle rotation axis trajectory coordinates of the CNC machine tool. The variational mode decomposition (VMD) technology is used to purify and reconstruct the accurate rotation axis trajectory diagram to improve the clarity and recognizability of the axis trajectory diagram, and further construct the simulation spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis coordinates. A relationship model of the axis trajectory coordinates is proposed, and then the relationship model of the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates is transferred for learning. Aiming at the problem of unclear state data labels in practical problems, a state diagnosis model combining signal decomposition driven by simulation data and VGG-16 deep transfer learning network is proposed. Transfer learning is used in the pre-trained network, and a pre-trained neural network with high-precision recognition ability is used to learn the features of the spindle state in the axis trajectory diagram, unfreeze the deep network to fine-tune the parameters, and then transfer the knowledge of the simulation data to the actual machine tool spindle system state diagnosis process. Finally, the GRU prediction model is used to predict the compensation amount of the CNC machine tool fault diagnosis result and the CNC machine tool tool feed compensation amount, and the compensation prediction result of the CNC machine tool spindle state diagnosis is obtained. Useful feature information can be extracted from the accurate rotary axis trajectory diagram, thereby improving the accurate recognition rate of the CNC machine tool spindle state type. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flowchart of the steps of a compensation prediction method for CNC machine tool spindle state diagnosis of the present invention;
[0046] Figure 2 It is a structural block diagram of a compensation prediction system for CNC machine tool spindle state diagnosis according to the present invention;
[0047] Figure 3 It is a schematic diagram of a flow chart of spindle error compensation for a CNC machine tool provided by a specific embodiment of the present invention;
[0048] Figure 4 It is a schematic diagram of the principle of the spindle rotation trajectory test of a CNC machine tool provided by a specific embodiment of the present invention;
[0049] Figure 5is a schematic diagram of a tool feed compensation amount calculation model provided by a specific embodiment of the present invention;
[0050] Figure 6 is a schematic diagram of a rotary axis position calculation model provided by a specific embodiment of the present invention;
[0051] Figure 7 is a schematic diagram of a deep transfer learning state diagnosis model based on VGG-16 provided in a specific embodiment of the present invention;
[0052] Figure 8 It is a schematic diagram of a CWT-GPCNN feature fusion network model provided by a specific embodiment of the present invention;
[0053] Fig. 9 It is a schematic diagram of the GRU network gating structure provided by a specific embodiment of the present invention. DETAILED DESCRIPTION
[0054] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0055] Reference Figure 1 The present invention provides a compensation prediction method for spindle state diagnosis of a CNC machine tool, the method comprising the following steps:
[0056] S100, obtaining a spindle radial rotation error, a spindle axis tilt error, and a spindle axial movement error of a CNC machine tool based on a non-contact laser displacement sensor;
[0057] Specifically, the spindle measured section of the CNC machine tool is obtained; the spindle radial rotation error and the spindle axis inclination error of the CNC machine tool of the spindle measured section are obtained in the spindle axial direction by a non-contact laser displacement sensor; the spindle axial runout error of the CNC machine tool is obtained along the spindle axis direction by a non-contact laser displacement sensor.
[0058] In this embodiment, first of all, it should be explained that, with respect to the analysis of the constituent elements of the spatial error of the machine tool spindle, under ideal conditions, the spatial position of the rotation axis of the spindle relative to the tool holder is unchanged during the rotational motion, but in the actual machining process, due to the influence of various external factors and the manufacturing and installation errors of the machine tool itself, there must be a deviation between the actual rotation axis of the spindle and the ideal rotation axis, that is, the rotation errors caused by axial play, radial runout and angular swing coexist, and these three have a certain influence on the machining accuracy of the machine tool, among which axial play affects the axial plane accuracy of the workpiece, radial runout affects the roundness of the workpiece, and angular swing affects both plane accuracy and roundness.
[0059] Furthermore, it is necessary to analyze that the state monitoring method of the spindle system of a CNC machine tool in an embodiment of the present invention adopts a measuring point method. The measuring point method uses two pairs of displacement sensors located at different cross-sectional positions in the axial direction of the spindle and perpendicular to each other to synchronously measure the radial rotation error and axis tilt error of the spindle, and uses a sensor arranged along the axis direction to obtain the axial movement error.
[0060] S200, calculating according to the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool, to obtain the CNC machine tool tool feed compensation amount and the CNC machine tool spindle rotation axis center trajectory coordinates;
[0061] Specifically, error separation is performed based on the radial rotation error of the spindle of the CNC machine tool to obtain the radial error of the spindle of the CNC machine tool; the tool feed compensation amount of the CNC machine tool is calculated based on the radial error of the spindle of the CNC machine tool combined with the spindle axis inclination error of the CNC machine tool to obtain the tool feed compensation amount of the CNC machine tool; according to the relationship between the radial rotation error of the spindle of the CNC machine tool and the radial error of the spindle of the CNC machine tool, an axis trajectory coordinate calculation model is constructed; according to the axial runout error of the spindle of the CNC machine tool, the axis trajectory coordinate calculation model is solved and calculated to obtain the spindle rotation axis trajectory coordinates of the CNC machine tool.
[0062] In this embodiment, if Figure 4 As shown, the spindle radial rotation error is separated first. Taking a spindle section as an example, at section z, the load condition is L m When the spindle phase angle is θ, according to the geometric relationship during the spindle rotation process under the action of various errors, the raw data collected by the two mutually perpendicular displacement sensors are as follows:
[0063]
[0064]
[0065] In the above formula, R represents the radius of the measured section of the spindle, ρ r Indicates the radial rotation error of the spindle, |xX | is the component of the distance from the X-axis displacement sensor of the measured section to the theoretical axis in the X-axis direction, |y Y | represents the component of the distance from the Y-axis displacement sensor of the measured section to the theoretical axis center in the Y-axis direction, z represents the section z, θ represents the main axis phase angle, L m represents the load condition, ρ x represents the original data collected by the X-axis displacement sensor, ρ y Indicates the original data collected by the Y-axis displacement sensor, L x It represents the component of the deviation between the actual installation position and the theoretical installation position of the X-axis displacement sensor in the X-axis direction, L y It represents the component of the deviation between the actual installation position and the theoretical installation position of the Y-axis displacement sensor.
[0066] Furthermore, it should be noted that under ideal installation conditions, the sensor axis at the intersection of the X-axis displacement sensor axis and the Y-axis displacement sensor axis should coincide with the theoretical axis. However, due to installation deviation and deviation of the relative position of the sensors, the two will have a deviation L in the X direction. x , the Y direction produces a deviation L y .
[0067] Furthermore, Figure 5 As shown, the machine tool tool feed compensation amount is calculated, and the two spindle measured sections are marked as A and B, where A represents the right end measured section and B represents the left end measured section. The error caused by the angle swing can be expressed as:
[0068]
[0069] In the above formula, l represents the axial distance between the measured sections A and B, ρ A , B They represent the spindle radial errors of points A and B respectively when the spindle phase angle is θ, φ x Indicates the spindle tilt angle in the X-axis direction, φ y Indicates the spindle tilt angle in the Y-axis direction.
[0070] Furthermore, because the shake of the spindle in the Y-axis direction will also affect the relative position between the cutting tool and the axis, the compensation amount of the cutting tool not only needs to directly calculate the projection value of the rotation error in the X-axis direction, but also should consider the influence of the rotation error in the Y-axis direction. The expression is:
[0071]
[0072] In the above formula, x represents the relative position of the cutting tool with respect to the measured section A, R represents the spindle radius when the cutting tool is at the x position, Δx and Δy represent the projection values of the rotation error in the X and Y axis directions when the tool is at the position, and Δr represents the feed compensation amount of the tool.
[0073] Finally, if Figure 6 As shown in the figure, the spindle rotation axis center is extracted. Taking the measured section A as an example, when the rotation error is known to be at the spindle phase angle θ, it is assumed that the axis center at each moment is at the X and Y coordinates relative to the axis center of the initial position as X A and Y A , the spindle radius is R A According to the geometric relationship between the parameters, the equivalent relationship is constructed, and the expression of the axis trajectory coordinate calculation model can be obtained as follows:
[0074]
[0075] In continuous time, two displacement sensors synchronously collect the displacement offset of the spindle in different directions relative to the initial state. The axis center coordinates (X A ,Y A ).
[0076] S300, reconstructing the coordinates of the CNC machine tool spindle rotation axis trajectory by using a variational mode decomposition method to obtain reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory;
[0077] Specifically, the sampling time of the non-contact laser displacement sensor is obtained, and combined with the coordinates of the CNC machine tool spindle rotation axis trajectory, a two-dimensional array is constructed; the two-dimensional array is decomposed by the variational mode decomposition method to obtain a number of IMF sub-signals; the correlation coefficient analysis method is used to obtain the correlation between the several IMF sub-signals and the two-dimensional array and screen them to obtain the effective component signals of the CNC machine tool spindle rotation axis trajectory coordinates; the CNC machine tool spindle rotation axis trajectory coordinates are reconstructed according to the effective component signals to obtain the reconstructed CNC machine tool spindle rotation axis trajectory coordinates.
[0078] In this embodiment, firstly, according to the variational mode decomposition method (VMD), the composite signal collected by the displacement sensor is decomposed into sub-signals (intrinsic mode function IMF) of different frequencies, high-frequency noise interference and obvious outliers are removed, and the sub-signals that meet the conditions are selected for superposition and reconstruction into a new signal to obtain a clear and smooth axis trajectory. VMD decomposition requires setting 4 parameters: the number of IMF components k, the penalty factor α, the noise tolerance τ and the convergence accuracy ε, where τ and ε have little effect on the decomposition results, and the default values can be used; and improper values of k and α will lead to over-decomposition or under-decomposition. In order to accurately select these parameters to obtain the best decomposition results, the gray wolf algorithm (GWO) is used to globally optimize these two key parameters. In the parameter optimization process, the minimum envelope entropy is used as the fitness function. The lower the envelope entropy value, the less noise (the smaller the interference) and the more characteristic information in the IMF. The value range of k is an integer of [2,10], the value range of α is [100,2000], and the number of iterations is set to 200. The optimal parameters are determined by continuously updating the optimization parameter values.
[0079] Furthermore, the sampling time and collected values of the X-direction, Y-direction displacement sensors and axial displacement sensors of the measured sections at both ends of the CNC machine tool during normal processing constitute a two-dimensional array, the array size is n×6, n is the number of samples collected by each displacement sensor during processing, and the sampling time = sampling frequency × i (i = 1, 2, ..., n). Taking the one-dimensional data signal x(t) collected by the X-direction displacement sensor at the right end as an example, VMD decomposition is performed to obtain several IMFs arranged according to the frequency, and the effective components are selected for reconstruction to achieve the effect of noise reduction. The decomposed IMFs often contain pseudo components that are irrelevant to the original signal, and these pseudo components cannot characterize the characteristics of the original signal. In order to identify and exclude these redundant components and improve the detection sensitivity of the machine tool spindle system status, this method uses the correlation coefficient analysis method to evaluate the correlation between each IMF and the original signal. This method can effectively measure the linear relationship between each component and the original signal and quantitatively describe the degree of dependence between them.
[0080] The calculation formula of the correlation coefficient is as follows:
[0081]
[0082] In the above formula, ρ k represents the correlation coefficient, represents the i-th data in the l-th IMF component, S i (·) represents the i-th data directly collected by the sensor, i represents the data sequence collected by the sensor, N represents the total amount of data collected by the sensor, k represents the IMF component sequence, and n represents the number of data collected by each displacement sensor during the machining process.
[0083] S400, constructing a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates;
[0084] Specifically, the axis trajectory signal of the CNC machine tool is simulated and generated to obtain the simulated axis trajectory signal; a random vibration signal is added to the simulated axis trajectory signal and input into the axis trajectory coordinate calculation model for solution calculation to obtain the simulated spindle rotation axis coordinates; combined with the spindle state type of the CNC machine tool, a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates is constructed.
[0085] In this embodiment, first of all, it should be noted that when building a deep transfer learning state diagnosis model, the key requirement is to obtain a large and diverse data set. In actual engineering applications, the data collected by the displacement sensor often lacks the necessary state labels. To this end, in order to ensure the effectiveness and accuracy of the model training, the axis trajectory signal is simulated and generated, and its expression is:
[0086]
[0087] In the above formula, x(t) and y(t) represent the displacement components of the axis in two orthogonal directions, s1(t) and s2(t) represent Gaussian white noise components. The noise values of Gaussian white noise at different times are independent of each other. ω represents the rotation frequency, α1, α2, β1, and β2 represent the corresponding initial phases, and A1, A2, B1, and B2 represent the 1 and 2 times frequency components of x(t) and y(t).
[0088] After the axis trajectory signal is generated by formula simulation, the displacement signal and the phase angle of the machine tool spindle actually collected by the displacement sensor are simulated by adding random vibration signals to make the axis trajectory fluctuate slightly. The spindle rotation axis trajectory model is solved by simulation data to obtain the spindle rotation axis coordinates (X A ,Y A ).
[0089] Furthermore, it should be noted that, for different state types, different data sets are constructed by adjusting the above parameters to establish the corresponding relationship between different state types and axis trajectories as shown below:
[0090] 1) When the spindle rotor is unbalanced, the amplitude of the rotor will increase with the increase of the speed, causing the axis trajectory to present a flat ellipse with a large difference between the major and minor axes;
[0091] 2) When the spindle rotor is misaligned, the axis trajectory usually presents a banana shape, and as the degree of the condition worsens, it may turn into an outer 8 shape;
[0092] 3) When the machine tool is in a dynamic and static friction state, the rotor parts will be subjected to certain tangential forces and normal forces, causing the axis trajectory to present a certain petal shape;
[0093] Among them, it should be noted that when the machine tool has an oil film vortex state due to improper selection of lubricating oil, the vibration amplitude and vibration frequency of the rotor will change, causing the axis trajectory to present an inner 8 shape.
[0094] S500, performing transfer learning on the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain a fault diagnosis result of the CNC machine tool;
[0095] Specifically, a continuous wavelet transform is performed on the reconstructed CNC machine tool spindle rotary axis trajectory coordinates to obtain the transformed CNC machine tool spindle rotary axis trajectory coordinates; a group normalized parallel convolutional neural network model is constructed by combining the convolution layer, the GN normalization layer, the ReLU activation function, the pooling layer and the feature fusion layer; based on the group normalized parallel convolutional neural network model, feature extraction is performed on the transformed CNC machine tool spindle rotary axis trajectory coordinates and the simulated spindle rotary axis coordinates to obtain the fault type data of the CNC machine tool; the fault type data of the CNC machine tool is diagnosed by the VGG-16 convolutional neural network model to obtain the fault diagnosis result of the CNC machine tool.
[0096] In this embodiment, the data after decomposition and reconstruction is first converted based on CWT. Because the fault characteristics obtained by time-frequency domain analysis are more obvious, and the analysis based on time-frequency domain is more comprehensive and accurate, the time-frequency diagram obtained by CWT (continuous wavelet transform) generated by multiple sensor signals is used as input.
[0097] Among them, the function expression of CWT is:
[0098]
[0099] In the above formula, f(t) represents the input signal, ψ(t) represents the mother wavelet, a represents a non-zero scaling parameter used to control the expansion and contraction of the wavelet, and b represents the translation parameter that controls the position of the wavelet on the time axis.
[0100] A group normalized parallel convolutional neural network model (GPCNN) is further constructed: the model respectively transforms the spindle phase angle θspindle and the rotation axis coordinate signal X after VMD decomposition and reconstruction. A (y), Y A(t), the three time-frequency graphs obtained by continuous wavelet transform are used as input, and different data are processed through parallel network branches. Each branch contains a convolution layer, a GN normalization layer, a ReLU activation function, and a pooling layer. Then, the features of different branches are fused together through the feature fusion layer, and the complementary correlation relationship between the three is extracted through the convolution and pooling layers. Finally, the high-dimensional features are compressed into feature vectors through the processing of two fully connected layers, and classified by the Softmax classifier to output the final fault type;
[0101] Then, the model is trained. After the network structure is completed, the source domain generated by simulation is divided into training set and test set in a ratio of 8:2, and the model is trained using the training set. First, the model calculates the output value of the current parameter through forward propagation; secondly, the loss function is used to evaluate the error between the model prediction value and the actual value; the gradient of the loss function to the model parameter is calculated through the error back propagation algorithm; finally, the Adam optimizer is used to update the network weights and biases according to these gradients to minimize the loss function. Repeat the above process until the preset number of iterations is reached.
[0102] Further, if Figure 7 As shown in the figure, a modified VGG-16 transfer learning model is constructed. The VGG-16 convolutional neural network consists of 13 convolutional layers, 5 pooling layers, 3 fully connected layers and a Softmax output layer. The convolutional layers and pooling layers are used to form feature extractors, and the fully connected layers and Softmax layers complete the classification task. In the VGG-16 transfer learning process, the network is modified. Before replacing the top layer, the first several layers are frozen to avoid destroying their feature representation capabilities; the fixed parameters remain unchanged, and the subsequent convolutional layers are fine-tuned according to the needs, so that their weights can be updated in each cycle during the training model.
[0103] Train the model again, such as Figure 8 As shown in Figure 1, the parameters of the CWT-GPCNN model trained in the source domain are transferred to the diagnostic model in the target domain, and then trained using a small training set of the target domain. The test samples of the target domain are input into the model to obtain the diagnostic results of each state category.
[0104] S600, predicting the compensation amount of the CNC machine tool fault diagnosis result and the CNC machine tool tool feed compensation amount through the GRU prediction model to obtain the compensation prediction result of the CNC machine tool spindle state diagnosis.
[0105] Specifically, the tool feed compensation amount of the CNC machine tool is normalized to obtain the normalized tool feed compensation amount of the CNC machine tool; the compensation amount is predicted for the normalized tool feed compensation amount of the CNC machine tool and the fault diagnosis result of the CNC machine tool through the GRU prediction model to obtain the compensation prediction result of the spindle state diagnosis of the CNC machine tool.
[0106] In this embodiment, data preprocessing is first performed, and the tool feed compensation Δr is used as input. The training data set and the test data set are allocated in a ratio of 8:2. The collected values of 5 displacement sensors and the spindle phase angle and the tool feed compensation as the label are selected to form the data set. In order to improve the convergence speed and accuracy of the GRU network, the above data are normalized, and all elements of each data are scaled to 0-1, so that the network can more efficiently extract the features of data of different orders of magnitude;
[0107] Further Fig. 9 As shown in the figure, a GRU prediction model is established. In the recurrent neural network RNN, the gated recurrent unit network GRU maintains almost the same performance as LSTM with a simpler optimized network structure. It only contains two gating units, the update gate and the reset gate. The update gate can control the information of the previous moment and decide how much past information to retain to the current time step; the reset gate decides how much past information to forget, and its value is limited to 0-1.
[0108] The calculation of the GRU network is mainly divided into the following four steps:
[0109] Update gate, its expression is:
[0110] z t =σ(W Z ·[x t ,h t-1 ]+b z )
[0111] Reset gate, its expression is:
[0112] r t =σ(W r ·[x t ,h t-1 ]+b r )
[0113] The value of the candidate hidden layer state at the current moment is expressed as:
[0114]
[0115] The hidden layer output h at time t t , whose expression is:
[0116] h t =(1-z t)×h t-1 +z t ×h t
[0117] In the above formula, x t Represents the information of the input vector at time t, W Z , W r , Represent the weights of the update gate, reset gate and candidate hidden layer, respectively, and b z 、b r 、b h represents the corresponding bias, h t-1 is the hidden layer information at time t-1, and σ represents the Sigmoid function.
[0118] Finally, the GRU prediction model is trained. The GRU network training combines the back propagation algorithm to continuously optimize the weights and biases of the network to minimize the cost function value and obtain the minimized mean square error (MSE) (loss function).
[0119] In summary, if Figure 3 As shown, in the embodiment of the present invention, in view of the situation where the actual state label information is unclear, a state diagnosis method combining signal decomposition and deep transfer learning network is proposed under the drive of simulation data, and the diagnostic knowledge of the simulation model is transferred to the actual situation to solve the state classification problem. At the same time, the GRU network is used to realize the rapid prediction of the tool feed compensation amount generated in the normal processing process to eliminate the error caused by the spindle rotation.
[0120] Reference Figure 2 , a compensation prediction system for spindle status diagnosis of CNC machine tools, comprising:
[0121] The first module 201 is used to obtain the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor;
[0122] The second module 202 is used to calculate the CNC machine tool tool feed compensation amount and the CNC machine tool spindle rotation axis trajectory coordinates according to the CNC machine tool spindle radial rotation error, the CNC machine tool spindle axis tilt error and the CNC machine tool spindle axial movement error;
[0123] The third module 203 is used to reconstruct the coordinates of the CNC machine tool spindle rotation axis trajectory by using a variational mode decomposition method to obtain the reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory;
[0124] The fourth module 204 is used to construct a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates;
[0125] The fifth module 205 is used to transfer the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis result of the CNC machine tool;
[0126] The sixth module 206 is used to predict the compensation amount of the CNC machine tool fault diagnosis result and the CNC machine tool tool feed compensation amount through the GRU prediction model to obtain the compensation prediction result of the CNC machine tool spindle state diagnosis.
[0127] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0128] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A compensation prediction method for spindle status diagnosis of CNC machine tools, characterized in that: The following steps are involved: Based on the non-contact laser displacement sensor, the spindle radial rotation error, spindle axis tilt error and spindle axial movement error of the CNC machine tool are obtained; According to the spindle radial rotation error, spindle axis tilt error and spindle axial movement error of the CNC machine tool, the CNC machine tool tool feed compensation amount and the spindle rotation axis center trajectory coordinates of the CNC machine tool are calculated; The coordinates of the rotation axis center trajectory of the CNC machine tool spindle are reconstructed by using the variational mode decomposition method to obtain the reconstructed coordinates of the rotation axis center trajectory of the CNC machine tool spindle; Construct a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates; Transfer learning is performed on the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis results of the CNC machine tool; The GRU prediction model is used to predict the fault diagnosis results of CNC machine tools and the tool feed compensation amount of CNC machine tools, and the compensation prediction results of CNC machine tool spindle status diagnosis are obtained.
2. The compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 1, characterized in that: The step of obtaining the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor specifically includes: Obtain the measured cross section of the spindle of the CNC machine tool; The spindle radial rotation error and spindle axis tilt error of the CNC machine tool of the spindle measured section are obtained in the spindle axial direction by a non-contact laser displacement sensor; The spindle axial movement error of the CNC machine tool is obtained along the spindle axis direction through a non-contact laser displacement sensor.
3. The compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 2, characterized in that: The step of calculating the tool feed compensation amount of the CNC machine tool and the coordinates of the rotation axis of the CNC machine tool spindle according to the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool specifically includes: Error separation is performed according to the spindle radial rotation error of the CNC machine tool to obtain the spindle radial error of the CNC machine tool; The tool feed compensation amount of the CNC machine tool is calculated according to the spindle radial error of the CNC machine tool and the spindle axis tilt error of the CNC machine tool, and the tool feed compensation amount of the CNC machine tool is obtained; According to the relationship between the spindle radial rotation error and the spindle radial error of the CNC machine tool, the axis trajectory coordinate calculation model is constructed; The axis trajectory coordinate calculation model is solved and calculated according to the axial movement error of the spindle of the CNC machine tool, and the axis trajectory coordinates of the spindle rotation of the CNC machine tool are obtained.
4. The compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 3 is characterized in that: The step of reconstructing the coordinates of the CNC machine tool spindle rotation axis trajectory by using the variational mode decomposition method to obtain the reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory specifically includes: Obtain the sampling time of the non-contact laser displacement sensor, and construct a two-dimensional array based on the coordinates of the CNC machine tool spindle rotation axis trajectory; The two-dimensional array is decomposed by variational mode decomposition method to obtain several IMF sub-signals; The correlation coefficient analysis method is used to obtain the correlation between several IMF sub-signals and the two-dimensional array and screen them to obtain the effective component signal of the CNC machine tool spindle rotation axis trajectory coordinates. The coordinates of the rotation axis center trajectory of the spindle of the CNC machine tool are reconstructed according to the effective component signal, and the reconstructed coordinates of the rotation axis center trajectory of the spindle of the CNC machine tool are obtained.
5. A compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 4, characterized in that: The step of constructing a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates specifically includes: Simulating and generating the axis trajectory signal of the CNC machine tool to obtain the simulated axis trajectory signal; Add random vibration signals to the axis trajectory signals generated by simulation and input them into the axis trajectory coordinate calculation model for solution calculation to obtain the axis coordinates of the simulated spindle rotation; Combined with the spindle state type of the CNC machine tool, a relationship model between the simulated spindle rotation axis coordinates and the reconstructed spindle rotation axis trajectory coordinates of the CNC machine tool is constructed.
6. The compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 5, characterized in that: The step of performing transfer learning on the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis result of the CNC machine tool specifically includes: Performing continuous wavelet transform on the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the transformed CNC machine tool spindle rotation axis trajectory coordinates; Combine the convolution layer, GN normalization layer, ReLU activation function, pooling layer and feature fusion layer to build a group normalized parallel convolutional neural network model; Based on the group normalized parallel convolutional neural network model, the transformed CNC machine tool spindle rotation axis trajectory coordinates and the simulated spindle rotation axis coordinates are extracted to obtain the fault type data of the CNC machine tool; The VGG-16 convolutional neural network model is used to diagnose the fault type data of the CNC machine tool and obtain the fault diagnosis results of the CNC machine tool.
7. A compensation prediction method for spindle status diagnosis of CNC machine tools according to claim 6, characterized in that: The step of predicting the compensation amount of the CNC machine tool fault diagnosis result and the CNC machine tool tool feed compensation amount by using the GRU prediction model to obtain the compensation prediction result of the CNC machine tool spindle state diagnosis specifically includes: Performing normalization processing on the CNC machine tool tool feed compensation amount to obtain the normalized CNC machine tool tool feed compensation amount; The GRU prediction model is used to predict the normalized CNC machine tool tool feed compensation amount and the CNC machine tool fault diagnosis result, and the compensation prediction result of the CNC machine tool spindle state diagnosis is obtained.
8. A compensation prediction system for spindle status diagnosis of CNC machine tools, characterized in that: Includes the following modules: The first module is used to obtain the spindle radial rotation error, the spindle axis tilt error and the spindle axial movement error of the CNC machine tool based on the non-contact laser displacement sensor; The second module is used to calculate the CNC machine tool tool feed compensation amount and the CNC machine tool spindle rotation axis trajectory coordinates according to the CNC machine tool spindle radial rotation error, the CNC machine tool spindle axis tilt error and the CNC machine tool spindle axial movement error; The third module is used to reconstruct the coordinates of the CNC machine tool spindle rotation axis trajectory by using the variational mode decomposition method to obtain the reconstructed coordinates of the CNC machine tool spindle rotation axis trajectory; The fourth module is used to construct a relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates; The fifth module is used to transfer the relationship model between the simulated spindle rotation axis coordinates and the reconstructed CNC machine tool spindle rotation axis trajectory coordinates to obtain the fault diagnosis result of the CNC machine tool; The sixth module is used to predict the compensation amount of the fault diagnosis results of the CNC machine tool and the tool feed compensation amount of the CNC machine tool through the GRU prediction model, and obtain the compensation prediction result of the spindle state diagnosis of the CNC machine tool.
Citation Information
Patent Citations
Cylindrical gear fully closed-loop numerical control processing system and method
CN102059418A
RTCP error calibration compensation method for five-axis laser machining equipment
CN111673292A
Numerical control machine tool, and correction method of main shaft error in numerical control machine tool
JP2014191607A
Evolutionary compensation method based on in-situ timing measurement and for spindle rotation errors of computer numerical control grinding machine
WO2024244413A1