Intelligent bearing fault diagnosis method and equipment based on multi-layer alignment strategy domain adaptation

Through the multi-layer alignment strategy and feature extractor alignment technology, the problem of large differences in the data domain of bearings across equipment is solved, the diagnostic accuracy of transfer learning is improved, and the knowledge transfer from labeled data to unlabeled data is realized, and accurate bearings are output. Troubleshooting results.

CN118190414BActive Publication Date: 2024-11-01FOSHAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410140790.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-11-01
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

The existing domain adaptation method based on transfer learning is difficult to effectively integrate cross-device bearing data when facing large differences across machine data domains, resulting in a decrease in diagnostic accuracy, and ignoring the potential category information of the target domain and a single alignment strategy, which leads to two types of Domain data cannot be effectively fusion.

Method used

Using a multi-layer alignment strategy, the feature extractor and classifier are trained to realize the source by combining the Wasserstein distance, CORAL and singular value minimization loss function. Align the domain and target domain features and classification results to improve migration effect and diagnostic accuracy.

Benefits of technology

In the process of minimizing the difference between the source domain and the target domain, the domain constant characteristics between the cross-machine data are automatically obtained to improve the model diagnostic accuracy, realize the knowledge transfer from labeled bearing data to unlabeled bearing data, and output accurate diagnostic results .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118190414B_ABST
    Figure CN118190414B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent bearing fault diagnosis method and device based on multi-layer alignment strategy domain adaptation, which relates to the technical field of bearing fault diagnosis. The method comprises: inputting source domain samples and target domain samples into an inter-domain class space alignment module for data reconstruction; inputting the source domain samples and target domain samples after data reconstruction into a feature extractor to extract source domain features and target domain features, and performing feature distribution alignment and feature space alignment on the source domain features and target domain features through a discriminator to train the feature extractor; inputting the aligned source domain features and target domain features into a classifier to generate source domain classification results and target domain classification results, and performing output probability distribution alignment based on singular values ​​to train the classifier; and inputting the target domain data into the trained target domain feature extractor and target domain classifier to generate fault diagnosis results. The present invention can effectively improve the migration effect and the diagnostic accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bearing fault diagnosis, and in particular to an intelligent bearing fault diagnosis method and device based on multi-layer alignment strategy domain adaptation. Background Art

[0002] Bearings play a very important role in the manufacturing industry. They are a very common and critical part of rotating mechanical equipment. Once a failure occurs, production efficiency will be affected at the least, and serious casualties will be caused at the worst. In order to reduce maintenance costs and avoid casualties, it is necessary to diagnose the fault in a timely and accurate manner before losses occur.

[0003] Analysis of bearing vibration signals is a very effective method for bearing fault diagnosis. With the rapid development of artificial intelligence technology in recent years, deep learning models have been introduced for fault diagnosis. However, the performance of deep learning methods depends largely on whether there is enough labeled data to train the diagnostic model. In actual engineering sites, due to the complexity and danger of the machine operating environment, it is difficult for us to collect enough fault samples for machine training. Moreover, the machine working environment, load, speed and other conditions are complex and changeable. When the data distribution for training and testing is inconsistent, the performance of the current deep learning method will be degraded, which makes the diagnostic knowledge we obtained from the laboratory bearing data set unable to be used in the engineering site.

[0004] Fortunately, transfer learning provides a new perspective to reduce the dependence of deep learning models on training data by narrowing the domain gap. Currently, methods based on transfer learning domain adaptation have been increasingly studied. However, existing methods based on transfer learning domain adaptation mainly focus on solving the problem of small differences in data domain distribution, and do not involve the situation of large differences in cross-machine data domains. In today's practical applications, equipment is highly integrated and there are many machine models. Cross-equipment bearing data is very common, which is a challenge faced by fault diagnosis work.

[0005] There is little commonality between data across devices, and how to seek precious public domain knowledge between them is a very challenging problem. In the face of this challenge, some scholars have also done research. For example, Wang et al. developed a semi-supervised discriminant adversarial domain adaptation method to achieve cross-machine fault diagnosis. Yuxuan Zhou et al. introduced a Deep Dynamic Adaptive Transfer Network to deal with Rolling Bearing Fault Diagnosis of Cross-Machine data. Quan Qian et al. proposed an integrated weighted subdomain adaptive network diagnosis model to improve the degree of domain confusion. MINGZHULV et al. constructed a weighted hybrid kernel function to map different transferable features to the same feature space. Jun He et al. designed a feature extractor and classifier with WGAN and Min Singer Value optimization mechanism to improve domain adaptability. However, these works still have some shortcomings. First, they ignore the impact of the target domain potential category information on the accuracy of the algorithm. Second, they adopt a single alignment strategy. These reasons lead to the inability to effectively fuse the two domain data. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide an intelligent bearing fault diagnosis method and device based on multi-layer alignment strategy domain adaptation, which can effectively improve the migration effect and the diagnostic accuracy of the model.

[0007] In order to solve the above technical problems, the present invention provides an intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation, comprising: inputting source domain samples and target domain samples into an inter-domain class space alignment module for data reconstruction so that the class space of the source domain samples is aligned with the class space of the target domain samples; inputting the reconstructed source domain samples and target domain samples into a feature extractor to extract source domain features and target domain features, and performing feature distribution alignment and feature space alignment on the source domain features and the target domain features through a discriminator to train the feature extractor, the feature extractor including a source domain feature extractor and a target domain feature extractor; inputting the aligned source domain features and target domain features into a classifier to generate source domain classification results and target domain classification results, aligning the output probability distribution of the source domain classification results and the target domain classification results based on singular values ​​to train the classifier so that the distribution difference between the source domain classification results and the target domain classification results is minimized, the classifier including a source domain classifier and a target domain classifier; inputting the target domain data into the trained target domain feature extractor and the target domain classifier to generate a fault diagnosis result.

[0008] As an improvement of the above solution, after the intra-class space of the source domain sample is aligned with the intra-class space of the target domain sample, the adaptation optimization process of the source domain sample and the target domain sample is changed to:

[0009]

[0010] Among them, c is the number of categories, μ is the complex weight coefficient, and n s is the number of source domain sample categories, J is the loss function, f is the diagnostic model, is the source domain sample, is the target domain sample, is the label corresponding to the source domain sample, λ is the penalty coefficient, is a distance metric.

[0011] As an improvement of the above scheme, the feature extractor is trained according to the following optimization objective function:

[0012]

[0013] Among them, X s is the source domain sample, Y s is the source domain label, X t is the target domain sample, θ f is the parameter of the feature extractor, θ c1 is the parameter of the source domain classifier, c is the number of categories, μ is the complex weight coefficient, n s is the number of source domain sample categories, L c is the cross entropy loss function, θ d is the parameter of the discriminator, α is the weight factor of the WGAN adversarial term, L wd is the Wasserstein distance, λ is the penalty coefficient, L gd is the loss of the constraint mechanism, L COARL Minimize the loss function for CORAL.

[0014] As an improvement of the above scheme, the step of training the feature extractor includes: extracting source domain features of the source domain samples through the source domain feature extractor, and extracting target domain features of the target domain samples through the target feature extractor; updating the discriminator by maximizing the Wasserstein distance between the source domain features and the target domain features; freezing the parameters of the discriminator, and updating the feature extractor by minimizing the Wasserstein distance between the source domain samples and the target domain samples, so that the discriminator and the feature extractor are subjected to adversarial training; updating the source domain classifier by minimizing the cross entropy loss function between the source domain features and the target domain features; updating the feature extractor by minimizing the cross entropy loss function between the source domain samples and the source domain labels; updating the feature extractor by minimizing the CORAL minimization loss function between the source domain samples and the target domain samples.

[0015] As an improvement of the above scheme, the CORAL minimization loss function is:

[0016]

[0017] Where F is the Frobenius norm of the square matrix, C S is the covariance matrix of the source domain features, C T is the covariance matrix of the target domain features, c is the number of categories, and d is the data feature dimension.

[0018] As an improvement of the above solution, the target domain classifier is trained according to the following formula:

[0019]

[0020] Among them, θ c2 is the parameter of the target domain classifier, c is the number of categories, n s is the number of source domain sample categories, n t is the number of sample categories in the target domain, L c is the cross entropy loss function, β is the balance factor, L sv is the loss function that minimizes the singular values.

[0021] As an improvement of the above scheme, the step of training the target domain classifier includes: freezing the trained feature extractor and the parameters of the feature extractor; updating the parameters of the target domain classifier by minimizing the cross entropy loss function between the source domain samples and the source domain labels; and updating the parameters of the target domain classifier by minimizing the singular value loss function between the source domain samples and the target domain samples.

[0022] As an improvement of the above scheme, the cross entropy loss function L c for:

[0023]

[0024] Among them, X s is the source domain sample, Y s is the source domain label, n s is the number of source domain samples, and m is the number of fault categories. As an improvement to the above scheme, the singular value loss function L sv for:

[0025] L sv =|Σ s -Σ t |

[0026] Among them, Σ s is the singular value of the source domain feature batch output probability, Σ t Outputs singular values ​​of the probability for batches of target domain features.

[0027] Correspondingly, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein when the processor executes the computer program, the steps of the above-mentioned intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation are implemented.

[0028] The implementation of the present invention has the following beneficial effects:

[0029] In the process of minimizing the difference between the source domain and the target domain, the present invention automatically obtains domain-invariant features between cross-machine data, which is beneficial to improving the diagnostic accuracy of the model;

[0030] The present invention adopts an inter-domain intra-class spatial alignment method based on weighted pseudo-labels, which can balance the impact of the inconsistent number of pseudo-labels of various categories in the source domain and the target domain, promote the alignment of the entire domain level, and also align the inter-domain spatial structure of the source domain and the target domain.

[0031] The present invention adopts a multiple alignment strategy, taking into account the data domain information at the three levels of input, output and features of the source domain and the target domain at the same time, so as to narrow the domain differences in an all-round and multi-terminal manner and better improve the migration effect; thereby realizing the knowledge transfer from one labeled bearing data to another unlabeled bearing data and outputting accurate diagnostic results. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of an embodiment of the intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation of the present invention;

[0033] Figure 2 It is a schematic diagram of an intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation of the present invention;

[0034] Figure 3 is a schematic diagram of the inter-domain intra-class spatial alignment process in the present invention;

[0035] Figure 4 is a schematic diagram of the feature distribution alignment and feature space alignment process in the present invention;

[0036] Figure 5 is a schematic diagram of the output probability distribution alignment process based on singular values ​​in the present invention;

[0037] Figure 6 is the accuracy curve of the number of iterations;

[0038] Figure 7 This is a diagram showing the visualization results of feature extraction without intra-class spatial alignment between domains;

[0039] Figure 8 This is a diagram showing the visualization results of feature extraction when minimizing the output distribution difference is not used;

[0040] Fig. 9 It is a schematic diagram of the feature extraction visualization result of the present invention;

[0041] Fig.10 This is a schematic diagram of the visualization results of feature extraction using the WDDTL method;

[0042] Fig.11 This is a schematic diagram of the feature extraction visualization result of the DATN method;

[0043] Fig.12 This is a schematic diagram of the visualization results of feature extraction using the WDMSV method. DETAILED DESCRIPTION

[0044] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0045] See also Figure 1 and Figure 2 , Figure 1 and Figure 2 The flowchart of an embodiment of the intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation of the present invention is shown, which includes:

[0046] S101, inputting the source domain samples and the target domain samples into the inter-domain intra-class space alignment module for data reconstruction, so that the intra-class space of the source domain samples is aligned with the intra-class space of the target domain samples;

[0047] It should be noted that samples from a domain have a certain intra-domain spatial structure, and the category information of the data is an important factor affecting the internal spatial structure of a domain. The prior art mainly focuses on the alignment of the entire source domain with the entire target domain, while ignoring the category information of samples in the two domains and the internal spatial structure of the domain, which will cause some irrelevant data to be too close to be accurately classified. In order to make full use of the potential intra-domain category information of the data and facilitate the alignment of the spatial structure, the present invention constructs an inter-domain intra-class spatial alignment module for the data input level.

[0048] like Figure 3 As shown, the inter-domain intra-class spatial alignment module can reconstruct the spatial structure according to the category information hidden within the domain. The purpose of the reconstruction is to align the intra-domain spatial structures of the source domain and the target domain, reduce the intra-class domain offset, and promote cross-domain positive migration. Among them, the label information of the source domain samples is known, and the labels of the target domain samples are assigned by the weighted pseudo-label learning RPLL. The inter-domain intra-class spatial alignment module performs an intra-class spatial alignment on the input data level for the input of the model, that is, the samples of the two domains. The present invention can realize domain information alignment at the category level, which can minimize the risk of samples in the target domain being misclassified into irrelevant categories, and help promote the adaptation of the two domains.

[0049] Correspondingly, after the intra-class space of the source domain sample is aligned with the intra-class space of the target domain sample, the adaptation optimization process of the source domain sample and the target domain sample changes to:

[0050]

[0051]

[0052] Among them, c is the number of categories, μ is the complex weight coefficient of the pseudo label, and n s is the number of source domain sample categories, n t is the number of sample categories in the target domain, J is the loss function, f is the diagnostic model, is the source domain sample, is the target domain sample, is the label corresponding to the source domain sample, λ is the penalty coefficient, is the distance measure.

[0053] It should be noted that if the pseudo-label is directly regarded as the basis for constructing the spatial alignment of the sample classes between domains, it means that the mismatch in the number of cross-domain samples in the same label will bias the model. Therefore, it is necessary to correct the pseudo-label. The correction mode is to modify the weight of the pseudo-label with a larger or smaller number to have a relatively balanced effect. Therefore, the present invention defines a complex weight coefficient μ for each category of pseudo-label to compensate for the impact caused by the inconsistent number of various categories in the source domain and the target domain.

[0054] Therefore, when the samples of the two domains pass through the inter-domain intra-class spatial alignment module, data reconstruction is performed to achieve intra-class spatial alignment.

[0055] S102, inputting the source domain samples and the target domain samples after data reconstruction into a feature extractor to extract source domain features and target domain features, and performing feature distribution alignment and feature space alignment on the source domain features and the target domain features through a discriminator to train the feature extractor;

[0056] In the present invention, the feature extractor includes a source domain feature extractor and a target domain feature extractor.

[0057] It should be noted that extracting good features can help the model better understand the data and improve the accuracy and generalization ability of the model. When there is a large domain difference between the source domain and the target domain, the distribution and space of the data in the two domains are different. In order to extract domain-invariant features between the data in the two domains, in addition to aligning the feature distribution of WGAN-GP (Wasserstein generative adversarial network with gradient penalty), the present invention also introduces the covariance matrix and CORAL (Correlation Alignment) for feature space structure alignment. Under the adversarial training in the WGAN-GP strategy, the feature extractor can reduce the distribution difference between the data in the two domains and capture representative common features; and the covariance matrix can reflect the relationship between different variables in the data set, thereby providing information about the spatial structure of the data set, so CORAL provides a good means for measuring the data space difference between the two domains.

[0058] like Figure 4 As shown in the figure, after aligning the feature distribution using the WGAN-GP strategy, the data distribution is roughly aligned, but there are still significant spatial differences, which hinders the feature fusion process; subsequently, using the covariance matrix and CORAL for spatial alignment can further deepen the degree of feature fusion.

[0059] Specifically, the steps of training the feature extractor include:

[0060] (1) The source domain features of the source domain samples are extracted by the source domain feature extractor, and the target domain features of the target domain samples are extracted by the target feature extractor;

[0061] In the process of domain adaptation, a source domain feature extractor is used to extract source domain features from source domain samples, and a target domain feature extractor is used to extract target domain features from target domain samples.

[0062] (2) Update the discriminator by maximizing the Wasserstein distance between the source domain features and the target domain features;

[0063] The calculation formula of Wasserstein distance is as follows:

[0064]

[0065] Among them, X s is the source domain sample, X t is the target domain sample, x s is a sample from the source domain, x t is a sample from the target domain, n s is the number of source domain samples, n t is the number of samples in the target domain, F is the feature extractor, and D is the discriminator.

[0066] (3) Freeze the parameters of the discriminator and update the feature extractor by minimizing the Wasserstein distance between the source domain samples and the target domain samples, so that the discriminator and the feature extractor can be trained adversarially;

[0067] After extracting the features, the Wasserstein distance is used to evaluate the distribution difference of the features and minimize the distance between the source domain samples and the target domain samples; accordingly, a discriminator can be constructed to estimate the distance between the two feature distributions and output an actual value of 0 to 1.

[0068] In each iteration, the discriminator wants to maximize the Wasserstein distance as much as possible to improve its ability to distinguish the features of the two domains. However, the goal of the feature extractor is to make the Wasserstein distance as small as possible so that the features it extracts can confuse the discriminator as much as possible. After repeated adversarial training, the feature extractor can reduce the Wasserstein distance between two samples and obtain domain-invariant features.

[0069] While determining the feature extraction to maximize and minimize adversarial training, in order to further improve the effect and stability of training, the present invention follows the Lipschitz constraint mechanism and adopts a gradient penalty strategy to enforce the constraint. The loss of the constraint mechanism is as follows:

[0070]

[0071] in, are the features of the source domain and the target domain, D is the discriminator, ▽ is the gradient, and P is the data distribution that the sample obeys.

[0072] Combining steps (2) and (3), the overall optimization goal of WGAN-GP is as follows:

[0073]

[0074] Among them, θ fis the parameter of the feature extractor, θ d is the parameter of the discriminator, λ is the penalty coefficient, L wd is the Wasserstein distance, L gd is the loss of the constraint mechanism.

[0075] (4) Update the source domain classifier by minimizing the cross entropy loss function between source domain features and target domain features;

[0076] (5) Update the feature extractor by minimizing the cross entropy loss function between source domain samples and source domain labels;

[0077] (6) Update the feature extractor by minimizing the CORAL loss function between source domain samples and target domain samples.

[0078] The covariance matrix contains information about the linear correlation, directionality, and strength between variables, thereby revealing the spatial structure and patterns in the data set:

[0079]

[0080]

[0081] Among them, C S is the covariance matrix of the source domain features, C T is the covariance matrix of the target domain features, is the jth dimension of the i-th source domain sample, is the jth dimension of the i-th target domain sample, and 1 is a column vector whose elements are all equal to 1. Therefore, the present invention constructs a CORAL minimization loss function for the feature extractor based on the covariance matrix:

[0082]

[0083] Where F is the Frobenius norm of the square matrix, C S is the covariance matrix of the source domain features, C T is the covariance matrix of the target domain features, c is the number of categories, and d is the data feature dimension.

[0084] In summary, the present invention integrates steps (1) to (6) into an optimization objective function, and the feature extractor is trained according to the following optimization objective function:

[0085]

[0086]

[0087] Among them, X s is the source domain sample, Y s is the source domain label, Xt is the target domain sample, θ f is the parameter of the feature extractor, θ c1 is the parameter of the source domain classifier, c is the number of categories, μ is the complex weight coefficient, n s is the number of source domain sample categories, L c is the cross entropy loss function, θ d is the parameter of the discriminator, α is the weight factor of the WGAN adversarial term, L wd is the Wasserstein distance, λ is the penalty coefficient, L gd is the loss of the constraint mechanism, L COARL Minimize the loss function for CORAL, n s is the number of source domain samples, and m is the number of fault categories.

[0088] S103, inputting the aligned source domain features and target domain features into a classifier to generate a source domain classification result and a target domain classification result, and performing output probability distribution alignment on the source domain classification result and the target domain classification result based on singular values ​​to train the classifier so as to minimize the distribution difference between the source domain classification result and the target domain classification result;

[0089] The classifier includes a source domain classifier and a target domain classifier;

[0090] Although the feature domain adaptation method can reduce the feature distribution difference between the source domain and the target domain, when the domain difference between the two domains is large, the domain adaptation process based on minimizing the domain difference at the feature level still cannot handle the migration task well, resulting in the domain difference still not being able to be reduced, affecting the generalization performance of the model. Like the feature distribution difference, the output probability distribution difference also greatly affects the generalization performance of the model. In order to further reduce the impact of the overall domain difference between the source domain and the target domain, the present invention trains a classifier with a Singular Value Discrepancy output distribution minimization mechanism.

[0091] like Figure 5 As shown in the figure, suppose there is an input containing n samples. After the batch input is processed by the classifier, the output can be regarded as an n×m matrix, which contains the probability values ​​of different categories, where m is the total number of categories. This n×m matrix has different probability distributions and also contains information about the fault category. Therefore, this batch matrix can be processed by singular value decomposition to obtain the information corresponding to each category.

[0092] The goal of the present invention is to minimize the information difference of each category in the two domains. Accordingly, a singular value loss function L can be defined for the classifier: sv :

[0093] L sv =|Σs -Σ t |

[0094] Among them, Σ s is the singular value of the source domain feature batch output probability, Σ t The singular values ​​of the probability are batch-output for the target domain features. During this process, the fault state information of the target domain is unavailable.

[0095] Further, the steps of training the target domain classifier include:

[0096] (1) Freeze the trained feature extractor and its parameters;

[0097] (2) Update the parameters of the target domain classifier by minimizing the cross entropy loss function between the source domain samples and the source domain labels;

[0098] (3) Update the parameters of the target domain classifier by minimizing the singular value loss function between the source domain samples and the target domain samples.

[0099] Accordingly, after optimizing the above steps (1) to (3), the target domain classifier is trained according to the following formula:

[0100]

[0101] Among them, θ c2 is the parameter of the target domain classifier, c is the number of categories, n s is the number of source domain sample categories, n t is the number of sample categories in the target domain, L c is the cross entropy loss function, β is the balance factor, L sv is the loss function that minimizes the singular values.

[0102] S104, inputting the target domain data into the trained target domain feature extractor and target domain classifier to generate a fault diagnosis result.

[0103] After training, the target domain feature extractor and target domain classifier can capture representative features between data with large domain differences and output accurate diagnosis results for target samples.

[0104] Finally, the target domain data is input into the trained target domain feature extractor and target domain classifier to generate the fault diagnosis results.

[0105] Correspondingly, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein when the processor executes the computer program, the steps of the above-mentioned intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation are implemented.

[0106] In summary, the present invention can be applied to the fault diagnosis of automobile engine bearings. In the process of minimizing the difference between the source domain and the target domain, the present invention automatically obtains the domain-invariant features between cross-machine data, which is beneficial to the improvement of the diagnostic accuracy of the model; the present invention adopts an inter-domain intra-class space alignment method based on weighted pseudo-labels, which can balance the impact caused by the inconsistent number of pseudo-labels of various categories in the source domain and the target domain, and promotes the alignment of the entire domain level while also aligning the inter-domain space structure of the source domain and the target domain. The present invention adopts a multiple alignment strategy, taking into account the data domain information at the three levels of input, output and features of the source domain and the target domain at the same time, so that the domain differences can be reduced in an all-round way on multiple ends, and the migration effect can be better improved; thereby, the knowledge transfer from one labeled bearing data to another unlabeled bearing data can be realized, and accurate diagnosis results can be output.

[0107] The present invention is further described in detail below in conjunction with specific experiments:

[0108] (I) Dataset information

[0109] As shown in Table 1, the bearing data used in this experiment were collected from three different rolling bearing experimental platforms; among them, the data labeled X-X3 were taken from CWRU, the data labeled Y were taken from IMS, and the data labeled Z were taken from PCIU.

[0110] Table 1

[0111]

[0112]

[0113] The bearing data comes from the Bearing Data Center of Case Western Reserve University (CWRU), and the experimental data is arranged on the bearing (SKF6205). The vibration acceleration data is used for analysis, which is collected from the motor drive end. Four speeds of 1730, 1750, 1772, and 1797 r / min are achieved, providing four experimental domains. In addition to the healthy state (H), three bearing component failure modes are considered, namely outer ring failure (O), ball failure (B), and inner ring failure (I), and each fault location also includes three fault severity levels, corresponding to artificially created fault diameters of 7, 14, and 21 mils.

[0114] In CWRU, the sampling frequency is 12kHz; the health status is divided into four types: normal state (N), inner ring fault (IF), outer ring fault (OF), and roller fault (RF). These four state types are used as diagnostic targets, and each state contains 1200 sample points.

[0115] The IMS bearing dataset was constructed by the Center for Intelligent Maintenance Systems at the University of Cincinnati. The bearings were subjected to simulated degradation experiments on a bearing test bench, which included a motor with a rotation speed of 2000RPM and four bearings mounted on the same shaft. During the test, the vibration signals generated by the bearings during the operation of the test bench were collected by an accelerometer installed on the bearing seat, with a sampling frequency of 20KHz. This dataset is the full life cycle data of the bearings. In multiple operating failure tests, three bearings had outer race faults (ORF), inner race faults (IRF) and ball faults (BF), in addition to a normal state (N). In order to construct the bearing fault vibration data sample, a time window with a length of 1200 and a step size of 128 was used to segment the data points. Each sample contains 1200 data points.

[0116] In the six fault states of the PCIU petrochemical data set, each sample contains 1,200 sampling points. Four corresponding fault types are selected: normal state (N), inner ring fault (IF), outer ring fault (OF), and roller fault (RF). 500 samples of each fault type are used for training. In PCIU, since the faults are formed during the actual operation of the machine, they do not have regular shapes. The inner and outer rings form wear faults, and the rolling elements form pitting faults.

[0117] (II) Implementation details

[0118] As shown in Table 2, the feature extractor F consists of four convolutional layers and four pooling layers. The activation functions LeakyRelu and Max pooling are used to enhance the nonlinear mapping ability of the feature extractor and reduce the dimension of the extracted features, respectively.

[0119] Table 2

[0120]

[0121] As shown in Table 3, classifier C includes CS and CT, both of which are composed of three fully connected (FC) layers and use the Softmax function to output the probabilities of different categories. Discriminator D also consists of three FC layers, but the activation functions and number of neurons in FC2 and FC3 are different from those in C, and the output of D is just a linear value.

[0122] Table 3

[0123]

[0124] In the experiment, the experiment was repeated 10 times. In adversarial training, the Adam algorithm was used to update the network parameters, and the learning rate was set to 0.0005. The number of iterations was 1000, each training batch was selected as 50 times, and 5 training epochs were repeated in the domain critic network. The parameters in the activation function LeakyReLu were set to 0.3, the penalty coefficient λ was set to 10, the weight factor α was set to 0.01, and the balance factor β was set to 1. Tensorflow 2.0 is the software platform in the entire experiment.

[0125] (III) Transfer tasks

[0126] The purpose of this experiment is to ensure the accuracy of diagnosis as much as possible by training the model with data from one domain and then testing the model with data from another domain.

[0127] As shown in Table 4, six same-machine migration tasks with different working conditions are set (X1-X2, X2-X1, X1-X3, X3-X1, X2-X3, X3-X2).

[0128] Table 4

[0129]

[0130]

[0131] As shown in Table 5, six cross-machine migration tasks (XY, YX, XZ, ZX, YZ, ZY) are set; among them, for the migration task “XY”, the dataset X is used as the source domain SD, and the dataset Y is used as the target domain TD.

[0132] Table 5

[0133] name Task Source domain (dataset) Target domain (dataset) C1 XY CWRU IMS C2 YX IMS CWRU C3 XZ CWRU PCIU C4 ZX PCIU CWRU C5 YZ IMS PCIU C6 ZY PCIU IMS

[0134] (IV) Comparison

[0135] The superiority of the present invention is verified by comparing with the following five methods: (1) CORAL method: spatial feature alignment; (2) Wasserstein distance-based deep transformation WDDT: domain adaptation of two-layer 1D-CNN is realized by using WGAN; (3) WDMAN method: two WGANs are used to optimize two fully connected layers respectively; (4) Domain adversarial transfer network (DATN): it transfers the weights learned from SD to another feature extractor instead of sharing them based on adversarial training; (5) WDMSV method: WGAN and Minimum Singular Value are used to optimize the feature extractor and classifier respectively.

[0136] In order to eliminate the influence of accidental factors, the results of ten experiments of various methods are averaged, and the parameters are adjusted to the optimal to ensure the best diagnostic results of all methods. Table 6 shows the accuracy (%) of these comparison methods for six cross-machine migration tasks, and Table 7 shows the accuracy (%) of these comparison methods for the same-machine different-condition migration task.

[0137] Table 6

[0138] method CORAL WDDTL DATN WDMAN WDMSV The present invention X→Y 38.82 51.77 65.18 60.07 89.56 91.90 Y→X 36.69 50.00 49.99 50.12 69.09 74.35 X→Z 41.23 53.55 48.66 48.98 62.34 87.25 Z→X 40.22 51.02 46.85 47.66 59.00 85.00 Y→Z 29.24 33.24 36.22 36.54 37.23 69.55 Z→Y 35.22 40.23 41.55 42.32 54.26 67.55 average value 36.19 46.64 48.08 47.62 61.91 79.26

[0139] Table 7

[0140] method CORAL WDDTL WDMAN DATN WDMSV The present invention X1→X2 82.44 94.21 95.69 96.66 99.96 100.00 X2→X1 80.65 92.33 96.23 98.99 99.69 100.00 X1→X3 76.44 92.11 94.56 98.86 99.02 100.00 X3 → X1 74.22 93.11 95.66 98.63 98.98 100.00 X2→X3 75.11 90.65 96.44 98.23 100.00 100.00 X3 → X2 77.21 93.13 98.55 97.85 99.98 100.00 average value 77.68 92.59 96.18 98.20 99.60 100.00

[0141] It can be seen from Tables 6 and 7 that CORAL has the lowest average classification accuracy in the two transfer tasks, with an accuracy of 36.19% and 77.68%. The average results of the three methods WDDTL, WDMAN and DATN are close. The average classification accuracy of the WDMSV method is 61.91% and 99.60%, which is higher than the first four methods. The diagnostic accuracy of the present invention in the two transfer tasks is 79.26% and 100.00%, respectively, and the accuracy of both tasks is higher than that of the other five methods. These results show that the transfer performance of the present invention is superior regardless of whether SD and TD are non-homologous bearing data or homologous bearing data. In addition, it can be noted that the accuracy of the other five methods is relatively high when the same machine has different working conditions, and the gap with the present invention is not large, but once they face cross-machine migration tasks, the accuracy drops sharply. This shows that when the distribution difference between the two domains is large, it is difficult for these methods to adapt well.

[0142] (V) Ablation experiment

[0143] In order to evaluate the impact of multiple alignment strategies and inter-domain and intra-class spatial alignment modules on model testing, the most representative transfer task XY was selected for study.

[0144] like Figure 6 As shown in the figure, the test accuracy model trained using output distribution difference minimization is significantly higher than the model not trained using the present invention. In addition, the convergence speed of the model trained using inter-domain intra-class spatial alignment is significantly higher than the model not trained using inter-domain intra-class spatial alignment, and the accuracy can be stably maintained at a higher level than the latter. In addition, the features extracted without the training of the present invention are very disordered and irregularly distributed, and in this case, the test accuracy is difficult to guarantee.

[0145] like Figures 7 to 9As shown in the figure, the fusion effect of the two domains in the feature extraction without the method of inter-domain and intra-class spatial alignment is not as good as that of the present invention, and the degree of aggregation is far less than that of the present invention. In addition, when the output distribution difference is not minimized, the extracted features are very disordered and irregularly distributed. In this case, the test accuracy is difficult to guarantee.

[0146] (VI) Feature Visualization

[0147] Visualization of the transfer task XY using t-SNE.

[0148] like Fig.10 As shown, when the WDDTL method is used, the fault categories RF and IF are completely misclassified, and the distance between the SD and TD features in each category is large, which indicates that the transfer knowledge obtained from SD cannot be well applied to TD;

[0149] like Fig.11 As shown, when the DATN method is used, most of the features of the TD categories RF and N are close to the source features, respectively, and a small number of features of the OF class are also close to the SD features, while the two features of the IF class are far away from each other and may be completely misclassified;

[0150] like Fig.12 As shown in the figure, when the WDMSV method is used, although the number of misclassified samples is less than that of the first two methods, the similar fault features between the two domains are relatively far apart, indicating that the feature fusion is not sufficient;

[0151] like Fig. 9 As shown, when the present invention is adopted, the distances between the four categories are obviously small, only a small part of the features of category N and category OF are intersected, and the features of the two domains are integrated more closely.

[0152] In general, the visualization results of DATN, WDMSV and the present invention are better than WDDTL, and WDMSV is better than DATN. Obviously, the result of the present invention is the best, which is a great improvement over the other three methods, which shows that the present invention can greatly reduce the differences in non-homogeneous data and obtain more representative domain-invariant features.

[0153] VII. Conclusion

[0154] The effectiveness of the present invention was verified by comparing it with five other methods on twelve different transfer tasks. In terms of accuracy, the present invention has a significant improvement over the other five existing methods in different transfer tasks. Ablation experiments on multiple alignment strategies and inter-domain intra-class spatial alignment modules have proven the effectiveness of the present invention. The feature visualization comparison results with other related methods show that the present invention has better generalization performance in different transfer tasks.

[0155] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A smart bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation, It is characterized in that include: The source domain samples and the target domain samples are input into the inter-domain intra-class space alignment module for data reconstruction, so that the intra-class space of the source domain samples is aligned with the intra-class space of the target domain samples. The adaptation optimization process of the source domain samples and the target domain samples is changed as follows: Among them, c is the number of categories, μ is the complex weight coefficient, and n s is the number of source domain sample categories, J is the loss function, f is the diagnostic model, is the source domain sample, is the target domain sample, is the label corresponding to the source domain sample, λ is the penalty coefficient, is a distance metric; The source domain samples and target domain samples after data reconstruction are input into the feature extractor to extract source domain features and target domain features, and the source domain features and target domain features are aligned in feature distribution and feature space by the discriminator to train the feature extractor. The feature extractor includes a source domain feature extractor and a target domain feature extractor. The feature extractor is trained according to the following optimization objective function: Among them, X s is the source domain sample, Y s is the source domain label, X t is the target domain sample, θ f is the parameter of the feature extractor, θ c1 is the parameter of the source domain classifier, L c is the cross entropy loss function, θ d is the parameter of the discriminator, α is the weight factor of the WGAN adversarial term, L wd is the Wasserstein distance, L gd is the loss of the constraint mechanism, L COARL Minimize the loss function for CORAL; Inputting the aligned source domain features and target domain features into a classifier to generate a source domain classification result and a target domain classification result, performing output probability distribution alignment based on singular values ​​on the source domain classification result and the target domain classification result to train the classifier so as to minimize the distribution difference between the source domain classification result and the target domain classification result, the classifier comprising a source domain classifier and a target domain classifier; The target domain data is input into the trained target domain feature extractor and target domain classifier to generate fault diagnosis results. The target domain classifier is trained according to the following formula: Among them, θ c2 is the parameter of the target domain classifier, n t is the number of sample categories in the target domain, β is the balance factor, and L sv is the loss function that minimizes the singular values.

2. The intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation as claimed in claim 1, It is characterized in that The steps of training the feature extractor include: Extracting source domain features of the source domain samples by the source domain feature extractor, and extracting target domain features of the target domain samples by the target domain feature extractor; Updating the discriminator by maximizing the Wasserstein distance between the source domain feature and the target domain feature; Freezing the parameters of the discriminator, and updating the feature extractor by minimizing the Wasserstein distance between the source domain samples and the target domain samples, so that the discriminator and the feature extractor are subjected to adversarial training; Updating the source domain classifier by minimizing the cross entropy loss function between the source domain features and the target domain features; Updating the feature extractor by minimizing the cross entropy loss function between the source domain samples and the source domain labels; The feature extractor is updated by minimizing the CORAL minimization loss function of the source domain samples and the target domain samples.

3. The intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation as claimed in claim 2, It is characterized in that The CORAL minimization loss function is: Where F is the Frobenius norm of the square matrix, C S is the covariance matrix of the source domain features, C T is the covariance matrix of the target domain features, c is the number of categories, and d is the data feature dimension.

4. The intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation as claimed in claim 1, It is characterized in that The steps of training the target domain classifier include: Freeze the trained feature extractor and its parameters; Updating the parameters of the target domain classifier by minimizing the cross entropy loss function between the source domain samples and the source domain labels; The parameters of the target domain classifier are updated by minimizing the singular value loss function of the source domain samples and the target domain samples.

5. The intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation as claimed in claim 4, It is characterized in that The cross entropy loss function L c for: Among them, X s is the source domain sample, Y s is the source domain label, n s is the number of source domain samples, and m is the number of fault categories.

6. The intelligent bearing fault diagnosis method based on multi-layer alignment strategy domain adaptation as claimed in claim 4, It is characterized in that The singular value loss function L sv for: L sv =|∑ s -∑ t | Among them, ∑ s is the singular value of the source domain feature batch output probability, ∑ t Outputs singular values ​​of the probability for batches of target domain features.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.