CN113409213A - Plunger pump fault signal time-frequency graph noise reduction enhancement method and system - Google Patents
Plunger pump fault signal time-frequency graph noise reduction enhancement method and system Download PDFInfo
- Publication number
- CN113409213A CN113409213A CN202110692924.2A CN202110692924A CN113409213A CN 113409213 A CN113409213 A CN 113409213A CN 202110692924 A CN202110692924 A CN 202110692924A CN 113409213 A CN113409213 A CN 113409213A
- Authority
- CN
- China
- Prior art keywords
- time
- frequency
- plunger pump
- model
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000009467 reduction Effects 0.000 title claims abstract description 25
- 238000010586 diagram Methods 0.000 claims abstract description 36
- 238000013527 convolutional neural network Methods 0.000 claims abstract description 31
- 238000003745 diagnosis Methods 0.000 claims abstract description 24
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000002708 enhancing effect Effects 0.000 claims abstract description 7
- 238000012549 training Methods 0.000 claims description 47
- 238000012360 testing method Methods 0.000 claims description 31
- 230000004913 activation Effects 0.000 claims description 27
- 238000013145 classification model Methods 0.000 claims description 25
- 230000009466 transformation Effects 0.000 claims description 20
- 239000011159 matrix material Substances 0.000 claims description 19
- 238000005457 optimization Methods 0.000 claims description 10
- 238000007781 pre-processing Methods 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 230000001133 acceleration Effects 0.000 claims description 5
- 230000003014 reinforcing effect Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 18
- 238000010606 normalization Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 7
- 238000000354 decomposition reaction Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000001965 increasing effect Effects 0.000 description 3
- 238000012958 reprocessing Methods 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000005299 abrasion Methods 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000002405 diagnostic procedure Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000036039 immunity Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000007637 random forest analysis Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000010183 spectrum analysis Methods 0.000 description 1
- 210000002784 stomach Anatomy 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2415—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/047—Probabilistic or stochastic networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Probability & Statistics with Applications (AREA)
- Complex Calculations (AREA)
- Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
Abstract
The invention provides a plunger pump fault signal time-frequency diagram noise reduction enhancement method and a system, wherein the method comprises the following steps: firstly, collecting fault vibration signals of a plunger pump, then converting original data into a time-frequency graph, then carrying out noise reduction enhancement processing on the time-frequency graph by using the method of the invention, finally extracting the characteristics in the time-frequency graph by using a trained CNN model, carrying out fault diagnosis, searching for a key area in the time-frequency graph by using the gradient of a characteristic graph of a specific network layer of a convolutional neural network, and removing a non-key area, thereby enhancing the time-frequency graph of the original signals. The method adopted by the invention converts the vibration data characteristics into the characteristics of a time-frequency graph, and converts the time sequence signals into the image classification signals, thereby realizing the fault diagnosis with high accuracy; meanwhile, the noise reduction enhancement method of the time-frequency graph improves the noise resistance and robustness of model diagnosis.
Description
Technical Field
The invention relates to the technical field of plunger pump fault diagnosis, in particular to a plunger pump fault signal time-frequency graph noise reduction enhancement method and system.
Background
The aviation hydraulic pump is a key element of an airplane hydraulic system, and meanwhile, the airplane hydraulic system widely adopts the plunger pump due to the characteristics of compact structure, small rotational inertia, large flow, easiness in control and the like of the plunger pump. To further increase the power density of the plunger pump, increasing the rotational speed is an effective method. Common failure types of high-speed plunger pumps include cavitation, abrasion and the like, and the failures easily cause the shell to be damaged, abnormal vibration and other adverse consequences and even cause safety accidents. Therefore, the method has important significance in fault diagnosis of the aviation plunger pump.
The traditional fault diagnosis mainly compares the health state with the running state of the pump when a fault occurs, and comprises data acquisition, feature extraction and fault classification and identification. The method mainly utilizes the spectral analysis to extract relevant characteristics, and then combines relevant classification algorithms such as SVM, random forest and other models to identify faults. The following disadvantages currently exist: 1) the accuracy of diagnosis depends heavily on the extraction of features, the feature extraction needs manual design, and the time is long and the experience is depended on; 2) the manually extracted features cannot guarantee sufficient representation of the features when the fault occurs; 3) many current diagnostic methods do not perform well under noisy acquisition signals.
The deep learning technology has strong feature representation capability, can automatically extract features, and has wide application in speech recognition and image processing. At present, some scholars apply the deep learning method to fault diagnosis of various mechanical devices. However, the conventional fault analysis method can also provide a certain reference, and particularly, a time-frequency analysis method and a time-frequency analysis technology are mature. The invention provides a method for signal noise reduction enhancement in fault diagnosis by combining a time-frequency graph and a convolutional neural network, so that the reliability and accuracy of diagnosis are improved.
Patent document CN106404386A (application number: CN201610757230.1) discloses a method for collecting, extracting and diagnosing early fault characteristic signals of a gearbox, in which an acoustic emission sensor is installed at a position to be monitored of gearbox equipment, and a bearing seat of the gearbox is generally selected to collect acoustic emission signals under the working state of the gearbox. And selecting noise-containing signals with different signal-to-noise ratios to calculate the singular spectrum slope under different decomposition layer numbers, gradually increasing the singular spectrum slope along with the increase of the decomposition layer numbers, and selecting the optimized decomposition layer number according to the optimization realization process of the decomposition layer number by utilizing the acquired acoustic emission signals. And according to the selected optimized decomposition layer number, analyzing and processing the acquired acoustic emission signals by utilizing the redundant lifting wavelet to obtain a time domain graph and a frequency domain graph of the signals. And judging the equipment fault condition through analyzing the time domain graph and the frequency domain graph.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a plunger pump fault signal time-frequency diagram noise reduction enhancement method and system.
The plunger pump fault signal time-frequency diagram noise reduction enhancement method provided by the invention comprises the following steps:
step 1: acquiring vibration signals of the plunger pump under different fault levels by a triaxial vibration acceleration sensor arranged on a plunger pump shell;
step 2: slicing and segmenting the acquired vibration signal according to a preset size;
and step 3: carrying out time-frequency transformation on the sliced sample to obtain a time-frequency graph of the sample, and dividing all the time-frequency graphs into a training set and a testing set according to a preset proportion;
and 4, step 4: training a convolutional neural network classification model by using training set data, and performing fault classification on a test set;
and 5: acquiring a class activation view of a training set time-frequency graph through the trained convolutional neural network classification model, and integrating the class activation view to obtain a key area identification matrix;
step 6: enhancing all the time-frequency graphs according to the key area identification matrix;
and 7: and retraining the convolutional neural network classification model by using the enhanced training set to obtain a fault diagnosis model and predicting the fault degree of the sample.
Preferably, the network structure of the convolutional neural network classification model is composed of three convolutional layers:
setting the size of a first layer of convolution kernels to be 3 x 3, setting the number of the first layer of convolution kernels to be 32, and setting the output size after convolution to be the same as the input size; the number of convolution kernels of the second layer and the third layer is set to 16;
and outputting classification results by utilizing two full-connection layers, and converting the forward propagation result of the convolutional neural network classification model into the probability distribution value of the classification label by adopting a SoftMax activation function in the last full-connection layer.
Preferably, a cross entropy loss function is used for evaluating errors between the prediction result and the real label, an RMSProp optimization algorithm is adopted for iterative training to optimize the convolutional neural network classification model, and the formula of the loss function is as follows:
Loss(p,q)=-∑xp(x)q(x)
wherein p is the true value of the sample, q is the predicted label value, x is the serial number, p (x) is the probability distribution of the true value of the sample, and q (x) is the probability distribution of the predicted label value of the model.
Preferably, the time-frequency graphs of the training set samples are sequentially input into the preprocessing model to obtain an output characteristic graph of the second layer of convolutional layer in the model, and each channel in the characteristic graph is weighted by the gradient of the class relative to the channel to obtain a space graph of the activation intensity of the input image to the class;
and accumulating the spatial maps of the activation intensity in sequence, only keeping data more than eighty bits in the spatial maps, obtaining key identification areas of different classes by adopting the same method for each class, and then overlapping the key identification areas of the different classes to obtain a key area identification matrix.
Preferably, the enhancement treatment comprises: and performing time-frequency transformation on the sample signal to obtain a two-dimensional array of the time-frequency transformation, performing point multiplication on the two-dimensional array and the key area identification matrix to obtain a processed two-dimensional array, and converting the processed two-dimensional array into a picture.
The plunger pump fault signal time-frequency diagram noise reduction enhancement system provided by the invention comprises:
module M1: acquiring vibration signals of the plunger pump under different fault levels by a triaxial vibration acceleration sensor arranged on a plunger pump shell;
module M2: slicing and segmenting the acquired vibration signal according to a preset size;
module M3: carrying out time-frequency transformation on the sliced sample to obtain a time-frequency graph of the sample, and dividing all the time-frequency graphs into a training set and a testing set according to a preset proportion;
module M4: training a convolutional neural network classification model by using training set data, and performing fault classification on a test set;
module M5: acquiring a class activation view of a training set time-frequency graph through the trained convolutional neural network classification model, and integrating the class activation view to obtain a key area identification matrix;
module M6: enhancing all the time-frequency graphs according to the key area identification matrix;
module M7: and retraining the convolutional neural network classification model by using the enhanced training set to obtain a fault diagnosis model and predicting the fault degree of the sample.
Preferably, the network structure of the convolutional neural network classification model is composed of three convolutional layers:
setting the size of a first layer of convolution kernels to be 3 x 3, setting the number of the first layer of convolution kernels to be 32, and setting the output size after convolution to be the same as the input size; the number of convolution kernels of the second layer and the third layer is set to 16;
and outputting classification results by utilizing two full-connection layers, and converting the forward propagation result of the convolutional neural network classification model into the probability distribution value of the classification label by adopting a SoftMax activation function in the last full-connection layer.
Preferably, a cross entropy loss function is used for evaluating errors between the prediction result and the real label, an RMSProp optimization algorithm is adopted for iterative training to optimize the convolutional neural network classification model, and the formula of the loss function is as follows:
Loss(p,q)=-∑xp(x)q(x)
wherein p is the true value of the sample, q is the predicted label value, x is the serial number, p (x) is the probability distribution of the true value of the sample, and q (x) is the probability distribution of the predicted label value of the model.
Preferably, the time-frequency graphs of the training set samples are sequentially input into the preprocessing model to obtain an output characteristic graph of the second layer of convolutional layer in the model, and each channel in the characteristic graph is weighted by the gradient of the class relative to the channel to obtain a space graph of the activation intensity of the input image to the class;
and accumulating the spatial maps of the activation intensity in sequence, only keeping data more than eighty bits in the spatial maps, obtaining key identification areas of different classes by adopting the same method for each class, and then overlapping the key identification areas of the different classes to obtain a key area identification matrix.
Preferably, the enhancement treatment comprises: and performing time-frequency transformation on the sample signal to obtain a two-dimensional array of the time-frequency transformation, performing point multiplication on the two-dimensional array and the key area identification matrix to obtain a processed two-dimensional array, and converting the processed two-dimensional array into a picture.
Compared with the prior art, the invention has the following beneficial effects:
according to the method, the time-frequency analysis is combined with the frequency analysis and the convolutional neural network, the time-frequency analysis is used for extracting the characteristics, the convolutional neural network is used for classifying the images, and the class activation intensity graph is used for enhancing the time-frequency graph, so that the model diagnosis performance is good and the accuracy is high under the noise condition.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a diagram of a sample time-frequency transformation effect;
FIG. 3 is a flow chart of a time-frequency diagram enhancement process;
FIG. 4 is a diagram of a model network architecture;
FIG. 5 is a diagram of the original time-frequency transformation;
FIG. 6 is a diagram of time-frequency transform and enhancement processing;
FIG. 7 is a graph of accuracy and loss during training;
FIG. 8 is a graph of accuracy and loss for a test set at different noises.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example 1:
the invention aims to provide a fault diagnosis method for a high-speed aviation plunger pump, which can realize signal noise reduction enhancement, thereby realizing signal feature extraction and fault diagnosis and improving the diagnosis accuracy of a signal containing noise.
In order to achieve the aim, the invention provides a Grad-CAM-based plunger pump fault signal time-frequency diagram noise reduction enhancement method, which is characterized by comprising the following steps of:
s1: collecting vibration signal of shell when plunger pump is in fault
Collecting vibration signals of the plunger pump under different inlet pressures at sampling frequency fs
S2: data sample segmentation
The method adopted by the invention needs to perform time-frequency transformation on the original signal to obtain a time-frequency diagram of the sample, wherein the time-frequency diagram is the input of subsequent model training and testing. The original signal is divided into N sections, and the number of samples in each type is as follows: li=niTotal number of samples/s:according to the above relationship, the vibration signal becomes an N-segment signal, each segment having a label. Is marked asWhere s is the length of each sample and the outermost subscript indicates the class.
m represents the number of sample categories; i denotes a subscript of a certain sample class;representing the first segment of the original signal after segmentation.
S3: segmented sample time-frequency transform
Obtaining a time-frequency diagram by adopting short-time Fourier transform; dividing data into training and testing sets, dividing samples into training set X in each group of time-frequency converted pictures of sample data according to a certain proportiontrainAnd test set Xtest;
S4: pre-processing model training
And (3) constructing a CNN classification model for classifying and diagnosing the time-frequency graph, and learning the fault characteristics in the time-frequency graph mainly through three convolution layers and two full-connection layers. The details of the construction of the network structure are as follows:
convolutional layer conv2d _1 is the first layer to extract features of a picture and needs to be able to extract features sufficiently to provide an output containing sufficient useful information for subsequent layers. The number of convolution kernels (filters) is set to 32, the size is set to (3,3), and the size of the plane after convolution is set to be the same as the original (padding), so that the dimension of the subsequent feature map is consistent with the input conveniently. The Conv2d _1 layer weight initialization adopts RandomNormal; the activation function adopts a relu activation function, so that the convergence speed can be increased, and the condition of gradient disappearance is avoided. The volume normalization layer (batch _ normalization _1) and the random discard layer (dropout _1) are arranged after the convolution layer.
The parameter setting of convolution layer conv2d _2 is consistent with that of conv _1 except that the number of filters is different, and the number of convolution kernels is set to 16. Setting a batch normalization layer (batch _ normalization _2) and a random discard layer (dropout _2) after the convolutional layer
The parameter setting of the convolution layer conv2d _3 is consistent with conv2d _1, and the subsequent batch standardization layer batch _ normalization _3 and random discard layer (dropout _3) are also set
And finally, outputting a predicted classification result by the network, outputting the classification result by utilizing the two fully-connected layers, and converting the result of model forward propagation into a probability distribution value of a classification label by adopting SoftMax (software-based maximum max) as an activation function of the last fully-connected layer in order to obtain a multi-classification prediction result.
The error between the prediction result and the true label is evaluated using a cross entropy loss function. The optimization target is a minimum loss function, the model training optimization method adopts an RMSROP optimization algorithm, and the model training optimization method iterates for enough times to obtain a trained model. The formula for the loss function is:
where p (x) is the probability distribution of the true values of the samples, and q (x) is the probability distribution of the values of the model predictive labels.
S5: key region identification
After the pre-processing model is obtained, an effective diagnosis of the acquired signals can already be made. However, the time-frequency diagram with the noise signal is obviously different from that under the noise-free condition, so that the fault diagnosis accuracy of the noise-containing signal is obviously reduced. The invention provides a method for carrying out noise reduction enhancement processing on a time frequency graph by utilizing a class activation intensity graph of a model, which does not solve the problems and comprises the following steps:
inputting a model by a time-frequency diagram to obtain characteristic diagram output of a conv2d _2 layer in the model;
calculating the gradient of the model class output corresponding to the feature map by using a function provided by Keras;
averaging the gradient of the characteristic diagram channel, and taking the gradient average as the weight of the characteristic diagram;
multiplying the characteristic graph and the gradient mean value to obtain a gradient weighted characteristic graph, and then averaging the weighted characteristic graph channel by channel to obtain a class activation intensity graph of a sample;
superposing the class activation intensity maps of all samples, and only retaining data more than eighty bits to obtain a certain class of key identification areas;
and repeating the steps in different categories to finally obtain key identification areas with different fault grades, and overlapping the areas to obtain a signal enhancement processing matrix.
S6: data reprocessing
After the time-frequency transformation is carried out on the sample signals, the element corresponding multiplication is carried out on the sample signals and the signal enhancement processing matrix obtained in S5, and then the processed time-frequency transformation array is converted into a time-frequency graph. The process is shown in the attached drawings
S7: model retraining
And (4) retraining the model by using the training set after the re-processing, so that the obtained model can more accurately identify the key areas.
S8: fault diagnosis
Test set XtestInputting the trained CNN model, and predicting the fault degree of the sample.
Example 2:
example 2 is a preferred example of example 1.
Referring to fig. 1, which is a flow chart of the method for noise reduction and enhancement of the time-frequency diagram of the fault signal of the plunger pump based on the Grad-CAM of the present invention, the method for diagnosing the cavitation fault of the high-speed aviation plunger pump comprises the following steps:
s1: a vibration sensor is arranged on a shell of the plunger pump, and is connected with a collecting device to collect vibration signals when the pump generates cavitation of different degrees under different inlet pressures, wherein the sampling frequency is 10240 Hz.
S2: the original vibration signal is divided into N segments, each segment being a sample. Each sample was assigned a cavitation rating according to the flow loss. The implementation case is divided into four grades, namely severe cavitation, medium cavitation, slight cavitation and no cavitation, and each section of sample length in the implementation case adopts 256 data points.
wherein: q. q.stIs the theoretical flow rate, qinIs the actual inlet flow.
Dividing a training set and a test set, dividing the converted picture into the training set and the test set according to the test set proportion of 0.2, namely taking 80% of samples as a training set XtrainAnd the rest as test set Xtest。
S3: sample time-frequency transformation
The single rotating speed working condition of the operation working condition of the embodiment has more periodic components of the acquired vibration signal, so that the time-frequency analysis by adopting short-time Fourier transform is more suitable. The effect is shown in fig. 2 by selecting appropriate short-time fourier transform parameters.
S4: establishing a preprocessing model
Model structure as shown in fig. 4, the input is the time-frequency plot after the time-frequency transform of the samples, the first layer is convolution layer conv2d _1, the convolution kernel size settings (3,3), and the number is 32. Then through the batch normalization layer and the random discard layer. And then connected to the next winding layer conv2d _ 2. The convolution kernel size of the second convolutional layer is set to (3,3), the number of convolution kernels is set to 16, and then the second convolutional layer is connected to a third convolutional layer conv2d _3 through a batch normalization layer and a random discard layer, and the third convolutional layer setting is consistent with the second convolutional layer. And expanding the data through a batch normalization layer and a random discarding layer. After expansion, a full connection layer with the neuron number of 32 is arranged, and finally, the output layer is connected through batch standardization and random abandon layers. The output layer outputs the category of cavitation failures.
And establishing a loss function, and selecting an optimization algorithm to train the model. The Loss function uses Cross Entropy (Cross entry Loss) as the Loss function. For the four types of fault classes in this example, assuming that the true value of the sample is q (x) ═ 0, 1, 0, 0 and the predicted value of the model is p (x) ═ a, b, c, d, then:
Loss(p,q)=-0·loga-1·logb-0·logc-0·logd
wherein a, b, c and d represent the inverse of the probability of the model respectively estimating the four fault classes.
And training and testing the pretreatment model to obtain the pretreatment model with good performance on the test set.
S5: key region identification
And (4) obtaining a feature map of a conv2d _2 layer in the model and a gradient between the model output class and the feature map by utilizing the preprocessing model. And obtaining a key point identification area of the preprocessing model according to the specification S5 by using the feature map and the gradient.
S6: data reprocessing
And performing point multiplication on the data after the sample time-frequency transformation and the key identification area matrix, converting the data into a time-frequency graph, and performing reprocessing on the training set and the test set by referring to the graph 3.
S7: diagnostic model training
And establishing and training a model structure and a training method as well as a preprocessing model.
S8: and inputting the test set data into the diagnosis model, and predicting the idle call degree of the test set.
More specifically, the invention utilizes a plunger pump fault simulation experiment table to acquire vibration signals under different inlet pressures through a triaxial vibration acceleration sensor arranged on a plunger pump shell. The laboratory bench can measure import export flow, divides the cavitation degree through flow loss degree, as shown in the following table:
inlet pressure (Mpa) | 0.25 | 0.15 | 0.10 | 0 |
Loss of flow | 1.0% | 2.0% | 8.0% | 76.0% |
Severity of cavitation | Without empty stomach | Slight cavitation | Medium-sized air speech | Severe cavitation |
The acquisition frequency of the vibration signal is 10240Hz, and the acquired original signals are divided into four types. Segmenting each type of data and converting the data into a time-frequency graph, and dividing a training set and a test set according to a proportion, wherein the conditions of the data set are as follows:
categories | Training set | Test set |
Severe cavitation | 192@(128,128,3) | 48@(128,128,3) |
Moderate cavitation | 192@(128,128,3) | 48@(128,128,3)) |
Slight cavitation | 192@(128,128,3) | 48@(128,128,3) |
Without cavitation | 192@(128,128,3) | 48@(128,128,3) |
Total of | 768 | 192 |
Results of the experiment
(1) Sample time-frequency graph conversion result and enhancement processing
According to the method, the samples are subjected to time-frequency transformation and stored into pictures, and meanwhile, the noise reduction enhancement method provided by the invention is utilized for processing, and the processing results are shown in fig. 5 and fig. 6.
(2) Model prediction accuracy
Models are built and trained by utilizing python and TensorFlow, the performance of the models is verified on a test set, the accuracy of the trained models in the verification set can reach 99.5%, and the accuracy and the loss curve in the training process are shown in figure 7.
(3) Model noise immunity
In order to better simulate the complex working conditions of real fault monitoring, white noise with different signal-to-noise ratios (SNR) is added into the original signals of the test set. The model is trained on data without white noise, and due to the data processing enhancement mode of the invention, the method has good anti-noise performance, such as figure 8, which is a graph of accuracy and loss of a test set under different noises.
The calculation formula of the vibration signal-to-noise ratio is as follows:
wherein: p represents the power level of the signal, PsignalIndicating the magnitude of the signal power, P, containing no noisenosieRepresenting the power level of the noise.
The anti-noise capability under the condition that SNR is-4-10 dB is verified through experiments, and the result is as follows:
|
0 | 2 | 4 | 6 | 8 | 10 |
rate of accuracy | 63.54% | 78.12% | 90.10% | 95.31% | 97.91% | 98.43% |
Loss of power | 0.90 | 0.60 | 0.37 | 0.22 | 0.13 | 0.08 |
The result shows that the cavitation fault diagnosis method provided by the invention has good anti-noise capability, the accuracy of the test set is higher than 80% under the condition that the signal-to-noise ratio is higher than 2dB, and the corresponding loss function value is smaller, thereby showing that the diagnosis reliability is high and the robustness is strong.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.
Claims (10)
1. A plunger pump fault signal time-frequency graph noise reduction enhancing method is characterized by comprising the following steps:
step 1: acquiring vibration signals of the plunger pump under different fault levels by a triaxial vibration acceleration sensor arranged on a plunger pump shell;
step 2: slicing and segmenting the acquired vibration signal according to a preset size;
and step 3: carrying out time-frequency transformation on the sliced sample to obtain a time-frequency graph of the sample, and dividing all the time-frequency graphs into a training set and a testing set according to a preset proportion;
and 4, step 4: training a convolutional neural network classification model by using training set data, and performing fault classification on a test set;
and 5: acquiring a class activation view of a training set time-frequency graph through the trained convolutional neural network classification model, and integrating the class activation view to obtain a key area identification matrix;
step 6: enhancing all the time-frequency graphs according to the key area identification matrix;
and 7: and retraining the convolutional neural network classification model by using the enhanced training set to obtain a fault diagnosis model and predicting the fault degree of the sample.
2. The plunger pump fault signal time-frequency diagram noise reduction and enhancement method as claimed in claim 1, wherein the network structure of the convolutional neural network classification model is composed of three convolutional layers:
setting the size of a first layer of convolution kernels to be 3 x 3, setting the number of the first layer of convolution kernels to be 32, and setting the output size after convolution to be the same as the input size; the number of convolution kernels of the second layer and the third layer is set to 16;
and outputting classification results by utilizing two full-connection layers, and converting the forward propagation result of the convolutional neural network classification model into the probability distribution value of the classification label by adopting a SoftMax activation function in the last full-connection layer.
3. The plunger pump fault signal time-frequency diagram noise reduction enhancement method is characterized in that a cross entropy loss function is used for evaluating errors between a prediction result and a real label, an RMSProp optimization algorithm is adopted for iterative training to optimize a convolutional neural network classification model, and the formula of the loss function is as follows:
Loss(p,q)=-∑xp(x)q(x)
wherein p is the true value of the sample, q is the predicted label value, x is the serial number, p (x) is the probability distribution of the true value of the sample, and q (x) is the probability distribution of the predicted label value of the model.
4. The plunger pump fault signal time-frequency diagram noise reduction enhancement method according to claim 1, characterized in that the time-frequency diagrams of the training set samples are sequentially input into a preprocessing model to obtain an output feature diagram of a second layer of convolutional layer in the model, and each channel in the feature diagram is weighted by the gradient of the class relative to the channel to obtain a space diagram of the activation intensity of the input image to the class;
and accumulating the spatial maps of the activation intensity in sequence, only keeping data more than eighty bits in the spatial maps, obtaining key identification areas of different classes by adopting the same method for each class, and then overlapping the key identification areas of the different classes to obtain a key area identification matrix.
5. The plunger pump fault signal time-frequency diagram noise reduction enhancement method according to claim 1, wherein the enhancement processing comprises: and performing time-frequency transformation on the sample signal to obtain a two-dimensional array of the time-frequency transformation, performing point multiplication on the two-dimensional array and the key area identification matrix to obtain a processed two-dimensional array, and converting the processed two-dimensional array into a picture.
6. The utility model provides a plunger pump fault signal time-frequency diagram noise reduction reinforcing system which characterized in that includes:
module M1: acquiring vibration signals of the plunger pump under different fault levels by a triaxial vibration acceleration sensor arranged on a plunger pump shell;
module M2: slicing and segmenting the acquired vibration signal according to a preset size;
module M3: carrying out time-frequency transformation on the sliced sample to obtain a time-frequency graph of the sample, and dividing all the time-frequency graphs into a training set and a testing set according to a preset proportion;
module M4: training a convolutional neural network classification model by using training set data, and performing fault classification on a test set;
module M5: acquiring a class activation view of a training set time-frequency graph through the trained convolutional neural network classification model, and integrating the class activation view to obtain a key area identification matrix;
module M6: enhancing all the time-frequency graphs according to the key area identification matrix;
module M7: and retraining the convolutional neural network classification model by using the enhanced training set to obtain a fault diagnosis model and predicting the fault degree of the sample.
7. The plunger pump fault signal time-frequency diagram noise reduction and enhancement system as claimed in claim 6, wherein the network structure of the convolutional neural network classification model is composed of three convolutional layers:
setting the size of a first layer of convolution kernels to be 3 x 3, setting the number of the first layer of convolution kernels to be 32, and setting the output size after convolution to be the same as the input size; the number of convolution kernels of the second layer and the third layer is set to 16;
and outputting classification results by utilizing two full-connection layers, and converting the forward propagation result of the convolutional neural network classification model into the probability distribution value of the classification label by adopting a SoftMax activation function in the last full-connection layer.
8. The plunger pump fault signal time-frequency diagram noise reduction enhancement system as claimed in claim 6, wherein a cross entropy loss function is used to estimate the error between the prediction result and the real label, and a RMSProp optimization algorithm is used to perform iterative training to optimize a convolutional neural network classification model, wherein the formula of the loss function is as follows:
Loss(p,q)=-∑xp(x)q(x)
wherein p is the true value of the sample, q is the predicted label value, x is the serial number, p (x) is the probability distribution of the true value of the sample, and q (x) is the probability distribution of the predicted label value of the model.
9. The plunger pump fault signal time-frequency diagram noise reduction and enhancement system as claimed in claim 6, wherein the time-frequency diagrams of the training set samples are sequentially input into the preprocessing model to obtain the output feature diagram of the second layer convolutional layer in the model, and each channel in the feature diagram is weighted by the gradient of the class relative to the channel to obtain a space diagram of the activation intensity of the input image to the class;
and accumulating the spatial maps of the activation intensity in sequence, only keeping data more than eighty bits in the spatial maps, obtaining key identification areas of different classes by adopting the same method for each class, and then overlapping the key identification areas of the different classes to obtain a key area identification matrix.
10. The plunger pump fault signal time-frequency diagram noise reduction enhancement system of claim 6, wherein the enhancement processing comprises: and performing time-frequency transformation on the sample signal to obtain a two-dimensional array of the time-frequency transformation, performing point multiplication on the two-dimensional array and the key area identification matrix to obtain a processed two-dimensional array, and converting the processed two-dimensional array into a picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692924.2A CN113409213B (en) | 2021-06-22 | 2021-06-22 | Method and system for enhancing noise reduction of time-frequency diagram of fault signal of plunger pump |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692924.2A CN113409213B (en) | 2021-06-22 | 2021-06-22 | Method and system for enhancing noise reduction of time-frequency diagram of fault signal of plunger pump |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113409213A true CN113409213A (en) | 2021-09-17 |
CN113409213B CN113409213B (en) | 2023-11-14 |
Family
ID=77682245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692924.2A Active CN113409213B (en) | 2021-06-22 | 2021-06-22 | Method and system for enhancing noise reduction of time-frequency diagram of fault signal of plunger pump |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113409213B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114062511A (en) * | 2021-10-24 | 2022-02-18 | 北京化工大学 | Single-sensor-based intelligent acoustic emission identification method for early damage of aircraft engine |
CN117270482A (en) * | 2023-11-22 | 2023-12-22 | 博世汽车部件(苏州)有限公司 | Automobile factory control system based on digital twin |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188453A (en) * | 2006-11-20 | 2008-05-28 | 阿尔卡特朗讯 | Method and system for wireless cellular indoor communication |
KR20120114776A (en) * | 2011-04-08 | 2012-10-17 | (주)한세로에프에이 | Inspecting method of color similarity using complementary color relationship of chromatic color and achromatic color, subject detecting method and heat treatment inspecting method using the same |
CN107915303A (en) * | 2016-10-10 | 2018-04-17 | 天津有序环境科技发展有限公司 | Can connecting shaft pump Ammonia adding System and control method more |
CN108694298A (en) * | 2018-07-04 | 2018-10-23 | 温州大学 | A kind of axial plunger pump bearing inner race and outer ring method for diagnosing faults |
CN108757426A (en) * | 2018-07-04 | 2018-11-06 | 温州大学 | Oilfield water filling plunger pump trouble diagnostic method |
CN108830127A (en) * | 2018-03-22 | 2018-11-16 | 南京航空航天大学 | A kind of rotating machinery fault feature intelligent diagnostic method based on depth convolutional neural networks structure |
CN109214402A (en) * | 2017-07-04 | 2019-01-15 | 华北电力大学(保定) | A kind of people having the same aspiration and interest unit grouping method of combination WAVELET FUZZY entropy and GG fuzzy clustering |
CN110766027A (en) * | 2019-10-22 | 2020-02-07 | 腾讯科技(深圳)有限公司 | Image area positioning method and training method of target area positioning model |
CN111160167A (en) * | 2019-12-18 | 2020-05-15 | 北京信息科技大学 | Spindle fault classification and identification method based on S-transform deep convolutional neural network |
CN111401136A (en) * | 2020-02-22 | 2020-07-10 | 上海交通大学 | Plunger pump cavitation degree detection method and device and terminal |
CN111428548A (en) * | 2019-09-16 | 2020-07-17 | 中国石油大学(华东) | Vibration signal processing method based on Matlab time-frequency analysis |
CN111796342A (en) * | 2020-06-05 | 2020-10-20 | 山东科技大学 | Tiny fault diagnosis method and device for cam type absolute gravimeter |
WO2020248471A1 (en) * | 2019-06-14 | 2020-12-17 | 华南理工大学 | Aggregation cross-entropy loss function-based sequence recognition method |
US20210081511A1 (en) * | 2019-09-16 | 2021-03-18 | Palo Alto Research Center Incorporated | Machine learning based systems and methods for real time, model based diagnosis |
CN112566174A (en) * | 2020-12-02 | 2021-03-26 | 中国电子科技集团公司第五十二研究所 | Abnormal I/Q signal identification method and system based on deep learning |
-
2021
- 2021-06-22 CN CN202110692924.2A patent/CN113409213B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188453A (en) * | 2006-11-20 | 2008-05-28 | 阿尔卡特朗讯 | Method and system for wireless cellular indoor communication |
KR20120114776A (en) * | 2011-04-08 | 2012-10-17 | (주)한세로에프에이 | Inspecting method of color similarity using complementary color relationship of chromatic color and achromatic color, subject detecting method and heat treatment inspecting method using the same |
CN107915303A (en) * | 2016-10-10 | 2018-04-17 | 天津有序环境科技发展有限公司 | Can connecting shaft pump Ammonia adding System and control method more |
CN109214402A (en) * | 2017-07-04 | 2019-01-15 | 华北电力大学(保定) | A kind of people having the same aspiration and interest unit grouping method of combination WAVELET FUZZY entropy and GG fuzzy clustering |
CN108830127A (en) * | 2018-03-22 | 2018-11-16 | 南京航空航天大学 | A kind of rotating machinery fault feature intelligent diagnostic method based on depth convolutional neural networks structure |
CN108694298A (en) * | 2018-07-04 | 2018-10-23 | 温州大学 | A kind of axial plunger pump bearing inner race and outer ring method for diagnosing faults |
CN108757426A (en) * | 2018-07-04 | 2018-11-06 | 温州大学 | Oilfield water filling plunger pump trouble diagnostic method |
WO2020248471A1 (en) * | 2019-06-14 | 2020-12-17 | 华南理工大学 | Aggregation cross-entropy loss function-based sequence recognition method |
CN111428548A (en) * | 2019-09-16 | 2020-07-17 | 中国石油大学(华东) | Vibration signal processing method based on Matlab time-frequency analysis |
US20210081511A1 (en) * | 2019-09-16 | 2021-03-18 | Palo Alto Research Center Incorporated | Machine learning based systems and methods for real time, model based diagnosis |
CN110766027A (en) * | 2019-10-22 | 2020-02-07 | 腾讯科技(深圳)有限公司 | Image area positioning method and training method of target area positioning model |
CN111160167A (en) * | 2019-12-18 | 2020-05-15 | 北京信息科技大学 | Spindle fault classification and identification method based on S-transform deep convolutional neural network |
CN111401136A (en) * | 2020-02-22 | 2020-07-10 | 上海交通大学 | Plunger pump cavitation degree detection method and device and terminal |
CN111796342A (en) * | 2020-06-05 | 2020-10-20 | 山东科技大学 | Tiny fault diagnosis method and device for cam type absolute gravimeter |
CN112566174A (en) * | 2020-12-02 | 2021-03-26 | 中国电子科技集团公司第五十二研究所 | Abnormal I/Q signal identification method and system based on deep learning |
Non-Patent Citations (10)
Title |
---|
JING ZHAO 等: "A new bearing fault diagnosis method based on signal-to-image mapping and convolutional neural network", 《MEASUREMENT》 * |
JING ZHAO 等: "A new bearing fault diagnosis method based on signal-to-image mapping and convolutional neural network", 《MEASUREMENT》, vol. 176, 31 May 2021 (2021-05-31), pages 1 - 15 * |
KYUNG HO SUN 等: "Vision-Based Fault Diagnostics Using Explainable Deep Learning With Class Activation Maps", 《IEEE ACCESS 》, vol. 8, pages 98962 - 98972 * |
刘炳集 等: "基于时频图和 CNN 的滚动轴承故障诊断", 《南昌航空大学学报(自然科学版)》 * |
刘炳集 等: "基于时频图和 CNN 的滚动轴承故障诊断", 《南昌航空大学学报(自然科学版)》, vol. 32, no. 2, 30 June 2018 (2018-06-30), pages 1 - 2 * |
吴春志 等: "一种具有强抗噪性的深度学习故障诊断模型", 《西安交通大学学报》 * |
吴春志 等: "一种具有强抗噪性的深度学习故障诊断模型", 《西安交通大学学报》, vol. 55, no. 4, 30 April 2021 (2021-04-30), pages 2 * |
闫康: "基于卷积神经网络和灰色模型的轴承健康评估及预测研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, vol. 2021, no. 1, pages 029 - 288 * |
马鎏豪: "基于机器学习的轴承机械振动信号分析方法研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
马鎏豪: "基于机器学习的轴承机械振动信号分析方法研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, vol. 2020, no. 10, 15 October 2020 (2020-10-15), pages 029 - 12 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114062511A (en) * | 2021-10-24 | 2022-02-18 | 北京化工大学 | Single-sensor-based intelligent acoustic emission identification method for early damage of aircraft engine |
CN117270482A (en) * | 2023-11-22 | 2023-12-22 | 博世汽车部件(苏州)有限公司 | Automobile factory control system based on digital twin |
Also Published As
Publication number | Publication date |
---|---|
CN113409213B (en) | 2023-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108318249B (en) | Fault diagnosis method for rotary mechanical bearing | |
CN111523509B (en) | Equipment fault diagnosis and health monitoring method integrating physical and depth expression characteristics | |
CN111238814B (en) | Rolling bearing fault diagnosis method based on short-time Hilbert transform | |
CN108827605B (en) | Mechanical fault feature automatic extraction method based on improved sparse filtering | |
CN110516305B (en) | Intelligent fault diagnosis method under small sample based on attention mechanism meta-learning model | |
CN109858352B (en) | Fault diagnosis method based on compressed sensing and improved multi-scale network | |
CN111401136B (en) | Plunger pump cavitation degree detection method and device and terminal | |
CN110991295B (en) | Self-adaptive fault diagnosis method based on one-dimensional convolutional neural network | |
CN113409213B (en) | Method and system for enhancing noise reduction of time-frequency diagram of fault signal of plunger pump | |
CN115290326A (en) | Rolling bearing fault intelligent diagnosis method | |
CN113435321A (en) | Method, system and equipment for evaluating state of main shaft bearing and readable storage medium | |
CN114964782A (en) | Rolling bearing fault diagnosis acoustic emission signal processing method and system based on compressed sensing | |
CN115017939A (en) | Intelligent diagnosis method and device for faults of aircraft fuel pump and storage medium | |
CN117473414A (en) | Bearing fault position identification method based on low-noise time-frequency image | |
Li et al. | Pumping unit fault analysis method based on wavelet transform time-frequency diagram and cnn | |
CN114330430A (en) | Elevator fault judgment method and system based on big data characteristic analysis | |
CN114741945A (en) | Diagnosis method for online faults of aircraft engine | |
CN113758709A (en) | Rolling bearing fault diagnosis method and system combining edge calculation and deep learning | |
CN112560674B (en) | Method and system for detecting sound signal quality | |
CN113569989A (en) | TI-TSDCN model construction method for stage equipment fault diagnosis | |
CN117592543A (en) | Aeroengine rolling bearing fault diagnosis method based on self-supervision learning | |
CN117037841A (en) | Acoustic signal hierarchical cavitation intensity identification method based on hierarchical transition network | |
CN112149804A (en) | Novel convolutional neural network model and application | |
CN116772122A (en) | Natural gas pipeline leakage fault diagnosis method, system, equipment and medium | |
CN116541771A (en) | Unbalanced sample bearing fault diagnosis method based on multi-scale feature fusion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |