A fault detection method based on a small amount of labeled data

By using data enhancement and self-supervised learning methods in mechanical fault diagnosis, combined with the inter-sample and temporal relationships of voiceprint signals, a fault detection model is constructed, which solves the over-fitting problem of the deep learning model due to the scarcity of labeled data, and improves Accuracy and generalization ability of fault identification.

CN118468088BActive Publication Date: 2024-10-15ARTIFICIAL INTELLIGENCE RES INST OF HEFEI COMPREHENSIVE NAT SCI CENT (ANHUI ARTIFICIAL INTELLIGENCE LAB) +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410834293.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-15
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In mechanical fault diagnosis, deep learning models are prone to overfitting due to the scarcity of labeled data, resulting in reduced generalization capabilities and difficulty in effectively identifying and locating mechanical equipment faults.

Method used

A fault detection method based on a small amount of labeled data is adopted. Through data enhancement and self-supervised learning of voiceprint signal samples, combined with the mining of relationships between samples and relationships within time, a fault detection model is constructed to improve the generalization ability and diagnostic performance of the model.

Benefits of technology

Through data enhancement processing and self-supervised learning, the lack of sample diversity is made up, the representation ability and diagnostic performance of the model are improved, the problem of insufficient labels is effectively solved, and the identification accuracy of mechanical faults is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468088B_ABST
    Figure CN118468088B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of fault diagnosis technology, and discloses a fault detection method based on a small amount of labeled data, wherein voiceprint signal samples collected in actual production are input into a trained fault detection model to predict the fault category of the voiceprint signal samples; the training process of the fault detection model includes the following steps: the voiceprint monitoring sensor is installed at the measuring point of the mechanical equipment, voiceprint signal samples are collected, and the fault category of some voiceprint signal samples is marked; supervised learning: the voiceprint signal samples in the labeled data set are input into the feature extractor for supervised learning; self-supervised learning is performed through inter-sample relationship mining and temporal relationship mining. While considering the feature similarity between labeled data and unlabeled data, the present invention introduces the matching task of temporal relationship and inter-sample relationship, thereby improving the distinguishability of the model mining data and the ability to explore the temporal correlation of data.
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 detection method based on a small amount of labeled data. Background Art

[0002] With the advancement of industrial modernization, large-scale mechanical equipment is becoming increasingly complex, and the stability of mechanical systems is increasingly challenged. Timely and effective diagnosis of various fault conditions is essential to avoid economic losses and improve equipment safety. Fault diagnosis plays a key role in the industrial field. Its core task is to identify and locate problems in equipment, systems or processes to ensure continuous operation and efficient production. Modern industrial equipment and systems usually contain a large number of sensors, actuators, controllers and software. This complexity increases the possibility of failure. In industrial production, the failure of any equipment or system may lead to production interruption, resulting in loss of production capacity and output. Therefore, quickly and accurately diagnosing and resolving faults is essential to maintaining production efficiency and controlling costs.

[0003] Deep learning technology can discover highly nonlinear relationships between input and output without data preprocessing, thereby improving the accuracy of fault diagnosis. Therefore, it has been widely used in the industrial field. However, most deep learning-based methods adopt a supervised learning paradigm and require a large number of labeled samples to ensure the stable convergence of the model. However, in practical applications, the amount of labeled data is limited. On the one hand, the frequency of key component failures is low, and the cost of conducting fault simulation experiments is high. On the other hand, unlike perceptual data such as images and sounds, the labeling of mechanical fault types is more dependent on domain expert knowledge and is therefore time-consuming. Unfortunately, when labeled data is scarce, deep models are prone to overfitting, resulting in a decrease in generalization ability. Therefore, it is urgent to solve the problem of insufficient labels in the machinery industry. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a fault detection method based on a small amount of labeled data.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A fault detection method based on a small amount of labeled data, inputting voiceprint signal samples collected in actual production into a trained fault detection model to predict the fault category of the voiceprint signal samples; the training process of the fault detection model includes the following steps:

[0007] Step 1: Data collection: Install the voiceprint monitoring sensor at the measuring point of the mechanical equipment, collect voiceprint signal samples, and mark the fault categories of some voiceprint signal samples; there is a labeled data set , express Real vector space, is a voiceprint signal sample with L sampling points; for The corresponding fault category label is a C-dimensional one-hot vector, where C is the number of fault categories; unlabeled dataset ; Respectively represent and The number of voiceprint signal samples; and Composition of training set;

[0008] Step 2: Supervised learning: The voiceprint signal samples in the labeled dataset Input to feature extractor To extract High-level semantic features ;Will Input to classification header , and obtain the probability distribution vector , represents the predicted fault category; based on and fault category labels Constructing supervised learning loss ;

[0009] Step 3: Self-supervised learning, including inter-sample relationship mining and intra-temporal relationship mining:

[0010] Mining the relationship between samples: Through data enhancement methods, a batch of voiceprint signal samples in the training set are Each voiceprint signal sample , perform K transformations, and use the generated voiceprint signal samples as voiceprint signal instances to form a set , where B represents the batch size; based on the set The feature extractor constructs anchor vectors, positive pair vectors, and negative pair vectors, and then performs contrastive learning through the instance relation head and constructs the instance relation loss. ;

[0011] Temporal relationship mining: Through data enhancement methods, a batch of voiceprint signal samples in the training set are Each voiceprint signal sample , perform K transformations to generate a set of voiceprint signal samples ; Collection-based The voiceprint signal samples are segmented at different times and feature extractors are used to construct hidden features, positive hidden features, and negative hidden features. Then, the temporal relation head is used for comparative learning and the temporal relation loss is constructed. ;

[0012] Step 4: Comprehensive loss The fault detection model is trained until the fault detection model converges or the set number of training times is reached; is the weight.

[0013] Furthermore, in step 3, a batch of voiceprint signal samples in the training set are enhanced by data augmentation method. Each voiceprint signal sample When performing the transformation, it specifically includes:

[0014] For voiceprint signal samples ,from Randomly select another voiceprint signal sample , randomly draw a value from the Beta distribution As weight; use right and Perform weighted averaging to obtain a new voiceprint signal sample : ; For new voiceprint signal samples In the amplitude dimension, Mixup technology is used to simulate the amplitude fluctuation of the voiceprint signal through amplitude distortion, and the time step remains unchanged; then the new voiceprint signal sample is Mixup technology is used in the time dimension to simulate the frequency fluctuation of the voiceprint signal through time distortion.

[0015] Furthermore, the fault detection model includes the feature extractor, the classification head, the instance relationship head and the time relationship head; during the training process, the feature extractor, the classification head, the instance relationship head and the time relationship head all participate in the training; during the inference process, the output of the feature extractor is used as the input of the classification head to obtain the fault category predicted by the classification head;

[0016] The feature extractor It includes a four-layer one-dimensional convolutional neural network and two Transformer encoders. The convolutional neural network has ReLU activation units and batch normalization. The output of the convolutional neural network is used as the input of the Transformer encoder. The Transformer encoder consists of multiple self-attention layers and feedforward neural network layers.

[0017] After the Transformer encoder, the features extracted by the convolutional neural network and the Transformer encoder are concatenated, and then the concatenated features are sent to the classification head;

[0018] The classification head is a linear layer; the instance relation head and the temporal relation head are both two-layer fully connected networks with multiple hidden neurons;

[0019] The output of the classification head is the probability distribution of C fault categories, and the outputs of the instance relation head and the temporal relation head are the probability values ​​for distinguishing positive pairs and negative pairs.

[0020] Furthermore, the supervised learning loss for:

[0021] .

[0022] Further, in step 3, the set-based The feature extractor constructs anchor vectors, positive pair vectors, and negative pair vectors, and then performs contrastive learning through the instance relation head and constructs the instance relation loss. , specifically including;

[0023] Will gather The voiceprint signal example given in As an anchor instance, and They are , Any integer in Example of converted voiceprint signal Other voiceprint signal instances are considered positive is considered a negative pair; , positive pairs and negative pairs are respectively input into the feature extractor to obtain anchor vectors, positive pair vectors and negative pair vectors; then the feature pairs consisting of the anchor vector and the positive pair vector, and the feature pairs consisting of the anchor vector and the negative pair vector are input into the instance relation head We conduct contrastive learning and construct instance relationship loss : ; for Output: It is a label used to indicate positive or negative pairs in the mining of relationships between samples.

[0024] Further, in step 3, the set-based The voiceprint signal samples are segmented at different times and feature extractors are used to construct hidden features, positive hidden features, and negative hidden features. Then, the temporal relation head is used for comparative learning and the temporal relation loss is constructed. , specifically including:

[0025] Will gather Each voiceprint signal sample in Divide into past part and future parts , is a set value; randomly selected The past part The fragment in the ,Will A segment of the same length shifted back in time by T sampling points Select as positive, and set Other voiceprint signal samples The corresponding fragment is selected as a negative pair, ;Will , , Input them into the feature extractor respectively to obtain hidden features , facing hidden features and negative pair hidden features ;Will and The characteristic pairs composed of and The composed feature pairs are input to the temporal relation head Perform contrastive learning and construct temporal relationship loss : ; It is a label used to indicate positive or negative pairs in temporal relationship mining; is the output of the temporal relation head.

[0026] Compared with the prior art, the beneficial technical effects of the present invention are:

[0027] The present invention first enhances the data to make up for the lack of diversity of input samples and increase the overall representation ability. At the same time, self-supervised learning is merged into a semi-supervised framework, in which unlabeled samples and labeled samples are processed and fully utilized in parallel in an end-to-end manner. Two types of relationships, including the relationship between samples and the relationship within time of voiceprint signals, are comprehensively considered to further improve the overall diagnostic performance. The present invention specifically designs a data enhancement method for voiceprint signals to improve the generalization ability of the model and create different domains for self-supervised learning. The present invention adopts an average weight mechanism to assign weights to multi-task losses to better optimize the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of the overall process of an embodiment of the present invention;

[0029] Figure 2a , Figure 2b A schematic diagram of data enhancement according to the present invention. DETAILED DESCRIPTION

[0030] A preferred embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0031] This embodiment proposes a fault detection method based on a small amount of labeled data, which specifically includes the following steps:

[0032] Step 1: Data collection;

[0033] Step 2: Data processing;

[0034] Step 3: Model building;

[0035] Step 4: Model training;

[0036] Step 5: Model testing.

[0037] Below, each step of this embodiment is described in detail.

[0038] Step 1, data collection:

[0039] Taking voiceprint monitoring as an example, bone conduction sensors are installed at the measuring point of mechanical equipment to collect voiceprint time series, which are segmented with a fixed window length to obtain a series of samples. One sample is a voiceprint signal. A small number of voiceprint signal samples are randomly selected and their fault categories are marked. Therefore, there are a small number of labeled samples and a large number of unlabeled samples. The labeled data set is recorded as , express A real vector space, where is a voiceprint signal sample with L sampling points, for The corresponding fault category labels represent C different fault categories. represents the size of the labeled dataset. The unlabeled dataset is denoted as ,in represents the size of the unlabeled dataset and satisfies the inequality . Total number of voiceprint signal samples yes and sum.

[0040] Step 2: Data Processing:

[0041] The collected samples are divided into training set, validation set and test set in a ratio of 6:2:2.

[0042] Step 3: Model building:

[0043] 3.1, Data Enhancement:

[0044] Before the training data is fed into the fault detection model, data enhancement operations need to be performed on the samples used for training in the data enhancement module.

[0045] In industrial scenarios, complex noise may change the amplitude and frequency of the real signal, thereby distorting the signal on the time axis and amplitude axis. Therefore, the present invention adopts Mixup technology to implement data enhancement function and simulate noise interference. First, the input voiceprint signal samples are normalized and the values ​​of the sampling points are limited to the range of [-1,1]. Then, Mixup data enhancement technology is applied in the amplitude and time dimensions to achieve amplitude distortion and time distortion. Each transformation has a 20% chance of implementation. The specific operation is: first, two voiceprint signal samples are randomly selected from all the data. and Draw a random coefficient from Beta distribution Beta(0,1) , this coefficient is used to control the weight of two voiceprint signal samples in the mixing process. The value range is between 0 and 1. Perform weighted averaging on the two voiceprint signal samples to obtain a mixed new voiceprint signal sample : In this way, the new voiceprint signal sample It includes and The Mixup technique is used in the amplitude dimension to simulate the amplitude fluctuation of the signal through amplitude distortion, and the time step remains unchanged, which enhances the robustness of the fault detection model to noise amplitude modulation. After that, the Mixup technique is used in the time dimension to simulate frequency fluctuation. Through time distortion, the fault detection model has stronger robustness to signal frequency fluctuation. The data enhancement results are shown in Figure 2. Figure 2a and Figure 2b As shown, Figure 2a This is the result of data enhancement using Mixup technology in the amplitude dimension. Figure 2b This is the result of data enhancement using Mixup technology in the time dimension.

[0046] 3.2, Feature Extractor, Classification Head, Instance Relation Head and Temporal Relation Head:

[0047] Feature Extractor It is a four-layer one-dimensional convolutional neural network (CNN) plus two Transformer encoders. CNN has ReLU activation units and batch normalization, and the output of CNN is used as the input sequence of the Transformer encoder. The Transformer encoder consists of multiple self-attention layers and feed-forward neural network (FFN) layers. The self-attention mechanism allows the model to capture long-distance dependencies in the input sequence, while the feed-forward neural network is used to further process the output of the self-attention layer. After the Transformer encoder, the features extracted by the CNN and the Transformer encoder are concatenated. The concatenated features are then sent to the classification head, which is a simple linear layer. In addition, the instance relation head Time Relationship Head Both are two-layer fully connected networks with 256 hidden neurons. The output of the classification head is the probability distribution of C fault categories, while the output of the instance relation head and the temporal relation head is the probability value of distinguishing positive and negative pairs.

[0048] 3.3, Supervised Learning:

[0049] In the supervised learning module, the voiceprint signal samples with fault category labels are input into the feature extractor , to extract high-level semantic features ; Then, high-level semantic features Sent to the classification head And output the probability distribution vector , represents the predicted health status. Finally, the probability distribution vector and fault category labels Combined, calculate the cross entropy loss :

[0050] Formula 1: .

[0051] 3.4, Self-supervised learning:

[0052] In the self-supervised learning module, the task is mainly divided into two parts and executed in parallel: inter-sample relationship mining and temporal relationship mining, which are carried out in the inter-sample relationship mining module and the temporal relationship mining module respectively, exploring the relationship between different voiceprint signal samples in the data and the contextual relationship within the voiceprint signal sample time.

[0053] 1) Sample relationship mining module

[0054] The inter-sample relationship mining module aims to discover the relationship between different voiceprint signal samples. It follows the process of the self-supervised method based on instance identification in feature extraction. , where B represents the batch size. Each voiceprint signal sample is transformed K times through the data enhancement method mentioned above to generate a new set of voiceprint signal instances. Based on the fact that instances generated by the same sample are similar and instances generated by different samples are obviously different, given an anchor instance , the voiceprint signal instance converted from the anchor instance Other voiceprint signal instances are considered positive are considered as negative pairs. Then all instances are fed into the feature extractor To extract the anchor vector , opposite vector , negative pair vector Then the feature pairs consisting of the anchor vector and the positive pair vector, as well as the feature pairs consisting of the anchor vector and the negative pair vector are input into the instance relation head. In , we predict whether the instance corresponding to the vector paired with the anchor vector is a positive pair or a negative pair. This relationship prediction task avoids the need for a large number of negative samples in contrastive learning. The label of whether the instance corresponding to the vector paired with the anchor vector is a positive pair or a negative pair can be defined as:

[0055] Formula 2: ;

[0056] in is the output of the instance relation header, represents the anchor vector, and denote the positive pair vector and the negative pair vector respectively.

[0057] Since the data augmentation operation is performed K times, the total number of positive pairs is ,Right now , the same number of negative pairs should be selected Use the automatically generated labels and select the binary cross entropy loss as the instance relationship loss :

[0058] Formula 3: .

[0059] 2) Temporal Relation Mining Module

[0060] Voiceprint signals are essentially time series, and their temporal relationships can reveal different failure modes. Therefore, exploring the temporal relationships of unlabeled data is effective for extracting more discriminative representations. Each voiceprint signal sample , perform K transformations to generate a set of voiceprint signal samples , will be collected Each voiceprint signal sample in It is divided into two parts, namely and , where the first T sampling points are the past conditions, and the following (LT) sampling points represent the future conditions. Based on the prior knowledge that the future part of the voiceprint signal sample has similar sequential characteristics to the past part, we randomly select The middle segment as an anchor , which is a segment of the same length shifted by T sampling points in time Selected as positive pairs, fragments from different voiceprint signal samples is selected as a negative pair. The dividing point can generally be 0.5, that is, the voiceprint signal sample is divided into two segments with the same length. , , Transfer to the feature extractor to obtain hidden features , facing hidden features , negative pair hidden features . Time Relationship Header by and The characteristic pairs composed of and The feature pairs composed of is the output of the temporal relation head, Indicates the parameters of the temporal relation header.

[0061] Label Depends on the time relationship of the input voiceprint signal sample pair:

[0062] Formula 4: .

[0063] Here, we also use the binary cross entropy loss as the temporal relationship loss :

[0064] Formula 5: .

[0065] Where K is the number of data augmentation and B is the batch size.

[0066] Step 4, model training:

[0067] Input: labeled dataset and unlabeled datasets The fault detection model was trained for 1000 epochs, with an early stopping mechanism at 250 epochs. The Adam optimizer was used with a learning rate of 0.01 and a batch size of 128.

[0068] In each training epoch the following steps are run:

[0069] 1) Send the voiceprint signal samples in the labeled data set into the supervised learning module, extract features and obtain the supervised learning loss according to formula 1 ;

[0070] 2) Send all voiceprint signal samples in the training set to the data enhancement module and transform them K times;

[0071] 3) The transformed voiceprint signal samples are sent to the sample-to-sample relationship mining module and the temporal relationship mining module in the self-supervised learning module, and the instance relationship loss is obtained by equations 3 and 5 respectively. , time relationship loss ;

[0072] 4) , , The three are weighted summed to get the comprehensive loss The weights during weighting can be set to 1:1:1 or set through experience to update the fault detection model parameters.

[0073] Step 5, model testing:

[0074] After the fault detection model is trained, the test set is used to evaluate the fault detection model.

[0075] like Figure 1 As shown, the fault detection method based on a small amount of labeled data proposed in the present invention constructs a self-supervised learning task for mining the relationship between time and samples, mining the distinguishability of different data and the contextual connection of data; in addition, an average weight distribution mechanism is added to reasonably distribute the weight of each task. In summary, the present invention effectively solves the problem of insufficient sample data labels in intelligent fault diagnosis and improves data efficiency.

[0076] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.

[0077] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A fault detection method based on a small amount of labeled data, characterized in that: The voiceprint signal samples collected in actual production are input into the trained fault detection model to predict the fault category of the voiceprint signal samples. The training process of the fault detection model includes the following steps: Step 1: Data collection: Install the voiceprint monitoring sensor at the measuring point of the mechanical equipment, collect voiceprint signal samples, and mark the fault categories of some voiceprint signal samples; there is a labeled data set , express Real vector space, is a voiceprint signal sample with L sampling points; for The corresponding fault category label is a C-dimensional one-hot vector, where C is the number of fault categories; unlabeled dataset ; Respectively represent and The number of voiceprint signal samples; and Composition of training set; Step 2: Supervised learning: The voiceprint signal samples in the labeled dataset are Input to feature extractor To extract High-level semantic features ;Will Input to classification header , and obtain the probability distribution vector , represents the predicted fault category; based on and fault category labels Constructing supervised learning loss ; Step 3: Self-supervised learning, including inter-sample relationship mining and intra-temporal relationship mining: Mining the relationship between samples: Through data enhancement methods, a batch of voiceprint signal samples in the training set are Each voiceprint signal sample , perform K transformations, and use the generated voiceprint signal samples as voiceprint signal instances to form a set , where B represents the batch size; based on the set The feature extractor constructs anchor vectors, positive pair vectors, and negative pair vectors, and then performs contrastive learning through the instance relation head and constructs the instance relation loss. , specifically including: Will gather The voiceprint signal example given in As an anchor instance, and They are , Any integer in Example of converted voiceprint signal Other voiceprint signal instances are considered positive is considered a negative pair; , positive pairs and negative pairs are respectively input into the feature extractor to obtain anchor vectors, positive pair vectors and negative pair vectors; then the feature pairs consisting of the anchor vector and the positive pair vector, and the feature pairs consisting of the anchor vector and the negative pair vector are input into the instance relation head We conduct contrastive learning and construct instance relationship loss : ; for Output: It is a label used to indicate positive or negative pairs in the mining of relationships between samples; Temporal relationship mining: Through data enhancement methods, a batch of voiceprint signal samples in the training set are Each voiceprint signal sample , perform K transformations to generate a set of voiceprint signal samples ; Collection-based The voiceprint signal samples are segmented at different times and feature extractors are used to construct hidden features, positive hidden features, and negative hidden features. Then, the temporal relation head is used for comparative learning and the temporal relation loss is constructed. , specifically including: Will gather Each voiceprint signal sample in Divide into past part and future parts , is a set value; randomly selected The past part The fragment in the ,Will A segment of the same length shifted back in time by T sampling points Select the right pair and set Other voiceprint signal samples The corresponding fragment is selected as a negative pair, ;Will , , Input them into the feature extractor respectively to obtain hidden features , facing hidden features and negative pair hidden features ;Will and The characteristic pairs composed of and The composed feature pairs are input to the temporal relation head Perform contrastive learning and construct temporal relationship loss : ; It is a label used to indicate positive or negative pairs in temporal relationship mining; is the output of the temporal relation head; Step 4: Comprehensive loss The fault detection model is trained until the fault detection model converges or the set number of training times is reached; is the weight.

2. The fault detection method based on a small amount of labeled data according to claim 1, characterized in that: In step 3, a batch of voiceprint signal samples in the training set are enhanced by data augmentation method. Each voiceprint signal sample When performing the transformation, it specifically includes: For voiceprint signal samples ,from Randomly select another voiceprint signal sample , randomly draw a value from the Beta distribution As weight; use right and Perform weighted averaging to obtain a new voiceprint signal sample : ; For new voiceprint signal samples In the amplitude dimension, Mixup technology is used to simulate the amplitude fluctuation of the voiceprint signal through amplitude distortion, and the time step remains unchanged; then the new voiceprint signal sample is Mixup technology is used in the time dimension to simulate the frequency fluctuation of the voiceprint signal through time distortion.

3. The fault detection method based on a small amount of labeled data according to claim 1, characterized in that: The fault detection model includes the feature extractor, the classification head, the instance relationship head and the time relationship head; during the training process, the feature extractor, the classification head, the instance relationship head and the time relationship head all participate in the training; during the inference process, the output of the feature extractor is used as the input of the classification head to obtain the fault category predicted by the classification head; The feature extractor It includes a four-layer one-dimensional convolutional neural network and two Transformer encoders. The convolutional neural network has ReLU activation units and batch normalization. The output of the convolutional neural network is used as the input of the Transformer encoder. The Transformer encoder consists of multiple self-attention layers and feed-forward neural network layers; After the Transformer encoder, the features extracted by the convolutional neural network and the Transformer encoder are concatenated, and then the concatenated features are sent to the classification head; The classification head is a linear layer; the instance relation head and the temporal relation head are both two-layer fully connected networks with multiple hidden neurons; The output of the classification head is the probability distribution of C fault categories, and the outputs of the instance relation head and the temporal relation head are the probability values ​​for distinguishing positive pairs and negative pairs.

4. The fault detection method based on a small amount of labeled data according to claim 1, characterized in that: The supervised learning loss for: 。