Feed Error Prediction and Compensation of CNC Machine Tools Based on Whale Particle Swarm Backpropagation Neural Network

Wenkang Fang,Yingping Qian,Zhongquan Yu,Dongqiao Zhang
DOI: https://doi.org/10.3390/electronics13050892
IF: 2.9
2024-02-26
Electronics
Abstract:Current modeling methods of machine tool feed error are challenging to meet the demand of high-precision machining when facing complex machining conditions. To enhance the model's predictive accuracy and the effectiveness of actual compensation, the Whale Particle Swarm Optimization (WPSO) algorithm is proposed to optimize the Backpropagation Neural Network (BPNN). Subsequently, the optimized network incorporates screw elongation and feed position as inputs to establish a feed-error prediction model. Ultimately, the established model was compared with other models and applied to real-time compensation experiments. The research results show that the proposed prediction model outperforms the BPNN model, the particle swarm-optimized BPNN model, and the whale-optimized BPNN model in various indicators. The accuracy of the prediction model was 93.12%, and the errors ranged from −3.80 μm to 4.57 μm with an average error of −0.30 μm. Under different operating conditions, the maximum backward and forward errors are reduced by 33.21% and 87.21%, and the average backward and forward errors are reduced by 57.15% and 84.37%, respectively. The error range is reduced by 67.41%. Beyond elevating prediction accuracy and compensation efficacy, the proposed model offers robust theoretical guidance for practical production.
engineering, electrical & electronic,computer science, information systems,physics, applied
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: under complex machining conditions, the existing machine tool feed error modeling methods are difficult to meet the requirements of high - precision machining. In order to improve the prediction accuracy of the model and the actual compensation effect, the author proposes a backpropagation neural network (BPNN) model optimized by the whale particle swarm optimization (WPSO) algorithm to predict and compensate the feed error of CNC machine tools. ### Specific background and challenges of the problem 1. **Limitations of existing methods**: - Current machine tool feed error modeling methods are difficult to meet the requirements of high - precision machining when facing complex machining conditions. - Modeling geometric errors or thermal errors separately cannot achieve high prediction accuracy, and the computational complexity of comprehensive modeling is too large, which affects the real - time compensation effect. 2. **Research objectives**: - Improve the accuracy of the feed error prediction model and the actual compensation effect. - Provide an effective real - time compensation solution to improve the machining accuracy in actual production. ### Solution The author proposes a method of combining WPSO algorithm to optimize BPNN. The specific steps are as follows: 1. **Data collection and analysis**: - Collect data on feed errors and related factors under different ambient temperatures and working hours to ensure that the model can adapt to different operating conditions. 2. **Model establishment**: - Use screw elongation and feed position as input variables and feed error as output variable to construct a BPNN model. - Optimize the weights and thresholds of BPNN through the WPSO algorithm to improve the prediction performance of the model. 3. **Model evaluation and verification**: - Compare the optimized model with other models (such as unoptimized BPNN, PSO - BPNN, WOA - BPNN) to evaluate its prediction accuracy and compensation effect. - Conduct real - time compensation experiments in the actual machining process to verify the effectiveness of the model. ### Main achievements - The proposed WPSO - BPNN model has reached a prediction accuracy of 93.12%, with an error range from - 3.80µm to 4.57µm and an average error of - 0.30µm. - Compared with other models, the WPSO - BPNN model performs well in multiple indicators, including mean square error (MSE), root mean square error (RMSE) and prediction accuracy. Through the above methods, the author has successfully improved the prediction accuracy and compensation effect of the feed error of CNC machine tools, providing strong theoretical guidance and technical support for actual production.