• CN: 11-2187/TH
  • ISSN: 0577-6686

Journal of Mechanical Engineering ›› 2025, Vol. 61 ›› Issue (3): 52-66.doi: 10.3901/JME.2025.03.052

Previous Articles    

Thermal Error Modeling Method towards Electric Spindles Based on Digital Twin and Deep Transfer Learning

MA Shuai1, LENG Jiewu1, CHEN Zhuyun2, LI Weihua2, LI Bo3,4, LIU Qiang1   

  1. 1. State Key Laboratory of Precision Electronic Manufacturing Technology and Equipment, Guangdong University of Technology, Guangzhou 510006;
    2. School of Mechanical and Automotive Engineering, South China University of Technology, Guangzhou 510640;
    3. School of Mechanical Engineering, Hubei University of Arts and Sciences, Xiangyang 441053;
    4. XY-HUST Advanced Manufacturing Engineering Research Institute, Xiangyang 441106
  • Received:2024-02-21 Revised:2024-08-04 Published:2025-03-12

Abstract: Thermal error is one of the main sources of electric spindle system errors, and thermal error modeling is an important means to improve system reliability. In machining scenarios where the electric spindle is loaded with tools, it needs to move in multiple directions, which makes real-time measurement difficult and difficult to collect sufficient thermal error samples. Furthermore, the data distribution under different working conditions presents large discrepancies, and a well-trained model under one working condition failed to obtain satisfactory prediction accuracy when applied to another working condition. To address these issues, a thermal error modeling approach based on digital twins and deep transfer learning is proposed. Firstly, a digital twin model of the thermal behavior of the electric spindle system is established, where the temperature fields and thermal deformation data under different working conditions can be simulated to alleviate the limitation of the scarcity of the thermal error samples in real scenarios. Secondly, a convolutional bidirectional long short-term memory network based on the domain adversarial mechanism is developed. The virtual data generated by the digital twin model is used as the source domain, and the real data is used as the target domain. Convolutional layers of different scales are used as the feature extractor to extract the spatial features of the temperature data from both the source and target domains so as to address the collinearity issue of multi-dimensional temperature features. The bidirectional long short-term memory network is constructed as a predictor to process the time-series relationship between temperature and thermal error and output predictions. Additionally, the adversarial training technique of domain adaptation is employed to confuse the two domain features and minimize the distribution discrepancies between both domains, thereby improving the model's generalization ability. Finally, a multi-source data collaborative collection platform is established to obtain real data under variable working conditions. Different transfer tasks are constructed to validate the proposed method and the results showed the proposed method successfully achieves thermal error modeling in the absence of labeled thermal error samples and exhibits good prediction performance.

Key words: electric spindles, thermal error modeling, digital twin, deep transfer learning, domain adaptation

CLC Number: