Fault diagnosis method, device and equipment based on MSResNet network and medium

Through MSResNet network and AMK-MMD measurement technology, multi-scale features of rolling bearings are extracted, which solves the problem of insufficient sample data in deep transfer learning, improves the accuracy and generalization ability of fault diagnosis, and is suitable for fault diagnosis in complex working conditions.

CN118551271APending Publication Date: 2024-08-27WUHAN UNIV OF TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410716714.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In deep transfer learning, when there is insufficient labeled sample data, fine-grained information at all levels of the data is not considered, resulting in incomplete feature extraction and affecting fault diagnosis performance.

Method used

A fault diagnosis method based on the MSResNet network is used to construct a fault diagnosis model by obtaining labeled source domain samples and unlabeled target domain samples of rolling bearings. AMK-MMD is used to measure the distribution difference of source domain and target domain sample features, and a loss function is constructed and updated. Model parameters, extract multi-scale features to improve diagnostic performance.

Benefits of technology

It effectively improves the fault diagnosis accuracy and generalization ability of the domain adaptive fault diagnosis model, and can better cope with the fault diagnosis situation of missing labeled samples in the target domain, which is especially of engineering significance under complex working conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551271A
    Figure CN118551271A
Patent Text Reader

Abstract

The invention relates to a fault diagnosis method, device and equipment based on an MSResNet network and a medium, and belongs to the technical field of rotating machinery fault diagnos.The fault diagnosis method based on the MSResNet network comprises the steps that a label source domain sample and a label-free target domain sample of a rolling bearing are obtained; a fault diagnosis model based on an MSResNet network is constructed, after source domain and target domain sample features are extracted based on the fault diagnosis model, classification loss of source domain samples is calculated, distribution differences of the source domain and target domain sample features are measured through MK-MMD, a loss function is constructed based on the classification loss and the distribution differences, and a fault diagnosis result is obtained. Updating parameters of the fault diagnosis model based on the loss function; and on the basis of the fault diagnosis model after parameter updating, the label-free target domain sample is predicted, the fault diagnosis result of the rolling bearing is obtained, and the fault diagnosis accuracy and generalization ability of the fault diagnosis model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rotating machinery fault diagnosis, and in particular to a fault diagnosis method, device, equipment and medium based on a MSResNet network. Background Art

[0002] Rotating machinery occupies a dominant position in the industrial field, and rolling bearings are the core functional components of rotating machinery. The operating status of rolling bearings will greatly affect the stability and accuracy of the entire rotating machinery system.

[0003] With the advent of the industrial big data era, fault diagnosis research based on deep learning has been pushed to a new height. This end-to-end diagnostic process can adaptively extract features, fully demonstrating its superiority; complex deep learning models can represent nonlinear problems very well, and the diagnostic performance has also been proven to be significantly better than shallow learning; however, fault diagnosis based on deep learning has a very large demand for high-quality labeled data. When there is not enough labeled data, the deep learning model will also perform poorly; in response to the above problems, deep transfer learning has opened up a new idea. Transfer learning can transfer the knowledge of the source domain with sufficient labeled data to the target domain. Even if the target domain has only a small amount of sample data, a deep learning model with good performance can be obtained; one method is based on sample transfer, which fuses similar source domain and target domain samples, and uses TrAdaBoost to enhance the diagnostic performance of the classifier by adjusting the weights of the training samples; another method is based on the adversarial feature transfer algorithm based on Wasserstein distance. Through the above two methods, the diagnostic performance is improved under different working conditions.

[0004] However, the above methods do not take into account the fine-grained information at all levels of the data itself, and there are problems such as incomplete feature extraction, and there is still room for improvement in diagnostic performance. Summary of the invention

[0005] In view of this, it is necessary to provide a fault diagnosis method, device, equipment and medium based on the MSResNet network to solve the technical problem that when the labeled sample data is insufficient in deep transfer learning, the fine-grained information at all levels of the data is not considered, resulting in incomplete feature extraction.

[0006] In order to solve the above problems, the present invention provides a fault diagnosis method based on MSResNet network, comprising: Obtain labeled source domain samples and unlabeled target domain samples of rolling bearings; Construct a fault diagnosis model based on the MSResNet network, extract source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, measure the distribution difference of the source domain and target domain sample features through AMK-MMD, construct a loss function based on the classification loss and distribution difference, and update the parameters of the fault diagnosis model based on the loss function; The unlabeled target domain samples are predicted based on the fault diagnosis model after parameter update to obtain the fault diagnosis result of the rolling bearing.

[0007] In a possible implementation, the step of obtaining a labeled source domain sample and an unlabeled target domain sample of a rolling bearing includes: Acquire vibration data of the rolling bearing under multiple fault states, wherein the vibration data includes no-fault data, inner ring fault data, outer ring fault data, and rolling element fault data; Normalizing and standardizing the vibration data, and adding labels to the processed vibration data to obtain a target domain data set and a source domain data set, wherein the source domain data set includes labeled source domain samples, and the target domain data set includes unlabeled target domain samples and labeled target domain samples; The target domain data set and the source domain data set are divided to obtain a training set and a test set, wherein the training set includes labeled source domain samples and unlabeled target domain samples, and the test set includes unlabeled target domain samples.

[0008] In a possible implementation, the fault diagnosis model includes an MSResNet network and a domain adaptation layer, the MSResNet network includes a first convolutional layer, a batch normalization layer, a ReLU activation function, a maximum pooling layer, a multi-scale parallel network structure and an average pooling layer, the domain adaptation layer includes a first fully connected layer, a second fully connected layer and a SoftMax classifier, and the first fully connected layer and the second fully connected layer are respectively embedded with domain adaptation modules; the source domain and target domain sample features are extracted based on the fault diagnosis model, including: The labeled source domain samples and the unlabeled target domain samples are input into the MSResNet network, and convolution operations, standardization processing, batch normalization processing and maximum pooling operations are performed on the labeled source domain samples and the unlabeled target domain samples through the first convolution layer, batch normalization layer, ReLU activation function and maximum pooling layer to extract the main features of the labeled source domain samples and the unlabeled target domain samples, and feature extraction is performed on the main features through the multi-scale parallel network structure to obtain feature vectors of multiple scales, and the feature vectors of the multiple scales are averaged and pooled by the average pooling layer to obtain multiple feature vectors, and the multiple feature vectors are fused by using the connection function to obtain the source domain sample feature vector and the target domain sample feature vector.

[0009] In a possible implementation, the multi-scale parallel network structure includes a second convolutional layer, a third convolutional layer, and a fourth convolutional layer, wherein the second convolutional layer is a convolutional layer with a convolution kernel size of 3, the third convolutional layer is a convolutional layer with a convolution kernel size of 5, and the fourth convolutional layer is a convolutional layer with a convolution kernel size of 7, and the second convolutional layer, the third convolutional layer, and the fourth convolutional layer respectively include four residual blocks.

[0010] In a possible implementation, measuring the distribution difference of the source domain and the target domain sample features by AMK-MMD includes: The source domain sample feature vector and the target domain sample feature vector are mapped to the reproducing kernel Hilbert space through the optimal kernel function of the fault diagnosis model, and the AMK-MMD distance is calculated. The feature distribution difference between the source domain sample feature vector and the target domain sample feature vector is determined based on the AMK-MMD distance.

[0011] In a possible implementation, constructing a loss function based on the classification loss and the distribution difference includes: Based on the labeled source domain samples and the unlabeled target domain samples, respectively calculating the covariance matrix of the source domain samples and the covariance matrix of the target domain samples, and based on the covariance matrix of the source domain samples and the covariance matrix of the target domain samples, calculating the covariance matrix loss minimization item; A loss function is constructed based on the classification loss, the distribution difference, and the covariance matrix loss minimization term.

[0012] In a possible implementation, the calculation formula of the AMK-MMD distance is: , in, is the AMK-MMD distance, For the source domain samples, For the source domain samples, For the target domain samples, For the target domain samples, is the number of source domain samples, is the number of samples in the target domain, is the feature kernel function, is the reproducing kernel Hilbert space mapping, For the mapping relationship, is a constant, is a constant; The calculation formula of the optimal kernel function is: , in, is the optimal kernel function, is the number of kernel functions, is the weight; The calculation formula of the classification loss is: , in, is the classification loss, is the input sample, For the corresponding label, is the sample size, is the cross entropy loss function, is the mapping result; The calculation formula for the covariance matrix loss minimization term is: , in, is the covariance matrix loss minimization term, is the covariance matrix of source domain samples, is the covariance matrix of the target domain samples, is the Frobenius norm of the matrix; The calculation formula of the loss function is: , in, is the loss function of the adaptive layer, is the input sample, For the corresponding label, is the cross entropy loss function, is a hyperparameter, , is the layer index of the regularizer, For the The multi-core maximum mean difference between the source and target domain distributions of the layer.

[0013] On the other hand, the present invention also provides a fault diagnosis device based on the MSResNet network, comprising: A sample acquisition module is used to acquire labeled source domain samples and unlabeled target domain samples of rolling bearings; A network model construction module is used to construct a fault diagnosis model based on the MSResNet network, extract source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, measure the distribution difference of the source domain and target domain sample features through AMK-MMD, construct a loss function based on the classification loss and distribution difference, and update the parameters of the fault diagnosis model based on the loss function; The fault diagnosis module is used to predict the unlabeled target domain samples based on the fault diagnosis model after parameter update to obtain the fault diagnosis result of the rolling bearing.

[0014] In another aspect, the present invention further provides an electronic device, comprising: a processor and a memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the fault diagnosis method based on the MSResNet network as described above are implemented.

[0015] On the other hand, the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the fault diagnosis method based on the MSResNet network as described above.

[0016] The beneficial effects of the present invention are: constructing a fault diagnosis model based on the MSResNet network, extracting source domain and target domain sample features based on the fault diagnosis model, extracting transferable features of target domain samples and source domain samples through the MSResNet network (multi-scale one-dimensional residual network) of the fault diagnosis model as the backbone network, using the MSResNet network to perform feature extraction at different fine-grained levels, having a stronger feature extraction capability, using the MSResNet network to alleviate the problems of gradient vanishing and gradient exploding, measuring the distribution difference of source domain and target domain sample features through AMK-MMD, AMK-MMD measures the distance between source domain and target domain output features, and minimizes the difference in second-order statistics of source domain and target domain features, which can better reduce the distribution difference of source domain and target domain features, effectively improve the fault diagnosis accuracy and generalization ability of the domain adaptive fault diagnosis model, can effectively deal with the fault diagnosis situation where the target domain lacks labeled samples, and has more engineering significance for fault diagnosis of complex working conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flow chart of an embodiment of a fault diagnosis method based on MSResNet network provided by the present invention; Figure 2 A schematic diagram of a multi-scale parallel network structure of a fault diagnosis method based on an MSResNet network provided by the present invention; Figure 3 A schematic diagram of the structure of an embodiment of a fault diagnosis device based on an MSResNet network provided by the present invention; Figure 4 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0018] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0019] The present invention discloses a fault diagnosis method, device, equipment and medium based on MSResNet network, which can be used in a computer. The method, device or computer-readable storage medium involved in the present invention can be integrated with the above-mentioned device or can be relatively independent.

[0020] A specific embodiment of the present invention discloses a fault diagnosis method based on the MSResNet network, which can be executed by a computer, specifically by one or more processors of the computer. Figure 1 is a flowchart of a fault diagnosis method based on MSResNet network provided by an embodiment of the present invention, please refer to Figure 1 ,The fault diagnosis method based on MSResNet network includes: S101, obtaining labeled source domain samples and unlabeled target domain samples of rolling bearings; S102, constructing a fault diagnosis model based on the MSResNet network, extracting source domain and target domain sample features based on the fault diagnosis model, calculating the classification loss of the source domain samples, and measuring the distribution difference of the source domain and target domain sample features through AMK-MMD, constructing a loss function based on the classification loss and the distribution difference, and updating the parameters of the fault diagnosis model based on the loss function; S103, predicting the unlabeled target domain samples based on the fault diagnosis model with updated parameters to obtain the fault diagnosis result of the rolling bearing.

[0021] The vibration data of rolling bearings under multiple fault states are obtained, and the vibration data of the rolling bearings are one-dimensional vibration signals. After the vibration data are normalized and standardized, the processed vibration signals are labeled, and target domain and source domain data sets are constructed according to a preset ratio. The source domain data set includes labeled source domain samples, and the target domain data set includes unlabeled target domain samples and labeled target domain samples. The target domain and source domain data sets are divided into training sets and test sets according to the set ratio, wherein the training set includes labeled source domain samples and unlabeled target domain samples, and the test set includes unlabeled target domain samples. A fault diagnosis model based on the MSResNet network is constructed, wherein the fault diagnosis model includes an MSResNet network and a domain adaptation layer. The MSResNet network includes a first convolutional layer, a batch normalization layer, a ReLU activation function, a maximum pooling layer, a multi-scale parallel network structure, and an average pooling layer. The highly parallel network structure is integrated into the MSResNet network (one-dimensional residual neural network), and convolution kernels of different sizes are used to extract features at different levels of fine granularity, which can extract multi-scale features of rolling bearing vibration data and improve the feature extraction ability of the model. The domain adaptation layer includes the first fully connected layer, the second fully connected layer and the SoftMax classifier. The domain adaptation module is embedded in the fully connected layer. The domain adaptation module uses AMK-MMD to measure the distribution difference of the extracted source domain and target domain data features, which is convenient for parameter optimization, reduces the feature distribution gap between the target domain and the source domain, and improves the diagnostic performance of the migration network. The fault diagnosis model uses AMK-MMD distance and covariance matrix to measure feature differences, and combines the cross entropy loss function and the covariance matrix loss minimization term to build the final loss function. The parameters of the fault diagnosis model are updated through loss function training, which effectively improves the fault diagnosis accuracy and generalization ability of the model.

[0022] Compared with the prior art, the fault diagnosis method based on the MSResNet network provided in this embodiment obtains labeled source domain samples and unlabeled target domain samples of rolling bearings, obtains vibration data of rolling bearings under multiple fault states, adds labels to the vibration data, obtains target domain and source domain data sets, the source domain data set includes labeled source domain samples, the target domain data set includes unlabeled target domain samples and labeled target domain samples, divides the target domain and source domain data sets, obtains a training set and a test set, the training set includes labeled source domain samples and unlabeled target domain samples, and the test set includes unlabeled target domain samples , construct a fault diagnosis model based on MSResNet network, the fault diagnosis model includes MSResNet network, domain adaptation layer, the MSResNet network includes the first convolution layer, batch normalization layer, ReLU activation function, maximum pooling layer, multi-scale parallel network structure and average pooling layer, the domain adaptation layer includes the first fully connected layer, the second fully connected layer and SoftMax classifier, extract the source domain and target domain sample features based on the fault diagnosis model, integrate the multi-scale parallel network structure into the one-dimensional residual neural network, and use convolution kernels of different sizes at different levels of fine-grained The feature extraction is performed on the source domain to improve the feature extraction ability of the model, the classification loss of the source domain samples is calculated, and the distribution difference of the source domain and target domain sample features is measured by AMK-MMD. The fully connected layer of the domain adaptation layer is embedded in the domain adaptation module. The domain adaptation module uses AMK-MMD to measure the distribution difference of the extracted source domain and target domain data features, which is convenient for parameter optimization. The loss function is constructed based on the classification loss and distribution difference. The feature difference is measured by AMK-MMD distance and covariance matrix. The loss function is constructed by combining the cross entropy loss function and the covariance matrix loss minimization term, so that the output features of the source domain and the target domain become similar in the fully connected layer, reducing the feature distribution gap between the target domain and the source domain, and improving the diagnostic performance of the migration network. The parameters of the fault diagnosis model are updated by the back propagation algorithm. The unlabeled target domain samples are predicted based on the fault diagnosis model after parameter update to obtain the fault diagnosis results of the rolling bearing. The unlabeled target domain samples are input into the fault diagnosis model after parameter update to obtain the fault prediction results of the rolling bearing. This can effectively deal with the fault diagnosis situation where the target domain lacks labeled samples, and improve the fault diagnosis accuracy and generalization ability of the network model.

[0023] In some embodiments, in step S101, vibration data of rolling bearings under multiple fault states are obtained, and a shaft fault simulation test bench is used to obtain vibration data of the target domain and source domain required by the model, and load condition information. The test bench has a variety of replaceable rolling bearing fault parts to simulate various rolling bearing operating states of the test bench, and its rolling bearing operating states include no fault, inner ring fault, outer ring fault, and rolling element fault. A magnetic powder brake is used to simulate the load of the shaft system test bench, and different operating conditions of the shaft system operation are simulated by different loadings. The specific steps are: setting the collection points of the bearing seat of the rolling bearing on the shaft fault simulation test bench, and allowing the test bench to operate at a preset speed and load to simulate different operating conditions of the rolling bearing. Replace the normal and various faulty parts of the rolling bearing and repeat the previous operating states under different working conditions to obtain the vibration data of the rolling bearing under different fault states under different working conditions. The vibration data includes fault-free data, inner ring fault data, outer ring fault data and rolling element fault data, that is, obtain a one-dimensional original vibration signal, normalize and standardize the obtained vibration signal, and obtain vibration data with a data distribution mean of 0 and a variance of 1, which is used for the subsequent construction of source domain and target domain data sets. The calculation formula is: , in, is the data sample, is the minimum value in the data sample, is the maximum value in the data sample, is the sample mean, is the sample variance; The processed vibration data are labeled and divided according to a preset ratio to obtain a target domain data set and a source domain data set, wherein the source domain data set includes labeled source domain samples, and the target domain data set includes unlabeled target domain samples and labeled target domain samples. The target domain and source domain data sets are divided according to a set ratio to obtain a training set and a test set, wherein the training set includes labeled source domain samples and unlabeled target domain samples, and the test set includes unlabeled target domain samples.

[0024] In some embodiments, in step S102, a fault diagnosis model based on the MSResNet network is constructed, wherein the fault diagnosis model includes an MSResNet network and a domain adaptation layer, wherein the MSResNet network is an improved one-dimensional residual network, including a first convolution layer (the convolution kernel size is The multi-scale parallel network structure includes the second convolution layer, the third convolution layer, and the fourth convolution layer. The second convolution layer is a convolution layer with a convolution kernel size of 3, the third convolution layer is a convolution layer with a convolution kernel size of 5, and the fourth convolution layer is a convolution layer with a convolution kernel size of 7. The second convolution layer, the third convolution layer, and the fourth convolution layer form a parallel channel, and the second convolution layer, the third convolution layer, and the fourth convolution layer include four residual blocks respectively. The domain adaptation layer includes the first fully connected layer, the second fully connected layer, and the SoftMax classifier. The first fully connected layer and the second fully connected layer (Fully Connection, FC) are similar to the perceptron structure, which are composed of two layers of neurons connected to each other. A hidden layer with a ReLU activation function is introduced between the fully connected layers for nonlinear expression. The parameter expressions are as follows: , in, Representation sample No. The feature expression of the layer, represents the connection weight of this layer, represents the bias of the layer, represents a nonlinear activation function; The domain adaptation module is embedded in the fully connected layer to facilitate subsequent parameter optimization to reduce the feature distribution gap between the target domain and the source domain, and improve the diagnostic performance of the migration network. The Softmax activation function is used as the final classification decision after the fully connected layer to determine the input unlabeled target domain samples. Which fault category it belongs to.

[0025] In some embodiments, source domain and target domain sample features are extracted based on a fault diagnosis model, and the training set is input into the fault diagnosis model to train the fault diagnosis model. First, the parameters of the fault diagnosis model are initialized, and labeled source domain samples and unlabeled target domain samples are input into the MSResNet network of the fault diagnosis model to obtain source domain sample feature vectors and target domain sample feature vectors. Secondly, a domain adaptation layer is constructed based on AMK-MMD, and the source domain sample feature vectors and the target domain sample feature vectors are input into the domain adaptation layer. A loss function of the domain adaptation layer is constructed based on the source domain sample feature vectors and the target domain sample feature vectors. Finally, based on the loss function of the domain adaptation layer, the parameters of the fault diagnosis model are updated using a back propagation algorithm to obtain a fully trained domain adaptive fault diagnosis model.

[0026] In some embodiments, labeled source domain samples and unlabeled target domain samples are input into the MSResNet network, and convolution operations, standardization processing, batch normalization processing and maximum pooling operations are performed on the labeled source domain samples and the unlabeled target domain samples through the first convolution layer, batch normalization layer, ReLU activation function and maximum pooling layer to extract the main features of the labeled source domain samples and the unlabeled target domain samples, and feature extraction is performed on the main features of the labeled source domain samples and the unlabeled target domain samples through a multi-scale parallel network structure to obtain feature vectors of multiple different scales, and the feature vectors of multiple different scales are averaged and pooled through the average pooling layer to obtain multiple feature vectors, and the multiple feature vectors are fused using the concatenation function to obtain the source domain sample feature vector and the target domain sample feature vector.

[0027] Based on the traditional ResNet network, a one-dimensional multi-scale fusion residual network (MSResNet network) is constructed. The MSResNet network is used as a feature extractor to fully extract the scale features of the time domain signal at all levels. The traditional residual network is composed of a series of blocks, and each residual block can be expressed as: , in, For the The weight parameters of the network layer, For the The network weight parameters of the layer, For the Layer network to The mapping function of the layer network, Indicates Layer parameters; The residual block is divided into two parts: the residual part and the identity mapping part. The identity structure makes the residual part fit the residual of the output result of the previous layer instead of the residual of the entire network bottom layer. Assuming that the bottom layer mapping is directly fitted The current identity structure is to fit the residual based on the output of the previous layer. , normally it is easier to fit the output of the previous layer than to fit the underlying residual of the entire network, but in the residual block, and The dimensions of are consistent, if If downsampling causes the dimensions of the two to be inconsistent, a linear transformation of the identity structure is required to make the dimensions consistent and then add them element by element, as shown below: , in, is a network parameter of a certain layer, For relative The next layer network parameters are For a square matrix, and The dimensions are consistent, is a network parameter.

[0028] Compared with the traditional residual network, the deeply separable MSResNet network has a unique inception residual structure, using convolution kernel sizes of , , The convolutional layers of the network are used to build residual blocks of different scales to form a network parallel structure, that is, a multi-scale parallel network structure. For a schematic diagram of the multi-scale parallel network structure, please refer to Figure 2 , through the multi-scale parallel network structure to extract the characteristic information of vibration signals at different scales, 512 data points are taken as a data sample in time series, and the input is transformed into As an example, the feature extraction process is as follows: The input signal passes through a convolution kernel with a size of The convolution layer, batch normalization layer, ReLU activation function, and maximum pooling layer are then built into a multi-scale parallel network structure with three different convolution kernel sizes to extract the features of vibration signals at different scales, increase the receptive field of the network, and improve the generalization ability of the network. After passing through four residual block structures, the multi-scale parallel network structure will output three sizes of The feature vector is output through an average pooling layer, and the three output feature vectors are fused by Concatenate to merge the number of channels to strengthen the propagation of features, and finally output a size of The feature vector of .

[0029] In some embodiments, after obtaining the source domain sample feature vector and the target domain sample feature vector, the source domain sample feature vector and the target domain sample feature vector are input into the domain adaptation layer of the fault diagnosis model, and the distribution difference of the source domain and the target domain sample features is measured by AMK-MMD. The source domain sample feature vector and the target domain sample feature vector are mapped to the reproducing kernel Hilbert space by the optimal kernel function of the domain adaptation layer, and the AMK-MMD distance is calculated. The feature distribution difference between the source domain sample feature vector and the target domain sample feature vector is determined based on the AMK-MMD distance; the size of the output after the Concatenate method is The feature vector will pass through the two fully connected layers of the domain adaptation layer. Since the features extracted by the MSResNet network will increase the degree of feature abstraction, the subsequent feature distribution difference between the source domain and the target domain will increase. By embedding the domain adaptation module in the fully connected layer, it is convenient to optimize the parameters and reduce the feature distribution gap between the target domain and the source domain. The domain adaptation layer defines AMK-MMD to measure the distribution distance of the source domain and target domain data features. The AMK-MMD distance, that is, the adaptive multi-core maximum mean distance, is an extension of the traditional MMD concept. It is a function that measures the distribution difference of two different data sets. The existing MMD method is based on a single kernel function for mapping transformation. However, the optimal kernel function for mapping different data sets is different. The existing MMD method cannot guarantee that the kernel function of the mapping is optimal. AMK-MMD assumes that the optimal kernel function is obtained through an adaptive linear combination of multiple kernel functions, which can better characterize the distribution of two data sets in high-dimensional space. Given the data set in the source domain: , The dataset of the target domain consists of a small amount of labeled data and unlabeled data. The dataset of the target domain is: , The datasets in the source domain and the target domain can be used to calculate and MMD distance: , in, represents the source domain sample, represents the target domain sample, and Represent the number of samples in the source domain and the target domain respectively, represents the mapping to the reproducing kernel Hilbert space, Represents a nonlinear mapping function, the purpose of which is to map the original data into a high-dimensional space; in order to use the kernel function Simplified representation is to solve the inner product of two high-dimensional vectors. After squaring the above formula, we can simplify it to get the expression of the inner product kernel function:

[0030]

[0031] , in, represents the source domain sample, represents the target domain sample, represents the inner product expression of the source domain sample vector, represents the inner product expression of the target domain sample vector, and Represent the number of samples in the source domain and the target domain respectively, represents the mapping to the reproducing kernel Hilbert space, Represents a nonlinear mapping function; AMK-MMD is an improved method based on the MMD method. The core of the MMD method is the kernel function AMK-MMD uses multiple kernels to adaptively construct an optimal kernel function. The calculation formula of AMK-MMD (multi-kernel maximum mean difference) is: , in, is the AMK-MMD distance, For the source domain samples, For the source domain samples, For the target domain samples, For the target domain samples, , is the number of source domain samples, is the number of samples in the target domain, is the feature kernel function, is the reproducing kernel Hilbert space mapping, is the mapping relationship, and the feature kernel function related to, and , is a constant, is a constant; That is the optimal kernel function, and the optimal kernel function calculation formula is: , in, is the optimal kernel function, defined as the weighted sum of multiple different kernels, is the number of kernel functions, is the weight, and the weight constraint is imposed to ensure the output core is specific; Based on the labeled source domain samples and the unlabeled target domain samples, the covariance matrix of the source domain samples and the covariance matrix of the target domain samples are calculated respectively. Based on the covariance matrix of the source domain samples and the covariance matrix with the target domain samples, the covariance matrix loss minimization item is calculated. In the domain adaptation task, it is necessary not only to make the mean embedding of the source domain and the target domain as close as possible, but also to make their covariance matrices as similar as possible, so as to minimize the difference in the second-order statistics. The covariance matrix can measure the correlation and variance information between features, and is an important statistic for describing data distribution. The covariance matrix of the source domain samples and the target domain samples is calculated based on the source domain samples and the target domain samples. The calculation formula of the covariance matrix of the source domain samples is: , in, is the source domain sample, is the sample mean, is the sample size, is the sample matrix, The covariance matrix of source domain samples; The formula for minimizing the covariance matrix loss between the source domain and the target domain is: , in, is the covariance matrix loss minimization term, is the covariance matrix of source domain samples, is the covariance matrix of the target domain samples, is the Frobenius norm of the matrix; The classification loss of the source domain sample feature vector is calculated through the cross entropy loss function, and the calculation formula of the classification loss is: , in, is the classification loss, is the input sample, For the corresponding label, is the sample size, is the cross entropy loss function, is the mapping result; The domain loss function is constructed based on classification loss, feature distribution difference and covariance matrix loss minimization. A multi-layer adaptive regularizer based on AMK-MMD and a method of minimizing the covariance matrix loss term are added to the classification loss, so that the output features of the source domain and the target domain become similar in the fully connected layer. The loss function is calculated as follows: , in, is the loss function of the adaptive layer, is the input sample, For the corresponding label, is the cross entropy loss function, is a hyperparameter, according to Make changes, is the current iteration number, , is the layer index of the regularizer. In this network , , For the The maximum multi-core mean difference between the source domain and the target domain distribution, represents the covariance matrix of the source domain, represents the covariance matrix of the target domain.

[0032] In some embodiments, the parameters of the fault diagnosis model are updated based on the loss function, and the parameters of the fault diagnosis model are updated using the back propagation algorithm to obtain a fully trained domain adaptive fault diagnosis model, wherein the Adam optimizer is used to train the weight parameters of the domain adaptive layer, the learning rate is initially set to 0.005, and a MultiStepLR scheduler is introduced to dynamically adjust the learning rate. The learning rate is multiplied by 0.1 every 50 generations, and the learning rate is gradually reduced so that the network can finally converge. The early stopping method is used to reduce the overfitting of the network, and finally a fully trained domain adaptive fault diagnosis model is obtained.

[0033] In some embodiments, in step S103, the unlabeled target domain samples are predicted based on the fault diagnosis model with updated parameters to obtain the fault diagnosis results of the rolling bearing, the unlabeled target domain samples are input into the fully trained domain adaptive fault diagnosis model to obtain the fault prediction results of the rolling bearing, the labels predicted by the model are compared with the real labels, and the final fault diagnosis performance of the model is calculated.

[0034] In some embodiments, the performance of the fault diagnosis model based on the MSResNet network is verified as follows: The model is trained using the collected and processed data set of the rotating machinery fault simulation test bench. The data set contains the vibration acceleration signals of bearings with different fault states at different speeds. The bearing model used this time is SKF6205 deep groove ball rolling bearing, and the sampling frequency is set to 12kHz. The experiment is carried out at different speeds of 300rpm, 900rpm, 1500rpm, and 2100rpm. The vibration of rolling bearings with different fault states is collected. The bearings of each fault type are normal bearings processed by electric spark machines. There are five fault types, including inner ring cracks, outer ring cracks, inner ring pitting, outer ring pitting, and rolling element pitting. 512 data points are intercepted from the time series as a training sample. The number of samples under each fault state is 500, as shown in Table 1, which shows the division of the data set at 300rpm. Table 1

[0035] The data set divisions at 900rpm, 1500rpm, and 2100rpm are equivalent to the case at 300rpm; The experimental results are analyzed. Since the distribution of the vibration signals of the test bench at different speeds is quite different, in order to verify the feasibility, the tasks at four speeds of 300rpm, 900rpm, 1500rpm, and 2100rpm are used for transfer learning training. Finally, there are a total of 12 transfer tasks, as shown in Table 2.

[0036] Table 2

[0037] The performance is compared with the other three models, including the ResNet network without transfer learning, the ResNet migration network based on AMK-MMD domain adaptation, and the ResNet migration network based on MMD domain adaptation. The comparison results are as follows: the diagnosis rate of the ResNet network without transfer learning is about 75%. This is because the difference between vibration signals of different speeds is large. The diagnostic model of the source domain is forcibly applied to the target domain, and the extracted features are very different, so the model diagnostic performance is poor. The accuracy of the other three models using transfer learning is higher than that of the model without transfer learning strategy, which shows that the domain adaptive transfer learning strategy can effectively reduce the difference in feature distribution between the target domain and the source domain at the feature level, and improve the diagnostic performance of the target domain. The ResNet migration network based on AMK-MMD domain adaptation has an accuracy improvement of about 2%~4% compared with the ResNet migration network based on MMD domain adaptation, which utilizes the core of multi-core linear combination. The function is used to map features, which can better narrow the feature distribution difference between the source domain and the target domain. The MSResNet migration network based on AMK-MMD domain adaptation has an improvement of 2%~5% compared with the ResNet migration network based on AMK-MMD domain adaptation. The residual network with multi-scale fusion can fully extract features at different fine-grained levels. The feature mining of the target domain and the source domain is more sufficient than that of the traditional residual network. The distribution of the source domain and the target domain can be better described in the domain adaptation layer, and the generalization ability of the model is enhanced. The above results show that the MSResNet migration network based on AMK-MMD domain adaptation, that is, the fault diagnosis model based on the MSResNet network, can perform robust fault diagnosis under complex working conditions, improve the feature extraction ability of the neural network for samples, realize the domain adaptation ability of the model, and effectively deal with the fault diagnosis situation where the target domain lacks labeled samples. It has more engineering significance for fault diagnosis under complex working conditions.

[0038] In order to better implement the fault diagnosis method based on the MSResNet network in the embodiment of the present invention, based on the fault diagnosis method based on the MSResNet network, correspondingly, Figure 4 As shown, the embodiment of the present invention further provides a fault diagnosis device based on the MSResNet network. The fault diagnosis device 300 based on the MSResNet network includes: The sample acquisition module 301 is used to acquire labeled source domain samples and unlabeled target domain samples of rolling bearings; The network model construction module 302 is used to construct a fault diagnosis model based on the MSResNet network, extract the source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, measure the distribution difference of the source domain and target domain sample features through AMK-MMD, construct a loss function based on the classification loss and the distribution difference, and update the parameters of the fault diagnosis model based on the loss function; The fault diagnosis module 303 is used to predict the unlabeled target domain samples based on the fault diagnosis model with updated parameters to obtain the fault diagnosis result of the rolling bearing.

[0039] like Figure 4 As shown, based on the fault diagnosis method of MSResNet network, the present invention also provides an electronic device 400, which can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device 400 includes a processor 401, a memory 402, and a display 403. Figure 4 Only some components of the electronic device 400 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0040] In some embodiments, the memory 402 may be an internal storage unit of the electronic device 400, such as a hard disk or memory of the electronic device 400. In other embodiments, the memory 402 may also be an external storage device of the electronic device 400, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 400. Further, the memory 402 may also include both an internal storage unit of the electronic device 400 and an external storage device. The memory 402 is used to store application software and various types of data installed in the electronic device 400, such as program codes installed in the electronic device 400. The memory 402 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a fault diagnosis program based on the MSResNet network is stored on the memory 402, and the mechanical equipment multi-fault decoupling program can be executed by the processor 401, thereby realizing the fault diagnosis method based on the MSResNet network of each embodiment of the present invention.

[0041] In some embodiments, the processor 401 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 402, such as a fault diagnosis method based on the MSResNet network.

[0042] In some embodiments, the display 403 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 403 is used to display identification information of the fault diagnosis program based on the MSResNet network and to display a visual user interface. The components 401-403 of the electronic device 400 communicate with each other through a system bus.

[0043] In some embodiments, when the processor 401 executes the fault diagnosis program based on the MSResNet network in the memory 402, the various steps in the fault diagnosis method based on the MSResNet network described in the above embodiments are implemented. Since the fault diagnosis method based on the MSResNet network has been described in detail above, it will not be repeated here.

[0044] In summary, the fault diagnosis method, device, equipment and medium based on the MSResNet network provided by the present invention obtain labeled source domain samples and unlabeled target domain samples of rolling bearings; construct a fault diagnosis model based on the MSResNet network, extract source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, and measure the distribution difference of source domain and target domain sample features through MK-MMD, construct a loss function based on the classification loss and distribution difference, and update the parameters of the fault diagnosis model based on the loss function; predict the unlabeled target domain samples based on the fault diagnosis model after parameter update, and obtain the fault diagnosis result of the rolling bearing, thereby improving the fault diagnosis accuracy and generalization ability of the domain adaptive fault diagnosis model.

[0045] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0046] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A fault diagnosis method based on MSResNet network, characterized in that: include: Obtain labeled source domain samples and unlabeled target domain samples of rolling bearings; Construct a fault diagnosis model based on the MSResNet network, extract source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, measure the distribution difference of the source domain and target domain sample features through AMK-MMD, construct a loss function based on the classification loss and distribution difference, and update the parameters of the fault diagnosis model based on the loss function; The unlabeled target domain samples are predicted based on the fault diagnosis model after parameter update to obtain the fault diagnosis result of the rolling bearing.

2. The fault diagnosis method based on MSResNet network according to claim 1, characterized in that: The step of obtaining labeled source domain samples and unlabeled target domain samples of rolling bearings includes: Acquire vibration data of the rolling bearing under multiple fault states, wherein the vibration data includes no-fault data, inner ring fault data, outer ring fault data, and rolling element fault data; Normalizing and standardizing the vibration data, and adding labels to the processed vibration data to obtain a target domain data set and a source domain data set, wherein the source domain data set includes labeled source domain samples, and the target domain data set includes unlabeled target domain samples and labeled target domain samples; The target domain data set and the source domain data set are divided to obtain a training set and a test set, wherein the training set includes labeled source domain samples and unlabeled target domain samples, and the test set includes unlabeled target domain samples.

3. The fault diagnosis method based on MSResNet network according to claim 2 is characterized in that: The fault diagnosis model includes an MSResNet network and a domain adaptation layer, wherein the MSResNet network includes a first convolutional layer, a batch normalization layer, a ReLU activation function, a maximum pooling layer, a multi-scale parallel network structure, and an average pooling layer, and the domain adaptation layer includes a first fully connected layer, a second fully connected layer, and a SoftMax classifier, wherein the first fully connected layer and the second fully connected layer are respectively embedded with domain adaptation modules; The extracting source domain and target domain sample features based on the fault diagnosis model includes: The labeled source domain samples and the unlabeled target domain samples are input into the MSResNet network, and convolution operations, standardization processing, batch normalization processing and maximum pooling operations are performed on the labeled source domain samples and the unlabeled target domain samples through the first convolution layer, batch normalization layer, ReLU activation function and maximum pooling layer to extract the main features of the labeled source domain samples and the unlabeled target domain samples, and feature extraction is performed on the main features through the multi-scale parallel network structure to obtain feature vectors of multiple scales, and the feature vectors of the multiple scales are averaged and pooled by the average pooling layer to obtain multiple feature vectors, and the multiple feature vectors are fused by using the connection function to obtain the source domain sample feature vector and the target domain sample feature vector.

4. The fault diagnosis method based on MSResNet network according to claim 3 is characterized in that: The multi-scale parallel network structure includes a second convolution layer, a third convolution layer, and a fourth convolution layer, wherein the second convolution layer is a convolution layer with a convolution kernel size of 3, the third convolution layer is a convolution layer with a convolution kernel size of 5, and the fourth convolution layer is a convolution layer with a convolution kernel size of 7, and the second convolution layer, the third convolution layer, and the fourth convolution layer respectively include four residual blocks.

5. The fault diagnosis method based on MSResNet network according to claim 3 is characterized in that: Measuring the distribution difference of the source domain and the target domain sample features by AMK-MMD includes: The source domain sample feature vector and the target domain sample feature vector are mapped to the reproducing kernel Hilbert space through the optimal kernel function of the fault diagnosis model, and the AMK-MMD distance is calculated. The feature distribution difference between the source domain sample feature vector and the target domain sample feature vector is determined based on the AMK-MMD distance.

6. The fault diagnosis method based on MSResNet network according to claim 5 is characterized in that: The constructing a loss function based on the classification loss and the distribution difference includes: Based on the labeled source domain samples and the unlabeled target domain samples, respectively calculating the covariance matrix of the source domain samples and the covariance matrix of the target domain samples, and based on the covariance matrix of the source domain samples and the covariance matrix of the target domain samples, calculating the covariance matrix loss minimization item; A loss function is constructed based on the classification loss, the distribution difference, and the covariance matrix loss minimization term.

7. The fault diagnosis method based on MSResNet network according to claim 6 is characterized in that: The calculation formula of the AMK-MMD distance is: , in, is the AMK-MMD distance, For the source domain samples, For the source domain samples, For the target domain samples, For the target domain samples, is the number of source domain samples, is the number of samples in the target domain, is the feature kernel function, is the reproducing kernel Hilbert space mapping, For the mapping relationship, is a constant, is a constant; The calculation formula of the optimal kernel function is: , in, is the optimal kernel function, is the number of kernel functions, is the weight; The calculation formula of the classification loss is: , in, is the classification loss, is the input sample, For the corresponding label, is the sample size, is the cross entropy loss function, is the mapping result; The calculation formula for the covariance matrix loss minimization term is: , in, is the covariance matrix loss minimization term, is the covariance matrix of source domain samples, is the covariance matrix of the target domain samples, is the Frobenius norm of the matrix; The calculation formula of the loss function is: , in, is the loss function, is the input sample, For the corresponding label, is the cross entropy loss function, is a hyperparameter, , is the layer index of the regularizer, For the The multi-core maximum mean difference between the source and target domain distributions of the layer.

8. A fault diagnosis device based on MSResNet network, characterized in that: include: A sample acquisition module is used to acquire labeled source domain samples and unlabeled target domain samples of rolling bearings; A network model construction module is used to construct a fault diagnosis model based on the MSResNet network, extract source domain and target domain sample features based on the fault diagnosis model, calculate the classification loss of the source domain samples, measure the distribution difference of the source domain and target domain sample features through AMK-MMD, construct a loss function based on the classification loss and distribution difference, and update the parameters of the fault diagnosis model based on the loss function; The fault diagnosis module is used to predict the unlabeled target domain samples based on the fault diagnosis model after parameter update to obtain the fault diagnosis result of the rolling bearing.

9. An electronic device, characterized in that: including memory and processor; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps of the fault diagnosis method based on the MSResNet network as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the fault diagnosis method based on the MSResNet network as described in any one of claims 1-7.

Citation Information

Cited By

  • Unsupervised cross-domain forged voice detection method based on fusion loss constraint

    CN119559952A

  • Fault prediction method for cold and hot rolling host

    CN119691579A

  • Fault identification method, device and equipment for transformer bushing and medium

    CN119920267A