Cross-domain fault diagnosis system and method based on multi-task adversarial discrimination domain adaptation

By adopting a multi-task adversarial discriminant domain adaptation method in rolling bearing fault diagnosis, domain-level and class-level alignment is achieved, and non-parametric loss functions are used to improve feature embedding regularity, solving the problem of low fault classification accuracy and inapplicability in the existing technology. Problems with limited scope improve the accuracy and stability of diagnosis.

CN114254677BActive Publication Date: 2024-10-29OCEAN UNIV OF CHINA

Patent Information

Application Number
CN202111578320.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-10-29
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

The existing technology lacks consideration of category information in rolling bearing fault diagnosis, resulting in low fault classification accuracy and reliance on the accuracy of the source classifier, making it difficult to adapt to situations with large field gaps and skewed data distribution.

Method used

A cross-domain fault diagnosis system based on multi-task adversarial discriminative domain adaptation is adopted to achieve domain-level distribution alignment through the game of feature generators and domain discriminators, and non-parametric triplet loss and center magnet loss functions are used to improve target domain features. Embedded regularity.

Benefits of technology

It improves the accuracy of cross-domain fault diagnosis and feature extraction, enhances the classification clarity of fault information, has a wider scope of application, and has higher stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254677B_ABST
    Figure CN114254677B_ABST
Patent Text Reader

Abstract

The present invention discloses a cross-domain fault diagnosis system and method based on multi-task adversarial discrimination domain adaptation, the system comprises a signal acquisition module, a signal processing module, a fault diagnosis module and a fault result output module; the fault diagnosis module comprises a feature generator, a difference discriminator, and a domain discriminator, the feature generator and the domain discriminator constitute a game, and domain-level distribution alignment is realized; the feature generator and the difference discriminator constitute a game, and class-level alignment is realized. The present invention improves the accuracy of fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of mechanical equipment fault diagnosis, and in particular relates to a cross-domain fault diagnosis system and method based on multi-task adversarial discrimination domain adaptation. Background Art

[0002] Early rolling bearing fault diagnosis methods mainly used mathematical tools such as wavelet transform and Hilbert-Huang transform to extract fault features, and used manual intervention to determine whether the bearing had a fault. The main problem faced by traditional methods is that they do not take into account specific category information, resulting in insufficient fault classification accuracy. This is because the domain adversarial algorithm only aligns the source domain and target domain features globally, and the matching of category features is very limited. Therefore, a cross-domain fault diagnosis method is introduced. Cross-domain fault diagnosis uses a migration mechanism to map the target domain and source domain features to the same space through a certain mapping method. Cross-domain fault diagnosis includes two key processes. First, feature engineering is carried out in a single domain to obtain high-quality source domain fault feature embedding; second, the migration mechanism is used to match the source domain features with the target domain features according to a certain mapping rule.

[0003] Among them, Jiao et al. proposed an unsupervised adversarial domain adaptation method based on classifier differences, which includes two modules: feature generation and feature migration. The advantage of this method is that it can reduce domain differences and complete the fault diagnosis task of unlabeled target domains. However, this method has the following problems:

[0004] First, the performance of fault classification is too dependent on the accuracy of the source classifier. For example, although the current method achieves domain adaptive diagnosis through class alignment, the final classification result still depends largely on the accuracy of the source classifier. When the domain gap is large, the classifier difference metric based on L1 distance is less effective in practical applications and can easily cause a serious drop in accuracy.

[0005] Second, it does not have non-parametric properties. For example, the current method may implicitly make parameter assumptions about the input distribution when performing feature migration, so it has relatively strict requirements on the overall distribution corresponding to the sample, which limits its scope of application. When the non-stationary noise in the data is large and the data is skewed, the accuracy of the current method will be seriously reduced. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention provides a cross-domain fault diagnosis system and method based on multi-task adversarial discrimination domain adaptation. When performing domain alignment, two sets of minimax games are modeled, and two subtasks of domain alignment and class alignment are performed to improve the comprehensiveness of domain representation alignment. When optimizing the embedding of target domain features, a non-parametric architecture based on triplet loss and central magnet loss is used to improve the regularity of target domain feature embedding.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0008] First, the present invention provides a cross-domain fault diagnosis system based on multi-task adversarial discrimination domain adaptation, including a signal acquisition module, a signal processing module, a fault diagnosis module and a fault result output module; the signal acquisition module is used to collect real-time signal data and store it in a database, the signal processing module is used to retrieve signal data from the database and input it into the fault diagnosis module after fast Fourier transform; the fault diagnosis module includes a feature generator, a difference discriminator, and a domain discriminator.

[0009] The feature generator is used to mine the feature representation of the input signal from the source domain and the target domain and generate a feature map, and the source domain and the target domain share the parameters of the feature generator; the domain discriminator is used to distinguish whether the features extracted by the feature generator are from the source domain or the target domain, and align the marginal feature distributions of the two through game theory; the difference discriminator includes two classifiers, which are used to detect target samples far away from the source domain features to achieve feature alignment;

[0010] The feature generator and the domain discriminator constitute a game. The feature generator mines the feature representation of the input vibration signal from the source domain and the target domain and deceives the domain discriminator. The domain discriminator distinguishes whether the extracted features are from the source domain or the target domain. The two are trained by minimizing the domain prediction loss. When the domain discriminator cannot determine the source of the features generated by the feature generator, domain-level distribution alignment is achieved; the feature generator and the difference discriminator constitute a game. The feature generator deceives the difference discriminator through training, so that the difference discriminator cannot distinguish the output difference of the two classifiers. The difference discriminator detects the fuzzy target samples by maximizing the output difference of the two classifiers, thereby performing class-level alignment.

[0011] Furthermore, the signal acquisition module includes a sensor, sampling frequency setting, sampling data transmission and storage, wherein in the sampling frequency setting, if the highest frequency of the bearing vibration signal is f, the sampling frequency is 2f; in the sampling data transmission and storage, the sensor transmits real-time signal data to the database at the set sampling frequency; the signal processing module includes sampling data reading, fast Fourier transform, and data input. This module is used to retrieve signal data from the database and input it into the fault diagnosis module after fast Fourier transform.

[0012] Furthermore, the fault result output module includes a fault signal waveform display and a fault type output, which is used to highlight the waveform of the fault signal and output the fault type of the waveform.

[0013] Furthermore, the feature generator includes several convolution-pooling modules; the domain discriminator includes three fully connected layers, in which drop out and batch normalization are used between every two layers.

[0014] Then, the present invention provides a cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation, which specifically includes the following steps:

[0015] Step 1: Signal acquisition: First, the real-time data of the sensor is stored in the signal database according to the set sampling frequency;

[0016] Step 2, signal processing: extract data from the signal database and perform fast Fourier transform, convert the signal from the time domain to the frequency domain for representation and then input it into the fault diagnosis module;

[0017] Step 3, fault diagnosis: Use the input frequency domain data to pre-train the feature generator and two classifiers, select the SGD optimization algorithm for training to extract source domain features and correctly classify source domain samples; then perform two alignment subtasks:

[0018] (1) Performing sub-task domain-level alignment, where a domain discriminator is trained to distinguish whether the extracted features are from the source domain or the target domain, and a feature generator is trained to match the distribution between the source and target domains and fool the discriminator into not being able to distinguish the source of the features;

[0019] (2) Perform subtask class-level alignment, where the two classifiers are trained using the target domain data to maximize the classification difference between the two classifiers, train the feature generator so that the generated features are similar in the output results of the two classifiers, measure the output results of the two classifiers using the earthmover distance, and use the metric loss to pull the embedding of the target domain data to the nearest cluster center;

[0020] Step 4, fault output: Input the target domain data into the trained fault diagnosis module and take the average classification result of the two classifiers as the final target domain fault diagnosis result.

[0021] Furthermore, when training the fault diagnosis module, the feature generator and the two classifiers are trained on the source data set using the following triple loss function:

[0022]

[0023] Among them, a k is a randomly sampled embedding anchor, p k is with a k Anchors with the same label, and n k is with a k Anchors with different labels, f θis the combination of feature generator and classifier, θ is all the parameters to be optimized in feature generator and classifier; minimize the label of formula (1) so that a k The embedding is closer to p k Instead of n k , the boundary value is b, if the overall result is less than the boundary value b, the loss will be zero; by optimizing the triplet loss, features with the same label are clustered, and features with different labels are away from each other.

[0024] Furthermore, when performing domain-level alignment, the loss function formula of the game is:

[0025]

[0026] Among them, M s is the source domain representation mapping, M t is the target domain representation mapping, X s is the source domain data set, X t is the target domain data set, D(M s (x s ))、D(M t (x t )) is the output of the domain discriminator, are the expected values ​​of the discrimination results for the source domain and the target domain, respectively.

[0027] Furthermore, when performing class-level alignment, the loss function formula of the game is:

[0028]

[0029] where p1(y|x t ) and p1(y|x t ) are the prediction result distributions of classifiers C1 and C2 respectively, is the expected value of the distance of the target domain sample, dis(·) represents the bulldozer distance, and the formula is as follows:

[0030]

[0031] Where Π(p1, p2) is the set of all possible joint distributions of a certain distribution p1 and a certain distribution p2. For each possible joint distribution γ, we can sample (x, y)~γ to obtain a real sample x and a generated sample y, and calculate the distance between the two samples ||xy||. Therefore, we can calculate the expected value E of the distance between the two samples under the joint distribution γ. (x,y)~γ [||xy||]; the lower bound that this expected value can take among all possible joint distributions Defined as the earth mover distance.

[0032] Furthermore, the following metric loss is added when optimizing the target domain feature generation, and the metric loss is minimized to t The embedding of is pulled to the nearest cluster center, and the loss function formula is:

[0033]

[0034] Among them, x t ~X t represents the target domain data set, p1(y|x t ) and p2(y|x t ) are the prediction result distributions of classifiers C1 and C2, Center k is the cluster center of fault type k.

[0035] Compared with the prior art, the present invention has the following advantages:

[0036] (1) The distribution alignment at the domain level and class level is fully considered. The present invention performs two minimax games by three participants: a feature extractor, a domain discriminator, and a difference discriminator composed of two classifiers. In the first game, the feature extractor is trained to deceive the domain discriminator, and the domain discriminator performs domain-level distribution alignment by minimizing the domain prediction loss; in the second game, the feature extractor is trained to deceive the difference discriminator, and the difference discriminator detects ambiguous target samples by maximizing the output difference of the two label predictors, thereby performing class-level alignment. A more comprehensive domain distribution alignment is achieved, which improves the accuracy of cross-domain fault diagnosis.

[0037] (2) The non-parametric nature of this method is fully utilized. The non-parametric loss function triplet loss used in this method is trained on the source data set; when optimizing the target domain feature generation, a metric loss is added based on the scattered distribution characteristics of the target domain data, which can regularize the embedding of the target domain data and promote the target domain data to form clusters to complete the domain adaptation task. It does not implicitly make parameter assumptions on the input distribution. It trains the network by minimizing the distance between each target example embedding and its nearest cluster center corresponding to the source embedding, thereby improving the regularity of the target domain feature embedding, thereby improving the accuracy of feature extraction and the clarity of fault information classification. This solves the problem that the existing technology may implicitly make parameter assumptions on the input distribution when performing feature migration. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0039] Figure 1 is a network architecture diagram of the present invention;

[0040] Figure 2 It is a schematic diagram of the flow chart of the cross-domain fault diagnosis method of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0042] Example 1

[0043] Combination Figure 2 As shown, the cross-domain fault diagnosis system based on multi-task adversarial discrimination domain adaptation includes a signal acquisition module, a signal processing module, a fault diagnosis module and a fault result output module. The signal acquisition module is used to collect real-time signal data and store it in a database, and the signal processing module is used to retrieve signal data from the database and input it into the fault diagnosis module after fast Fourier transformation.

[0044] The fault diagnosis module includes a feature generator, a difference discriminator, and a domain discriminator. The feature generator includes several convolution-pooling modules, which are used to mine the feature representation of the input vibration signal from the source domain and the target domain and generate a feature map. The source domain and the target domain share the parameters of the feature generator.

[0045] The domain discriminator includes three fully connected layers, in which dropout and batch normalization are used between every two layers. The domain discriminator is used to distinguish whether the features extracted by the feature generator are from the source domain or the target domain, and align the marginal feature distributions of the two through game theory; the difference discriminator includes two classifiers, which are used to detect target samples far away from the source domain features to achieve better feature alignment; the feature generator and the domain discriminator constitute a game, the feature generator mines the feature representation of the input vibration signal from the source domain and the target domain and deceives the domain discriminator, the domain discriminator distinguishes whether the extracted features are from the source domain or the target domain, and the two are trained by minimizing the domain prediction loss. When the domain discriminator cannot determine the source of the features generated by the feature generator, domain-level distribution alignment is achieved; the feature generator and the difference discriminator constitute a game, the feature generator deceives the difference discriminator through training, so that the difference discriminator cannot distinguish the output difference of the two classifiers, and the difference discriminator detects the fuzzy target samples by maximizing the output difference of the two classifiers, thereby performing class-level alignment.

[0046] As a preferred embodiment of the present invention, the signal acquisition module includes a sensor, a sampling frequency setting, sampling data transmission and storage, wherein in the sampling frequency setting, if the highest frequency of the bearing vibration signal is f, the sampling frequency is 2f; in the sampling data transmission and storage, the sensor transmits real-time signal data to the database at the set sampling frequency; the signal processing module includes sampling data reading, fast Fourier transform, and data input, and this module is used to retrieve signal data from the database and input the signal data into the fault diagnosis module after fast Fourier transform.

[0047] As a preferred embodiment of the present invention, the fault result output module includes a fault signal waveform display and a fault type output, and is used to highlight the waveform of the fault signal and output the fault type of the waveform.

[0048] It should be noted that the training of the model / module of this system is introduced in detail in Example 2. It mainly uses the bulldozer distance to measure the difference in the prediction results of the two classifiers, which can naturally measure the distance between discrete distribution and continuous distribution, and takes into account the basic geometric characteristics of the probability space; the training of the feature generator and the two classifiers also uses the triplet loss to train on the source data set, and adds the central magnet loss when optimizing the target domain feature generation; when performing domain-level alignment, the domain discriminator and the feature generator constitute a minimax game, and when performing class-level alignment, the feature generator and the difference discriminator constitute a game, and the loss optimization through the game will not be repeated here.

[0049] Example 2

[0050] Combination Figure 2 As shown, the cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation specifically includes the following steps:

[0051] Step 1: Signal acquisition: First, the real-time data of the sensor is stored in the signal database according to the set sampling frequency;

[0052] Step 2, signal processing: extract data from the signal database and perform fast Fourier transform, convert the signal from the time domain to the frequency domain for representation and then input it into the fault diagnosis module;

[0053] Step 3, fault diagnosis: Use the input frequency domain data to pre-train the feature generator and two classifiers, select the SGD optimization algorithm for training to extract source domain features and correctly classify source domain samples; then perform two alignment subtasks:

[0054] (1) Performing sub-task domain-level alignment, where a domain discriminator is trained to distinguish whether the extracted features are from the source domain or the target domain, and a feature generator is trained to match the distribution between the source and target domains and fool the discriminator into not being able to distinguish the source of the features;

[0055] (2) Perform subtask class-level alignment, where the two classifiers are trained using the target domain data to maximize the classification difference between the two classifiers, train the feature generator so that the generated features are similar in the output results of the two classifiers, measure the output results of the two classifiers using the earthmover distance, and use the metric loss to pull the embedding of the target domain data to the nearest cluster center;

[0056] Step 4, fault output: Input the target domain data into the trained fault diagnosis module and take the average classification result of the two classifiers as the final target domain fault diagnosis result.

[0057] Loss function:

[0058] First, the feature generator and two classifiers are trained on the source dataset with the following triplet loss function:

[0059]

[0060] Among them, a k is a randomly sampled embedding anchor, p k is with a k anchors with the same label, and n k is with a k Anchors with different labels, f θ is the combination of feature generator and classifier, θ is all the parameters to be optimized in feature generator and classifier; minimize the label of formula (1) so that a k The embedding is closer to p k Instead of n k , the boundary value is b, if the overall result is less than the boundary value b, the loss will be zero.

[0061] Optimizing the triplet loss will cause features with the same label to be clustered, and features with different labels to be far away from each other. Therefore, features with the same label form a single cluster, which helps us to classify bearing faults effectively.

[0062] Then, when performing domain-level alignment, the domain discriminator and feature generator form a minimax game, and the loss function formula of the game is:

[0063]

[0064] Among them, M s is the source domain representation mapping, M t is the target domain representation mapping, X s is the source domain data set, X t is the target domain data set, D(M s (x s ))、D(Mt (x t )) is the output of the domain discriminator, are the expected values ​​of the discrimination results for the source domain and the target domain, respectively.

[0065] When performing class-level alignment, the dual classifiers C1 and C2 are trained as discriminators in the second minimax game to maximize the difference using the target domain data. In addition, based on this operation, the two classifiers can avoid being very similar. The feature generator is then trained to deceive the discriminator, that is, by minimizing the output difference between the two classifiers, the generation of target domain features is optimized. This allows the source domain and the target domain to be aligned while also taking into account the discriminative information. The loss function formula of the game is:

[0066]

[0067] Among them, p1(y|x t ) and p2(y|x t ) are the prediction result distributions of classifiers C1 and C2 respectively, is the expected value of the distance of the target domain samples, and dis(·) represents the earthmoving machine distance.

[0068] The present invention uses the bulldozer distance to measure the difference between the prediction results of two classifiers, which can naturally measure the distance between discrete distribution and continuous distribution, and takes into account the basic geometric characteristics of probability space. The bulldozer distance formula is as follows:

[0069]

[0070] Among them, Π(p1, p2) is the set of all possible joint distributions of a certain distribution p1 and a certain distribution p2. For each possible joint distribution γ, we can sample (x, y)~γ from it to obtain a real sample x and a generated sample y, and calculate the distance between the two samples ||xy||, so we can calculate the expected value E of the distance between the two samples under the joint distribution γ. (x,y)~γ [||xy||]; the lower bound that this expected value can take among all possible joint distributions Defined as the earth mover distance.

[0071] Finally, a metric loss is added when optimizing the target domain feature generation, and the metric loss is minimized to t The embedding of is pulled to the nearest cluster center, and the cluster center is obtained by taking the Euclidean average of all samples belonging to this category. The loss function formula is:

[0072]

[0073] Among them, x t ~X trepresents the target domain data set, p1(y|x t ) and p2(y|x t ) are the prediction result distributions of classifiers C1 and C2, Center k is the cluster center of fault type k.

[0074] It should be noted that the cross-domain recommendation method of this embodiment can be directly performed based on the cross-domain recommendation system described in Embodiment 1, and the introduction of the system will not be repeated here.

[0075] Example 3

[0076] This embodiment uses the aforementioned fault diagnosis method to perform bearing fault diagnosis. The data used in this example comes from the public bearing experimental data of Case Western Reserve University in the United States. The data set contains 4 health conditions, namely normal (N), inner ring fault (IRF), outer ring fault (ORF) and roller fault (RF). At the same time, each type of fault contains different degrees of damage, which are 0.007, 0.014 and 0.021 inches respectively. Therefore, 10 health status categories under four different working conditions can be obtained, including 0 horsepower / 1797 rpm (C0), 1 horsepower / 1772 rpm (C1), 2 horsepower / 1750 rpm (C2) and 3 horsepower / 1730 rpm (C3). The data used in this embodiment includes normal operating state data, three outer ring fault data, three inner ring fault data and three rolling element fault data, a total of ten state operation data. The experimental sample information is shown in Table 1. The sampling frequency is 12KHz. The number of samples of each type of data is 100, and each sample has 1024 data points, for a total of 1000 samples. After all samples are preprocessed and transformed by the signal processing module, 700 samples are randomly selected as training data, and the remaining 300 samples are used as test data.

[0077] Table 1 Experimental sample information

[0078]

[0079] In order to better study the effectiveness of the network used in the present invention, this embodiment inputs the processed data into the fault diagnosis system, and evaluates the performance of different migration methods according to the accuracy of the output diagnosis results, including the basic convolutional network (CNN) without migration method, the conditional adversarial domain adaptation method (CDAN), the deep correlation alignment method (DCORAL), the deep domain confusion method (DDC), the adaptive batch normalization method (AdaBN) and the joint adaptation method (JAN).

[0080] Table 2 shows the accuracy and standard deviation of several methods in each diagnosis case. The average diagnostic accuracy of the transfer method reached more than 90%, and this method achieved the best average result, with an overall average accuracy of 97.66%, indicating that this method has good generalization diagnostic ability under changing working conditions. Moreover, this method has the smallest standard deviation in multiple experiments and is more stable than other methods.

[0081] Table 2 Experimental comparison

[0082]

[0083] In summary, when performing domain alignment in cross-domain fault diagnosis, the present invention models two sets of minimax games, executes two subtasks of domain alignment and class alignment, and improves the comprehensiveness of domain representation alignment.

[0084] When optimizing the target domain feature embedding, a non-parametric architecture based on triplet loss and central magnet loss is used to improve the regularity of the target domain feature embedding.

[0085] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should fall within the protection scope of the present invention.

Claims

1. A cross-domain fault diagnosis system based on multi-task adversarial discrimination domain adaptation, characterized by: It includes a signal acquisition module, a signal processing module, a fault diagnosis module and a fault result output module; the signal acquisition module is used to collect real-time signal data and store it in a database, the signal processing module is used to retrieve signal data from the database and input it into the fault diagnosis module after fast Fourier transformation; the fault diagnosis module includes a feature generator, a difference identifier, and a domain identifier. The feature generator is used to mine the feature representation of the input signal from the source domain and the target domain and generate a feature map, and the source domain and the target domain share the parameters of the feature generator; the domain discriminator is used to distinguish whether the features extracted by the feature generator are from the source domain or the target domain, and align the marginal feature distributions of the two through game theory; the difference discriminator includes two classifiers, which are used to detect target samples far away from the source domain features to achieve feature alignment; The feature generator and the domain discriminator form a game. The feature generator mines the feature representation of the input signal from the source domain and the target domain and deceives the domain discriminator. The domain discriminator distinguishes whether the extracted features are from the source domain or the target domain. The two are trained by minimizing the domain prediction loss. When the domain discriminator cannot determine the source of the features generated by the feature generator, domain-level distribution alignment is achieved; the feature generator and the difference discriminator form a game. The feature generator deceives the difference discriminator through training, so that the difference discriminator cannot distinguish the output difference of the two classifiers. The difference discriminator detects the fuzzy target sample by maximizing the output difference of the two classifiers, thereby performing class-level alignment; The signal acquisition module includes a sensor, sampling frequency setting, sampling data transmission and storage, wherein in the sampling frequency setting, if the highest frequency of the bearing vibration signal is f, the sampling frequency is 2f; in the sampling data transmission and storage, the sensor transmits real-time signal data to the database at the set sampling frequency; the signal processing module includes sampling data reading, fast Fourier transform, and data input. This module is used to retrieve signal data from the database and input it into the fault diagnosis module after fast Fourier transform.

2. The cross-domain fault diagnosis system based on multi-task adversarial discrimination domain adaptation according to claim 1 is characterized in that: The fault result output module includes a fault signal waveform display and a fault type output, and is used to highlight the waveform of the fault signal and output the fault type of the waveform.

3. The cross-domain fault diagnosis system based on multi-task adversarial discrimination domain adaptation according to claim 1 is characterized in that: The feature generator includes several convolution-pooling modules; the domain discriminator includes three fully connected layers, in which drop out and batch normalization are used between every two layers.

4. A cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation, characterized in that: The specific steps include: Step 1: Signal acquisition: First, the real-time data of the sensor is stored in the signal database according to the set sampling frequency; Step 2, signal processing: extract data from the signal database and perform fast Fourier transform, convert the signal from the time domain to the frequency domain for representation and then input it into the fault diagnosis module; Step 3, fault diagnosis: Use the input frequency domain data to pre-train the feature generator and two classifiers, select the SGD optimization algorithm for training to extract source domain features and correctly classify source domain samples; then perform two alignment subtasks: (1) Performing sub-task domain-level alignment, where a domain discriminator is trained to distinguish whether the extracted features are from the source domain or the target domain, and a feature generator is trained to match the distribution between the source and target domains and fool the discriminator into not being able to distinguish the source of the features; (2) Perform subtask class-level alignment, where the two classifiers are trained using the target domain data to maximize the classification difference between the two classifiers, train the feature generator so that the generated features are similar in the output results of the two classifiers, measure the output results of the two classifiers using the earthmover distance, and use the metric loss to pull the embedding of the target domain data to the nearest cluster center; Step 4, fault output: Input the target domain data into the trained fault diagnosis module and take the average classification result of the two classifiers as the final target domain fault diagnosis result.

5. The cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation according to claim 4 is characterized in that: When training the fault diagnosis module, the feature generator and the two classifiers are trained on the source dataset using the following triplet loss function: Among them, a k is a randomly sampled embedding anchor, p k is with a k anchors with the same label, and n k is with a k Anchors with different labels, f θ is the combination of feature generator and classifier, θ is all the parameters to be optimized in feature generator and classifier; minimize the label of formula (1) so that a k The embedding is closer to p k Instead of n k , the boundary value is b, if the overall result is less than the boundary value b, the loss will be zero; by optimizing the triplet loss, features with the same label are clustered, and features with different labels are away from each other.

6. The cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation according to claim 4 is characterized in that: When performing domain-level alignment, the loss function formula of the game is: Among them, M s is the source domain representation mapping, M t is the target domain representation mapping, X s is the source domain data set, X t is the target domain data set, D(M s (x s ))、D(M t (x t )) is the output of the domain discriminator, are the expected values ​​of the discrimination results for the source domain and the target domain, respectively.

7. The cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation according to claim 4 is characterized in that: When performing class-level alignment, the loss function formula of the game is: where p1(y|x t ) and p2(y|x t ) are the prediction result distributions of classifiers C1 and C2, dis(·) represents the bulldozer distance, X t is the target domain data set, is the expected value of the distance between target domain samples.

8. The cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation according to claim 7 is characterized in that: The bulldozer distance formula is as follows: where p1(y|x t ) is the prediction result distribution of classifier C1, p2(y|x t ) is the prediction result distribution of classifier C2, Π(p1,p2) is the set of all possible joint distributions of a certain distribution p1 and a certain distribution p2. For each possible joint distribution γ, we can sample (x,y)~γ to get a real sample x and a generated sample y, and calculate the distance between the two samples ∥xy∥, and calculate the expected value E of the distance between the two samples under the joint distribution γ. (x,y)~γ [∥xy∥]; the lower bound that this expected value can take in all possible joint distributions Defined as the bulldozer distance.

9. The cross-domain fault diagnosis method based on multi-task adversarial discrimination domain adaptation according to claim 4 is characterized in that: When optimizing the target domain feature generation, a metric loss is added to minimize the metric loss. t The embedding of is pulled to the nearest cluster center, and the loss function formula is: Among them, x t ~X t represents the target domain data set, p1(y|x t ) and p2(y|x t ) are the prediction result distributions of classifiers C1 and C2, Center k is the cluster center of fault type k.

Citation Information

Patent Citations

  • Intelligent fault diagnosis method based on deep adversarial domain self-adaption

    CN111898634A

  • Semi-supervised mechanical fault diagnosis method based on adaptive migration neural network

    CN112183581A

Cited By

  • Cross-domain generalized zero sample industrial fault diagnosis method based on two-step discrimination strategy

    CN119989154A