Fast identification method of thermal error of machine tool spindle based on unscented Kalman filter algorithm

Through the rapid identification method of machine tool spindle thermal errors based on the unscented Kalman filter algorithm, using singular value matrix decomposition and adaptive adjustment, the problem of long machine tool thermal error identification time is solved, and more efficient thermal balance and accuracy improvement are achieved.

CN114021368BActive Publication Date: 2024-08-27SOUTHWEST JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology is insufficient in speed and simplicity during the thermal error identification process of the machine tool spindle, resulting in a long thermal equilibrium time and affecting the machining accuracy.

Method used

A rapid identification method for machine tool spindle thermal errors based on the unscented Kalman filter algorithm is adopted. By establishing an exponential form of thermal error model, constructing a state equation and a state vector point set, combined with singular value matrix decomposition and adaptive adjustment, thermal error prediction and averaging are carried out. Square root error calculation enables rapid identification.

Benefits of technology

The thermal equilibrium time is significantly shortened, the work efficiency and accuracy of the machine tool are improved, and the identification time is superior to that of traditional methods, shortened from several hours to about 30 minutes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021368B
    Figure CN114021368B
Patent Text Reader

Abstract

The present invention discloses a method for rapid identification of thermal errors of machine tool spindles based on an unscented Kalman filter algorithm, which includes establishing an exponential form of a thermal error model of the machine tool spindle; establishing a state equation of the unscented Kalman filter algorithm based on the thermal error model of the machine tool spindle; using the parameters of the state equation as input, constructing a state vector point set of the unscented Kalman filter algorithm based on a singular value matrix; obtaining a thermal error prediction value, and adaptively adjusting the thermal error prediction value; obtaining an actual measurement value of the thermal error, and calculating the mean absolute percentage error in combination with the adjusted thermal error prediction value; calculating the root mean square error of the actual measurement value of the thermal error and the thermal error prediction value; calculating the identification time of the three directions of the machine tool spindle, selecting the maximum value of the three identification times as the identification time of the three directions, obtaining a unified identification time, and realizing thermal error identification. The present invention realizes rapid identification of thermal errors of machine tool spindles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of thermal error identification of numerically controlled machine tools, and in particular to a method for quickly identifying thermal errors of a machine tool spindle based on an unscented Kalman filter algorithm. Background Art

[0002] Thermal error of machine tools is one of the main error sources that affect the machining accuracy of machine tools. Thermal balance is a common method to reduce the impact of thermal errors and ensure the machining accuracy of machine tools. However, thermal balance of machine tools is a relatively slow process. Reasonable control of this process, reducing the time for machine tools to reach thermal balance, and improving the working efficiency of machine tools are urgent issues that need to be solved in the precision machine tool manufacturing industry. Rapid identification of thermal errors of machine tool spindles is the basis for shortening thermal balance time and is one of the prerequisites for improving accuracy.

[0003] The existing methods need to be further improved in terms of speed and simplicity when identifying thermal errors of spindles. In practice, most methods such as genetic neural networks, grey theory, clustering fuzzy, and linear regression are used to establish thermal error models. These models require a large amount of thermal error measurement data and complex training. The entire process requires a lot of calculations to obtain subsequent thermal errors, and the training time of the thermal error model often accounts for more than half of the total identification time. Therefore, the research on the rapid identification method of machine tool spindle thermal errors can accelerate the research pace of shortening the thermal balance time of machine tools. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for quickly identifying thermal errors of a machine tool spindle based on an unscented Kalman filter algorithm, which solves the problem of long thermal error identification time in the prior art.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A method for quickly identifying thermal errors of a machine tool spindle based on an unscented Kalman filter algorithm is provided, which comprises the following steps:

[0007] S1. Establishing a thermal error model of the machine tool spindle in exponential form;

[0008] S2. Based on the thermal error model of the machine tool spindle, the state equation of the unscented Kalman filter algorithm is established;

[0009] S3, taking the parameters of the previous moment in the state equation as input, constructing the state vector point set of the unscented Kalman filter algorithm based on the singular value matrix;

[0010] S4, inputting the state vector point set into a standard unscented Kalman filter algorithm to obtain a thermal error prediction value;

[0011] S5, adaptively adjusting the thermal error prediction value;

[0012] S6, obtaining the actual measured value of the thermal error, and calculating the mean absolute percentage error in combination with the adjusted predicted value of the thermal error to obtain the delay time;

[0013] S7, calculating the root mean square error of the actual measurement value of the thermal error and the predicted value of the thermal error based on the delay time, and obtaining the identification time of the three directions of the machine tool spindle respectively;

[0014] S8. Select the maximum value among the three identification times and uniformly use it as the identification time in the three directions to obtain a unified identification time, thereby realizing thermal error identification.

[0015] Furthermore, the specific method of establishing the state equation of the unscented Kalman filter algorithm in step S2 is:

[0016] According to the formula:

[0017]

[0018] Establish the state equation of the unscented Kalman filter algorithm; where x i,t is the state vector of the i-th point at time t, w i,t-1 is the process noise of the i-th point at time t-1, δ t-1 is the thermal error of the i-th point at time t-1, α s is the thermal expansion coefficient of the material, D is a constant related to the physical properties of the material and the initial temperature, e is the natural logarithm, and β is the coefficient to be determined.

[0019] Furthermore, the specific method for constructing the state vector point set of the unscented Kalman filter algorithm in step S3 is:

[0020] According to the formula:

[0021]

[0022] Construct the state vector point set x of the unscented Kalman filter algorithm i,t-1 , whose expression is where δ i,t-1 is the thermal error of the ith point at time t-1, λ i,t-1 is the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, is the optimal estimate of the state quantity at time t-1, and its expression is is the optimal estimate of the thermal error of the i-th point at time t-1, is the optimal estimate of the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, n is a positive integer, γ is the scaling adjustment coefficient, U i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, Si,t-1 is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, U n-i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, S n-i,t-1 It is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, where m1 and m2 are both constants.

[0023] Furthermore, the specific method of step S5 is:

[0024] S5-1. Calculate the residual ρ between the actual measured value of thermal error and the predicted value of thermal error t ;

[0025] S5-2, obtain the thermal error prior prediction value, and calculate the residual r between the actual thermal error measurement value and the thermal error prior prediction value t ;

[0026] S5-3. Determine the residual ρ t Is the absolute value of less than or equal to the positive threshold? If so, do not process and go to step S6; otherwise, go to step S5-4;

[0027] S5-4. Determine the residual ρ t Is it greater than the positive threshold? If so, proceed to step S5-5; otherwise, proceed to step S5-8;

[0028] S5-5. Determine the residual r t Is it less than zero? If so, go to step S5-6; otherwise, go to step S5-7;

[0029] S5-6, increasing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increasing the covariance of the actual measured value of the thermal error at time t, decreasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6;

[0030] S5-7, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6;

[0031] S5-8. Determine the residual r t Is it less than zero? If so, go to step S5-9; otherwise, go to step S5-10;

[0032] S5-9, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, reducing the optimal estimate of the state vector at time t, obtaining a reduced thermal error prediction value, and proceeding to step S6;

[0033] S5-10, increase the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increase the covariance of the actual measured value of the thermal error at time t, reduce the Kalman gain at time t, reduce the optimal estimate of the state vector at time t, obtain a reduced thermal error prediction value, and enter step S6.

[0034] Further:

[0035] The covariance R of the actual measured value of the thermal error in step S5 update The adjusted results are:

[0036] R update =h j R

[0037] Wherein h is the adjustment coefficient, j is the number of adjustments, and R is the covariance of the actual measured value of the thermal error before the first adjustment; when the covariance of the actual measured value of the thermal error is increased, h is greater than 1, and when the covariance of the actual measured value of the thermal error is reduced, h is greater than 0 and less than 1.

[0038] Furthermore, the specific method of step S6 is:

[0039] S6-1. Obtain the actual measured value of thermal error and use the formula:

[0040]

[0041] Get the mean absolute percentage error MAPE; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and k is a positive integer;

[0042] S6-2. Continue to calculate the mean absolute percentage error until the mean absolute percentage error is less than the percentage parameter threshold at a certain moment, and use this moment as the delay moment.

[0043] Furthermore, the specific method of step S7 is:

[0044] S7-1, starting from the delay time K, and according to the formula:

[0045]

[0046] The root mean square error of the actual measured value of the thermal error and the predicted value of the thermal error is calculated to obtain the root mean square error β; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and M is the total number of measurements;

[0047] S7-2. Find a moment when the root mean square error is kept to the minimum value, and use this moment as the identification time.

[0048] The beneficial effects of the present invention are:

[0049] 1. Based on the problems of matrix decomposition non-positive definiteness and prediction divergence in the standard unscented Kalman filter algorithm, the singular value matrix decomposition method and adaptive adjustment method are added to improve the standard unscented Kalman filter algorithm to obtain a higher precision unscented Kalman filter algorithm;

[0050] 2. Analyze the thermal modal theory, heat conduction theory and thermal mechanism of machine tools, establish an exponential form of machine tool spindle thermal error model, and integrate it with the improved unscented Kalman filter algorithm to facilitate subsequent adaptive adjustment;

[0051] 3. Design delay criteria: Use the delay time calculated based on the mean absolute percentage error and use it for delay processing. Design time judgment criteria: Calculate the identification time of the system after delay based on the root mean square error, and further calculate the identification time of the three directions of the tool spindle. Select the maximum time as the unified identification time in the three directions to achieve rapid thermal error identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of the present invention;

[0053] Figure 2 A schematic diagram of the root mean square error of finding the identification time during the delay time;

[0054] Figure 3 Find the root mean square error diagram of the shortest recognition time in the three directions of X, Y, and Z of the present invention;

[0055] Figure 4 This is a diagram of the thermal error identification result of the main axis X direction of the present invention;

[0056] Figure 5 This is a diagram of the thermal error identification result of the main axis Y direction of the present invention;

[0057] Figure 6 This is a diagram of the thermal error identification results of the spindle Z direction of the present invention. DETAILED DESCRIPTION

[0058] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0059] like Figure 1 As shown, the method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm comprises the following steps:

[0060] S1. Establishing a thermal error model of the machine tool spindle in exponential form;

[0061] S2. Based on the thermal error model of the machine tool spindle, the state equation of the unscented Kalman filter algorithm is established;

[0062] S3, taking the parameters of the previous moment in the state equation as input, constructing the state vector point set of the unscented Kalman filter algorithm based on the singular value matrix;

[0063] S4, inputting the state vector point set into a standard unscented Kalman filter algorithm to obtain a thermal error prediction value;

[0064] S5, adaptively adjusting the thermal error prediction value;

[0065] S6, obtaining the actual measured value of the thermal error, and calculating the mean absolute percentage error in combination with the adjusted predicted value of the thermal error to obtain the delay time;

[0066] S7, calculating the root mean square error of the actual measurement value of the thermal error and the predicted value of the thermal error based on the delay time, and obtaining the identification time of the three directions of the machine tool spindle respectively;

[0067] S8. Select the maximum value among the three identification times and uniformly use it as the identification time in the three directions to obtain a unified identification time, thereby realizing thermal error identification.

[0068] The specific method of establishing the state equation of the unscented Kalman filter algorithm in step S2 is:

[0069] According to the formula:

[0070]

[0071] Establish the state equation of the unscented Kalman filter algorithm; where x i,t is the state vector of the i-th point at time t, w i,t-1 is the process noise of the i-th point at time t-1, δ t-1 is the thermal error of the i-th point at time t-1, α sis the thermal expansion coefficient of the material, D is a constant related to the physical properties of the material and the initial temperature, e is the natural logarithm, and β is the coefficient to be determined.

[0072] The specific method for constructing the state vector point set of the unscented Kalman filter algorithm in step S3 is:

[0073] According to the formula:

[0074]

[0075] Construct the state vector point set x of the unscented Kalman filter algorithm i,t-1 , whose expression is where δ i,t-1 is the thermal error of the ith point at time t-1, λ i,t-1 is the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, is the optimal estimate of the state quantity at time t-1, and its expression is is the optimal estimate of the thermal error of the i-th point at time t-1, is the optimal estimate of the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, n is a positive integer, γ is the scaling adjustment coefficient, U i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, S i,t-1 is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, U n-i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, S n-i,t-1 It is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, where m1 and m2 are both constants.

[0076] The specific method of step S5 is:

[0077] S5-1. Calculate the residual ρ between the actual measured value of thermal error and the predicted value of thermal error t ;

[0078] S5-2, obtain the thermal error prior prediction value, and calculate the residual r between the actual thermal error measurement value and the thermal error prior prediction value t ;

[0079] S5-3. Determine the residual ρ t Is the absolute value of less than or equal to the positive threshold? If so, do not process and go to step S6; otherwise, go to step S5-4;

[0080] S5-4. Determine the residual ρ t Is it greater than the positive threshold? If so, proceed to step S5-5; otherwise, proceed to step S5-8;

[0081] S5-5. Determine the residual r t Is it less than zero? If so, go to step S5-6; otherwise, go to step S5-7;

[0082] S5-6, increasing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increasing the covariance of the actual measured value of the thermal error at time t, decreasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6;

[0083] S5-7, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6;

[0084] S5-8. Determine the residual r t Is it less than zero? If so, go to step S5-9; otherwise, go to step S5-10;

[0085] S5-9, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, reducing the optimal estimate of the state vector at time t, obtaining a reduced thermal error prediction value, and proceeding to step S6;

[0086] S5-10, increase the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increase the covariance of the actual measured value of the thermal error at time t, reduce the Kalman gain at time t, reduce the optimal estimate of the state vector at time t, obtain a reduced thermal error prediction value, and enter step S6.

[0087] The covariance R of the actual measured value of the thermal error in step S5 update The adjusted results are:

[0088] R update =h j R

[0089] Wherein h is the adjustment coefficient, j is the number of adjustments, and R is the covariance of the actual measured value of the thermal error before the first adjustment; when the covariance of the actual measured value of the thermal error is increased, h is greater than 1, and when the covariance of the actual measured value of the thermal error is reduced, h is greater than 0 and less than 1.

[0090] The specific method of step S6 is:

[0091] S6-1. Obtain the actual measured value of thermal error and use the formula:

[0092]

[0093] Get the mean absolute percentage error MAPE; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and k is a positive integer;

[0094] S6-2. Continue to calculate the mean absolute percentage error until the mean absolute percentage error is less than the percentage parameter threshold at a certain moment, and use this moment as the delay moment.

[0095] The specific method of step S7 is:

[0096] S7-1, starting from the delay time K, and according to the formula:

[0097]

[0098] The root mean square error of the actual measured value of the thermal error and the predicted value of the thermal error is calculated to obtain the root mean square error β; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and M is the total number of measurements;

[0099] S7-2. Find a moment when the root mean square error is kept to the minimum value, and use this moment as the identification time.

[0100] The exponential form of the machine tool spindle thermal error model in step S2 is:

[0101]

[0102] That is, part of the state equation of the unscented Kalman filter algorithm corresponding to the step; where δ i,t is the thermal error of the i-th point at time t.

[0103] After obtaining the unified identification time, the thermal error in the subsequent time is predicted based on the thermal error in this identification time: when the unified identification time is 30 minutes, there are actual thermal error measurements within 30 minutes. During these 30 minutes, the model parameters are updated based on these actual measured thermal error values. After 30 minutes, there are no actual measurements, and the model updated in the first 30 minutes is used to predict the thermal error in the subsequent time period, so as to achieve rapid prediction of thermal errors and then rapid identification of thermal errors. This is equivalent to only doing a 30-minute experiment, and then predicting the values ​​after 30 minutes of identification time based on these actual measured values ​​within the identification time.

[0104] like Figure 2 As shown, the figure proceeds to L in Figure di+3 At time , the root mean square error tends to be stable and is the minimum value in the stable area, then L i+3 Moments can be used to identify time.

[0105] like Figure 3 As shown, the X-axis identification time is 34 minutes, the Y-axis identification time is 22 minutes, and the Z-axis identification time is 45 minutes. The thermal error identification time of the system is 45 minutes, which is better than the three to four hours of traditional technology.

[0106] like Figures 4 to 6 As shown, the thermal error prediction results of the machine tool spindle X, Y, and Z directions at the identification time and the residual results between the actual measured values ​​are shown.

[0107] Based on the problems of matrix decomposition non-positive definiteness and prediction divergence existing in the standard unscented Kalman filter algorithm, the present invention adds a singular value matrix decomposition method and an adaptive adjustment method to improve the standard unscented Kalman filter algorithm, thereby obtaining an unscented Kalman filter algorithm with higher accuracy.

[0108] The thermal modal theory, heat conduction theory and machine tool thermal mechanism are analyzed to establish an exponential machine tool spindle thermal error model, which is then integrated with the improved unscented Kalman filter algorithm to facilitate subsequent adaptive adjustment.

[0109] Design delay criteria: Use the delay time calculated based on the mean absolute percentage error and use it for delay processing. Design time judgment criteria: Calculate the identification time of the system after delay based on the root mean square error, and further calculate the identification time of the three directions of the tool spindle. Select the maximum time as the unified identification time in the three directions to achieve rapid thermal error identification.

Claims

1. A method for rapid identification of thermal error of machine tool spindle based on unscented Kalman filter algorithm, characterized in that: The following steps are involved: S1. Establishing a thermal error model of the machine tool spindle in exponential form; S2. Based on the thermal error model of the machine tool spindle, the state equation of the unscented Kalman filter algorithm is established; S3, taking the parameters of the previous moment in the state equation as input, constructing the state vector point set of the unscented Kalman filter algorithm based on the singular value matrix; S4, inputting the state vector point set into a standard unscented Kalman filter algorithm to obtain a thermal error prediction value; S5, adaptively adjusting the thermal error prediction value; S6, obtaining the actual measured value of the thermal error, and calculating the mean absolute percentage error in combination with the adjusted predicted value of the thermal error to obtain the delay time; S7, calculating the root mean square error of the actual measurement value of the thermal error and the predicted value of the thermal error based on the delay time, and obtaining the identification time of the three directions of the machine tool spindle respectively; S8. Select the maximum value among the three identification times and uniformly use it as the identification time in the three directions to obtain a unified identification time, thereby realizing thermal error identification.

2. The method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm according to claim 1 is characterized in that: The specific method of establishing the state equation of the unscented Kalman filter algorithm in step S2 is: According to the formula: Establish the state equation of the unscented Kalman filter algorithm; where x i,t is the state vector of the i-th point at time t, w i,t-1 is the process noise of the i-th point at time t-1, δ t-1 is the thermal error of the i-th point at time t-1, α s is the thermal expansion coefficient of the material, D is a constant related to the physical properties of the material and the initial temperature, e is the natural logarithm, and β is the coefficient to be determined.

3. The method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm according to claim 1 is characterized in that: The specific method for constructing the state vector point set of the unscented Kalman filter algorithm in step S3 is: According to the formula: Construct the state vector point set x of the unscented Kalman filter algorithm i,t-1 , whose expression is where δ i,t-1 is the thermal error of the ith point at time t-1, λ i,t-1 is the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, is the optimal estimate of the state quantity at time t-1, and its expression is is the optimal estimate of the thermal error of the i-th point at time t-1, is the optimal estimate of the constant related to the comprehensive physical properties of the thermal system at the i-th point at time t-1, n is a positive integer, γ is the scaling adjustment coefficient, U i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, S i,t-1 is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, U n-i,t-1 is the first orthogonal matrix of the i-th point at time t-1, with a size of m1×m1, S n-i,t-1 It is the diagonal matrix of the i-th point at time t-1, with a size of (m1-1)×m2, where m1 and m2 are both constants.

4. The method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm according to claim 1, characterized in that: The specific method of step S5 is: S5-1. Calculate the residual ρ between the actual measured value of thermal error and the predicted value of thermal error t ; S5-2, obtain the thermal error prior prediction value, and calculate the residual r between the actual thermal error measurement value and the thermal error prior prediction value t ; S5-3. Determine the residual ρ t Is the absolute value of less than or equal to the positive threshold? If so, do not process and go to step S6; otherwise, go to step S5-4; S5-4. Determine the residual ρ t Is it greater than the positive threshold? If so, proceed to step S5-5; otherwise, proceed to step S5-8; S5-5. Determine the residual r t Is it less than zero? If so, go to step S5-6; otherwise, go to step S5-7; S5-6, increasing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increasing the covariance of the actual measured value of the thermal error at time t, decreasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6; S5-7, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, increasing the optimal estimate of the state vector at time t, obtaining an increased thermal error prediction value, and proceeding to step S6; S5-8. Determine the residual r t Is it less than zero? If so, go to step S5-9; otherwise, go to step S5-10; S5-9, reducing the R covariance matrix of the standard unscented Kalman filter algorithm at time t, reducing the covariance of the actual measured value of the thermal error at time t, increasing the Kalman gain at time t, reducing the optimal estimate of the state vector at time t, obtaining a reduced thermal error prediction value, and proceeding to step S6; S5-10, increase the R covariance matrix of the standard unscented Kalman filter algorithm at time t, increase the covariance of the actual measured value of the thermal error at time t, reduce the Kalman gain at time t, reduce the optimal estimate of the state vector at time t, obtain a reduced thermal error prediction value, and enter step S6.

5. The method for rapid identification of thermal errors of machine tool spindles based on unscented Kalman filter algorithm according to claim 4 is characterized in that: The covariance R of the actual measured value of the thermal error in step S5 update The adjusted results are: R update =h j R Wherein h is the adjustment coefficient, j is the number of adjustments, and R is the covariance of the actual measured value of the thermal error before the first adjustment; when the covariance of the actual measured value of the thermal error is increased, h is greater than 1, and when the covariance of the actual measured value of the thermal error is reduced, h is greater than 0 and less than 1.

6. The method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm according to claim 1, characterized in that: The specific method of step S6 is: S6-1. Obtain the actual measured value of thermal error and use the formula: Get the mean absolute percentage error MAPE; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and k is a positive integer; S6-2. Continue to calculate the mean absolute percentage error until the mean absolute percentage error is less than the percentage parameter threshold at a certain moment, and use this moment as the delay moment.

7. The method for rapid identification of thermal error of a machine tool spindle based on an unscented Kalman filter algorithm according to claim 1, characterized in that: The specific method of step S7 is: S7-1, starting from the delay time K, and according to the formula: The root mean square error of the actual measured value of the thermal error and the predicted value of the thermal error is calculated to obtain the root mean square error β; where y i (t) is the adjusted thermal error prediction value of the i-th point at time t, a i (t) is the actual measured value of the thermal error at the i-th point at time t, and M is the total number of measurements; S7-2. Find a moment when the root mean square error is kept to the minimum value, and use this moment as the identification time.