Call For Paper September 2026

Research Article | Open Access | Download PDF
Volume 13 | Issue 9 | Year 2026 | Article Id. IJME-V13I9P101 | DOI : https://doi.org/10.14445/23488360/IJME-V13I9P101

Thermal Error Prediction of a Three-Axis CNC Machine Tool using an Artificial Neural Network with Optimized Hidden-Neuron Architecture


Nguyen Trong Minh, Dang Duc Thuan

Received Revised Accepted Published
25 Jun 2026 05 Aug 2026 21 Aug 2026 26 Sep 2026

Citation :

Nguyen Trong Minh, Dang Duc Thuan, "Thermal Error Prediction of a Three-Axis CNC Machine Tool using an Artificial Neural Network with Optimized Hidden-Neuron Architecture," International Journal of Mechanical Engineering, vol. 13, no. 9, pp. 1-19, 2026. Crossref, https://doi.org/10.14445/23488360/IJME-V13I9P101

Abstract

Thermal errors are one of the major factors that affect the positioning accuracy of CNC machine tools and hence the quality of the manufactured products. Artificial Neural Networks (ANNs) have been extensively used for modeling the thermal errors, but the impact of hidden-layer architecture on the prediction accuracy remains insufficiently explored. In this study, a Neuron-Optimized Artificial Neural Network (NO-ANN) model is proposed for predicting the thermal positioning errors of a three-axis CNC machine tool. The effect of the hidden-layer neuron configuration was systematically examined to determine the optimal configuration to capture the nonlinear relationship between the thermal variations and positioning errors. The model performance was assessed by Coefficient of Determination (R2), Root Mean Square Error (RMSE), and Mean Absolute Error (MAE). The optimized architecture of 11 hidden neurons demonstrated the highest overall performance, with an R2 value of 0.998, RMSE of 1.3247 μm, and MAE of 0.6539 μm, and the model showed high accuracy in both training and testing sets, indicating its robustness and generalization ability. Compared with previously reported thermal error prediction models, the proposed NO-ANN achieved comparable or superior predictive accuracy while requiring only 11 hidden neurons, indicating reduced model complexity and improved computational efficiency. The results indicate that the systematic optimization of hidden-layer neurons can significantly improve the accuracy of thermal error prediction of ANNs, which can be used to effectively compensate for the thermal error in intelligent CNC machining systems.

Keywords

Artificial Neural Network, CNC machine tool, Hidden neuron optimization, Machining precision, Thermal error prediction.

References

  1. Yu Wang et al., “A Review of the Application of Machine Learning Techniques in Thermal Error Compensation for CNC Machine Tools,” Measurement, vol. 243, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  2. Mohsen Soori, Behrooz Arezoo, and Roza Dastres, “Machine Learning and Artificial Intelligence in CNC Machine Tools, A Review,” Sustainable Manufacturing and Service Economics, vol. 2, pp. 1-12, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  3. Walid Chaaibi, Abderrazak El Ouafi, and Narges Omidi, “Geometric and Thermal-Induced Errors Prediction for Active Error Compensation in Machine Tools,” Journal of Experimental and Theoretical Analyses, vol. 3, no. 4, pp. 1­-19, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  4. R Ramesh, M.A Mannan, and A.N Poo, “Error Compensation in Machine Tools - A Review: Part II: Thermal Errors,” International Journal of Machine Tools and Manufacture, vol. 40, no. 9, pp. 1257-1284, 2000.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  5. Josef Mayr et al., “Thermal Issues in Machine Tools,” CIRP Annals, vol. 61, no. 2, pp. 771-791, 2012.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  6. Yang Li et al., “A Review on Spindle Thermal Error Compensation in Machine Tools,” International Journal of Machine Tools and Manufacture, vol. 95, pp. 20-38, 2015.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  7. Zhiming Feng et al., “Study on Thermal Error Modeling for CNC Machine Tools based on the Improved Radial Basis Function Neural Network,” Applied Sciences, vol. 13, no. 9, pp. 1-20, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  8. Tao Cheng et al., “New Machining Test for Identifying Geometric and Thermal Errors of Rotary Axes for Five-Axis Machine Tools,” Measurement, vol. 223, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  9. Bo Huang et al., “Vertical Machining Center Feed Axis Thermal Error Compensation Strategy Research,” Applied Sciences, vol. 13, no. 5, pp. 1-27, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  10. Hu Shi et al., “Bayesian Neural Network–based Thermal Error Modeling of Feed Drive System of CNC Machine Tool,” International Journal of Advanced Manufacturing Technology, vol. 108, pp. 3031-3044, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  11. Hu Shi et al., “Investigation into Effect of Thermal Expansion on Thermally Induced Error of Ball Screw Feed Drive System of Precision Machine Tools,” International Journal of Machine Tools and Manufacture, vol. 97, pp. 60-71, 2015.
    [CrossRef] [Google Scholar] [Publisher Link]
  12. Xinyuan Wei et al., “Thermal Error Modeling and Compensation based on Gaussian Process Regression for CNC Machine Tools,” Precision Engineering, vol. 77, pp. 65-76, 2022.
    [CrossRef] [Google Scholar] [Publisher Link]
  13. Xiangfu Fu et al., “Digital Twin Technology in Modern Machining: A Comprehensive Review of Research on Machining Errors,” Journal of Manufacturing Systems, vol. 79, pp. 134-161, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  14. Wei Gao et al., “Machine Tool Calibration: Measurement, Modeling, and Compensation of Machine Tool Errors,” International Journal of Machine Tools and Manufacture, vol. 187, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  15. Guo-hua Chen et al., “Research on Thermal Error Compensation Modeling for the Machine Tool Integrated Drive System based on Energy Consumption Big Data and an Optimized Bidirectional Network,” Precision Engineering, vol. 94, pp. 91-112, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  16. T. Narendra Reddy et al., “Real-Time Thermal Error Compensation Strategy for Precision Machine Tools,” Materials Today: Proceedings, vol. 22, no. 4, pp. 2386-2396, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  17. Y.C. Liang et al., “Thermal Error Prediction for Heavy-Duty CNC Machines Enabled by Long Short-Term Memory Networks and Fog-Cloud Architecture,” Journal of Manufacturing Systems, vol. 62, pp. 950-963, 2022.
    [CrossRef] [Google Scholar] [Publisher Link]
  18. Lisa Groos et al., “Mapping and Compensation of Geometric Errors of a Machine Tool at Different Constant Ambient Temperatures,” Precision Engineering, vol. 63, pp. 10-17, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  19. P. C. Tseng, and J. L. Ho, “A Study of High-Precision CNC Lathe Thermal Errors and Compensation,” International Journal of Advanced Manufacturing Technology, vol. 19, pp. 850-858, 2002.
    [CrossRef] [Google Scholar] [Publisher Link]
  20. Srinivas N. Grama, Ashvarya Mathur, and Ashok N. Badhe, “A Model-based Cooling Strategy for Motorized Spindle to Reduce Thermal Errors,” International Journal of Machine Tools and Manufacture, vol. 132, pp. 3-16, 2018.
    [CrossRef] [Google Scholar] [Publisher Link]
  21. Adalto de Farias, Marcelo Otávio dos Santos, and Ed Claudio Bordinassi, “Development of a Thermal Error Compensation System for a CNC Machine Using a Radial Basis Function Neural Network,” Journal of the Brazilian Society of Mechanical Sciences and Engineering, vol. 44, 2022. [CrossRef] [Google Scholar] [Publisher Link]
  22. Otakar Horejš, Martin Mareš, and Lukáš Havlík, “Compensation of Thermally Induced Errors in Five-Axis Computer Numerical Control Machining Centers Equipped With Different Spindles,” Journal of Manufacturing Science and Engineering, vol. 144, no. 10, pp. 1-10, 2022.
    [CrossRef] [Google Scholar] [Publisher Link]
  23. Hui Liu et al., “Thermal Error Modeling for Machine Tools: Mechanistic Analysis and Solution for the Pseudocorrelation of Temperature-Sensitive Points,” IEEE Access, vol. 8, pp. 63497-63513, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  24. Jialan Liu, Chi Ma, and Shilong Wang, “Data-Driven Thermally-Induced Error Compensation Method of High-Speed and Precision Five-Axis Machine Tools,” Mechanical Systems and Signal Processing, vol. 138, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  25. Martin Mareš, Otakar Horejš, and Lukáš Havlík, “Thermal Error Compensation of a 5-Axis Machine Tool Using Indigenous Temperature Sensors and CNC Integrated Python Code Validated With a Machined Test Piece,” Precision Engineering, vol. 66, pp. 21-30, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  26. Dang-Khoa Nguyen, Hua-Chih Huang, and Tzu-Chen Feng, “Prediction of Thermal Deformation and Real-Time Error Compensation of a CNC Milling Machine in Cutting Processes,” Machines, vol. 11, no. 2, pp. 1­-19, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  27. Hong Yang, and Jun Ni, “Dynamic Neural Network Modeling for Nonlinear, Nonstationary Machine Tool Thermally Induced Error,” International Journal of Machine Tools and Manufacture, vol. 45, no. 4, pp. 455-465, 2005.
    [CrossRef] [Google Scholar] [Publisher Link]
  28. Nico Zimmermann et al., “Adaptive Input Selection for Thermal Error Compensation Models,” CIRP Annals, vol. 69, no. 1, pp. 485-488, 2020.
    [CrossRef] [Google Scholar] [Publisher Link]
  29. Nagesh Tambake et al., “Fault Diagnosis of a CNC Hobbing Cutter Through Machine Learning Using Three Axis Vibration Data,” Heliyon, vol. 11, no. 2, pp. 1-28, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  30. Z. Z. Xu et al., “Thermal Error Forecast and Performance Evaluation for an Air-Cooling Ball Screw System,” International Journal of Machine Tools and Manufacture, vol. 51, no. 7, pp. 605-611, 2011.
    [CrossRef] [Google Scholar] [Publisher Link]
  31. Yu Chen, Yu Sun, and Wuxue Ding, “Thermo-Mechanical Coupling Model and Dynamical Characteristics of Press Actuator,” Procedia Engineering, vol. 81, pp. 1657-1662, 2014.
    [CrossRef] [Google Scholar] [Publisher Link]
  32. Chengxin Zhang, Feng Gao, and Yan Li, “Thermal Error Characteristic Analysis and Modeling for Machine Tools Due to Time-Varying Environmental Temperature,” Precision Engineering, vol. 47, pp. 231-238, 2017.
    [CrossRef] [Google Scholar] [Publisher Link]
  33. Hong Yang, and Jun Ni, “Dynamic Modeling for Machine Tool Thermal Error Compensation,” Journal of Manufacturing Science and Engineering, vol. 125, no. 2, pp. 245-254, 2003.
    [CrossRef] [Google Scholar] [Publisher Link]
  34. Ali M. Abdulshahed, Andrew P. Longstaff, and Simon Fletcher, “The Application of ANFIS Prediction Models for Thermal Error Compensation on CNC Machine Tools,” Applied Soft Computing, vol. 27, pp. 158-168, 2015.
    [CrossRef] [Google Scholar] [Publisher Link]
  35. Yang Li et al., “Thermal Error Modeling of Spindle based on the Principal Component Analysis Considering Temperature-Changing Process,” International Journal of Advanced Manufacturing Technology, vol. 99, pp. 1341-1349, 2018.
    [CrossRef] [Google Scholar] [Publisher Link]
  36. Liang Ruijun et al., “The Thermal Error Optimization Models for CNC Machine Tools,” International Journal of Advanced Manufacturing Technology, vol. 63, pp. 1167-1176, 2012.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  37. Sen Mu et al., “A Review of Machine Learning-based Thermal Error Modeling Methods for CNC Machine Tools,” Machines, vol. 13, no. 2, pp. 1-16, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  38. Ying Gao, Xiaojun Xia, and Yinrui Guo, “A Modeling Method for Thermal Error Prediction of CNC Machine Equipment based on Sparrow Search Algorithm and Long Short-Term Memory Neural Network,” Sensors, vol. 23, no. 7, pp. 1-26, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  39. Jian Han et al., “Thermal Error Modeling and Compensation of a CNC Machining Center,” Advanced Materials Research, vol. 490, pp. 1516-1520, 2012.
    [CrossRef] [Google Scholar] [Publisher Link]
  40. K. Gnana Sheela, and S.N. Deepa, “Review on Methods to Fix Number of Hidden Neurons in Neural Networks,” Mathematical Problems in Engineering, vol. 2013, no. 1, pp. 1-11, 2013.
    [CrossRef] [Google Scholar] [Publisher Link]
  41. Huadong Li, Jingjun Liu, and Yang Li, “Research on Optimization of Temperature Sensitive Points of Machine Tool Thermal Error based on Independent Variable Selection Criteria,” Scientific Reports, vol. 15, pp. 1-10, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  42. Adalto Farias et al., “3-Axis Computer Numerical Control Machine Positioning Error Dataset for Thermal Error Compensation,” Data in Brief, vol. 57, pp. 1-13, 2024.
    [CrossRef] [Google Scholar] [Publisher Link]
  43. Adalto Farias, and Ed Bordinassi, “Dataset for Thermal Error Compensation in a 3-Axis CNC Machine,” Mendeley Data, vol. 1, 2024.
    [CrossRef] [Google Scholar] [Publisher Link]
  44. Nang Xuan Ho, Tien-Thinh Le, and Minh Vuong Le, “Development of Artificial Intelligence based Model for the Prediction of Young’s Modulus of Polymer/Carbon-Nanotubes Composites,” Mechanics of Advanced Materials and Structures, vol. 29, no. 27, pp. 5965-5978, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  45. Yahao Chen et al., “Thermal Error Prediction Method of Transformer-GRU Composite Model for CNC Machine Tool Feeding System based on Multi-Source Information Fusion,” Measurement Science and Technology, vol. 37, no. 7, 2026.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  46. Wen-Lin Chu, “Integrating Machine Learning and Feature Analysis for Predicting and Managing Thermal Deformation in Machine Tools,” Case Studies in Thermal Engineering, vol. 57, pp. 1-13, 2024.
    [CrossRef] [Google Scholar] [Publisher Link]
  47. Yu Li et al., “Thermal Error Analysis of Five-Axis Machine Tools based on Five-Point Test Method,” Lubricants, vol. 10, no. 6, pp. 1-8, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  48. Ali M. Abdulshahed et al., “Thermal Error Modelling of a Gantry-Type 5-Axis Machine Tool Using a Grey Neural Network Model,” Journal of Manufacturing Systems, vol. 41, pp. 130-142, 2016.
    [CrossRef] [Google Scholar] [Publisher Link]
  49. Weimin Kang et al., “Thermal Error Modeling of Motorized Spindle Considering Temperature Hysteresis: A GRU-Transformer Prediction Model,” Case Studies in Thermal Engineering, vol. 69, pp. 1-18, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  50. Musab Alataiqeh et al., “Thermal Error Modeling of Slant Bed CNC Lathe Spindle based on BiLSTM With Data Augmentation and Grey Wolf Optimizer Algorithm,” Case Studies in Thermal Engineering, vol. 70, pp. 1-18, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  51. Xiangrui Zhao et al., “Research on Machine Tool Thermal Error Compensation based on an Optimized LSTM Model,” Actuators, vol. 14, no. 12, pp. 1-26, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]
  52. Van-Hai Nguyen et al., “Predicting Volumetric Error Compensation for Five-Axis Machine Tool Using Machine Learning,” International Journal of Computer Integrated Manufacturing, vol. 36, no. 8, pp. 1191-1218, 2023.
    [CrossRef] [Google Scholar] [Publisher Link]
  53. Xingxing Yu et al., “Long-Term Thermal Error Modeling and Compensation for CNC Machine Tools based on Enhanced Autoformer,” International Journal of Advanced Manufacturing Technology, vol. 140, pp. 3143-3158, 2025.
    [CrossRef] [Google Scholar] [Publisher Link]