A fault diagnosis method and system for multi-wavelet adversarial network under attention guidance
Through attention-guided multi-wavelet adversarial networks, multi-wavelet convolution and domain difference hybrid measurement strategies are used to solve the problems of data deviation and model failure in rotating machinery fault diagnosis, achieve efficient gear fault diagnosis, and improve the accuracy of diagnosis. sex and stability.
Patent Information
- Application Number
- CN202311544870.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-20
AI Technical Summary
The existing technology has problems with data deviation and model failure under different working conditions in rotating machinery fault diagnosis, which affects the diagnosis accuracy, especially in the diagnosis of gear faults, which is difficult to effectively identify.
Attention-guided multi-wavelet adversarial network is used to extract fault features in vibration signals through a multi-wavelet convolution feature extractor, and the domain difference hybrid metric and domain discriminator are used to optimize the model to achieve fault feature transfer learning and operation under different working conditions. Intelligent diagnosis.
Effectively utilizing the relationship between data improves the accuracy and stability of gear fault diagnosis under different working conditions, achieves efficient and reliable knowledge transfer, and improves the performance of the diagnostic model.
Smart Images

Figure CN117807426B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fault diagnosis of rotating machinery vibration signals, and in particular to a fault diagnosis method and system of a multi-wavelet adversarial network under attention guidance. Background Art
[0002] With the rapid development of information technology and industrialization, the intelligence and integration level of mechanical equipment has been significantly improved, which has put forward higher requirements for the stability of equipment operation. In modern manufacturing equipment, rotating machinery is a key and widely used type. It is very important to be able to timely and accurately identify various faults in the operation of mechanical equipment and ensure the safe and stable operation of machinery.
[0003] The continuous development of artificial intelligence has made data-driven intelligent methods a prominent research direction in fault diagnosis. Although some progress has been made in rotating machinery fault diagnosis, there are still some limitations. Most deep learning-based methods require a large amount of labeled data for training to achieve good diagnostic performance. This requirement is difficult to meet in actual diagnostic scenarios because collecting sufficient labeled data is time-consuming, expensive, and laborious. In terms of feature extraction, due to the complexity and variability of actual operating conditions (including speed and load changes), the distribution of the acquired test data may deviate significantly from the training data. This deviation will make the pre-trained diagnostic model invalid when applied to the test set, and samples of unrelated classes between the two domains will be misaligned, thus affecting the accuracy of the diagnosis.
[0004] Transfer learning provides a reliable solution to overcome the above limitations. Transfer learning aims to reduce the difference in feature distribution between data in different domains, thereby improving the stability of the model. Adversarial transfer learning strategies can narrow the distribution difference between two domains. It can extract domain-invariant features between different but related domains and promote the reuse of data labels.
[0005] In the actual environment of rotating machinery fault diagnosis, the distribution of signal samples collected by sensors under different operating conditions is different. The correlation between the signals collected in the actual field and the fault information extracted by the feature extractor from the signals of the calibrated fault type is not fully utilized. Therefore, the key to achieving efficient and accurate knowledge transfer in actual industrial fault diagnosis scenarios is to allow the diagnosis model to fully utilize the relationship between data to learn common diagnostic knowledge for multiple working conditions. Summary of the invention
[0006] In order to solve the above technical problems, the present invention discloses a fault diagnosis method and system of a multi-wavelet adversarial network under attention guidance, so as to solve the problem in the prior art that it is difficult to effectively diagnose gear faults under different working conditions.
[0007] To achieve the above object, the present invention adopts the following technical solutions:
[0008] The first aspect of the present invention proposes a fault diagnosis method for a multi-wavelet adversarial network under attention guidance, comprising the following steps:
[0009] S1, obtain vibration signal and perform preprocessing;
[0010] S2, feature extraction based on multi-wavelet convolution feature extractor;
[0011] S3, perform domain difference mixed measurement;
[0012] S4, determine the classification loss of sample health status labels;
[0013] S5, determine the domain discriminator classification loss;
[0014] S6. Build a fault diagnosis model and determine the optimization target.
[0015] Optionally, in step S1, the step of obtaining the vibration signal and performing preprocessing specifically includes:
[0016] S11, collecting vibration signals of various health states of the gearbox under different working conditions;
[0017] S12. The vibration signal is divided into samples by equal window division, and the samples are used to construct the source domain and the target domain respectively in proportion.
[0018] Optionally, in step S2, the step of performing feature extraction based on a multi-wavelet convolution feature extractor specifically includes:
[0019] S21, the first layer of the feature extractor is three wavelet convolution layers: Laplace, Mexican Hat and Moret, which can directly learn scale and translation parameters from the vibration signal to extract the impact components related to the fault in the vibration signal. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively;
[0020] The prominent fault features of S22 and three wavelet convolutional layers use a channel attention module to enhance feature fusion; the weights of the features are learned autonomously, while reducing the weights of invalid or low-quality features.
[0021] Optionally, in step S3, the step of performing domain difference mixed measurement specifically includes:
[0022] S31. In the last layer of the feature extractor, each feature sample point is regarded as a node in the feature space and is connected to k nearest neighbor nodes;
[0023] S32. Determine the cluster center by multiplying the local density by the minimum distance, as shown in equations (1) and (2) respectively:
[0024]
[0025]
[0026] In the formula, kNN(x i ) is x i The k nearest neighbor nodes, k = [p × n], p is the percentage of input samples, n is the number of samples, d(x i ,x j ) is x i and x j The Euclidean distance between
[0027] S33, assign the health status label of each feature sample point cluster center to the neighborhood, and perform sample point prediction, as shown in formula (3):
[0028]
[0029] In the formula, peak is a set of determined cluster centers, kNN(peak j ) is the cluster center x j A set of neighbors, the sample point is connected to its k nearest neighbor nodes to form a cluster; the neighborhood is the set of k nearest neighbor nodes closest to the data sample point;
[0030] S34, obtaining a health status pseudo label of the target domain sample point by predicting the target domain feature sample point;
[0031] S35. Calculate the cosine similarity between the target domain sample point and the source domain cluster center of the health status pseudo label, which can effectively measure the local difference between the source domain and the target domain, and record it as the feature cosine measurement loss L FCM , as shown in formula (4) and (5):
[0032]
[0033]
[0034] Where, X t is the n-dimensional target domain feature vector, C s is the feature vector of the n-dimensional source domain feature cluster center, s n is the cosine similarity between the sample point and the source domain cluster center, s′ n For n Normalization;
[0035] S36. By calculating the maximum mean difference (MMD) of different Gaussian kernels, the global difference between source domain and target domain samples can be effectively measured, which is recorded as MMD loss, as shown in formula (6):
[0036]
[0037] Where, X s is the n-dimensional source domain feature vector, n s Represents the number of source domain samples, n t represents the number of samples in the target domain, D K 2 (,) is the unbiased estimate of MMD(,), and k(,) is the kernel function;
[0038] S37, domain difference mixed metric loss function, as shown in formula (7):
[0039]
[0040] In the formula, θ represents the domain difference domain adaptation parameter set, h s and h t represents the feature output of the fault feature extractor, α and β are coefficients, indicating the importance of each item in the loss function, and y s Represents the health status label of the source domain sample.
[0041] Optionally, in step S4, the step of determining the sample health status label classification loss, the sample health status label classification loss function is shown in formula (8):
[0042]
[0043] In the formula, y i is the predicted sample health status label, G f is the output of the feature extractor, G y is the output of the label classifier, L y is the label classification loss function.
[0044] Optionally, in step S5, the step of determining the classification loss of the domain discriminator specifically includes:
[0045] The domain discriminator is a binary classifier that assigns labels of 0 and 1 to source domain samples and target domain samples respectively. The classification loss function of the domain discriminator is expressed as shown in formula (9):
[0046]
[0047] Where, d i is the predicted domain label, G f is the output of the feature extractor, G d is the output of the domain discriminator, L d is the domain classification loss function.
[0048] Optionally, in step S6, the step of constructing a fault diagnosis model and determining an optimization target includes:
[0049] S61, construct a fault diagnosis model function, as shown in formula (10):
[0050]
[0051] The model optimization goal is to minimize the mixed metric loss of classification loss and domain difference, while maximizing the classification loss of the domain discriminator;
[0052] S62, parameters θ for feature extractor and label classifier f ,θ y Perform corresponding training and update, as shown in formula (11):
[0053]
[0054] S63, by maximizing the domain discriminator classification loss L d , optimize the domain discriminator parameters θ d , as shown in formula (12):
[0055]
[0056] S64, repeating steps S62 and S63 alternately until the fault diagnosis model converges. The convergence of the fault diagnosis model means that the loss function value gradually converges to a stable value and the accuracy reaches a stable state.
[0057] The second aspect of the present invention proposes a fault diagnosis system of a multi-wavelet adversarial network under attention guidance, comprising:
[0058] Data acquisition module, used to obtain vibration signals and perform preprocessing;
[0059] The feature extraction module extracts the fault-related impact components in the vibration signal through the three wavelet convolution layers of the first layer of the feature extractor, namely Laplace, Mexican Hat and Moret. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively, and the channel attention module is used to enhance the feature fusion of the prominent fault features;
[0060] The fault diagnosis module is used to obtain the domain difference mixed metric loss function, the sample health status label classification loss function, the domain discriminator classification loss function, determine the optimization target, and perform fault diagnosis.
[0061] A third aspect of the present invention provides a computer device, comprising a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the above method when executing the instructions.
[0062] A fourth aspect of the present invention provides a computer-readable storage medium having computer instructions stored thereon, which implement the steps of the above method when the instructions are executed.
[0063] The beneficial effect of the present invention is that the present invention uses multi-wavelet convolution and channel attention mechanism to extract interpretable fault features related to the impact component from the input signal. The kNN algorithm is used to build a label model in the source domain feature layer, and a new domain difference hybrid measurement strategy is used in the feature extraction layer to efficiently and reliably realize the fault feature transfer learning and intelligent diagnosis of gears under different working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 The present invention is a flow chart of a method for fault diagnosis of a multi-wavelet adversarial network under attention guidance. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] A fault diagnosis method for multi-wavelet adversarial networks guided by attention, such as Figure 1 As shown, the following steps are included:
[0067] S1. Obtain vibration signal and pre-process it
[0068] Specifically include:
[0069] S11, collecting vibration signals of various health states of the gearbox under different working conditions;
[0070] S12. The vibration signal is divided into samples by equal window division, 50% of the samples are marked with healthy status to construct the source domain, and the remaining 50% of the samples without healthy status are unmarked to construct the target domain.
[0071] S2. Feature extraction based on multi-wavelet convolution feature extractor
[0072] Specifically include:
[0073] S21, the first layer of the feature extractor is three wavelet convolution layers: Laplace, Mexican Hat and Moret, which can directly learn scale and translation parameters from the vibration signal to extract the impact components related to the fault in the vibration signal. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively;
[0074] S22, the prominent fault features of the three wavelet convolutional layers use a channel attention module to enhance feature fusion. The weights of the features are learned autonomously, while reducing the weights of invalid or low-quality features.
[0075] S3. Perform domain difference mixed measurement
[0076] Specifically include:
[0077] S31. In the last layer of the feature extractor, each data sample point is regarded as a node in the feature space and is connected to the k nearest neighbor nodes;
[0078] S32. Determine the cluster center by multiplying the local density by the minimum distance, as shown in equations (1) and (2) respectively:
[0079]
[0080]
[0081] In the formula, kNN(x i ) is x i The k nearest neighbor nodes, k = [p × n], p is the percentage of input samples, n is the number of samples, d(x i ,x j ) is x i and x j The Euclidean distance between
[0082] S33, assign the health status label of each feature sample point cluster center to the neighborhood, and perform sample point prediction, as shown in formula (3):
[0083]
[0084] In the formula, peak is a set of determined cluster centers, kNN(peak j ) is the cluster center x j A set of neighbors;
[0085] S34, obtaining a health status pseudo label of the target domain sample point by predicting the target domain feature sample point;
[0086] S35. Calculate the cosine similarity between the target domain sample point and the source domain cluster center of the health status pseudo label, which can effectively measure the local difference between the source domain and the target domain, and record it as the feature cosine measurement loss L FCM , as shown in formula (4) and (5):
[0087]
[0088]
[0089] Where, X t is the n-dimensional target domain feature vector, C s is the feature vector of the n-dimensional source domain feature cluster center, s n is the cosine similarity between the sample point and the source domain cluster center, s′ n For n Normalization;
[0090] S36. By calculating the MMD of different Gaussian kernels, the global difference between source domain and target domain samples can be effectively measured, which is recorded as MMD loss, as shown in formula (6):
[0091]
[0092] Where, X s is the n-dimensional source domain feature vector, n s Represents the number of source domain samples, n t represents the number of samples in the target domain, D K 2 (,) is the unbiased estimate of MMD(,), and k(,) is the kernel function;
[0093] S37, domain difference mixed metric loss function, as shown in formula (7):
[0094]
[0095] In the formula, θ represents the domain difference domain adaptation parameter set, h s and h t represents the feature output of the fault feature extractor, α and β are coefficients, indicating the importance of each item in the loss function, and y s Represents the health status label of the source domain sample.
[0096] S4. Determine the classification loss of sample health status labels
[0097] The sample health status label classification loss function is shown in formula (8):
[0098]
[0099] In the formula, y i is the predicted sample health status label, G f is the output of the feature extractor, G y is the output of the label classifier, L y is the label classification loss function.
[0100] S5. Determine the domain discriminator classification loss
[0101] The domain discriminator is a binary classifier that assigns labels of 0 and 1 to source domain samples and target domain samples respectively. The classification loss function of the domain discriminator is expressed as shown in formula (9):
[0102]
[0103] Where, d i is the predicted domain label, G f is the output of the feature extractor, G d is the output of the domain discriminator, L d is the domain classification loss function.
[0104] S6. Build a fault diagnosis model and determine the optimization target
[0105] Specifically include:
[0106] S61, construct a fault diagnosis model function, as shown in formula (10):
[0107]
[0108] The model optimization goal is to minimize the mixed metric loss of classification loss and domain difference, while maximizing the classification loss of the domain discriminator;
[0109] S62, parameters θ for feature extractor and label classifier f ,θ y Perform corresponding training and update, as shown in formula (11):
[0110]
[0111] S63, by maximizing the domain discriminator classification loss L d , optimize the domain discriminator parameters θ d , as shown in formula (12):
[0112]
[0113] S64. Repeat steps S62 and S63 alternately until the fault diagnosis model converges.
[0114] The embodiment of the present invention also proposes a fault diagnosis system of a multi-wavelet adversarial network under attention guidance, comprising:
[0115] Data acquisition module, used to obtain vibration signals and perform preprocessing;
[0116] The feature extraction module extracts the fault-related impact components in the vibration signal through the three wavelet convolution layers of the first layer of the feature extractor, namely Laplace, Mexican Hat and Moret. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively, and the channel attention module is used to enhance the feature fusion of the prominent fault features;
[0117] The fault diagnosis module is used to obtain the domain difference mixed metric loss function, the sample health status label classification loss function, the domain discriminator classification loss function, determine the optimization target, and perform fault diagnosis.
[0118] An embodiment of the present invention further provides a computer device, comprising a processor and a memory for storing instructions executable by the processor, wherein the processor implements the steps of the above method when executing the instructions.
[0119] The embodiment of the present invention also proposes a computer-readable storage medium, on which computer instructions are stored, and the steps of the above method are implemented when the instructions are executed. It can be understood by a person skilled in the art that all or part of the processes in the above embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0120] Application example: The present invention is further described by collecting vibration signals and conducting intelligent diagnosis under different working conditions on a specially designed gear fault test bench.
[0121] The gearbox dataset includes fault data of seven gear health states, namely, normal state NC, sun gear fracture SF, sun gear pitting SP, sun gear wear SW, planet gear fracture PF, planet gear pitting PP, and planet gear wear PW. The gear fracture fault was detected by wire cutting with an electrode wire diameter of 1 mm. The cutting depth of sun gear fracture was 0.2 mm, and the cutting depth of planet gear fracture was 0.5 mm. The sun gear and planet gear wear faults were detected by milling 0.5 mm on one side of the gear in a spark machine. The gear pitting fault was detected by laser punching two circular pits with a diameter of 2 mm and a depth of 0.5 mm. An AC variable frequency controller was used to control the speed change, and a braking torque current regulator was used to control the load change. This study includes migration between different speeds, migration between different loads at the same speed, migration between different loads at different speeds, and migration from constant speed with no load to variable speed with variable load. The collected gearbox dataset contains 200 samples for each gear health state, and each sample has 1024 data points. In the experiment, 50% of the samples are used to train the model, and the remaining 50% are used to test the model. In order to avoid the contingency of the experimental results, each migration task is performed 10 times. Table 1 lists the specific tasks involved in the migration process.
[0122] Table 1
[0123]
[0124] In order to verify the superiority of the method of the present invention, six methods were selected for comparison, including four latest methods and two homemade methods, as described below:
[0125] (1) Deep sub-domain adaptation: The initial convolutional layer of the ResNet-18-1D model is replaced with a wavelet convolutional layer, and the local maximum mean difference is used to align different layers to achieve sub-domain alignment, thereby achieving classification of target samples.
[0126] (2) Deep Adversarial Transfer Network: Through the adversarial relationship between the domain discriminator and the task label classifier, the model’s classification ability for target domain samples is improved.
[0127] (3) Hybrid distance adversarial network: The model uses two difference metrics, Wasserstein and maximum mean difference distance, to evaluate the domain difference of the last two hidden layers to alleviate data bias.
[0128] (4) Wasserstein Generative Adversarial Transfer Network: The model uses the Wasserstein Generative Adversarial Network as a data generation module, which is then input into the convolutional autoencoder feature extractor and uses the maximum mean difference distance to achieve domain adaptation.
[0129] (5) Local feature alignment network: Compared with the method of the present invention, this method only contains a local feature metric alignment module. A local feature alignment network is used to verify the effectiveness of global feature alignment.
[0130] (6) Global feature alignment network: Compared with the method of the present invention, this method only contains a global feature alignment module. A quasi-global feature alignment network is used to verify the effectiveness of the quasi-local feature alignment.
[0131] All methods use the same number of training samples and test samples, and the number of iterations is 200. The learning rate of the comparison method is set to dynamically adjust the learning rate, and the regularization coefficient of the difference metric is also set to dynamically adjust the regularization coefficient, which are: in α=10, β=0.75.
[0132] The specific parameter settings of the method of the present invention are shown in Table 2. In Table 2, 32×8 of the multi-wavelet convolution feature extractor represents that the size of the one-dimensional convolution kernel is 32 and the number is 8. 128 of the domain discriminator and label classifier represents that the output nodes of the fully connected layer are 128. It should be noted that the values of the regularization coefficients α and β have a great influence on the diagnostic accuracy of the proposed method. In order to ensure the fairness of the comparison of the comparison methods, we set α=0.6 and β=0.4 in the proposed method.
[0133] Table 2
[0134]
[0135] Table 3 shows the diagnostic accuracy of the seven methods in nine transfer tasks. Some conclusions can be drawn from the quantitative analysis. Among the nine groups of transfer tasks, the deep sub-domain adaptation method using geometric feature transformation has the largest accuracy fluctuation, with an average diagnostic accuracy of only 81.87%. The deep adversarial transfer network method achieved satisfactory classification results, but the accuracy dropped significantly in the transfer tasks with large domain distances, resulting in large fluctuations in accuracy. Without any domain metric module, the diagnostic efficiency of the model is limited, with an average accuracy of 88.18%. However, after adding the feature cosine local alignment module, the average accuracy increased by 4.27% to 92.45%. Similarly, compared with the deep adversarial transfer network, the average accuracy increased by 4.13% to 92.31% after adding the global metric module. The average accuracy of the hybrid distance adversarial network model, which added two difference metrics methods, Wasserstein and maximum mean difference, in the last two layers, reached 92.88%. At the same time, the Wasserstein generative adversarial transfer network model uses a data generation module and uses the maximum mean difference for domain adaptation in each layer of the convolutional autoencoder feature extractor, and its average accuracy reaches 92.71%. In contrast, the accuracy of the proposed method in the nine transfer tasks fluctuated little, with an average accuracy of 96.07%. This shows that the proposed method achieved the highest accuracy in fault diagnosis and showed the best stability by combining the local and global feature alignment modules.
[0136] Table 3
[0137]
[0138] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A fault diagnosis method for multi-wavelet adversarial network under attention guidance, characterized in that: The steps include: S1, obtain vibration signal and perform preprocessing; S2, feature extraction based on multi-wavelet convolution feature extractor; S3, perform domain difference mixed measurement; S4, determine the classification loss of sample health status labels; S5, determine the domain discriminator classification loss; S6. Build a fault diagnosis model and determine the optimization target; In step S1, the step of obtaining the vibration signal and performing preprocessing specifically includes: S11, collecting vibration signals of various health states of the gearbox under different working conditions; S12, dividing the vibration signal into samples by equal window division, and using the samples to construct the source domain and the target domain respectively in proportion; In step S3, the step of performing domain difference mixed measurement specifically includes: S31. In the last layer of the feature extractor, each feature sample point is regarded as a node in the feature space and is connected to k nearest neighbor nodes; S32. Determine the cluster center by multiplying the local density by the minimum distance, as shown in equations (1) and (2) respectively: In the formula, kNN(x i ) is x i The k nearest neighbor nodes, k = [p × n], p is the percentage of input samples, n is the number of samples, d(x i ,x j ) is x i and x j The Euclidean distance between S33, assign the health status label of each feature sample point cluster center to the neighborhood, and perform sample point prediction, as shown in formula (3): In the formula, peak is a set of determined cluster centers, kNN(peak j ) is the cluster center x j A set of neighbors; S34, obtaining a health status pseudo label of the target domain sample point by predicting the target domain feature sample point; S35. Calculate the cosine similarity between the target domain sample point and the source domain cluster center of the health status pseudo label, denoted as the feature cosine metric loss L FCM , as shown in formula (4) and (5): Where, X t is the n-dimensional target domain feature vector, C s is the feature vector of the n-dimensional source domain feature cluster center, s n is the cosine similarity between the sample point and the source domain cluster center, s′ n For n Normalization; S36. By calculating the MMD of different Gaussian kernels, it is recorded as MMD loss, as shown in formula (6): Where, X s is the n-dimensional source domain feature vector, n s Represents the number of source domain samples, n t represents the number of samples in the target domain, is an unbiased estimate of MMD(,), and k(,) is the kernel function; S37, domain difference mixed metric loss function, as shown in formula (7): In the formula, θ represents the domain difference domain adaptation parameter set, h s and h t represents the feature output of the fault feature extractor, α and β are coefficients, indicating the importance of each item in the loss function, and y s Represents the health status label of the source domain sample; In step S4, the step of determining the classification loss of the sample health status label is as shown in formula (8): In the formula, y i is the predicted sample health status label, G f is the output of the feature extractor, G y is the output of the label classifier, L y is the label classification loss function; In step S6, the steps of constructing a fault diagnosis model and determining an optimization target include: S61, construct a fault diagnosis model function, as shown in formula (10): The model optimization goal is to minimize the mixed metric loss of classification loss and domain difference, while maximizing the classification loss of the domain discriminator; S62, parameters θ for feature extractor and label classifier f ,θ y Perform corresponding training and update, as shown in formula (11): S63, by maximizing the domain discriminator classification loss L d , optimize the domain discriminator parameters θ d , as shown in formula (12): S64. Repeat steps S62 and S63 alternately until the fault diagnosis model converges.
2. The method for fault diagnosis of a multi-wavelet adversarial network under attention guidance as claimed in claim 1, characterized in that: In step S2, the step of performing feature extraction based on a multi-wavelet convolution feature extractor specifically includes: S21, the first layer of the feature extractor is three wavelet convolution layers: Laplace, Mexican Hat and Moret, which are used to extract the impact components related to the fault in the vibration signal. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively; S22, the prominent fault features of the three wavelet convolutional layers adopt the channel attention module to enhance feature fusion.
3. The method for fault diagnosis of a multi-wavelet adversarial network under attention guidance as claimed in claim 1, characterized in that: In step S5, the step of determining the classification loss of the domain discriminator specifically includes: The domain discriminator assigns labels of 0 and 1 to source domain samples and target domain samples respectively. The classification loss function of the domain discriminator is expressed as shown in formula (9): Where, d i is the predicted domain label, G f is the output of the feature extractor, G d is the output of the domain discriminator, L d is the domain classification loss function.
4. A fault diagnosis system of a multi-wavelet adversarial network under attention guidance using the method described in any one of claims 1 to 3, characterized in that: include: Data acquisition module, used to obtain vibration signals and perform preprocessing; The feature extraction module extracts the fault-related impact components in the vibration signal through the three wavelet convolution layers of the first layer of the feature extractor, namely Laplace, Mexican Hat and Moret. After applying batch normalization and regularization, the maximum pooling layer is used to extract the prominent fault features respectively, and the channel attention module is used to enhance the feature fusion of the prominent fault features; The fault diagnosis module is used to obtain the domain difference mixed metric loss function, the sample health status label classification loss function, the domain discriminator classification loss function, determine the optimization target, and perform fault diagnosis.
5. A computer device, characterized in that: The invention comprises a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the method according to any one of claims 1 to 3 when executing the instructions.
6. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Digital-analog combined drive bearing mixed working condition unsupervised domain adaptive diagnosis method and system
CN113177448A
Transfer learning bearing fault diagnosis method and device based on width multi-scale space-time attention, and storage medium
CN116337448A
