Unsupervised domain adaptive fault diagnosis method and system for rotating machinery

Feature extraction and fusion of time domain and frequency domain signals of rotating machinery are carried out through deep learning network and contrastive learning network, and domain adaptation and category alignment are performed to solve the problem of incomplete fault feature information extraction and insufficient utilization of category information in rotating machinery fault diagnosis. problems, improving the accuracy and efficiency of fault diagnosis.

CN118708931APending Publication Date: 2024-09-27XIAN UNIV OF POSTS & TELECOMM

Patent Information

Application Number
CN202410740301.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing unsupervised domain adaptive fault diagnosis methods suffer from incomplete fault feature information extraction and insufficient utilization of sample category information in fault diagnosis of rotating machinery under variable operating conditions, resulting in limited applicability and low accuracy of the model in practical applications.

Method used

A deep learning network combined with a contrastive learning network is used to extract and fuse features of the time domain and frequency domain vibration signals of rotating machinery, and domain adaptation is performed through domain adaptation methods and contrastive learning methods. Category information is used for domain alignment to build a high-precision Fault diagnosis model.

Benefits of technology

By fusing time domain and frequency domain information, the domain-invariant feature extraction capability of the fault diagnosis model is improved, category alignment between domains is achieved, the accuracy and efficiency of fault diagnosis are improved, and it is suitable for fault diagnosis in cross-domain scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708931A
    Figure CN118708931A
Patent Text Reader

Abstract

The invention belongs to the technical field of mechanical fault diagnosis, and discloses a rotary machine unsupervised domain adaptive fault diagnosis method and system, and the method comprises the steps: firstly collecting rotary machine vibration signals under different working conditions as a source domain and a target domain; preprocessing data of the source domain and the target domain to construct a sample set; secondly, performing time domain and frequency domain feature extraction and fusion on source domain and target domain samples through a deep learning network in combination with a comparative learning network; and finally, performing domain adaptation between the source domain and the target domain by using a domain adaptation method and a comparative learning method. According to the training fault diagnosis model, a test sample is input into the trained model to obtain a fault diagnosis result. According to the method, the time domain information representation and the frequency domain information representation of the rotating mechanical vibration signals are fused, deep-level features are extracted through a time-frequency consistency contrast learning method, the difference between representation based on the time domain and representation based on the frequency domain is effectively reduced, feature fusion is carried out, and the domain invariant feature extraction capacity of a fault diagnosis model is improved.
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 fault diagnosis, and in particular relates to an unsupervised domain adaptive fault diagnosis method and system for rotating machinery. Background Art

[0002] As one of the key components of mechanical equipment, rotating machinery such as rolling bearings and gearboxes plays an important role in ensuring the normal operation of the equipment. Once a mechanical equipment fails, it will not only cause huge economic losses, but also threaten personal safety and cause serious safety accidents. Therefore, effective status monitoring and fault diagnosis are of great significance to avoid economic losses and safety accidents.

[0003] At present, intelligent fault diagnosis methods based on traditional machine learning and deep learning have been widely used in the field of rotating machinery fault diagnosis. However, in actual industrial scenarios, the operating speed and load of running equipment usually change, and the collected monitoring data cannot meet the same distribution conditions. In addition, in most cases, the equipment is in a healthy operating state, fault data is difficult to obtain, and it is very difficult to obtain enough labeled samples. Intelligent fault diagnosis methods based on traditional machine learning and deep learning are limited in the above scenarios.

[0004] In order to solve the problems of missing labeled samples and changing working conditions in machine learning and deep learning diagnosis methods, unsupervised domain adaptation methods have been introduced in the field of fault diagnosis. Unsupervised domain adaptation methods transfer knowledge learned from the source domain to the target domain by adjusting the data distribution, thereby helping the target domain to solve problems quickly and accurately. For example, Chen Kai et al. proposed a rolling bearing fault diagnosis method based on unsupervised adversarial domain adaptation in their paper "Rolling bearing fault diagnosis based on deep feature extraction and adversarial domain adaptation network" (Manufacturing Technology and Machine Tools, 2023, (01): 9-15). The steps of this method are: first, use a feature extraction network composed of a convolutional neural network and a long short-term memory network to extract features from the original time domain vibration signal; then use an adversarial domain adaptation network to realize knowledge transfer between the source domain and the target domain, solving the problem of insufficient cross-domain diagnosis capabilities under variable working conditions.

[0005] Although the current unsupervised domain adaptation methods have achieved good results in the field of variable operating condition fault diagnosis of rotating machinery, the existing methods still have some shortcomings: on the one hand, they only analyze from a single time domain or frequency domain, and do not fully utilize the fault information of the vibration signal. For fault diagnosis, the time domain information and frequency domain information of the vibration signal have their unique advantages; on the other hand, they only realize the knowledge transfer between the source domain and the target domain through the edge distribution alignment method, do not utilize the category information of the data, ignore the distinguishability of the features, and limit the improvement of the accuracy of the unsupervised domain adaptation fault diagnosis method.

[0006] Through the above analysis, the problems and defects of the existing technology are as follows: In actual industrial scenarios, the operating speed and load of the running equipment usually change, and the collected monitoring data cannot meet the same distribution conditions. In addition, in most cases, the equipment is in a healthy operating state, fault data is difficult to obtain, and it is very difficult to obtain enough labeled samples. At present, most unsupervised domain adaptation fault diagnosis methods only analyze from a single time domain or frequency domain, and do not fully utilize the fault information of the vibration signal; on the other hand, they only realize the knowledge transfer between the source domain and the target domain through the edge distribution alignment method, without utilizing the category information of the data, ignoring the distinguishability of the features, and limiting the improvement of the accuracy of the unsupervised domain adaptation fault diagnosis method. Summary of the invention

[0007] In view of the problems existing in the prior art, the present invention provides a method and system for unsupervised domain adaptive fault diagnosis of rotating machinery, which is used to solve the problems of incomplete extraction of fault feature information and ignoring sample category information in the fault diagnosis of rotating machinery under variable operating conditions, resulting in limited applicability and low accuracy of the model in practical applications.

[0008] The present invention is implemented as follows: a method for unsupervised domain adaptation fault diagnosis of rotating machinery, firstly, collecting vibration signals of rotating machinery under different working conditions as source domain and target domain; then preprocessing the source domain and target domain data to construct a sample set; secondly, extracting and fusing time domain and frequency domain features of source domain and target domain samples through a deep learning network combined with a contrastive learning network; finally, domain adaptation between the source domain and the target domain is performed using a domain adaptation method and a contrastive learning method; in summary, a fault diagnosis model is trained, and a test sample is input into the trained model to obtain a fault diagnosis result.

[0009] Furthermore, the rotating machinery unsupervised domain adaptive fault diagnosis method specifically comprises the following steps:

[0010] (1) Data collection: Collecting vibration signal data of rotating machinery under different working conditions, where the vibration signal data includes normal operating state data and fault operating state data of rotating machinery;

[0011] (2) Data preprocessing: The data sets under different working conditions are used as the source domain and the target domain respectively, where the source domain data has a health status label, and the target domain data has no health status label. The vibration signal data collected in the source domain and the target domain are intercepted by sliding windows to construct a time domain sample data set; the source domain and target domain time domain sample data sets are fast Fourier transformed to obtain the frequency domain data set; the source domain time domain and frequency domain sample data sets are used as the modeling training set, and the target domain time domain and frequency domain sample data sets are divided into the modeling training set and the test set in proportion;

[0012] (3) Feature extraction: After data enhancement, the source domain time domain and frequency domain modeling training sets and the target domain time domain and frequency domain modeling training sets are input into the deep learning feature extraction network based on the contrastive learning framework to extract time domain features and frequency domain features at the same time; the extracted time domain features and frequency domain features are spliced ​​and fused;

[0013] (4) Domain adaptation: The fusion features extracted from the source domain and the target domain are adapted through domain adaptation and contrastive learning methods to reduce the distribution differences between domains and achieve the purpose of knowledge transfer between domains.

[0014] (5) Model training: The fault diagnosis model is trained through the above steps until the model converges and the training is completed;

[0015] (6) Fault diagnosis: Input the target domain test set into the trained model to obtain the fault diagnosis results of the test samples.

[0016] Furthermore, S4 also includes: utilizing the category information between source domain and target domain samples in combination with supervised contrast loss to perform category alignment between domains.

[0017] Furthermore, model training in S5 includes:

[0018] The established fault diagnosis network model is iteratively trained, and the training optimization objectives are the source domain time-frequency consistency loss, the target domain time-frequency consistency loss, and the source domain classification loss L C , domain adversarial loss L D And the supervised contrast loss L SUP until the model converges and the training is completed; the source domain time-frequency consistency loss is composed of the source domain time-domain contrast loss L T-S , frequency domain contrast loss L F-S , time-frequency domain joint contrast loss L TF-S The target domain time-frequency consistency loss is composed of the target domain time-domain contrast loss L T-T , frequency domain contrast loss L F-T , time-frequency domain joint contrast loss L TF-T In order to prevent the loss of time-frequency consistency from affecting the ability to extract domain-invariant features, the adaptive factor α is used to measure the importance between the two, and the overall optimization goal is calculated by the following formula:

[0019] L=L C +(1-α)·[λ(L T-S +L F-S +L T-T +L F-T )+μ(L TF-S +L TF-T )]+α·(ηL SUP +γL D )

[0020] α=(L SUP +L D ) / (L T-S +L F-S +L T-T +L F-T +L TF-S +L TF-T +L SUP +L D )

[0021] Among them, λ, μ, η, and γ are balancing factors, which are used to adjust the weights of each loss ratio.

[0022] Furthermore, the contrast loss is calculated by the normalized temperature-scaled cross entropy loss (NT-Xent Loss, NormalizedTemperature-scaled Cross Entropy), and the formula is:

[0023]

[0024] Where N is the batch size, 1 [k≠i] ∈{0,1} is the indicator function, which is 1 when k≠i, and τ is the temperature parameter;

[0025] The source domain classification loss is calculated by the cross entropy loss, and the formula is:

[0026]

[0027] In the formula, n is the total number of source domain samples, C is the number of categories, and y sc is a symbolic function, indicating whether the true category of sample s is equal to c. If so, it is 1, otherwise it is 0. sc It represents the probability that sample s belongs to category c.

[0028] Furthermore, the domain adversarial loss is calculated by the binary cross entropy loss, and the formula is:

[0029] L D =-y b ·log(p b )-(1-y b )·log(1-p b )

[0030] In the formula, y b is the true label of the sample. If the sample is a positive example, the value is 1, otherwise it is 0. b Represents the predicted probability of the sample;

[0031] The supervised contrast loss calculation formula is:

[0032]

[0033] Where D is the batch size, z e and z f is the feature representation of the sample pair, z e ·z f is the dot product between samples, 1 [t≠n] is the indicator function, which is equal to 1 when the sample labels are different, and h is the temperature parameter.

[0034] Another object of the present invention is to provide a rotating machinery unsupervised domain adaptive fault diagnosis system for implementing the rotating machinery unsupervised domain adaptive fault diagnosis method, comprising:

[0035] Data acquisition module: collects the vibration signal data of the rotating machinery under different working conditions, wherein the vibration signal data includes the normal operation state data and the fault operation state data of the rotating machinery;

[0036] Data preprocessing module: The data sets under different working conditions are used as the source domain and target domain respectively, where the source domain data has a health status label, and the target domain data has no health status label. The vibration signal data collected in the source domain and the target domain are intercepted by sliding windows to construct a time domain sample data set; the source domain and target domain time domain sample data sets are fast Fourier transformed to obtain the frequency domain data set; the source domain time domain and frequency domain sample data sets are used as modeling training sets, and the target domain time domain and frequency domain sample data sets are divided into modeling training sets and test sets in proportion;

[0037] Feature extraction module: After data enhancement, the source domain time domain and frequency domain modeling training sets and the target domain time domain and frequency domain modeling training sets are input into the deep learning feature extraction network based on the contrastive learning framework to extract time domain features and frequency domain features at the same time; the extracted time domain features and frequency domain features are spliced ​​and fused;

[0038] Domain adaptation module: Adapts the fusion features extracted from the source domain and the target domain through domain adaptation and contrastive learning methods to reduce the distribution differences between domains and achieve the purpose of knowledge transfer between domains;

[0039] Model training module: Train the fault diagnosis model through the above steps until the model converges and the training is completed;

[0040] Fault diagnosis module: Input the target domain test set into the trained model to obtain the fault diagnosis results of the test samples.

[0041] Another object of the present invention is to provide a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the unsupervised domain adaptive fault diagnosis method for rotating machinery.

[0042] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the rotating machinery unsupervised domain adaptive fault diagnosis method.

[0043] Another object of the present invention is to provide an information data processing terminal, which is used to implement the unsupervised domain adaptive fault diagnosis system for rotating machinery.

[0044] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0045] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems. The specific description is as follows:

[0046] The time domain and frequency domain information representation of the rotating machinery vibration signal are integrated, and the deep features are extracted through the time-frequency consistency contrast learning method, which effectively reduces the difference between the time domain-based representation and the frequency domain-based representation, and performs feature fusion to improve the domain-invariant feature extraction capability of the fault diagnosis model. Through the idea of ​​supervised contrast learning, similar data samples between domains are made close to each other, and dissimilar data samples are made far away from each other, so as to achieve category alignment between domains.

[0047] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:

[0048] Based on the traditional unsupervised domain adaptation method, the contrastive learning method is integrated to explore the physical consistency of the time series in the time domain and frequency domain, and at the same time, the domain adaptation is performed between the source domain and the target domain. While aligning the domain globally, the category information of the sample itself is considered to achieve domain category alignment, further improving the fault diagnosis capability of the model in cross-domain scenarios.

[0049] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:

[0050] The present invention is mainly used in the field of fault diagnosis. The proposed technical solution integrates the contrastive learning method into the traditional unsupervised domain adaptation fault diagnosis method, which can effectively improve the accuracy and efficiency of fault diagnosis. After companies and enterprises introduce this fault diagnosis system, they can effectively monitor machines, detect faults in time, reduce downtime and fault repair costs, improve production efficiency, increase revenue, and expand market share. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 is a flow chart of an unsupervised domain adaptive fault diagnosis method for rotating machinery provided by an embodiment of the present invention;

[0053] Figure 2 is a structural diagram of an unsupervised domain adaptive fault diagnosis system for rotating machinery provided by an embodiment of the present invention;

[0054] Figure 3 This is a diagram of a fault diagnosis network architecture based on time-frequency consistency contrast learning provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0056] In view of the problems existing in the prior art, the present invention provides a method and system for unsupervised domain adaptive fault diagnosis of rotating machinery. The present invention is described in detail below with reference to the accompanying drawings.

[0057] 1. Explanatory Examples In order to enable those skilled in the art to fully understand how to implement the present invention, this section provides an illustrative example that expands and describes the technical solution of the claims.

[0058] like Figure 1 As shown, the rotating machinery unsupervised domain adaptive fault diagnosis method provided by the embodiment of the present invention includes:

[0059] Step 1, data collection.

[0060] The vibration signal data of the rotating machinery under different working conditions are collected, wherein the vibration signal data includes the normal operating state data and the fault operating state data of the rotating machinery.

[0061] Step 2: data preprocessing.

[0062] Step 1: Divide the data sets under different working conditions into source domain and target domain, where the source domain data has health status labels and the target domain data has no health status labels;

[0063] Step 2: The vibration signal data of the source domain and the target domain are intercepted through a sliding window to construct a time domain sample data set;

[0064] Step 3: Perform fast Fourier transform on the time domain sample data sets constructed in the source domain and the target domain to obtain the frequency domain sample data sets.

[0065] In step 4, the source domain time domain and frequency domain sample data sets are used as modeling training sets, and the target domain time domain and frequency domain sample data sets are divided into modeling training sets and test sets in proportion.

[0066] Step 3: feature extraction.

[0067] After data enhancement, the source domain time domain, frequency domain training set and the target domain time domain, frequency domain training set are input into the time-frequency consistency comparison network for time domain and frequency domain feature extraction. The time-frequency consistency comparison network consists of time domain data enhancement, frequency domain data enhancement modules; time domain encoder, frequency domain encoder modules; time domain projection head, frequency domain projection head modules, such as Figure 3 As shown in the figure, the time domain encoder and the frequency domain encoder use a deep residual contraction network as the network structure, and the time domain projection head and the frequency domain projection head use a one-dimensional convolutional neural network as the network structure. The extracted time domain features and frequency domain features are spliced ​​and fused.

[0068] Step 4: Domain adaptation.

[0069] The fused features extracted from the source domain and the target domain are distributed adapted through the domain adversarial method to reduce the global distribution differences between domains. The category information between the source domain and the target domain samples is combined with the supervised contrast loss to perform category alignment between domains.

[0070] Step 5: Model training.

[0071] The established fault diagnosis network model is iteratively trained, and the training optimization objectives are the source domain time-frequency consistency loss, the target domain time-frequency consistency loss, and the source domain classification loss L C , domain adversarial loss L D And the supervised contrast loss L SUP The source domain time-frequency consistency loss is composed of the source domain time-domain contrast loss L T-S , frequency domain contrast loss L F-S , time-frequency domain joint contrast loss L TF-S The target domain time-frequency consistency loss is composed of the target domain time-domain contrast loss L T-T , frequency domain contrast loss L F-T , time-frequency domain joint contrast loss L TF-T composition.

[0072] The contrast loss is calculated by the normalized temperature-scaled cross entropy loss (NT-Xent Loss, Normalized Temperature-scaled Cross Entropy), and the formula is:

[0073]

[0074] Where N is the batch size, 1 [k≠i] ∈{0,1} is the indicator function, which is 1 when k≠i, and τ is the temperature parameter.

[0075] The source domain classification loss is calculated by the cross entropy loss, and the formula is:

[0076]

[0077] In the formula, n is the total number of source domain samples, C is the number of categories, and y sc is a symbolic function, indicating whether the true category of sample s is equal to c. If so, it is 1, otherwise it is 0. sc It represents the probability that sample s belongs to category c.

[0078] The domain adversarial loss is calculated by the binary cross entropy loss, and the formula is:

[0079] L D =-y b ·log(p b )-(1-y b )·log(1-p b )

[0080] In the formula, y b is the true label of the sample. If the sample is a positive example, the value is 1, otherwise it is 0. b Represents the predicted probability of the sample.

[0081] The supervised contrast loss calculation formula is:

[0082]

[0083] Where D is the batch size, z e and z f is the feature representation of the sample pair, z e ·z f is the dot product between samples, 1 [t≠n] is the indicator function, which is equal to 1 when the sample labels are different, and h is the temperature parameter.

[0084] At the same time, in order to prevent the loss of time-frequency consistency from affecting the ability to extract domain-invariant features, the adaptive factor α is used to measure the importance between the two, and the overall optimization goal is calculated by the following formula:

[0085] L=L C +(1-α)·[λ(L T-S +L F-S +L T-T +L F-T )+μ(L TF-S +L TF-T )]+α·(ηL SUP +γL D )

[0086] α=(L SUP +L D ) / (L T-S +L F-S +L T-T +L F-T +L TF-S +L TF-T +L SUP +L D )

[0087] Among them, λ, μ, η, and γ are balancing factors, which are used to adjust the weights of each loss ratio.

[0088] Step 6, fault diagnosis.

[0089] The target domain test set is input into the trained fault diagnosis network model to obtain the fault diagnosis results of each sample.

[0090] like Figure 2 As shown, the rotating machinery unsupervised domain adaptive fault diagnosis system provided by the embodiment of the present invention includes:

[0091] Data acquisition module: collects the vibration signal data of the rotating machinery under different working conditions, wherein the vibration signal data includes the normal operation state data and the fault operation state data of the rotating machinery;

[0092] Data preprocessing module: The data sets under different working conditions are used as the source domain and target domain respectively, where the source domain data has a health status label, and the target domain data has no health status label. The vibration signal data collected in the source domain and the target domain are intercepted by sliding windows to construct a time domain sample data set; the source domain and target domain time domain sample data sets are fast Fourier transformed to obtain the frequency domain data set; the source domain time domain and frequency domain sample data sets are used as modeling training sets, and the target domain time domain and frequency domain sample data sets are divided into modeling training sets and test sets in proportion;

[0093] Feature extraction module: After data enhancement, the source domain time domain and frequency domain modeling training sets and the target domain time domain and frequency domain modeling training sets are input into the deep learning feature extraction network based on the contrastive learning framework to extract time domain features and frequency domain features at the same time; the extracted time domain features and frequency domain features are spliced ​​and fused;

[0094] Domain adaptation module: Adapts the fusion features extracted from the source domain and the target domain through domain adaptation and contrastive learning methods to reduce the distribution differences between domains and achieve the purpose of knowledge transfer between domains;

[0095] Model training module: Train the fault diagnosis model through the above steps until the model converges and the training is completed;

[0096] Fault diagnosis module: Input the target domain test set into the trained model to obtain the fault diagnosis results of the test samples.

[0097] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of an unsupervised domain adaptive fault diagnosis method for rotating machinery.

[0098] An application embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of an unsupervised domain adaptive fault diagnosis method for rotating machinery.

[0099] An application embodiment of the present invention provides an information data processing terminal, which is used to implement an unsupervised domain adaptive fault diagnosis system for rotating machinery.

[0100] 2. Application Examples: In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the technical solution of the claims on specific products or related technologies.

[0101] The data set used in the embodiment of the present invention is rolling bearing experimental data published by the University of Paderborn in Germany.

[0102] 1) Data collection.

[0103] The vibration signal data of rolling bearing operation under different working conditions of the test bench are collected. According to the different test bench speed, load torque and radial force, there are four working conditions: 0, 1, 2, and 3. The health status of rolling bearing includes five status categories: normal, outer ring fault damage level 1, outer ring fault damage level 2, inner ring fault damage level 1, and inner ring fault damage level 2.

[0104] 2) Data preprocessing, including the following steps:

[0105] 2.1) Divide the different working condition data sets into source domain and target domain, where the source domain data has health status labels and the target domain data has no health status labels. One working condition is fixed as the source domain and the other three working conditions are the target domains.

[0106] 2.2) The original vibration signal data of the source domain and the target domain are intercepted by a sliding window. The window length is set to 1024, and the windows are non-overlapping. 250 samples are obtained for different rolling bearing state categories under each single working condition.

[0107] 2.3) Perform fast Fourier transform on the samples obtained in the source domain and target domain to obtain their frequency domain samples.

[0108] 2.4) The time domain samples and frequency domain samples obtained in the source domain are used as the training set of the fault diagnosis network model; the time domain samples and frequency domain samples obtained in the target domain are divided into the training set and test set of the fault diagnosis network model in a 1:1 ratio.

[0109] 3) Feature extraction.

[0110] 3.1) First, the contrastive learning method based on negative examples is used to enhance the time domain training set and frequency domain training set of the source domain and the target domain. The contrastive learning method based on negative examples includes two parts: strong enhancement and weak enhancement. In the present invention, the strong enhancement is kept as the original sample, and the weak enhancement is to randomly select a data enhancement method for each data sample. The time domain data enhancement methods include jitter, scaling, time shift and masking; the frequency domain data enhancement methods include adding and removing frequency components.

[0111] 3.2) The strongly enhanced samples in the time domain and frequency domain as well as the weakly enhanced samples in the time domain and frequency domain of the source domain and the target domain are respectively input into the deep residual shrinkage network with the same structure for feature extraction.

[0112] 3.3) The time domain and frequency domain feature input heads composed of one-dimensional convolutional neural networks with consistent structure are used to perform low-dimensional spatial mapping on the source domain and target domain extracted by the residual shrinkage network.

[0113] 3.4) Concatenate and fuse the time domain and frequency domain features extracted by the deep residual shrinkage network into the source domain and the target domain respectively.

[0114] 4) Domain adaptation.

[0115] 4.1) The fused features extracted from the source domain and the target domain are input into the domain adversarial network to optimize the deep residual shrinkage feature extraction network for domain invariant feature extraction, and train the source domain classifier for target domain sample fault diagnosis. The domain adversarial network consists of a domain feature extractor composed of a one-dimensional convolutional neural network and a domain classifier.

[0116] 4.2) Pseudo-label the target domain training samples through the source domain classifier, and calculate the supervised contrast loss between the time-frequency fusion features extracted from the source domain and the target domain to narrow the distance between the samples with the same label in the source domain and the target domain, and perform category alignment between the domains.

[0117] 5) Model training.

[0118] 5.1) After the above steps, the fault diagnosis network model is iteratively trained, and the overall structure of the model is as follows: Figure 3 As shown, the training is completed until the model converges.

[0119] 5.2) The training optimization objective is composed of the source domain time-frequency consistency loss, the target domain time-frequency consistency loss, and the source domain classification loss L C , domain adversarial loss L D And the supervised contrast loss L SUP The source domain time-frequency consistency loss includes the source domain time-domain contrast loss L T-S , frequency domain contrast loss L F-S , time-frequency joint contrast loss L TF-S ; The target domain time-frequency consistency loss includes the target domain time-domain contrast loss L T-T , frequency domain contrast loss L F-T , time-frequency joint contrast loss L TF-T .

[0120] The contrast loss is calculated by the normalized temperature-scaled cross entropy loss (NT-Xent Loss, Normalized Temperature-scaled Cross Entropy), and the formula is:

[0121]

[0122] Where N is the batch size, 1 [k≠i] ∈{0,1} is the indicator function, which is 1 when k≠i, τ is the temperature parameter, and sim(u,v) is the cosine similarity between sample pairs.

[0123] The source domain classification loss is calculated by the cross entropy loss, and the formula is:

[0124]

[0125] In the formula, n is the total number of source domain samples, C is the number of categories, and y sc is a symbolic function, indicating whether the true category of sample s is equal to c. If so, it is 1, otherwise it is 0. sc It represents the probability that sample s belongs to category c.

[0126] The domain adversarial loss is calculated by the binary cross entropy loss, and the formula is:

[0127] L D =-y b ·log(p b )-(1-y b )·log(1-p b )

[0128] In the formula, y b is the true label of the sample. If the sample is a positive example, the value is 1, otherwise it is 0. b Represents the predicted probability of the sample.

[0129] The supervised contrast loss calculation formula is:

[0130]

[0131] Where D is the batch size, z e and z f is the feature representation of the sample pair, z e ·z f is the dot product between samples, 1 [t≠n] is the indicator function, which is equal to 1 when the sample labels are different, and h is the temperature parameter.

[0132] At the same time, in order to prevent the loss of time-frequency consistency from affecting the ability to extract domain-invariant features, the adaptive factor α is used to measure the importance between the two, and the overall optimization goal is calculated by the following formula:

[0133] L=L C +(1-α)·[λ(L T-S +L F-S +L T-T +L F-T )+μ(L TF-S +L TF-T )]+α·(ηL SUP +γL D )

[0134] α=(L SUP +L D ) / (L T-S +L F-S +L T-T +L F-T +L TF-S +L TF-T +L SUP +L D )

[0135] Among them, λ, μ, η, and γ are balancing factors, and the median values ​​of the present invention are set to 0.2, 0.8, 0.2, and 1, respectively, to adjust the weight of each loss proportion.

[0136] 5.3) Model training parameters: The training batch size is 64, and Stochastic Gradient Descent (SGD) is selected as the model optimizer. In order to prevent overfitting, an L2 regularization term is added to the model optimizer. The initial momentum is set to 0.9, and a dynamic learning rate mechanism with periodic decay is adopted. The initial learning rate is set to 0.001, the number of iterations is 100, the temperature parameter τ in the contrast loss is set to 0.2, and the temperature parameter τ in the supervised contrast loss is set to 0.2.

[0137] 6) Fault diagnosis.

[0138] The target domain test set is input into the trained fault diagnosis network model to obtain the fault diagnosis results under each working condition migration task.

[0139] 3. Evidence of the effects of the embodiments. The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with the data, charts, etc. of the test process.

[0140] In order to verify the superiority of the method proposed in the present invention, it is compared with three mainstream transfer learning models (DACL, DSAN, and DANN). The results are shown in Table 1 (the values ​​in the table are the means of the results of three experiments). It can be seen from the results that the model proposed in the present invention has achieved the highest diagnostic accuracy in all transfer tasks.

[0141] Table 1 Comparison of the effects of different transfer learning models

[0142]

[0143] In addition, the method of the present invention is compared with the method based on time domain input alone and frequency domain input alone. The results are shown in Table 2. It can be seen that the method based on time-frequency input can further improve the fault diagnosis accuracy compared with single time domain or frequency domain input, which verifies the superiority of the method proposed in the present invention.

[0144] Table 2 Comparison of prediction effects of models under different input conditions

[0145]

[0146] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0147] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A rotating machinery unsupervised domain adaptive fault diagnosis method, characterized in that: Firstly, the vibration signals of rotating machinery under different working conditions are collected as the source domain and target domain; then the source domain and target domain data are preprocessed to construct a sample set; secondly, the time domain and frequency domain features of the source domain and target domain samples are extracted and fused through a deep learning network combined with a contrastive learning network; finally, domain adaptation between the source domain and the target domain is performed using domain adaptation methods and contrastive learning methods; In summary, the fault diagnosis model is trained, and the test samples are input into the trained model to obtain the fault diagnosis results.

2. The unsupervised domain adaptive fault diagnosis method for rotating machinery according to claim 1, characterized in that: The rotating machinery unsupervised domain adaptive fault diagnosis method specifically comprises the following steps: (1) Data collection: Collecting vibration signal data of rotating machinery under different working conditions, where the vibration signal data includes normal operating state data and fault operating state data of rotating machinery; (2) Data preprocessing: The data sets under different working conditions are used as the source domain and the target domain respectively, where the source domain data has a health status label, and the target domain data has no health status label. The vibration signal data collected in the source domain and the target domain are intercepted by sliding windows to construct a time domain sample data set; the source domain and target domain time domain sample data sets are fast Fourier transformed to obtain the frequency domain data set; the source domain time domain and frequency domain sample data sets are used as the modeling training set, and the target domain time domain and frequency domain sample data sets are divided into the modeling training set and the test set in proportion; (3) Feature extraction: After data enhancement, the source domain time domain and frequency domain modeling training sets and the target domain time domain and frequency domain modeling training sets are input into the deep learning feature extraction network based on the contrastive learning framework to simultaneously extract time domain features and frequency domain features; Splice and fuse the extracted time domain features and frequency domain features; (4) Domain adaptation: The fusion features extracted from the source domain and the target domain are adapted through domain adaptation and contrastive learning methods to reduce the distribution differences between domains and achieve the purpose of knowledge transfer between domains. (5) Model training: The fault diagnosis model is trained through the above steps until the model converges and the training is completed; (6) Fault diagnosis: Input the target domain test set into the trained model to obtain the fault diagnosis results of the test samples.

3. The unsupervised domain adaptive fault diagnosis method for rotating machinery according to claim 2, characterized in that: S4 also includes: utilizing the category information between source domain and target domain samples combined with supervised contrast loss to perform category alignment between domains.

4. The unsupervised domain adaptive fault diagnosis method for rotating machinery according to claim 2, characterized in that: Model training in S5 includes: The established fault diagnosis network model is iteratively trained, and the training optimization objectives are the source domain time-frequency consistency loss, the target domain time-frequency consistency loss, and the source domain classification loss L C , domain adversarial loss L D And the supervised contrast loss L SUP until the model converges and the training is completed; the source domain time-frequency consistency loss is composed of the source domain time-domain contrast loss L T-S , frequency domain contrast loss L F-S , time-frequency domain joint contrast loss L TF-S The target domain time-frequency consistency loss is composed of the target domain time-domain contrast loss L T-T , frequency domain contrast loss L F-T , time-frequency domain joint contrast loss L TF-T In order to prevent the loss of time-frequency consistency from affecting the ability to extract domain-invariant features, the adaptive factor α is used to measure the importance between the two, and the overall optimization goal is calculated by the following formula: L=L C +(1-α)·[λ(L T-S +L F-S +L T-T +L F-T )+μ(L TF-S +L TF-T )]+α·(ηL SUP +γL D ) α=(L SUP +L D ) / (L T-S +L F-S +L T-T +L F-T +L TF-S +L TF-T +L SUP +L D ) Among them, λ, μ, η, and γ are balancing factors, which are used to adjust the weights of each loss ratio.

5. The unsupervised domain adaptive fault diagnosis method for rotating machinery according to claim 2, characterized in that: The contrast loss is calculated by the normalized temperature-scaled cross entropy loss (NT-Xent Loss, Normalized Temperature-scaled CrossEntropy), and the formula is: Where N is the batch size, 1 [k≠i] ∈{0,1} is the indicator function, which is 1 when k≠i, and τ is the temperature parameter; The source domain classification loss is calculated by the cross entropy loss, and the formula is: In the formula, n is the total number of source domain samples, C is the number of categories, and y sc is a symbolic function, indicating whether the true category of sample s is equal to c. If so, it is 1, otherwise it is 0. sc It represents the probability that sample s belongs to category c.

6. The unsupervised domain adaptive fault diagnosis method for rotating machinery according to claim 2, characterized in that: The domain adversarial loss is calculated by the binary cross entropy loss, and the formula is: L D =-y b ·log(p b )-(1-y b )·log(1-p b ) In the formula, y b is the true label of the sample. If the sample is a positive example, the value is 1, otherwise it is 0. b Represents the predicted probability of the sample; The supervised contrast loss calculation formula is: Where D is the batch size, z e and z f is the feature representation of the sample pair, z e ·z f is the dot product between samples, 1 [t≠n] is the indicator function, which is equal to 1 when the sample labels are different, and h is the temperature parameter.

7. A rotating machinery unsupervised domain adaptive fault diagnosis system for implementing the rotating machinery unsupervised domain adaptive fault diagnosis method according to any one of claims 1 to 6, characterized in that: include: Data acquisition module: collects the vibration signal data of the rotating machinery under different working conditions, wherein the vibration signal data includes the normal operation state data and the fault operation state data of the rotating machinery; Data preprocessing module: The data sets under different working conditions are used as the source domain and target domain respectively, where the source domain data has a health status label, and the target domain data has no health status label. The vibration signal data collected in the source domain and the target domain are intercepted by sliding windows to construct a time domain sample data set; the source domain and target domain time domain sample data sets are fast Fourier transformed to obtain the frequency domain data set; the source domain time domain and frequency domain sample data sets are used as modeling training sets, and the target domain time domain and frequency domain sample data sets are divided into modeling training sets and test sets in proportion; Feature extraction module: After data enhancement, the source domain time domain, frequency domain modeling training set and the target domain time domain, frequency domain modeling training set are input into the deep learning feature extraction network based on the contrastive learning framework to extract time domain features and frequency domain features at the same time; Splice and fuse the extracted time domain features and frequency domain features; Domain adaptation module: Adapts the fusion features extracted from the source domain and the target domain through domain adaptation and contrastive learning methods to reduce the distribution differences between domains and achieve the purpose of knowledge transfer between domains; Model training module: Train the fault diagnosis model through the above steps until the model converges and the training is completed; Fault diagnosis module: Input the target domain test set into the trained model to obtain the fault diagnosis results of the test samples.

8. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the rotating machinery unsupervised domain adaptive fault diagnosis method as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the rotating machinery unsupervised domain adaptive fault diagnosis method according to any one of claims 1 to 6.

10. An information data processing terminal, used for implementing the rotating machinery unsupervised domain adaptive fault diagnosis system as claimed in claim 7.

Citation Information

Patent Citations

  • Multi-mode bearing fault intelligent diagnosis method based on transfer learning

    CN116401603A

  • Rotary machinery collaborative cross-domain fault diagnosis system and method based on double-domain signals

    CN116858539A

  • Bearing fault diagnosis method based on contrast representation learning and subdomain self-adaption

    CN118152920A

Cited By

  • Turnout switch equipment mechanical fault diagnosis method based on complementary feature enhancement and consistency learning

    CN119779655A

  • Single-domain generalization rotating machine fault diagnosis method based on frequency domain attention diffusion model

    CN120781173A

  • Single-domain generalization rotating machinery fault diagnosis method based on frequency domain attention diffusion model

    CN120781173B

  • Contrast learning coagulant addition prediction method based on characteristic disturbance enhancement

    CN121034480A

  • Self-adaptive modulation identification method based on time-frequency double flow and domain adversarial learning

    CN121356955A