Intelligent fault diagnosis method and device for transmission parts of mechanical equipment

Through the combined method of self-supervised pre-training and fine-tuning network, the self-attention mechanism is used to extract global features, which solves the problem of insufficient feature extraction and generalization performance in the diagnosis of mechanical equipment transmission components, and achieves efficient fault diagnosis under different working conditions. , suitable for on-site real-time identification.

CN116007937BActive Publication Date: 2024-09-06SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211575101.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2024-09-06
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

Existing intelligent fault diagnosis methods based on deep learning have shortcomings in feature extraction and generalization performance, especially the diagnosis of mechanical equipment transmission components, which requires a large number of labeled samples and does not have good adaptability to changes in working conditions.

Method used

Using a combination of self-supervised pre-training network and fine-tuning network, through a random mask module and an encoder model based on a self-attention mechanism, unlabeled data is used for self-supervised learning, global features are extracted, and fine-tuning is performed through the classifier model. Reduce dependence on labeled samples and improve diagnostic efficiency and generalization performance.

Benefits of technology

It realizes intelligent fault diagnosis of transmission components of mechanical equipment under different working conditions, extracts more comprehensive effective features, reduces dependence on label samples, improves diagnosis efficiency and generalization performance of the model, and is suitable for real-time identification of mechanical equipment on site. health status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116007937B
    Figure CN116007937B
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent operation and maintenance of mechanical equipment, and in particular to an intelligent fault diagnosis method and device for transmission components of mechanical equipment. The present invention collects vibration signals under different working conditions as training samples, avoiding the problem of model performance degradation due to changes in working conditions. By establishing a self-supervised pre-training network, it makes full use of easily accessible unlabeled sample training networks, so that the network can extract more effective features and reduce dependence on labeled samples; in addition, through the encoder model and decoder model based on the self-attention mechanism, more comprehensive global features are extracted, while redundant features are suppressed and effective features are enhanced. There is no need to pre-enhance the input data through pre-processing, thereby improving the diagnostic efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent operation and maintenance of mechanical equipment, and in particular to an intelligent fault diagnosis method and device for transmission components of mechanical equipment. Background Art

[0002] Mechanical equipment is the most important carrier in industrial production, and plays an important role in ensuring product quality, improving production efficiency and creating economic benefits. Mechanical equipment transmission components are the core components of mechanical equipment, playing a key role in bearing loads and transmitting power. However, mechanical equipment transmission components usually operate in harsh working environments and need to serve uninterruptedly for a long time. Once a failure occurs, serious consequences will occur. Timely monitoring and diagnosis of mechanical equipment transmission components can reasonably plan equipment maintenance time, increase economic benefits, and avoid catastrophic consequences. Therefore, conducting research on intelligent diagnosis methods for mechanical equipment transmission components is of great significance to improving their stability and reliability.

[0003] In recent years, with the development of industrial big data and artificial intelligence technology, deep learning has been widely used in intelligent fault diagnosis methods for transmission components of mechanical equipment. By constructing multi-layer deep structures such as deep neural networks, deep belief networks, recurrent neural networks and convolutional neural networks, the intelligent fault diagnosis model can approximate the complex functional relationship between the signal and its corresponding fault type, thereby obtaining accurate diagnosis results. Compared with traditional methods, intelligent fault diagnosis methods based on deep learning have the advantages of not requiring data preprocessing, automatically extracting features and being able to process big data, so they are increasingly widely studied.

[0004] Although the intelligent diagnosis method based on deep learning has the above advantages, some of its own shortcomings hinder its practical application in engineering. On the one hand, the intelligent diagnosis method based on deep learning requires a large number of labeled samples in the process of training the network model, which is unrealistic in actual engineering, because it requires expert knowledge and engineering experience to judge the type of fault, and it takes a lot of manpower and material resources to label these samples. When facing new diagnostic tasks or new data sets, the network model needs to be trained from scratch; on the other hand, most of the existing methods choose to pre-enhance the features through preprocessing due to the insufficient ability to extract high-level features. This step will reduce the efficiency of the entire diagnostic process, and the diagnostic performance will decrease when it processes raw vibration data. Secondly, the existing deep learning model usually extracts features from the local part, but it is impossible to determine whether it is a redundant feature or an effective feature related to the fault type. Finally, the existing method usually sets the training data and test data under the same working conditions. When the working conditions change, the performance of the model will inevitably decrease, reducing the practicality of the method. These shortcomings will lead to the fact that the features learned by the existing intelligent fault diagnosis method based on self-supervised learning are not comprehensive enough, and the generalization ability and practicality of the diagnostic model are poor. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problems in the prior art that the features learned are not comprehensive enough, have poor generalization performance, and are highly dependent on labeled samples.

[0006] In order to solve the above technical problems, the present invention provides an intelligent fault diagnosis method for transmission components of mechanical equipment, comprising:

[0007] Collect vibration signals of transmission parts of mechanical equipment under different working conditions, intercept the vibration signals multiple times according to preset data point lengths to obtain multiple sample data, divide the multiple sample data according to preset proportions, calibrate part of the sample data according to fault categories as labeled data sets, and use the other part as unlabeled data sets;

[0008] A self-supervised pre-trained network is established by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and the samples in the unlabeled data set are masked and reconstructed using the self-supervised pre-trained network, wherein the reconstruction includes an encoding process and a decoding process, and the reconstruction loss between the signals before and after the reconstruction is calculated. The self-supervised pre-trained network is optimized by minimizing the reconstruction loss as an objective function, and the network parameters of the self-supervised pre-trained network are updated;

[0009] A fine-tuning network is established by constructing the encoder model and the classifier model, and the parameters corresponding to the encoder model in the optimized self-supervised pre-training network are transferred to the encoder model of the fine-tuning network, and the samples in the labeled data set are classified by using the fine-tuning network, and the classification loss is calculated. The fine-tuning network is optimized with minimizing the classification loss as the objective function, and the network parameters of the fine-tuning network are updated to obtain an intelligent fault diagnosis model for transmission parts of mechanical equipment;

[0010] The vibration signal to be tested is input into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

[0011] Preferably, the step of masking the samples in the unlabeled dataset using the self-supervised pre-trained network comprises:

[0012] For the input sample [X 1 ;X 2 ;...;X n ] Perform random masking operation to obtain the mask output matrix X m =[X 1 ;X 2 ;...;X n ][c 1 ;c 2 ;...;c n ] T , where n is the length of the preset data point, x 1 to x n Represents the n row vectors of the input matrix, c 1 to c n represents a randomly generated mask vector, half of which are 1 and the rest are 0, and T represents transpose;

[0013] Remove the row vectors of 0 in the mask output matrix to obtain the final mask output matrix X M =X m -X 0 .

[0014] Preferably, the reconstructed encoding process includes:

[0015] The final mask output matrix is ​​added with a row of category token vectors for aggregating classification information, and the position code for indicating the position information is superimposed to obtain the first coding feature in, represents the category token vector, represents the merge matrix, Indicates positional encoding;

[0016] The first coding feature is subjected to layer normalization to obtain a second coding feature Among them, γ is the scaling parameter, β is the translation parameter, and the normalized value The mean of the first encoded feature in the last dimension variance N dim is the dimension of the last dimension of the first encoded feature;

[0017] The second encoding feature is processed through a multi-level stack of multi-head self-attention layers and multi-layer perceptron layers to obtain the target encoding feature Among them, the processing process of the d-th level multi-head self-attention layer and the d-th level multi-layer perceptron layer is:

[0018] Calculate the self-attention value of the output of the d-1th multilayer perceptron layer Compare it with the output of the d-1th multilayer perceptron layer Residual connection to get the output of the d-th level multi-head self-attention layer Where depth is the number of layers of the multi-head self-attention layer and the multi-layer perceptron layer stack. When d = 1, is the self-attention value of the second encoding feature, is the first coding feature;

[0019] The output of the d-th level multi-head self-attention layer and the weights of the first linear layer The product of the first linear layer bias b 1 The sum of, after being processed by the GeLU activation function, and the weight of the second linear layer Multiply it with the second linear layer bias b 2 Add together and finally add to the output of the d-th level multi-head self-attention layer Residual connection to get the output of the d-level multilayer perceptron layer

[0020] Preferably, the reconstructed decoding process includes:

[0021] Restore the target encoding feature to the vector y where the random mask module is removed d =y+X 0 , and reduce its dimension through the third linear layer to obtain the first decoding feature y d ′=y d *w d +b d ,in, is the weight matrix of the third linear layer, b d is the third linear layer bias;

[0022] The first decoding feature is processed by the multi-head self-attention layer and the multi-layer perceptron layer of the multi-stage stack, and the dimension is restored by the fourth linear layer to obtain a reconstructed feature.

[0023] Preferably, the reconstruction loss is:

[0024]

[0025] Among them, n B represents the batch size, represents the reconstruction feature, x i Represents the mask output matrix.

[0026] Preferably, the optimization method of the objective function is back propagation and gradient descent.

[0027] Preferably, the classifier model is a Softmax classifier, and the probability value of each fault belonging to a different category is output by the Softmax classifier. The calculation formula of the corresponding fault probability value is:

[0028]

[0029] Among them, x i ′ represents the i-th input feature, y i Represents the output probability value of the corresponding category, n s Indicates the total number of fault categories.

[0030] Preferably, the classification loss is:

[0031]

[0032] Among them, n b Indicates the batch size, n s ′ represents the total number of health status types, 1{·} represents a function in y j = k, returns 1, otherwise returns 0, y j represents the true label of the sample, Represents the predicted probabilities of all health states.

[0033] The present invention also provides an intelligent fault diagnosis device for a transmission component of a mechanical device, comprising:

[0034] A data set construction module is used to collect vibration signals of transmission parts of mechanical equipment under different working conditions, intercept the vibration signals multiple times according to a preset data point length to obtain multiple sample data, divide the multiple sample data according to a preset ratio, calibrate a part of the sample data according to the fault category as a labeled data set, and use the other part as an unlabeled data set;

[0035] A self-supervised pre-trained network construction module, which is used to establish a self-supervised pre-trained network by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and use the self-supervised pre-trained network to mask and reconstruct samples in the unlabeled data set, wherein the reconstruction includes an encoding process and a decoding process, and the reconstruction loss between the signals before and after the reconstruction is calculated, and the self-supervised pre-trained network is optimized by minimizing the reconstruction loss as an objective function, and the network parameters of the self-supervised pre-trained network are updated;

[0036] A prediction model construction module is used to establish a fine-tuning network by constructing the encoder model and the classifier model, and migrate the parameters corresponding to the encoder model in the optimized self-supervised pre-training network to the encoder model of the fine-tuning network, use the fine-tuning network to classify the samples in the labeled data set, calculate the classification loss, and optimize the fine-tuning network with minimizing the classification loss as the objective function, update the network parameters of the fine-tuning network, and obtain an intelligent fault diagnosis model for transmission parts of mechanical equipment;

[0037] The fault diagnosis module is used to input the vibration signal to be tested into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

[0038] 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 intelligent fault diagnosis method for transmission components of mechanical equipment are implemented.

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

[0040] The intelligent fault diagnosis method for transmission parts of mechanical equipment described in the present invention collects vibration signals under different working conditions as training samples, avoiding the problem of model performance degradation due to changes in working conditions. By establishing a self-supervised pre-training network, it makes full use of easily accessible unlabeled sample training networks, so that the network can extract more effective features and reduce dependence on labeled samples; in addition, through the encoder model and decoder model based on the self-attention mechanism, more comprehensive global features are extracted, while redundant features are suppressed and effective features are enhanced. There is no need to pre-enhance the input data through pre-processing, thereby improving the diagnostic efficiency. The present invention can complete the diagnostic tasks of the intelligent fault diagnosis model for transmission parts of mechanical equipment under new working conditions and has good generalization performance. It is suitable for real-time identification of the health status of transmission parts of mechanical equipment on site, and provides a reliable and convenient tool for intelligent diagnosis methods based on deep self-supervised learning. It has important field significance and broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] 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:

[0042] Figure 1 It is a flow chart of an implementation method of intelligent fault diagnosis of transmission components of mechanical equipment according to the present invention;

[0043] Figure 2 Schematic diagram of the self-supervised pre-training network of the present invention;

[0044] Figure 3 is a schematic diagram of the fine-tuning network of the present invention;

[0045] Figure 4 Schematic diagram of the encoder model in the self-supervised pre-training network and fine-tuning network of the present invention;

[0046] Figure 5 This is a structural block diagram of an intelligent fault diagnosis device for transmission components of mechanical equipment provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The core of the present invention is to provide a method, device and computer storage medium for intelligent fault diagnosis of transmission parts of mechanical equipment. The learned features are more comprehensive, which improves the generalization ability and practicality of the diagnosis model.

[0048] 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.

[0049] Please refer to Figure 1 , Figure 1 This is a flowchart of the implementation of the intelligent fault diagnosis method for the transmission components of mechanical equipment provided by the present invention; the specific operation steps are as follows:

[0050] S101: collecting vibration signals of transmission parts of mechanical equipment under different working conditions, intercepting the vibration signals multiple times according to a preset data point length to obtain multiple sample data, dividing the multiple sample data according to a preset ratio, calibrating a part of the sample data according to the fault category as a labeled data set, and taking the other part as an unlabeled data set;

[0051] Use sensors to collect vibration signals of mechanical equipment transmission parts under various working conditions, intercept the vibration signals according to a certain data point length to obtain a large number of sample sets X, and select samples under one working condition as the test data set The samples under other working conditions are the training data set. The samples with known fault types in the training data set are calibrated according to the fault category, and the category label Y is set. The training data set is divided into an unlabeled data set. And labeled datasets Where n T , n U , n L Represent the number of samples in the test dataset, unlabeled dataset and labeled dataset respectively. All the datasets are from the laboratory experimental platform.

[0052] like Figure 2 As shown:

[0053] S102: establishing a self-supervised pre-trained network by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and using the self-supervised pre-trained network to mask and reconstruct samples in the unlabeled data set, wherein the reconstruction includes an encoding process and a decoding process, calculating a reconstruction loss between signals before and after reconstruction, and optimizing the self-supervised pre-trained network by minimizing the reconstruction loss as an objective function, and updating the network parameters of the self-supervised pre-trained network;

[0054] The input unlabeled signal is masked and eliminated through the random mask module, the representation is extracted from the retained original signal through the encoder model, and the signal is reconstructed according to the extracted representation through the decoder model. Both the encoder model and the decoder model are based on the self-attention mechanism, which can effectively avoid the problem that the features extracted by the model are not comprehensive and lack specificity.

[0055] The encoder model includes multi-head self-attention layers, layer normalization layers, multi-layer perceptron layers and residual connections.

[0056] The decoder model includes linear layers, multi-head self-attention layers, layer normalization layers, multi-layer perceptron layers and residual connections.

[0057] like Figure 3 As shown:

[0058] S103: Establish a fine-tuning network by constructing the encoder model and the classifier model, and migrate the parameters corresponding to the encoder model in the optimized self-supervised pre-training network to the encoder model of the fine-tuning network, use the fine-tuning network to classify the samples in the labeled data set, calculate the classification loss, and optimize the fine-tuning network with minimizing the classification loss as the objective function, update the network parameters of the fine-tuning network, and obtain an intelligent fault diagnosis model for transmission parts of mechanical equipment;

[0059] The establishment of the fine-tuning network includes an encoder model and a classifier model, wherein the encoder model is consistent with the encoder model in the pre-trained network, and the repeated parts are not repeated here. By migrating the corresponding parameters of the encoder model in the pre-trained network, its feature extraction capability is inherited, and then a small amount of labeled data is used to train the network to adapt to the fault diagnosis task.

[0060] The optimization methods of the objective function are back propagation and gradient descent.

[0061] The classifier model is a Softmax classifier, which outputs the probability value of each fault belonging to a different category. The corresponding fault probability value is calculated as follows:

[0062]

[0063] Among them, x i ′ represents the i-th input feature, y i Represents the output probability value of the corresponding category, n s Indicates the total number of fault categories.

[0064] The classification loss is:

[0065]

[0066] Among them, n b Indicates the batch size, n s ′ represents the total number of health status types, 1{·} represents a function in y j = k, returns 1, otherwise returns 0, y j represents the true label of the sample, Represents the predicted probabilities of all health states.

[0067] S104: Inputting the vibration signal to be tested into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

[0068] The intelligent fault diagnosis method for transmission parts of mechanical equipment described in the present invention collects vibration signals under different working conditions as training samples, avoiding the problem of model performance degradation due to changes in working conditions. By establishing a self-supervised pre-training network, it makes full use of easily accessible unlabeled sample training networks, so that the network can extract more effective features and reduce dependence on labeled samples; in addition, through the encoder model and decoder model based on the self-attention mechanism, more comprehensive global features are extracted, while redundant features are suppressed and effective features are enhanced. There is no need to pre-enhance the input data through pre-processing, thereby improving the diagnostic efficiency. The present invention can complete the diagnostic tasks of the intelligent fault diagnosis model for transmission parts of mechanical equipment under new working conditions and has good generalization performance. It is suitable for real-time identification of the health status of transmission parts of mechanical equipment on site, and provides a reliable and convenient tool for intelligent diagnosis methods based on deep self-supervised learning. It has important field significance and broad application prospects.

[0069] Based on the above embodiments, this embodiment further describes step S102 in detail:

[0070] The masking of samples in the unlabeled dataset using the self-supervised pre-trained network comprises:

[0071] For the input sample [X 1 ;X 2 ;...;X n ] Perform random masking operation to obtain the mask output matrix X m =[X 1 ;X 2 ;...;X n ][c 1 ;c 2 ;...;c n ] T , where n is the length of the preset data point, x 1 to x n Represents the n row vectors of the input matrix, c 1 to c n represents a randomly generated mask vector, half of which are 1 and the rest are 0, and T represents transpose;

[0072] The row vectors set to 0 in the mask output matrix are converted into trainable parameters and temporarily removed to obtain the final mask output matrix X M =X m -X 0 .

[0073] The final output mask matrix The input is fed into the encoder model for encoding representation.

[0074] Reconstructing the samples in the unlabeled data set using the self-supervised pre-trained network specifically includes:

[0075] like Figure 4 As shown, the reconstructed encoding process includes:

[0076] The final mask output matrix is ​​added with a row of category token vectors for aggregating classification information, and the position code for indicating the position information is superimposed to obtain the first coding feature in, represents the category token vector, represents the merge matrix, Indicates positional encoding;

[0077] The first coding feature is subjected to layer normalization to obtain the second coding feature X, which is mathematically expressed as:

[0078]

[0079]

[0080]

[0081]

[0082] Among them, μ is the mean of the input in the last dimension, σ 2 is the variance, is the standardized value, ε is the smoothing factor to prevent the output from being infinite when the variance is 0. The scaling parameter γ and the translation parameter β are introduced in the final batch standardized output to further improve the stability of the numerical output. The scaling parameter γ and the translation parameter β are updated by the back propagation algorithm during network training. N dim is the dimension of the last dimension of the first encoded feature;

[0083] The second encoding feature is processed through a multi-level stack of multi-head self-attention layers and multi-layer perceptron layers to obtain the target encoding feature Among them, the processing process of the d-th level multi-head self-attention layer and the d-th level multi-layer perceptron layer is:

[0084] Calculate the self-attention value of the output of the d-1th multilayer perceptron layer Compare it with the output of the d-1th multilayer perceptron layer Residual connection to prevent gradient disappearance, and get the output of the d-th level multi-head self-attention layer d=1,2,3,...,depth, where depth is the number of layers of multi-head self-attention layer and multi-layer perceptron layer stacking. When d=1, is the self-attention value of the second encoding feature, is the first coding feature;

[0085] The output of the d-th level multi-head self-attention layer and the weights of the first linear layer The product of the first linear layer bias b 1 The sum of, after being processed by the GeLU activation function, and the weight of the second linear layer Multiply it with the second linear layer bias b 2 Add together and finally add to the output of the d-th level multi-head self-attention layer Residual connection, get the output of d-level multilayer perceptron layer to achieve complex nonlinear mapping d=1,2,3,...,depth.

[0086] The mathematical expression for calculating the multi-head self-attention value is:

[0087] Q=X·W q ,K=X·W k ,V=X·W v

[0088]

[0089] head i =Attention(Q·W i Q ,K.W i K ,V.W i V )

[0090] y MSA ′=Concat(head 1 ,...head i )W O

[0091] in, Represents the query matrix, which is used for subsequent matching with the key matrix. Represents the key matrix, which is used to match the query matrix. Represents a value matrix, representing the original input The information extracted from and are their respective learnable transformation matrices, The matching process calculates the product of the query matrix and the key matrix, divides the scaling factor and passes through the Softmax function. The result is the correlation between the two, which is then multiplied by the value matrix as the weight of the value matrix; different sets of transformation matrices are used to obtain features from different subspaces.

[0092] '

[0093] Information, merge the calculation results of multiple groups of self-attention, and get the multi-head self-attention value y MSA .

[0094] The reconstructed decoding process includes:

[0095] Restore the target encoding feature to the vector y where the random mask module is removed d =y+X 0 , And reduce its dimension through the third linear layer to obtain the first decoding feature y d ′=y d *w d +b d , in, is the weight matrix of the third linear layer, b d is the third linear layer bias;

[0096] The first decoding feature is processed by the multi-head self-attention layer and the multi-layer perceptron layer of the multi-stage stack, and the dimension is restored by the fourth linear layer to obtain a reconstructed feature.

[0097] The reconstruction loss is:

[0098]

[0099] Among them, n B represents the batch size, represents the reconstruction feature, x i Represents the mask output matrix.

[0100] Based on the above embodiments, this embodiment verifies the effectiveness of the present invention through a specific experiment:

[0101] The data used in the experiment comes from the bearing fault simulation test bench of Suzhou University. The bearing fault data set has seven health states, including 0.2mm fault of the inner ring of the bearing, 0.2mm fault of the rolling element, 0.2mm fault of the outer ring, and compound fault types (including compound fault of the inner ring and rolling element, compound fault of the inner ring and outer ring, compound fault of the outer ring and rolling element, and compound fault of the inner ring, outer ring and rolling element). The data under each health state are collected at a speed of 800rpm and four different loads (0KN, 0.8KN, 1.6KN, 2.5KN). Each health state under each working condition contains 200 samples, and each sample contains 1024 data points. The data under the load of 2.5KN is selected as the test data set, and the data under the rest of the loads are the training test set. The labels of some samples under the load of 1.6KN in the training test set are given, and the number is (5, 10, 15, 20) for each health state, and the rest are unlabeled samples. The detailed information of the samples used in the experiment is shown in Table 1.

[0102] Table 1 Number of samples in each health state

[0103]

[0104] In order to verify the effectiveness of the proposed invention, this experimental case implemented four diagnostic tasks under different few-label sample conditions, where the number of labeled samples was 5, 10, 15 and 20 in each health state, accounting for 2.5%, 5%, 7.5% and 10% of the total number of samples, respectively. In order to verify the effectiveness of the intelligent fault diagnosis method and system for transmission parts of mechanical equipment proposed in the present invention, five other advanced intelligent diagnosis methods based on self-supervised learning were used for comparison, including self-attention encoder (SAE), convolutional autoencoder (CAE), contextual autoencoder (CE), denoising convolutional neural network (DCNN) and denoising autoencoder (DAE). The parameters of each network model training were set as follows: initial learning rate was 0.001, batch size was 128, and number of iterations was 50.

[0105] Compared with other self-supervised learning intelligent diagnosis methods, the classification accuracy of the proposed method has achieved the best results in the diagnosis tasks under four different few-label sample conditions, showing the superiority of the present invention. The comparison results are shown in Table 2.

[0106] Table 2 Accuracy of each method in each diagnostic task

[0107]

[0108] In order to solve the problems that existing intelligent fault diagnosis methods rely heavily on labeled samples and the features extracted by the diagnostic network are not comprehensive and targeted, the present invention takes the transmission components of mechanical equipment as the research object, extracts supervision information from unlabeled signals through a self-supervised learning method, enhances the performance of the network in extracting effective representations, constructs a network model using a self-attention mechanism, extracts comprehensive and targeted features, and improves the generalization performance of the model.

[0109] Please refer to Figure 5 , Figure 5 A structural block diagram of an intelligent fault diagnosis device for a mechanical equipment transmission component provided by an embodiment of the present invention; the specific device may include:

[0110] The data set construction module 100 is used to collect vibration signals of transmission parts of mechanical equipment under different working conditions, intercept the vibration signals multiple times according to a preset data point length to obtain multiple sample data, divide the multiple sample data according to a preset ratio, calibrate a part of the sample data according to the fault category as a labeled data set, and use the other part as an unlabeled data set;

[0111] A self-supervised pre-trained network construction module 200 is used to establish a self-supervised pre-trained network by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and use the self-supervised pre-trained network to mask and reconstruct samples in the unlabeled data set, wherein the reconstruction includes an encoding process and a decoding process, and the reconstruction loss between the signals before and after the reconstruction is calculated, and the self-supervised pre-trained network is optimized by minimizing the reconstruction loss as an objective function, and the network parameters of the self-supervised pre-trained network are updated;

[0112] The prediction model construction module 300 is used to establish a fine-tuning network by constructing the encoder model and the classifier model, and migrate the parameters corresponding to the encoder model in the optimized self-supervised pre-training network to the encoder model of the fine-tuning network, use the fine-tuning network to classify the samples in the labeled data set, calculate the classification loss, and optimize the fine-tuning network with minimizing the classification loss as the objective function, update the network parameters of the fine-tuning network, and obtain the intelligent fault diagnosis model of the transmission parts of the mechanical equipment;

[0113] The fault diagnosis module 400 is used to input the vibration signal to be tested into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

[0114] The intelligent fault diagnosis device for transmission components of mechanical equipment in this embodiment is used to implement the aforementioned intelligent fault diagnosis method for transmission components of mechanical equipment. Therefore, the specific implementation method of the intelligent fault diagnosis device for transmission components of mechanical equipment can be seen in the implementation method part of the aforementioned intelligent fault diagnosis method for transmission components of mechanical equipment. For example, the data set construction module 100, the self-supervised pre-training network construction module 200, the prediction model construction module 300, and the fault diagnosis module 400 are respectively used to implement steps S101, S102, S103, and S104 in the aforementioned intelligent fault diagnosis method for transmission components of mechanical equipment. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be repeated here.

[0115] 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 intelligent fault diagnosis method for transmission components of mechanical equipment are implemented.

[0116] 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.

[0117] 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.

[0118] 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.

[0119] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0120] 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. An intelligent fault diagnosis method for transmission components of mechanical equipment, characterized in that: include: Collect vibration signals of transmission parts of mechanical equipment under different working conditions, intercept the vibration signals multiple times according to preset data point lengths to obtain multiple sample data, divide the multiple sample data according to preset proportions, calibrate part of the sample data according to fault categories as labeled data sets, and use the other part as unlabeled data sets; A self-supervised pre-trained network is established by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and the samples in the unlabeled data set are masked and reconstructed using the self-supervised pre-trained network, wherein the reconstruction includes an encoding process and a decoding process, and the reconstruction loss between the signals before and after the reconstruction is calculated. The self-supervised pre-trained network is optimized by minimizing the reconstruction loss as an objective function, and the network parameters of the self-supervised pre-trained network are updated; The masking of the samples in the unlabeled dataset using the self-supervised pre-trained network comprises: masking the input samples [X1; X2; ...; X n ] Perform random masking operation to obtain the mask output matrix X m =[X1;X2;...;X n ][c1;c2;...;c n ] T , where n is the length of the preset data point, x1 to x n Represents the n row vectors of the input matrix, c1 to c n represents a randomly generated mask vector, half of which are 1 and the rest are 0, and T represents transpose; the row vectors with 0 in the mask output matrix are removed to obtain the final mask output matrix X M =X m -X0; The reconstructed encoding process includes: adding a row of category token vectors for aggregating classification information to the final mask output matrix, and superimposing a position code for indicating position information to obtain a first encoding feature in, represents the category token vector, represents the merge matrix, Indicates positional encoding; The first coding feature is subjected to layer normalization to obtain a second coding feature Among them, γ is the scaling parameter, β is the translation parameter, and the normalized value The mean of the first encoded feature in the last dimension variance ε is the smoothing factor, N dim is the dimension of the last dimension of the first encoded feature; The second encoding feature is processed through a multi-level stack of multi-head self-attention layers and multi-layer perceptron layers to obtain the target encoding feature Among them, the processing process of the d-th level multi-head self-attention layer and the d-th level multi-layer perceptron layer is: Calculate the self-attention value of the output of the d-1th multilayer perceptron layer Compare it with the output of the d-1th multilayer perceptron layer Residual connection to get the output of the d-th level multi-head self-attention layer Where depth is the number of layers of the multi-head self-attention layer and the multi-layer perceptron layer stack. When d = 1, is the self-attention value of the second encoding feature, is the first coding feature; The output of the d-th multi-head self-attention layer and the weights of the first linear layer The product of and the sum of the first linear layer bias b1, after being processed by the GeLU activation function, is combined with the second linear layer weight Multiply it and add it to the second linear layer bias b2, and finally add it to the output of the d-th multi-head self-attention layer Residual connection to get the output of the d-level multilayer perceptron layer A fine-tuning network is established by constructing the encoder model and the classifier model, and the parameters corresponding to the encoder model in the optimized self-supervised pre-training network are transferred to the encoder model of the fine-tuning network, and the samples in the labeled data set are classified by using the fine-tuning network, and the classification loss is calculated. The fine-tuning network is optimized with minimizing the classification loss as the objective function, and the network parameters of the fine-tuning network are updated to obtain an intelligent fault diagnosis model for transmission parts of mechanical equipment; The vibration signal to be tested is input into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

2. The intelligent fault diagnosis method for transmission components of mechanical equipment according to claim 1 is characterized in that: The reconstructed decoding process includes: Restore the target encoding feature to the vector y where the random mask module is removed d =y+X0, and reduce its dimension through the third linear layer to obtain the first decoding feature y d ′=y d *w d +b d ,in, is the weight matrix of the third linear layer, b d is the third linear layer bias; The first decoding feature is processed by the multi-head self-attention layer and the multi-layer perceptron layer of the multi-stage stack, and the dimension is restored by the fourth linear layer to obtain a reconstructed feature.

3. The intelligent fault diagnosis method for transmission components of mechanical equipment according to claim 2 is characterized in that: The reconstruction loss is: Among them, n B represents the batch size, represents the reconstruction feature, x i Represents the mask output matrix.

4. The intelligent fault diagnosis method for transmission components of mechanical equipment according to claim 1 is characterized in that: The optimization methods of the objective function are back propagation and gradient descent.

5. The intelligent fault diagnosis method for transmission components of mechanical equipment according to claim 1 is characterized in that: The classifier model is a Softmax classifier, which outputs the probability value of each fault belonging to a different category. The corresponding fault probability value is calculated as follows: Among them, x i ′ represents the i-th input feature, y i Represents the output probability value of the corresponding category, n s Indicates the total number of fault categories.

6. The intelligent fault diagnosis method for transmission components of mechanical equipment according to claim 1, characterized in that: The classification loss is: Among them, n b Indicates the batch size, n s ′ represents the total number of health status types, 1{·} represents a function in y j = k, returns 1, otherwise returns 0, y j represents the true label of the sample, Represents the predicted probabilities of all health states.

7. An intelligent fault diagnosis device for transmission components of mechanical equipment, characterized in that: include: A data set construction module is used to collect vibration signals of transmission parts of mechanical equipment under different working conditions, intercept the vibration signals multiple times according to a preset data point length to obtain multiple sample data, divide the multiple sample data according to a preset ratio, calibrate a part of the sample data according to the fault category as a labeled data set, and use the other part as an unlabeled data set; A self-supervised pre-trained network construction module, which is used to establish a self-supervised pre-trained network by constructing a random mask module, an encoder model and a decoder model based on a self-attention mechanism, and use the self-supervised pre-trained network to mask and reconstruct samples in the unlabeled data set, wherein the reconstruction includes an encoding process and a decoding process, and the reconstruction loss between the signals before and after the reconstruction is calculated, and the self-supervised pre-trained network is optimized by minimizing the reconstruction loss as an objective function, and the network parameters of the self-supervised pre-trained network are updated; The masking of the samples in the unlabeled dataset using the self-supervised pre-trained network comprises: masking the input samples [X1; X2; ...; X n ] Perform random masking operation to obtain the mask output matrix X m =[X1;X2;...;X n ][c1;c2;...;c n ] T , where n is the length of the preset data point, x1 to x n Represents the n row vectors of the input matrix, c1 to c n represents a randomly generated mask vector, half of which are 1 and the rest are 0, and T represents transpose; the row vectors with 0 in the mask output matrix are removed to obtain the final mask output matrix X M =X m -X0; The reconstructed encoding process includes: adding a row of category token vectors for aggregating classification information to the final mask output matrix, and superimposing a position code for indicating position information to obtain a first encoding feature in, represents the category token vector, represents the merge matrix, Indicates positional encoding; The first coding feature is subjected to layer normalization to obtain a second coding feature Among them, γ is the scaling parameter, β is the translation parameter, and the normalized value The mean of the first encoded feature in the last dimension variance ε is the smoothing factor, N dim is the dimension of the last dimension of the first encoded feature; The second encoding feature is processed through a multi-level stack of multi-head self-attention layers and multi-layer perceptron layers to obtain the target encoding feature Among them, the processing process of the d-th level multi-head self-attention layer and the d-th level multi-layer perceptron layer is: Calculate the self-attention value of the output of the d-1th multilayer perceptron layer Compare it with the output of the d-1th multilayer perceptron layer Residual connection to get the output of the d-th level multi-head self-attention layer Where depth is the number of layers of the multi-head self-attention layer and the multi-layer perceptron layer stack. When d = 1, is the self-attention value of the second encoding feature, is the first coding feature; The output of the d-th multi-head self-attention layer and the weights of the first linear layer The product of and the sum of the first linear layer bias b1, after being processed by the GeLU activation function, is combined with the second linear layer weight Multiply it and add it to the second linear layer bias b2, and finally add it to the output of the d-th multi-head self-attention layer Residual connection to get the output of the d-level multilayer perceptron layer A prediction model construction module is used to establish a fine-tuning network by constructing the encoder model and the classifier model, and migrate the parameters corresponding to the encoder model in the optimized self-supervised pre-training network to the encoder model of the fine-tuning network, use the fine-tuning network to classify the samples in the labeled data set, calculate the classification loss, and optimize the fine-tuning network with minimizing the classification loss as the objective function, update the network parameters of the fine-tuning network, and obtain an intelligent fault diagnosis model for transmission parts of mechanical equipment; The fault diagnosis module is used to input the vibration signal to be tested into the intelligent fault diagnosis model of the mechanical equipment transmission component to obtain the fault category of the mechanical equipment transmission component.

8. 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 the intelligent fault diagnosis method for transmission components of a mechanical device as claimed in any one of claims 1 to 6 are implemented.