A few-sample bearing fault diagnosis method based on deep prototype network

Through a deep prototype network-based method and improved clustering algorithm and loss function, the accuracy problem of few-sample bearing fault diagnosis in an open set domain adaptive scenario is solved, and the identification of known fault categories and unknown fault categories are achieved. The elimination improves the accuracy and safety of fault diagnosis.

CN114861749BActive Publication Date: 2024-10-22SHANDONG UNIV OF SCI & TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210236017.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-10-22
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In an open domain adaptive scenario, traditional fault diagnosis methods are difficult to accurately identify known fault categories and eliminate unknown fault categories under small sample data, resulting in inconvenient maintenance and even safety hazards, especially when working conditions change and unknown fault categories exist. Effective fault diagnosis is difficult to achieve.

Method used

Using a method based on deep prototype networks, the support set prototype is calculated through the improved k-means++ clustering algorithm, and the prototype loss and discriminant loss are constructed by combining the Softmax function and the cross-entropy function to achieve accurate classification of known fault category samples and unknown faults. Elimination of category samples, using feature extractor and backpropagation to update model parameters.

Benefits of technology

It achieves accurate identification of known fault categories and effective elimination of unknown fault categories under small sample conditions, improves the accuracy and safety of fault diagnosis, and ensures stable operation of machinery and reliability of maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114861749B_ABST
    Figure CN114861749B_ABST
Patent Text Reader

Abstract

The present invention discloses a few-sample bearing fault diagnosis method based on a deep prototype network, which relates to the technical field of bearing fault diagnosis technology, including: support set prototype calculation: using an improved k-means++ clustering algorithm to calculate the prototype of each fault category in the support set; query set discriminant classification: applying the support set prototype to the discriminant classification of the query set; query set sample aggregation: constructing a prototype loss; test set sample testing: after the test set samples are processed by an updated feature extractor, the distance between them and the prototype of each known fault category is measured. The present invention uses the feature clustering algorithm k-means++ to calculate the prototype of each known class, and by calculating the Euclidean distance from the marked target sample to the prototype, the marked target sample is assigned to the prototype class with the closest distance. The prototype loss is also constructed to enhance the compactness between the fault marked sample and the corresponding prototype, which can not only identify samples of known fault categories, but also effectively eliminate fault samples from unknown categories.
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 of bearing vibration signals, and in particular to a few-sample bearing fault diagnosis method based on a deep prototype network. Background Art

[0002] In modern industrial production, bearings play a role in power transmission. As the main rotating parts, they are prone to failure under continuous working conditions, causing damage to equipment, economic losses or casualties. In order to ensure the stable operation of machinery and avoid failures, intelligent fault diagnosis methods are widely used in bearing health monitoring.

[0003] In traditional fault diagnosis methods, training and test samples are generally from the same working condition, and the fault types are all known. In actual situations, due to the influence of uncertain factors such as changes in working conditions, machinery sometimes has unexpected unknown faults, and the labels of these faults are difficult to collect in a laboratory environment. Therefore, we also need to pay attention to a domain adaptation scenario, namely the open set domain adaptation scenario. In this scenario, it is necessary to realize the migration of diagnostic knowledge from a small source domain to a larger target domain. Due to the existence of unknown fault categories in the target domain, it is easy to classify samples of these fault categories into known categories, which will bring inconvenience to subsequent maintenance work. If the wrong faulty parts are replaced, it may even cause safety accidents. Therefore, in this scenario, it is necessary to accurately classify samples of known fault categories, and accurately eliminate samples of unknown fault categories and distinguish them from samples of known fault categories, so as to facilitate relevant maintenance personnel to troubleshoot. In addition, in actual situations, it is difficult to obtain a large amount of labeled data for training models.

[0004] In summary, studying a more intelligent algorithm model for small-sample bearing fault diagnosis in open domain adaptive scenarios is an urgent problem to be solved. Summary of the invention

[0005] In order to solve the above technical problems, the present invention discloses a few-sample bearing fault diagnosis method based on a deep prototype network, which can not only identify samples of known fault categories, but also effectively eliminate fault samples from unknown categories.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] According to a first aspect of an embodiment of the present invention, a few-sample bearing fault diagnosis method based on a deep prototype network is provided.

[0008] In one embodiment, a few-sample bearing fault diagnosis method based on a deep prototype network includes the following steps:

[0009] Support set prototype calculation: The improved k-means++ clustering algorithm is used to calculate the prototype of each fault category in the support set;

[0010] Query set discriminative classification: The support set prototype is applied to the discriminative classification of the query set, which contains target labeled samples of known fault categories;

[0011] Query set sample aggregation: construct prototype loss to reduce the feature distance between query set samples and corresponding prototypes;

[0012] Test set sample test: After the test set samples are processed by the updated feature extractor, the distance between them and the prototype of each known fault category will be measured. If the feature distance between the test set sample and the prototype is less than the corresponding decision distance, the test set sample and the prototype belong to the same fault category; if the feature distance between the test set sample and any prototype is greater than the decision distance of all categories, the test set sample is a sample of unknown fault category.

[0013] Optionally, the step of calculating the support set prototype includes:

[0014] Step (1), assuming that the support set has k fault categories: In the k-means++ clustering algorithm, k samples are randomly selected as the initial cluster centers C = {c 1 ,c 2 ,...,c k}, that is, the prototype;

[0015] Step (2), for each sample x in the support set s , calculate its distance to k cluster centers, and assign each sample to the cluster corresponding to the cluster center with the smallest distance;

[0016] Step (3), after k clusters are formed, use Recalculate the cluster center of each class;

[0017] Step (4), repeat the sample allocation process and calculation process until the cluster center position remains unchanged.

[0018] Optionally, the query set classification step includes:

[0019] Step (1), the metric for measuring the distance between the query set sample and the prototype feature is:

[0020]

[0021] Where d(·,·) represents the Euclidean distance;

[0022] Step (2), based on the Softmax function, the prior probability of each query set sample belonging to each prototype based on the feature distance is defined as:

[0023]

[0024] in, represents the label, represents the query set sample x q Belongs to prototype c i ,γ is a hyperparameter used to control the difficulty of conversion from distance to probability, and E(·) is the output of the feature extractor;

[0025] In step (3), combined with the cross entropy function, the total discriminant loss is expressed as:

[0026]

[0027] Optionally, the query set sample aggregating step includes:

[0028] Step (1), prototype loss of class i Defined as:

[0029]

[0030] where i∈{1,2,...,k}, Represents the number of query set samples in class i;

[0031] In step (2), the total prototype loss is defined as:

[0032]

[0033] Step (3), after the query set samples are aggregated, the average distance from the query set samples to the corresponding prototype in each cluster is calculated as the decision distance D = {d 1 ,d 2 ,...,d k}, and used in the test set, the decision distance d of the i-th class i Calculated as:

[0034]

[0035] Among them, θ is a trade-off parameter that controls the decision distance;

[0036] In step (4), the discriminant loss and the prototype loss are combined, and the total loss of the proposed model is defined as:

[0037] L total =L dis +λ*L pl

[0038] Among them, λ is a trade-off parameter that balances the discriminative loss and the prototype loss. By minimizing the total loss during training, the parameters of the feature extractor of the proposed model will be updated through back-propagation.

[0039] The beneficial effects of the present invention are:

[0040] 1. The present invention uses the feature clustering algorithm k-means++ to calculate the prototype of each known class, and distributes the marked target samples to the prototype class with the closest distance by calculating the Euclidean distance from the marked target samples to the prototype, thereby minimizing the loss of fault sample identification.

[0041] 2. In order to reserve space for unknown fault category samples in the feature space, the present invention constructs a prototype loss to enhance the compactness between the fault labeled samples and the corresponding prototypes, while reducing the two losses. This can increase the distance between fault categories and reduce the distance within fault categories. It can not only identify samples of known fault categories, but also effectively eliminate fault samples from unknown categories. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 The figure is a flowchart of a few-sample bearing fault diagnosis method based on a deep prototype network according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] like Figure 1 As shown, a few-sample bearing fault diagnosis method based on deep prototype network includes the following steps:

[0045] S1, establish training and test samples for fault diagnosis: select several bearings with different health states as training and test samples, and sign corresponding condition labels for bearings in various conditions. Different health states include normal, ball fault, inner ring fault, outer ring fault, and ball and outer ring combined fault. Among them, ball fault, inner ring fault, and outer ring fault states all contain 2 different damage levels: 0.2mm and 0.4mm, so the bearing contains a total of 9 fault types. Various fault signals are collected at three different speeds through vibration acceleration sensors, namely S1 (1500rpm), S2 (1800rpm) and S3 (2000rpm). Each sub-dataset has 100 samples and each fault class has 1200 data points. In the open set scenario, several classes should be deleted in the source domain, while the target domain still has 9 classes in all transfer tasks. Table 1 shows the information of the migration task. In addition, in order to verify the effectiveness of the proposed method for few-sample fault diagnosis, the number of labeled samples in the support set and query set is divided into three cases, with 10, 15 and 20 labeled samples respectively. Table 2 shows the specific example number settings of the support, query and test sets.

[0046] Table 1

[0047]

[0048] Table 2

[0049]

[0050] S2, support set prototype calculation: The improved k-means++ clustering algorithm is used to calculate the prototype of each fault category in the support set to represent the typical characteristics of each category, including:

[0051] Step (1), assuming that the support set has k fault categories. In the k-means++ clustering algorithm, k samples are first randomly selected as the initial cluster centers C = {c 1 ,c 2 ,...,c k}, that is, the prototype;

[0052] Step (2), for each sample x in the support set s , calculate its distance to k cluster centers, and assign each sample to the cluster corresponding to the cluster center with the smallest distance;

[0053] Step (3), after k clusters are formed, use Recalculate the cluster center of each class;

[0054] Step (4), repeat the sample allocation process and recalculation process until the cluster center position remains unchanged.

[0055] S3, Query set discriminative classification: Apply the support set prototype to the discriminative classification of the query set, which contains target labeled samples of known fault categories, including:

[0056] Step (1), the metric for measuring the feature distance between the query set sample and the prototype is:

[0057]

[0058] Here, d(·,·) represents the Euclidean distance.

[0059] In step (2), inspired by the Softmax function, the feature distance-based prior probability of each query set sample belonging to each prototype is defined as:

[0060]

[0061] in, represents the label, represents the query set sample x q Belongs to prototype c i ,γ is a hyperparameter used to control the difficulty of conversion from distance to probability. E(·) is the output of the feature extractor.

[0062] In step (3), combined with the cross entropy function, the total discriminant loss can be expressed as:

[0063]

[0064] S4, query set sample aggregation: construct prototype loss to reduce the feature distance from query set samples to corresponding prototypes, including:

[0065] Step (1), prototype loss of class i It can be defined as:

[0066]

[0067] where i∈{1,2,...,k}, Represents the number of query set samples in class i.

[0068] In step (2), the total prototype loss can be defined as:

[0069]

[0070] Step (3), after the query set samples are aggregated, the average distance from the query set samples to the corresponding prototype in each cluster is calculated as the decision distance D = {d 1 ,d 2 ,...,d k} and used in the test set. The decision distance d of the i-th class i It can be calculated as:

[0071]

[0072] Here, θ is a trade-off parameter that controls the decision distance.

[0073] In step (4), the discriminant loss and the prototype loss are combined, and the total loss of the proposed model can be defined as:

[0074] L total =L dis +λ*L pl

[0075] Among them, λ is a trade-off parameter that balances the discriminative loss and the prototype loss. By minimizing the total loss during training, the parameters of the feature extractor of the proposed model will be updated through back-propagation.

[0076] Constructing prototype loss improves the model's ability to eliminate samples of unknown fault categories and reduces the feature distance from query set samples to the corresponding prototypes. Minimizing prototype loss can be seen as a process of aggregating samples toward the corresponding prototypes.

[0077] S5, test set sample test: After the test set samples are processed by the updated feature extractor, the distance between them and the prototype of each known fault category is measured. If the feature distance between the test set sample and the prototype is less than the corresponding decision distance, the test set sample and the prototype belong to the same fault category; if the feature distance between the test set sample and any prototype is greater than the decision distance of all categories, the test set sample is a sample of unknown fault category.

[0078] Table 3 shows the diagnosis results of the proposed method in six migration tasks. The diagnosis results are averaged over 10 trials to reduce the impact of experimental randomness. It can be seen that the average test accuracy of the proposed method for the three scenarios is 97.7%, 95.2% and 97.0%, respectively.

[0079] Table 3

[0080]

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

Claims

1. A few-sample bearing fault diagnosis method based on deep prototype network, characterized in that: The following steps are involved: Support set prototype calculation: The improved k-means++ clustering algorithm is used to calculate the prototype of each fault category in the support set; Query set discriminative classification: The support set prototype is applied to the discriminative classification of the query set, which contains target labeled samples of known fault categories; Query set sample aggregation: construct prototype loss to reduce the feature distance between query set samples and corresponding prototypes; Test set sample test: After the test set samples are processed by the updated feature extractor, the distance between them and the prototype of each known fault category is measured. If the feature distance between the test set sample and the prototype is less than the corresponding decision distance, the test set sample and the prototype belong to the same fault category; if the feature distance between the test set sample and any prototype is greater than the decision distance of all categories, the test set sample is a sample of unknown fault category; The support set prototype calculation step includes: Step (1), assuming that the support set has k fault categories: In the k-means++ clustering algorithm, k samples are randomly selected as the initial cluster centers C = {c1, c2, ..., c k }, that is, the prototype; Step (2), for each sample x in the support set s , calculate its distance to k cluster centers, and assign each sample to the cluster corresponding to the cluster center with the smallest distance; Step (3), after k clusters are formed, use Recalculate the cluster center of each class; Step (4), repeat the sample allocation process and calculation process until the cluster center position remains unchanged; The query set discrimination and classification step comprises: Step (1), the metric for measuring the distance between the query set sample and the prototype feature is: Where d(·,·) represents the Euclidean distance; Step (2), based on the Softmax function, the prior probability of each query set sample belonging to each prototype based on the feature distance is defined as: in, represents the label, represents the query set sample x q Belongs to the prototype c i ,γ is a hyperparameter used to control the difficulty of conversion from distance to probability, and E(·) is the output of the feature extractor; In step (3), combined with the cross entropy function, the total discriminant loss is expressed as: The step of query set sample aggregation includes: Step (1), prototype loss of class i Defined as: Among them, i∈{1,2,…,k}, Represents the number of query set samples in class i; In step (2), the total prototype loss is defined as: Step (3), after the query set samples are aggregated, the average distance from the query set samples to the corresponding prototypes in each cluster is calculated as the decision distance D = {d1, d2, ..., d k }, and used in the test set, the decision distance d of the i-th class i Calculated as: Among them, θ is a trade-off parameter that controls the decision distance; In step (4), the discriminant loss and the prototype loss are combined, and the total loss of the proposed model is defined as: L total =L dis +λ*L pl Among them, λ is a trade-off parameter that balances the discriminative loss and the prototype loss. By minimizing the total loss during training, the parameters of the feature extractor of the proposed model will be updated through back-propagation.

Citation Information

Patent Citations

  • And searching reliable semi-supervised few-sample image classification method of abnormal data center

    CN110942091A

  • Few-sample learning method based on sample-level attention network

    CN111985581A

  • Hyperspectral image semi-supervised classification method based on small sample learning

    CN113408605A

  • Rolling bearing fault recognition method based on improved relation network

    CN113723489A

  • Wind generating set gearbox diagnosis method based on semi-supervised momentum prototype network

    CN113920348A