A planetary gearbox fault diagnosis method based on hybrid enhanced prototype network
By introducing the hybrid enhanced prototype network in planetary gearbox fault diagnosis, and using the Inception network module and DenseBlock network module to extract multi-scale features, the problem of insufficient data in planetary gearbox fault diagnosis in the existing technology is solved, and high accuracy is achieved fault diagnosis.
Patent Information
- Application Number
- CN202011592786.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-22
- Filing Date
- 2020-12-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-29
AI Technical Summary
Existing deep learning methods require a large amount of labeled data in planetary gearbox fault diagnosis, and the prototype network is difficult to extract multi-scale features under limited sample conditions, resulting in model overfitting and insufficient learning ability.
A hybrid enhanced prototype network is used, combined with the Inception network module and the DenseBlock network module, to enhance the network's adaptability to multi-scale information and nonlinear learning capabilities through multi-scale feature extraction and feature channel splicing, and improve the efficiency of fault feature extraction and diagnosis.
The fault feature extraction capability and diagnostic accuracy in planetary gearbox fault diagnosis are improved, and efficient fault classification can be achieved under small sample conditions.
Smart Images

Figure CN114282425B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of simulation analysis and relates to a planetary gearbox fault diagnosis method based on a hybrid enhanced prototype network. Background Art
[0002] Planetary gearboxes have the advantages of strong load-bearing capacity, large transmission ratio, and compact structure, and are widely used in many important high-output power mechanical equipment such as heavy trucks, helicopters, and wind turbines. However, due to the complex structure and harsh working environment, the key components of planetary gearboxes often suffer impact damage, which may endanger personal safety and cause huge economic losses. Therefore, effective and accurate fault diagnosis of planetary gearboxes remains a huge challenge in academic fields and industry.
[0003] As a cutting-edge data-driven method, deep learning has powerful nonlinear representation capabilities and can adaptively extract features from large amounts of data. In recent years, different types of deep learning methods, such as Deep Belief Network (DBN), Deep Auto-Encoder (DAE), Convolutional Neural Network (CNN), Residual Network (ResNet), etc., have been widely concerned and applied to planetary gearbox fault diagnosis. Nevertheless, these applications of deep learning methods usually have to meet the following two conditions: First, these methods usually require a large amount of labeled data to train effective neural network models. This condition greatly increases the difficulty of deep learning methods in fault diagnosis applications. In practical engineering applications, due to changes in working conditions (including equipment load and speed changes), it is usually difficult to obtain sufficient labeled data, which makes it difficult to train effective and highly robust models for fault diagnosis.
[0004] Prototypical Networks (ProtoNet) is a new type of deep neural network. Unlike traditional convolutional neural networks, ProtoNet does not require a large number of labeled samples for model training, and only requires a small amount of training data for each category. The prototype network maps the data in each category into a high-dimensional feature space and extracts their mean to represent the prototype of the category. Using Euclidean distance as the distance metric in high-dimensional space, the training makes the distance between the data in this category and the prototype representation of this category the closest, and the distance to the prototype representation of other categories is farther. During testing, the distance between the test data and the prototype data of each category is used as a clustering judgment criterion to determine the category label of the test data. However, the training samples in the ProtoNet model training process are limited, and its original feature extraction layer can only extract feature information of a single scale, which makes it difficult to use limited labeled data more efficiently. The data features of a single scale are difficult to represent the overall distribution information of the data; at the same time, the single feature of a small number of samples easily leads to model overfitting, which further inhibits the learning ability of the model. Therefore, how to improve the feature extraction and adaptive learning ability of ProtoNet in fault diagnosis is a key technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, the object of the present invention is to provide a planetary gearbox fault diagnosis method based on a hybrid enhanced prototype network.
[0006] In order to achieve the above object, the present invention provides the following technical solutions:
[0007] A planetary gearbox fault diagnosis method based on a hybrid enhanced prototype network, the method comprising the following steps:
[0008] S1. Obtain the vibration data of the planetary gearbox and construct a training set and a test set, where the training set is divided into a support data set and a query data set;
[0009] S2, build a hybrid enhanced prototype network;
[0010] S3, input the planetary gearbox data into the hybrid enhanced prototype network, obtain the prototype through the support data set, and optimize the training in combination with the query data set;
[0011] S4. Input the test set into the model and output the fault diagnosis results.
[0012] Optionally, step S1 specifically includes:
[0013] S11, arranging sensors to collect vibration data of the planetary gearbox in different health states, and dividing the data into a training set and a test set;
[0014] S12, the original data is intercepted by sliding window method, and the intercepted sample length is 1×2 n ,n∈Z + ;
[0015] S13, reconstruct the original vibration data into a square with a sample size of 2 n-1 ×2 n-1 ,n∈Z + ;
[0016] S14. Divide the training set samples into a query data set and a support data set in a ratio of 1:3.
[0017] Optionally, step S2 is specifically:
[0018] The hybrid enhanced prototype network includes 1 layer of Inception network module, 1 layer of DenseBlock network module, and 2 layers of fully connected layers;
[0019] The Inception module includes 4 branches;
[0020] The DenseBlock module includes two feature extraction blocks, namely the first feature extraction block and the second feature extraction block; the feature extraction blocks respectively include a Batchnorm layer, a ReLU activation layer, a convolution layer with a convolution kernel size of 1×1, a Batchnorm layer, a ReLU activation layer, and a convolution layer with a convolution kernel size of 3×3;
[0021] The features extracted by the DenseBlock module are connected by the feature channels of two feature extraction blocks, and are used to extract mixed features of different scale features in the Inception module;
[0022] Optionally, step S3 is specifically:
[0023] S31, setting sampling information, using sensors to collect vibration signals of different fault types of the planetary gearbox;
[0024] S32, constructing a training set and a test set of the model, and dividing the training set into a support data set and a query data set in a ratio of 1:3;
[0025] S33, randomly initialize the hybrid enhanced prototype network, and set the learning rate, batch training size, and training round number parameter values;
[0026] S34, inputting the query set and support set of the training data set into the model for training, adjusting the network parameters by optimizing the target loss function, and saving the better model parameters;
[0027] S35. Input the test data into the model, analyze the predicted classification results and the real categories, and verify the effectiveness of the planetary gearbox fault diagnosis method based on the hybrid enhanced prototype network.
[0028] Optionally, the feature information of different scales extracted by the Inception network module includes:
[0029] S1, obtain scale 1 feature information based on the input data through a multi-channel 1×1 convolution kernel;
[0030] S2, according to the input data through multi-channel 1×1 and 3×3 convolution kernels, obtain scale 2 features;
[0031] S3, according to the input data through multi-channel 1×1 and 5×5 convolution kernels, obtain scale 3 features;
[0032] S4, according to the input data through 3×3 maximum pooling and multi-channel 1×1 convolution kernel, obtain scale 4 features;
[0033] S5. The different scale features obtained through S1-S4 form multi-scale features.
[0034] Optionally, the extraction of the mixed feature comprises the following steps:
[0035] S1, calculate the multi-scale features through the first feature extraction block to obtain the mixed 1 feature; calculate the mixed 1 feature through the second feature extraction block to obtain the mixed 2 feature;
[0036] S2: Concatenate the mixed 1 feature and the mixed 2 feature to obtain the final multi-scale mixed feature.
[0037] The beneficial effects of the present invention are as follows: compared with the prior art, the hybrid enhanced prototype network in the present invention firstly adopts the Inception network module to perform multi-scale feature extraction, thereby reducing the number of model parameters while increasing the adaptability of the network to input data of different scales; at the same time, the DenseBlock network module is adopted to learn the mixed features of different scale features through two feature extraction blocks, thereby enhancing the nonlinearity of the network, thereby improving the fault feature extraction capability in planetary gearbox fault diagnosis and improving the fault diagnosis efficiency and accuracy.
[0038] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0040] Figure 1 A flow chart of a specific implementation of a planetary gearbox fault diagnosis method of a hybrid enhanced prototype network disclosed in the present invention;
[0041] Figure 2 This is a schematic diagram of the structure of the hybrid enhanced prototype network;
[0042] Figure 3 This is a schematic diagram of the Inception network module structure;
[0043] Figure 4 Dense Block network module structure diagram
[0044] Figure 5 It is the time domain waveform diagram of the original vibration signal of different categories;
[0045] Figure 6 10 test accuracy graphs for the hybrid enhanced prototype network;
[0046] Figure 7 Dimensionality reduction distribution diagram of the features extracted by the model for the test data;
[0047] Figure 8 This is the distribution diagram of the dimensionality reduction of the original signal of the test data. DETAILED DESCRIPTION
[0048] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0049] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0050] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0051] See also Figures 1 to 8 , a planetary gearbox fault diagnosis method based on hybrid enhanced prototype network.
[0052] like Figure 1 As shown, the present invention discloses a planetary gearbox fault diagnosis method of a hybrid enhanced prototype network, comprising the following steps:
[0053] S1. Obtain the original vibration data of the planetary gearbox and construct a training set and a test set, where the training set is divided into a support data set and a query data set;
[0054] S2. The acquired planetary gearbox data is input into a hybrid enhanced prototype network, a prototype is acquired through a supporting data set, and optimization training is performed in combination with a query data set. The hybrid enhanced prototype network includes 1 layer of Inception network module, 1 layer of DenseBlock network module, and 2 layers of fully connected layers, wherein the Inception module includes 4 branches, and feature information of different scales is obtained by calculating 4 types of convolutions of different sizes respectively; the DenseBlock module includes 2 feature extraction blocks, each feature extraction block includes 2 convolution layer calculations, and the features extracted by the DenseBlock module are connected by feature channels of the two feature extraction blocks, and mixed features of Inception features of different scales are extracted;
[0055] S3. The hybrid enhanced prototype network outputs a fault diagnosis result.
[0056] ProtoNet is a new type of deep neural network model. Its main structure uses the traditional convolutional neural network as the framework. In ProtoNet, the basic idea is that the distribution of a class is determined by the average value of all samples of this class in a certain high-dimensional feature space. This average value is called the "prototype". The training process of ProtoNet is to find a high-dimensional feature space in which all samples of the same class are closest and samples of different classes are farthest. The fully connected layer used at the end of ProtoNet is not used as a mapping from feature space to label space, but to map the abstract feature space to a high-dimensional space where the Euclidean distance can be calculated through the fully connected layer. During the training process, the prototype network divides the training data into a support set and a query set. First, the prototypes of different categories in the support set are calculated, and then the query set data is used to optimize the model; during the test process, the result calculation of the test sample is compared with the prototype, so as to achieve the distance measurement of the high-dimensional space for classification. Specifically, for category k, its prototype is:
[0057]
[0058] Among them, c k represents the prototype of category k, S k represents category k, |S k | represents the number of samples in category k, (x i ,y i ) represents the feature vector and label of the sample, f φ (·): Represents a mapping function that maps data of dimension D to an M-dimensional space.
[0059] After obtaining the prototypes of each category, the prototype network needs to construct a loss function through the query set data to optimize the model. The prototype network generates the category distribution of the query set data x based on the softmax of the distance of the prototype in its embedding space. For a given calculated distance function d(·), the query set data distribution is as follows:
[0060]
[0061] Among them, p φ Represents the query set data distribution function. During the training process, the objective function is minimized by the stochastic gradient descent method. Based on the category distance distribution of the query set, the following objective function is constructed:
[0062] J(φ)=-log p φ (y=k|x)
[0063] Among them, k represents the true label of the data.
[0064] The above is the working principle of the prototype network of the prior art. In the present invention, the multi-scale feature information of the original signal is extracted through the four convolution calculation branches of the Inception network module to enhance the adaptability of the network to multiple scales. At the same time, in order to improve the feature extraction efficiency of the model, the DenseBlock network module is used to reuse the upper layer features and extract the accumulated knowledge between the features of different network layers. Figure 3 and Figure 4 shown.
[0065] In specific implementation, step S1 includes:
[0066] S11, arranging sensors to collect vibration data of the planetary gearbox in different health states, and dividing the data into a training set and a test set;
[0067] S12, the original data is intercepted by sliding window method, and the intercepted sample length is 1×2 n ,n∈Z + ;
[0068] S13, reconstruct the one-dimensional original vibration signal into a square through reconstruction, and the sample size is 2 n-1 ×2 n-1 ,n∈Z + ;
[0069] S14. Divide the training data set into a query data set and a support data set according to a certain ratio.
[0070] The hybrid enhanced prototype network extracts multi-scale features of the original signal through the Inception network module, which enhances the model's adaptability to multi-scale information and improves the model's feature extraction capability.
[0071] In specific implementation, the Inception network module extracts multi-scale features including:
[0072] (1) The upper layer features are directly passed through the multi-channel 1×1 convolution kernel to calculate the scale 1 features;
[0073] (2) The upper layer features are passed through multi-channel 1×1 and 3×3 convolution kernels to calculate the scale 2 features;
[0074] (3) The upper layer features are passed through multi-channel 1×1 and 5×5 convolution kernels to calculate the scale 3 features;
[0075] (4) The upper layer features are processed through 3×3 maximum pooling and multi-channel 1×1 convolution kernels to calculate the scale 4 features;
[0076] (5) The different scale features obtained in (1)-(4) above are connected to obtain a multi-scale feature set.
[0077] In order to make full use of the historical feature information of each network layer, a DenseBlock network module is introduced in the hybrid enhanced prototype network of the present invention to perform channel splicing on the historical features of different network layers to obtain a hybrid feature set with accumulated knowledge.
[0078] In specific implementation, the DenseBlock network module extracts mixed features including:
[0079] (1) The DenseBlock network module contains two feature extraction blocks, each of which contains a batchnorm layer, a convolutional layer (the convolution kernel size is 1×1), a batchnorm layer, and a convolutional layer (the convolution kernel size is 3×3).
[0080] (2) The multi-scale features are passed through the first feature extraction block to calculate the mixed 1 feature, and the mixed 1 feature is passed through the second feature extraction block to calculate the mixed 2 feature;
[0081] (3) The final multi-scale mixed feature is obtained by channel concatenation of the mixed 1 feature and the mixed 2 feature.
[0082] In the present invention, the hybrid enhanced prototype network needs to be trained first, and the specific method is as follows:
[0083] 1) Set sampling information and use sensors to collect vibration signals of different fault types of planetary gearboxes.
[0084] 2) Build the training set and test set required for the model. In the training set, select the support set and query set in a ratio of 1:3.
[0085] 3) Randomly initialize the hybrid enhanced prototype network and set hyperparameters such as learning rate, batch training size, and number of training rounds.
[0086] 4) Input the query set and support set of the training data set into the model for training, adjust the network parameters by optimizing the target loss function, and save the better model parameters.
[0087] 5) The test data is input into the model, and the predicted classification results are analyzed with the true categories to verify the effectiveness of the planetary gearbox fault diagnosis method based on the hybrid enhanced prototype network.
[0088] In order to verify the effectiveness of the method disclosed in the present invention, an acceleration sensor is used to collect vibration signals of planetary gears in different health states. At the same time, in order to simulate the failure of actual equipment, the present invention designs 5 different faults of planetary gearboxes, including 2 types of gear failures, 2 types of bearing failures and data under normal conditions. In the collected original vibration signal, a 4096-point vibration signal is set as a sample through a sliding window interception method, and the original vibration signal is processed by a reconstruction method to reconstruct it into a 64×64 signal, and the training data set and the test data set are constructed in turn. The sample size of the training data set is set to 20 per category, and the sample size of the test data set is set to 200 per category, where the support set and the query set in the training data set are allocated according to different proportions. In particular, 5 samples of each category in the training set are randomly selected as the support set. The specific verification data set used in the present invention is described in Table 1, and the sample time domain waveforms of different faults are shown in Table 1. Figure 5 shown.
[0089] Table 1 Description of experimental data set
[0090]
[0091] The specific structure of the hybrid enhanced prototype network proposed in this invention includes Inception network module, DenseBlock network module, two fully connected layers (the last layer is the prototype), the size of which is 1024 and 128 respectively. All training samples are trained for a total of 30 rounds, the initial learning rate is set to 0.01, and the learning rate is reduced to 0.1 times of the original every 10 rounds. In order to avoid the accidental nature of the experimental results, ten random experiments were conducted. The experimental results are shown in Figure 6 As shown, the average accuracy is 96.13%.
[0092] In order to verify the feature learning ability of the hybrid enhanced prototype network, this paper uses t-SNE (t-distributed stochastic neighbor embedding) to reduce the dimension of the output results of the model, reduce the high-dimensional features to two dimensions and realize visualization, and display the feature distribution of the results in two-dimensional space, such as Figure 7 At the same time, for comparison, the original signal input to the model is also reduced to two dimensions for visualization, as shown in Figure 8 shown. Figure 8 As shown in the figure, except for the normal samples (category 2), the distribution of samples of other categories of the original signal is very mixed and cannot be effectively classified. The output feature distribution after model learning is as follows Figure 7As shown in the figure, it can be seen that there is an obvious clustering effect between the categories, the distance between categories increases, the distance between samples of the same category decreases, and only a very small number of samples are misclassified. This shows that the hybrid enhanced prototype network proposed in the present invention can effectively learn the characteristics between different fault categories of the planetary gearbox, thereby achieving high-accuracy classification.
[0093] In view of the problem that traditional deep learning methods are difficult to perform high-precision fault diagnosis of planetary gearboxes under conditions of few samples, the present invention proposes a planetary gearbox fault diagnosis method based on a hybrid enhanced prototype network. The multi-scale feature information of the signal is learned by introducing the Inception network module, and the accumulated knowledge of features of different scales is extracted by adding the DenseBlock module, thereby further enhancing the feature extraction capability of the model and better adapting to the situation under small samples. The results of the test bench data verification show that the hybrid enhanced prototype network proposed in the present invention can extract more discriminative features under small sample conditions, and can achieve high-precision planetary gearbox fault diagnosis.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A planetary gearbox fault diagnosis method based on a hybrid enhanced prototype network, characterized in that: The method comprises the following steps: S1. Obtain the vibration data of the planetary gearbox and construct a training set and a test set, where the training set is divided into a support data set and a query data set; S2, build a hybrid enhanced prototype network; S3, input the planetary gearbox data into the hybrid enhanced prototype network, obtain the prototype through the support data set, and optimize the training in combination with the query data set; S4, input the test set into the model and output the fault diagnosis result; The step S2 is specifically as follows: The hybrid enhanced prototype network includes 1 layer of Inception network module, 1 layer of DenseBlock network module, and 2 layers of fully connected layers; The Inception module includes 4 branches; The DenseBlock module includes two feature extraction blocks, namely the first feature extraction block and the second feature extraction block; the feature extraction blocks respectively include a Batchnorm layer, a ReLU activation layer, a convolution layer with a convolution kernel size of 1×1, a Batchnorm layer, a ReLU activation layer, and a convolution layer with a convolution kernel size of 3×3; The features extracted by the DenseBlock module are connected by the feature channels of two feature extraction blocks, and are used to extract mixed features of different scale features in the Inception module; The different scale feature information extracted by the Inception network module includes: S201, obtaining scale 1 feature information through a multi-channel 1×1 convolution kernel according to the input data; S202, obtaining scale 2 features through multi-channel 1×1 and 3×3 convolution kernels according to the input data; S203, obtaining scale 3 features through multi-channel 1×1 and 5×5 convolution kernels according to the input data; S204, obtaining scale 4 features through 3×3 maximum pooling and multi-channel 1×1 convolution kernel according to the input data; S205, forming a multi-scale feature through the different scale features obtained by S201-S204; The extraction of the mixed features comprises the following steps: S211, calculating the multi-scale feature through the first feature extraction block to obtain the mixed 1 feature; calculating the mixed 1 feature through the second feature extraction block to obtain the mixed 2 feature; S212, performing channel concatenation on the mixed 1 feature and the mixed 2 feature to obtain the final multi-scale mixed feature.
2. The planetary gearbox fault diagnosis method of a hybrid enhanced prototype network according to claim 1 is characterized in that: The step S1 is specifically as follows: S11, arranging sensors to collect vibration data of the planetary gearbox in different health states, and dividing the data into a training set and a test set; S12, the original data is intercepted by sliding window method, and the intercepted sample length is 1×2 n ,n∈Z + ; S13, reconstruct the original vibration data into a square with a sample size of 2 n-1 ×2 n-1 ,n∈Z + ; S14. Divide the training set samples into query data set and support data set in a ratio of 1:
3.
3. The planetary gearbox fault diagnosis method of a hybrid enhanced prototype network according to claim 1 is characterized in that: The step S3 is specifically as follows: S31, setting sampling information, using sensors to collect vibration signals of different fault types of the planetary gearbox; S32, construct a training data set for the model, and divide the training set into a support set and a query set in a ratio of 1:3; S33, randomly initialize the hybrid enhanced prototype network, and set the learning rate, batch training size, and training round number parameter values; S34, inputting the query set and support set of the training data set into the model for training, adjusting the network parameters by optimizing the target loss function, and saving the better model parameters; S35. Input the test data into the model, analyze the predicted classification results and the real categories, and verify the effectiveness of the planetary gearbox fault diagnosis method based on the hybrid enhanced prototype network.
