Equipment fault diagnosis method and device guided by multi-stage distributed correction

By performing fast Fourier transform and feature extraction on the equipment vibration signal, using power transformation and clustering technology to correct the data distribution, and generating new label features to expand the training data set, the problem of inaccurate equipment fault diagnosis is solved and the efficiency of small equipment is improved. Fault diagnosis accuracy in sample scenarios.

CN116089860BActive Publication Date: 2024-09-20SUZHOU UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310035287.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2024-09-20
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

Equipment fault diagnosis in the existing technology is not accurate. Especially when the labeled data is limited, the performance of the deep learning method will drop sharply, and the accuracy of fault diagnosis cannot be guaranteed.

Method used

By collecting equipment vibration signals, perform fast Fourier transform and feature extraction, use power transformation to make the data conform to Gaussian distribution, cluster and correct it, generate new label features to expand the training data set, and train classifiers for fault diagnosis .

Benefits of technology

It improves the accuracy of fault diagnosis in small sample scenarios, enhances the diagnostic performance of the model, and realizes intelligent fault diagnosis under limited labeled data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089860B
    Figure CN116089860B
Patent Text Reader

Abstract

The present invention relates to the field of deep learning technology, and more particularly to a method, device and computer storage medium for diagnosing equipment faults guided by multi-stage distribution correction. The equipment fault diagnosis method described in the present invention performs power transformation on unlabeled query sets and labeled query sets to make them conform to Gaussian distribution, clusters multiple query set features that have undergone power transformation into multiple clusters and allocates each support set feature, uses the Gaussian statistics of the unlabeled query set to correct the distribution of the labeled support set, and the distribution correction can make the support set distribution closer to the true distribution of the query set. By sampling from the corrected distribution to add more features to expand the training data set to train the classifier, the diagnostic performance of the model in small sample scenarios can be improved, and intelligent fault diagnosis in small sample scenarios can be achieved, thereby improving the accuracy of fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a method, a device and a computer storage medium for diagnosing equipment faults guided by multi-stage distribution correction. Background Art

[0002] In the existing technology, equipment plays a very important role in industrial production, and its stable operation is crucial for efficient industrial production. However, equipment often works in harsh environments such as high speed and high pressure. Key components in rotating equipment, such as bearings and gears, are prone to failure after working for a long time in such an environment. In order to avoid property losses and safety accidents caused by equipment failure, timely equipment health monitoring and fault diagnosis are particularly necessary. Traditional fault diagnosis technology relies on manual analysis and requires rich prior diagnostic knowledge. The low efficiency and high error rate of manual analysis have hindered the development of fault diagnosis technology. In order to overcome these limitations, intelligent fault diagnosis has received more and more attention.

[0003] In recent years, deep learning has developed rapidly in many fields with its powerful data processing capabilities. Compared with traditional diagnostic methods, deep learning-based diagnostic methods have significantly improved diagnostic efficiency and accuracy, and have become the mainstream technology for intelligent fault diagnosis. However, many deep learning methods are extremely sensitive to the scale of labeled data, and these methods can only achieve satisfactory performance when there is a large amount of labeled data available for training. In practical applications, it is difficult to collect enough labeled data (i.e., fault cases) for the following reasons: In most cases, the equipment is working in a healthy state and rarely fails. Therefore, healthy data accounts for the majority of the collected data, while the scale of fault data is relatively small; the equipment working environment is complex, with large noise interference and changeable working conditions. Even data for the same fault may follow different data distributions. It is unrealistic to collect and annotate fault data under various working conditions. When only limited labeled data is available for model training, the performance of deep learning methods drops sharply, and the accuracy of fault diagnosis cannot be guaranteed. Summary of the invention

[0004] Therefore, the technical problem to be solved by the present invention is to overcome the problem of inaccurate fault diagnosis in the prior art.

[0005] In order to solve the above technical problems, the present invention provides a method for diagnosing equipment faults, comprising:

[0006] Collect vibration signals of equipment in various health states under different working conditions, perform fast Fourier transform, convert them into frequency domain signals, obtain a data set, divide the data set into base domain data and test domain data under different working conditions, mark all the base domain data, divide the test domain data into a support set and a query set according to a preset ratio, and mark the support set;

[0007] Input the test domain data into a feature extractor pre-trained with the base domain data to perform feature extraction to obtain test domain data features, and perform power transformation on the test domain data to make it conform to Gaussian distribution, wherein the test domain data features include multiple query set features and multiple support set features;

[0008] Cluster multiple query set features after power transformation into multiple clusters, calculate the cosine similarity between each support set feature after power transformation and each cluster center feature, assign it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and extract the Gaussian statistics of each cluster to correct the distribution of the corresponding support set features;

[0009] Sampling from the corrected support set feature distribution to generate new label features;

[0010] Inputting the label features and support set features into a classifier for training to obtain a trained classifier;

[0011] The vibration signal of the device under test is input into the pre-trained feature extractor to obtain the vibration signal feature of the device under test, which is then input into the trained classifier to obtain the fault diagnosis result.

[0012] Preferably, the formula of the power transformation is expressed as:

[0013]

[0014] Among them, ε is a hyperparameter, x is the input data, and λ is a hyperparameter that controls the skewness of the distribution. is the output after power transformation.

[0015] Preferably, clustering the plurality of query set features into a plurality of clusters comprises:

[0016] Step 1: Initialize the cluster center set V = {v1,v2,...,v N}, N represents the number of clusters;

[0017] Step 2: Calculate the query set feature x after power transformation k With cluster center v i The Euclidean distance between Among them, d∈1,2,3...D, d represents the dimension, D represents the total number of dimensions, x k(d) represents the k-th query set feature x after power transformation k The data on the dth dimension, v i (d) represents the i-th cluster center v i Data on the dth dimension;

[0018] Step 3: Create a membership matrix Where c is the number of clusters, m∈(1,+∞) is the fuzziness parameter, k=1,2,3...n q ,n q is the number of query set features;

[0019] Step 4: Cluster multiple query set features after power transformation to obtain a new cluster center set V′={v′1,v′2,...,v′ N}, in, is the membership degree of the k-th query set feature to the i-th cluster, and n is the number of query set features;

[0020] Step 5: Calculate the optimization function

[0021] Step 6: Repeat steps 2 to 5 above until the first iteration termination condition is met or the maximum number of iterations is reached. The first iteration termination condition is Where δ is the error threshold, represents the number of iteration steps, For iteration The feature membership after the step is For iteration The feature membership after the step.

[0022] Preferably, the calculation formula for calculating the cosine similarity between each support set feature after power transformation and each cluster center feature is:

[0023]

[0024] Among them, d represents the dimension, x represents the support set feature after power transformation, v represents the cluster center feature, x(k) represents the data on the kth dimension of the support set feature x after power transformation, and v(k) represents the data on the kth dimension of the cluster center feature v.

[0025] Preferably, extracting Gaussian statistics of each cluster includes:

[0026] Extract the mean of the i-th cluster

[0027] Extract the covariance of the ith cluster

[0028] in, represents the i-th cluster, represents the query set features after power transformation, is the number of query set features in the i-th cluster, and T represents the transpose.

[0029] Preferably, the corrected support set feature distribution

[0030] in:

[0031]

[0032] represents the Kth support set feature in the ith cluster, α is a hyperparameter that controls the Gaussian statistic weight of the corresponding cluster, and β is a hyperparameter that affects the degree of discreteness of the correction distribution.

[0033] Preferably, the sampling is performed from the corrected support set feature distribution to generate new marker features:

[0034]

[0035] in, represents the generated features of the i-th cluster, y i is the label of the support set feature in the ith cluster, Represents a Gaussian distribution.

[0036] Preferably, the training loss of the classifier is:

[0037]

[0038] in, represents the cross entropy loss function, n s and denote the number of support set features and generated label features, respectively. represents the support feature set after power transformation, G total Represents the set of marker features generated by all clusters.

[0039] The present invention also provides a device for diagnosing equipment faults, comprising:

[0040] A data set construction module is used to collect vibration signals of equipment in various health states under different working conditions, and perform fast Fourier transform to convert them into frequency domain signals to obtain a data set, divide the data set into base domain data and test domain data under different working conditions, mark all the base domain data, divide the test domain data into a support set and a query set according to a preset ratio, and mark the support set;

[0041] A data preprocessing module is used to input the test domain data into a feature extractor pre-trained with the base domain data, perform feature extraction, obtain test domain data features, and perform power transformation on the test domain data to make it conform to Gaussian distribution, wherein the test domain data features include multiple query set features and multiple support set features;

[0042] A feature distribution correction module is used to cluster multiple query set features that have undergone power transformation into multiple clusters, calculate the cosine similarity between each support set feature that has undergone power transformation and each cluster center feature, assign it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and extract the Gaussian statistics of each cluster to correct the distribution of the corresponding support set features;

[0043] A data augmentation module is used to sample from the corrected support set feature distribution to generate new label features;

[0044] A classifier training module, used for inputting the label features and support set features into a classifier for training to obtain a trained classifier;

[0045] The fault diagnosis module is used to input the vibration signal of the device under test into the pre-trained feature extractor to obtain the vibration signal feature of the device under test, and input the feature into the trained classifier to obtain the fault diagnosis result.

[0046] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned device fault diagnosis method are implemented.

[0047] The above technical solution of the present invention has the following advantages compared with the prior art:

[0048] The equipment fault diagnosis method described in the present invention performs power transformation on unlabeled query sets and labeled query sets to make them conform to Gaussian distribution, clusters multiple query set features that have undergone power transformation into multiple clusters and allocates each support set feature, uses the Gaussian statistics of the unlabeled query set to correct the distribution of the labeled support set, and the distribution correction can make the support set distribution closer to the true distribution of the query set. By sampling from the corrected distribution to add more features to expand the training data set to train the classifier, the diagnostic performance of the model in small sample scenarios can be improved, intelligent fault diagnosis in small sample scenarios can be achieved, and the accuracy of fault diagnosis is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0050] Figure 1It is a flow chart of an implementation method of a device fault diagnosis method of the present invention;

[0051] Figure 2 A flow chart of a device fault diagnosis method provided by an embodiment of the present invention;

[0052] Figure 3 Generating a test bench test map for the bearing data of the present invention;

[0053] Figure 4 The diagnosis result confusion matrix of the present invention and five comparison methods under one diagnosis task;

[0054] Figure 5 is the similarity matrix between the test features and the generated features in the diagnosis task of the present invention with only one labeled sample in each fault class;

[0055] Figure 6 A structural block diagram of a device fault diagnosis apparatus provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The core of the present invention is to provide a method, a device and a computer storage medium for diagnosing equipment faults, thereby improving the accuracy of fault diagnosis.

[0057] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] Please refer to Figure 1 and Figure 2 , Figure 1 This is a flow chart for implementing a multi-stage distributed correction-guided equipment fault diagnosis method provided by the present invention. Figure 2 A flow chart of a device fault diagnosis method provided by an embodiment of the present invention; the specific operation steps are as follows:

[0059] S101: collecting vibration signals of equipment in various health states under different working conditions, and performing fast Fourier transform to convert them into frequency domain signals to obtain a data set, dividing the data set into base domain data and test domain data under different working conditions, marking all the base domain data, dividing the test domain data into a support set and a query set according to a preset ratio, and marking the support set;

[0060] S102: Input the test domain data into a feature extractor pre-trained with the base domain data, perform feature extraction, obtain test domain data features, perform power transformation on the features to make them conform to Gaussian distribution, the test domain data features include multiple query set features and multiple support set features;

[0061] The formula of the power transformation is expressed as:

[0062]

[0063] Among them, ε is a very small positive value used to ensure that x+ε is always positive (the default ε=1e-6), is a hyperparameter used to control the degree of reduction of the skewness of the distribution, x is the input data, and λ is a hyperparameter that controls the skewness of the distribution. is the output after power transformation.

[0064] S103: clustering the multiple query set features after power transformation into multiple clusters, calculating the cosine similarity between each support set feature after power transformation and each cluster center feature, assigning it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and extracting the Gaussian statistics of each cluster to correct the distribution of the corresponding support set features;

[0065] Clustering is performed using the fuzzy c-means algorithm:

[0066] Step 1: Initialize the cluster center set V = {v1,v2,...,v N}, N represents the number of clusters;

[0067] Step 2: Calculate the query set feature x after power transformation k With cluster center v i The Euclidean distance between

[0068] Among them, d∈1,2,3...D, d represents the dimension, D represents the total number of dimensions, x k (d) represents the k-th query set feature x after power transformation k The data on the dth dimension, v i (d) represents the i-th cluster center v i Data on the dth dimension;

[0069] Step 3: Create a membership matrix Where c is the number of clusters, m∈(1,+∞) is the fuzziness parameter, k=1,2,3...n q ,n q is the number of query set features;

[0070] Step 4: Cluster multiple query set features after power transformation to obtain a new cluster center set V′={v′1,v′2,...,v′N}, in, is the membership degree of the k-th query set feature to the i-th cluster, and n is the number of query set features;

[0071] Step 5: Calculate the optimization function

[0072] Step 6: Repeat steps 2 to 5 above until the first iteration termination condition is met or the maximum number of iterations is reached. The first iteration termination condition is Where δ is the error threshold, represents the number of iteration steps, For iteration The feature membership after the step is For iteration The feature membership after the step.

[0073] The calculation formula for calculating the cosine similarity between each power-transformed support set feature and each cluster center feature is:

[0074]

[0075] Among them, d represents the dimension, x represents the support set feature after power transformation, v represents the cluster center feature, x(k) represents the data on the kth dimension of the support set feature x after power transformation, and v(k) represents the data on the kth dimension of the cluster center feature v.

[0076] The extracting of Gaussian statistics of each cluster comprises:

[0077] Extract the mean of the i-th cluster

[0078] Extract the covariance of the ith cluster

[0079] in, represents the i-th cluster, represents the query set features after power transformation, is the number of query set features in the i-th cluster, and T represents the transpose.

[0080] The corrected support set feature distribution

[0081] in:

[0082]

[0083] represents the Kth support set feature in the ith cluster, α is a hyperparameter that controls the Gaussian statistic weight of the corresponding cluster, and β is a hyperparameter that affects the degree of discreteness of the correction distribution.

[0084] S104: Sampling from the corrected support set feature distribution to generate new marker features:

[0085]

[0086] in, represents the generated features of the i-th cluster, y i is the label of the support set feature in the ith cluster, Represents a Gaussian distribution.

[0087] S105: inputting the marker features and support set features into a classifier for training to obtain a trained classifier;

[0088] The training loss of the classifier is:

[0089]

[0090] in, represents the cross entropy loss function, n s and denote the number of support set features and generated label features, respectively. represents the support feature set after power transformation, G total Represents the set of marker features generated by all clusters.

[0091] Based on the classification loss, the task-specific classifier parameters can be updated in back-propagation as follows:

[0092]

[0093] Where m(*) represents the moment estimation function of the gradient in the Adam optimization algorithm, η represents the learning rate, and θ c are the classifier network parameters.

[0094] S106: Input the vibration signal of the device under test into the pre-trained feature extractor to obtain the vibration signal features of the device under test, and input the features into the trained classifier to obtain the fault diagnosis result.

[0095] The multi-stage distribution correction guided equipment fault diagnosis method described in the present invention performs power transformation on unlabeled query sets and labeled query sets to make them conform to Gaussian distribution, clusters multiple query set features that have undergone power transformation into multiple clusters and allocates each support set feature, uses the Gaussian statistics of the unlabeled query set to correct the labeled support set distribution, and the distribution correction can make the support set distribution closer to the true distribution of the query set. By sampling from the corrected distribution to add more features to expand the training data set to train the classifier, the diagnostic performance of the model in small sample scenarios can be improved, intelligent fault diagnosis in small sample scenarios can be achieved, and the accuracy of fault diagnosis is improved.

[0096] Based on the above embodiments, this embodiment uses Figure 3 The bearing test bench shown collects vibration signals and tests the bearing type. Using wire cutting technology, three faults are created, namely inner race fault (IF), outer race fault (OF), and ball fault (BF). In addition, each fault contains two fault size levels of 0.2mm and 0.4mm. After adding the normal condition (NC), the bearing dataset has 7 health conditions. Table 1 shows the fault labels of the bearing dataset:

[0097] Table 1 Description of fault labels in the bearing dataset

[0098]

[0099] The vibration signal of the test bearing is measured by a sensor located on the top of the bearing fixing bracket with a sampling frequency of 10kHz. There are three sub-datasets in the bearing dataset, namely L1 (0kN), L2 (1kN) and L3 (2kN). In each sub-dataset, each health condition consists of 100 samples and 2400 data points, and the original time domain signal is converted into a frequency domain signal using fast Fourier transform. The labeled basic domain is only used for pre-training of the feature extractor, the support set consists of labeled samples in the test domain, and the query set consists of some unlabeled samples in the test domain.

[0100] Table 2 shows 12 diagnostic tasks. The number of query set features for each fault class is set to 20, A1-A6 are diagnostic tasks with only one labeled sample in each fault class in the test domain, and A7-A12 are diagnostic tasks with only five labeled samples in each fault class in the test domain.

[0101] Table 2 Diagnostic task description

[0102]

[0103]

[0104] The detailed structural parameter settings of the pre-trained feature extractor and classifier are shown in Table 3:

[0105] Table 3 Description of structured parameters

[0106]

[0107] In Table 3, “kernel size = 5*4” means that the kernel width of the convolution layer is set to 5 and the number of output channels is 4. “No padding” means that the padding operation is removed in the convolution layer. “ReLU activation layer” is a rectified linear unit. The hyperparameter λ is set to 0.5 in advance. In the fuzzy c-means algorithm, the fuzziness parameter m is set to 2.0, the error threshold δ is set to 1e-3, and the maximum number of iterations is The default value is 300. In the distribution correction part, the hyperparameters α and β are set to 0.5 and 0.3 respectively. After the support set feature distribution correction is completed, 100 labeled features are generated for each cluster by default. The learning rate is set to 0.005. In order to verify the superiority of the method of the present invention, four methods are selected for comparison, including two homemade methods and two latest methods, as described below:

[0108] (1) Baseline method: The baseline method has the same network structure as the method of the present invention. However, only the base domain and support set labeled samples are directly involved in the training, and there is no multi-stage distribution correction module.

[0109] (2) Variational Autoencoder: Variational autoencoder is another commonly used data augmentation method for fault diagnosis in cases of small data and unbalanced samples.

[0110] (3) Enhanced Generative Adversarial Network: In the enhanced generative adversarial network, the generative adversarial network is combined with the convolutional neural network to improve the quality of the generated samples to solve the problem that the original training dataset contains a large amount of normal data but very little faulty data.

[0111] (4) Fault comparison deep neural network: Feature mapping and metric learning are introduced in the fault comparison deep neural network for small sample learning diagnosis tasks.

[0112] (5) Two-branch prototype network: The two-branch prototype network realizes fault classification by assigning query set samples to corresponding fault prototypes.

[0113] Table 4 shows the comparison of detection accuracy of 12 diagnostic tasks:

[0114] Table 4 Comparison of test accuracy between this method and the comparison method

[0115]

[0116] In diagnostic tasks A1-A6, only one marker feature is used for training for each fault class. As can be seen from Table 4, the proposed method outperforms the other five comparison methods, and its test accuracy reaches at least 97.0% in all six diagnostic tasks. The test accuracy of the baseline method is much lower than that of the other methods, hovering around 65.0%. The baseline method directly uses a few marker features for training without any other data processing strategy. Since the distribution learned from a few marker features may be over-biased, the model may fall into overfitting. Compared with the two data augmentation methods, variational autoencoder and enhanced generative adversarial network, the test accuracy of the proposed method is significantly higher, which indicates that the quality of the features generated by the proposed method is relatively credible and reliable. In addition, the training process of the proposed method is easier to carry out than the other two methods, which proves that the proposed method is a simple and promising fault diagnosis method. In addition, the proposed method has higher accuracy than the fault comparison deep neural network in all diagnostic tasks, and the feature allocation strategy based on similarity in the fault comparison deep neural network performs better in small sample scenarios compared with the feature mapping strategy based on similarity in the fault comparison deep neural network. Compared with the two-branch prototype network, since the prototype (i.e., cluster center) calculated by the fuzzy c-means algorithm is more accurate than the two-branch prototype network, the accuracy of the method of the present invention is improved by at least 2.0%. It is worth noting that the selection of the base domain and the target domain will also affect the accuracy. For example, diagnostic tasks A1 and A2 share the same base domain L1, but the difference between the test domain of A2 and L1 is larger than that of A1. Therefore, the test accuracy of the method of the present invention in A2 is slightly lower than that of A1. In diagnostic tasks A7-A12, since there are more labeled features available for training, the test accuracy of all methods is improved to varying degrees compared with the test accuracy of diagnostic tasks A1-A6.

[0117] Figure 4 The following is the specific classification result of each class using the confusion matrix in diagnostic task A3. Each fault class has 100 test samples. The horizontal and vertical coordinates represent the predicted label and the true label, respectively. This method obtains the best classification result, and each class has at least 96 samples that need to be correctly classified. Figure 4 It can be seen that the classification results of the baseline method are the worst, with many misclassifications in all 7 classes. In addition, it can be observed that classes 6 and 7 (BF1 and BF2) are more easily confused with each other, indicating that it is more difficult to correctly classify ball faults with different severity levels compared to faults in other locations in the bearing. In summary, the specific classification results confirm that the method of the present invention can achieve more comprehensive and accurate diagnosis results in small sample scenarios.

[0118] Figure 5The similarity matrix comparison results of the test features and generated features of the method of the present invention in the A1-A6 diagnostic tasks are given. In the figure, the horizontal coordinate and the vertical coordinate represent the test and generated feature sequences respectively. Figure 5 It can be clearly seen from the six sub-graphs that the generated features of each class have a high similarity with the corresponding test features, which shows that the proposed method can generate high-quality fault data in a small sample scenario, and the generated features can effectively expand the training data set of the task classifier. In addition, in some diagnostic tasks, such as A1, A3, and A4, the generated features and test features of categories 6 and 7 have relatively close similarities, which may reduce the classification accuracy of the two categories.

[0119] The present invention discloses a small sample equipment fault diagnosis method guided by multi-stage distribution correction, which can be divided into four training stages. In the first stage, the unlabeled features in the query set are clustered into several clusters using an unsupervised fuzzy c-means algorithm; secondly, according to the cosine similarity, the minority labeled features in the support set are assigned to the cluster with the highest similarity; since the method proposed by us is based on the assumption that each dimension of the same type of feature representation follows a Gaussian distribution, the Gaussian statistics of each cluster can be extracted to correct the distribution of each support set feature to make it closer to the true distribution of each cluster; new labeled features are generated by sampling from the corrected distribution. These generated features are used together with the minority labeled features in the support set to train the classifier in the final stage. Through the joint training of the four stages, the scale of labeled samples in the training data set is effectively expanded, the risk of overfitting of the model is suppressed, the classification performance of the proposed method is improved, and the fault feature learning and intelligent diagnosis under small sample conditions are efficiently and reliably realized.

[0120] Please refer to Figure 6 , Figure 6 A structural block diagram of a device fault diagnosis device provided by an embodiment of the present invention; the specific device may include:

[0121] The data set construction module 100 is used to collect vibration signals of equipment in various health states under different working conditions, and perform fast Fourier transform to convert them into frequency domain signals to obtain data sets, divide the data sets into base domain data and test domain data under different working conditions, mark all the base domain data, divide the test domain data into a support set and a query set according to a preset ratio, and mark the support set;

[0122] The data preprocessing module 200 is used to input the test domain data into a feature extractor pre-trained with the base domain data, perform feature extraction, obtain test domain data features, and perform power transformation on the test domain data to make it conform to the Gaussian distribution. The test domain data features include multiple query set features and multiple support set features.

[0123] The feature distribution correction module 300 is used to cluster the multiple query set features after power transformation into multiple clusters, calculate the cosine similarity between each support set feature after power transformation and each cluster center feature, assign it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and correct the distribution of the corresponding support set features by extracting the Gaussian statistics of each cluster;

[0124] A data augmentation module 400 is used to sample from the corrected support set feature distribution to generate new marker features;

[0125] A classifier training module 500 is used to input the label features and support set features into a classifier for training to obtain a trained classifier;

[0126] The fault diagnosis module 600 is used to input the vibration signal of the device under test into the pre-trained feature extractor to obtain the vibration signal feature of the device under test, and input it into the trained classifier to obtain the fault diagnosis result.

[0127] The equipment fault diagnosis device of this embodiment is used to implement the aforementioned equipment fault diagnosis method. Therefore, the specific implementation method of the equipment fault diagnosis device can be seen in the embodiment part of the aforementioned equipment fault diagnosis method. For example, the data set construction module 100, the data preprocessing module 200, the feature distribution correction module 300, the data amplification module 400, the classifier training module 500, and the fault diagnosis module 600 are respectively used to implement steps S101, S102, S103, S104, S105 and S106 in the aforementioned equipment fault diagnosis method. Therefore, its specific implementation method can refer to the description of the corresponding various parts of the embodiment, which will not be repeated here.

[0128] A specific embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned device fault diagnosis method are implemented.

[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0133] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A device fault diagnosis method, characterized in that: include: Collect vibration signals of equipment in various health states under different working conditions, perform fast Fourier transform, convert them into frequency domain signals, obtain a data set, divide the data set into base domain data and test domain data under different working conditions, mark all the base domain data, divide the test domain data into a support set and a query set according to a preset ratio, and mark the support set; Input the test domain data into a feature extractor pre-trained with the base domain data to perform feature extraction to obtain test domain data features, and perform power transformation on the test domain data to make it conform to Gaussian distribution, wherein the test domain data features include multiple query set features and multiple support set features; Cluster multiple query set features after power transformation into multiple clusters, calculate the cosine similarity between each support set feature after power transformation and each cluster center feature, assign it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and extract the Gaussian statistics of each cluster to correct the distribution of the corresponding support set features; Sampling from the corrected support set feature distribution to generate new label features; Inputting the label features and support set features into a classifier for training to obtain a trained classifier; The vibration signal of the device under test is input into the pre-trained feature extractor to obtain the vibration signal feature of the device under test, which is then input into the trained classifier to obtain the fault diagnosis result.

2. The equipment fault diagnosis method according to claim 1, characterized in that: The formula of the power transformation is expressed as: Among them, ε is a hyperparameter, x is the input data, and λ is a hyperparameter that controls the skewness of the distribution. is the output after power transformation.

3. The equipment fault diagnosis method according to claim 1, characterized in that: The clustering of the power-transformed query set features into a plurality of clusters comprises: Step 1: Initialize the cluster center set V = {v1,v2,...,v N }, N represents the number of clusters; Step 2: Calculate the query set feature x after power transformation k With cluster center v i The Euclidean distance between Among them, d∈1,2,3...D, d represents the dimension, D represents the total number of dimensions, x k (d) represents the k-th query set feature x after power transformation k The data on the dth dimension, v i (d) represents the i-th cluster center v i Data on the dth dimension; Step 3: Create a membership matrix Where c is the number of clusters, m∈(1,+∞) is the fuzziness parameter, k=1,2,3...n q ,n q is the number of query set features; Step 4: Cluster multiple query set features after power transformation to obtain a new cluster center set V′={v′1,v′2,...,v′ N }, in, is the membership degree of the k-th query set feature to the i-th cluster, and n is the number of query set features; Step 5: Calculate the optimization function Step 6: Repeat steps 2 to 5 above until the first iteration termination condition is met or the maximum number of iterations is reached. The first iteration termination condition is Where δ is the error threshold, represents the number of iteration steps, For iteration The feature membership after the step is For iteration The feature membership after the step.

4. The equipment fault diagnosis method according to claim 1, characterized in that: The calculation formula for calculating the cosine similarity between each power-transformed support set feature and each cluster center feature is: Among them, d represents the dimension, x represents the support set feature after power transformation, v represents the cluster center feature, x(k) represents the data on the kth dimension of the support set feature x after power transformation, and v(k) represents the data on the kth dimension of the cluster center feature v.

5. The equipment fault diagnosis method according to claim 1, characterized in that: The extracting of Gaussian statistics of each cluster comprises: Extract the mean of the i-th cluster Extract the covariance of the ith cluster in, represents the i-th cluster, represents the query set features after power transformation, is the number of query set features in the i-th cluster, and T represents the transpose.

6. The equipment fault diagnosis method according to claim 5, characterized in that: The corrected support set feature distribution in: represents the Kth support set feature in the ith cluster, α is a hyperparameter that controls the Gaussian statistic weight of the corresponding cluster, and β is a hyperparameter that affects the degree of discreteness of the correction distribution.

7. The equipment fault diagnosis method according to claim 6, characterized in that: The new label features are generated by sampling from the corrected support set feature distribution: in, represents the generated features of the i-th cluster, y i is the label of the support set feature in the ith cluster, Represents a Gaussian distribution.

8. The device fault diagnosis method according to claim 1, characterized in that: The training loss of the classifier is: in, represents the cross entropy loss function, n s and denote the number of support set features and generated label features, respectively. represents the support feature set after power transformation, G total Represents the set of marker features generated by all clusters.

9. A device for diagnosing equipment faults, characterized in that: include: A data set construction module is used to collect vibration signals of equipment in various health states under different working conditions, and perform fast Fourier transform to convert them into frequency domain signals to obtain a data set, divide the data set into base domain data and test domain data under different working conditions, mark all the base domain data, divide the test domain data into a support set and a query set according to a preset ratio, and mark the support set; A data preprocessing module is used to input the test domain data into a feature extractor pre-trained with the base domain data, perform feature extraction, obtain test domain data features, and perform power transformation on the test domain data to make it conform to Gaussian distribution, wherein the test domain data features include multiple query set features and multiple support set features; A feature distribution correction module is used to cluster multiple query set features that have undergone power transformation into multiple clusters, calculate the cosine similarity between each support set feature that has undergone power transformation and each cluster center feature, assign it to the cluster to which the cluster center feature with the highest cosine similarity belongs, and extract the Gaussian statistics of each cluster to correct the distribution of the corresponding support set features; A data augmentation module is used to sample from the corrected support set feature distribution to generate new label features; A classifier training module, used for inputting the label features and support set features into a classifier for training to obtain a trained classifier; The fault diagnosis module is used to input the vibration signal of the device under test into the pre-trained feature extractor to obtain the vibration signal feature of the device under test, and input the feature into the trained classifier to obtain the fault diagnosis result.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a device fault diagnosis method as claimed in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Multi-label rolling bearing fault diagnosis method based on meta-learning

    CN112084974A

  • Rolling bearing fault diagnosis method based on blind signal separation and support vector machine

    CN112257530A

  • Complex working condition bearing fault diagnosis method based on meta-learning under small sample

    CN112418013A

  • Methods and systems for cross-domain few-shot classification

    US20220300823A1