Improved fault diagnosis algorithm based on multi-modal information fusion
Through multi-modal information fusion algorithm, combined with time domain and time-frequency domain representation, using residual neural network and complementary feature fusion method, it solves the problems of incomplete single modal information and deep network performance degradation in traditional fault diagnosis, and improves fault diagnosis. Diagnostic accuracy and robustness.
Patent Information
- Application Number
- CN202410736356.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional fault diagnosis methods rely on single modal information and cannot fully capture fault characteristics. Deep convolutional neural networks may face performance degradation problems in fault diagnosis, resulting in insufficient accuracy and generalization capabilities.
Using an improved multi-modal information fusion algorithm, by sampling various sensors of rotating machinery, using wavelet transform to convert into time-frequency domain images, building a CNN model and adding residual blocks, combining one-dimensional and two-dimensional convolution layers, using improved The complementary feature-level fusion method and bi-regularized loss function gradually fuse modal information to extract complementary features.
It improves the accuracy and robustness of fault diagnosis, overcomes the problems of incomplete information in a single modality and imbalanced modal representation, stably improves the feature learning ability of deep networks, and enhances the generalization ability of the model.
Smart Images

Figure CN118536068A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of data fusion and mechanical equipment fault diagnosis, and in particular to an improved multi-modal information fusion fault diagnosis algorithm. Background Art
[0002] Fault diagnosis has always been a crucial area in industrial production and equipment operation. With the increasing complexity of industrial environments and the diversity of rotating equipment, traditional fault diagnosis methods often fail to meet the needs for efficient and accurate diagnosis. Therefore, it is necessary to develop a diagnostic algorithm that can identify more fault features under complex working conditions.
[0003] Traditional fault diagnosis methods usually rely on information from a single modality to determine whether a device has failed. However, information from a single sensor or domain often cannot provide comprehensive and accurate fault diagnosis results, because different faults may manifest themselves in different signal characteristics, and information from a single modality cannot fully capture the characteristics of all faults.
[0004] In order to improve the accuracy and robustness of fault diagnosis, it is necessary to fuse information from different sensors and different domains to obtain more comprehensive and accurate fault characteristics. Multimodal information fusion technology is a solution proposed to meet this demand. However, the common multimodal fusion method nowadays is to fuse multiple modalities at one time. This quick fusion method may lead to unbalanced modal representation and fail to obtain cross-modal complementary information to the maximum extent, which is contrary to the purpose of multimodal fusion.
[0005] Existing industrial equipment fault diagnosis algorithms mostly use convolutional neural networks for detection. As the number of network layers increases, convolutional neural networks may face performance constraints. Therefore, how to ensure that more features are learned in deeper networks and steadily improve the accuracy and generalization ability of fault diagnosis models is an important topic. Summary of the invention
[0006] In order to solve the defects existing in the above-mentioned prior art, the present invention provides an improved multimodal information fusion fault diagnosis algorithm, which can solve the problems of low accuracy caused by single modality diagnosis and unbalanced representation of multimodal fusion technology, as well as the performance degradation problem faced by deep networks.
[0007] The technical solution adopted by the present invention is an improved multi-modal information fusion fault diagnosis algorithm, comprising the following steps:
[0008] Step 1: Sample N types of sensors on rotating machinery, label them according to working conditions and fault types, and create a fault diagnosis data set;
[0009] Step 2: Preprocess the data set and use wavelet transform to convert the sensor data into time-frequency domain images. The time-frequency images are cropped to 64*64. The time domain representation and time-frequency domain representation of the data set use the same label.
[0010] Step 3: Randomly divide the data set into training set, validation set and test set with a ratio of 0.6:0.2:0.2;
[0011] Multimodal diagnosis steps:
[0012] Step 4: Use the Tensorflow framework to build a CNN diagnostic model. The model accepts 2N inputs, which are the time domain representation and time-frequency domain representation of vibration, current and other signals. The time domain input uses a one-dimensional convolution layer, and the time-frequency domain input uses a two-dimensional convolution layer;
[0013] Step 5: Add multiple residual blocks to the model to form a residual neural network. Each residual block contains two convolutional layers. The residual block can use projection connection when the input and output are inconsistent to solve the degradation problem of the deep learning network.
[0014] Step 6: Use the improved complementary feature-level fusion method in the fully connected layer to orthogonally fuse each modality information. This progressive fusion process can promote orthogonal representation, thereby extracting complementary information for each additional modality;
[0015] Step 7: Set parameters, input the training set into the model and continuously adjust the hyperparameters through the validation set to obtain the best parameter combination;
[0016] Step 8: Get the trained model and use the test set to evaluate the model. The evaluation indicators include accuracy, recall, F1 score, ROC curve and AUC curve.
[0017] Step 9. Export the trained model as a .pb file;
[0018] Preferably, in step 2, the method for converting the sensor signal into a time-frequency domain signal is:
[0019]
[0020] in, is the wavelet basis function, is a scale parameter used to control the width or frequency of the wavelet basis function. is the translation parameter, which is used to control the position of the wavelet basis function on the time axis. is the independent variable, used to indicate the position in time or space;
[0021] Preferably, the model in step 3 accepts 2N inputs, which are the time domain representation and time-frequency domain representation of N sensor signals such as vibration and current. Different sensor information contains different fault information, and different domains can extract different features. Combining multi-modality and multi-sensor can obtain the characteristics of the fault from different angles, and more comprehensively discover the abnormality of the signal, which is conducive to our correct diagnosis of the fault.
[0022] The time domain representation uses Conv1d, and the time-frequency domain input uses Conv2d. The convolution layer slides on the input signal according to the step size, and performs weighted summation on the input data according to its weight. Convolution layers with different weights can extract different local features.
[0023] Among them, the Conv1d only considers one dimension of the data, sets the convolution kernel size to 3*1, the step size to 1, and the padding = "same" so that the padded output keeps the same length as the input.
[0024] Among them, the Conv2d considers the height and width of the image, sets the convolution kernel size to 3*3, the step size to 1, and the padding = "same" so that the padded output keeps the same length as the input.
[0025] Preferably, in step 5, a ResNet18 model is used in the model, comprising 8 residual learning blocks, an initial convolutional layer and a fully connected layer.
[0026] Among them, the residual learning block contains two convolutional layers, which can directly or indirectly project the input to the output, retain more details of the original data, avoid information loss, facilitate model recall of input, and solve the degradation problem of deep learning networks.
[0027] Wherein, the projection connection can be expressed as:
[0028]
[0029] Among them, the function In the ResNet18 model, two convolutional layers are represented. represents the weight, Linear projection used to match dimensions when input and output are inconsistent.
[0030] The ResNet18 model contains 18 weighted layers, each of which is followed by a batch normalization layer and an activation layer.
[0031] The batch normalization function normalizes each feature map so that the input of each layer of the network maintains a relatively stable distribution, which helps to accelerate convergence and prevent the problem of gradient disappearance or gradient explosion. The normalization process can be expressed as:
[0032]
[0033] in, is the average value, is the variance, and is a parameter that is automatically adjusted during training.
[0034] The activation layer uses a nonlinear ReLu function, which can map nonlinear complex functions. The network learns complex data patterns and features, and the calculation is simple, which can avoid the gradient disappearance phenomenon. The activation process can be expressed as:
[0035]
[0036] Preferably, in step 6, an improved complementary feature fusion method is used in the fully connected layer, and the model receives 2N modalities. First, the time domain and time-frequency domain modalities of the same signal are fused in pairs, and then the N modalities obtained after the fusion are sequentially fused.
[0037] Among them, the N modes obtained after the fusion correspond to N signals.
[0038] The order is to sort the N signals according to expert experience, and fuse them from the mode containing the least fault information to the mode containing the most fault information.
[0039] Among them, the sequential fusion is to first concatenate the first two modes, then map the concatenated feature vector to dimension D through an embedding layer, update the mode after fusion, and fuse it with the third mode, repeat this process until all modes are fused and then use the classifier for fault classification. This sequential fusion method not only captures the interaction and dependency between paired modes, but also overcomes the defect of unbalanced modal representation caused by the traditional fusion method that processes all modes at the same time, and makes full use of the complementarity and redundancy between various modes.
[0040] Preferably, a loss function combining double regularization is used , which can prevent overfitting and ensure the orthogonality of embedded objects, so as to better capture the complementary information of different modalities, which can be expressed as:
[0041]
[0042] in, is the loss function of the fault diagnosis classification task, , are the model prediction and the actual label respectively. and Hyperparameters are used to control the Second-rate and The strength of the regularization term, A signal, modalities need to be integrated sequence The embedded objects of the fusion layer are and .
[0043] Preferably, in step 7, the experimental parameters are set as follows: the training epochs is set to 200, the model uses the Adam random optimization algorithm to optimize the learning rate, and for the step-based learning rate function, the initial learning rate and the basic decline rate are 0.01 and 0.1 respectively. In addition, the learning rate for the first 60 epochs is specified as 0.001, and the subsequent learning rate decays according to the formula lr*d^(1+epoch / step). Start training;
[0044] Preferably, in step 8, the performance of the network model is evaluated using precision P (Precision), recall R (Recall), and PR curve.
[0045] Among them, the precision rate P refers to the ratio of the correctly predicted positive examples (True Positive, TP) to the positive examples (Positive, TP+FP) in all prediction results. The higher the precision rate, the stronger the model's ability to identify positive samples. It can be expressed as:
[0046]
[0047] The recall rate R refers to the ratio of the predicted correct positive examples (True Positive, TP) to all actual positive examples (Positive, TP+FN). The higher the recall rate, the more comprehensive the recognition ability of the model. It can be expressed as:
[0048]
[0049] Among them, the F1 value is the harmonic mean of precision and recall, which is used to comprehensively evaluate the performance of the model. The higher the F1 value, the better the model performs in terms of accuracy and reliability. It can be expressed as:
[0050]
[0051] Among them, the PR curve, that is, the precision-recall curve, can be used to find the balance point of precision and recall based on the curve graph. The larger the balance point, the better the learning ability of the model.
[0052] Compared with the prior art, the advantages and beneficial technical effects of the present invention are as follows: The present invention discloses an improved multimodal information fusion fault diagnosis algorithm. The algorithm collects multiple equipment operation data and uses time domain representation and time-frequency domain representation as multimodal input, overcoming the drawbacks of incomplete fault information and inaccurate diagnosis caused by single sensor or domain information; one-dimensional convolution and two-dimensional convolution are used for feature extraction, and residual neural network is used, which is conducive to model recall input and solves the degradation problem of deep learning network; an improved complementary feature fusion method is used in the fully connected layer, and a loss function combined with double regularization is applied. This sequential fusion method not only captures the interaction and dependency between paired modes, but also overcomes the defect of unbalanced modal representation caused by the traditional fusion method processing all modes at the same time, and makes full use of the complementarity and redundancy between various modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a method flow chart of an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of multimodal fusion-feature level fusion in an embodiment of the present invention;
[0055] Figure 3 is a fusion sequence diagram of an embodiment of the present invention;
[0056] Figure 4 is a time domain-time-frequency domain schematic diagram of an embodiment of the present invention;
[0057] Figure 5 It is a model structure diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0059] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0060] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0061] In this embodiment, an improved multi-modal information fusion fault diagnosis algorithm is disclosed, comprising the following steps:
[0062] Step 1: Sample N types of sensors on rotating machinery, label them according to working conditions and fault types, and create a fault diagnosis data set;
[0063] Step 2: Preprocess the data set and use wavelet transform to convert the sensor data into time-frequency domain images. The time-frequency images are cropped to 64*64. The time domain representation and time-frequency domain representation of the data set use the same label.
[0064] Step 3: Randomly divide the data set into training set, validation set and test set with a ratio of 0.6:0.2:0.2;
[0065] Multimodal diagnosis steps:
[0066] Step 4: Use the Tensorflow framework to build a CNN diagnostic model. The model accepts 2N inputs, which are the time domain representation and time-frequency domain representation of vibration, current and other signals. The time domain input uses a one-dimensional convolution layer, and the time-frequency domain input uses a two-dimensional convolution layer;
[0067] Step 5: Add multiple residual blocks to the model to form a residual neural network. Each residual block contains two convolutional layers. The residual block can use projection connection when the input and output are inconsistent to solve the degradation problem of the deep learning network.
[0068] Step 6: Use the improved complementary feature-level fusion method in the fully connected layer to orthogonally fuse each modality information. This progressive fusion process can promote orthogonal representation, thereby extracting complementary information for each additional modality;
[0069] Step 7: Set parameters, input the training set into the model and continuously adjust the hyperparameters through the validation set to obtain the best parameter combination;
[0070] Step 8: Get the trained model and use the test set to evaluate the model. The evaluation indicators include accuracy, recall, F1 score, ROC curve and AUC curve.
[0071] Step 9. Export the trained model as a .pb file;
[0072] Dataset preparation:
[0073] This embodiment uses the public bearing dataset of the University of Paderborn in Germany, which contains 32 sets of bearing current signals and vibration signals collected under four working conditions set on a test bench, including 6 healthy bearings, 12 artificially damaged bearings and 14 actually damaged bearings.
[0074] like Figure 3 As shown, the sensor signal is converted into a time-frequency domain image through wavelet transform:
[0075]
[0076] in, is the wavelet basis function, is a scale parameter used to control the width or frequency of the wavelet basis function. is the translation parameter, which is used to control the position of the wavelet basis function on the time axis. is the independent variable, used to indicate the position in time or space;
[0077] Furthermore, in order to facilitate convolution, the image size is cropped to 64*64. The time domain representation and time-frequency domain representation of the dataset use the same labels;
[0078] Furthermore, the dataset is randomly divided into training set, validation set and test set with a ratio of 0.6:0.2:0.2;
[0079] Model training:
[0080] Furthermore, if Figure 3 As shown in the figure, a residual learning neural network is constructed. The model accepts two inputs, namely the time domain representation and time-frequency domain representation of the vibration and current sensor signals. The model contains Conv1d and Conv2d, which perform one-dimensional convolution and two-dimensional convolution on the received time domain and time-frequency domain modes respectively. Different sensor information contains different fault information, and different domains can extract different features. Combining multi-modality and multi-sensor can obtain the characteristics of the fault from different angles, and more comprehensively discover the abnormality of the signal, which is conducive to our correct diagnosis of the fault.
[0081] Among them, the Conv1d only considers one dimension of the data, sets the convolution kernel size to 3*1, the step size to 1, and the padding = "same" so that the padded output keeps the same length as the input.
[0082] Among them, the Conv2d considers the height and width of the image, sets the convolution kernel size to 3*3, the step size to 1, and the padding = "same" so that the padded output keeps the same length as the input.
[0083] Furthermore, the residual learning neural network used is the ResNet18 model, which includes 18 layers with weights.
[0084] The 18 weighted layers include 8 residual learning blocks, an initial convolutional layer and a connection layer, and each layer is followed by a batch normalization layer and an activation layer.
[0085] Among them, the residual learning block contains two convolutional layers, which can directly or indirectly project the input to the output, retain more details of the original data, avoid information loss, facilitate model recall of input, and solve the degradation problem of deep learning networks.
[0086] The batch normalization function normalizes each feature map so that the input of each layer of the network maintains a relatively stable distribution, which helps to accelerate convergence and prevent the problem of gradient disappearance or gradient explosion. The normalization process can be expressed as:
[0087]
[0088] in, is the average value, is the variance, and is a parameter that is automatically adjusted during training.
[0089] The activation layer uses a nonlinear ReLu function, which can map nonlinear complex functions. The network learns complex data patterns and features, and the calculation is simple, which can avoid the gradient disappearance phenomenon. The activation process can be expressed as:
[0090]
[0091] Furthermore, an improved complementary feature fusion method is used in the fully connected layer. The model receives four modalities, firstly fuses the time domain and time-frequency domain modalities of the same signal in pairs, and then sequentially fuses the two fused modalities.
[0092] The order is to sort the two signals according to expert experience, and fuse them from the mode containing the least fault information to the mode containing the most fault information.
[0093] Among them, the sequential fusion is to first splice the first two modes, then map the spliced feature vector back to 1*128 through an embedding layer, update the mode after fusion, and fuse it with the third mode, repeat this process until all modes are fused and then use the classifier for fault classification. This sequential fusion method not only captures the interaction and dependency between paired modes, but also overcomes the defect of unbalanced modal representation caused by the traditional fusion method processing all modes at the same time, and makes full use of the complementarity and redundancy between various modes.
[0094] Furthermore, we use a loss function combined with double regularization , which can prevent overfitting and ensure the orthogonality of embedded objects, so as to better capture the complementary information of different modalities, which can be expressed as:
[0095]
[0096] in, is the loss function of the fault diagnosis classification task, , are the model prediction and the actual label respectively. and Hyperparameters are used to control the Second-rate and The strength of the regularization term. There are 2 signals and 4 modes in total, which need to be fused 3 times. The embedded objects of the fusion layer are and .
[0097] Furthermore, the experimental parameters are set as follows: the number of training epochs is set to 200, the model uses the Adam random optimization algorithm to optimize the learning rate, and for the step-based learning rate function, the initial learning rate and the base decline rate are 0.01 and 0.1 respectively. In addition, the learning rate for the first 60 epochs is specified as 0.001, and the subsequent learning rate decays according to the formula lr*d^(1+epoch / step). Start training;
[0098] Furthermore, the performance of the network model is evaluated using precision P (Precision), recall R (Recall), and PR curve.
[0099] Among them, the precision rate P refers to the ratio of the correctly predicted positive examples (True Positive, TP) to the positive examples (Positive, TP+FP) in all prediction results. The higher the precision rate, the stronger the model's ability to identify positive samples. It can be expressed as:
[0100]
[0101] The recall rate R refers to the ratio of the predicted correct positive examples (True Positive, TP) to all actual positive examples (Positive, TP+FN). The higher the recall rate, the more comprehensive the recognition ability of the model. It can be expressed as:
[0102]
[0103] Among them, the F1 value is the harmonic mean of precision and recall, which is used to comprehensively evaluate the performance of the model. The higher the F1 value, the better the model performs in terms of accuracy and reliability. It can be expressed as:
[0104]
[0105] Among them, the PR curve, that is, the precision-recall curve, can be used to find the balance point of precision and recall based on the curve graph. The larger the balance point, the better the learning ability of the model.
[0106] Model export:
[0107] Furthermore, the trained model is exported as a .pb file.
[0108] Although the embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations may be made to these embodiments without departing from the principles and spirit of the present invention, and these corresponding changes and variations should all fall within the scope of the present invention.
Claims
1. An improved multi-modal information fusion fault diagnosis algorithm, characterized in that: include: Dataset preparation: Step 1: Sample N types of sensors on rotating machinery, label them according to working conditions and fault types, and create a fault diagnosis data set; Step 2: Preprocess the data set and use wavelet transform to convert the sensor data into time-frequency domain images. The time-frequency images are cropped to 64*64. The time domain representation and time-frequency domain representation of the data set use the same label. Step 3: Randomly divide the data set into training set, validation set and test set with a ratio of 0.6:0.2:0.2; Multimodal diagnosis steps: Step 4: Use the Tensorflow framework to build a CNN diagnostic model. The model accepts 2N inputs, which are the time domain representation and time-frequency domain representation of vibration, current and other signals. The time domain input uses a one-dimensional convolution layer, and the time-frequency domain input uses a two-dimensional convolution layer; Step 5: Add multiple residual blocks to the model to form a residual neural network. Each residual block contains two convolutional layers. The residual block can use projection connection when the input and output are inconsistent to solve the degradation problem of the deep learning network. Step 6: Use the improved complementary feature-level fusion method in the fully connected layer to orthogonally fuse each modality information. This progressive fusion process can promote orthogonal representation, thereby extracting complementary information for each additional modality; Step 7: Set parameters, input the training set into the model and continuously adjust the hyperparameters through the validation set to obtain the best parameter combination; Step 8: Get the trained model and use the test set to evaluate the model. The evaluation indicators include accuracy, recall, F1 score, ROC curve and AUC curve. Step 9. Export the trained model as a .pb file.
2. In step 4, the model accepts 2N inputs, which are the time domain representation and time-frequency domain representation of signals such as vibration and current. Different sensor information contains different fault information, and different domains can extract different features. Combining multi-modality and multi-sensors can obtain the characteristics of the fault from different angles, and more comprehensively discover the abnormality of the signal, which is conducive to our correct diagnosis of the fault. The time domain representation uses a one-dimensional convolution layer, and the time-frequency domain input uses a two-dimensional convolution layer.
3. In step 5, a ResNet18 model is used in the model, which includes 4 residual learning blocks, an initial convolution layer and a fully connected layer. The residual learning block includes two convolution layers, and the ResNet18 model includes 18 weighted layers, each of which is followed by a batch normalization layer and an activation layer. The residual learning block can use projection connections when the input and output are inconsistent to solve the degradation problem of the deep learning network.
4. In step 6, an improved complementary feature fusion method is used in the fully connected layer. The first two modes are fused in sequence, and then the fusion result is fused with the third mode. This process is repeated until all modes are fused and the classifier is used for fault classification. This orthogonal fusion method overcomes the defect of unbalanced modal representation caused by the traditional fusion method that processes all modes at the same time, and makes full use of the complementarity and redundancy between various modes.
5. In step 7, the experimental parameters are set as follows: the number of training epochs is set to 200, the model uses the Adam random optimization algorithm to optimize the learning rate, and for the step-based learning rate function, the initial learning rate and the base decline rate are 0.01 and 0.1 respectively. In addition, the learning rate for the first 40 epochs is specified as 0.001, and the subsequent learning rate decays according to the formula lr*d^(1+epoch / step).
6. In step 8, use the precision P (Precision), recall R (Recall), and PR curve to evaluate the performance of the network model: Precision P refers to the ratio of the number of correctly predicted positive examples (True Positive, TP) to the number of positive examples (Positive, TP+FP) in all prediction results. The higher the precision, the stronger the model's ability to identify positive samples. It can be expressed as ; The recall rate R refers to the ratio of the predicted correct positive examples (True Positive, TP) to all actual positive examples (Positive, TP+FN). The higher the recall rate, the more comprehensive the recognition ability of the model. It can be expressed as ; The F1 value is the harmonic mean of precision and recall, and is used to comprehensively evaluate the performance of the model. The higher the F1 value, the better the model performs in terms of accuracy and reliability. It can be expressed as: ; The PR curve, that is, the precision-recall curve, can be used to find the balance point between precision and recall. The larger the balance point, the better the learning ability of the model.
Citation Information
Patent Citations
SSVEP identification method based on time, frequency and time-frequency domain analysis and deep learning
CN115581467A
Rotating machine fault diagnosis method
CN116296338A
Bearing diagnosis method and system based on multi-modal and multi-scale fusion network
CN117763494A
1D-CNN-Based Distributed Optical Fiber Sensing Signal Feature Learning and Classification Method
US20180357542A1
Cited By
Intelligent fault diagnosis method, device and equipment based on deep learning
CN119622450A
Intelligent fault diagnosis method, device and equipment based on deep learning
CN119622450B
Terminal operation and maintenance management method and platform for medical big data platform
CN120371581A
A terminal operation and maintenance management method and platform for a medical big data platform
CN120371581B
Motor fault diagnosis method based on orthogonal sequence fusion and improved TABM
CN122548268A
