A rolling bearing fault diagnosis method and system under variable working conditions based on improved deep subdomain adaptive network

By improving the deep subdomain adaptation network, using the channel attention mechanism and local maximum mean difference, the deep features of rolling bearings are extracted, which solves the problem of low fault diagnosis accuracy and data scarcity under variable working conditions, and achieves higher fault diagnosis Accuracy and working condition generalization ability.

CN114429150BActive Publication Date: 2024-08-23HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111521473.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-08-23
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the existing technology, in rolling bearing fault diagnosis under variable working conditions, the distribution of model training data and actual test data is greatly different, resulting in low fault diagnosis accuracy, and it is difficult to obtain labeled vibration signals under some working conditions, and the amount of data is insufficient.

Method used

Using an improved deep subdomain adaptation network, the channel attention mechanism and local maximum mean difference (LMMD) are introduced to extract deep features, dynamically allocate resources, reduce the distribution difference between the source domain and the target domain, and build more accurate fault diagnosis. Model.

Benefits of technology

It improves the accuracy of rolling bearing fault diagnosis, solves the problems of data scarcity and distribution differences, and achieves better working condition generalization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114429150B
    Figure CN114429150B
Patent Text Reader

Abstract

A rolling bearing fault diagnosis method and system under variable working conditions based on an improved deep subdomain adaptation network, relates to the technical field of rolling bearing fault diagnosis, and is used to solve the problem that the fault diagnosis accuracy of the existing fault diagnosis model is not high for vibration data with large distribution differences under different working conditions. The technical points of the present invention include: performing short-time Fourier transform on the vibration data of the source domain and the target domain to obtain a time-frequency spectrum; introducing a channel attention mechanism and a first-layer wide convolution kernel mechanism to improve the residual network and extract deep features in the time-frequency spectrum; using the local maximum mean difference to perform subdomain adaptation processing on the source domain features and the target domain features, reducing the distribution differences between each subdomain of the source domain and the target domain, and realizing the fault diagnosis of rolling bearings under complex working conditions. The present invention can realize rolling bearing fault diagnosis under variable working conditions and generalized working conditions, with a high accuracy. The present invention can be widely used in rolling bearing fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rolling bearing fault diagnosis, and in particular to a rolling bearing fault diagnosis method and system under variable working conditions based on an improved deep subdomain adaptive network. Background Art

[0002] As one of the most critical components in the field of rotating machinery, rolling bearings are widely used in industrial production and military facilities. [1] The working conditions of rolling bearings are often changeable and complex, and changes in working conditions will also lead to changes in bearing vibration characteristics. [2] Therefore, solving the problem of rolling bearing fault diagnosis under variable working conditions is of great significance to ensure the healthy operation of rotating machinery. [3] .

[0003] Common intelligent fault diagnosis methods generally first extract the characteristics of the bearing vibration signal, and then perform fault diagnosis through pattern recognition methods. [4] . Time-frequency analysis methods such as Empirical Mode Decomposition (EMD), integrated EMD, and Variational Mode Decomposition (VMD) are widely used in the feature extraction of rolling bearing vibration signals. Pattern recognition methods such as support vector machines, artificial neural networks, and random forests have also achieved good results in the field of rolling bearing fault diagnosis. In recent years, deep learning has been widely used in the field of rolling bearing fault diagnosis because of its adaptive feature extraction method that overcomes the defects of manual feature extraction. [5] Reference [6] normalizes the data obtained by multiple sensors, stores them in the form of grayscale images, builds a convolutional neural network based on LeNet-5, and realizes the fault diagnosis of rolling bearings; Reference [7] introduces deep separable convolution and multi-branch structure in convolutional neural networks (CNN), which compresses the model size while avoiding the gradient vanishing problem and ensuring the accuracy of fault diagnosis; Reference [8] proposes a deep convolutional neural network with a first-layer wide convolution kernel and applies it to the field of rolling bearing fault diagnosis; Reference [9] proposes a deep convolutional neural network with a first-layer multi-scale convolution kernel, which uses one-dimensional convolution kernels of different sizes to extract multi-scale features from the original vibration signal of the bearing, and realizes intelligent diagnosis of the bearing health status; Reference

[10] introduces the Inception stacking idea based on ResNet and proposes a deep residual hedging network, which shortens the training time by 1 / 3 and improves the accuracy of bearing fault diagnosis.

[0004] Traditional deep learning methods generally use CNN as a feedforward network model, but as the number of network layers increases, CNN will experience network degradation.

[11] . The residual network ResNet constructs residual blocks through identity mapping, which increases the depth of the neural network while avoiding network degradation. However, ResNet does not consider the differences in the degree of dependence of the network on each channel, which makes the network have some redundant information during training. The attention mechanism can guide computing resources to focus on the part with large information content in deep features. Introducing the attention mechanism into ResNet can theoretically better extract deep network features.

[0005] Under variable working conditions, the vibration characteristics of bearings are more complex and variable than those under constant working conditions. The training data of the model often has a large distribution difference from the actual test data, which leads to poor generalization of the established fault diagnosis model.

[12] In addition, it is difficult to obtain labeled vibration signals of rolling bearings under some working conditions, which makes it difficult to meet the data volume required for training fault diagnosis models.

[0006] Transfer learning is increasingly being used in rolling bearing fault diagnosis because it can use known knowledge to solve problems in different but related fields. Reference [3] introduced Semisupervised Transfer Component Analysis (SSTCA) to align the marginal distribution of source and target domain data, and used SVM training to obtain a variable working condition fault diagnosis model; Reference

[13] proposed an improved joint distribution adaptation (JDA) to reduce the marginal distribution and conditional distribution differences between the source and target domains, and completed the bearing fault diagnosis under variable working conditions. Reference

[14] proposed Balanced Distribution Adaptation (BDA) based on JDA, which adaptively adjusted the importance of marginal distribution differences and conditional distribution differences, and realized cross-domain bearing fault diagnosis.

[0007] Compared with the above transfer learning methods, deep feature transfer learning can use deep networks to learn more transferable features for domain adaptation. In terms of deep feature transfer, reference

[15] combines deep belief networks with hybrid kernel JDA to avoid data distribution divergence and realize multi-state recognition of bearings under variable loads; reference

[16] adds an adaptation layer to the ResNet network model and uses the maximum mean discrepancy (MMD) as the domain adaptation loss to reduce the global distribution difference between the source domain and the target domain; reference

[17] uses the first-order moment to measure the distribution difference of MMD, ignoring the disadvantage of the contribution of high-order moments, and proposes polynomial kernel induced MMD (Polynomial Kernel MMD, PK-MMD), constructs a domain-shared residual network, and completes the fault diagnosis of rolling bearings; reference

[18] uses training data to fine-tune the pre-trained deep adaptation network (Deep Adaptation Network, DAN) and uses multi-core MMD (Multipul Kernel MMD) to measure the distribution difference. The literature

[19] proposed a deep convolutional Wasserstein adversarial network model, which uses the Wasserstein distance as the domain adaptation loss term and combines the variance constraint to achieve variable operating condition bearing fault diagnosis. The above research content uses deep feature migration to perform global domain adaptation on the sample distribution of the source domain and the target domain, and achieves rolling bearing fault diagnosis under different operating conditions. However, this domain adaptation method often ignores the relationship between subdomains in different domains, which can easily cause feature aliasing between subdomains and lose fine-grained information, resulting in poor migration effect.

[20] . Summary of the invention

[0008] In view of the above problems, the present invention proposes a rolling bearing fault diagnosis method and system under variable working conditions based on an improved deep subdomain adaptive network, so as to solve the problem that the fault diagnosis accuracy of the existing fault diagnosis model is low for vibration data with large distribution differences under different working conditions.

[0009] According to one aspect of the present invention, a rolling bearing fault diagnosis method under variable working conditions based on an improved deep subdomain adaptive network is provided, the method comprising the following steps:

[0010] Step 1: Collect rolling bearing vibration signal samples with known fault information under one working condition to construct a source domain data sample set, and collect rolling bearing vibration signal samples with unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set includes a training sample set and a test sample set;

[0011] Step 2: Perform short-time Fourier transform on the rolling bearing vibration signals in the source domain data sample set and the target domain data sample set, respectively, convert the one-dimensional time domain signal into a two-dimensional time-frequency image, and obtain a source domain image sample set and a target domain image sample set;

[0012] Step 3: Build an improved residual network, introduce an attention mechanism to dynamically allocate resources between channels, extract deep features of the source domain image sample set and the target domain image sample set, and obtain soft labels for unlabeled target domain samples;

[0013] Step 4: Using the deep features of the source domain and the target domain, the real labels of the source domain, and the soft labels of the target domain, the local maximum mean difference between the source domain and the target domain is calculated as the domain adaptation loss term to measure the distribution difference between each subdomain of the source domain and the target domain.

[0014] Step 5: The domain adaptation loss term and the cross entropy loss term of the improved residual network are optimized together as the objective function. After training for a specified number of iterations, a fault diagnosis model of the rolling bearing under variable working conditions is obtained;

[0015] Step 6: Input the target domain test sample set into the trained fault diagnosis model, compare the fault diagnosis results of the test samples with their true labels, and obtain the accuracy of the fault diagnosis model for rolling bearing fault diagnosis, so as to measure the performance of the fault diagnosis model.

[0016] Furthermore, the improved residual network described in step three is an improvement on the existing residual network, and the improvement is that: first, the convolution kernel size of the first convolution layer of the residual network is changed from 7×7 to 15×15; second, the residual module in the residual network model ResNet-50 is improved as follows: each channel performs 1×1 and 3×3 convolution operations on the input features to preliminarily extract features; the features of each channel are compressed and reduced in dimension through the global pooling layer to obtain global features representing the context information of the channel; the obtained global features are input into two fully connected layers for processing to model the correlation between each channel; the ReLU activation function is used between the two fully connected layers to improve nonlinearity; the obtained channel weights are normalized through the Softmax layer; finally, the original channel features are weighted using the normalized weights as output to obtain a feature image.

[0017] Furthermore, the weighted output feature image V c for:

[0018] V c =a c U c

[0019] In the formula, a c represents the weight of the cth channel; U cV represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism.

[0020] Furthermore, in step 4, the local maximum mean difference LMMD is used to map and align each subdomain of the source domain and the target domain respectively, and its calculation formula is:

[0021]

[0022] Where p and q represent the distributions of source domain and target domain samples respectively; H represents a regenerated Hilbert space with a characteristic kernel; c represents the category, and C represents the total number of categories; and Represent the source domain D s The i-th sample and the target domain D t The jth sample of and Respectively and The weight of belonging to category c; Represents a feature map that maps the original sample data to H.

[0023] Furthermore, the cross entropy loss term in step 5 is used to judge the performance of the model on the source domain samples, and its calculation formula is:

[0024]

[0025] Where c represents the category, C represents the total number of categories; N represents the total number of samples, i represents the sample number; y ic is a symbolic function, which takes the value 1 if the true category of the i-th sample is c, otherwise it takes the value 0; p ic It represents the predicted probability that the i-th sample belongs to the c-th class.

[0026] Furthermore, the fault information in step one includes inner ring fault, rolling element fault, outer ring fault or no fault with different damage diameters; the operating condition is obtained according to a combination of different loads and different motor speeds.

[0027] According to another aspect of the present invention, a rolling bearing fault diagnosis system under variable working conditions based on an improved deep subdomain adaptive network is provided, the system comprising:

[0028] A data acquisition module is configured to collect rolling bearing vibration signal samples of known fault information under one working condition to construct a source domain data sample set, and collect rolling bearing vibration signal samples of unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set includes a training sample set and a test sample set; the fault information includes inner ring faults, rolling element faults, outer ring faults or no faults with different damage diameters; the working conditions are obtained according to a combination of different loads and different motor speeds;

[0029] A preprocessing module is configured to perform short-time Fourier transform on the rolling bearing vibration signals in the source domain data sample set and the target domain data sample set, respectively, to convert the one-dimensional time domain signal into a two-dimensional time-frequency image, and obtain a source domain image sample set and a target domain image sample set;

[0030] A feature extraction module is configured to construct an improved residual network, introduce an attention mechanism to dynamically allocate resources between channels, extract deep features of a source domain image sample set and a target domain image sample set, and obtain soft labels for unlabeled target domain samples;

[0031] A distribution difference measurement module is configured to use the deep features of the source domain and the target domain, the true label of the source domain, and the soft label of the target domain to calculate the local maximum mean difference between the source domain and the target domain as the domain adaptation loss term to measure the distribution difference between each subdomain of the source domain and the target domain;

[0032] A model training module is configured to optimize the domain adaptation loss term and the cross entropy loss term of the improved residual network as an objective function, and obtain a fault diagnosis model of the rolling bearing under variable working conditions after training for a specified number of iterations;

[0033] The model testing module is configured to input the target domain test sample set into the trained fault diagnosis model, compare the fault diagnosis results of the test samples with their true labels, and obtain the accuracy of the fault diagnosis model for rolling bearing fault diagnosis, so as to measure the performance of the fault diagnosis model.

[0034] Furthermore, the improved residual network in the feature extraction module is an improvement on the existing residual network, and the improvement is that: first, the convolution kernel size of the first convolution layer of the residual network is changed from 7×7 to 15×15; second, the residual module in the residual network model ResNet-50 is improved as follows: each channel performs 1×1 and 3×3 convolution operations on the input features to preliminarily extract features; the features of each channel are compressed and reduced in dimension through the global pooling layer to obtain global features representing the context information of the channel; the obtained global features are input into two fully connected layers for processing to model the correlation between each channel; the ReLU activation function is used between the two fully connected layers to improve nonlinearity; the obtained channel weights are normalized through the Softmax layer; finally, the original channel features are weighted using the normalized weights as output to obtain a feature image; the weighted output feature image V c for:

[0035] V c =a c U c

[0036] In the formula, a c represents the weight of the cth channel; U c V represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism.

[0037] Furthermore, the local maximum mean difference LMMD in the distribution difference measurement module is used to map and align each subdomain of the source domain and the target domain respectively, and its calculation formula is:

[0038]

[0039] Where p and q represent the distributions of source domain and target domain samples respectively; H represents a regenerated Hilbert space with a characteristic kernel; c represents the category, and C represents the total number of categories; and Represent the source domain D s The i-th sample and the target domain D t The jth sample of and Respectively and The weight of belonging to category c; Represents a feature map that maps the original sample data to H.

[0040] Furthermore, the cross entropy loss term in the model training module is used to judge the performance of the model on the source domain samples, and its calculation formula is:

[0041]

[0042] Where c represents the category, C represents the total number of categories; N represents the total number of samples, i represents the sample number; y ic is a symbolic function, which takes the value 1 if the true category of the i-th sample is c, otherwise it takes the value 0; p ic It represents the predicted probability that the i-th sample belongs to the c-th class.

[0043] According to another aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the above method when executing the computer program.

[0044] According to another aspect of the present invention, there is provided a computer-readable storage medium, which is a non-volatile readable storage medium and stores a computer program therein. When the computer program is executed by a processor, the method described above is implemented.

[0045] According to another aspect of the present application, a computer program product is provided, comprising a computer readable code. When the computer readable code is executed by a computer device, the computer device is caused to implement the above method.

[0046] The beneficial technical effects of the present invention are:

[0047] The present invention firstly introduces a channel attention mechanism and a first-layer wide convolution kernel mechanism to improve the residual network, so as to extract more relevant deep features of rolling bearings under different working conditions; uses the local maximum mean difference (LMMD) to measure the distribution difference between each subdomain of the source domain and the target domain, and reduces the global distribution difference and local distribution difference between the source domain labeled sample set and the target domain unlabeled sample set during the model training process. Compared with the traditional method of using the maximum mean difference to measure the global distribution difference between the source domain and the target domain, LMMD can focus on the local distribution while aligning the global distribution; uses the domain-invariant features between different domains extracted by the network to solve the problem of scarcity of labeled data of rolling bearings under some working conditions, and at the same time solves the fault diagnosis problem of rolling bearings under variable working conditions and generalized working conditions, so that the fault diagnosis accuracy of rolling bearings is higher than that of other models. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The present invention can be better understood by referring to the description given below in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification, and are used to further illustrate the preferred embodiments of the present invention and explain the principles and advantages of the present invention.

[0049] Figure 1It is a schematic diagram of the original residual block structure;

[0050] Figure 2 is a schematic diagram of an improved residual network structure in an embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of the structure of an improved residual module in an embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of the principle of domain adaptation and subdomain adaptation in an embodiment of the present invention;

[0053] Figure 5 is a flowchart of a fault diagnosis process in an embodiment of the present invention;

[0054] Figure 6 It is a schematic diagram of the bearing data collection from the bearing test bench in an embodiment of the present invention;

[0055] Figure 7 is an example diagram of a time domain vibration signal interception method in an embodiment of the present invention;

[0056] Figure 8 : is a feature visualization comparison diagram before and after the improvement of the residual network in an embodiment of the present invention; wherein, Figure (a) corresponds to the original residual network, and Figure (b) corresponds to the improved residual network;

[0057] Fig. 9 1 is a visualization comparison diagram of the local maximum mean difference LMMD and the maximum mean difference MMD domain adaptation features in an embodiment of the present invention; wherein, Figure (a) corresponds to the maximum mean difference MMD, and Figure (b) corresponds to the local maximum mean difference LMMD;

[0058] Fig.10 This is a comparison result diagram of the method of the present invention and the classic deep transfer learning method;

[0059] Fig.11 is an example diagram of a rolling bearing fault diagnosis confusion matrix in an embodiment of the present invention;

[0060] Fig.12 1 is a graph showing the results of a generalization comparison experiment of working conditions in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, exemplary implementations or embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described implementations or embodiments are only implementations or embodiments of a part of the present invention, not all of them. Based on the implementations or embodiments of the present invention, all other implementations or embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present invention.

[0062] In view of the problems that the vibration data distribution of rolling bearings under different working conditions is very different, the labeled vibration data under some working conditions is difficult to obtain, and the accuracy of the diagnostic model is not high, the embodiment of the present invention proposes a rolling bearing fault diagnosis method under variable working conditions based on an improved deep subdomain adaptive network. By introducing a channel attention mechanism in the residual network, the degree of attention between each convolution channel in the residual network is dynamically allocated, useless information is suppressed, and more accurate deep fault feature information of the rolling bearing is mined; the local maximum mean discrepancy (LMMD) is used instead of the traditional MMD as an indicator to measure the distribution difference between each subdomain of the source domain and the target domain, the distribution of related subdomains of the same category in the source domain and the target domain is accurately adjusted, and domain-invariant features are extracted to better realize cross-domain fault diagnosis of bearings. Finally, fault diagnosis of different fault locations and different fault degrees of rolling bearings under different working conditions is realized. The method of the present invention is described in detail below.

[0063] 1. Residual Network and Its Improvement

[0064] In CNN, as the number of network layers increases, the network may experience gradient vanishing, gradient explosion, and network degradation. The residual network borrows the gating mechanism in the long short-term memory network and solves the above problems by adding an identity mapping between the network layers of the CNN and superimposing the input identity mapping with its nonlinear transformation. The residual block is the basic unit of the residual network, and its structure is as follows: Figure 1 as shown.

[0065] The input of the residual block is z, and the output is H(z). The residual refers to the difference between the output value H(z) and the input value identity mapping z, that is:

[0066] f(z)=H(z)-z (1)

[0067] The learning object of the residual network is the residual f(z). During the network training process, only the difference between the input and output of the residual block needs to be learned, which is easier to learn than the traditional CNN. During the back propagation of the model, the input z is directly transferred from the input end to the output end of the residual block through the identity mapping, ensuring the integrity of the information during the transmission process.

[0068] The nonlinear activation function can enhance the generalization ability of CNN and effectively prevent gradient diffusion. The present invention selects the Rectified Linear Unit (ReLU) as the activation function in the network model, and its calculation formula is:

[0069] g(x)=max(0,x) (2)

[0070] Here, x is the input feature, and g(x) is the output after nonlinear mapping. With the nonlinear feature representation capability provided by the ReLU function, the model convergence speed can be accelerated and the parameter configuration is more concise.

[0071] The traditional residual network model has a limited receptive field and lacks correlation between channels. Therefore, in the actual task processing process, it is not possible to perform targeted feature extraction and obtain more relevant deep features. Based on the above reasons, the present invention improves the residual network. The improved residual network structure is as follows: Figure 2 as shown.

[0072] In order to better extract the deep features in the bearing time-frequency graph, the convolution kernel size of the convolution layer in the residual network can be increased to increase the receptive field and extract features from a wider time-frequency range. However, blindly increasing the convolution kernel size will lead to a sharp increase in the number of model parameters and the amount of calculation. Therefore, the present invention only increases the convolution kernel of the first convolution layer of the residual network to better extract features related to the bearing time-frequency features in the shallow layer of the network. When selecting the convolution kernel size, in order to make it easier to find the convolution anchor point, the diameter of the convolution kernel is generally set to an odd number. Taking all the above aspects into consideration, the convolution kernel size of the first convolution layer of the original residual network is modified from 7×7 to 15×15. Compared with the traditional residual network model ResNet-50, the present invention improves the residual module in the network model, and its structure is as follows: Figure 3 as shown.

[0073] In the improved residual block, each channel performs 1×1 and 3×3 convolution operations on the input features to extract the features preliminarily. The features of each channel are compressed and reduced in dimension through the global pooling layer to obtain the global features representing the context information of the channel:

[0074]

[0075] Among them, U c (i, j) is the feature vector in the cth channel after passing through the 1×1 convolution layer and the 3×3 convolution layer; H and W represent the size of the spatial dimension; s c represents the weight of the cth channel; the obtained global features are input into two fully connected layers for processing to model the correlation between channels; the ReLU activation function is used between the two fully connected layers to improve nonlinearity in order to better fit the complex relationship between channels; the channel weights obtained are normalized by the Softmax layer. Finally, the normalized weights are used to weight the original channel features as output, and the calculation formula is as follows:

[0076] V c =a c U c (4)

[0077] Among them, a c represents the weight of the cth channel; U c V represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism.

[0078] The cross entropy loss term of the improved residual network is used to judge the performance of the model on the source domain samples, and its calculation formula is:

[0079]

[0080] Where c represents the category, C represents the total number of categories; N represents the total number of samples, i represents the sample number; y ic is a symbolic function, which takes the value 1 if the true category of the i-th sample is c, otherwise it takes the value 0; p ic It represents the predicted probability that the i-th sample belongs to the c-th class.

[0081] 2. Subdomain Adaptation Method

[0082] In transfer learning, given a dataset containing n s Source domain with labeled samples and a containing n t The target domain of unlabeled samples ,in, is the same as the i-th source domain sample The corresponding one-hot label, It means that the corresponding sample belongs to the mth class of the source domain. Represents the jth unlabeled target domain sample. The sample sets of the source domain and the target domain generally obey two similar distributions.

[0083] The domain adaptation problem is one of the contents of transfer learning research, which is used to solve the problem that the feature space and the category space are consistent but the feature distribution is inconsistent. Traditional domain adaptation methods generally perform global domain transformation on the source domain and the target domain, so that the feature distribution of the transformed source domain and the target domain is as similar as possible, and extract domain-invariant features that are applicable to the whole world. The maximum mean difference (MMD) is a common indicator to measure the global distribution difference between the source domain and the target domain, and is widely used in transfer learning methods. The definition of MMD is shown in formula (5):

[0084]

[0085] Among them, X s and X tRepresent the source domain and target domain samples respectively; p and q represent the distributions obeyed by the source domain and target domain samples respectively; H is a reproducing kernel Hilbert space (RKHS) with a characteristic kernel; Represents a feature map that can map the original sample data to H. Represents source domain samples X that follow p distribution s Mathematical expectation after mapping to RKHS.

[0086] In the process of aligning the global distribution of features, some data with little correlation may become indistinguishable along with the feature mapping. To solve the above problem, the subdomains of the same category in different domains can be aligned separately. This not only matches the local distribution of feature samples in the source domain and the target domain, but also achieves the matching of the global distribution and extracts the global domain invariant features. The schematic diagram of the principle of domain adaptation and subdomain adaptation is shown in Figure 2. Figure 4 as shown.

[0087] The present invention uses LMMD to replace the traditional MMD for global distribution alignment, and maps and aligns each subdomain of the source domain and the target domain. The calculation formula of LMMD is shown in formula (6):

[0088]

[0089] in, and represent the i-th sample in the source domain and the j-th sample in the target domain respectively. and Respectively represent and The weight of class c. It should be noted that and are all equal to 1. Sample x i The corresponding weight It can be calculated by formula (7):

[0090]

[0091] Among them, y ic is the i-th sample label vector y i The cth element of .

[0092] The target domain does not contain labeled samples, and the labels (hard labels) predicted by the model for the target domain data may be wrong, so it is impossible to directly calculate equations (6) and (7). The output of the deep neural network is is a probability distribution representing the network input x iThe probability of belonging to each category. In order to reduce the error that may be caused by hard label prediction while calculating LMMD in the target domain, the target domain samples are predicted using probability during model training. (Soft label) Calculation formula (6) and formula (7).

[0093] 3. Rolling bearing fault diagnosis method and process under variable working conditions

[0094] The overall flow chart of the rolling bearing fault diagnosis system based on the improved residual network deep subdomain adaptation method under variable working conditions is as follows: Figure 5 As shown, the specific steps are as follows:

[0095] (1) Construction of sample set

[0096] Select samples with known fault information under a certain working condition to construct a source domain data sample set, and select samples with unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set also includes a training sample set and a test sample set;

[0097] (2) Data preprocessing

[0098] Perform short-time Fourier transform on the time-domain vibration signals in the source and target domains, and convert the original one-dimensional time-domain signals into two-dimensional time-frequency images as input for subsequent network models;

[0099] (3) Model construction

[0100] An improved residual network is constructed, and the attention mechanism is introduced to dynamically allocate resources between channels. The deep features of the time-frequency images of the source domain and target domain sample sets of rolling bearings are extracted, and the soft labels of the unlabeled target domain samples are obtained. The local maximum mean difference between the source domain and the target domain is calculated using the deep features of the source domain and the target domain, the true labels of the source domain, and the soft labels of the target domain. This is used as the domain adaptation loss term to measure the distribution differences between the subdomains of the source domain and the target domain. The LMMD and the cross entropy loss term of the improved residual network are used together as the objective function for optimization. After training for a specified number of iterations, a fault diagnosis model for rolling bearings under variable working conditions is established.

[0101] (4) Fault diagnosis

[0102] The target domain test sample set is input into the trained network model, and the fault diagnosis results of the model for the test samples are compared with the true labels to obtain the accuracy of the model's fault diagnosis, thereby measuring the performance of the model.

[0103] 4. Application and analysis

[0104] The bearing data used in the experiment were collected from the bearing test bench, such as Figure 6As shown in Figure 1, the test bench consists of three parts: motor, load, and control circuit. The 6205-2RS deep groove ball bearing installed at the motor drive end is used as the research object, and its vibration signal is collected by a 16-channel data recorder placed above the bearing seat at the motor drive end, with a sampling frequency of 12kHz.

[0105] The bearing failure is pitting failure caused by the EDM machine processing the inner ring, rolling element, and outer ring of the bearing. The damage diameter of each fault position includes three types: 0.1778mm, 0.3556mm, and 0.5334mm. Together with the normal state, it can be divided into 10 categories. For the vibration signal of the rolling bearing that works in a normal state and has not failed, it is represented by N. For the convenience of expression, the fault location and fault degree of the rolling bearing are simplified. The fault state representation method in the experimental data is shown in Table 1. With a sample length of 1024 points, 100 sample data are selected for each working state and obtained by random interception. The interception method is as follows: Figure 7 shown.

[0106] Table 1 Experimental data representation method

[0107] Table 1Experimental data representation

[0108]

[0109] The experimental data were collected under four different loads: 0hp, 1hp, 2hp, and 3hp (1hp≈0.75kW). Depending on the load, the motor speed varies between 1730rpm and 1797rpm. The corresponding relationship between the operating conditions of the bearing and the load and speed is shown in Table 2.

[0110] Table 2 Correspondence between bearing working condition, load and speed

[0111]

[0112] In the experiment, a total of 8 migration tasks are set, and the composition of the data sets used for each task is shown in Table 3. Taking Task 6 as an example, 2000 known fault information samples working in working conditions B and D are used as source domain data samples, 2000 unknown fault samples working in working conditions A and C are used as target domain training samples, and another 2000 unknown fault samples working in working conditions A and C are used as target domain test samples.

[0113] Table 3 Composition of the datasets used for each task

[0114]

[0115] The proposed method uses the ReLU function as the activation function, the total number of iterations epochs is set to 200, the learning rate lr is set to 0.01, and the domain adaptation weight coefficient param is set to 0.3. Each experiment is repeated 3 times, and the average value is taken as the final result. The hardware environment used in the experiment: CPU model is Intel Xeon W-2123; memory is 32GB; GPU model is NVIDIAGeForce GTX1080Ti.

[0116] First, in order to verify the classification effect of the deep features proposed by the improved residual network, the time-frequency spectrum of the rolling bearing extracted by the short-time Fourier transform is input into the original residual network and the improved residual network for deep feature extraction, and the t-distribution stochastic neighbor embedding (t-SNE) algorithm is used to reduce the dimension of the proposed deep features. Taking the source domain B condition and the target domain C condition as examples, the feature visualization effect before and after the improvement of the residual network is shown in the figure below. Figure 8 shown.

[0117] observe Figure 8 It can be seen that the features extracted before and after the improvement of the residual network have great differences after visualization. After visualization, the deep features of the samples extracted by the original residual network have the phenomenon of aliasing of the characteristic samples of two types of fault damage in areas L1-L5, and a large number of characteristic sample aliasing appears in area L6. After visualization of the deep features extracted by the improved residual network, only a small amount of sample aliasing between the categories appears in the L1 area. It is preliminarily judged that the improved residual network can better extract the deep features of rolling bearings, which is conducive to subsequent fault diagnosis.

[0118] In order to further verify that the improved residual network can better extract deep features of samples, the features extracted before and after the improvement of the residual network are used for fault diagnosis using Softmax, and experiments are carried out in 8 migration tasks. The results are shown in Table 4.

[0119] Table 4 Fault diagnosis accuracy before and after residual network improvement

[0120]

[0121] Comparing the fault diagnosis accuracy before and after the improvement of the residual network in Table 4, it can be seen that the fault diagnosis accuracy obtained by the classification of deep features extracted by the improved residual network is significantly higher than the deep features extracted by the original residual network. This result shows that adding the channel attention mechanism and the first-layer wide convolution kernel mechanism to the residual network can improve the accuracy of rolling bearing fault diagnosis under variable working conditions.

[0122] Furthermore, in order to verify that LMMD can better achieve domain adaptation between the source domain and the target domain, LMMD and MMD are used to perform domain adaptation operations on the deep features extracted by the network model, and the t-SNE method is used to process the domain adaptation features. Taking the source domain D condition and the target domain B condition as examples, the feature visualization effect after LMMD and the classic MMD domain adaptation is shown.

[0123] By observation Fig. 9 (a) It can be seen that there is serious feature aliasing in samples of multiple types of fault damage in region L1. In addition, there is also aliasing of a small number of feature samples in regions L2-L6. The above results show that although MMD can reduce the overall distribution difference between the source domain and the target domain, it ignores the relationship between each subdomain, resulting in a large amount of aliasing between each category. Fig. 9 In (b), only a small amount of sample aliasing occurs in the L1 region. Therefore, it can be preliminarily determined that LMMD can better complete the feature mapping between the source domain and the target domain than the traditional domain adaptation indicator MMD, making the features of various samples in the target domain clear and separable.

[0124] In order to better illustrate the superiority of LMMD in domain adaptation, the improved residual network is used to extract features, LMMD and MMD are used as domain adaptation loss terms, and Softmax is used for fault diagnosis. Experiments are conducted in 8 migration tasks, and the fault diagnosis results are shown in Table 5.

[0125] Table 5. Fault diagnosis accuracy before and after improvement of domain adaptation method

[0126]

[0127] As shown in Table 5, compared with MMD, the average fault diagnosis accuracy of LMMD as the domain adaptation loss term in the eight migration tasks has been greatly improved, reaching 4.18%. Combining the fault diagnosis experiment with the feature visualization experiment, it can be concluded that LMMD can better complete the rolling bearing fault diagnosis under variable working conditions by reducing the distribution difference between the subdomains of the source domain and the target domain.

[0128] In order to further prove the effectiveness of the proposed method in rolling bearing variable operating condition fault diagnosis, four classic deep transfer learning methods, including domain adaptive neural network (DaNN), deep adaptation network (DAN), deep-coral, and dynamic adversarial adaptation network (DAAN), were selected for comparative experiments. The same sample set was used in the experiment and tested in the same 8 transfer tasks. The comparison results are shown in Figure 2. Fig.10 shown.

[0129] Depend on Fig.10 The experimental results show that in 8 different variable operating condition migration tasks, the average fault diagnosis accuracy of the method of the present invention can reach 96.99%, and compared with the four classic deep migration learning methods such as DaNN, DAN, Deep-coral, and DAAN, the average accuracy is improved by at least 5.75%. In order to more intuitively observe the effectiveness of the method of the present invention in the variable operating condition fault diagnosis problem, a multi-classification confusion matrix is ​​introduced to analyze the diagnosis results. Taking the experimental results of Task 4 as an example, the confusion matrix is ​​drawn as follows: Fig.11 shown.

[0130] from Fig.11 It can be seen that among the 1000 target domain test set samples, only 3 samples were misdiagnosed. Among the 3 misdiagnosed samples, 2 normal samples were misdiagnosed as OR14 faults, and 1 B14 fault was misdiagnosed as OR14 fault. The diagnostic accuracy of all other fault types reached 100%. It can be seen that the improved residual network deep subdomain adaptation method proposed in the present invention can effectively solve the fault diagnosis problem of rolling bearings under variable working conditions.

[0131] In order to further verify that the method of the present invention can cope with the complex working environment of rolling bearings, and that the trained model can accurately extract experiential knowledge across different but related fields and learning domain invariant features under complex working conditions, four groups of working condition generalization experiments are designed as shown in Table 6. Among them, generalized conditions refer to data collected under working conditions that are not available in the training phase. The data collected under generalized conditions are input into the model for fault diagnosis, and compared with five classic deep transfer learning methods such as DaNN, DAN, Deep-coral, DAAN, and MRAN, the fault diagnosis results obtained are as follows Fig.12 shown.

[0132] Table 6 Composition of the working condition generalization experiment dataset

[0133]

[0134] Depend on Fig.12 It can be seen from the experimental results that the method of the present invention has achieved an average fault diagnosis accuracy of 85.16% in the four different working condition generalization transfer tasks, Task 9 to Task 12. Compared with the four classic deep transfer learning methods, DaNN, DAN, Deep-coral, and DAAN, the proposed method has achieved better fault diagnosis results in all tasks, and the average fault diagnosis accuracy has been improved by at least 3.43%. Therefore, the method of the present invention can better extract the domain-invariant features of bearings under complex working conditions and solve the fault diagnosis problem of rolling bearings under generalized working conditions.

[0135] The present invention introduces the channel attention mechanism and the first-layer wide convolution kernel mechanism to improve the residual network, extracts the more relevant deep features of rolling bearings under different working conditions, and proves that the improved residual network has better performance than the original residual network through the two aspects of feature visualization and fault diagnosis accuracy; the local maximum mean difference is used to measure the distribution difference between the subdomains of the source domain and the target domain. Compared with the traditional method of using the maximum mean difference to measure the global distribution difference between the source domain and the target domain, LMMD can focus on the local distribution while aligning the global distribution; it has been experimentally verified that the use of the local maximum mean difference as the domain Adaptation loss can better realize the variable working condition fault diagnosis of rolling bearings; the present invention proposes a new end-to-end deep transfer learning method, which reduces the global distribution difference and local distribution difference between the source domain labeled sample set and the target domain unlabeled sample set while extracting the deep features of rolling bearings; the domain-invariant features between different domains extracted by the network are used to solve the problem of scarce labeled data of rolling bearings under some working conditions, and at the same time solve the fault diagnosis problem of rolling bearings under variable working conditions and generalized working conditions; the effectiveness of the method of the present invention is verified by comparing it with 4 deep transfer learning methods on 12 migration tasks.

[0136] Another embodiment of the present invention provides a rolling bearing fault diagnosis system under variable working conditions based on an improved deep subdomain adaptive network, the system comprising:

[0137] A data acquisition module is configured to collect rolling bearing vibration signal samples of known fault information under one working condition to construct a source domain data sample set, and collect rolling bearing vibration signal samples of unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set includes a training sample set and a test sample set; the fault information includes inner ring faults, rolling element faults, outer ring faults or no faults with different damage diameters; the working conditions are obtained according to a combination of different loads and different motor speeds;

[0138] A preprocessing module is configured to perform short-time Fourier transform on the rolling bearing vibration signals in the source domain data sample set and the target domain data sample set, respectively, to convert the one-dimensional time domain signal into a two-dimensional time-frequency image, and obtain a source domain image sample set and a target domain image sample set;

[0139] A feature extraction module is configured to construct an improved residual network, introduce an attention mechanism to dynamically allocate resources between channels, extract deep features of a source domain image sample set and a target domain image sample set, and obtain soft labels for unlabeled target domain samples;

[0140] A distribution difference measurement module is configured to use the deep features of the source domain and the target domain, the true label of the source domain, and the soft label of the target domain to calculate the local maximum mean difference between the source domain and the target domain as the domain adaptation loss term to measure the distribution difference between each subdomain of the source domain and the target domain;

[0141] A model training module is configured to optimize the domain adaptation loss term and the cross entropy loss term of the improved residual network as an objective function, and obtain a fault diagnosis model of the rolling bearing under variable working conditions after training for a specified number of iterations;

[0142] The model testing module is configured to input the target domain test sample set into the trained fault diagnosis model, compare the fault diagnosis results of the test samples with their true labels, and obtain the accuracy of the fault diagnosis model for rolling bearing fault diagnosis, so as to measure the performance of the fault diagnosis model.

[0143] In this embodiment, optionally, the improved residual network in the feature extraction module is an improvement on the existing residual network, and the improvement is that: first, the convolution kernel size of the first convolution layer of the residual network is changed from 7×7 to 15×15; second, the residual module in the residual network model ResNet-50 is improved as follows: each channel performs 1×1 and 3×3 convolution operations on the input features respectively to preliminarily extract features; the features of each channel are compressed and reduced in dimension through a global pooling layer to obtain global features representing the context information of the channel; the obtained global features are input into two fully connected layers for processing to model the correlation between the channels; the ReLU activation function is used between the two fully connected layers to improve nonlinearity; the obtained channel weights are normalized through a Softmax layer; finally, the original channel features are weighted using the normalized weights as output to obtain a feature image; the weighted output feature image V c for:

[0144] V c =a c U c

[0145] In the formula, a c represents the weight of the cth channel; Uc V represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism.

[0146] In this embodiment, optionally, the local maximum mean difference LMMD in the distribution difference measurement module is used to map and align each subdomain of the source domain and the target domain respectively, and its calculation formula is:

[0147]

[0148] Where p and q represent the distributions of source domain and target domain samples respectively; H represents a regenerated Hilbert space with a characteristic kernel; c represents the category, and C represents the total number of categories; and Represent the source domain D s The i-th sample and the target domain D t The jth sample of and Respectively and The weight of belonging to category c; Represents a feature map that maps the original sample data to H.

[0149] The above-mentioned system provided in this embodiment can execute the method provided in the above-mentioned method embodiment. The detailed process is described in the method embodiment and will not be repeated here.

[0150] An embodiment of the present application also provides a computing device, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor. The computer program is stored in a space for program code in the memory. When the computer program is executed by the processor, it is implemented to execute any one of the method steps according to the present invention.

[0151] An embodiment of the present application further provides a computer-readable storage medium, which includes a storage unit for program code, wherein the storage unit is provided with a program for executing the method steps according to the present invention, and the program is executed by a processor.

[0152] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is run on a computer, the computer is caused to execute the method steps according to the present invention.

[0153] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer loads and executes the computer program instructions, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium; the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, an optical medium or a semiconductor medium, etc.

[0154] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments are contemplated within the scope of the invention thus described. The disclosure of the present invention is intended to be illustrative rather than restrictive of the scope of the invention, which is defined by the appended claims.

[0155] The documents cited in the present invention are as follows:

[0156] [1] Wang Yujing. Research on rolling bearing vibration signal feature extraction and state assessment method [PhD dissertation]. Harbin Institute of Technology, Harbin, 2015.

[0157] [2]ChenZQ,Deng SC,Chen XD,Li C,Sanchez R,Qin H F.Deep neuralnetworks-based rolling bearing fault diagnosis.Microelectronics Reliability, 2017,75,pp.327–333.

[0158] [3] Kang Shouqiang, Hu Mingwu, Wang Yujing, Xie Jinbao, V.I. Mikulovich. Rolling bearing fault diagnosis method under variable working conditions based on feature transfer learning. Proceedings of the CSEE, 2019, 39(03): 764-772+955.

[0159] [4] Kang Shouqiang, Zou Jiayue, Wang Yujing, Xie Jinbao, and VIMIKULOVICH. Rolling bearing fault diagnosis method under variable load based on unsupervised feature alignment. Proceedings of the CSEE, 2020, 40(01): 274-281+393.

[0160] [5]ShenC Q, Qi YM, Wang J, et al. An automatic and robust features learning method for rotating machinery fault diagnosis based on contractual autoencoder. Engineering Applications of Artificial Intelligence, 2018, 76, pp. 170–184.

[0161] [6] Zhu Danchen, Zhang Yongxiang, Pan Yangyang, et al. Rolling bearing fault diagnosis based on multi-sensor signals and convolutional neural network. Journal of Vibration and Shock, 2020, 39(04): 172-178.

[0162] [7] Liu Hengchang, Yao Dechen, Yang Jianwei, Zhang Jiao. Research on rolling bearing fault diagnosis based on multi-branch deep separable convolutional neural network. Vibration and Shock, 2021, 40(10): 95-102.

[0163] [8]Wei Z,Peng G,Li C,et al.A new deep learning model for faultdiagnosis with good anti-noise and domain adaptation ability on raw vibrationsignals.Sensors,2017,17(3):425.

[0164] [9] Fu L, Zhang L, Tao J. An improved deep convolutional neural network with multiscale convolution kernels for fault diagnosis of rollingbearing. IOP Conference Series: Materials Science and Engineering, 2021, 1043(5):052021(10pp).

[0165]

[10] Kang Yuxiang, Chen Guo, Wei Xunkai, Zhou Lei. Deep residual hedging network and its application in rolling bearing fault diagnosis. Acta Aeronautica Sinica: 1-11[2021-07-31]. http: / / kns.cnki.net / kcms / detail / 11.1929.V.20210720.1052.002.html.

[0166]

[11] He KM, Zhang XY, Ren SQ, Sun J.Deep residuallearning for imagerecognition.2016 IEEE Conference on Computer Vision and Pattern Recognition(CVPR), 2016, pp.770-778.

[0167]

[12] An ZH, Li SM, Wang JR, Xin Y, Xu K. Generalization of deep neural network for bearing fault diagnosis under different working conditions using multiple kernel method. Neurocomputing, 2019, 352.

[0168]

[13] Qian WW, Li SM, Yi PX, Zhang K CA novel transfer learning method for robust fault diagnosis of rotating machines under variable working conditions. Measurement, 2019,138:514-525.

[0169]

[14] Gu JW,Wang Y

[0170]

[15] Kang SQ,Chen WW,Wang YJ,Na XD,Wang QY,VIMikulovich.Methodof state identification of rolling bearings based on deep domain adaptation under varying loads.IET Science,Measurement&Technology,2020,14(3):303-313.

[0171]

[16] Small snowflakes, snowflakes, snowflakes, snowflakes Journal of Public Health, 2019, 55(07):1-8).

[0172]

[17] Yang B,Lei YG,Jia F,Li NP,Du ZJA Polynomial kernel induced distancemetric to improve deep transfer learning for fault diagnosis of machines.IEETransactions on Industrial Electronics,2020,67(11):9747-9757.

[0173]

[18] Wen J,Pan BS,Luo LP,Zhang KW,Wu QHA New Bearing Fault Diagnosis Framework with Deep Adaptation Networks for Industrial Application.

[0174]

[19] Zou YS,Liu YZ,Deng JL,Jiang YL,Zhang W HA Novel transferlearning method for bearing fault diagnosis under different workingconditions.Measurement,2021,171:108767.

[0175]

[20] Zhu Y C,Zhuang F Z,Wang J D,Ke G L,Chen J W.Deep subdomain adaptationnetwork for image classification.IEEE Transactions on Neural Networks andLearning Systems,2020,PP(99):1-10.

Claims

1. A rolling bearing fault diagnosis method under variable working conditions based on an improved deep subdomain adaptive network, characterized in that: The following steps are involved: Step 1: Collect rolling bearing vibration signal samples with known fault information under one working condition to construct a source domain data sample set, and collect rolling bearing vibration signal samples with unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set includes a training sample set and a test sample set; Step 2: Perform short-time Fourier transform on the rolling bearing vibration signals in the source domain data sample set and the target domain data sample set, respectively, convert the one-dimensional time domain signal into a two-dimensional time-frequency image, and obtain a source domain image sample set and a target domain image sample set; Step 3: construct an improved residual network, introduce an attention mechanism to dynamically allocate resources between channels, extract deep features of the source domain image sample set and the target domain image sample set, and obtain soft labels for unlabeled target domain samples; the improved residual network is an improvement on the existing residual network, and the improvement is: first, the convolution kernel size of the first convolution layer of the residual network is changed from 7×7 to 15×15; second, the residual module in the residual network model ResNet-50 is improved as follows: each channel performs 1×1 and 3×3 convolution operations on the input features to preliminarily extract features; the features of each channel are compressed and reduced in dimension through a global pooling layer to obtain global features representing the context information of the channel; the obtained global features are input into two fully connected layers for processing, and the correlation between each channel is modeled; the ReLU activation function is used between the two fully connected layers to improve nonlinearity; the obtained channel weights are normalized through a Softmax layer; finally, the normalized weights are used to weight the original channel features as output to obtain a feature image; Step 4: Using the deep features of the source domain and the target domain, the real labels of the source domain, and the soft labels of the target domain, the local maximum mean difference between the source domain and the target domain is calculated as the domain adaptation loss term to measure the distribution difference between each subdomain of the source domain and the target domain. Step 5: The domain adaptation loss term and the cross entropy loss term of the improved residual network are optimized together as the objective function. After training for a specified number of iterations, a fault diagnosis model of the rolling bearing under variable working conditions is obtained; Step 6: Input the target domain test sample set into the trained fault diagnosis model, compare the fault diagnosis results of the test samples with their true labels, and obtain the accuracy of the fault diagnosis model for rolling bearing fault diagnosis, so as to measure the performance of the fault diagnosis model.

2. The rolling bearing fault diagnosis method under variable working conditions based on improved deep subdomain adaptive network according to claim 1 is characterized in that: The weighted output feature image V c for: V c =a c U c In the formula, a c represents the weight of the cth channel; U c V represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism.

3. The rolling bearing fault diagnosis method under variable working conditions based on improved deep subdomain adaptive network according to claim 2 is characterized in that: In step 4, the local maximum mean difference LMMD is used to map and align each subdomain of the source domain and the target domain respectively. The calculation formula is: Where p and q represent the distributions of source domain and target domain samples respectively; H represents a regenerated Hilbert space with a characteristic kernel; c represents the category, and C represents the total number of categories; and Represent the source domain D s The i-th sample and the target domain D t The jth sample of and Respectively and The weight of belonging to category c; Represents a feature map that maps the original sample data to H.

4. The rolling bearing fault diagnosis method under variable working conditions based on improved deep subdomain adaptive network according to claim 3 is characterized in that: The cross entropy loss term described in step 5 is used to judge the performance of the model on the source domain samples, and its calculation formula is: Where c represents the category, C represents the total number of categories; N represents the total number of samples, i represents the sample number; y ic is a symbolic function, which takes the value 1 if the true category of the i-th sample is c, otherwise it takes the value 0; p ic It represents the predicted probability that the i-th sample belongs to the c-th class.

5. The rolling bearing fault diagnosis method under variable working conditions based on improved deep subdomain adaptive network according to claim 4 is characterized in that: The fault information in step one includes inner ring fault, rolling element fault, outer ring fault or no fault with different damage diameters; the working condition is obtained according to a combination of different loads and different motor speeds.

6. A rolling bearing fault diagnosis system under variable working conditions based on an improved deep subdomain adaptive network, characterized in that: include: A data acquisition module is configured to collect rolling bearing vibration signal samples of known fault information under one working condition to construct a source domain data sample set, and collect rolling bearing vibration signal samples of unknown fault information under other working conditions to construct a target domain data sample set, wherein the target domain data sample set includes a training sample set and a test sample set; the fault information includes inner ring faults, rolling element faults, outer ring faults or no faults with different damage diameters; the working conditions are obtained according to a combination of different loads and different motor speeds; A preprocessing module is configured to perform short-time Fourier transform on the rolling bearing vibration signals in the source domain data sample set and the target domain data sample set, respectively, to convert the one-dimensional time domain signal into a two-dimensional time-frequency image, and obtain a source domain image sample set and a target domain image sample set; The feature extraction module is configured to construct an improved residual network, introduce an attention mechanism to dynamically allocate resources between channels, extract deep features of a source domain image sample set and a target domain image sample set, and obtain soft labels for unlabeled target domain samples; the improved residual network is an improvement on the existing residual network, and the improvement is that: first, the convolution kernel size of the first convolution layer of the residual network is changed from 7×7 to 15×15; second, the residual module in the residual network model ResNet-50 is improved as follows: each channel performs 1×1 and 3×3 convolution operations on the input features to preliminarily extract features; the features of each channel are compressed and reduced in dimension through a global pooling layer to obtain global features representing the context information of the channel; the obtained global features are input into two fully connected layers for processing to model the correlation between each channel; the ReLU activation function is used between the two fully connected layers to improve nonlinearity; the obtained channel weights are normalized through a Softmax layer; finally, the original channel features are weighted as output using the normalized weights to obtain a feature image; the weighted output feature image V c for: V c =a c U c In the formula, a c represents the weight of the cth channel; U c V represents the feature image obtained after 1×1 convolution layer and 3×3 convolution layer; c Represents the feature image output after weighting by the channel attention mechanism; A distribution difference measurement module is configured to use the deep features of the source domain and the target domain, the true label of the source domain, and the soft label of the target domain to calculate the local maximum mean difference between the source domain and the target domain as the domain adaptation loss term to measure the distribution difference between each subdomain of the source domain and the target domain; A model training module is configured to optimize the domain adaptation loss term and the cross entropy loss term of the improved residual network as an objective function, and obtain a fault diagnosis model of the rolling bearing under variable working conditions after training for a specified number of iterations; The model testing module is configured to input the target domain test sample set into the trained fault diagnosis model, compare the fault diagnosis results of the test samples with their true labels, and obtain the accuracy of the fault diagnosis model for rolling bearing fault diagnosis, so as to measure the performance of the fault diagnosis model.

7. A rolling bearing fault diagnosis system under variable working conditions based on an improved deep subdomain adaptive network according to claim 6, characterized in that: The local maximum mean difference LMMD in the distribution difference measurement module is used to map and align each subdomain of the source domain and the target domain respectively, and its calculation formula is: Where p and q represent the distributions of source domain and target domain samples respectively; H represents a regenerated Hilbert space with a characteristic kernel; c represents the category, and C represents the total number of categories; and Represent the source domain D s The i-th sample and the target domain D t The jth sample of and Respectively and The weight of belonging to category c; Represents a feature map that maps the original sample data to H.

8. The rolling bearing fault diagnosis system under variable working conditions based on improved deep subdomain adaptive network according to claim 7, characterized in that: The cross entropy loss term in the model training module is used to judge the performance of the model on the source domain samples, and its calculation formula is: Where c represents the category, C represents the total number of categories; N represents the total number of samples, i represents the sample number; y ic is a symbolic function, which takes the value 1 if the true category of the i-th sample is c, otherwise it takes the value 0; p ic It represents the predicted probability that the i-th sample belongs to the c-th class.