基于GCN-Transformer和迁移学习的多机床热误差预测

Multi-machine tool thermal error prediction using GCN-Transformer and transfer learning

  • 摘要: 热误差是影响数控机床加工精度的主要因素,其建模不仅涉及时序依赖,还包含多传感器之间的空间相关性。针对传统模型未能充分考虑时空耦合及跨机床泛化不足的问题,提出了一种基于GCN-Transformer(graph convolutional network-Transformer)和迁移学习的热误差建模方法。该方法利用图卷积网络(GCN)提取传感器间的空间依赖关系,并结合Transformer捕捉时序动态特征,从而实现空间信息与时间特征的高效融合。进一步设计了多域特征提取模块,将提取的时空特征用于预测损失计算及跨机床的领域自适应建模。考虑到不同机床在装配偏差与性能退化等因素下的热特性差异,引入基于多核最大均值差异(multiple kernel maximum mean discrepancy, MK-MMD)的域自适应策略,通过对源域与目标域的特征分布进行对齐,有效提升了模型在不同机床间的泛化能力。实验结果表明,所提方法在多工况和跨机床任务中均优于现有建模方法,尤其在目标机床标记样本稀缺的情况下,迁移学习显著增强了模型的预测精度与鲁棒性。研究表明,该方法为解决复杂工况下机床热误差建模与补偿提供了新的思路。

     

    Abstract: Thermal error is one of the primary factors affecting the machining accuracy of CNC machine tools. Its modeling involves not only temporal dependencies but also spatial correlations among multiple sensors. Traditional approaches often fail to fully capture such spatio-temporal interactions and lack robustness when transferred across different machines. To address these limitations, this study proposes a novel thermal error modeling framework based on a Graph Convolutional Network (GCN) and Transformer architecture. In the proposed method, the GCN is employed to extract spatial dependencies among temperature sensors, while the Transformer captures temporal dynamics, enabling an efficient fusion of spatial and temporal features. A multi-domain feature extraction module is further designed to integrate these features for prediction loss computation as well as cross-machine domain adaptation. Given that thermal characteristics of machine tools may vary due to assembly deviations and performance degradation, a domain adaptation strategy based on multi-kernel maximum mean discrepancy (MK-MMD) is introduced to align the feature distributions between source and target domains, thereby enhancing cross-machine generalization capability. Experimental evaluations demonstrate that the proposed method consistently outperforms existing thermal error models under multi-condition and cross-machine scenarios. Moreover, when labeled samples on the target machine are limited, transfer learning significantly improves prediction accuracy and robustness. These findings highlight the effectiveness of the proposed GCN-Transformer framework and domain adaptation strategy, offering a promising solution to the challenges of thermal error modeling and compensation in complex operating environments.

     

/

返回文章
返回