Fault diagnosis method and computer equipment based on causal mechanism

By introducing causal mechanisms and target network models into fault diagnosis, extracting causal information in the data and conducting adversarial learning, we solve the problems of low diagnostic accuracy and poor robustness of existing methods in complex environments, and achieve higher fault accuracy. Diagnostic accuracy and generalization ability.

CN117197546BActive Publication Date: 2024-08-30FOSHAN UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311079675.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2024-08-30
Estimated Expiration
2043-08-24

AI Technical Summary

Technical Problem

Existing fault diagnosis methods rely on data correlation, are difficult to generalize in independent and identically distributed scenarios, and fail to explain the potential causal mechanism between data and labels, resulting in low diagnostic accuracy and poor robustness in complex environments.

Method used

Using a fault diagnosis method based on a causal mechanism, the target network model is combined with the generator, causal extractor and adversarial mask module to extract the causal information in the data and perform adversarial learning to build a diagnostic model that can be generalized across different domains. The method consists of graphical difference field methods processing raw data, generating a set of difference field pictures, and optimizing the extraction of causal factors through data augmentation and factorization loss.

Benefits of technology

It improves the accuracy and robustness of fault diagnosis, can effectively generalize between different domains, reduces the dependence on data correlation, and improves the model's generalization ability and diagnostic performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117197546B
    Figure CN117197546B
Patent Text Reader

Abstract

The present invention discloses a fault diagnosis method and computer equipment based on causal mechanism, which relates to the technical field of fault diagnosis. The method comprises: obtaining target domain data, and inputting the target domain data into a pre-trained target network model to classify fault information; the target network model comprises a generator, a causal extractor, an adversarial mask module and a classifier, and the classifier comprises an upper dimension classifier and a lower dimension classifier, wherein the generator extracts causal information from the target domain data, the causal extractor extracts causal factors related to the category from the causal information using causal intervention, and the adversarial mask module performs adversarial learning on the upper dimension classifier and the lower dimension classifier, so that the upper dimension classifier and the lower dimension classifier classify the fault information according to more expressive causal factors. The present invention can solve the problem of existing methods' dependence on data correlation, and can mine the intrinsic causal mechanism between data and labels, so as to obtain better generalization ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault diagnosis, and in particular to a fault diagnosis method and computer equipment based on a causal mechanism. Background Art

[0002] The most important component of rotating machinery is the rolling bearing. With the development and demand of industry, the workload of most rotating machinery is huge. Under high load, strong impact, high workload and complex environment, rolling bearings often produce failures of inner ring, outer ring and ball. If the fault is not discovered in time, the equipment will often shut down, causing huge economic losses and even safety accidents. Fault diagnosis and prediction are the core of prognostic health management (PHM). The main purpose of PHM of rotating machinery is to reduce the cost of use and support, improve the safety and integrity of rotating machinery, and thus achieve condition-based maintenance with less maintenance investment.

[0003] With the development of mechanical manufacturing technology and the continuous diversification of application fields, the working conditions of bearings are also constantly changing. For bearings under different working conditions, traditional bearing fault diagnosis methods can no longer meet actual needs. Therefore, combining machine learning to study new fault diagnosis technologies is of great significance for improving the production efficiency of mechanical equipment and ensuring safe production.

[0004] At present, many cross-domain diagnosis methods based on transfer learning or domain adaptation have been developed, which use differential data from different sources. The basic idea of ​​these studies is to build diagnostic models that can perform well on the target domain by leveraging diagnostic knowledge from related source domains. In general studies, maximum mean difference (MMD), CORAL, and joint MMD are used to reduce domain shift; for example, different kernel MMDs and weighted voting mechanisms are used to build integrated transfer diagnosis models; for example, adversarial learning is used as a regularization method to improve the generalization ability of convolutional neural networks (CNNs); for example, the maximum classifier difference is used to learn class separable and domain invariant features. The feasibility of these methods is supported by similar fault features carried in monitoring signals generated by machines with the same working principles and fault mechanisms.

[0005] However, in many other scenarios, it is very difficult to provide a complete dataset of the target domain (including the signal of each fault). And the faults in reality may come from different operating conditions, different fault sizes, different operating modes, and across different machines. In order to achieve generalization in this scenario, it is necessary to learn common diagnostic knowledge from multiple related source domains and then apply it to diagnose new unseen samples in the target domain. This strategy is usually called domain generalization and is more challenging than domain adaptation. For the domain generalization problem, adapting the classifier to the target domain is not its essential goal. Instead, learning a representation that is discriminative and domain invariant to ensure consistent discrimination for each domain is an effective and widely adopted strategy. However, the existing methods try to compensate for the problems caused by unknown domain data and model the correlation between data and labels without explaining the underlying causal mechanism between data and labels. Therefore, this approach may be insufficient. Generalizing beyond independent and identical distribution requires learning not only the statistical correlation between variables, but also a potential causal mechanism. For example, in image classification tasks, it is likely that all giraffes are on the grass, showing a high statistical correlation, which can easily mislead the model to make wrong predictions when the background changes.

[0006] Therefore, model generalization based on causal mechanisms is needed to construct a new fault diagnosis method. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a fault diagnosis method and computer equipment based on a causal mechanism, which can solve the problem of existing methods' dependence on data correlation and has high accuracy and strong robustness.

[0008] In order to solve the above technical problems, the present invention provides a fault diagnosis method based on a causal mechanism, including: acquiring target domain data, and inputting the target domain data into a pre-trained target network model to classify fault information; the target network model includes a generator, a causal extractor, an adversarial mask module and a classifier, and the classifier includes an upper dimension classifier and a lower dimension classifier, wherein the generator extracts causal information from the target domain data, the causal extractor uses causal intervention to extract causal factors related to the category from the causal information, and the adversarial mask module performs adversarial learning on the upper dimension classifier and the lower dimension classifier so that the upper dimension classifier and the lower dimension classifier classify the fault information according to the causal factors.

[0009] As an improvement of the above-mentioned scheme, the training method of the target network model includes: obtaining original fault data of multiple domains; converting the original fault data into a differential field picture set through a graphic differential field method; performing data enhancement processing on the differential field picture set to generate an enhanced data set; constructing a target network model; and inputting the enhanced data set into the target network model to train the target network model.

[0010] As an improvement of the above scheme, when training the target network model, the enhanced data set is input into the generator to extract causal information; the causal extractor constructs a correlation matrix, a factor decomposition loss and a classification supervision loss according to the causal information, and makes the non-diagonal elements of the correlation matrix close to 0, and minimizes the factor decomposition loss to obtain causal factors; the classifier is subjected to adversarial learning through the adversarial mask module, the upper bound of the classification task in the classifier is minimized to classify the upper dimension, and the lower bound of the classification task in the classifier is maximized to classify the lower dimension, so as to optimize the adversarial mask module; the factor decomposition loss and the classification supervision loss are minimized to optimize the generator, the upper dimension classifier and the lower dimension classifier; and the parameters of the optimized causal extractor, the upper dimension classifier and the lower dimension classifier are updated.

[0011] As an improvement of the above solution, the correlation matrix is:

[0012]

[0013] Among them, <·> is the inner product, R a and R o The same dimensions in represent the positive pairs with maximum correlation, and the different dimensions represent the negative pairs with minimum correlation. Represents the normalized Z-ratio score of the i-th column of the original data, Represents the normalized Z-score of the jth column of augmented data.

[0014] As an improvement of the above scheme, the factorization loss is: Where C is the correlation matrix.

[0015] As an improvement of the above scheme, the classification supervision loss is:

[0016] in, is the classifier, x o is the data after MDF processing, x a For the enhanced data, is the generator, y is the label, and l is the loss function.

[0017] As an improvement of the above scheme, the classification task is expressed as:

[0018]

[0019]

[0020] Among them, is the upper bound of the classification task, is the lower bound of the classification task, is the upper-dimensional classifier,

[0021] is the lower-dimensional classifier, r o and r a represent the learned representations, m o and m a represent the masks, and y is the label.

[0022] As an improvement of the above solution, the step of converting the original fault data into a differential field picture set by the graphic differential field method includes:

[0023] Given a time series X = (x k , k = 1, 2, 3,..., N), define the sequence of N-order time series motifs as:

[0024]

[0025] Among them, is a time series motif of length n, 1 < n ≤ N, and s is the initial time index of the motif;

[0026] Generalize the motif with any delay to define the sequence of generalized motifs as:

[0027]

[0028] Among them, d is an integer delay;

[0029] Define the motif difference sequence as:

[0030]

[0031] Among them,

[0032] Construct a new sequence Recursively add 0 to until N - (n - 1), and initialize as

[0033]

[0034] where 0 = {0, 0, 0,..., 0};

[0035] The graphic difference field is defined as having a value from 1 to d max All possible delay values ​​d The stack:

[0036]

[0037] Generate n-1 channel MDF images, the i-th th The MDF image of the channel is:

[0038]

[0039] in,

[0040] Each channel of the MDF image is defined as:

[0041]

[0042] Where ⊙ represents the Hadamard product, represent 180 degree rotation;

[0043] Define K n for:

[0044]

[0045] As an improvement of the above-mentioned scheme, the step of performing data enhancement processing on the difference field picture set to generate an enhanced data set includes: performing Fourier transform on the difference field picture set; performing interpolation processing on the difference field picture set after the Fourier transform; and performing inverse Fourier transform on the difference field picture set after the interpolation processing to generate an enhanced data set.

[0046] Correspondingly, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned fault diagnosis method based on the causal mechanism when executing the computer program.

[0047] The implementation of the present invention has the following beneficial effects:

[0048] The present invention proposes a fault diagnosis method based on causal mechanism, aiming to solve the problem of existing methods' reliance on data correlation. Specifically:

[0049] The present invention applies the structural causal model mechanism to fault diagnosis, and combines the ADIG framework with the structural causal mechanism model to propose a new network framework with strong generalization ability - the target network model;

[0050] At the same time, the present invention introduces a structural causal model to formally describe the DG problem and mine the intrinsic causal mechanism between data and labels to obtain better generalization ability;

[0051] More preferably, the present invention introduces the MDF method to process the original data so that the network structure can obtain deeper features. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of an embodiment of a fault diagnosis method based on a causal mechanism of the present invention;

[0053] Figure 2 It is a structural schematic diagram of the target network model in the present invention;

[0054] Figure 3 is a flow chart of an embodiment of a training method for a target network model in the present invention;

[0055] Figure 4 It is the t-SNE graph of the CWRU dataset in the present invention;

[0056] Figure 5 It is the t-SNE graph of the MFPT data set in the present invention;

[0057] Figure 6 It is a t-SNE diagram of the comprehensive data set in the present invention;

[0058] Figure 7 It is the confusion matrix diagram of the CWRU data set in the present invention;

[0059] Figure 8 It is the confusion matrix diagram of the MFPT data set in the present invention;

[0060] Fig. 9 It is the confusion matrix diagram of the comprehensive data set in the present invention. DETAILED DESCRIPTION

[0061] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0062] See also Figure 1 , Figure 1 An embodiment of the fault diagnosis method based on the causal mechanism of the present invention is shown, which includes:

[0063] S101, obtaining target domain data;

[0064] S102, inputting the target domain data into a pre-trained target network model to classify fault information.

[0065] It should be noted that the present invention applies the structural causal model mechanism to fault diagnosis, and combines the ADIG framework with the structural causal mechanism model to propose a new network framework with strong generalization ability - the target network model.

[0066] As Figure 2 shown, the target network model in the present invention includes a generator, a causal extractor, an adversarial mask module, and a classifier. The classifier includes an upper-dimensional classifier and a lower-dimensional classifier. Specifically:

[0067] The generator extracts causal information from the target domain data;

[0068] The causal extractor uses causal intervention to extract causal factors related to the category from the causal information. It should be noted that each original data is composed of a mixture of causal factors and non-causal factors. Among them, only the causal factors affect the category label. The present invention sets the information related to the category in the data as causal factors, and its relationship with the label is independent of the domain. The causal extractor uses causal intervention to complete the extraction of causal factors from the original input.

[0069] During model training, the adversarial mask module performs adversarial learning on the upper-dimensional classifier and the lower-dimensional classifier, so that the upper-dimensional classifier and the lower-dimensional classifier learn knowledge related to faults, and thus classify the fault information according to the causal factors.

[0070] See Figure 3 , Figure 3 shows an embodiment of the training method of the target network model in the present invention, which includes:

[0071] S201, obtain the original fault data of multiple domains;

[0072] S202, convert the original fault data into a differential field picture set by the graphical differential field method;

[0073] Specifically, the steps of converting the original fault data into a differential field picture set by the graphical differential field method include:

[0074] (1) Given a time series X = (x k , k = 1, 2, 3,..., N), define the sequence of N-order time series motifs as:

[0075]

[0076] where is a time series motif of length n, 1 < n ≤ N, s is the initial time index of the motif,

[0077]

[0078] Typically, It is a double mother motif. is a ternary motif,

[0079] It is a four-primary motif.

[0080] In the above definition of motifs, the delays between adjacent points in a single motif are first units; motifs with larger delays can detect long-range patterns in the time series.

[0081] (2) The motif is generalized to have arbitrary delays to redefine the sequence of generalized motifs as:

[0082]

[0083] in, d is an integer delay, and its value range is

[0084] (3) The ordered pattern of motifs in the definition of permutation entropy is based on comparing adjacent values, while the relative amplitude can better reflect the detailed information of the pattern. The motif difference sequence is defined as:

[0085]

[0086] in,

[0087] (4) Due to have different lengths, so the new sequence are constructed to be of the same length; and recursively give Add 0 until N-(n-1), The initial value is

[0088]

[0089] Among them, the size of 0={0,0,0,…,0} is n-1;

[0090] (5) Define the pattern difference field (MDF) as having a value from 1 to d max All possible delay values ​​d The stack:

[0091]

[0092] (6) Generate n-1 channel MDF images accordingly, the i-th th The MDF image with 1≤i≤n-1 channels is:

[0093]

[0094] in,

[0095] (7) To fix A large number of zeros in the MDF image define each channel as:

[0096]

[0097] Where ⊙ represents the Hadamard product, represent 180 degree rotation;

[0098] (8) To prevent the two arrays from overlapping, define K n for:

[0099]

[0100] S203, performing data enhancement processing on the difference field picture set to generate an enhanced data set;

[0101] Specifically, the step of performing data enhancement processing on the difference field picture set to generate an enhanced data set includes:

[0102] (1) Perform Fourier transform on the difference field image set;

[0103] Representation learning based on causal mechanism consists of causal intervention module, causal factor decomposition module and mask intervention module. In the causal intervention module, the causal factor S is extracted from the non-causal factor. The data after MDF data processing is defined as x o , whose Fourier transform is:

[0104]

[0105] They represent the amplitude and phase components of the data after Fourier transform.

[0106] (2) interpolating the Fourier transformed differential field image set;

[0107] Then randomly sample data (x') from any source domain o The interference information is interpolated between the amplitude spectra.

[0108]

[0109] Among them, λ~U(0,η) and η control the intensity of the disturbance, Represents the amplitude of the perturbed data.

[0110] (3) Perform inverse Fourier transform on the interpolated difference field image set to generate an enhanced data set.

[0111] Combine the perturbed data with the original data, and then perform inverse Fourier transform to form enhanced data

[0112]

[0113] Represents the inverse Fourier transform of the perturbed data, x a Represents the enhanced data.

[0114] S204, constructing a target network model;

[0115] S205, inputting the enhanced data set into the target network model to train the target network model.

[0116] Further, when training the target network model:

[0117] (1) Feed the augmented dataset into the generator to extract causal information;

[0118] In order to distinguish the causal factor S from the non-causal factor U, we first use the representation R to simulate the causal factor. Depend on where N is the number of dimensions. Simulating interference with non-causal factors does not change the causal factors, and optimizing the generator keeps the intervention alone unchanged:

[0119]

[0120] in, Represents the normalized Z-ratio score of the i-th column of the original data, Represents the normalized Z-score of the jth column of the augmented data. The COR function is used to measure the correlation of representations before and after the intervention to achieve the purpose.

[0121] (2) The causal extractor constructs a correlation matrix, factorization loss, and classification supervision loss based on the causal information, and makes the non-diagonal elements of the correlation matrix close to 0, minimizing the factorization loss to obtain the causal factors;

[0122] The causal factorization module is two independent dimensions:

[0123]

[0124] In order to save computational cost, R is ignored. a and R o After the constraints in , we agree to optimize the above two formulas and establish the correlation matrix C

[0125]

[0126] Among them, <·> represents the inner product, R a and Ro The same dimensions in represent the positive pairs with maximum correlation, and the different dimensions represent the negative pairs with minimum correlation. On this basis, the factorization loss is designed:

[0127]

[0128] Where C is the correlation matrix.

[0129] Accordingly, the designed classification supervision loss is:

[0130]

[0131] in, is the classifier, x o is the data after MDF processing, x a For the enhanced data, is the generator, y is the label, and l is the loss function.

[0132] By minimizing the loss, noisy and correlated representations can be transformed into independent and clean representations.

[0133] (3) The classifier is subjected to adversarial learning through the adversarial mask module, the upper bound of the classification task in the classifier is minimized to classify the upper dimension, and the lower bound of the classification task in the classifier is maximized to classify the lower dimension, so as to optimize the adversarial mask module;

[0134] Since it is impossible to determine that every dimension learned is important, it is necessary to detect each dimension and force them to make more contributions. In order to detect low dimensions, a neural network-based adversarial mask module is designed. Represented by, and the scale K∈(0,1) is used to represent the quality of the dimension.

[0135]

[0136] Then the GumbelSoftmax technique is used to sample masks with κN values ​​close to 1.

[0137] The learned representation is then multiplied by the obtained mask m and 1-m, and then input into the classifier. The classification task can be expressed as:

[0138]

[0139]

[0140] Among them, Lsup cls is the upper bound of the classification task, and Linf cls is the lower bound of the classification task. and Represent the upper and lower bound classifiers, r o and ra represents the learned representation, m o and m a represents the mask and y is the label.

[0141] Accordingly, the adversarial mask module can be optimized by minimizing the upper bound and maximizing the lower bound.

[0142] (4) Minimize the factorization loss and classification supervision loss to optimize the generator, upper dimension classifier, and lower dimension classifier;

[0143] In practical applications, the effect of optimizing the generator and classifier can be achieved by minimizing the two supervised losses.

[0144] For the sake of clarity, a unified optimization goal is proposed:

[0145]

[0146] Where τ is a trade-off parameter, is the upper bound of the classification task, is the lower bound for the classification task, represents the factorization loss.

[0147] (5) Update the parameters of the optimized causal extractor, upper dimension classifier, and lower dimension classifier.

[0148] From the above, it can be seen that the present invention introduces the MDF method to process the original data, so that the network structure can obtain deeper features; at the same time, the present invention introduces the structural causal model (SCM) to formally describe the DG problem, thereby applying the structural causal model mechanism to fault diagnosis, mining the intrinsic causal mechanism between data and labels, and obtaining better generalization ability.

[0149] The present invention is further described in detail below in conjunction with specific embodiments:

[0150] (1) Dataset

[0151] CWRU dataset: The experimental data comes from the Bearing Data Center of Case Western Reserve University in the United States. The vibration signal is measured by a bearing test system, which consists of a motor, a dynamometer, and a control circuit. The bearing model is SKF6205. A total of 10 bearing conditions are considered, including four bearing health states, namely normal (N), inner ring fault (IRF), outer ring fault (ORF), and roller fault (RF) with different degrees of fault severity, namely, the fault diameters are 7mm, 14mm, and 21mm, respectively. Therefore, there are 9 fault states and 1 healthy state. In the experiment, 12khz sampled data was selected, and four different motor speeds (1797rpm, 1772rpm, 1750rpm, and 1730rpm) were applied to the test bearing, which were regarded as four different working conditions (A, B, C, and D), each of which contains 3500 samples (3500 samples for each of the 9 fault types and 3500 samples for the healthy state).

[0152] MFPT (Machinery Failure Prevention Technology Society) dataset: This dataset includes data from a bearing test bench (nominal bearing data, outer race faults under various loads, inner race faults under various loads) and three real faults. 3 baseline conditions: 270 lb load, 25 Hz input shaft speed, 97,656 sps sampling rate for 6 seconds; 3 outer race fault conditions: 270 lb load, 25 Hz input shaft speed, 97,656 sps sampling rate for 6 seconds; 7 outer race fault conditions: 25, 50, 100, 150, 200, 250, 300 lb load, 25 Hz input shaft speed, 48,828 sps sampling rate for 3 seconds (bearing resonance found to be less than 20 kHz); 7 inner race fault conditions: 0, 50, 100, 150, 200, 250, 300 lb load, 25 Hz input shaft speed, 48,828 sps sampling rate for 3 seconds; Also included are three real world example files: one for an intermediate shaft bearing from a wind turbine (the data structure contains the bearing speed and shaft speed), one for an oil pump shaft bearing from a wind turbine, and one for a real world planetary bearing fault).

[0153] Actual petrochemical unit data set: The experimental data comes from the HZ-1 rotating unit multi-fault diagnosis experimental platform in the Guangdong Provincial Key Laboratory of Petrochemical Equipment Fault Diagnosis. The experimental platform consists of a motor, a test shaft, a gearbox, a bearing seat and a magnetic powder brake. This experimental platform can simulate common fault conditions in rolling bearings. The data set contains six different fault conditions, namely, large gear missing teeth (F0), large gear missing teeth and wear on the outer ring of the left bearing (F1), large gear missing teeth and wear on the inner ring of the left bearing (F2), large gear missing teeth and missing balls on the left bearing (F3), both large and small gears of the gearbox are missing teeth (F4), and normal waveform data (F5). The vibration acceleration signal data is collected using a vibration sensor installed above the bearing seat.

[0154] Cincinnati Dataset (IMS): Constructed by the Center for Intelligent Maintenance Systems at the University of Cincinnati. A simulated degradation experiment was conducted on the bearings on a bearing test bench, which included a motor with a rotation speed of 2000RPM and four bearings mounted on the same shaft. During the experiment, the vibration signal generated by the bearing during the operation of the test bench was collected by an accelerometer installed on the bearing seat, with a sampling frequency of 20KHz. This dataset is the full life cycle data of the bearing. In multiple operating failure tests, three bearings suffered outer ring failure (ORF), inner ring failure (IRF) and ball failure (BF) respectively. The vibration data when the failure occurred was selected to construct the IMS bearing dataset required for the experiment; the dataset contains four health states: normal state (N), inner ring failure, outer ring failure and ball failure.

[0155] (2) Experimental details

[0156] In order to verify the effectiveness of the method, 12 generalization tasks were studied:

[0157] For Task 1, there are four domains from the Western Reserve University dataset, represented by A1, B1, C1, and D1, which represent four different motor speeds (1797rpm, 1772rpm, 1750rpm, and 1730rpm), and each domain contains 10 categories, which are the fault and normal data of inner and outer rings of different diameters. The specific division of the Western Reserve University dataset is shown in Table 1 below:

[0158] Table 1

[0159] Inner ring, outer ring, roller (7mm, 14mm and 21mm) and normal data <![CDATA[A1 (Rotation speed 1797 rpm)]]> <![CDATA[N a1 、I 7a1 、I 4a1 、I 2a1 、O 7a1 、O 4a1 、O 2a1 、R 7a1 、R 4a1 、R 2a1 ]]> <![CDATA[B1 (Rotational speed 1772 rpm)]]> <![CDATA[N b1 、I 7b1 、I 4b1 、I 2b1 、O 7b1 、O 4b1 、O 2b1 、R 7b1 、R 4b1 、R 2b1 ]]> <![CDATA[C1 (Rotational speed: 1750 rpm)]]> <![CDATA[N c1 、I 7c1 、I 4c1 、I 2c1 、O 7c1 、O 4c1 、O 2c1 、R 7c1 、R 4c1 、R 2c1 ]]> <![CDATA[D1 (Rotational speed 1730 rpm)]]> <![CDATA[N d1 、I 7d1 、I 4d1 、I 2d1 、O 7d1 、O 4d1 、O 2d1 、R 7d1 、R 4d1 、R 2d1 ]]>

[0160] For Task 2, the four domains from the MFPT (Mechanical Fault Prevention Technology Society) data set are represented by A2, B2, C2, and D2 respectively; the A2 domain contains inner ring faults with loads of 50 and 300, outer ring faults with loads of 200, and outer ring faults with loads of 270; the B2 domain contains inner ring faults with loads of 100 and 150, outer ring faults with loads of 250, and outer ring faults with loads of 270; the C2 domain contains inner ring faults with loads of 200, outer ring faults with loads of 0 and 50, and one normal data; the D2 domain contains inner ring faults with loads of 250, outer ring faults with loads of 100 and 150, and one normal data. The specific division of the MFPT data set is shown in Table 2 below:

[0161] Table 2

[0162]

[0163] For Task 3, there are four domains from the Western Reserve dataset, MFPT dataset, petrochemical dataset, and Cincinnati dataset, represented by A3, B3, C3, and D3 respectively. The A3 domain contains the inner ring, outer ring, and roller fault data and normal data with a speed of 1797rpm, the B3 domain contains the inner ring and outer ring faults with loads of 50 and 300, the C3 domain contains the gear missing teeth, gear missing teeth and left bearing outer ring wear, gear missing teeth and left bearing inner ring wear, gear missing teeth and left bearing missing ball faults, and the D3 domain contains four bearing vibration data with a sampling frequency of 20khz. The specific division of the comprehensive data set is shown in Table 3 below:

[0164] Table 3

[0165] Western Reserve Dataset, MFPT Dataset, Petrochemical Dataset, and Cincinnati Dataset <![CDATA[A3]]> <![CDATA[N a1 、I 7a1 、O 7a1 、R 7a1 ]]> <![CDATA[B3]]> <![CDATA[I 50 、I 300 、The 50 、The 300 ]]> <![CDATA[C3]]> <![CDATA[I y 、O y 、R y 、T y ]]> <![CDATA[D3]]> <![CDATA[I f 、O f 、R f 、S n ]]>

[0166] The commonly used "leave one out" method is adopted in the experiment. This experiment specifies one domain as the unseen target domain for evaluation and trains the other domains. For all datasets, the fault data is first processed using the MDF method to convert the one-dimensional data into MMDF images, and then the network is trained from scratch using a mini-batch SGD optimizer with a batch size of 128, a momentum of 0.9, and a weight decay of 5e-4 for 50 epochs. The learning rate decays by 0.1 every 20 epochs. For the hyperparameters κ and τ, their values ​​are selected based on the results on the source validation set, because the target domain is invisible during training, and all results are reported based on the average accuracy of three repeated runs.

[0167] (3) Comparison method

[0168] In order to evaluate the performance and superiority of the proposed method, the following methods are adopted as comparison methods, and all methods use the same convolutional neural network structure as the proposed method.

[0169] Method 1 (L2AOT): See the paper "Kaiyang Zhou, Yongxin Yang, Timothy M. Hospedales, and Tao Xiang. Learning to generate novel domains for domain generalization. In ECCV, pages 561–578, 2020.2, 4, 6, 7" which proposes to enhance the handling of domain generalization problems through optimal transfer learning. The core idea is to learn a conditional generator network that maps source domain images to pseudo-new domains, and then combine the source domain and pseudo-new domain images to train the actual task model. In order to train the generator, this method maximizes the distance between the source domain and the generated pseudo-new domain measured by optimal transfer (OT). After that, two losses, namely cycle consistency loss and classification loss, are further applied to the generator to maintain structural and semantic consistency, respectively.

[0170] Method 2 (CSD): See the paper "Vihari Piratla, Praneeth Netrapalli, and SunitaSarawagi. Efficient domain generalization via commonspecific low-rank decomposition. In ICML, pages 7728–7738, 2020.2, 7". Its core is to jointly learn a common component (generalized to new domains) and a domain-specific component (overfitting on the training domain); the domain-specific component is discarded after training, and only the common component is retained; it only involves modifying the final linear classification layer of any given neural network architecture.

[0171] Method 3 (RESNET): A method that uses residual blocks to solve the gradient vanishing and gradient exploding problems of deep neural networks. In the feature extraction part, residual blocks with cross-layer connections are used, and the network training process is optimized through batch normalization, ReLU and other technologies; in the classifier part, global average pooling is used instead of the fully connected layer to reduce the number of parameters and the risk of overfitting. The specific training tasks are shown in Table 4 below:

[0172] Table 4

[0173] Label Task Training set Test Set 1 <![CDATA[A1]]> <![CDATA[B1、C1、D1]]> <![CDATA[N a1 、I 7a1 、I 4a1 、I 2a1 、O 7a1 、O 4a1 、O 2a1 、R 7a1 、R 4a1 、R 2a1 ]]> 2 <![CDATA[B1]]> <![CDATA[A1、C1、D1]]> <![CDATA[N b1 、I 7b1 、I 4b1 、I 2b1 、O 7b1 、O 4b1 、O 2b1 、R 7b1 、R 4b1 、R 2b1 ]]> 3 <![CDATA[C1]]> <![CDATA[A1、B1、D1]]> <![CDATA[N c1 、I 7c1 、I 4c1 、I 2c1 、O 7c1 、O 4c1 、O 2c1 、R 7c1 、R 4c1 、R 2c1 ]]> 4 <![CDATA[D1]]> <![CDATA[A1、B1、C1]]> <![CDATA[N d1 、I 7d1 、I 4d1 、I 2d1 、O 7d1 、O 4d1 、O 2d1 、R 7d1 、R 4d1 、R 2d1 ]]> 5 <![CDATA[A2]]> <![CDATA[B2、C2、D2]]> <![CDATA[I 50 、I 300 、The 200 、The 270 ]]> 6 <![CDATA[B2]]> <![CDATA[A2、C2、D2]]> <![CDATA[I 100 、I 150 、The 250 、The 270 ]]> 7 <![CDATA[C2]]> <![CDATA[A2、B2、D2]]> <![CDATA[I 200 、O0、O 50 、N1]]> 8 <![CDATA[D2]]> <![CDATA[A2、B2、C2]]> <![CDATA[I 250 、O 100 、O 150 、N2]]> 9 <![CDATA[A3]]> <![CDATA[B3、C3、D3]]> <![CDATA[N a1 、I 7a1 、O 7a1 、R 7a1 ]]> 10 <![CDATA[B3]]> <![CDATA[A3、C3、D3]]> <![CDATA[I 50 、I 300 、The 50 、The 300 ]]> 11 <![CDATA[C3]]> <![CDATA[A3、B3、D3]]> <![CDATA[I y 、O y 、R y 、T y ]]> 12 <![CDATA[D3]]> <![CDATA[A3、B3、C3]]> <![CDATA[I f 、O f 、R f 、S n ]]>

[0174] (4) Experimental results and analysis

[0175] Accuracy is defined as the number of correctly classified test samples divided by the total number of test samples and is used to quantify the diagnostic performance. To reduce the impact of randomness and evaluate robustness, each task was repeated fifty times. The accuracy of each individual target domain is shown in Table 5 below:

[0176] Table 5

[0177]

[0178]

[0179] As can be seen from the above, RESNET obtains the worst overall average accuracy, which is much lower than other methods, and its performance varies greatly. In the worst task, it can be reduced to 64.05%. The results show that deep learning methods without migration strategies are not well suited for all tasks. For CSD and L2AOT, they achieved an accuracy of more than 80% in all tasks. The method used in the present invention can exceed the test accuracy of 5.9% at most compared with the three comparison methods, which shows the importance of mining the intrinsic causal mechanism between data and labels, rather than the superficial statistical correlation; all test results are better than the comparison methods, which shows that the present invention has better overall performance and stability

[0180] Specifically, the proposed method has the best overall accuracy and stability, and it outperforms other methods in almost all individual tasks except task three.

[0181] (5) Visualization Analysis

[0182] In order to further evaluate the effectiveness of the present invention, t-distributed stochastic neighbor embedding (t-SNE) is used for feature visualization, wherein the subscript of the category of each task is represented by & in the t-SNE diagram.

[0183] Combination Figures 4 to 6 As shown, the features extracted by the present invention show good inter-class separability and intra-class aggregation. The features extracted in the first task formed 10 clusters, which had the best clustering results in terms of inter-class separability and intra-class aggregation. However, in the second and third tasks, the distance boundaries of the features were obvious, but they appeared to be more chaotic. The reason for this phenomenon is that the difference in the domain is small, and the difference between the original vibration signals extracted between the classes that are difficult to distinguish is small. The feature visualization results show that this method can effectively aggregate the target samples with the corresponding source samples, and the extracted features have the best separability.

[0184] Accordingly, the confusion matrices of the present invention on the three tasks are as follows: Figures 7 to 9 As shown, where:

[0185] like Figure 7As shown, on the Western Reserve University dataset, the accuracy of each category is 100%, which reflects the effectiveness of the present invention.

[0186] like Figure 8 As shown, in Task 2, although the classification of some inner circle faults did not reach 100%, the overall effect was above 95%.

[0187] like Fig. 9 As shown in the figure, on the cross-domain dataset, the classification effect is lower than the first two tasks, but all the classification effects are not lower than those of CSD, L2AOT, and RESNET methods. This shows the effectiveness of the present invention, and the causal mechanism can effectively reduce the model's dependence on data.

[0188] In summary, this paper proposes a fault diagnosis method based on causal mechanism, aiming to solve the problem of existing methods' reliance on data correlation. This paper uses the MDF method to process raw data, allowing the network structure to extract features more deeply. Comprehensive case studies show that the model has high diagnostic accuracy and robustness, fully demonstrating its great potential to become a fault diagnosis tool for industrial machines.

[0189] Correspondingly, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned fault diagnosis method based on the causal mechanism when executing the computer program.

[0190] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A fault diagnosis method based on causal mechanism, characterized in that: include: Acquire target domain data, and input the target domain data into a pre-trained target network model to classify fault information; The target network model includes a generator, a causal extractor, an adversarial mask module and a classifier, wherein the classifier includes an upper dimension classifier and a lower dimension classifier, wherein the generator extracts causal information from the target domain data, the causal extractor extracts causal factors related to the category from the causal information using causal intervention, and the adversarial mask module performs adversarial learning on the upper dimension classifier and the lower dimension classifier, so that the upper dimension classifier and the lower dimension classifier classify fault information according to the causal factors; The training method of the target network model includes: obtaining original fault data of multiple domains; converting the original fault data into a differential field picture set by a graphic differential field method; performing data enhancement processing on the differential field picture set to generate an enhanced data set; constructing a target network model; inputting the enhanced data set into the target network model to train the target network model; When training the target network model, the enhanced data set is input into the generator to extract causal information; the causal extractor constructs a correlation matrix, a factor decomposition loss and a classification supervision loss according to the causal information, and makes the non-diagonal elements of the correlation matrix close to 0, and minimizes the factor decomposition loss to obtain causal factors; the classifier is subjected to adversarial learning through the adversarial mask module, the upper bound of the classification task in the classifier is minimized to classify the upper dimension, and the lower bound of the classification task in the classifier is maximized to classify the lower dimension, so as to optimize the adversarial mask module; the factor decomposition loss and the classification supervision loss are minimized to optimize the generator, the upper dimension classifier and the lower dimension classifier; the parameters of the optimized causal extractor, the upper dimension classifier and the lower dimension classifier are updated.

2. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The correlation matrix is: Among them, <·> is the inner product, R a and R o The same dimensions in represent the positive pairs with maximum correlation, and the different dimensions represent the negative pairs with minimum correlation. Represents the normalized Z-ratio score of the i-th column of the original data, Represents the normalized Z-score of the jth column of augmented data.

3. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The factorization loss is: Where C is the correlation matrix, ||·|| F Represents the F-norm.

4. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The classification supervision loss is: in, is the classifier, x o is the data after MDF processing, x a For the enhanced data, is the generator, y is the label, l is the loss function, and MDF is the graph difference field.

5. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The classification task is expressed as: in, is the upper bound of the classification task, is the lower bound for the classification task, is the upper dimension classifier, is the lower dimension classifier, r o and r a represents the learned representation, m o and m a represents the mask and y is the label.

6. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The step of converting the original fault data into a differential field picture set by a graphic differential field method comprises: Given a time series X = (x k , k=1,2,3,…,N), the sequence of N-order time series motifs is defined as: Among them, is a time series motif of length n, where 1 < n ≤ N, and s is the initial time index of the motif; The motifs are generalized to have arbitrary delays to define the sequence of generalized motifs as: in, d is the integer delay; The motif difference sequence is defined as: in, Constructing a new sequence Recursively give Add 0 until N-(n-1), and The initial value is Where, 0 = {0, 0, 0, …, 0}; The graphic difference field is defined as having a value from 1 to d max All possible delay values ​​d The stack: Generate n-1 channel MDF images, the i-th th The MDF image of the channels is: in, 1≤i≤n-1, MDF is the graphic difference field; Each channel of the MDF image is defined as: Where ⊙ represents the Hadamard product, G′ i n represent 180 degree rotation; Define K n for:

7. The fault diagnosis method based on causal mechanism as claimed in claim 1, characterized in that: The step of performing data enhancement processing on the difference field picture set to generate an enhanced data set includes: Performing Fourier transformation on the difference field picture set; Performing interpolation processing on the differential field picture set after Fourier transformation; The interpolated difference field image set is subjected to inverse Fourier transform to generate an enhanced data set.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for dynamic pattern recognition based on gap metrics

    CN109063277A

  • Communication signal classification and recognition method based on multi-feature association and Bayesian network

    CN109450834A