|
pp. 5201-5220
S&M4241 Research Paper https://doi.org/10.18494/SAM5879 Published: November 28, 2025 Optimized Thermal Error Prediction and Real-time Compensation in Computer Numerical Control Milling Machines Using Neural Networks and Advanced Sensor Selection [PDF] Dang-Khoa Nguyen, Hua-Chih Huang, and Zhong-Ming Hsu (Received August 25, 2025; Accepted November 20, 2025) Keywords: thermal error (TE), thermal compensation (TC), back propagation neural network (BPNN), K-means, PCA+K-means
In this study, we developed a thermal error prediction (TEP) model and employed the error compensation in real time in a computer numerical control (CNC) milling machine with three axes in actual cutting operations. Thirty-three PT-100 sensors were used in each critical part of the machine to collect temperature data during cutting. K-means was adopted to select eight crucial temperature sensors from the 33 temperature sensors, and PCA+K-means was used to determine seven critical temperature sensors from the 33 sensors to apply a model for TEP. In this study, we made the prediction model from a back propagation neural network (BPNN). The number of sensors chosen as the critical temperature sensors constitutes the input layer of the BPNN. In contrast, the three neurons in the output layer represent the deformation of X, Y, and Z. After training the model to predict errors, it is brought into the control system for real-time TEP. We conducted a 6 h actual cutting experiment to verify the effect of error compensation, and the average three-axis thermal error was decreased from 50 to 14 μm by the K-means selection method. The PCA+K-means selection method reduced the average thermal three-axis error from 50 to 11 μm as compared with the previous measurements. The results show that these two methods can effectively improve the machining accuracy of the workpiece by combining the BPNN model with a compensated real-time TEP model.
Corresponding author: Hua-Chih Huang![]() ![]() This work is licensed under a Creative Commons Attribution 4.0 International License. Cite this article Dang-Khoa Nguyen, Hua-Chih Huang, and Zhong-Ming Hsu, Optimized Thermal Error Prediction and Real-time Compensation in Computer Numerical Control Milling Machines Using Neural Networks and Advanced Sensor Selection, Sens. Mater., Vol. 37, No. 11, 2025, p. 5201-5220. |