CN115351601B - A tool wear monitoring method based on transfer learning - Google Patents
A tool wear monitoring method based on transfer learning Download PDFInfo
- Publication number
- CN115351601B CN115351601B CN202211199862.2A CN202211199862A CN115351601B CN 115351601 B CN115351601 B CN 115351601B CN 202211199862 A CN202211199862 A CN 202211199862A CN 115351601 B CN115351601 B CN 115351601B
- Authority
- CN
- China
- Prior art keywords
- working condition
- monitoring
- tool wear
- signal
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 113
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000013526 transfer learning Methods 0.000 title claims abstract description 35
- 230000006870 function Effects 0.000 claims abstract description 22
- 238000009826 distribution Methods 0.000 claims abstract description 17
- 238000012549 training Methods 0.000 claims abstract description 9
- 238000003754 machining Methods 0.000 claims abstract description 5
- 238000005299 abrasion Methods 0.000 claims abstract 12
- 238000005520 cutting process Methods 0.000 claims description 35
- 230000008569 process Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 8
- 230000008030 elimination Effects 0.000 claims description 5
- 238000003379 elimination reaction Methods 0.000 claims description 5
- 238000013507 mapping Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000013508 migration Methods 0.000 claims description 3
- 230000005012 migration Effects 0.000 claims description 3
- 238000007781 pre-processing Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims 2
- 239000008186 active pharmaceutical agent Substances 0.000 claims 1
- 238000003860 storage Methods 0.000 claims 1
- 238000013135 deep learning Methods 0.000 abstract description 3
- 238000004519 manufacturing process Methods 0.000 description 9
- 230000006978 adaptation Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000006731 degradation reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011176 pooling Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012821 model calculation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q17/00—Arrangements for observing, indicating or measuring on machine tools
- B23Q17/09—Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool
- B23Q17/0952—Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool during machining
- B23Q17/0957—Detection of tool breakage
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Mechanical Engineering (AREA)
- Numerical Control (AREA)
- Machine Tool Sensing Apparatuses (AREA)
Abstract
Description
技术领域Technical Field
本发明属于数控加工中心刀具磨损状态预测技术领域,更具体地,涉及一种基于迁移学习的刀具磨损监测方法。The present invention belongs to the technical field of tool wear state prediction of CNC machining centers, and more specifically, relates to a tool wear monitoring method based on transfer learning.
背景技术Background technique
刀具性能是企业实际生产中生产效率和加工质量的基本保障,支撑着整个制造领域的生产技术水平和经济效益。精准预测刀具磨损值能够在最大化刀具使用率、降低生产成本的同时,保证零件加工精度,避免设备损坏。在工厂的实际生产中,同一型号的刀具往往会面向不同工件材料进行切削加工,由于工件材料的物理化学性质不同,刀具在切削加工中的退化过程也会呈现出不同的趋势,但磨损标签采集过程繁琐,因此如何将利用历史数据和对应磨损值标签训练得到的监测模型迅速适配到只有少量数据样本的新工件材料加工过程中进行应用是当前亟需解决的问题。Tool performance is the basic guarantee for production efficiency and processing quality in the actual production of enterprises, and supports the production technology level and economic benefits of the entire manufacturing field. Accurately predicting tool wear values can maximize tool utilization and reduce production costs while ensuring part processing accuracy and avoiding equipment damage. In actual factory production, tools of the same model are often used for cutting different workpiece materials. Due to the different physical and chemical properties of workpiece materials, the degradation process of tools during cutting will also show different trends. However, the wear label collection process is cumbersome. Therefore, how to quickly adapt the monitoring model trained using historical data and corresponding wear value labels to the processing of new workpiece materials with only a small amount of data samples is an urgent problem that needs to be solved.
在具备大量历史数据和对应磨损标签值和背景下,采集少量新工件材料切削过程的监测数据,研究模型的快速适配迁移方法,可以避免为了重新建立监测模型而必须采集大量新工件材料切削过程监测数据的需求,节省时间,提升模型的开发效率,是当前刀具状态在线监测技术的发展需要。In the presence of a large amount of historical data and corresponding wear label values and background, a small amount of monitoring data on the cutting process of new workpiece materials is collected, and the method of rapid adaptation and migration of the model is studied. This can avoid the need to collect a large amount of monitoring data on the cutting process of new workpiece materials in order to re-establish the monitoring model, save time, and improve the efficiency of model development. This is the development need of the current online tool status monitoring technology.
随着工业大数据的发展和应用,传统刀具磨损监测方法逐渐被具有特征自主学习的深度网络预测方法所取代,在海量加工过程监测数据的背景下,更加突显出深度学习对于大数据处理的优势。但当前的深度学习模型通常只能面向单一工况进行建模,诸如当工件材料发生变化时,已有模型通常会失效。With the development and application of industrial big data, traditional tool wear monitoring methods are gradually being replaced by deep network prediction methods with feature autonomous learning. In the context of massive processing process monitoring data, the advantages of deep learning for big data processing are more prominent. However, current deep learning models can usually only model a single working condition. For example, when the workpiece material changes, the existing model usually fails.
发明内容Summary of the invention
针对当前基于深度学习的刀具磨损监测模型只能面向单一工况进行建模的问题,本发明提供一种基于迁移学习的刀具磨损监测方法。In view of the problem that the current tool wear monitoring model based on deep learning can only be modeled for a single working condition, the present invention provides a tool wear monitoring method based on transfer learning.
本发明的一种基于迁移学习的刀具磨损监测方法,包括:A tool wear monitoring method based on transfer learning of the present invention comprises:
S1、采集原始工况和新工况下加工过程的监测信号,监测信号包括切削力信号、振动信号和声发射信号;S1, collecting monitoring signals of the machining process under the original working condition and the new working condition, the monitoring signals including cutting force signals, vibration signals and acoustic emission signals;
S2、获取原始工况下和新工况下的刀具磨损值标签,与监测信号整合,得到带标签的原始工况数据集和新工况数据集;S2, obtaining tool wear value labels under the original working condition and the new working condition, integrating them with the monitoring signal, and obtaining the labeled original working condition data set and the new working condition data set;
S3、S3,
构建基于边缘分布自适应的迁移学习模型,迁移学习模型包括特征适配器、两个原始工况刀具磨损监测模型、回归网络1和回归网络2;A transfer learning model based on edge distribution adaptation is constructed. The transfer learning model includes a feature adapter, two original working condition tool wear monitoring models, regression network 1 and regression network 2.
原始工况刀具磨损监测模型1用于对原始工况数据集中的监测信号进行高维嵌入空间的特征提取,提取出的特征输入至回归网络1中;The original working condition tool wear monitoring model 1 is used to extract the features of the monitoring signal in the original working condition data set in the high-dimensional embedding space, and the extracted features are input into the regression network 1;
原始工况刀具磨损监测模型2用于对新工况数据集中的监测信号进行高维嵌入空间的特征提取,提取出的特征输入至回归网络2中;The original working condition tool wear monitoring model 2 is used to extract the features of the monitoring signals in the new working condition data set in the high-dimensional embedding space, and the extracted features are input into the regression network 2;
回归网络1用于拟合输入特征和原始工况数据集中刀具磨损值之间的非线性关系;Regression network 1 is used to fit the nonlinear relationship between the input features and the tool wear values in the original working condition data set;
回归网络2用于拟合输入特征和新工况数据集中刀具磨损值之间的非线性关系;Regression network 2 is used to fit the nonlinear relationship between input features and tool wear values in the new working condition data set;
特征适配器用于获取原始工况数据集中特征和新工况数据集中特征的分布差异;The feature adapter is used to obtain the distribution difference between the features in the original working condition data set and the features in the new working condition data set;
S4、以最小化迁移学习模型损失函数为目标,基于带标签的原始工况数据集和新工况数据集训练迁移学习模型,训练完成获得的原始工况刀具磨损监测模型2和回归网络2为新工况刀具磨损监测模型;S4, with the goal of minimizing the loss function of the transfer learning model, the transfer learning model is trained based on the labeled original working condition data set and the new working condition data set, and the original working condition tool wear monitoring model 2 and regression network 2 obtained after training are the new working condition tool wear monitoring model;
S5、获取新工况当前时刻的监测信号,将监测信号输入至新工况刀具磨损监测模型进行预测。S5. Obtain the monitoring signal of the new working condition at the current moment, and input the monitoring signal into the tool wear monitoring model of the new working condition for prediction.
作为优选,S4中,迁移学习模型损失函数为:Preferably, in S4, the loss function of the transfer learning model is:
式中,In the formula,
DS表示原始工况刀具磨损监测模型1提取的特征;D S represents the features extracted by the tool wear monitoring model 1 in the original working condition;
DT表示原始工况刀具磨损监测模型2提取的特征;D T represents the features extracted by the tool wear monitoring model 2 in the original working condition;
MMD2(DS,DT)表示特征适配器获得的分布差异;MMD 2 (D S ,D T ) represents the distribution difference obtained by the feature adapter;
表示回归网络1的回归损失; represents the regression loss of regression network 1;
表示回归网络2的回归损失; represents the regression loss of regression network 2;
yS表示对原始工况数据集中与DS对应的刀具磨损值;y S represents the tool wear value corresponding to D S in the original working condition data set;
yT表示对新工况数据集中与DT对应的刀具磨损值;y T represents the tool wear value corresponding to D T in the new working condition data set;
L表示总损失。L represents the total loss.
作为优选,所述方法还包括:Preferably, the method further comprises:
S6、将S5预测的当前时刻刀具磨损预测值与前若干时间段内的刀具磨损预测值组成时序数列,对组成的时序数列进行最小二乘法拟合,得到当前时刻预测值,将最小二乘拟合的预测值和S5的刀具磨损预测值进行比较,如果差值大于设定阈值,使用最小二乘拟合的预测值作为当前时刻的预测磨损值,否则,保留S5的刀具磨损预测值,转入S5,进行下一时刻预测。S6. Combine the tool wear prediction value at the current moment predicted by S5 and the tool wear prediction values in the previous time periods into a time series, perform least squares fitting on the composed time series to obtain the prediction value at the current moment, compare the prediction value of the least squares fitting with the tool wear prediction value of S5, if the difference is greater than the set threshold, use the prediction value of the least squares fitting as the predicted wear value at the current moment, otherwise, retain the tool wear prediction value of S5, transfer to S5, and make prediction at the next moment.
作为优选,S6中,对组成的时序数列进行最小二乘法拟合,目标函数和约束条件包括;Preferably, in S6, the least squares method is fitted to the composed time series, and the objective function and constraint conditions include:
s.t.2θ2xi+θ1≥0st2θ 2 x i +θ 1 ≥ 0
其中,yi表示刀具磨损预测值时序数列中某一时刻的磨损预测值;Among them, yi represents the wear prediction value at a certain moment in the tool wear prediction value time series;
xi表示对应的切削行程序号;θ0、θ1、θ2表示二次多项式系数。 xi represents the corresponding cutting program number; θ0 , θ1 , θ2 represent the coefficients of the quadratic polynomial.
作为优选,所述S1中,切削力信号通过在工件底部布置切削力传感器采集获取,振动信号通过在工件和机床工作台布置振动传感器采集获取,声发射信号通过在机床工作台布置声发射传感器采集获取。Preferably, in S1, the cutting force signal is acquired by arranging a cutting force sensor at the bottom of the workpiece, the vibration signal is acquired by arranging vibration sensors on the workpiece and the machine tool worktable, and the acoustic emission signal is acquired by arranging an acoustic emission sensor on the machine tool worktable.
作为优选,所述S2中的监测信号为预处理后的信号,所述预处理包括:Preferably, the monitoring signal in S2 is a preprocessed signal, and the preprocessing includes:
S21、在切削进给开始后进行监测信号偏移消除,设定时间段,计算各传感器信号的平均值,并将该平均值作为偏移值从信号中减去,同时计算信号的标准偏差,作为标准偏差基础值,表征监测信号在未进行切削时的波动程度;S21, after the cutting feed starts, the monitoring signal offset is eliminated, a time period is set, the average value of each sensor signal is calculated, and the average value is subtracted from the signal as the offset value, and the standard deviation of the signal is calculated as the standard deviation base value to characterize the fluctuation degree of the monitoring signal when no cutting is performed;
S22、:在进给过程中周期性计算信号的标准偏差,当标准偏差大于基础值的3倍时,将该时刻标记为切削开始点,并清除开始点以前的监测信号,完成空切段消除;S22: periodically calculate the standard deviation of the signal during the feeding process. When the standard deviation is greater than 3 times the base value, mark the moment as the cutting start point, and clear the monitoring signal before the start point to complete the empty cutting elimination;
S23、截取稳定切削段的监测信号,对各路监测信号进行Z分数标准化,表达式为:S23, intercept the monitoring signal of the stable cutting section, and perform Z score standardization on each monitoring signal, the expression is:
其中,x表示样本中某通道信号上某样本点的值;Where x represents the value of a sample point on a channel signal in the sample;
μ表示x这一通道信号数据全部样本点的均值;μ represents the mean of all sample points of the signal data in the channel x;
σ表示x这一通道信号数据全部样本点的标准差;σ represents the standard deviation of all sample points of the signal data of the channel x;
S24、对Z分数标准化后的数据以滑动窗口的方式进行降采样处理,计算滑动窗口内数据的前四阶矩统计量:均值、方差、偏度和峰度,即:将所述监测信号转换为四维数据。S24, downsampling the data after Z-score standardization in a sliding window manner, and calculating the first four moment statistics of the data in the sliding window: mean, variance, skewness and kurtosis, that is, converting the monitoring signal into four-dimensional data.
作为优选,所述S2中,采用便携式显微镜拍照的方式记录刀具在切削过程中磨损变化趋势,并结合显微镜像素大小、分辨率和放大倍数对刀具磨损值进行标记,再将磨损值与对应时间段的刀具监测信号进行整合,得到带标签的原始工况数据集和新工况数据集。Preferably, in S2, a portable microscope is used to take photos to record the wear trend of the tool during the cutting process, and the tool wear value is marked in combination with the microscope pixel size, resolution and magnification, and the wear value is then integrated with the tool monitoring signal of the corresponding time period to obtain a labeled original working condition data set and a new working condition data set.
作为优选,所述S4中,所述特征适配器采用最大均值差异法计算分布差异:Preferably, in S4, the feature adapter calculates the distribution difference using the maximum mean difference method:
式中,φ(·)表示映射,用于把原变量映射到再生核希尔伯特空间中;In the formula, φ(·) represents a mapping, which is used to map the original variable into the reproducing kernel Hilbert space;
DSi表示原始工况刀具磨损监测模型1提取的第i特征,共n个特征;D Si represents the i-th feature extracted by the tool wear monitoring model 1 of the original working condition, with a total of n features;
DTj表示原始工况刀具磨损监测模型2提取的第j特征,共m个特征;D Tj represents the jth feature extracted by the tool wear monitoring model 2 of the original working condition, with a total of m features;
k(·)表示核函数;k(·) represents the kernel function;
表示在希尔伯特空间下计算函数平方和。 It means to calculate the sum of squares of functions in Hilbert space.
本发明的有益效果:本发明同时实现了利用原有工况下训练的得到的预测模型,结合少量新工况下的监测数据,快速适配新工件材料加工过程的刀具磨损值预测目的,有效降低了新模型训练的数据量需求,提升监测模型开发效率,保证生产连续性。本发明实现数控刀具的预测性维护,对实际生产具有重要意义。Beneficial effects of the present invention: The present invention simultaneously realizes the use of the prediction model obtained by training under the original working conditions, combined with a small amount of monitoring data under new working conditions, to quickly adapt to the tool wear value prediction purpose of the new workpiece material processing process, effectively reducing the data volume required for new model training, improving the efficiency of monitoring model development, and ensuring production continuity. The present invention realizes predictive maintenance of CNC tools, which is of great significance to actual production.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例提供的一种基于迁移学习的刀具磨损监测模型的流程图。FIG1 is a flow chart of a tool wear monitoring model based on transfer learning provided in an embodiment of the present invention.
图2为本发明源域振动信号消除空切示意图。FIG. 2 is a schematic diagram of eliminating empty cutting of source domain vibration signals according to the present invention.
图3为本发明深度卷积残差网络结构示意图,Input表示输入模型的4维时域统计特征数据,Conv表示卷积层,BN表示批归一化层,ReLU表示线性整流函数,Max Pool表示最大池化层,Adaptive AvgPool表示自适应平均池化层,Flatten表示展平层,Linear表示线性层,Output表示模型输出的刀具磨损预测值。Figure 3 is a schematic diagram of the deep convolutional residual network structure of the present invention, Input represents the 4-dimensional time domain statistical feature data of the input model, Conv represents the convolution layer, BN represents the batch normalization layer, ReLU represents the linear rectification function, Max Pool represents the maximum pooling layer, Adaptive AvgPool represents the adaptive average pooling layer, Flatten represents the flattening layer, Linear represents the linear layer, and Output represents the tool wear prediction value output by the model.
图4为本发明所采用的边缘分布自适应原理图。FIG. 4 is a diagram showing the principle of edge distribution adaptation adopted by the present invention.
图5为本发明迁移学习模型的原理示意图。FIG5 is a schematic diagram showing the principle of the transfer learning model of the present invention.
图6为本发明对预测磨损值的平滑流程。FIG. 6 is a smoothing process for predicting wear values according to the present invention.
图7为本发明迁移学习模型训练结果图。FIG7 is a diagram showing the training results of the transfer learning model of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
下面结合附图和具体实施例对本发明作进一步说明,但不作为本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
本实施方式的基于迁移学习的刀具磨损监测方法,包括:The tool wear monitoring method based on transfer learning in this embodiment includes:
步骤1、采集原始工况和新工况下加工过程的监测信号,监测信号包括切削力信号、振动信号和声发射信号;Step 1, collecting monitoring signals of the machining process under the original working condition and the new working condition, the monitoring signals including cutting force signals, vibration signals and acoustic emission signals;
步骤2、获取原始工况下和新工况下的刀具磨损值标签,与监测信号整合,得到带标签的原始工况数据集和新工况数据集;Step 2: Obtain tool wear value labels under the original working condition and the new working condition, and integrate them with the monitoring signal to obtain the labeled original working condition data set and the new working condition data set;
步骤3、构建基于边缘分布自适应的迁移学习模型,迁移学习模型包括特征适配器、两个原始工况刀具磨损监测模型和两个回归网络;Step 3: construct a transfer learning model based on edge distribution adaptation, which includes a feature adapter, two original working condition tool wear monitoring models and two regression networks;
原始工况刀具磨损监测模型1用于对原始工况数据集中的监测信号进行高维嵌入空间的特征提取,提取出的特征分别输入至回归网络1中;The original working condition tool wear monitoring model 1 is used to extract the features of the monitoring signals in the original working condition data set in the high-dimensional embedding space, and the extracted features are respectively input into the regression network 1;
原始工况刀具磨损监测模型2用于对新工况数据集中的监测信号进行高维嵌入空间的特征提取,提取出的特征分别输入至两个回归网络2中;The original working condition tool wear monitoring model 2 is used to extract the features of the monitoring signals in the new working condition data set in the high-dimensional embedding space, and the extracted features are respectively input into two regression networks 2;
回归网络1用于拟合输入特征和原始工况数据集中刀具磨损值之间的非线性关系;Regression network 1 is used to fit the nonlinear relationship between the input features and the tool wear values in the original working condition data set;
回归网络2用于拟合输入特征和新工况数据集中刀具磨损值之间的非线性关系;Regression network 2 is used to fit the nonlinear relationship between input features and tool wear values in the new working condition data set;
特征适配器用于获取原始工况数据集中特征和新工况数据集中特征的分布差异;The feature adapter is used to obtain the distribution difference between the features in the original working condition data set and the features in the new working condition data set;
步骤4、以最小化迁移学习模型损失函数为目标,基于带标签的原始工况数据集和新工况数据集训练迁移学习模型,训练完成获得的原始工况刀具磨损监测模型2和回归网络2为新工况刀具磨损监测模型;Step 4, with the goal of minimizing the loss function of the transfer learning model, the transfer learning model is trained based on the labeled original working condition data set and the new working condition data set, and the original working condition tool wear monitoring model 2 and regression network 2 obtained after training are used as the new working condition tool wear monitoring model;
步骤5、获取新工况当前时刻的监测信号,将监测信号输入至新工况刀具磨损监测模型进行预测。Step 5: Obtain the monitoring signal of the new working condition at the current moment, and input the monitoring signal into the tool wear monitoring model of the new working condition for prediction.
本实施方式利用迁移学习的理念,最大化利用预测任务之间的内在相似性,寻找两种工况下刀具退化趋势的内在联系和差异,利用算法进行两种工况下的特征边缘分布适配,进而获得应用在新加工材料的预测模型。本实施方式采集原始工件材料工况和新工件材料工况下的监测信号,获取原始工况下和少量新工况下的刀具磨损标签,整合得到带标签的原始工况数据集和新工况数据集;构建迁移学习模型,再通过迁移学习建立新工况下的监测模型,在降低对目标域带标签数据需求同时,也解决了当工件材料变化时原有刀具磨损监测模型泛化性应用问题。This implementation method uses the concept of transfer learning to maximize the use of the inherent similarities between prediction tasks, find the inherent connections and differences in tool degradation trends under two working conditions, and use algorithms to adapt the feature edge distribution under the two working conditions, thereby obtaining a prediction model for new processing materials. This implementation method collects monitoring signals under the original workpiece material working condition and the new workpiece material working condition, obtains tool wear labels under the original working condition and a small number of new working conditions, and integrates them to obtain labeled original working condition data sets and new working condition data sets; constructs a transfer learning model, and then establishes a monitoring model under new working conditions through transfer learning. While reducing the demand for labeled data in the target domain, it also solves the problem of generalization application of the original tool wear monitoring model when the workpiece material changes.
优选实施例,步骤1中,切削力信号通过在工件底部布置切削力传感器采集获取,振动信号通过在工件和机床工作台布置振动传感器采集获取,声发射信号通过在机床工作台布置声发射传感器采集获取。In a preferred embodiment, in step 1, the cutting force signal is acquired by arranging a cutting force sensor at the bottom of the workpiece, the vibration signal is acquired by arranging vibration sensors on the workpiece and the machine tool worktable, and the acoustic emission signal is acquired by arranging an acoustic emission sensor on the machine tool worktable.
优选实施例,步骤2中,监测信号为预处理后的信号,采用便携式显微镜拍照的方式记录刀具在切削过程中磨损变化趋势,并结合显微镜像素大小、分辨率和放大倍数对刀具磨损值进行标记,再将磨损值与对应时间段的刀具监测信号进行整合,得到带标签的原始工况数据集和新工况数据集。In a preferred embodiment, in step 2, the monitoring signal is a preprocessed signal, and a portable microscope is used to take pictures to record the wear trend of the tool during the cutting process, and the tool wear value is marked in combination with the microscope pixel size, resolution and magnification. The wear value is then integrated with the tool monitoring signal of the corresponding time period to obtain a labeled original working condition data set and a new working condition data set.
预处理的步骤包括:The preprocessing steps include:
步骤21、在切削进给开始后进行监测信号偏移消除。计算进给运动开始后120ms时间段传感器信号的平均值,并将该平均值作为偏移值从信号中减去,同时计算该过程中信号的标准偏差,作为标准偏差基础值,表征监测信号在未进行切削时的波动程度;Step 21, after the cutting feed starts, the monitoring signal offset is eliminated. The average value of the sensor signal in the 120ms period after the feed motion starts is calculated, and the average value is subtracted from the signal as the offset value. At the same time, the standard deviation of the signal in this process is calculated as the standard deviation base value, which characterizes the fluctuation degree of the monitoring signal when no cutting is performed;
步骤22、在进给过程中每400ms计算一次标准偏差,当标准偏差大于基础值3倍时,将该时刻标记为切削开始点,并清除开始点以前的监测信号,完成空切段消除,图2展示了空切段消除的过程;Step 22: Calculate the standard deviation every 400ms during the feeding process. When the standard deviation is greater than 3 times the base value, mark the moment as the cutting start point, and clear the monitoring signal before the start point to complete the empty cutting elimination. Figure 2 shows the process of empty cutting elimination.
步骤23、截取稳定切削段的监测信号,保留监测信号长度为100000的采样点,并对各路监测信号进行Z分数标准化,表达式为:Step 23: intercept the monitoring signal of the stable cutting segment, retain the sampling points with a monitoring signal length of 100,000, and perform Z-score standardization on each monitoring signal. The expression is:
其中,x表示样本中某通道信号上某样本点的值;Where x represents the value of a sample point on a channel signal in the sample;
μ表示x这一通道信号数据全部样本点的均值;μ represents the mean of all sample points of the signal data in the channel x;
σ表示x这一通道信号数据全部样本点的标准差;σ represents the standard deviation of all sample points of the signal data of the channel x;
步骤24、对Z分数标准化后的数据以滑动窗口的方式进行降采样处理,计算滑动窗口内数据的前四阶矩统计量:均值、方差、偏度和峰度,即:将所述监测信号转换为四维数据,从而使样本长度下降,降低模型计算量,所述统计量的计算公式包括:Step 24, downsample the data after Z score standardization in a sliding window manner, and calculate the first four moment statistics of the data in the sliding window: mean, variance, skewness and kurtosis, that is, convert the monitoring signal into four-dimensional data, so as to reduce the sample length and the amount of model calculation. The calculation formula of the statistics includes:
其中,表示数据均值;xms表示数据方差;α表示数据偏度;β表示数据峰度;in, represents the data mean; x ms represents the data variance; α represents the data skewness; β represents the data kurtosis;
xi表示某一路传感信号的第i样本点;n表示滑动窗口的采样长度。 Xi represents the i-th sample point of a certain sensor signal; n represents the sampling length of the sliding window.
优选实施例中,步骤3中的原始工况刀具磨损监测模型采用深度卷积残差网络对输入信号进行高维嵌入空间的特征提取,该网络主要由残差基本块堆叠构成,残差卷积神经网络整体架构参数设置如表1所示,网络结构如图3所示;In a preferred embodiment, the original working condition tool wear monitoring model in step 3 uses a deep convolution residual network to extract features of the input signal in a high-dimensional embedding space. The network is mainly composed of a stack of residual basic blocks. The overall architecture parameter settings of the residual convolution neural network are shown in Table 1, and the network structure is shown in Figure 3;
表1残差神经网络结构设置Table 1 Residual neural network structure settings
特征适配器采用最大均值差异作为源域特征和目标域特征分布差异的度量,所采用的边缘分布自适应原理如图4所示;The feature adapter uses the maximum mean difference as a measure of the difference in the distribution of source domain features and target domain features. The principle of edge distribution adaptation used is shown in Figure 4;
特征适配器采用最大均值差异法计算分布差异:The feature adapter uses the maximum mean difference method to calculate the distribution difference:
式中,φ(·)表示映射,用于把原变量映射到再生核希尔伯特空间中;In the formula, φ(·) represents a mapping, which is used to map the original variable into the reproducing kernel Hilbert space;
DSi表示原始工况刀具磨损监测模型1提取的第i特征,共n个特征;D Si represents the i-th feature extracted by the tool wear monitoring model 1 of the original working condition, with a total of n features;
DTj表示原始工况刀具磨损监测模型2提取的第j特征,共m个特征;k(·)表示核函数;表示在希尔伯特空间下计算函数平方和。D Tj represents the jth feature extracted by the original working condition tool wear monitoring model 2, with a total of m features; k(·) represents the kernel function; It means to calculate the sum of squares of functions in Hilbert space.
其中,核函数选取高斯径向基函数,将有限维数据映射到高维空间,高斯径向基函数的计算公式包括:Among them, the kernel function selects the Gaussian radial basis function to map the finite-dimensional data to the high-dimensional space. The calculation formula of the Gaussian radial basis function includes:
式中,x′表示核函数中心点;In the formula, x′ represents the center point of the kernel function;
x表示空间中任意一点;x represents any point in space;
σ表示带宽,用于控制函数的径向作用范围。σ represents the bandwidth, which is used to control the radial range of the function.
回归网络由全连接神经网络构成,作用是拟合高维嵌入特征和刀具磨损值之间的非线性关系。The regression network consists of a fully connected neural network, which is used to fit the nonlinear relationship between high-dimensional embedded features and tool wear values.
迁移学习模型的原理如图5所示。The principle of the transfer learning model is shown in Figure 5.
优选实施例中,步骤4中的迁移学习模型损失函数为:In a preferred embodiment, the transfer learning model loss function in step 4 is:
式中,DS表示原始工况刀具磨损监测模型1提取的特征;Where D S represents the features extracted by the tool wear monitoring model 1 in the original working condition;
DT表示原始工况刀具磨损监测模型2提取的特征;D T represents the features extracted by the tool wear monitoring model 2 in the original working condition;
MMD2(DS,DT)表示特征适配器获得的分布差异;MMD 2 (D S ,D T ) represents the distribution difference obtained by the feature adapter;
表示回归网络1的回归损失; represents the regression loss of regression network 1;
表示回归网络2的回归损失; represents the regression loss of regression network 2;
yS表示对原始工况数据集中与DS对应的刀具磨损值;y S represents the tool wear value corresponding to D S in the original working condition data set;
yT表示对新工况数据集中与DT对应的刀具磨损值;y T represents the tool wear value corresponding to D T in the new working condition data set;
L表示总损失。L represents the total loss.
优选实施例中,本实施方式的方法还包括:In a preferred embodiment, the method of this embodiment further includes:
如图6所示,步骤6、将步骤5预测的当前时刻刀具磨损预测值与前若干时间段内的刀具磨损预测值组成时序数列,对组成的时序数列进行最小二乘法拟合,得到当前时刻预测值,将最小二乘拟合的预测值和步骤5的刀具磨损预测值进行比较,如果差值大于设定阈值,使用最小二乘拟合的预测值作为当前时刻的预测磨损值,否则,保留步骤5的刀具磨损预测值,转入步骤5,进行下一时刻预测。As shown in Figure 6, step 6, the tool wear prediction value at the current moment predicted in step 5 and the tool wear prediction values in the previous time periods are combined into a time series, and the composed time series is fitted by the least squares method to obtain the prediction value at the current moment, and the prediction value of the least squares fitting is compared with the tool wear prediction value of step 5. If the difference is greater than the set threshold, the prediction value of the least squares fitting is used as the predicted wear value at the current moment, otherwise, the tool wear prediction value of step 5 is retained, and the process goes to step 5 to make the prediction for the next moment.
步骤6中,对组成的时序数列进行最小二乘法拟合,目标函数和约束条件包括;In step 6, the least squares method is used to fit the composed time series, and the objective function and constraints include:
s.t.2θ2xi+θ1≥0st2θ 2 x i +θ 1 ≥ 0
其中,yi表示刀具磨损预测值时序数列中某一时刻的磨损预测值;Among them, yi represents the wear prediction value at a certain moment in the tool wear prediction value time series;
xi表示对应的切削行程序号;θ0、θ1、θ2表示二次多项式系数。 xi represents the corresponding cutting program number; θ0 , θ1 , θ2 represent the coefficients of the quadratic polynomial.
利用迁移学习得到的刀具磨损监测模型对新工件材料切削过程刀具磨损状态进行监测,如图7所示,预测结果逼近刀具磨损真实值,说明本发明提供的刀具磨损状态监测模型具备工况迁移的能力,并且能够精确的预测新工况下刀具的磨损状态,对于实际生产具有重要意义。The tool wear monitoring model obtained by transfer learning is used to monitor the tool wear status of the cutting process of new workpiece materials. As shown in Figure 7, the prediction result is close to the actual value of tool wear, which shows that the tool wear status monitoring model provided by the present invention has the ability to migrate working conditions and can accurately predict the wear status of the tool under new working conditions, which is of great significance for actual production.
虽然在本文中参照了特定的实施方式来描述本发明,但是应该理解的是,这些实施例仅仅是本发明的原理和应用的示例。因此应该理解的是,可以对示例性的实施例进行许多修改,并且可以设计出其他的布置,只要不偏离所附权利要求所限定的本发明的精神和范围。应该理解的是,可以通过不同于原始权利要求所描述的方式来结合不同的从属权利要求和本文中所述的特征。还可以理解的是,结合单独实施例所描述的特征可以使用在其他所述实施例中。Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that features described in conjunction with individual embodiments may be used in other described embodiments.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211199862.2A CN115351601B (en) | 2022-09-29 | 2022-09-29 | A tool wear monitoring method based on transfer learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211199862.2A CN115351601B (en) | 2022-09-29 | 2022-09-29 | A tool wear monitoring method based on transfer learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115351601A CN115351601A (en) | 2022-11-18 |
CN115351601B true CN115351601B (en) | 2024-05-28 |
Family
ID=84008301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211199862.2A Active CN115351601B (en) | 2022-09-29 | 2022-09-29 | A tool wear monitoring method based on transfer learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115351601B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116540627B (en) * | 2023-02-07 | 2024-04-12 | 广东工业大学 | Machine tool thermal error prediction and compensation group control method and system based on deep transfer learning |
CN115847187B (en) * | 2023-02-27 | 2023-05-05 | 成都大金航太科技股份有限公司 | Real-time monitoring system for deep and narrow groove turning |
CN116992954A (en) * | 2023-09-26 | 2023-11-03 | 南京航空航天大学 | A similarity measure transfer learning method based on UMAP data dimensionality reduction |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005125480A (en) * | 2003-09-30 | 2005-05-19 | Allied Material Corp | Cutting method having function for diagnosing tool life |
CN102091972A (en) * | 2010-12-28 | 2011-06-15 | 华中科技大学 | Numerical control machine tool wear monitoring method |
CN102765010A (en) * | 2012-08-24 | 2012-11-07 | 常州大学 | Cutter damage and abrasion state detecting method and cutter damage and abrasion state detecting system |
CN108942409A (en) * | 2018-08-26 | 2018-12-07 | 西北工业大学 | The modeling and monitoring method of tool abrasion based on residual error convolutional neural networks |
CN109822399A (en) * | 2019-04-08 | 2019-05-31 | 浙江大学 | Prediction method of tool wear state of CNC machine tool based on parallel deep neural network |
CN112192318A (en) * | 2020-09-28 | 2021-01-08 | 北京天泽智云科技有限公司 | Machining tool state monitoring method and system |
CN112518425A (en) * | 2020-12-10 | 2021-03-19 | 南京航空航天大学 | Intelligent machining cutter wear prediction method based on multi-source sample migration reinforcement learning |
-
2022
- 2022-09-29 CN CN202211199862.2A patent/CN115351601B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005125480A (en) * | 2003-09-30 | 2005-05-19 | Allied Material Corp | Cutting method having function for diagnosing tool life |
CN102091972A (en) * | 2010-12-28 | 2011-06-15 | 华中科技大学 | Numerical control machine tool wear monitoring method |
CN102765010A (en) * | 2012-08-24 | 2012-11-07 | 常州大学 | Cutter damage and abrasion state detecting method and cutter damage and abrasion state detecting system |
CN108942409A (en) * | 2018-08-26 | 2018-12-07 | 西北工业大学 | The modeling and monitoring method of tool abrasion based on residual error convolutional neural networks |
CN109822399A (en) * | 2019-04-08 | 2019-05-31 | 浙江大学 | Prediction method of tool wear state of CNC machine tool based on parallel deep neural network |
CN112192318A (en) * | 2020-09-28 | 2021-01-08 | 北京天泽智云科技有限公司 | Machining tool state monitoring method and system |
CN112518425A (en) * | 2020-12-10 | 2021-03-19 | 南京航空航天大学 | Intelligent machining cutter wear prediction method based on multi-source sample migration reinforcement learning |
Also Published As
Publication number | Publication date |
---|---|
CN115351601A (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115351601B (en) | A tool wear monitoring method based on transfer learning | |
WO2019001220A1 (en) | Decision tree based turning process energy consumption prediction system and method of numerically controlled lathe | |
CN113780153B (en) | Cutter wear monitoring and predicting method | |
CN111832432B (en) | A real-time prediction method of tool wear based on wavelet packet decomposition and deep learning | |
CN114749996A (en) | Tool residual life prediction method based on deep learning and time sequence regression model | |
CN110263474A (en) | A kind of cutter life real-time predicting method of numerically-controlled machine tool | |
CN117289668B (en) | Distributed speed reducer network cooperative control method, device, equipment and storage medium | |
CN116760772B (en) | Control system and method for converging flow divider | |
CN118732628B (en) | Twin decision-making method for machine tool processing based on knowledge enhancement of large language model | |
CN118332017B (en) | Monitoring self-adaptive regulation and control method and device for movable formwork bridge fabrication machine | |
CN117450635A (en) | Fresh air system control method based on big data analysis | |
CN118113082A (en) | Intelligent agricultural greenhouse environment monitoring system based on Internet of things | |
CN116204774A (en) | Cutter abrasion stability prediction method based on hierarchical element learning | |
CN116372665A (en) | A tool health monitoring method for aviation CNC machine tools based on OPC UA | |
CN113570254B (en) | A method for industrial data quality analysis | |
CN118884883A (en) | A CNC machining intelligent monitoring method and system based on industrial Internet of Things | |
CN118657030A (en) | Mold life prediction and optimization method based on simulation | |
CN118499201A (en) | Automatic wind error angle prediction method for wind direction instrument of fan and related equipment | |
CN113569453A (en) | A Process-Oriented Migration Method for Digital Twin Product Models | |
CN117876596A (en) | Sand table type factory production simulation prediction method and system | |
CN114926075A (en) | Mechanical part production scheduling method based on man-hour prediction | |
CN113673166A (en) | Digital twin model working condition self-adaption method and system for machining quality prediction | |
CN116540627B (en) | Machine tool thermal error prediction and compensation group control method and system based on deep transfer learning | |
CN116911469B (en) | Numerical control machine tool machining time prediction method | |
CN118795839B (en) | A method and system for predicting energy consumption of CNC milling machine based on time parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |