CN114429152A - Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption - Google Patents
Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption Download PDFInfo
- Publication number
- CN114429152A CN114429152A CN202111677762.1A CN202111677762A CN114429152A CN 114429152 A CN114429152 A CN 114429152A CN 202111677762 A CN202111677762 A CN 202111677762A CN 114429152 A CN114429152 A CN 114429152A
- Authority
- CN
- China
- Prior art keywords
- domain
- loss
- sample
- fault diagnosis
- discriminator
- 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.)
- Pending
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 95
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000005096 rolling process Methods 0.000 title claims abstract description 26
- 230000008485 antagonism Effects 0.000 title claims 11
- 238000009826 distribution Methods 0.000 claims abstract description 102
- 238000012549 training Methods 0.000 claims abstract description 35
- 230000008569 process Effects 0.000 claims abstract description 14
- 230000006870 function Effects 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 17
- 230000006978 adaptation Effects 0.000 claims description 11
- 238000005259 measurement Methods 0.000 claims description 11
- 238000012360 testing method Methods 0.000 claims description 10
- 238000000605 extraction Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 7
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 238000011524 similarity measure Methods 0.000 claims description 5
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 claims description 4
- 230000001133 acceleration Effects 0.000 claims description 4
- 230000003862 health status Effects 0.000 claims description 4
- 230000003044 adaptive effect Effects 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 3
- 230000003042 antagnostic effect Effects 0.000 claims 2
- 238000013508 migration Methods 0.000 description 15
- 230000005012 migration Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 8
- 230000006872 improvement Effects 0.000 description 8
- 238000013528 artificial neural network Methods 0.000 description 6
- 238000013526 transfer learning Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000036541 health Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000005457 optimization Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000010183 spectrum analysis Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2413—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
- G06F18/24133—Distances to prototypes
- G06F18/24137—Distances to cluster centroïds
- G06F18/2414—Smoothing the distance, e.g. radial basis function networks [RBFN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2415—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
-
- 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/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/02—Preprocessing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/08—Feature extraction
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Molecular Biology (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Signal Processing (AREA)
- Probability & Statistics with Applications (AREA)
- Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
Abstract
本发明公开了一种基于动态指数对抗性自适应的滚动轴承故障诊断方法,包括以下步骤:采集不同工况下轴承运行时的振动数据;将源域特征和混合域样本特征作为输入,对抗训练分类器与域鉴别器并对特征提取器进行优化,计算损失;利用损失构建轴承故障诊断模型的目标函数,寻找最佳参数,直至轴承故障诊断模型完成,在训练过程中利用动态指数调节因子缩小源域样本和目标域样本的边缘分布和条件分布差异;将目标域样本输入轴承故障诊断模型,输出轴承故障诊断结果。本发明能够以精确定量地衡量边缘分布和条件分布在整体数据分布中的比重,从而使得模型可以更有针对性的对不同工况下的数据集进行迁移,实现精确地故障诊断。
The invention discloses a fault diagnosis method for a rolling bearing based on dynamic index confrontation and self-adaptation, comprising the following steps: collecting vibration data of the bearing during operation under different working conditions; and domain discriminator and optimize the feature extractor, calculate the loss; use the loss to build the objective function of the bearing fault diagnosis model, find the best parameters, until the bearing fault diagnosis model is completed, use the dynamic index adjustment factor to reduce the source during the training process. The marginal distribution and conditional distribution of domain samples and target domain samples are different; the target domain samples are input into the bearing fault diagnosis model, and the bearing fault diagnosis results are output. The present invention can accurately and quantitatively measure the proportions of edge distribution and conditional distribution in the overall data distribution, so that the model can migrate data sets under different working conditions in a more targeted manner and achieve accurate fault diagnosis.
Description
技术领域technical field
本发明涉及机械故障诊断技术领域,具体涉及一种基于动态指数对抗性自适应的滚动轴承故障诊断方法。The invention relates to the technical field of mechanical fault diagnosis, in particular to a rolling bearing fault diagnosis method based on dynamic index confrontation and self-adaptation.
背景技术Background technique
随着工业的发展,越来越多的旋转机械机器被用于生产和生活中。滚动轴承是旋转机械中最为重要的关键部件之一,其状态直接关系这种旋转机械能否正常运行。故障诊断是一项综合性技术,是保证机械设备安全可靠运行的重要措施。因此,对滚动轴承故障进行诊断,尤其是对于早初期故障的分析,实现快速、准确的轴承故障监测对于机械设备的正常工作以及安全生产具有重大的意义。传统的故障诊断方法,如时域统计分析、小波变换、稀疏表示和傅立叶谱分析,可以实现准确的故障诊断。然而,传统的故障诊断需要工程师丰富的经验和深厚的先验知识。例如,在基于小波去噪的轴承故障诊断方法中,必须手动选择合适的小波基。为了克服这一局限性,再加上人工智能技术的出现和不断的进步,许多研究者将注意力转向了智能故障诊断技术。With the development of industry, more and more rotating mechanical machines are used in production and life. Rolling bearing is one of the most important key components in rotating machinery, and its state is directly related to the normal operation of such rotating machinery. Fault diagnosis is a comprehensive technology and an important measure to ensure the safe and reliable operation of mechanical equipment. Therefore, the diagnosis of rolling bearing faults, especially the analysis of early failures, and the realization of fast and accurate bearing fault monitoring are of great significance for the normal operation of mechanical equipment and safe production. Traditional fault diagnosis methods, such as time-domain statistical analysis, wavelet transform, sparse representation and Fourier spectrum analysis, can achieve accurate fault diagnosis. However, traditional fault diagnosis requires extensive experience and deep prior knowledge of engineers. For example, in a bearing fault diagnosis method based on wavelet denoising, a suitable wavelet base must be selected manually. To overcome this limitation, coupled with the emergence and continuous advancement of artificial intelligence technology, many researchers have turned their attention to intelligent fault diagnosis technology.
智能故障诊断是机器学习理论如人工神经网络、支持向量机和深度神经网络在机器故障诊断中的应用。其中,深度神经网络因其在特征提取方面的优异性能而被广泛应用。然而,基于深度神经网络的故障诊断准确性在很大程度上依赖于训练中涉及的样本数量,但在实际实践中,滚动轴承在不同速度和负载下采集到的故障信号也不同。虽然在实验室中可以在部分工况下获得完整的标记故障信号,但当轴承在可变工况下运行时,获取大量覆盖所有工况的标记故障样本是不现实的。因此,利用已有的标记故障数据对不同于其运行状态的数据进行诊断已成为一项新的挑战。在此背景下,迁移学习成为一种新的解决方案。Intelligent fault diagnosis is the application of machine learning theory such as artificial neural network, support vector machine and deep neural network in machine fault diagnosis. Among them, deep neural networks are widely used due to their excellent performance in feature extraction. However, the accuracy of fault diagnosis based on deep neural networks largely depends on the number of samples involved in training, but in actual practice, the fault signals collected by rolling bearings under different speeds and loads are also different. While it is possible to obtain a complete marked fault signal under some operating conditions in the laboratory, it is impractical to obtain a large number of marked fault samples covering all operating conditions when the bearing is operating under variable operating conditions. Therefore, it has become a new challenge to use the existing labeled fault data to diagnose data different from its operating state. In this context, transfer learning becomes a new solution.
迁移学习可以利用数据、任务或模型之间的相似性,将旧领域学到的模型和知识应用到新领域。领域适应是迁移学习的一个重要研究方向,它针对的是不同领域具有相同任务的场景,是一种直接推动迁移学习。无监督领域自适应问题处理的数据不包含目标域标签,因此如何对齐源域和目标域的数据分布从而实现借助源域有标签数据实现目标域无标签数据的故障诊断成为新的难点。Transfer learning can exploit similarities between data, tasks or models to apply models and knowledge learned in an old domain to a new domain. Domain adaptation is an important research direction of transfer learning, which is aimed at scenarios with the same tasks in different fields, and is a direct promotion of transfer learning. The data processed by the unsupervised domain adaptation problem does not contain the target domain label, so how to align the data distribution of the source domain and the target domain to realize the fault diagnosis of the target domain unlabeled data with the help of the source domain labeled data becomes a new difficulty.
现有的故障诊断方法大多数都侧重于对齐特征的边缘分布,而忽略了类内分布的对齐,即条件分布。这些方法假设条件分布在边缘分布的对齐过程中会自动对齐。这种假设是无效的,对模型有负面的效果。少数考虑条件分布的方法,如联合分布对齐方法,假设了边缘分布对齐和条件分布对齐在整体数据分布对齐中拥有相同的权重,这显然不能适用于所有数据分布。Most of the existing fault diagnosis methods focus on aligning the marginal distribution of features, while ignoring the alignment of within-class distributions, i.e., conditional distributions. These methods assume that conditional distributions are automatically aligned during the alignment of marginal distributions. This assumption is invalid and has a negative effect on the model. Few methods that consider conditional distribution, such as joint distribution alignment method, assume that marginal distribution alignment and conditional distribution alignment have the same weight in the overall data distribution alignment, which obviously cannot be applied to all data distributions.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种基于动态指数对抗性自适应的滚动轴承故障诊断方法,能够以精确定量地衡量边缘分布和条件分布在整体数据分布中的比重,从而使得模型可以更有针对性的对不同工况下的数据集进行迁移,实现精确地故障诊断。The purpose of the present invention is to provide a fault diagnosis method for rolling bearings based on dynamic index adversarial self-adaptation, which can accurately and quantitatively measure the proportion of edge distribution and conditional distribution in the overall data distribution, so that the model can be more targeted. Data sets under different working conditions are migrated to achieve accurate fault diagnosis.
为了解决上述技术问题,本发明提供了基于动态指数对抗性自适应的滚动轴承故障诊断方法,包括以下步骤:In order to solve the above technical problems, the present invention provides a method for diagnosing faults of rolling bearings based on dynamic index confrontation and self-adaptation, which includes the following steps:
S1:采集不同工况下轴承运行时的振动数据,获得源域样本和目标域样本;S1: Collect the vibration data of the bearing during operation under different working conditions, and obtain the source domain sample and the target domain sample;
S2:将源域样本输入特征提取器获得源域特征;将源域样本和目标域样本共同输入特征提取器获得混合域样本特征;S2: Input the source domain samples into the feature extractor to obtain the source domain features; input the source domain samples and the target domain samples together into the feature extractor to obtain the mixed domain sample features;
S3:将源域特征和混合域样本特征作为输入,对抗训练分类器与域鉴别器并对特征提取器进行优化,计算分类器和域鉴别器的损失;其中,域鉴别器包括全局域鉴别器和局部域鉴别器;S3: Take the source domain features and the mixed domain sample features as input, train the classifier and the domain discriminator against adversarial and optimize the feature extractor, and calculate the loss of the classifier and the domain discriminator; where the domain discriminator includes the global domain discriminator and the local domain discriminator;
S4:对于全局域鉴别器损失和局部域鉴别器损失通过相似度度量计算源域样本与目标域样本之间分布距离的全局度量和局部度量得到指数动态调节因子,利用指数动态调节因子重新定义域鉴别器损失,其中,全局度量和局部度量分别对应边缘分布和条件分布差异;S4: For global domain discriminator loss and local domain discriminator loss by similarity measure Calculate the global measure and local measure of the distribution distance between the source domain samples and the target domain samples to obtain the exponential dynamic adjustment factor, and use the exponential dynamic adjustment factor to redefine the loss of the domain discriminator, where the global measure and the local measure correspond to the marginal distribution and the conditional distribution, respectively difference;
S5:利用分类器损失和重新定义的域鉴别器损失构建轴承故障诊断模型的目标函数,通过带有标签的源域样本和无标签的目标域样本训练寻找所述目标函数的最佳参数,直至所述轴承故障诊断模型完成,其中,在训练过程中利用动态指数调节因子缩小所述源域样本和所述目标域样本的边缘分布和条件分布差异;S5: Use the classifier loss and the redefined domain discriminator loss to construct the objective function of the bearing fault diagnosis model, and find the optimal parameters of the objective function through the training of the labeled source domain samples and the unlabeled target domain samples, until The bearing fault diagnosis model is completed, wherein in the training process, a dynamic index adjustment factor is used to reduce the marginal distribution and conditional distribution differences between the source domain samples and the target domain samples;
S6:将目标域样本输入完成的所述轴承故障诊断模型,输出轴承故障诊断结果。S6: Input the target domain sample into the completed bearing fault diagnosis model, and output the bearing fault diagnosis result.
作为本发明的进一步改进,在所述步骤S1中每种工况下的轴承健康状态不同,每种工况下不同健康状态的轴承振动数据作为一个可迁移的数据域,所述数据域附有域标签,所述源域样本和目标域样本从数据域中选取,所述源域样本附有故障类型标签。As a further improvement of the present invention, in the step S1, the bearing health status under each working condition is different, and the bearing vibration data of different health status under each working condition is used as a transferable data field, and the data field is attached with Domain labels, the source domain samples and target domain samples are selected from the data domain, and the source domain samples are attached with fault type labels.
作为本发明的进一步改进,利用加速度传感器采集每种工况下轴承运行时的振动信号,构建源域数据集和目标域数据集,利用短时傅里叶变换对所述源域数据集和所述目标域数据集进行处理,并进行二维化处理,输出处理后的多源域样本和目标域样本。As a further improvement of the present invention, an acceleration sensor is used to collect vibration signals of the bearing during each working condition, a source domain data set and a target domain data set are constructed, and short-time Fourier transform is used to analyze the source domain data set and all The target domain data set is processed, and the two-dimensional processing is performed, and the processed multi-source domain samples and target domain samples are output.
作为本发明的进一步改进,在所述步骤S3中将源域特征输入分类器进行有监督的训练,得到预测源域标签和分类器损失,其中,有监督的训练为通过计算预测源域标签与源域真实标签的交叉熵损失得到分类器损失yi是数据真实故障标签,C(G(xi))是分类器预测的故障标签,Lc计算两者的交叉熵损失。As a further improvement of the present invention, in the step S3, the source domain features are input into the classifier for supervised training to obtain the predicted source domain label and the classifier loss, wherein the supervised training is to calculate the predicted source domain label and The cross-entropy loss of the true labels in the source domain gets the classifier loss y i is the true fault label of the data, C(G( xi )) is the fault label predicted by the classifier, and L c calculates the cross-entropy loss of both.
作为本发明的进一步改进,在所述步骤S3中:As a further improvement of the present invention, in the step S3:
将混合域样本输入全局域鉴别器进行训练,得到预测的域标签和全局域损失其中,dk为数据真实的域标签,Dg(G(xk))代表预测的域标签,LDg计算两者的交叉熵损失;The mixed domain samples are fed into the global domain discriminator for training, resulting in predicted domain labels and global domain loss Among them, d k is the real domain label of the data, D g (G(x k )) represents the predicted domain label, and L Dg calculates the cross entropy loss of the two;
将混合样本特征输入分类器,得到目标域故障种类预测标签概率分布;将混合样本特征输入多个局部域鉴别器,得到多个域鉴别预测标签后与真实域标签计算每个域交叉熵损失,并将交叉熵损失与目标域故障种类预测标签概率分布相乘求和,得到最终的局部域损失计算公式:计算局部域损失,其中,H代表故障标签种类数量,是与第h类相关的域鉴别器,是对应的交叉熵损失,代表第k个样本在h类上存在的概率分布,dk为数据真实的域标签。Input the mixed sample features into the classifier to obtain the probability distribution of the target domain fault type prediction labels; input the mixed sample features into multiple local domain discriminators to obtain multiple domain identification prediction labels and calculate the cross entropy loss of each domain with the real domain label, Multiply and sum the cross-entropy loss and the predicted label probability distribution of the target domain fault type to obtain the final local domain loss calculation formula: Calculate the local domain loss, where H represents the number of fault label types, is the domain discriminator associated with class h, Yes The corresponding cross-entropy loss, represents the probability distribution of the kth sample on the h class, and dk is the real domain label of the data.
作为本发明的进一步改进,所述步骤S4具体包括:As a further improvement of the present invention, the step S4 specifically includes:
对全局域损失和局部域损失,经过计算,即利用全局差异度量公式和局部差异度量计算两域之间分布距离的全局度量和局部度量;For global domain loss and local domain loss, after Calculation, that is, using the global difference measure formula and local difference measure Calculate the global measure and local measure of the distribution distance between two domains;
转化为指数动态调节因子ω,表示为利用指数动态调节因子调节两个域边缘分布和条件分布的差异;Converted to an exponential dynamic adjustment factor ω, expressed as Use an exponential dynamic adjustment factor to adjust the difference between the marginal and conditional distributions of the two domains;
考虑所述指数动态调节因子,最终域鉴别器损失定义为:Considering the exponential dynamic adjustment factor, the final domain discriminator loss is defined as:
作为本发明的进一步改进,所述步骤S5具体包括:As a further improvement of the present invention, the step S5 specifically includes:
根据分类器损失Ly和域鉴别器损失LD建立轴承故障诊断模型的目标函数即计算总损失,两者比例变化遵循公式即最终的总损失计算如式L=Ly-λLD;According to the classifier loss L y and the domain discriminator loss L D , the objective function of the bearing fault diagnosis model is established, that is, the total loss is calculated, and the proportional change of the two follows the formula That is, the final total loss is calculated as formula L=L y -λLD ;
在每一个epoch计算一次总损失,并将总损失利用Adam算法对建立的特征提取器、分类器、全局域鉴别器和局部域鉴别器进行优化;Calculate the total loss once in each epoch, and use the Adam algorithm to optimize the established feature extractor, classifier, global domain discriminator and local domain discriminator;
利用预先定义的epoch数决定模型训练次数,根据预先定义的步长和步长衰减公式得到每一步的步长,将整个模型依据步长循环所述epoch数次,得到训练好的模型。Use a predefined number of epochs to determine the number of model training times, according to a predefined step size and step size decay formula The step size of each step is obtained, and the entire model is cycled through the epoch several times according to the step size to obtain a trained model.
作为本发明的进一步改进,所述步骤S6具体包括:As a further improvement of the present invention, the step S6 specifically includes:
利用短时傅里叶变换对所述目标域数据集进行处理,得到所述目标域样本图片;Use short-time Fourier transform to process the target domain data set to obtain the target domain sample picture;
将所述目标域样本图片输入所述已训练故障诊断模型中,得到最终的故障诊断结果。Input the target domain sample picture into the trained fault diagnosis model to obtain the final fault diagnosis result.
一种基于动态指数对抗性自适应的滚动轴承故障诊断系统,包括:A rolling bearing fault diagnosis system based on dynamic index adversarial self-adaptation, comprising:
采集模块,用于采集不同工况下轴承运行时的振动数据,获得源域样本和目标域样本;The acquisition module is used to collect the vibration data of the bearing during operation under different working conditions, and obtain the source domain samples and the target domain samples;
特征提取模块,用于将源域样本输入特征提取器获得源域特征;将源域样本和目标域样本共同输入特征提取器获得混合域样本特征;The feature extraction module is used to input the source domain samples into the feature extractor to obtain the source domain features; input the source domain samples and the target domain samples together into the feature extractor to obtain the mixed domain sample features;
分类计算模块,用于将源域特征和混合域样本特征作为输入,对抗训练分类器与域鉴别器并对特征提取器进行优化,计算分类器和域鉴别器的损失;其中,域鉴别器包括全局域鉴别器和局部域鉴别器;The classification calculation module is used to take the source domain features and the mixed domain sample features as input, train the classifier and the domain discriminator against adversarial and optimize the feature extractor, and calculate the loss of the classifier and the domain discriminator; wherein, the domain discriminator includes global domain discriminator and local domain discriminator;
指数动态模块,用于对于全局域鉴别器损失和局部域鉴别器损失通过相似度度量计算源域样本与目标域样本之间分布距离的全局度量和局部度量得到指数动态调节因子,利用指数动态调节因子重新定义域鉴别器损失,其中,全局度量和局部度量分别对应边缘分布和条件分布差异;Exponential dynamics module for passing similarity measure for global domain discriminator loss and local domain discriminator loss Calculate the global measure and local measure of the distribution distance between the source domain samples and the target domain samples to obtain the exponential dynamic adjustment factor, and use the exponential dynamic adjustment factor to redefine the loss of the domain discriminator, where the global measure and the local measure correspond to the marginal distribution and the conditional distribution, respectively difference;
训练模块,用于利用分类器损失和重新定义的域鉴别器损失构建轴承故障诊断模型的目标函数,通过带有标签的源域样本和无标签的目标域样本训练寻找所述目标函数的最佳参数,直至所述轴承故障诊断模型完成,其中,在训练过程中利用动态指数调节因子缩小所述源域样本和所述目标域样本的边缘分布和条件分布差异;The training module is used to construct the objective function of the bearing fault diagnosis model using the classifier loss and the redefined domain discriminator loss, and find the optimal value of the objective function through the training of the labeled source domain samples and the unlabeled target domain samples parameters until the bearing fault diagnosis model is completed, wherein in the training process, a dynamic index adjustment factor is used to reduce the marginal distribution and conditional distribution differences between the source domain samples and the target domain samples;
测试模块,用于将目标域样本输入完成的所述轴承故障诊断模型,输出轴承故障诊断结果。The testing module is used for inputting the target domain samples into the completed bearing fault diagnosis model, and outputting bearing fault diagnosis results.
作为本发明的进一步改进,所述分类计算模块包括:As a further improvement of the present invention, the classification calculation module includes:
分类模块,用于利用所述特征提取模块得到特征得出预测标签从而进行故障种类分类,并与真实标签计算交叉熵损失;The classification module is used to obtain the predicted label by using the feature extraction module to obtain the predicted label to classify the fault type, and calculate the cross-entropy loss with the real label;
全局域鉴别模块,用于利用所述混合样本特征对样本进行域分类,得到每个样本特征的预测标签,利用所述每个样本特征的预测标签与真实标签计算全局域鉴别器的交叉熵损失;The global domain identification module is used to perform domain classification on the samples by using the mixed sample features to obtain the predicted label of each sample feature, and calculate the cross entropy loss of the global domain discriminator using the predicted label and the real label of each sample feature ;
局部域鉴别模块,用于利用所述混合样本特征对样本进行域分类,得到每个样本特征的预测标签,利用所述分类器对所有样本特征进行分类,得到目标域样本的伪标签概率分布,利用每个样本特征的预测标签与真实标签和伪标签概率分布共同计算局部域鉴别器的交叉熵损失。The local domain identification module is used to perform domain classification on the samples by using the mixed sample features to obtain the predicted label of each sample feature, and use the classifier to classify all the sample features to obtain the pseudo-label probability distribution of the target domain samples, The cross-entropy loss of the local domain discriminator is computed using the predicted labels of each sample feature together with the true label and pseudo-label probability distributions.
本发明的有益效果:本发明可以通过特征提取器、分类器和域鉴别器之间的对抗,自主地筛选更适合迁移的特征,得到更好的故障诊断结果;该方法可以不显式指定源域和目标域之间的距离度量,利用损失间接度量源域和目标域之间的分布差异,能够更好地对源域和目标域之间的分布差异进行度量,从而得到更好的迁移效果;该方法利用指数动态因子稳定定量动态地调节边缘分布和条件分布差异在整体数据分布差异中的比重,指数函数可以有效减少定量计算过程中由于计算缺陷(除零)导致的数据崩溃,使模型更为稳定;动态定量调节可以使模型能够更好地对齐源域和目标域之间的数据分布,从而使得模型在面对变工况任务时依旧有良好的诊断效果,可广泛应用于机械、电工、化工、航空等复杂系统在多变工况下的故障诊断任务。Beneficial effects of the present invention: the present invention can independently screen features that are more suitable for migration through the confrontation between the feature extractor, the classifier and the domain discriminator, and obtain better fault diagnosis results; the method can not explicitly specify the source The distance measurement between the domain and the target domain, using the loss to indirectly measure the distribution difference between the source domain and the target domain, can better measure the distribution difference between the source domain and the target domain, so as to obtain a better transfer effect. ; This method uses exponential dynamic factors to stably and quantitatively adjust the proportion of marginal distribution and conditional distribution differences in the overall data distribution differences. The exponential function can effectively reduce the data collapse caused by computational defects (division by zero) in the quantitative calculation process, making the model More stable; dynamic quantitative adjustment can make the model better align the data distribution between the source domain and the target domain, so that the model still has a good diagnostic effect in the face of variable working conditions, and can be widely used in machinery, Fault diagnosis tasks of complex systems such as electrical, chemical, and aviation under variable working conditions.
附图说明Description of drawings
图1是本发明轴承故障诊断的方法流程图;Fig. 1 is the method flow chart of bearing fault diagnosis of the present invention;
图2是本发明实施例具体方法流程图;2 is a flowchart of a specific method according to an embodiment of the present invention;
图3为本发明实施例滚动轴承数据生成试验台试验图;FIG. 3 is a test diagram of a test bench for generating rolling bearing data according to an embodiment of the present invention;
图4为本发明实施例在某一迁移任务下的故障诊断混淆矩阵图;4 is a diagram of a fault diagnosis confusion matrix under a certain migration task according to an embodiment of the present invention;
图5为本发明实施例在某一迁移任务下的故障诊断特征可视化情况图;FIG. 5 is a diagram showing the visualization of fault diagnosis features under a certain migration task according to an embodiment of the present invention;
图6为本发明系统结构示意框图。FIG. 6 is a schematic block diagram of the system structure of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
参考图1,本发明提供了一种基于动态指数对抗性自适应的滚动轴承故障诊断方法,包括以下步骤:Referring to FIG. 1, the present invention provides a method for diagnosing faults of rolling bearings based on dynamic index adversarial self-adaptation, including the following steps:
S1:采集不同工况下轴承运行时的振动数据,获得源域样本和目标域样本;S1: Collect the vibration data of the bearing during operation under different working conditions, and obtain the source domain sample and the target domain sample;
S2:将源域样本输入特征提取器获得源域特征;将源域样本和目标域样本共同输入特征提取器获得混合域样本特征;S2: Input the source domain samples into the feature extractor to obtain the source domain features; input the source domain samples and the target domain samples together into the feature extractor to obtain the mixed domain sample features;
S3:将源域特征和混合域样本特征作为输入,对抗训练分类器与域鉴别器并对特征提取器进行优化,计算分类器和域鉴别器的损失;其中,域鉴别器包括全局域鉴别器和局部域鉴别器;S3: Take the source domain features and the mixed domain sample features as input, train the classifier and the domain discriminator against adversarial and optimize the feature extractor, and calculate the loss of the classifier and the domain discriminator; where the domain discriminator includes the global domain discriminator and the local domain discriminator;
S4:对于全局域鉴别器损失和局部域鉴别器损失通过相似度度量计算源域样本与目标域样本之间分布距离的全局度量和局部度量得到指数动态调节因子,利用指数动态调节因子重新定义域鉴别器损失,其中,全局度量和局部度量分别对应边缘分布和条件分布差异;S4: For global domain discriminator loss and local domain discriminator loss by similarity measure Calculate the global measure and local measure of the distribution distance between the source domain samples and the target domain samples to obtain the exponential dynamic adjustment factor, and use the exponential dynamic adjustment factor to redefine the loss of the domain discriminator, where the global measure and the local measure correspond to the marginal distribution and the conditional distribution, respectively difference;
S5:利用分类器损失和重新定义的域鉴别器损失构建轴承故障诊断模型的目标函数,通过带有标签的源域样本和无标签的目标域样本训练寻找所述目标函数的最佳参数,直至所述轴承故障诊断模型完成,其中,在训练过程中利用动态指数调节因子缩小所述源域样本和所述目标域样本的边缘分布和条件分布差异;S5: Use the classifier loss and the redefined domain discriminator loss to construct the objective function of the bearing fault diagnosis model, and find the optimal parameters of the objective function through the training of the labeled source domain samples and the unlabeled target domain samples, until The bearing fault diagnosis model is completed, wherein in the training process, a dynamic index adjustment factor is used to reduce the marginal distribution and conditional distribution differences between the source domain samples and the target domain samples;
S6:将目标域样本输入完成的所述轴承故障诊断模型,输出轴承故障诊断结果。S6: Input the target domain sample into the completed bearing fault diagnosis model, and output the bearing fault diagnosis result.
本发明方法利用加速度传感器采集每种工况下轴承运行时的振动信号,构建源域数据集和目标域数据集,利用短时傅里叶变换和二维化处理输出源域样本和目标域样本,可以有助于模型更好地提取到所需特征;该方法可以通过特征提取器、分类器和域鉴别器之间的对抗,自主地筛选更适合迁移的特征,得到更好的故障诊断结果。对抗自适应可以不显式指定源域和目标域之间的距离度量,利用损失间接度量源域和目标域之间的分布差异,能够更好地对源域和目标域之间的分布差异进行度量,从而得到更好的迁移效果;利用指数动态因子稳定定量动态地调节边缘分布和条件分布差异在整体数据分布差异中的比重,指数函数可以有效减少定量计算过程中由于计算缺陷(除零)导致的数据崩溃,使模型更为稳定;动态定量调节可以使模型能够更好地对齐源域和目标域之间的数据分布,从而使得模型在面对变工况任务时依旧有良好的诊断效果The method of the invention uses the acceleration sensor to collect the vibration signal of the bearing under each working condition, constructs the source domain data set and the target domain data set, and uses the short-time Fourier transform and two-dimensional processing to output the source domain sample and the target domain sample , which can help the model to better extract the required features; this method can autonomously screen features that are more suitable for migration through the confrontation between feature extractors, classifiers and domain discriminators, and get better fault diagnosis results . Adversarial adaptation can not explicitly specify the distance measure between the source domain and the target domain, and use the loss to indirectly measure the distribution difference between the source domain and the target domain, which can better analyze the distribution difference between the source domain and the target domain. Measure to get better migration effect; use exponential dynamic factor to stably and quantitatively adjust the proportion of marginal distribution and conditional distribution difference in the overall data distribution difference, exponential function can effectively reduce the quantitative calculation process due to calculation defects (divide by zero) The resulting data collapse makes the model more stable; dynamic quantitative adjustment can make the model better align the data distribution between the source domain and the target domain, so that the model still has a good diagnostic effect in the face of variable working conditions.
实施例Example
本实施例基于上述方法,结合具体实施例进行更加详细的说明,将采集的振动信号构建一个包含七种健康状态的轴承在六种不同况下的可迁移数据集,对轴承故障模型进行训练,请参考图2,具体操作步骤如下:In this embodiment, based on the above method and in combination with specific embodiments, a more detailed description is given. The collected vibration signals are used to construct a transferable data set of bearings in seven health states under six different conditions, and the bearing fault model is trained. Please refer to Figure 2, the specific operation steps are as follows:
步骤S101:利用加速度传感器采集六种工况下轴承运行时的振动信号,构建源域数据集和目标域数据集;Step S101: use an acceleration sensor to collect vibration signals of the bearing during operation under six working conditions, and construct a source domain data set and a target domain data set;
使用图3所示的试验台所采集的信号构建了一个包含七种健康状态的轴承在六种不同工况下的可迁移数据集,各数据集存在不同的条件分布和边缘分布。测试轴承被设置为三种单一故障(内圈故障、滚子故障和外圈故障)和四种复合故障(内圈+外圈故障、内圈+滚子故障、滚子+外圈故障、滚子+内圈+外圈故障)。因此,得到了七个健康状态,如表1中所列。每个健康状态有200个训练样本和200个测试样本。每个样本由1024个采样点组成。Using the signals collected by the test rig shown in Fig. 3, a transferable dataset of bearings with seven health states under six different operating conditions was constructed, and each dataset had different conditional and marginal distributions. The test bearings were set up for three single faults (inner ring fault, roller fault and outer ring fault) and four composite faults (inner ring + outer ring fault, inner ring + roller fault, roller + outer ring fault, rolling sub + inner ring + outer ring fault). Thus, seven health states were obtained, as listed in Table 1. Each health state has 200 training samples and 200 test samples. Each sample consists of 1024 sampling points.
表格1各个域的七种故障轴承信息:Seven kinds of fault bearing information for each domain in Table 1:
根据六种不同的工作条件,具体设置如表2,建立了12种不同的迁移任务,表3中提供了迁移任务及其缩写。According to six different working conditions, the specific settings are shown in Table 2, and 12 different migration tasks are established. Table 3 provides the migration tasks and their abbreviations.
表格2迁移任务工况设置:Table 2 Migration task condition settings:
表格3所有迁移任务及缩写:Table 3 All migration tasks and abbreviations:
步骤S102:利用短时傅里叶变换和二维化处理输出源域样本和目标域样本;Step S102: using short-time Fourier transform and two-dimensional processing to output source domain samples and target domain samples;
对样本进行短时傅里叶变换(STFT)。STFT是的样本从时域信号转换为时频域信号,转换后的信号同时包含时域信息和频域信息,丰富的信息能够帮助模型更好地进行故障诊断。A short-time Fourier transform (STFT) is performed on the samples. In STFT, the samples are converted from time-domain signals to time-frequency domain signals. The converted signals contain both time-domain information and frequency-domain information. The rich information can help the model to better diagnose faults.
将生成的样本从3×1024重塑为3×32×32,对于源域,根据所属故障种类,附加故障种类标签。对所有包含故障种类标签的数据集,添加域标签;The generated samples are reshaped from 3×1024 to 3×32×32. For the source domain, the fault type label is attached according to the fault type it belongs to. Add domain labels to all datasets containing fault category labels;
步骤S103:利用特征提取器和分类器,将所述源域样本输入其中,利用有监督的方法对特征提取器进行训练;将所述目标域样本和和所述源域样本共同输入所述特征提取器后得到混合样本特征;Step S103: Use a feature extractor and a classifier to input the source domain samples into it, and use a supervised method to train the feature extractor; input the target domain samples and the source domain samples into the feature together After the extractor, the mixed sample features are obtained;
根据表4参数构建特征提取器,其本质是一个主要由多个卷积块、池化层组成的深度残差网络和一个全连接层连接的神经网络。The feature extractor is constructed according to the parameters in Table 4, and its essence is a deep residual network mainly composed of multiple convolution blocks, pooling layers and a neural network connected by a fully connected layer.
表格4特征学习器的结构化参数:Table 4 Structured parameters of the feature learner:
将源域样本作为特征提取器的输入,通过特征提取器获得源域特征表示。The source domain samples are used as the input of the feature extractor, and the source domain feature representation is obtained through the feature extractor.
构建分类器,其本质是一个由全连接层和softmax层构成的神经网络。所述有监督的方法对所述特征提取器进行训练,指通过计算所述预测源域标签与源域真实标签的交叉熵损失得到分类器损失其中yi是数据真实故障标签,C(G(xi))是分类器预测的故障标签,Lc计算两者的交叉熵损失。Build a classifier, which is essentially a neural network consisting of a fully connected layer and a softmax layer. The supervised method trains the feature extractor, which means that the classifier loss is obtained by calculating the cross-entropy loss of the predicted source domain label and the source domain real label. where y i is the true fault label of the data, C(G( xi )) is the fault label predicted by the classifier, and L c calculates the cross-entropy loss of both.
将所述目标域样本和所述源域样本共同输入所述特征提取器后得到混合样本特征。After the target domain samples and the source domain samples are jointly input into the feature extractor, mixed sample features are obtained.
步骤S104:利用全局域分类器和局部域分类器,将所述混合样本特征作为全局域分类器和局部域分类器的输入,利用有监督的方法对所述特征提取器和域鉴别器进行对抗训练,并输出预测域标签和域损失;Step S104: Utilize the global domain classifier and the local domain classifier, use the mixed sample feature as the input of the global domain classifier and the local domain classifier, and utilize a supervised method to confront the feature extractor and the domain discriminator. train, and output the predicted domain label and domain loss;
利用全局域分类器、所述混合样本特征及所述域标签,依照全局域损失计算公式计算全局域损失。Using the global domain classifier, the mixed sample feature and the domain label, according to the global domain loss calculation formula Calculate the global domain loss.
其中,dk为数据真实的域标签,Dg(G(xk))代表预测的域标签,计算两者的交叉熵损失。where d k is the real domain label of the data, D g (G(x k )) represents the predicted domain label, Calculate the cross-entropy loss for both.
利用所述混合样本特征输入所述分类器,得到目标域故障种类预测标签概率分布;将所述混合样本特征输入所述多个局部域鉴别器,得到多个域鉴别预测标签后与真实域标签计算每个域交叉熵损失,并将交叉熵损失与目标域故障种类预测标签概率分布相乘求和,得到最终的局部域损失计算公式计算局部域损失。Use the mixed sample features to input the classifier to obtain the target domain fault type predicted label probability distribution; input the mixed sample features to the multiple local domain discriminators to obtain multiple domain identification predicted labels and real domain labels Calculate the cross-entropy loss of each domain, and multiply and sum the cross-entropy loss and the predicted label probability distribution of the target domain fault type to obtain the final local domain loss calculation formula Compute the local domain loss.
其中H代表故障标签种类数量,是与第h类相关的域鉴别器,是对应的交叉熵损失,代表第k个样本在h类上存在的概率分布,dk为数据真实的域标签。Where H represents the number of types of fault labels, is the domain discriminator associated with class h, Yes The corresponding cross-entropy loss, represents the probability distribution of the kth sample on the h class, and dk is the real domain label of the data.
步骤S105:利用指数动态因子对全局域损失和局部域损失进行调节,进而调节边缘分布和条件分布对模型整体训练的影响,实现域损失调节;Step S105: utilize the exponential dynamic factor to adjust the global domain loss and the local domain loss, and then adjust the influence of the marginal distribution and the conditional distribution on the overall training of the model, so as to realize the adjustment of the domain loss;
对所述全局域损失和局部域损失,经过计算,具体利用全局差异度量公式和局部差异度量计算对两域之间分布距离的全局度量和局部度量。For the global domain loss and local domain loss, after Calculation, specifically using the global difference metric formula and local difference measure Computes a global measure and a local measure of the distribution distance between two domains.
利用指数动态调节因子ω,可表示为由于边缘分布差异可间接用全局距离度量来衡量,条件分布差异可间接用局部距离度量来衡量,因此,在调节两个域边缘分布和条件分布的差异对模型参数影响的时候,可以用指数动态调节因子调节输入数据情况下两个分布的重要性。Using the exponential dynamic adjustment factor ω, it can be expressed as Since the marginal distribution difference can be measured indirectly by the global distance metric, and the conditional distribution difference can be measured indirectly by the local distance metric, therefore, when adjusting the influence of the difference between the marginal distribution and the conditional distribution of the two domains on the model parameters, the exponential dynamic The adjustment factor adjusts the importance of the two distributions given the input data.
考虑所述指数动态调节因子,最终域鉴别器损失可定义为 Considering the exponential dynamic adjustment factor, the final domain discriminator loss can be defined as
步骤S106:利用分类器损失、域损失构建所述轴承故障诊断模型的目标函数,并利用对抗自适应训练策略缩小所述源域样本特征和所述目标域样本特征的边缘分布和条件分布差异,利用Adam算法对模型优化,根据预定epoch数和步长进行迭代,直至所述轴承故障诊断模型完成训练;Step S106: constructing the objective function of the bearing fault diagnosis model by using classifier loss and domain loss, and reducing the marginal distribution and conditional distribution difference between the source domain sample feature and the target domain sample feature by using an adversarial adaptive training strategy, The Adam algorithm is used to optimize the model, and iterative is performed according to the predetermined epoch number and step size until the bearing fault diagnosis model is trained;
根据所述分类损失Ly和所述域鉴别器损失LD计算总损失,两者比例变化遵循公式即最终的总损失计算如式L=Ly-λLD。在每一个epoch计算一次总损失,并将总损失利用Adam算法对建立的特征提取器、分类器、全局域鉴别器和局部域鉴别器进行优化。在优化过程中,由于域鉴别器与特征提取器、分类器优化目标相反,因此利用梯度翻转层使得模型可以在一次训练中同时完成相反的训练目的。The total loss is calculated according to the classification loss Ly and the domain discriminator loss LD , and the proportional change of the two follows the formula That is, the final total loss is calculated as formula L=L y -λLD . The total loss is calculated once in each epoch, and the Adam algorithm is used to optimize the total loss for the established feature extractor, classifier, global domain discriminator and local domain discriminator. In the optimization process, since the domain discriminator and the feature extractor and classifier have the opposite optimization goals, the gradient flip layer is used to enable the model to accomplish the opposite training purpose in one training.
利用预先定义的epoch数=100决定模型训练次数,根据预先定义的步长=0.001和步长衰减公式得到每一步的步长。将整个模型依据步长循环所述100次,得到训练好的模型。Use the predefined number of epochs = 100 to determine the number of model training times, according to the predefined step size = 0.001 and the step size decay formula Get the step size for each step. The entire model is cycled 100 times according to the step size to obtain a trained model.
步骤S107:利用将所述目标域数据集输入所述轴承故障诊断模型中,对所述故障诊断特征进行故障类型匹配,输出所述目标域数据集的轴承故障诊断结果;Step S107: inputting the target domain data set into the bearing fault diagnosis model, performing fault type matching on the fault diagnosis feature, and outputting the bearing fault diagnosis result of the target domain data set;
利用所述短时傅里叶变换对所述目标域数据集进行处理,得到所述目标域样本图片;Using the short-time Fourier transform to process the target domain data set to obtain the target domain sample picture;
将所述目标域样本图片输入所述已训练故障诊断模型中,得到最终的故障诊断结果。Input the target domain sample picture into the trained fault diagnosis model to obtain the final fault diagnosis result.
表5本发明方法和各变体方法在各迁移任务下的故障诊断准确率:Table 5 The fault diagnosis accuracy rate of the method of the present invention and each variant method under each migration task:
图4,图5和表5分别展示了本方法在某一迁移任务下的故障诊断混淆矩阵、故障诊断特征可视化情况和各变体方法在各迁移任务下的故障诊断准确率。通过实验数据验证,采用本发明的一种基于动态指数对抗性自适应的滚动轴承故障诊断方法按上述流程进行故障诊断,在1400个源域样本和1400个目标域样本的数据条件下,面对负载变化、转速变化和负载转速均变化的情况下,本方法在经过100次迭代后,均能达到100%的故障诊断准确率,这表明本方法能够稳定地实现变工况下滚动轴承的迁移故障诊断,这个分类精度能够满足实际应用需求。Figure 4, Figure 5 and Table 5 respectively show the fault diagnosis confusion matrix of this method under a certain migration task, the visualization of fault diagnosis features, and the fault diagnosis accuracy of each variant method under each migration task. Through experimental data verification, a fault diagnosis method for rolling bearings based on dynamic index adversarial self-adaptation of the present invention is used for fault diagnosis according to the above process. Under the data conditions of 1400 source domain samples and 1400 target domain samples, the In the case of changing, rotating speed and load rotating speed, this method can achieve 100% fault diagnosis accuracy after 100 iterations, which shows that this method can stably realize the migration fault diagnosis of rolling bearings under variable working conditions. , this classification accuracy can meet the practical application requirements.
综上所述,本发明公开了一种基于动态指数对抗性自适应的滚动轴承故障诊断方法,它采用特征提取器来提取特征,并采用基于域损失的距离度量评估域差异。通过实验验证和与几种方法的比较,证实了该方法的优越性和鲁棒性。本发明的一些结果总结如下:1)通过特征提取器、分类器和域鉴别器之间的对抗可以自主地筛选更适合迁移的特征,得到更好的故障诊断结果。2)不显式指定源域和目标域之间的距离度量,利用损失间接度量源域和目标域之间的分布差异,能够更好地对源域和目标域之间的分布差异进行度量,从而得到更好的迁移效果;3)所提方法利用指数动态因子稳定定量动态地调节边缘分布和条件分布差异在整体数据分布差异中的比重,指数函数可以有效减少定量计算过程中由于计算缺陷(除零)导致的数据崩溃,使模型更为稳定;动态定量调节可以使模型能够更好地对齐源域和目标域之间的数据分布,从而使得模型在面对变工况任务时依旧有良好的诊断效果。In summary, the present invention discloses a method for diagnosing rolling bearing faults based on dynamic index adversarial self-adaptation, which uses a feature extractor to extract features, and uses a distance metric based on domain loss to evaluate domain differences. The superiority and robustness of the method are confirmed by experimental validation and comparison with several methods. Some results of the present invention are summarized as follows: 1) Through the confrontation between the feature extractor, the classifier and the domain discriminator, the features that are more suitable for migration can be screened autonomously, and better fault diagnosis results can be obtained. 2) Do not explicitly specify the distance measure between the source domain and the target domain, and use the loss to indirectly measure the distribution difference between the source domain and the target domain, which can better measure the distribution difference between the source domain and the target domain, 3) The proposed method uses the exponential dynamic factor to stably and quantitatively adjust the proportion of marginal distribution and conditional distribution difference in the overall data distribution difference, and the exponential function can effectively reduce the quantitative calculation process due to computational defects ( The data collapse caused by dividing by zero) makes the model more stable; dynamic quantitative adjustment can make the model better align the data distribution between the source domain and the target domain, so that the model still has good performance in the face of variable working conditions. diagnostic effect.
本实施例所述提供的方法,采集六种不同工况下的数据集作为源域数据集和目标域数据集对轴承故障诊断模型进行训练和测试,采取特征提取器、分类器和域鉴别器相互对抗的训练策略,利用梯度翻转层对三者同时进行优化,可以有效提高训练效率,降低模型崩溃可能;采用指数动态自适应因子对边缘分布和条件分布对模型优化重要性进行稳定、动态地调整,更好地满足迁移学习的分布自适应的要求,从而能使源域学习到的知识更好地被目标域利用,蛋刀良好的故障诊断效果。本发明与其他变体方法对比平均故障诊断准确率高达100%,并且特征提取效果较佳,还有良好的稳定性,能够处理变工况的故障诊断。In the method provided in this embodiment, data sets under six different working conditions are collected as source domain data sets and target domain data sets to train and test the bearing fault diagnosis model, and feature extractors, classifiers and domain discriminators are used. The training strategy against each other, using the gradient flip layer to optimize the three at the same time, can effectively improve the training efficiency and reduce the possibility of model collapse; the exponential dynamic adaptive factor is used to stably and dynamically adjust the importance of edge distribution and conditional distribution to model optimization. Adjustment to better meet the requirements of the distribution adaptation of transfer learning, so that the knowledge learned in the source domain can be better utilized by the target domain, and the egg knife has a good fault diagnosis effect. Compared with other variant methods, the present invention has an average fault diagnosis accuracy rate as high as 100%, better feature extraction effect and good stability, and can handle fault diagnosis under variable working conditions.
本发明还提供了一种基于动态指数对抗性自适应的滚动轴承故障诊断系统,包括:The present invention also provides a rolling bearing fault diagnosis system based on dynamic index confrontation and self-adaptation, comprising:
采集模块100,用于采集不同工况下轴承运行时的振动数据,获得源域样本和目标域样本;The
特征提取模块300,用于将源域样本输入特征提取器获得源域特征;将源域样本和目标域样本共同输入特征提取器获得混合域样本特征;The
分类计算模块400,用于将源域特征和混合域样本特征作为输入,对抗训练分类器与域鉴别器并对特征提取器进行优化,计算分类器和域鉴别器的损失;其中,域鉴别器包括全局域鉴别器和局部域鉴别器;The
指数动态模块500,用于对于全局域鉴别器损失和局部域鉴别器损失通过相似度度量计算源域样本与目标域样本之间分布距离的全局度量和局部度量得到指数动态调节因子,利用指数动态调节因子重新定义域鉴别器损失,其中,全局度量和局部度量分别对应边缘分布和条件分布差异;
训练模块600,用于利用分类器损失和重新定义的域鉴别器损失构建轴承故障诊断模型的目标函数,通过带有标签的源域样本和无标签的目标域样本训练寻找所述目标函数的最佳参数,直至所述轴承故障诊断模型完成,其中,在训练过程中利用动态指数调节因子缩小所述源域样本和所述目标域样本的边缘分布和条件分布差异;The
测试模块700,用于将目标域样本输入完成的所述轴承故障诊断模型,输出轴承故障诊断结果。The
进一步地,所述分类计算模块400包括:Further, the
分类模块401,用于利用所述特征提取模块得到特征得出预测标签从而进行故障种类分类,并与真实标签计算交叉熵损失;The
全局域鉴别模块402,用于利用所述混合样本特征对样本进行域分类,得到每个样本特征的预测标签,利用所述每个样本特征的预测标签与真实标签计算全局域鉴别器的交叉熵损失;The global
局部域鉴别模块403,用于利用所述混合样本特征对样本进行域分类,得到每个样本特征的预测标签,利用所述分类器对所有样本特征进行分类,得到目标域样本的伪标签概率分布,利用每个样本特征的预测标签与真实标签和伪标签概率分布共同计算局部域鉴别器的交叉熵损失。The local
本系统用于实现前述的轴承故障诊断的方法,因此轴承故障诊断系统中的具体实施方式可见前文中的轴承故障诊断的方法的实施例部分,例如,采集模块100和处理模块200,特征提取模块300和分类模块400,全局域鉴别模块500和局部域鉴别模块600、指数动态模块700,测试模块800,分别用于实现上述轴承故障诊断的方法中步骤S101-S107,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。This system is used to implement the aforementioned bearing fault diagnosis method, so the specific implementation of the bearing fault diagnosis system can be found in the embodiment part of the bearing fault diagnosis method above, for example, the
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention. The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
以上所述实施例仅是为充分说明本发明而所举的较佳的实施例,本发明的保护范围不限于此。本技术领域的技术人员在本发明基础上所作的等同替代或变换,均在本发明的保护范围之内。本发明的保护范围以权利要求书为准。The above-mentioned embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention is subject to the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111677762.1A CN114429152A (en) | 2021-12-31 | 2021-12-31 | Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111677762.1A CN114429152A (en) | 2021-12-31 | 2021-12-31 | Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114429152A true CN114429152A (en) | 2022-05-03 |
Family
ID=81310973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111677762.1A Pending CN114429152A (en) | 2021-12-31 | 2021-12-31 | Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114429152A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115127814A (en) * | 2022-07-20 | 2022-09-30 | 燕山大学 | Unsupervised bearing fault diagnosis method based on self-adaptive residual error countermeasure network |
CN115356105A (en) * | 2022-08-31 | 2022-11-18 | 北京理工大学 | Bearing fault diagnosis method and device, electronic equipment and readable storage medium |
CN115479773A (en) * | 2022-09-21 | 2022-12-16 | 南京航空航天大学 | A Cross-Domain Fault Diagnosis Method for Aeroengine Based on Dynamic Adversarial Residual Network |
CN115479769A (en) * | 2022-09-19 | 2022-12-16 | 重庆邮电大学 | An Open Set Fault Diagnosis Method for Planetary Gearboxes Based on Target Domain Slant Countermeasure Network |
CN115587289A (en) * | 2022-09-13 | 2023-01-10 | 西北工业大学 | Multi-source domain adaptive network-based aeroengine fault identification method |
CN115773883A (en) * | 2022-11-07 | 2023-03-10 | 苏州大学 | Double-generator cooperative domain confronting bearing fault diagnosis method and system |
CN116106008A (en) * | 2022-12-28 | 2023-05-12 | 苏州大学 | A Fault Diagnosis Method Based on Classifier Difference Soft Weight Adaptive Network |
CN116521493A (en) * | 2022-12-02 | 2023-08-01 | 北京小米移动软件有限公司 | Fault detection method, device and storage medium |
CN116878885A (en) * | 2023-09-04 | 2023-10-13 | 佛山科学技术学院 | Bearing fault diagnosis method based on self-adaptive joint domain adaptive network |
CN117349749A (en) * | 2023-10-09 | 2024-01-05 | 石家庄铁道大学 | Multi-source domain bearing fault diagnosis method based on hybrid convolution |
CN118690276A (en) * | 2024-08-23 | 2024-09-24 | 苏州大学 | A high-speed rail wheel-rail sensing adversarial learning damage identification method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605781A (en) * | 2013-11-29 | 2014-02-26 | 苏州大学 | Implicit expression chapter relationship type inference method and system |
CN106227988A (en) * | 2016-07-11 | 2016-12-14 | 浪潮(北京)电子信息产业有限公司 | A kind of relative error calculation optimization method |
CN111651937A (en) * | 2020-06-03 | 2020-09-11 | 苏州大学 | Intra-class adaptive bearing fault diagnosis method under variable operating conditions |
CN111829782A (en) * | 2020-07-16 | 2020-10-27 | 苏州大学 | A Fault Diagnosis Method Based on Adaptive Manifold Embedding Dynamic Distribution Alignment |
CN112183581A (en) * | 2020-09-07 | 2021-01-05 | 华南理工大学 | Semi-supervised mechanical fault diagnosis method based on self-adaptive migration neural network |
CN112633339A (en) * | 2020-12-14 | 2021-04-09 | 华中科技大学 | Bearing fault intelligent diagnosis method, bearing fault intelligent diagnosis system, computer equipment and medium |
CN112629863A (en) * | 2020-12-31 | 2021-04-09 | 苏州大学 | Bearing fault diagnosis method for dynamic joint distribution alignment network under variable working conditions |
CN112683532A (en) * | 2020-11-25 | 2021-04-20 | 西安交通大学 | Cross-working condition countermeasure diagnostic method for bearing |
CN113723491A (en) * | 2021-08-24 | 2021-11-30 | 哈尔滨理工大学 | Rolling bearing with semi-supervised model contrast migration and gear fault diagnosis method |
-
2021
- 2021-12-31 CN CN202111677762.1A patent/CN114429152A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605781A (en) * | 2013-11-29 | 2014-02-26 | 苏州大学 | Implicit expression chapter relationship type inference method and system |
CN106227988A (en) * | 2016-07-11 | 2016-12-14 | 浪潮(北京)电子信息产业有限公司 | A kind of relative error calculation optimization method |
CN111651937A (en) * | 2020-06-03 | 2020-09-11 | 苏州大学 | Intra-class adaptive bearing fault diagnosis method under variable operating conditions |
CN111829782A (en) * | 2020-07-16 | 2020-10-27 | 苏州大学 | A Fault Diagnosis Method Based on Adaptive Manifold Embedding Dynamic Distribution Alignment |
CN112183581A (en) * | 2020-09-07 | 2021-01-05 | 华南理工大学 | Semi-supervised mechanical fault diagnosis method based on self-adaptive migration neural network |
CN112683532A (en) * | 2020-11-25 | 2021-04-20 | 西安交通大学 | Cross-working condition countermeasure diagnostic method for bearing |
CN112633339A (en) * | 2020-12-14 | 2021-04-09 | 华中科技大学 | Bearing fault intelligent diagnosis method, bearing fault intelligent diagnosis system, computer equipment and medium |
CN112629863A (en) * | 2020-12-31 | 2021-04-09 | 苏州大学 | Bearing fault diagnosis method for dynamic joint distribution alignment network under variable working conditions |
CN113723491A (en) * | 2021-08-24 | 2021-11-30 | 哈尔滨理工大学 | Rolling bearing with semi-supervised model contrast migration and gear fault diagnosis method |
Non-Patent Citations (2)
Title |
---|
JINYANG JIAO 等: "A mixed adversarial adaptation network for intelligent fault diagnosis", 《JOURNAL OF INTELLIGENT MANUFACTURING》 * |
沈长青 等: "基于自适应流形嵌入动态分布对齐的轴承故障诊断", 《电子测量与仪器学报》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115127814A (en) * | 2022-07-20 | 2022-09-30 | 燕山大学 | Unsupervised bearing fault diagnosis method based on self-adaptive residual error countermeasure network |
CN115127814B (en) * | 2022-07-20 | 2025-06-27 | 燕山大学 | An unsupervised bearing fault diagnosis method based on adaptive residual adversarial network |
CN115356105A (en) * | 2022-08-31 | 2022-11-18 | 北京理工大学 | Bearing fault diagnosis method and device, electronic equipment and readable storage medium |
CN115587289A (en) * | 2022-09-13 | 2023-01-10 | 西北工业大学 | Multi-source domain adaptive network-based aeroengine fault identification method |
CN115479769A (en) * | 2022-09-19 | 2022-12-16 | 重庆邮电大学 | An Open Set Fault Diagnosis Method for Planetary Gearboxes Based on Target Domain Slant Countermeasure Network |
CN115479773A (en) * | 2022-09-21 | 2022-12-16 | 南京航空航天大学 | A Cross-Domain Fault Diagnosis Method for Aeroengine Based on Dynamic Adversarial Residual Network |
CN115479773B (en) * | 2022-09-21 | 2025-02-25 | 南京航空航天大学 | A cross-domain fault diagnosis method for aircraft engines based on dynamic adversarial residual network |
CN115773883A (en) * | 2022-11-07 | 2023-03-10 | 苏州大学 | Double-generator cooperative domain confronting bearing fault diagnosis method and system |
CN116521493A (en) * | 2022-12-02 | 2023-08-01 | 北京小米移动软件有限公司 | Fault detection method, device and storage medium |
CN116521493B (en) * | 2022-12-02 | 2024-02-13 | 北京小米移动软件有限公司 | Fault detection method, device and storage medium |
CN116106008B (en) * | 2022-12-28 | 2024-09-06 | 苏州大学 | Fault diagnosis method based on classifier difference soft weight self-adaptive network |
CN116106008A (en) * | 2022-12-28 | 2023-05-12 | 苏州大学 | A Fault Diagnosis Method Based on Classifier Difference Soft Weight Adaptive Network |
CN116878885A (en) * | 2023-09-04 | 2023-10-13 | 佛山科学技术学院 | Bearing fault diagnosis method based on self-adaptive joint domain adaptive network |
CN116878885B (en) * | 2023-09-04 | 2023-12-19 | 佛山科学技术学院 | Bearing fault diagnosis method based on self-adaptive joint domain adaptive network |
CN117349749B (en) * | 2023-10-09 | 2024-03-15 | 石家庄铁道大学 | Multi-source domain bearing fault diagnosis method based on hybrid convolution |
CN117349749A (en) * | 2023-10-09 | 2024-01-05 | 石家庄铁道大学 | Multi-source domain bearing fault diagnosis method based on hybrid convolution |
CN118690276A (en) * | 2024-08-23 | 2024-09-24 | 苏州大学 | A high-speed rail wheel-rail sensing adversarial learning damage identification method |
CN118690276B (en) * | 2024-08-23 | 2024-12-13 | 苏州大学 | Recognition method for sensing countermeasure learning damage of high-speed railway wheel rail |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114429152A (en) | Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption | |
CN110849627B (en) | Width migration learning network and rolling bearing fault diagnosis method based on same | |
CN111709448A (en) | A Mechanical Fault Diagnosis Method Based on Migration Relation Network | |
CN114004252A (en) | Method, device and equipment for bearing fault diagnosis | |
CN107315892A (en) | A kind of Method for Bearing Fault Diagnosis based on extreme learning machine | |
CN105678343B (en) | An abnormal noise diagnosis method for hydroelectric generating units based on sparse expression of adaptive weighted group | |
CN110703057A (en) | Partial discharge diagnosis method of power equipment based on data augmentation and neural network | |
CN113268833A (en) | Migration fault diagnosis method based on deep joint distribution alignment | |
CN113111820A (en) | Rotary component fault diagnosis method and device based on improved CNN and relation module | |
CN110619084B (en) | Method for recommending books according to borrowing behaviors of library readers | |
CN114564987B (en) | Rotary machine fault diagnosis method and system based on graph data | |
Lu et al. | A modified active learning intelligent fault diagnosis method for rolling bearings with unbalanced samples | |
CN113627522B (en) | Image classification method, device, equipment and storage medium based on relational network | |
CN105938524A (en) | Microorganism association network prediction method and apparatus | |
CN114813130A (en) | A cross-domain fault diagnosis algorithm for rolling bearings based on residual network | |
CN114462446A (en) | Rolling bearing fault diagnosis method based on vibration signal and electronic equipment | |
CN110659682A (en) | Data classification method based on MCWD-KSMOTE-AdaBoost-DenseNet algorithm | |
CN116644348A (en) | Method and device for fault diagnosis across mechanical components based on transfer-type anti-migration | |
CN113435321A (en) | Method, system and equipment for evaluating state of main shaft bearing and readable storage medium | |
CN116310466A (en) | Small sample image classification method based on local irrelevant area screening graph neural network | |
CN114528906B (en) | A method, device, equipment and medium for fault diagnosis of rotating machinery | |
CN112200263A (en) | Self-organizing federal clustering method applied to power distribution internet of things | |
CN107544447A (en) | A kind of chemical process Fault Classification based on core study | |
CN113889274A (en) | Method and device for constructing risk prediction model of autism spectrum disorder | |
CN116051911B (en) | Fault diagnosis method of small sample bearing vibration image data based on uncertainty learning |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220503 |
|
RJ01 | Rejection of invention patent application after publication |