Unbalanced multi-source domain adaptive model and method based on dynamic similarity guidance among samples

Through the non-equilibrium multi-source domain adaptive model based on the dynamic similarity between samples, using twin networks and multi-scale feature fusion, the problem of insufficient adaptability and generalization ability of traditional methods under incomplete fault types is solved, and industrial applications are realized. Highly accurate and robust fault diagnosis in scenarios.

CN118537627APending Publication Date: 2024-08-23TAIYUAN UNIVERSITY OF SCIENCE AND TECHNOLOGY +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410550238.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Traditional multi-source domain adaptation methods suffer from poor model adaptability and generalization capabilities when faced with the types of incomplete faults that may exist in actual industrial systems.

Method used

An unbalanced multi-source domain adaptive model guided by the dynamic similarity between samples is adopted, and the twin network framework is combined with multi-scale feature fusion and adversarial training to dynamically adjust the weights to reduce the distribution difference between the source domain and the target domain, achieving More broadly applicable feature representation.

Benefits of technology

It significantly improves the accuracy and generalization ability of fault diagnosis, can efficiently match samples between multiple incomplete source domains, and adapts to complex industrial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537627A
    Figure CN118537627A
Patent Text Reader

Abstract

The invention provides a non-equilibrium multi-source domain adaptive model and method based on inter-sample dynamic similarity guidance, and belongs to the technical field of deep learning. The problem that a traditional multi-source domain model is poor in adaptability and generalization ability is solved; a twin network framework is adopted, the twin network framework comprises a feature extraction module and a domain self-adaption module based on dynamic similarity matching, and the feature extraction module is used for performing multi-scale convolution operation on images input by a plurality of source domains and target domains, capturing visual information of different levels and outputting the visual information. The domain self-adaption module based on dynamic similarity matching comprises a twinborn similarity calculator and a domain self-adaption module, the twinborn similarity calculator is used for evaluating the similarity between different source domain sample images output by the feature extraction module, and the domain self-adaption module receives the similarity output by the twinborn similarity calculator; mapping the sample image with the highest similarity from a source domain to a target domain; the method is applied to bearing fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention provides an unbalanced multi-source domain adaptive model and method based on dynamic similarity guidance between samples, belonging to the technical field of deep learning. Background Art

[0002] Rotating machinery is a key component of many mechanical equipment used in industrial processes. Once a rotating machinery is damaged or in an abnormal state during operation, it is a great threat to the safe operation of the equipment. Therefore, in order to avoid minor faults causing subsequent major accidents, it is very important to accurately diagnose the state of the rotating machinery, which is also one of the research hotspots in the field of intelligent manufacturing.

[0003] In recent years, intelligent fault diagnosis based on deep learning (DL) has attracted wide attention from academia and industry. DL has achieved great success in the application of intelligent fault diagnosis for rotating machinery. Unlike early machine learning, DL automatically extracts useful features from a large amount of data by superimposing multiple linear and nonlinear processing units, and integrates feature extraction and classification to achieve reliable performance. Many DL models have been widely used in fault diagnosis of rotating machinery. However, DL requires long-term training and a large number of samples, and these samples that constitute the training data set and the test data set are also assumed to follow a basic assumption that the training data set and the test data set are independent of each other and have the same distribution. In actual applications in industrial scenarios, it is usually unrealistic to obtain sufficient and large-scale labeled data to train deep neural networks, because mechanical equipment is always in different working conditions due to different tasks, and the data will change with time and space. This assumption rarely holds true in actual industries. Therefore, the feature space of the training data and the test data will show obvious distribution divergence, resulting in a decrease in the diagnostic performance of existing supervised deep learning diagnosis methods.

[0004] Domain Adaptation (DA), as a branch of Transfer Learning (TL), relaxes the restriction that the training dataset and the test dataset must be independent and identically distributed. DA effectively solves the problems of domain drift, small target size, and data imbalance by mining the invariant features and essential structures between various related but different domains. In recent years, DA methods have been greatly studied and developed in the field of rotating machinery fault diagnosis based on transfer learning. For existing DA methods, they are usually divided into DA based on a single source domain and DA based on multiple source domains. In terms of single-source domain DA, Zheng et al. proposed a new intelligent fault identification method based on multi-source domain synthesis, in which the fault discrimination structure of each source domain is represented as a point on the Grassmann manifold, and the mean subspace is found through the Karcher mean. The proposed method can discover effective and general diagnostic knowledge from multiple related source domains. Yu et al. proposed a new supervised domain adaptation with manifold embedding for distribution alignment in the manifold subspace. Although these methods have high computational complexity, they consider the specific geometric structures of the source and target domains to describe the properties of the data, which effectively reduces the data differences between the domains. Zhao et al. proposed a cross-condition data supplementation method based on a cyclic generative adversarial network (CycleGAN) and a dynamic model, which can use limited available data to approximate the missing parts of the existing data and use it for diagnosis in the target domain. Wan et al. proposed a multi-level domain adaptation network (LDAM-MAN) based on hierarchical decoding and attention mechanism for cross-machine transmission bearing fault diagnosis based on unlabeled data of actual machines. The architecture includes a shared feature extraction module and a private feature extraction module, and the shared feature extraction module adopts a hierarchical decoding operation. Although scholars have made some progress in the field of fault detection, due to the large differences in data distribution between different domains, the current methods mainly transfer relevant knowledge from a single source domain to the target diagnosis task. However, in the face of this situation, it is usually difficult to achieve satisfactory results, resulting in its lack of competitiveness.

[0005] DA in multi-source domains is closer to actual industrial scenarios, which is of great significance in practical applications. Compared with the method of a single source domain, multi-source domain adaptation can effectively overcome the differences in data distribution between different domains. By integrating information from multiple source domains, the system can more comprehensively understand and capture fault modes, and improve the accuracy and robustness of diagnosis. This method helps to adapt to the complex and changing environment in actual industrial systems, making the fault diagnosis system more generalizable, thereby achieving more satisfactory performance in different fields. In current research, multi-source domain adaptation has made a series of important progress in the field of fault diagnosis, but most of the research focuses on dealing with complete fault types. These studies strive to solve the challenges of data distribution between different domains, but rarely consider the situation where fault types in actual industrial systems may be incomplete. In actual industrial scenarios, different devices or systems may have incomplete fault types, and traditional multi-source domain DA methods rarely consider this situation. Summary of the invention

[0006] In order to solve the problem that traditional multi-source domain DA methods rarely take into account the fact that the fault types in actual industrial systems may be incomplete, resulting in poor model adaptability and generalization ability, this paper proposes an unbalanced multi-source domain adaptive model and method based on dynamic similarity between samples.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: an unbalanced multi-source domain adaptation model guided by dynamic similarity between samples, adopting a twin network framework, the twin network framework including a feature extraction module and a domain adaptation module based on dynamic similarity matching, the feature extraction module is used to perform multi-scale convolution operations on images input from multiple source domains and target domains to capture visual information at different levels, the domain adaptation module based on dynamic similarity matching includes a twin similarity calculator and a domain adaptation module, the twin similarity calculator is used to evaluate the similarity between sample images of different source domains output by the feature extraction module, the similarity is obtained by calculating the Euclidean distance between the features of the sample images of the source domain and the target domain, the domain adaptation module receives the similarity output by the twin similarity calculator, and maps the sample image with the highest similarity from the source domain to the target domain.

[0008] The feature extraction module includes multiple feature extractors, and the feature extractors use a combination of multiple multi-scale feature fusion networks and pooling layers to realize multi-scale feature extraction of images. The multi-scale feature fusion network includes convolution kernels of three sizes: 5×5, 3×3, and 1×1. The feature maps output by the convolution kernels of 5×5 and 3×3 sizes are upsampled and normalized to perform feature fusion, and then the fused feature maps are spliced ​​with the image after the convolution kernel of 1×1 size, upsampling and normalization to obtain feature maps containing different levels, and the feature maps containing different levels are further processed by a two-dimensional convolution layer to realize compression and reconstruction of the feature maps.

[0009] The domain adaptation module based on dynamic similarity matching is based on the twin network principle and realizes accurate mapping between the source domain and the target domain through dynamic weight coefficients. It contains two parallel sub-networks with the same structure and shared parameters, which can process two input samples at the same time and extract their deep features. in Represents the source domain D si The i-th sample in Represents the target domain D t The goal of the twin network is to extract the deep feature representation of the two samples. It is represented by the following neural network function:

[0010]

[0011] Where Φ(·; θ) represents the feature extraction function of the twin network, and θ represents the network parameters;

[0012] The calculation of dynamic weight coefficient is to dynamically adjust the weight of each sample according to the extracted features, optimize the matching process between samples, and represent the features of each sample. or Define a fully connected layer W(·) that generates weights and dynamically calculates the weight coefficients based on the input features or

[0013]

[0014] By comparing the dynamic weight coefficients of source domain and target domain samples, the closest weight pair is found to achieve effective mapping between samples. The similarity between weight coefficients is calculated using the following formula:

[0015]

[0016] in represents the similarity between two weight coefficients, and ||·||2 represents the L2 norm;

[0017] By maximizing the similarity Determine the best mapping relationship between target domain samples and source domain samples.

[0018] The model is trained using an adversarial feature distribution adjustment strategy. The adversarial training of the domain discriminator and the fault classifier is used to force the feature extractor to learn a more universal and cross-domain feature representation. The above training process is expressed by the following formula:

[0019] min F,C max D L domain (D(F(X)),Y domain )+λL fault (C(F(X)),Y fault );

[0020] In the above formula: F(X) represents the input data, Y domain and Y fault denote the domain label and fault label of the data, L domain is the loss function for domain identification, L fault is the loss function for fault classification, λ is a hyperparameter used to balance the two losses; F represents the feature extractor, C represents the fault classifier, and D represents the domain discriminator;

[0021] The parameters of the feature extractor are adjusted through back-propagation. If the domain discriminator can accurately distinguish the domain affiliation of the data points, it indicates that the features extracted by the feature extractor are significantly different between the two domains. At this time, adjusting the parameters of the feature extractor forces it to produce features that are more domain-invariant.

[0022] The model is optimized using fault classification loss, adversarial training loss, and domain mapping loss. fault It is expressed as:

[0023]

[0024] In the above formula: Y is the true label, Predict labels for the model;

[0025] Adversarial training loss L adv It is expressed as:

[0026]

[0027] In the above formula: D i represents the domain discriminator output;

[0028] Domain mapping loss L map It is expressed as:

[0029]

[0030] In the above formula: w represents, M represents, E represents the feature mapping function, and ||·||2 represents the L2 norm;

[0031] The overall optimization goal of the model is L total It is expressed as:

[0032] L total =αL fault +βL adv +γL map ;

[0033] α, β, and γ are hyperparameters used to balance the contribution of each loss.

[0034] The unbalanced multi-source domain adaptation method based on dynamic similarity between samples adopts an unbalanced multi-source domain adaptation model based on dynamic similarity between samples, including the following steps:

[0035] Step 1: The feature extraction module uses multiple convolution kernels of different sizes to capture image features of different scales, and fuses these features together through addition and concatenation operations;

[0036] Step 2: The twin similarity calculator uses a twin network structure to process the output of the feature extraction module and quantify the differences between different domains by calculating the Euclidean distance between the sample features of the source domain and the target domain;

[0037] Step 3: The domain adaptation module receives the similarity score calculated by the twin network, maps the samples with the highest similarity from the source domain to the target domain, and adjusts the weight of the fully connected layer based on the similarity score.

[0038] The beneficial effects of the present invention compared to the prior art are as follows: the unbalanced multi-source domain adaptive network (DIMDAN) based on dynamic matching guided by dynamic similarity between samples proposed in the present invention aims to overcome the limitations of deep learning in processing data with significant distribution differences by integrating data from multiple source fields, so as to improve the performance of the model in the target field. The multi-scale feature fusion technology is adopted to enhance the model's ability to capture fault features by integrating feature information at different scales; the adversarial training strategy is adopted to encourage the feature extractor to learn more widely applicable feature representations; the dynamic weight allocation strategy is adopted to dynamically adjust the data contribution according to the similarity between the source domain and the target domain to reduce the distribution difference between them. Through experimental verification on different bearing fault data sets, DIMDAN has demonstrated excellent performance in multiple fault diagnosis tasks, significantly improved the accuracy of fault diagnosis and demonstrated excellent generalization ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present invention will be further described below in conjunction with the accompanying drawings:

[0040] Figure 1 This is the architecture diagram of the DIMDAN network model proposed in the present invention;

[0041] Figure 2 It is the structural diagram of the MSFNN module;

[0042] Figure 3 Schematic diagram of the strategy for adjusting feature distribution based on adversarial;

[0043] Figure 4 The structural diagram of the adaptive module for dynamic similarity matching;

[0044] Figure 5 This is a schematic diagram of the structure of the experimental equipment in Example 1 of the present invention;

[0045] Figure 6 for Figure 5 Schematic diagram of the fault types of the working equipment;

[0046] Figure 7 This is a confusion matrix diagram of the ablation experiment results of Example 1;

[0047] Figure 8 for Figure 7 Feature visualization of ablation experiment results in Figure 2;

[0048] Fig. 9 This is a confusion matrix diagram of the experimental results of Example 1 using the present invention and other models for comparison;

[0049] Fig.10 for Fig. 9 Feature visualization diagram of the comparative experiment;

[0050] Fig.11 It is a structural schematic diagram of the experimental equipment in Example 2;

[0051] Fig.12 This is a confusion matrix diagram of the experimental results of Example 2 using the present invention and other models for comparison;

[0052] Fig.13 for Fig.12 Feature visualization of the comparative experiment. DETAILED DESCRIPTION

[0053] like Figures 1 to 13As shown in the figure, in response to the shortcomings of the current multi-source domain DA method, the present invention proposes an unbalanced multi-source domain adaptive bearing fault diagnosis method based on the dynamic similarity of sample parts, and proposes an unbalanced multi-source domain adaptive network (Dynamic Imbalanced Multi-SourceDomain Adaptation Network, DIMDAN) that can realize dynamic matching of source domain and target domain samples. The network adopts advanced feature extraction and matching mechanisms, and effectively handles the distribution differences between multi-source domains and between source domains and target domains by introducing a dynamic weight allocation strategy. The dynamic weight allocation strategy can dynamically adjust the weight according to the similarity between each source domain and the target domain, optimize the utilization of source domain samples, and thus improve the accuracy and robustness of cross-domain adaptation. In addition, DIMDAN also combines domain alignment and domain-specific adaptation techniques, and further enhances the generalization ability of the model for target tasks by fine-tuning the contribution of different source domains to the target domain.

[0054] like Figure 1 As shown, the DIMDAN network model proposed in the present invention takes into account the complexity of multi-source domain transfer learning and adopts a new twin network framework, which consists of three main parts: a feature extraction module, a twin similarity calculator and a domain adaptation module. The feature extraction module is based on multi-scale convolution operations and can capture visual information at different levels. The twin similarity calculator is used to evaluate the similarity between samples from different source domains, and the domain adaptation module further adjusts the parameters of the fully connected layer according to the similarity score. The twin network framework aims to compensate for the distribution differences between the source domain and the target domain by combining a multi-scale feature extraction module, a twin similarity calculator and a domain adaptation module, thereby improving the generalization ability of the model in the target domain. The steps for bearing fault diagnosis using the twin network framework are as follows:

[0055] Step 1: The feature extraction module uses multiple convolution kernels of different sizes to capture bearing features of different scales, and fuses these features together through addition and concatenation operations. In this way, the network can integrate rich contextual information while maintaining the consistency of feature dimensions.

[0056] Step 2: The twin similarity calculator uses a twin network structure to process the output of the feature extraction module. By calculating the Euclidean distance between the sample features of the source domain and the target domain, the calculator can quantify the differences between different domains.

[0057] Step 3: The domain adaptation module receives the similarity scores calculated by the twin network, maps the samples with the highest similarity from the source domain to the target domain, and adjusts the weights of the fully connected layer based on this.

[0058] During the training process, the entire network is optimized in an end-to-end manner. The loss function guides the model to focus on reducing the feature differences between the most dissimilar sample pairs, promoting the model's adaptability to the target domain.

[0059] The loss function combines classification loss, Siamese network similarity loss, and adaptive module loss to ensure that the model achieves optimal performance in multi-source domain transfer learning tasks.

[0060] The following is a detailed description of each module of the model.

[0061] Feature extraction module based on multi-scale feature fusion

[0062] The feature extraction module is equipped with multiple feature extractors, which use multiple multi-scale feature fusion networks (MSFNN) and pooling layers to achieve multi-scale feature extraction. This module can effectively extract and fuse features from different scales to enhance the representation of the model. The MSFNN network draws on the concept of multi-scale processing in the field of deep learning, and achieves comprehensive capture of image information from fine-grained to coarse-grained by simultaneously applying convolution kernels of multiple sizes.

[0063] like Figure 2 As shown in Figure 1, the MSFNN network first processes the input feature map through convolution kernels of different sizes. Consider that the input model data is a two-dimensional time-frequency data F after fast Fourier transformation. in ∈R H×W×C , where H, W and C represent the height, width and number of channels of the feature map respectively. In order to capture information of different scales, MSFNN processes the input feature map through convolution kernels of three sizes: 5×5, 3×3 and 1×1. The processing results are as follows:

[0064]

[0065] In the above formula: F 1×1 、F 3×3 、F 5×5 The outputs of the convolution kernels of three sizes are 1×1, 3×3, and 5×5, respectively. 1×1 , K 3×3 , K 5×5 The convolution kernels are of three sizes: 1×1, 3×3, and 5×5, where K 1×1 ∈R 1×1×C×C’ , K 3×3 ∈R 3×3×C×C’ , K 5×5 ∈R 5×5×C×C’ , F 1×1 ∈R H×W×C’ , F 3×3∈R H×W×C’ , F 5×5 ∈R H×W×C’ , C' represents the number of channels of the output feature. After extracting features through convolution kernels of different scales, the functions of dimensionality reduction and adding nonlinear processing (1×1 convolution kernel), capturing intermediate spatial features (3×3 convolution kernel) and extracting advanced spatial features (5×5 convolution kernel) are realized respectively.

[0066] In the feature fusion stage, the network first transforms F 1×1 、F 3×3 、F 5×5 After upsampling, new samples of the same size are generated F′ 1x1 , F′ 3x3 and F′ 5x5 Then, perform feature merging:

[0067] F add =F′ 3x3 +F′ 5x5 (2);

[0068] where F′ 3x3 , F′ 5x5 and F add The dimensions of are all H×W×C'. This operation helps to integrate information of features of different scales, prevent information loss, while maintaining high resolution and improving the flexibility and generalization of the model.

[0069] Then the deep concatenation is performed, namely:

[0070] F concat =Concat(F′ 1x1 , F add , F′ 5x5 (3);

[0071] where F concat ∈R H×W×3C’ ,This step integrates feature maps of different scales through cascade operations, ,ensuring the effective fusion of features at different levels.

[0072] Finally, in order to maintain the consistency of the size and channels of the output feature map of the network module and the input feature map, and to facilitate repeated calls of the module, a two-dimensional convolutional layer is used to reprocess the fused features:

[0073] F out =Conv 2D (F concat ) (4);

[0074] where F out ∈R H×W×C’,This step not only integrates multi-scale features, but also realizes the compression and reconstruction of the feature map through convolution operation, so that the number of channels of the output feature map can be controlled.

[0075] When designing the network, the focus was on its repeatability. Through the final two-dimensional convolutional layer, the network is able to convert feature maps of different scales into outputs of a unified format, ensuring that the feature extraction module can be reused multiple times in the network without having to adjust subsequent layers. This design greatly improves the flexibility and scalability of the network.

[0076] Domain Adaptation Module Based on Dynamic Similarity Matching

[0077] This paper proposes an advanced sample matching framework based on the twin network principle, which realizes the accurate mapping between the source domain and the target domain through dynamic weight coefficients, such as Figure 4 This framework is particularly suitable for processing complex data environments consisting of multiple incomplete source domains, where each source domain cannot cover all possible fault types, but their combination can achieve comprehensive coverage. si and the target domain D t For example, the j-th source domain D can be obtained by the same logic. sj and the target domain D t The calculation process.

[0078] The twin network is the neural network structure that constitutes the core of this framework. It contains two parallel sub-networks with the same structure and shared parameters. This structural design enables the network to process two input samples at the same time and extract their deep features. in Represents the source domain D si The i-th sample in Represents the target domain D t The goal of the twin network is to extract the deep feature representation of the two samples. This step can be represented by the following neural network function:

[0079]

[0080] Where Φ(·; θ) represents the feature extraction function of the twin network, and θ represents the network parameters.

[0081] The calculation of dynamic weight coefficients is the innovation of this framework, which aims to dynamically adjust the weight of each sample according to the extracted features, thereby optimizing the matching process between samples. or The present invention defines a fully connected layer W(·) that generates weights, which dynamically calculates the weight coefficients based on the input features. or

[0082]

[0083] The weight coefficient reflects the distribution weight of the sample features in the entire data set, thus providing a basis for subsequent sample matching.

[0084] By comparing the dynamic weight coefficients of source domain and target domain samples, the closest weight pair can be found to achieve effective mapping between samples. The similarity between weight coefficients can be calculated as follows:

[0085]

[0086] in represents the similarity between two weight coefficients, and ||·||2 represents the L2 norm. By maximizing the similarity The optimal mapping relationship from target domain samples to source domain samples can be determined.

[0087] The method of the present invention fully considers the characteristics that the source domain is composed of multiple incomplete source domains. These source domains cannot fully cover all fault types individually, but they can be achieved when combined. Through the adaptive adjustment of dynamic weight coefficients, the method proposed by the present invention can find the most suitable data distribution among multiple incomplete source domains, thereby effectively mapping target domain samples to source domain samples, ensuring efficient sample matching between source domain and target domain in a complex data environment.

[0088] Finally, we introduce an advanced feature adjustment strategy to further improve the accuracy and efficiency of sample matching. This strategy performs a final step of fine-tuning the features based on the similarity scores extracted from the Siamese network. This process involves the careful training of a series of fully connected layers, aiming to optimize the representation of sample features based on the similarity scores.

[0089] Model training: Adopting adversarial feature distribution adjustment strategy

[0090] In the transfer learning framework, the difference in marginal distribution between the source domain and the target domain is one of the main challenges affecting the generalization performance of the model. In order to effectively reduce this distribution difference, this paper proposes a feature distribution adjustment strategy based on adversarial training. The core idea of ​​this strategy is to use the adversarial training of the domain discriminator and the fault classifier to force the feature extractor to learn more universal and cross-domain feature representations, such as Figure 3 shown.

[0091] This strategy involves three main components: feature extractor F, domain discriminator D, and fault classifier C. The feature extractor F is responsible for extracting i and the target domain D t The domain discriminator D aims to predict whether the feature belongs to the source domain or the target domain, while the fault classifier C focuses on fault classification based on the extracted features.

[0092] During the training process, the goal of the feature extractor F is to generate features that are useful to the fault classifier C and difficult to distinguish for the domain discriminator D. This process can be expressed by the following optimization formula:

[0093] min F,C max D L domain (D(F(X)),Y domain )+λL fault (C(F(X)),Y fault ) (8);

[0094] In the above formula: F(X) represents the input data, Y domain and Y fault denote the domain label and fault label of the data, L domain is the loss function for domain identification, L fault is the loss function for fault classification and λ is a hyperparameter used to balance the two losses.

[0095] In this adversarial training framework, the domain discriminator D is trained to maximize its ability to identify the domain to which the feature belongs, while the feature extractor F and the fault classifier C are jointly trained to minimize the error of fault classification while confusing the domain discriminator D and reducing the feature distribution difference between the source domain and the target domain.

[0096] By adjusting the parameters of feature extractor F through back propagation, if domain discriminator D can accurately distinguish the domain belonging of the data point, it indicates that the features extracted by feature extractor F have significant differences between the two domains. At this time, the purpose of adjusting the parameters of feature extractor F is to reduce the recognition accuracy of domain discriminator D and force it to produce features with more domain invariance.

[0097] By adopting this adversarial training strategy, the model can learn to ignore those features that are only discriminative to the source domain during training, and then learn more generalized feature representations between the two domains. It has been verified that this strategy effectively reduces the marginal distribution difference between the source domain and the target domain, significantly improving the performance of the model on the target domain, thus confirming its effectiveness in dealing with the marginal distribution difference problem in transfer learning.

[0098] The optimization goal of the model

[0099] The optimization objective of this model comprehensively considers three key parts: fault classification performance, adversarial adjustment of feature distribution, and accuracy of domain mapping, aiming to improve the generalization ability and accuracy of the transfer learning model by comprehensively optimizing these aspects. The following is a detailed description of each part and its role in the overall loss function.

[0100] Fault classification loss: The goal of the fault classifier is to minimize the difference between the predicted label and the true label, which is usually achieved through the cross entropy loss function. Let C be the fault classifier, Y be the true label, For the model to predict the label, the fault classification loss L fault It can be expressed as:

[0101]

[0102] Adversarial training loss: Adversarial training is implemented between the feature extractor F and the domain discriminator D. The cross entropy loss of the domain discriminator D is calculated and the feature extractor F is adjusted through the adversarial process to reduce the feature distribution difference between the source domain and the target domain. Let D be the domain discriminator output, L adv is the adversarial training loss, then:

[0103]

[0104] Domain mapping loss: By calculating the Euclidean distance between the target domain samples and their matching source domain samples, the mapping of the target domain samples is optimized so that the target domain samples better match the source domain distribution. Let E be the feature mapping function, L map is the domain mapping loss, then:

[0105]

[0106] In the above formula: w represents the exponential value of the variable, M represents the total number of samples, E represents the feature mapping function, and ||·||2 represents the L2 norm.

[0107] Overall optimization goal: Combining the above three parts, the overall optimization goal of the model is L total It aims to simultaneously minimize the fault classification loss, adversarial training loss, and domain mapping loss, which can be expressed as:

[0108] L total =αL fault +βL adv +γL map (12);

[0109] In the above formula: α, β, and γ are hyperparameters used to balance the contribution of each loss.

[0110] By optimizing the above-mentioned comprehensive loss function, the model of the present invention can not only effectively improve the accuracy of fault diagnosis, but also reduce the difference in feature distribution between domains through adversarial training, and further promote effective migration between source domains and target domains through precise domain mapping, thereby improving the performance of the model on unseen target domains.

[0111] The method of the present invention is verified below based on specific experiments in two embodiments.

[0112] Embodiment 1

[0113] Experiment 1 Dataset Introduction

[0114] like Figure 5 As shown in the figure, a bearing experiment was conducted on a comprehensive fault simulation system with a single-row cylindrical roller bearing (SKF N205) as the research object. In order to ensure that a relatively complete vibration signal can be collected after the bearing runs once, three RH103 accelerometers are installed on the bearing seat to measure the vibration signals in the horizontal (CH1), vertical (CH2) and axial (CH3) directions respectively. The acquisition equipment (model: RH1000V4) is also used to collect data.

[0115] In the experiment, a total of 8 working conditions of the bearing were considered, including 5 single faults (such as Figure 6 (b)-(f)), 2 compound faults (such as Figure 6 (g)-(h)) and a completely normal state (as shown in Figure 6 (a) is shown). The corresponding description is shown in Table 1. The sampling frequency is 51.2kHz. The vibration signals are collected under the conditions of motor speed of 1000 and 1500r / min, no-load and radial force of 500N. They are arranged and combined in sequence as a data set. The data set is divided into four sub-datasets D1, D2, D3, and D4. The details of each data set are shown in Table 1. Each data set contains 8000 samples, which are randomly divided into training samples and test samples with a ratio of 8:2. In order to avoid overlapping areas between samples, the original signal is non-overlappingly sampled and segmented, and each sample contains 3072 points. Finally, three of the four sub-datasets are called out in each experiment as two source domains and one target domain. A total of 12 experiments are carried out to verify the effectiveness of the model through training. Taking D1, D2 and D3 as examples, more intuitive experimental information is listed in Table 2.

[0116]

[0117] Table 1 Parameters of four working conditions.

[0118]

[0119] Table 2 Division of source domain and target domain.

[0120] Ablation experiment of Experiment 1

[0121] After completing the 12 migration task experiments of the proposed method, two sets of ablation research experiments were conducted for each task to demonstrate the functions of different modules in the proposed method. Two variants of the proposed method were constructed, named a-Feature and a-Adaptation, which represent the methods of deleting the feature extraction module and the domain adaptation module respectively. After deleting the feature extraction module, ordinary CNN is used to complete the feature extraction work.

[0122] The experimental results are shown in Table 3. First, in the 12 transfer tasks, the minimum accuracy of the proposed method is 99.05% and the maximum is 100%. Second, for each task, compared with the two sets of ablation experiments, the diagnostic accuracy of the proposed method always reaches the best, with a maximum improvement of 20.09%.

[0123]

[0124] Table 3 Ablation experiment results.

[0125] Furthermore, the fault diagnosis results of this method and two sets of ablation experiments on task T12 were analyzed in detail. Figure 7 The detailed fault diagnosis results for each machine fault in the ablation experiments are presented in the form of confusion matrix.

[0126] like Figure 8 As shown in the figure, the high-level data representation learned by the feature extraction module is visualized by the t-distributed stochastic neighbor embedding (t-SNE) method. The horizontal axis represents t-SNE Feature1, the vertical axis represents t-SNE Feature2, and different colors represent Class0-7 respectively. Figure 7 The feature extraction of each machine fault in the ablation experiment is shown.

[0127] like Figure 7 (a) and Figure 8 The experimental diagnosis results of a-Feature shown in (a) reveal the classification accuracy problem when processing wd type in the source domain data, which in turn affects the overall classification performance. Specifically, Figure 7 (a) clearly shows that for wd type data, the classification model exhibits low recognition accuracy, which drags down the overall classification effect. In addition, as Figure 8As shown in (a), although the model successfully implemented effective feature extraction for the healthy type (labeled as 0) and wd type data in the feature extraction stage, defects occurred in the feature mapping stage. Specifically, the model failed to enhance the distinction between features of different categories and lacked a mechanism to enhance feature differences. This resulted in the model's inability to distinguish the feature distribution of the two types of data, and ultimately caused the two types of data to be mistakenly classified as the same category.

[0128] The results of the a-Adaptation experiment correspond to Figure 7 (b) and Figure 8 (b) reveals that domain drift occurs to varying degrees when processing the nl, wgd, wgl, and wl types of data. This result is due to the use of a standard convolutional neural network (CNN) in the model instead of a specialized feature extraction module. Furthermore, Figure 8 The results in (b) also verify this observation, showing that there is a crossover at the edges of the distributions of several types of data, which leads to a decrease in the performance of the discriminator in determining the fault type.

[0129] like Figure 7 (c) and Figure 8 As shown in (c), the present invention significantly improves the diagnostic accuracy of each fault category and shows good separability in feature distribution by introducing a feature extraction module based on multi-scale feature fusion, a feature distribution adjustment strategy based on adversarial means, and a domain adaptation module based on dynamic similarity matching. Specifically, through the multi-scale feature fusion strategy, the method of the present invention can integrate feature information at different levels and enhance the model's ability to capture complex data structures. At the same time, the feature distribution adjustment strategy based on adversarial means effectively expands the distribution differences between different domains, and reduces the model's dependence on specific data distribution by guiding the model to learn more general feature representations. In addition, the domain adaptation module based on dynamic similarity matching further improves the model's adaptability to feature changes, and by dynamically adjusting the similarity calculation standard, the model can more accurately match and identify similar features, thereby effectively improving the accuracy and robustness of fault diagnosis.

[0130] In order to deeply evaluate the effectiveness of the adaptive model proposed in this paper in the field of fault diagnosis, a series of comparative experiments were designed, including DANN, DCORAL, JDA, TCA and standard DCNN. The experimental framework follows the principle of "two source domains and one target domain", where the two source domains contain incomplete fault type data sets, while the target domain covers all fault types. Under the premise of keeping the algorithm principle unchanged, each network model is properly fine-tuned to adapt to the specific task of fault diagnosis. The comparative experimental results are shown in Table 4.

[0131]

[0132] Table 4 compares the experimental results.

[0133] From the results shown in Table 4, the proposed method achieves a diagnostic accuracy close to or equal to 100% in all task configurations, significantly exceeding other comparison methods. In particular, even in more complex multi-source domain adaptation tasks, such as T2 (1-2→4), T3 (1-3→2), and T4 (1-3→4), the performance of the proposed method remains stable, showing its excellent adaptability and accuracy. In contrast, although DANN and DCORAL also show high accuracy in some tasks (such as T2 and T5), their performance fluctuates greatly in different task configurations, especially when facing more complex domain adaptation scenarios. The performance of JDA and TCA methods in all tasks is generally inferior to that of DANN and DCORAL, which may be due to the limitations of these methods in dealing with complex nonlinear feature transformations. As a baseline, the performance of the standard DCNN in all tasks is lower than that of the proposed method, which further highlights the importance of the proposed adaptive strategy in improving the generalization ability of the model and adapting to different fault diagnosis scenarios.

[0134] exist Fig. 9 The results of the comparative experiments show that the confusion matrix of the proposed method achieves perfect classification accuracy on almost all fault types, and the off-diagonal elements are close to zero, indicating that there is almost no misclassification. Compared with other methods, the proposed method shows obvious superiority in each fault category, especially in some easily confused categories.

[0135] Fig.10 The horizontal axis represents t-SNE Feature1, the vertical axis represents t-SNE Feature2, and different colors represent Class0-7. Fig.10 From the visualization of the feature distribution, the data points of the proposed method are distributed into independent and compact clusters in the feature space, each of which corresponds to a fault type. This clear class separation indicates a highly distinguishable feature representation, which reduces the overlap between categories and provides a clear boundary for the classifier. In contrast, other methods, especially JDA and TCA, have more dispersed data points in the feature space, with more overlaps, resulting in unclear classification boundaries, which is directly related to the higher misclassification rate in the confusion matrix.

[0136] Specifically, Fig.10The class clusters in (f) are not only highly separated, but also have a large internal density in each cluster, indicating that the classification method of the present invention is not only accurate but also stable. In high-dimensional space, such feature representation can greatly improve the discrimination ability of the classifier, especially in complex multi-source domain adaptation problems. In addition, from Fig.10 It can also be inferred from the distribution that the method of the present invention is likely to extract features that are more conducive to distinction through effective feature fusion and adaptive strategies. These features can resist the interference from different source domain data and enhance the generalization ability of the model in the target domain.

[0137] Embodiment 2

[0138] Introduction to the dataset for Experiment 2

[0139] The dataset is provided by the Chair of Design and Drive Technology, Paderborn University. It contains real bearing damage samples generated by accelerated life tests. The test bench consists of several modules: (1) motor, (2) torque shaft, (3) rolling bearing test module, (4) flywheel and (5) load motor, such as Fig.11 As shown. Ball bearings with different types of damage are installed in the bearing test module to generate experimental data. According to the differences in load torque, rotation speed and radial force of the bearing, the present invention extracts part of the data from the data set to form four sub-data sets D1, D2, D3 and D4. The details of each data set are shown in Table 5. Each sub-data set contains data samples of ten categories, including a healthy type of data sample and nine fault samples of different fault types. The sampling frequency of each working condition is 64kHZ, and the details of the fault are shown in Table 6. Sliding window sampling, fast Fourier transform technology and minimum-maximum normalization are sequentially processed for all data samples, and then the processed one-dimensional data are arranged into two-dimensional data. Finally, three of the four sub-data sets are called out for each experiment as two source domains and one target domain. A total of 12 experiments are carried out to verify the effectiveness of the model through training. Taking D1, D2 and D3 as examples, more intuitive experimental information is listed in Table 7.

[0140]

[0141] Table 5 Parameters of four working conditions.

[0142]

[0143] Table 6 Detailed information of various fault types.

[0144]

[0145] Table 7 Division of source domain and target domain.

[0146] In order to deeply evaluate the effectiveness of the adaptive model proposed in this paper in the field of fault diagnosis, a series of comparative experiments were designed, including DANN, DCORAL, JDA, TCA and standard DCNN. The experimental framework follows the principle of "two source domains and one target domain", where the two source domains contain incomplete fault type data sets, while the target domain covers all fault types. Under the premise of keeping the algorithm principle unchanged, each network model is properly fine-tuned to adapt to the specific task of fault diagnosis. The comparative experimental results are shown in Table 8.

[0147]

[0148] Table 8 compares the experimental results.

[0149] In-depth analysis Fig.12 When the confusion matrix is ​​shown, it can be clearly observed that the misclassification rate of the proposed method is extremely low compared to other methods, which can be seen from the values ​​of the off-diagonal elements. This high accuracy shows the efficiency of the proposed method in capturing and utilizing fault feature information, especially when there is a large difference in the distribution of the source domain and the target domain.

[0150] Fig.13 The horizontal axis represents t-SNE Feature1, the vertical axis represents t-SNE Feature2, and different colors represent Class0-9. Fig.13 From the feature space distribution diagram, we can see that the method of the present invention not only achieves a clear separation between classes, but also has a high degree of aggregation within each class, similar to the compact cluster distribution in multidimensional space. This shows that the method successfully minimizes the intra-class differences and maximizes the inter-class differences in the feature space, which is crucial for improving the recognition ability of the classifier. The data points of other methods show more overlap between different categories. This blurred class boundary is one of the main reasons for the decline in classification performance.

[0151] In summary, by comparing and analyzing the table data with Fig.12 and Fig.13 , it can be confirmed that the method of the present invention has significant performance advantages in multi-source domain fault diagnosis tasks. This performance advantage reflects its advancement in feature extraction, domain adaptation, and feature distribution adjustment. Specifically, the method of the present invention effectively addresses the significant distribution differences that may exist between the source domain and the target domain through sophisticated multi-scale feature fusion and dynamic similarity matching technology, allowing the model to maintain a high level of fault detection performance even in a complex multi-source adaptation environment.

[0152] The DIMDAN network model proposed in this paper has shown superior performance in multiple unbalanced multi-source domain adaptation tasks, verifying its effectiveness and practicality. The main contributions of DIMDAN can be listed as follows:

[0153] This paper proposes a novel network framework specifically for the fault diagnosis problem of incomplete multi-source domains, which can effectively utilize the knowledge scattered in different source domains to achieve accurate identification of target domain data.

[0154] In terms of feature extraction, this framework adopts a method that combines multi-scale feature fusion and adversarial learning to gradually adjust the data distribution of the extracted features to better adapt to the target domain.

[0155] A dynamic matching mechanism between source and target domain samples is designed, which improves the adaptability and generalization ability of the model by more finely aligning the data distribution between different domains.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An unbalanced multi-source domain adaptive model guided by dynamic similarity between samples, using a twin network framework, characterized by: The twin network framework includes a feature extraction module and a domain adaptation module based on dynamic similarity matching. The feature extraction module is used to perform multi-scale convolution operations on images input from multiple source domains and target domains to capture visual information at different levels. The domain adaptation module based on dynamic similarity matching includes a twin similarity calculator and a domain adaptation module. The twin similarity calculator is used to evaluate the similarity between sample images from different source domains output by the feature extraction module. The similarity is obtained by calculating the Euclidean distance between the features of the source domain and the target domain sample images. The domain adaptation module receives the similarity output by the twin similarity calculator and maps the sample image with the highest similarity from the source domain to the target domain.

2. The unbalanced multi-source domain adaptive model based on dynamic similarity between samples according to claim 1, characterized in that: The feature extraction module includes multiple feature extractors, and the feature extractors use a combination of multiple multi-scale feature fusion networks and pooling layers to realize multi-scale feature extraction of images. The multi-scale feature fusion network includes convolution kernels of three sizes: 5×5, 3×3, and 1×1. The feature maps output by the convolution kernels of 5×5 and 3×3 sizes are upsampled and normalized to perform feature fusion, and then the fused feature maps are spliced ​​with the image after the convolution kernel of 1×1 size, upsampling and normalization to obtain feature maps containing different levels, and the feature maps containing different levels are further processed by a two-dimensional convolution layer to realize compression and reconstruction of the feature maps.

3. The unbalanced multi-source domain adaptive model based on dynamic similarity between samples according to claim 1, characterized in that: The domain adaptation module based on dynamic similarity matching is based on the twin network principle and realizes accurate mapping between the source domain and the target domain through dynamic weight coefficients. It contains two parallel sub-networks with the same structure and shared parameters, which can process two input samples at the same time and extract their deep features. in Represents the source domain D si The i-th sample in Represents the target domain D t The goal of the twin network is to extract the deep feature representation of the two samples. It is represented by the following neural network function: Where t represents the feature extraction function of the twin network, and θ represents the network parameters; The calculation of dynamic weight coefficient is to dynamically adjust the weight of each sample according to the extracted features, optimize the matching process between samples, and represent the features of each sample. or Define a fully connected layer W(·) that generates weights and dynamically calculates the weight coefficients based on the input features or By comparing the dynamic weight coefficients of source domain and target domain samples, the closest weight pair is found to achieve effective mapping between samples. The similarity between weight coefficients is calculated using the following formula: in represents the similarity between two weight coefficients, and ||·||2 represents the L2 norm; By maximizing the similarity Determine the best mapping relationship between target domain samples and source domain samples.

4. The unbalanced multi-source domain adaptation model based on dynamic similarity between samples according to any one of claims 1 to 3, characterized in that: The model is trained using an adversarial feature distribution adjustment strategy. The adversarial training of the domain discriminator and the fault classifier is used to force the feature extractor to learn a more universal and cross-domain feature representation. The above training process is expressed by the following formula: min F,C max D L domain (D(F(X)),Y domain )+λL fault (C(F(X)),Y fault ); In the above formula: F(X) represents the input data, Y domain and Y fault denote the domain label and fault label of the data, L domain is the loss function for domain identification, L fault is the loss function for fault classification, λ is a hyperparameter used to balance the two losses; F represents the feature extractor, C represents the fault classifier, and D represents the domain discriminator; The parameters of the feature extractor are adjusted through back-propagation. If the domain discriminator can accurately distinguish the domain affiliation of the data points, it indicates that the features extracted by the feature extractor are significantly different between the two domains. At this time, adjusting the parameters of the feature extractor forces it to produce features that are more domain-invariant.

5. The unbalanced multi-source domain adaptive model based on dynamic similarity between samples according to claim 4, characterized in that: The model is optimized using fault classification loss, adversarial training loss, and domain mapping loss. fault It is expressed as: In the above formula: Y is the true label, Predict labels for the model; Adversarial training loss L adv It is expressed as: In the above formula: D i represents the domain discriminator output; Domain mapping loss L map It is expressed as: In the above formula: w represents the exponential value of the variable, M represents the total number of samples, E represents the feature mapping function, and ||·||2 represents the L2 norm. The overall optimization goal of the model is L total It is expressed as: L total =αL fault +βL adv +γL map ; α, β, and γ are hyperparameters used to balance the contribution of each loss.

6. The unbalanced multi-source domain adaptation method based on dynamic similarity between samples adopts the unbalanced multi-source domain adaptation model based on dynamic similarity between samples as claimed in any one of claims 1 to 5, characterized in that: The following steps are involved: Step 1: The feature extraction module uses multiple convolution kernels of different sizes to capture image features of different scales, and fuses these features together through addition and concatenation operations; Step 2: The twin similarity calculator uses a twin network structure to process the output of the feature extraction module and quantify the differences between different domains by calculating the Euclidean distance between the sample features of the source domain and the target domain; Step 3: The domain adaptation module receives the similarity score calculated by the twin network, maps the samples with the highest similarity from the source domain to the target domain, and adjusts the weight of the fully connected layer based on the similarity score.

Citation Information

Cited By

  • Agricultural machinery operation state monitoring method and system based on Internet of Things

    CN119046801A

  • Three-dimensional visualization method and device for construction area

    CN120612427A

  • Intelligent fault diagnosis method for acoustic gear under variable working conditions

    CN121145000A