Adaptive optimization method for machining error compensation of five-axis nc machine tool
By using real-time sensor networks and multi-dimensional error compensation technology, the problem of multi-dimensional error processing in five-axis CNC machine tools has been solved, achieving high-precision and high-efficiency machining results, adapting to complex working conditions and diverse tasks, and reducing production costs.
Patent Information
- Application Number
- CN202510859084.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-06-25
AI Technical Summary
Traditional error compensation methods for five-axis CNC machine tools are insufficient in terms of accuracy, efficiency, and adaptability. They cannot effectively cope with multi-dimensional coupled errors, lack real-time performance, have limited vibration control effects, and lack intelligent learning and dynamic update functions, resulting in low machining quality and efficiency.
A real-time sensor network is used to collect various error data. Combined with a multidimensional nonlinear error compensation model and a Bayesian network, real-time error tracing and dynamic compensation are performed through inverse error propagation algorithm and adaptive learning algorithm. Error distribution is processed in partitions, and the compensation strategy is optimized through a closed-loop feedback mechanism. The system is integrated into the CNC system to adjust tool posture and machining path.
It significantly improves processing accuracy by 20%-50%, reduces residual error by more than 30%, increases processing efficiency by 15%-30%, reduces rework and scrap rates, enhances system stability and adaptability, and meets the needs of complex high-end manufacturing.
Smart Images

Figure CN120540201B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of five-axis CNC machine tool machining technology, specifically relating to an adaptive optimization method for error compensation in five-axis CNC machine tool machining. Background Technology
[0002] Five-axis CNC machine tools are widely used in high-end manufacturing fields such as aerospace, automotive manufacturing, mold making, and medical devices due to their multi-axis linkage machining capabilities and high precision. However, with the increasing demand for high-precision machining of complex parts in the manufacturing industry, the application of machine tools in machining complex curved surfaces, large-sized parts, and high-hardness materials faces severe challenges. Furthermore, traditional error compensation methods have many shortcomings in terms of accuracy, efficiency, and adaptability.
[0003] Error sources are diverse and complex: Five-axis CNC machine tools are affected by a combination of errors during machining, including geometric errors (guide rail straightness deviation, rotary axis angle errors, etc.), thermal errors (thermal expansion of the spindle and key machine tool components), dynamic errors (vibration, cutting force fluctuations), and the coupling effects of these errors. Traditional error compensation methods typically use a single model to handle various errors, which is insufficient to effectively address multi-dimensional coupled errors, resulting in machining accuracy that fails to meet the requirements of high-end parts.
[0004] Insufficient real-time capability: Traditional methods often rely on offline error modeling and compensation, separating error analysis and compensation from the machining process, making it impossible to respond in real time to dynamically changing errors during machining (such as temperature changes and dynamic vibrations). This lag-based compensation method is poorly adaptable to complex machining tasks (such as high-speed cutting or machining of thin-walled parts), easily leading to error accumulation and a decline in machining quality.
[0005] Insufficient partitioning and path optimization: Existing methods typically process the error distribution in the workspace based on a global static model, ignoring the non-uniformity of error distribution in different spatial regions. This lack of path optimization and dynamic compensation capabilities prevents the full utilization of low-error regions, resulting in low processing path efficiency and limited error control effectiveness.
[0006] Vibration and dynamic error control have limited effectiveness: Vibration is a common and significant source of dynamic error in machining processes. Traditional passive vibration control (such as vibration damping devices) is difficult to effectively adapt to different working conditions, especially when machining high-speed or thin-walled parts. Vibration-induced trajectory deviations often lead to decreased surface quality and part shape deviations, and existing methods have limited compensation effects for these issues.
[0007] Insufficient feedback and optimization capabilities: Traditional error compensation methods are mostly open-loop control, which cannot optimize the model based on the actual error data after processing, and the compensation accuracy decreases over time. They also lack intelligent learning and dynamic update functions, making it difficult to adapt to complex working conditions or multi-task processing needs. Summary of the Invention
[0008] Therefore, the purpose of this invention is to provide an adaptive optimization method for machining error compensation of five-axis CNC machine tools. This invention significantly improves the machining accuracy, efficiency and adaptability of five-axis CNC machine tools through real-time, multi-dimensional and intelligent error compensation technology, reduces production costs and improves product quality, making them more competitive and economically beneficial in complex and high-end manufacturing fields.
[0009] To address the aforementioned technical problems, according to one aspect of the present invention, the present invention provides the following technical solution:
[0010] A multidimensional real-time coupling error compensation method for five-axis CNC machine tools includes the following steps:
[0011] (1) Real-time acquisition of geometric error, thermal error, dynamic error and coupling error data of five-axis machine tools using a sensor network deployed on key components of the machine tool;
[0012] (2) By constructing a five-axis linkage nonlinear error compensation model, the reverse error propagation algorithm is used to trace the source of errors generated during the machining process, and the compensation amount is dynamically optimized according to the source of the error.
[0013] (3) Establish the causal relationship and probability distribution model of each error source based on Bayesian network, update the joint distribution of error sources using real-time sensor data, predict the comprehensive error through Bayesian inference, and adjust the motion parameters of each axis.
[0014] (4) To address the disturbance characteristics of the processing trajectory, an adaptive learning algorithm is used to learn the trajectory disturbance pattern in real time and dynamically update the error compensation model.
[0015] (5) Divide the machine tool workspace into zones, mark the error distribution of different zones, and combine the zone compensation model and the five-axis linkage kinematic model to call the corresponding compensation parameters for each motion zone in the machining path in real time.
[0016] (6) Integrate the above error compensation strategy into the CNC system, and adjust the tool posture, feed speed and machining path through the machine tool controller to realize dynamic compensation of multi-dimensional real-time coupling error.
[0017] The sensor network includes:
[0018] A laser interferometer and a linear displacement sensor are respectively positioned on the machine tool guide rail and the rotary axis support to collect geometric error data.
[0019] Thermocouples and infrared thermal imagers are respectively arranged on the spindle, motor and machine tool support to monitor the temperature changes of key machine tool components and collect thermal error data.
[0020] Accelerometers and vibration sensors are installed on tool holders and machine tool slides to detect dynamic disturbance errors.
[0021] An angle encoder, placed on the rotary table and the oscillating head shaft, is used to collect angle deviation data in multi-axis linkage motion;
[0022] The real-time data acquisition system uses EtherCAT or CAN bus communication protocols to connect the aforementioned sensors and transmit the acquired data to the machine tool controller.
[0023] The data fusion module, embedded in the machine tool controller, performs noise reduction, correction, and classification storage on various types of error data collected based on the Kalman filter algorithm;
[0024] The error analysis module calculates the trends of geometric error, thermal error, dynamic error, and coupling error of the five-axis machine tool based on sensor data, and inputs the error results into the motion compensation module of the controller.
[0025] The implementation method of step (2) is as follows:
[0026] 1) Noise reduction and preprocessing of the acquired data are performed using the Kalman filter algorithm;
[0027] 2) Construct a five-axis linkage full-dimensional nonlinear error model, use sparse tensor decomposition technology to reduce the dimensionality of the high-dimensional error tensor, and extract the main error coupling relationships;
[0028] 3) By constructing a differentiable error propagation function, the reverse error propagation algorithm is used to conduct source analysis of processing errors, and adaptive weight allocation is performed according to the contribution rate of error sources to prioritize the compensation of key errors;
[0029] 4) Utilize variational autoencoders (VAEs) to generate multiple sets of error compensation strategy samples, and optimize the initial compensation values through deep learning of historical processing data;
[0030] 5) Use a genetic algorithm (GA) to globally optimize the compensation strategy, and use the machining accuracy after error compensation as the fitness function to dynamically adjust the compensation amount;
[0031] 6) The optimized compensation amount is input into the machine tool controller in real time through the edge computing module to adjust the tool posture, feed rate and five-axis linkage motion parameters to achieve dynamic compensation of machining errors.
[0032] The implementation method of step (3) is as follows:
[0033] 1) Based on the collected data, the Granger causality test method is used to identify the causal relationship between different error sources, and the greedy algorithm is used to generate the initial topology of the Bayesian network.
[0034] 2) The variational inference algorithm is used to optimize the joint probability distribution model of the Bayesian network in order to construct the causal relationship and joint probability distribution of each error source;
[0035] 3) Update the node states in the Bayesian network using real-time sensor data, and calculate the comprehensive error of the five-axis CNC machine tool under specific machining conditions based on Bayesian inference;
[0036] 4) Based on the Bayesian inference results, dynamically adjust the tool pose, rotation angle, and five-axis linkage motion parameters to achieve real-time compensation for machining errors;
[0037] 5) The compensation results are updated to the Bayesian network model through the feedback loop embedded in the machine tool controller, and the causal relationship model and error compensation strategy are optimized by combining multi-task learning.
[0038] The implementation method of step (4) is as follows:
[0039] 1) The Empirical Mode Decomposition (EMD) technique is used to decompose the disturbance signal into several intrinsic mode functions (IMFs), and wavelet transform is combined to extract the characteristic frequencies and amplitude variation trends of the disturbance signal;
[0040] 2) Construct a trajectory perturbation pattern recognition model based on a Long Short-Term Memory (LSTM) network, input the extracted perturbation features into the model, and dynamically update the model parameters through an online learning mechanism to adapt to changes in real-time processing conditions;
[0041] 3) Based on the disturbance pattern recognition results, the five-axis linkage motion parameters are optimized and adjusted using reinforcement learning algorithms. For compensable disturbances, the tool posture and motion path are optimized, and for difficult-to-compensate disturbances, the active vibration suppression function is combined to reduce their impact.
[0042] 4) Through a closed-loop feedback mechanism, the compensated processing trajectory data is input into the disturbance pattern recognition model in real time, further improving the model's adaptability to complex disturbance conditions.
[0043] The implementation method of step (5) is as follows:
[0044] 1) Based on the density clustering algorithm (DBSCAN), cluster analysis is performed on the error data in the workspace of the five-axis machine tool, dividing the workspace into multiple partitions with consistent error characteristics;
[0045] 2) The Voronoi diagram optimization algorithm is used to adjust the partition boundaries to smooth the error transition area between partitions;
[0046] 3) Construct an error distribution model within each partition using the local multinomial regression method, and dynamically update the partition error model by combining real-time sensor data;
[0047] 4) Based on the current position of the tool and the machining path, call the error compensation parameters of the corresponding partition, and smooth the error compensation transition at the partition boundary using the Bézier curve interpolation algorithm;
[0048] (5) For cross-partition processing paths, a dynamic path planning algorithm is used to optimize the processing path, and a deep reinforcement learning algorithm is combined to dynamically adjust the error compensation strategy between partitions.
[0049] The implementation method of step (6) is as follows:
[0050] 1) Embed a dynamic compensation module in the CNC system of the machine tool. This module realizes real-time control of error compensation through a three-layer structure of perception layer, decision layer and execution layer;
[0051] 2) Using fuzzy logic control algorithm, fuzzy rules are generated based on the sources and magnitudes of geometric error, thermal error, dynamic error and coupling error, and the final error compensation amount is calculated through dynamic weighted fusion method;
[0052] 3) The machining path is dynamically optimized through reinforcement learning algorithms to avoid the machining path passing through areas with significant errors. Combined with the motion parameter adaptive adjustment function, the feed rate and tool posture are adjusted in real time.
[0053] 4) Integrates active vibration suppression function, uses predictive control algorithm to adjust feed rhythm, and reduces dynamic error accumulation;
[0054] 5) Through a closed-loop feedback mechanism, the actual error value after processing is fed back to the dynamic compensation module to update the fuzzy rules and compensation strategy, and the compensation accuracy is optimized through the real-time evaluation module.
[0055] Compared with the prior art, the beneficial effects of the present invention are:
[0056] This invention addresses multi-dimensional real-time coupled error compensation for five-axis CNC machine tools, demonstrating significant technical, operational, and economic advantages compared to traditional error processing methods.
[0057] 1. Technological advantages
[0058] (1) Real-time Dynamic Compensation: Traditional error compensation typically relies on static error models and offline data analysis. Error compensation lags behind the machining process and is difficult to cope with dynamic errors (such as vibration and thermal deformation) and real-time changes in working conditions. This invention collects various error data through a real-time sensor network and combines them with a dynamic error compensation model (such as nonlinear error compensation, Bayesian inference, and disturbance pattern recognition) to adjust the tool posture, feed rate, and machining path in real time during machining. This significantly improves the error response speed, reducing the compensation time from the traditional minutes to the milliseconds. Machining accuracy is improved by 20%-50%, meeting the requirements for machining high-precision complex parts.
[0059] (2) Multidimensional Error Coupling Processing: Traditional methods typically handle geometric, thermal, and dynamic errors separately, failing to adequately consider the coupling relationships between these errors, resulting in limited compensation effectiveness. This invention utilizes error sourcing and backpropagation algorithms to analyze error coupling relationships, combining Bayesian networks and partitioning modeling methods to dynamically adjust the compensation amounts for multiple error sources, thus resolving the complex problems caused by error superposition. It accurately compensates for the comprehensive impact of multidimensional error superposition, reducing error residuals by more than 30%. It also reduces the mutual amplification effect of error sources, improving overall compensation efficiency.
[0060] (3) Vibration Suppression and Trajectory Disturbance Optimization: In traditional methods, vibration problems are usually addressed passively by reducing cutting speed or adding vibration damping devices, but these measures may sacrifice machining efficiency or increase costs. This invention uses real-time vibration pattern recognition (LSTM model) and active vibration suppression to dynamically adjust the machining rhythm and tool path, combined with reinforcement learning algorithms to optimize the compensation strategy. This effectively reduces the impact of vibration on machining accuracy and surface quality, improving surface roughness by 15%-30%. Machining stability under high-speed cutting is significantly improved, reducing the probability of deformation in thin-walled parts.
[0061] (4) Closed-loop feedback and model optimization: Traditional methods often employ open-loop control, where compensation results cannot be fed back to the error model, making continuous accuracy optimization difficult. This invention introduces a closed-loop feedback mechanism, using the actual error data after processing for model optimization, and continuously improving the compensation strategy in conjunction with deep learning algorithms. This allows processing accuracy to gradually improve in repetitive tasks, making the error compensation model more robust. Long-term system stability and adaptability are enhanced.
[0062] 2. Operational advantages
[0063] (1) High degree of intelligence and automation: Traditional methods rely on manual intervention to complete error correction and processing parameter adjustment, which requires high operator skills and is prone to problems such as untimely adjustment or insufficient error compensation. This invention achieves full-process automation from data acquisition to compensation execution through sensor networks, automatic modeling, and real-time dynamic compensation technology. It significantly reduces operational complexity and lowers the skill requirements for personnel by more than 30%. It improves the consistency and repeatability of the processing and is suitable for mass production.
[0064] (2) Partition Modeling and Path Optimization: Traditional methods use a single error model to process the entire workspace, ignoring the regional differences in error distribution within the space, leading to insufficient or excessive local compensation. This invention uses a density clustering algorithm to partition the error distribution, combined with dynamic path planning to avoid high-error areas, while smoothing the partition boundaries. This makes the machining path more intelligent, with continuously changing compensation parameters, eliminating abrupt error changes at path intersections. Machining efficiency is improved by 15%-30%, and path optimization saves cutting time.
[0065] 3. Application and Economic Advantages
[0066] (1) Adapting to Complex Working Conditions and Diverse Tasks: Traditional methods are only applicable to single or fixed working conditions and cannot quickly adapt to diverse machining tasks such as complex curved surfaces, large-sized parts, and high-hardness materials. This invention automatically adjusts the compensation strategy to adapt to diverse working conditions and task requirements through a dynamic compensation model and adaptive learning algorithm. It meets the needs of multiple fields such as complex curved surface machining (e.g., turbine blades), high-hardness mold cavity machining, and large-sized frame part machining. This expands the enterprise's order coverage and enhances its market competitiveness.
[0067] (2) Improved production efficiency: Traditional error compensation methods require pausing processing to adjust tools or paths, which is time-consuming, labor-intensive, and reduces processing efficiency. This invention's dynamic real-time compensation process does not require interruption of processing, shortening process time through automation and intelligent operation. Processing cycles are shortened by 15%-40%, significantly improving production efficiency. Equipment utilization is increased by more than 20%.
[0068] (3) Reduced production costs: Traditional methods result in high rework and scrap rates, increasing material waste and additional process costs. This invention significantly reduces rework and scrap rates through precise error compensation, reducing material waste and labor costs. Rework rates are reduced by 30%-50%, saving material and processing costs. Long-term operation reduces equipment maintenance costs and extends machine tool lifespan by 15%-20%.
[0069] (4) Improved Product Quality: Traditional methods are limited by error control capabilities, making it difficult to meet the stringent requirements of the high-end market. This invention's precise multi-dimensional error compensation ensures high standards in dimensional accuracy, surface roughness, and consistency. This is particularly evident in high-precision fields such as aerospace and medical devices, where product quality is significantly improved. During mass production, part consistency is enhanced, and the defect rate is reduced by 50%.
[0070] Summarize
[0071] Compared with traditional methods, this invention significantly improves the machining accuracy, efficiency and adaptability of five-axis CNC machine tools through real-time, multi-dimensional and intelligent error compensation technology, reduces production costs and improves product quality, making them more competitive and economically beneficial in complex and high-end manufacturing fields. Attached Figure Description
[0072] To more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and detailed embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0073] Figure 1 This is a schematic diagram of the method flow of the present invention. Detailed Implementation
[0074] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0075] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0076] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0077] See Figure 1 A multi-dimensional real-time coupling error compensation method for five-axis CNC machine tools includes the following steps:
[0078] (1) Real-time acquisition of geometric error, thermal error, dynamic error and coupling error data of five-axis machine tools using a sensor network deployed on key components of the machine tool;
[0079] The sensor network includes:
[0080] Laser interferometers and linear displacement sensors are used. The laser interferometer is installed along the linear guideways, rotary axis support structures, and key positioning points of the machine tool. It is used for high-precision measurement of the machine tool guideway motion errors (such as straightness, perpendicularity, parallelism, etc.) and the positioning accuracy deviation of the rotary axes. It achieves nanometer-level precision displacement and geometric deviation measurement through the principle of laser interferometry. High-precision laser interferometers from companies such as Shanghai Precision Instruments, Wuhan Zhongke Tianqi, and Shenzhen Haide Optics can be directly used. The linear displacement sensor is arranged at key locations between the machine tool's moving parts (such as slides and spindle boxes) and the support structure. It collects displacement deviation data generated by each axis of the machine tool during movement, acquiring micrometer-level displacement error data in real time. This provides basic data for geometric error modeling. High-precision optical encoders, magnetic encoders, and other displacement sensors produced by companies such as Xi'an Sente and Beijing Times can be directly used.
[0081] Thermocouples and infrared thermal imagers are used for various purposes. Thermocouples are installed on critical components susceptible to temperature changes, such as spindles, motors, and machine tool supports, to monitor temperature variations and structural deformation caused by heat diffusion, providing thermal error data. They offer high precision, low latency, and temperature gradient detection capabilities, and many mature products are available on the market. Infrared thermal imagers are fixed at appropriate viewing angles to monitor the temperature distribution and local hotspots of the entire machine tool, providing overall and local thermal distribution maps, identifying temperature field distribution and its changing trends. They offer non-contact measurement, high resolution, and real-time output of thermal imaging data. Industrial-grade infrared thermal imagers from companies such as Hikvision, Shanghai Tektronix, and Shenzhen Raytron Technology are available.
[0082] Accelerometers and vibration sensors are installed on the tool holder and machine tool slide to detect dynamic disturbance errors. Accelerometers, mounted on the tool holder, machine tool slide, and other moving parts, collect acceleration data during machine tool operation, reflecting the vibration characteristics and dynamic disturbance errors of machine tool components. They offer high dynamic response and can capture vibration signals caused by high-speed machining. High-sensitivity accelerometers from companies such as Beijing Aerospace Measurement & Control, Suzhou Xunpeng, and Nantong Zhenhua can be used. Vibration sensors, installed at key locations on the spindle and tool holder, monitor vibration signals during machine tool operation, providing dynamic error data. They offer high resolution and can identify low-frequency and high-frequency vibration components. Piezoelectric vibration sensors and MEMS vibration sensors from companies such as Shenyang Siasun and Guangzhou Sick can be used.
[0083] Angle encoders are installed on multi-axis linkage parts such as rotary tables and oscillating shafts to collect angular deviation data of the rotary and oscillating axes, analyze angular errors in five-axis linkage motion, and provide high-resolution and high-precision real-time angle data. High-precision angle encoders provided by Guangzhou Zhongwang Longteng, Beijing Huaxia Tianxin, and Shenyang Machine Tool Supporting Company can be used.
[0084] The real-time data acquisition system uses EtherCAT or CAN bus communication protocols to connect the aforementioned sensors and transmit the acquired data to the machine tool controller. It achieves high real-time performance, multi-channel synchronous data acquisition, supports millisecond-level data transmission rates, high bandwidth, low latency, and strong anti-interference capabilities. It is suitable for complex multi-sensor systems and uses EtherCAT or CAN bus communication modules provided by companies such as Advantech, Wecon Technologies, and Hollysys.
[0085] The data fusion module, embedded in the machine tool controller, uses a Kalman filter algorithm to reduce noise, correct, and classify various error data collected, improving data reliability and accuracy, filtering out noise interference, updating data status in real time, and maintaining high-precision data output. It can use domestic embedded systems (such as ARM architecture) with open-source algorithm libraries (such as filter packages in Python or MATLAB) for multi-sensor data fusion. The hardware employs embedded controllers, such as Advantech IPC and Huabei Industrial Control products.
[0086] The error analysis module calculates the changing trends of geometric error, thermal error, dynamic error, and coupling error of the five-axis machine tool based on sensor data. The error results are input into the motion compensation module of the controller. The error development law is extracted through time series analysis and the error results are input into the motion compensation module in the controller. The CNC system provided by companies such as Huazhong CNC, Guangzhou CNC (GSK), and Han's Laser supports customized error compensation modules. Only a data input interface needs to be provided to embed the error compensation strategy into the machine tool controller.
[0087] (2) By constructing a five-axis linkage nonlinear error compensation model, the reverse error propagation algorithm is used to trace the source of errors generated during the machining process, and the compensation amount is dynamically optimized according to the source of the error.
[0088] The implementation method of step (2) is as follows:
[0089] 1) The acquired data is denoised and preprocessed using the Kalman filter algorithm. Based on real-time acquired geometric error, thermal error, dynamic error, and coupling error data, noise is filtered and smoothed. Through iterative optimization of state estimation and observation data, noise is filtered out to obtain high-confidence error data. Data standardization methods are used to normalize various error data to ensure a unified data format, facilitating subsequent error model construction and analysis.
[0090] 2) Construct a five-axis linkage full-dimensional nonlinear error model. Using CAE software platforms such as SimuWorks or CASIC's "Tiangong Simulation," sparse tensor decomposition technology is employed to reduce the dimensionality of the high-dimensional error tensor and extract the main error coupling relationships. The high-dimensional error data is represented in a multi-order tensor form (geometric, thermal, dynamic, coupling, and other error coupling relationships). Dimensionality reduction is performed using sparse tensor decomposition to extract key error coupling features from the high-dimensional data, eliminating redundant error information and improving data computation efficiency. The secondary development function of the Guangzhou CNC (GSK) CNC system is used to construct the coupling relationships between error sources using a nonlinear error propagation model. Real-time data is used to dynamically update the error change trend, accurately reflecting the error status of the five-axis machine tool.
[0091] 3) By constructing a differentiable error propagation function, the reverse error propagation algorithm is used to conduct source analysis of processing errors through Baidu PaddlePaddle or Alibaba DAMO Academy MNN framework. Adaptive weight allocation is performed based on the contribution rate of error sources to prioritize the compensation of key errors. By chain differentiation of the differentiable function, the overall error is propagated back to each error source, and the contribution rate of each error source to the overall error is calculated.
[0092] 4) Use variational autoencoder (VAE) to generate multiple sets of error compensation strategy samples, optimize the initial compensation value through deep learning of historical processing data, train variational autoencoder to generate multiple sets of error compensation strategy samples using historical processing data, and generate initial error compensation value using VAE to shorten the model adaptation time.
[0093] 5) Use a genetic algorithm (GA) to globally optimize the compensation strategy, using the machining accuracy after error compensation as the fitness function to dynamically adjust the compensation amount; use the Huazhong CNC secondary development platform or the optimization library in the Python environment to iteratively optimize the compensation strategy to ensure optimal accuracy.
[0094] 6) The optimized compensation amount is input into the machine tool controller in real time through the edge computing module to adjust the tool posture, feed rate, and five-axis linkage motion parameters, achieving dynamic compensation for machining errors. The controller applies the compensation amount to the machine tool execution unit in real time, and verifies the compensation effect through a feedback loop. Compensation calculation and execution are integrated, achieving high response speed and real-time compensation function. The actual machining error data after compensation is fed back to the error analysis module to dynamically update the nonlinear error model and error compensation strategy. Combined with multi-task learning, error source tracing and compensation accuracy are further optimized to achieve closed-loop feedback optimization, improving the long-term compensation accuracy and stability of the five-axis machine tool.
[0095] (3) Establish the causal relationship and probability distribution model of each error source based on Bayesian network, update the joint distribution of error sources using real-time sensor data, predict the comprehensive error through Bayesian inference, and adjust the motion parameters of each axis.
[0096] The implementation method of step (3) is as follows:
[0097] 1) Based on the collected data, the Granger causality test method is used to identify the causal relationships between different error sources: Using historical error data, the causal relationships between geometric errors, thermal errors, dynamic errors, and coupling errors are analyzed to identify the main error sources and their influence paths. Specifically, by analyzing the time lag effect of a certain error source on the changes of other errors in historical error data, the causal relationships between primary and secondary error sources are identified. For example, an increase in spindle temperature will cause thermal deformation, thus affecting geometric and dynamic errors. The identified causal relationships are represented in the form of a directed acyclic graph (DAG), where nodes represent various error sources (such as thermal and geometric errors), and edges represent causal relationships. A greedy algorithm is used to generate the initial topology of a Bayesian network: Using the causality test results, an initial topology between error sources is generated based on the Bayesian network model to describe the correlation between geometric, thermal, and dynamic errors. Specifically, based on the Bayesian network, the joint probability distribution of error sources is defined to reflect the dependence and change patterns of each error source. For example, the state distribution of thermal error nodes may be determined by data from temperature sensors and thermocouples, while the state of dynamic error nodes is simultaneously affected by geometric errors and vibration.
[0098] 2) The variational inference algorithm is used to optimize the joint probability distribution model of the Bayesian network in order to construct the causal relationship and joint probability distribution of each error source: the joint probability distribution of each node in the Bayesian network is updated iteratively by real-time error data, the main coupling characteristics between errors are extracted, the model accuracy is dynamically corrected, and the problem of high computational complexity is solved. Variational inference transforms the complex probability distribution into a simple distribution approximation, thereby efficiently estimating the probability state of each error source.
[0099] 3) Update the node states in the Bayesian network using real-time sensor data, and calculate the comprehensive error of the five-axis CNC machine tool under specific machining conditions based on Bayesian inference: use the Kalman filter algorithm to fuse and denoise the sensor data, update the state of each node in the Bayesian network in real time, and ensure that the dynamic changes of the error source can be captured by the model.
[0100] 4) Based on the Bayesian inference results, dynamically adjust the tool pose, rotation angle and five-axis linkage motion parameters to achieve real-time compensation for machining errors: Through real-time sensor data input, calculate the comprehensive error of the five-axis machine tool under the current machining conditions, dynamically adjust the tool pose, rotation angle and motion parameters, and optimize the machine tool's motion trajectory, feed rate, etc. in real time based on the Bayesian inference results to ensure that the machining path error is minimized.
[0101] 5) The compensation results are updated to the Bayesian network model through the feedback loop embedded in the machine tool controller. The causal relationship model and error compensation strategy are optimized by combining multi-task learning. By integrating real-time data and historical processing data, deep learning technology is used to continuously improve the accuracy of the causal relationship model and the compensation effect.
[0102] (4) To address the disturbance characteristics of the processing trajectory, an adaptive learning algorithm is used to learn the trajectory disturbance pattern in real time and dynamically update the error compensation model.
[0103] The implementation method of step (4) is as follows:
[0104] 1) Empirical Mode Decomposition (EMD) is used to decompose the disturbance signal into several intrinsic mode functions (IMFs), and wavelet transform is combined to extract the characteristic frequencies and amplitude variation trends of the disturbance signal. The machining trajectory disturbance signal typically contains low-frequency structural vibrations and high-frequency dynamic noise. EMD separates these signals to obtain a clearer trajectory disturbance pattern. Wavelet transform converts the time-domain signal to the frequency domain, extracting the characteristic frequencies and variation trends of the trajectory disturbance signal, thereby identifying the main disturbance sources of the machining trajectory.
[0105] 2) Construct a trajectory perturbation pattern recognition model based on a Long Short-Term Memory (LSTM) network. The extracted perturbation features are input into the model, and the model parameters are dynamically updated through an online learning mechanism to adapt to changes in real-time processing conditions. LSTM can effectively handle the time-series characteristics of trajectory perturbation signals, identifying the changing patterns of trajectory perturbations by memorizing short-term and long-term signal features. The online learning mechanism continuously updates the LSTM model parameters to adapt to real-time trajectory perturbation changes during processing, such as new perturbation patterns caused by changes in processing materials or speed.
[0106] 3) Based on the disturbance pattern recognition results, reinforcement learning algorithms are used to optimize and adjust the five-axis linkage motion parameters. For compensable disturbances, the tool attitude and motion path are optimized; for difficult-to-compensate disturbances, active vibration suppression is combined to reduce their impact. Reinforcement learning learns the compensation effect of different combinations of motion parameters on trajectory disturbances by defining a reward mechanism (e.g., the reduction in machining error), and dynamically adjusts the five-axis linkage motion parameters. For high-frequency disturbances that are difficult to compensate directly, the active vibration suppression function reduces dynamic errors by adjusting the feed rhythm to avoid the resonance range.
[0107] 4) Through a closed-loop feedback mechanism, the compensated processing trajectory data is input into the perturbation pattern recognition model in real time, further improving the model's adaptability to complex perturbation conditions. The compensated trajectory data contains trajectory deviations that the perturbation pattern recognition model fails to capture; by correcting the model through feedback, its recognition accuracy is further improved. Offline training combines real-time and historical data, and reinforcement learning is used to optimize the robustness and generalization ability of the perturbation pattern recognition model.
[0108] (5) Divide the machine tool workspace into zones, mark the error distribution of different zones, and combine the zone compensation model and the five-axis linkage kinematic model to call the corresponding compensation parameters for each motion zone in the machining path in real time.
[0109] The implementation method of step (5) is as follows:
[0110] 1) Density-based clustering (DBSCAN) is used to cluster error data within the workspace of a five-axis machine tool, dividing the workspace into multiple partitions with consistent error characteristics. Different regions of the machine tool workspace exhibit different error distributions due to structural characteristics, thermal deformation, and machining trajectory distribution. For example, areas near the machine tool edge may experience increased geometric errors due to insufficient support stiffness, while areas near the spindle may suffer from thermal errors due to heat diffusion. DBSCAN groups the spatial error data according to error characteristics, dividing it into multiple partitions with consistent error characteristics. The density characteristics of the error data are used to identify high-error and low-error regions, establishing initial boundaries for these regions. Combining physical characteristics and error distribution, points with similar error densities are grouped into the same region, eliminating the problem of overlapping partitions caused by continuous error variations.
[0111] 2) The Voronoi diagram optimization algorithm is used to adjust the partition boundaries, smoothing the error transition regions between partitions. Based on the initial boundaries of the error partitions, the Voronoi diagram optimization algorithm generates smooth partition boundaries for the error transition regions. The Voronoi diagram is generated based on the center point of each error partition, ensuring that the boundaries transition as smoothly as possible and avoiding discontinuities in compensation parameters caused by abrupt changes in the boundaries of different partitions. In partition optimization, priority is given to the coverage of the processing path, and more refined partition adjustments are made for areas frequently traversed by the path to ensure the consistency of error distribution within the partitions.
[0112] 3) Within each partition, an error distribution model is constructed using local multinomial regression (LMDR), and this model is dynamically updated based on real-time sensor data. Within each partition, an LMDR model is used to describe the variation of error within the partition as the processing path changes. The regression model inputs include error source data (such as geometric error, thermal error, etc.) and processing path parameters (such as position, speed). Based on real-time sensor data, the error model within each partition is dynamically corrected to reflect the real-time changes in error during processing. For example, when the processing path approaches the partition boundary, the model is interpolated using data from adjacent partitions to reduce error fluctuations at the boundary.
[0113] 4) Based on the current tool position and machining path, call the error compensation parameters for the corresponding partition to ensure that the compensation amount accurately matches the error distribution of the current area. Use a Bézier curve interpolation algorithm to smooth the error compensation transition at the partition boundaries, avoiding abrupt changes in the error compensation amount at the boundaries. For complex paths, integrate the compensation parameters of adjacent partitions to dynamically smooth the error impact of the compensation transition area.
[0114] 5) For cross-zone processing paths, a dynamic path planning algorithm is used to optimize the processing path, combined with a deep reinforcement learning algorithm to dynamically adjust the error compensation strategy between zones. Using the dynamic path planning algorithm, when the processing path covers multiple zones, path selection is optimized to avoid areas with large errors as much as possible. For unavoidable areas, a combination of path optimization and parameter adjustment strategies is used to minimize the impact of errors. Through the reinforcement learning algorithm, the impact of different path selection and compensation parameter combinations on processing accuracy is continuously learned during the path planning process, optimizing the compensation strategy for cross-zone paths.
[0115] (6) Integrate the above error compensation strategy into the CNC system, and adjust the tool posture, feed speed and machining path through the machine tool controller to realize dynamic compensation of multi-dimensional real-time coupling error.
[0116] The implementation method of step (6) is as follows:
[0117] 1) A dynamic compensation module is embedded in the CNC system of the machine tool. This module achieves real-time control of error compensation through a three-layer structure of perception layer, decision layer, and execution layer. The three-layer structure of the dynamic compensation module is as follows:
[0118] Perception layer: Collects geometric error, thermal error, dynamic error and coupling error data through real-time sensors.
[0119] Decision-making level: Integrating error compensation models and algorithms, including nonlinear error compensation models, Bayesian inference models, and perturbation pattern recognition models.
[0120] Execution layer: Outputs compensation commands in real time to control tool posture, feed rate and five-axis linkage motion parameters.
[0121] The dynamic compensation module is embedded in the controller through the CNC system interface to ensure synchronous operation with the CNC program, process error data in real time and update compensation instructions.
[0122] Integration method: The dynamic compensation module can communicate with the control system through an open interface (such as EtherCAT or CAN bus protocol), receive sensor data in real time and output compensation parameters.
[0123] 2) Using a fuzzy logic control algorithm, fuzzy rules are generated based on the sources and magnitudes of geometric errors, thermal errors, dynamic errors, and coupling errors. The final error compensation is then calculated using a dynamic weighted fusion method.
[0124] Define the source of error (such as position error, temperature error) and its magnitude as input variables.
[0125] The compensation amount is calculated using a fuzzy rule base, generating a dynamic mapping relationship between error type and compensation priority.
[0126] Output the dynamic compensation amount after fusion.
[0127] The compensation amounts from multiple error sources are weighted and fused, with priority given to critical error sources to ensure optimal overall compensation. For example, in the coupled region of thermal and dynamic errors, short-term high-amplitude changes in dynamic errors are compensated first.
[0128] 3) The machining path is dynamically optimized through reinforcement learning algorithms to avoid the machining path passing through areas with significant errors. Combined with the motion parameter adaptive adjustment function, the feed rate and tool posture are adjusted in real time.
[0129] A path optimization model is established using reinforcement learning algorithms, with the improvement of processing path accuracy defined as the reward objective. Different path combinations are continuously tested to learn the optimal path selection strategy, avoiding paths that traverse areas with significant errors.
[0130] Based on the compensation amount calculated by the error compensation module, the processing path is dynamically modified to reduce high-error-affected areas within the path. Combined with a dynamic programming algorithm, processing areas with smaller errors are prioritized, and the smoothness of the path and speed distribution are adjusted in real time.
[0131] 4) Integrates active vibration suppression functionality, utilizing predictive control algorithms to adjust feed rhythm and reduce dynamic error superposition; predicts the next vibration trend based on real-time vibration data, adjusting the machining rhythm in advance to avoid resonance zones. Adjusts the tool feed speed and motion trajectory frequency to minimize machining vibration amplitude. Utilizes vibration sensor data, combined with control algorithms, to generate vibration suppression parameters, adjusting the machine tool's motion rhythm in real-time to counteract vibration. In high dynamic error regions, reducing machining speed minimizes the cumulative vibration effect.
[0132] 5) Through a closed-loop feedback mechanism, the actual error value after processing is fed back to the dynamic compensation module. The compensation amount is updated by comparing data, gradually improving the model accuracy. Fuzzy rules and compensation strategies are updated, and compensation accuracy is optimized through a real-time evaluation module. The compensation model is optimized based on feedback data, and multi-task learning is performed using historical error data to improve the model's adaptability to complex processing conditions. During processing, the evaluation module performs real-time quantitative analysis of the compensation effect (such as residual error distribution) and dynamically adjusts the compensation strategy.
[0133] The following are five representative examples from actual work:
[0134] Example 1: Machining turbine blades with complex curved surfaces
[0135] Task Description: Machining complex curved surfaces of turbine blades, with a surface roughness of Ra0.4μm and a profile deviation of less than ±5μm.
[0136] Work process:
[0137] Data acquisition: A laser interferometer monitors the linearity error of the tool path, while thermocouples and infrared thermal imagers capture real-time temperature changes in the spindle and machining area. Vibration sensors record vibration data generated by high cutting speeds, and angle encoders detect minute deviations in the tool angle.
[0138] Modeling and Analysis: The compensation module identified thermal error as the primary source of error, and also discovered that dynamic vibration has a significant impact on the trajectory in local areas. Based on the data, a coupled model of thermal and dynamic errors was established.
[0139] Zoning calibration: The area near the main axis is designated as a high-thermal-error region, while the error is relatively smaller in areas farther from the main axis. Through zoning error modeling, the compensation module generates independent compensation parameters for each region.
[0140] Toolpath perturbation optimization: The LSTM model identifies vibration patterns, showing that spindle vibration is most pronounced at high cutting speeds. The system reduces the cutting speed and optimizes the toolpath using a dynamic compensation algorithm.
[0141] Real-time compensation: Adjusts the tool angle and path based on real-time sensor data to counteract the interference of expansion and dynamic vibration caused by temperature changes.
[0142] Feedback and Optimization: After processing, the surface error of the blade is measured using a laser interferometer, and the data is fed back to the compensation module to optimize the next processing strategy.
[0143] Example 2: Machining large-size aircraft frame parts
[0144] Task Description: Machining a 3-meter-long aircraft frame part, ensuring that the straightness error is less than 0.1mm.
[0145] Work process:
[0146] Data acquisition: Infrared thermal imagers detect temperature distribution in the processing area, and linear displacement sensors monitor the linear displacement deviation of the guide rails. Vibration sensors collect vibration data caused by the large size of the parts.
[0147] Modeling and Analysis: The system found that thermal expansion is the main source of straightness error in long guide rails, while large-size machining leads to insufficient support stiffness at the ends of the guide rails. A thermal error model and a geometric error compensation model were established.
[0148] Partition modeling:
[0149] The workspace is divided into three zones:
[0150] Central region: Significant thermal error.
[0151] End region: Insufficient stiffness leads to geometric errors.
[0152] Boundary region: Mixed error.
[0153] Path optimization and compensation: Dynamic path planning prioritizes avoiding high-error areas, such as reducing cutting speed in the central region to minimize the effects of thermal expansion. In the end region, geometric errors are compensated by adjusting the guide rail position in real time.
[0154] Real-time execution and feedback: The compensation module adjusts the tool feed rate and path based on real-time sensor data. After machining, the straightness is verified using a laser interferometer, and the error has been reduced to 0.08mm.
[0155] Example 3: High-speed machining of thin-walled parts
[0156] Task Description: Machining a thin-walled part with a wall thickness of only 0.5mm, controlling the effects of vibration, and achieving a surface roughness of Ra0.8μm.
[0157] Work process:
[0158] Data acquisition: Vibration sensors record the vibration amplitude of the tool when machining thin walls in real time, and angle encoders monitor the changes in the tool's posture.
[0159] Modeling and Analysis: The system identifies the deformation of thin-walled parts caused by vibration as the main source of error, and separates the high-frequency vibration mode through disturbance signal analysis.
[0160] Disturbance pattern recognition: The LSTM model learns the characteristics of vibration signals in real time and predicts the next vibration trend.
[0161] Real-time compensation: The system reduces the feed rate and adjusts the depth of cut to decrease vibration amplitude. In areas of peak vibration, the active vibration suppression function reduces dynamic errors by adjusting the machining rhythm.
[0162] Feedback and verification: After processing, the surface roughness was checked with an optical microscope, and the actual value was Ra0.75μm, which meets the requirements.
[0163] Example 4: Machining mold cavities for high-hardness materials
[0164] Task Description: Machining a mold cavity with a hardness of HRC60, the influence of cutting force fluctuations on the trajectory needs to be controlled, and the trajectory deviation needs to be less than ±10μm.
[0165] Work process:
[0166] Data acquisition: A laser interferometer monitors minute linear displacement changes in the guide rail, while a vibration sensor captures vibrations caused by fluctuations in cutting force.
[0167] Modeling and Analysis: A dynamic error model was established to identify the coupling effect of cutting force fluctuations and vibrations. Thermal errors were identified as a secondary error source, becoming significant only during high-speed machining.
[0168] Partitioned modeling: The mold cavity is divided into a deep cavity area (significant dynamic error) and a shallow cavity area (significant thermal error), and independent compensation models are established for each.
[0169] Real-time compensation: In deep cavity regions, the system adjusts the tool feed rate to control cutting forces, while optimizing tool posture to reduce the impact of vibration. In shallow cavity regions, the path is adjusted in real time using temperature sensor data to avoid dimensional deviations caused by thermal expansion.
[0170] Feedback optimization: After processing, the trajectory deviation of the mold cavity was verified by CMM (coordinate measuring machine). The actual error was ±8μm, which met the design requirements.
[0171] Example 5: Processing medical device parts
[0172] Task Description: Machining medical device parts with multiple curved surfaces, ensuring surface continuity and contour deviation less than ±3μm.
[0173] Work process:
[0174] Data acquisition: Thermocouples monitor temperature changes in the processing area, and infrared thermal imagers detect uneven heat distribution on complex curved surfaces. Vibration sensors capture dynamic vibrations caused by changes in curvature in real time.
[0175] Modeling and Partitioning: Analyze the impact of thermal and dynamic errors on surface continuity. Divide the surface into high-curvature regions (primarily due to thermal errors) and low-curvature regions (primarily due to dynamic errors).
[0176] Path optimization and compensation: The system uses interpolation algorithms to smooth compensation parameters across regions, ensuring the continuity of compensation. The toolpath is dynamically adjusted to reduce cutting speed in high-error regions.
[0177] Real-time compensation: Adjusts tool posture in real time to optimize surface curvature, and reduces dynamic error by combining active vibration suppression function.
[0178] Performance verification: The surface contour of the part was inspected using a laser scanner, and the actual deviation was ±2.5μm, which meets the stringent requirements for medical devices.
[0179] This invention significantly improves the machining accuracy, stability, and adaptability of five-axis CNC machine tools, with particularly outstanding performance in high-precision machining of complex curved surfaces, high-hardness materials, large-sized parts, and thin-walled parts. Its real-time compensation capability and intelligent operation reduce production costs, improve production efficiency and product quality, and possess broad market application potential in high-end manufacturing, demonstrating significant economic value and promising prospects for industrial promotion.
[0180] Although the present invention has been described above with reference to embodiments, various modifications can be made and components can be replaced with equivalents without departing from the scope of the invention. In particular, as long as there is no structural conflict, the features in the disclosed embodiments can be combined with each other in any manner. The lack of an exhaustive description of these combinations in this specification is merely for the sake of brevity and resource conservation. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A multi-dimensional real-time coupling error compensation method for five-axis CNC machine tools, characterized in that, Includes the following steps: (1) Real-time acquisition of geometric error, thermal error, dynamic error and coupling error data of a five-axis machine tool using a sensor network deployed on key components of the machine tool; (2) By constructing a five-axis linkage nonlinear error compensation model, the reverse error propagation algorithm is used to trace the source of errors generated during the machining process, and the compensation amount is dynamically optimized according to the source of the error. (3) Establish the causal relationship and probability distribution model of each error source based on Bayesian network, update the joint distribution of error sources using real-time sensor data, predict the comprehensive error through Bayesian inference, and adjust the motion parameters of each axis. (4) To address the disturbance characteristics of the processing trajectory, an adaptive learning algorithm is used to learn the trajectory disturbance pattern in real time and dynamically update the error compensation model. (5) Divide the machine tool workspace into zones, mark the error distribution of different zones, and combine the zone compensation model and the five-axis linkage kinematic model to call the corresponding compensation parameters for each motion zone in the machining path in real time. (6) Integrate the above error compensation strategy into the CNC system, and adjust the tool posture, feed rate and machining path through the machine tool controller to achieve dynamic compensation of multi-dimensional real-time coupled errors; The implementation method of step (2) is as follows: 1) Noise reduction and preprocessing of the acquired data are performed using the Kalman filter algorithm; 2) Construct a five-axis linkage full-dimensional nonlinear error model, use sparse tensor decomposition technology to reduce the dimensionality of the high-dimensional error tensor, and extract the main error coupling relationships; 3) By constructing a differentiable error propagation function, the reverse error propagation algorithm is used to conduct source analysis of processing errors, and adaptive weight allocation is performed according to the contribution rate of error sources to prioritize the compensation of key errors; 4) Use a variational autoencoder to generate multiple sets of error compensation strategy samples, and optimize the initial compensation value through deep learning of historical processing data; 5) Use a genetic algorithm to globally optimize the compensation strategy, and use the processing accuracy after error compensation as the fitness function to dynamically adjust the compensation amount; 6) The optimized compensation amount is input into the machine tool controller in real time through the edge computing module to adjust the tool posture, feed rate and five-axis linkage motion parameters to achieve dynamic compensation of machining errors.
2. The multi-dimensional real-time coupling error compensation method for a five-axis CNC machine tool according to claim 1, characterized in that, The sensor network includes: A laser interferometer and a linear displacement sensor are respectively positioned on the machine tool guide rail and the rotary axis support to collect geometric error data. Thermocouples and infrared thermal imagers are respectively arranged on the spindle, motor and machine tool support to monitor the temperature changes of key machine tool components and collect thermal error data. Accelerometers and vibration sensors are installed on tool holders and machine tool slides to detect dynamic disturbance errors. An angle encoder, placed on the rotary table and the oscillating head shaft, is used to collect angle deviation data in multi-axis linkage motion; The real-time data acquisition system uses EtherCAT or CAN bus communication protocols to connect the aforementioned sensors and transmit the acquired data to the machine tool controller. The data fusion module, embedded in the machine tool controller, performs noise reduction, correction, and classification storage on various types of error data collected based on the Kalman filter algorithm; The error analysis module calculates the trends of geometric error, thermal error, dynamic error, and coupling error of the five-axis machine tool based on sensor data, and inputs the error results into the motion compensation module of the controller.
3. The multi-dimensional real-time coupling error compensation method for a five-axis CNC machine tool according to claim 1, characterized in that, The implementation method of step (3) is as follows: 1) Based on the collected data, the Granger causality test method is used to identify the causal relationship between different error sources, and the greedy algorithm is used to generate the initial topology of the Bayesian network. 2) The variational inference algorithm is used to optimize the joint probability distribution model of the Bayesian network in order to construct the causal relationship and joint probability distribution of each error source; 3) Update the node states in the Bayesian network using real-time sensor data, and calculate the comprehensive error of the five-axis CNC machine tool under specific machining conditions based on Bayesian inference; 4) Based on the Bayesian inference results, dynamically adjust the tool pose, rotation angle, and five-axis linkage motion parameters to achieve real-time compensation for machining errors; 5) The compensation results are updated to the Bayesian network model through the feedback loop embedded in the machine tool controller, and the causal relationship model and error compensation strategy are optimized by combining multi-task learning.
4. The multi-dimensional real-time coupling error compensation method for a five-axis CNC machine tool according to claim 1, characterized in that, The implementation method of step (4) is as follows: 1) The perturbation signal is decomposed into several intrinsic mode functions using empirical mode decomposition technology, and the characteristic frequency and amplitude variation trend of the perturbation signal are extracted by combining wavelet transform. 2) Construct a trajectory perturbation pattern recognition model based on a long short-term memory network, input the extracted perturbation features into the model, and dynamically update the model parameters through an online learning mechanism to adapt to changes in real-time processing conditions; 3) Based on the disturbance pattern recognition results, the five-axis linkage motion parameters are optimized and adjusted using reinforcement learning algorithms. For compensable disturbances, the tool posture and motion path are optimized, and for difficult-to-compensate disturbances, the active vibration suppression function is combined to reduce their impact. 4) Through a closed-loop feedback mechanism, the compensated processing trajectory data is input into the disturbance pattern recognition model in real time, further improving the model's adaptability to complex disturbance conditions.
5. A multi-dimensional real-time coupling error compensation method for a five-axis CNC machine tool according to claim 1, characterized in that, The implementation method of step (5) is as follows: 1) Based on the density clustering algorithm, cluster analysis is performed on the error data in the workspace of a five-axis machine tool, dividing the workspace into multiple partitions with consistent error characteristics; 2) The Voronoi diagram optimization algorithm is used to adjust the partition boundaries to smooth the error transition area between partitions; 3) Construct an error distribution model within each partition using the local multinomial regression method, and dynamically update the partition error model by combining real-time sensor data; 4) Based on the current tool position and machining path, call the error compensation parameters of the corresponding partition, and smooth the error compensation transition at the partition boundary using the Bézier curve interpolation algorithm; 5) For cross-partition processing paths, a dynamic path planning algorithm is used to optimize the processing path, and a deep reinforcement learning algorithm is combined to dynamically adjust the error compensation strategy between partitions.
6. The multidimensional real-time coupling error compensation method for a five-axis CNC machine tool according to claim 1, characterized in that, The implementation method of step (6) is as follows: 1) Embed a dynamic compensation module in the CNC system of the machine tool. This module realizes real-time control of error compensation through a three-layer structure of perception layer, decision layer and execution layer; 2) Using a fuzzy logic control algorithm, fuzzy rules are generated based on the sources and magnitudes of geometric error, thermal error, dynamic error, and coupling error, and the final error compensation amount is calculated through a dynamic weighted fusion method; 3) The machining path is dynamically optimized through reinforcement learning algorithms to avoid the machining path passing through areas with significant errors. Combined with the motion parameter adaptive adjustment function, the feed rate and tool posture are adjusted in real time. 4) Integrates active vibration suppression function, uses predictive control algorithm to adjust feed rhythm, and reduces the accumulation of dynamic errors; 5) Through a closed-loop feedback mechanism, the actual error value after processing is fed back to the dynamic compensation module to update the fuzzy rules and compensation strategy, and the compensation accuracy is optimized through the real-time evaluation module.
Citation Information
Patent Citations
Numerical control machining tool heat error Bayes network compensation method
CN101436057A
Complex curved surface geometric self-adaptive machining error compensation and optimization method
CN119356215A
Real-time error control system for numerical control machining of hardware parts
CN120178786A
