基于Laplace-Delta物理损失的PINN-BI-LSTM数控机床电主轴热误差建模与分析

Modeling and Analysis of Thermal Errors in CNC Machine Tool Spindles Using PINN-BI-LSTM Based on Laplace-Delta Physical Loss

  • 摘要: 在精密制造领域,电主轴热误差是影响加工精度的关键因素。为了准确预测热误差,通常有物理仿真建模和机器学习建模两种方法。由于物理仿真建模方法难度大、成本高,因此机器学习建模往往是解决这一问题的首选,但传统机器学习建模往往缺乏物理可解释性,且预测鲁棒性较差。针对上述问题,提出了一种基于泛化热膨胀系数概率分布约束的建模方法,从而提升模型的预测性能。首先,通过由温度序列提取得到的主成分与热误差序列计算得到泛化热膨胀系数,之后使用Laplace +Delta函数对泛化热膨胀系数的概率分布进行拟合,将物理信息以物理损失函数项与传统均方根误差损失函数相结合的形式引入到BI-LSTM模型的训练过程,从而使模型学习符合电主轴热物理规律的预测行为。本研究中模型为单步自回归预测模型,并且为了使模型复用其在训练阶段学习到的通用知识并加速收敛速度降低计算开销而引入“热启动”策略。实验结果表明,该模型在引入泛化热膨胀系数物理损失后,模型对于三种不同工况下的测试集的预测性能均得到了一定的提升。

     

    Abstract: In the field of precision manufacturing, thermal errors of electric spindles are considered a key factor affecting machining accuracy. To accurately predict thermal errors, two methods are generally employed: physical simulation modeling and machine learning modeling. Because physical simulation modeling is complex and costly, machine learning modeling is often selected as the preferred solution. However, traditional machine learning modeling frequently lacks physical interpretability and exhibits relatively poor predictive robustness. To address these issues, a modeling method based on the probability distribution constraint of the generalized coefficient of thermal expansion is proposed to enhance model predictive performance. First, principal components are extracted from the temperature sequence, and the generalized coefficient of thermal expansion is calculated from the thermal error sequence. Subsequently, after fitting the probability distribution of the generalized coefficient of thermal expansion using a Laplace delta function, physical information is introduced into the Bidirectional Long Short-Term Memory(BI-LSTM) model training process through a combination of a physical loss function term and the traditional root mean square error loss function, enabling the model to learn prediction behavior consistent with the thermal physics of electric spindles. In this study, a single-step autoregressive prediction model is adopted, and to enable the model to reuse general knowledge acquired during the training phase while accelerating convergence and reducing computational costs, a “warm-start” strategy is introduced. Experimental results show that, after incorporating the physical loss based on the generalized coefficient of thermal expansion, model predictive performance on test sets under three different operating conditions is improved.

     

/

返回文章
返回