Abstract
The present disclosure relates to a fault diagnosis method of a reciprocating machinery based on a keyphasor-free complete-cycle signal. The method includes the following steps: 1) building a complete-cycle vibration signal image library; 2) training an image recognition model; 3) acquiring a complete-cycle data on a keyphasor-free basis; 4) building an automatic feature extraction model; and 5) inputting a hidden layer feature of an autoencoder into a support vector machine (SVM) classifier to obtain a diagnosis result. By using a deep cascade convolutional neural network (CNN), the present disclosure achieves the goal of complete-cycle data acquisition on a keyphasor-free basis, solves the problems that traditional intelligent fault diagnosis relies on a keyphasor signal and real-time diagnosis fails due to insufficient installation space. In addition, by using an autoencoder for automatic feature extraction, the present disclosure avoids manual feature selection, reduces labor costs.
Claims
1. A fault diagnosis method of a reciprocating machinery based on a keyphasor-free complete-cycle signal, wherein the method comprises the following steps: step 1: acquiring, by an online monitoring system of the reciprocating machinery, m groups of vibration acceleration data of a single cycle of a measuring point of a cylinder head in a normal state and an abnormal state respectively on a keyphasor basis to generate a normal data set N.sub.m and an abnormal data set A.sub.m; normalizing each group of data in the two data sets by using a z-score method to obtain a processed normal data set N′.sub.m and abnormal data set A′.sub.m; generating images with a size of h1×h2 from the m groups of data in the normal data set N′.sub.m to acquire a normal data image set P.sub.m; step 2: partitioning each image in the normal data image set P.sub.m into sub-images with a size of according to an order of the intake stroke, the compression stroke, the power stroke and the exhaust stroke; labeling the sub-images to generate an intake stroke image set J={j.sub.1, j.sub.2, j.sub.3, . . . ,j.sub.m}, a compression stroke image set C={c.sub.1, c.sub.2,c.sub.3, . . . ,c.sub.m}, a power stroke image set F={f.sub.1, f.sub.2, f.sub.3, . . . , f.sub.m} and an exhaust stroke image set E={e.sub.1,e.sub.2,e.sub.3, . . . ,e.sub.m}; dividing the four stroke image sets into a training set and a test set respectively to obtain a training image set Train_C={J.sub.train, C.sub.train, F.sub.train, E.sub.train} and a test image set Test_C={J.sub.test, C.sub.test, F.sub.test, E.sub.test}, wherein partitioning is based on locating the shock positions of the intake stroke, the compression stroke, the power stroke, and the exhaust stroke in the vibration acceleration data; step 3: building and training a two-class hybrid convolutional neural network (CNN) Net; 3.1: representing categories of classification of the network Net by 0 and 1 respectively, wherein 0 indicates that an input data is not a complete-cycle data, and 1 indicates that the input data is a complete-cycle data; composing the network Net by an intake stroke CNN CNN_J, a compression stroke CNN CNN_C a power stroke CNN CNN_E and an exhaust stroke CNN CNN_E; adopting a mean cross-entropy loss function M.sub.loss as follows: wherein, q.sub.i∈[0,1] represents a predicted value of a one-dimensional vector corresponding to an i-th category; L.sup.j(q.sub.i) represents a cross-entropy loss function for category i; k represents a count of CNNs; γ.sub.i represents a true value of the i-th category; j represents a j-th CNN; 3.2: setting the four CNNs with the same network structure comprising an input layer, a convolution layer 1, a pooling layer 1, a convolution layer 2, a pooling layer 2, a fully connected layer 1 and a fully connected layer 2, wherein an input image in the input layer is a grayscale image of output results of the convolution layer 1, the pooling layer 1, the convolution layer 2 and the pooling layer 2 are respectively processed by batch normalization, and output results of the fully connected layer 1 and the fully connected layer 2 are respectively processed by L2 regularization; 3.3: denoting predicted probability values output by CNN_J, CNN_C, CNN_F and CNN_E as g.sub.J,g.sub.C,g.sub.F,g.sub.E respectively, and taking a mean probability value g as a predicted probability value of the two-class hybrid CNN Net, wherein the mean probability value is calculated as follows: inputting the training image set Train_C={J.sub.train, C.sub.train, F.sub.train E.sub.train} into a built Net network model for training; testing a trained network model by using the test set Test_C={J.sub.test, C.sub.test, F.sub.test, E.sub.test} to obtain a final two-class hybrid CNN model which is denoted as T_Net; calculating a test accuracy as follows: wherein, Corr represents a count of correct identification; Test_m represents a total count of test data; step 4: acquiring a complete-cycle data of the reciprocating machinery on a keyphasor-free basis; 4.1: selecting a measuring point of the cylinder head of the reciprocating machinery, and continuously acquiring normal vibration acceleration data S.sub.n={s.sub.1, s.sub.2, s.sub.3, . . . , s.sub.n} and abnormal vibration acceleration data Ab_S.sub.n′={ab_s.sub.1, ab_s.sub.2, ab_s.sub.3, . . . , ab_s.sub.n′} of two or more cycles on a keyphasor-free basis, wherein n and n′ respectively represent a count of sampling points; 4.2: determining, according to a sampling frequency F.sub.s of the monitoring system and a working speed range [R.sub.min, R.sub.max] of a unit, a range of sampling point count [W.sub.min, W.sub.max] of a complete cycle as follows: setting a series of window lengths W.sub.v={W.sub.min,W.sub.min+d,W.sub.min+2d, . . . ,W.sub.min+αd},α=0,1,2, . . . , that is, a total of α+1 window lengths, according to [W.sub.min,W.sub.max], wherein d represents a gradient of length change; W.sub.min+αd≤W.sub.max, and 10<d≤W.sub.min; 4.3: performing sliding cut-off on data S.sub.n, in window W.sub.min with a step Step to obtain a cut-off result S.sub.n1; traversing data S.sub.n through the window to obtain a cut-off data set Cut1={S.sub.n11,S.sub.n12, . . . }; normalizing data in Cut1 by the z-score method to obtain a data set Cut1′; generating images with a size of h1×h2 from each group of data in Cut1′ respectively; partitioning each generated image from left to right into sub-images with a size of wherein a partitioning result of each image is denoted as S.sub.n1_P={img1,img2,img3,img4}; calculating the image set of each window in turn to obtain image sets
Cut1_P={S.sub.n11_P,S.sub.n12_P, . . . },Cut2_P={S.sub.n21_P,S.sub.n22_P, . . . }, . . . ,Cut(α+1)_P={S.sub.n(α+1)1_P,S.sub.n(a+1)2_P, . . . }; 4.4: sequentially selecting and inputting a first part of images in image set Cut1_P into T_Net for initial classification; continuing to classify a remaining image if the selected images comprise a complete-cycle image, wherein a data point corresponding to a complete-cycle image recognized by the classification of T_Net is a complete-cycle data, which is denoted as zq.sub.i′; stopping classification of the remaining image in Cut1_P and switching to a next window, if the selected images do not comprise a complete-cycle image; calculating a count of images initially classified as follows: wherein, Win represents a window in W.sub.v; 4.5: processing the image sets obtained by all windows according to the method in step 4.4 to finally obtain a normal complete-cycle data set T_zq={zq.sub.1, zq.sub.2, zq.sub.3, . . . , zq.sub.i′},i′=1,2,3, through keyphasor-free cut-off; performing cut-off on abnormal data Ab_S.sub.n′ by steps 4.2 to 4.5 to obtain cut-off cycle data ab_zq.sub.i′, and finally obtaining an abnormal complete-cycle data set Ab_zq={ab_zq.sub.1, ab_zq.sub.2, ab_zq.sub.3, . . . , ab_zq.sub.i′,} through keyphasor-free cut-off; step 5: building an automatic feature extraction model, that is, an autoencoder model, wherein the automatic feature extraction model provides a plurality of hidden layers of a keyphasor-free vibration signal; dividing the normal data N.sub.m and abnormal data A.sub.m of the vibration acceleration of the cylinder head acquired on a keyphasor basis into a training set Train and a test set Test, and labeling “normal” and “abnormal” respectively; building an autoencoder comprising an input layer, a hidden layer 1, a hidden layer 2, a hidden layer 3, a hidden layer 4 and an output layer; training an initial autoencoder model by the training set Train, and testing the model by the test set Test to obtain an autoencoder-based feature extraction model; step 6: labeling the complete-cycle data sets T_zq and Ab_zq obtained in step 4 as “normal” and “abnormal”, and then dividing the complete-cycle data sets into a training set and a test set respectively according to the same ratio; inputting the training set into the autoencoder model obtained in step 5; taking an intermediate hidden layer feature obtained by the autoencoder as an input into a support vector machine (SVM) model to train a two-class SVM model, which outputs “1” indicating normal or “0” indicating abnormal; step 7: classifying normal and abnormal keyphasor-free complete-cycle signals of the reciprocating machinery by the two-class SVM model after training to perform fault diagnosis on a keyphasor-free complete-cycle signal of a reciprocating machinery; and Step 8: gathering the keyphasor-free vibration signal of the reciprocating machinery, and determining fault of the reciprocating machinery based on the abnormal output of the trained two-class SVM model, wherein the complete-cycle data is acquired by performing cut-off steps of 4.2 to 4.5 on the gathered keyphasor-free vibration signal, and wherein the acquired complete-cycle data is input into the trained two-class SVM model.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) FIG. 1 is a flowchart of a method of the present disclosure.
(2) FIG. 2 shows a traditional keyphasor-based signal monitoring method.
(3) FIG. 3 shows a complete-cycle vibration signal acquired on a keyphasor basis under a working condition.
(4) FIG. 4 shows a theoretical analysis of a complete-cycle shock feature of a vibration signal of a cylinder head.
(5) FIG. 5 shows an improved deep cascade convolutional neural network (CNN) model.
(6) FIG. 6 shows a raw signal acquired on a keyphasor-free basis under a working condition.
(7) FIG. 7 shows a normal complete-cycle signal acquired on a keyphasor-free basis under a working condition according to the present disclosure.
(8) FIG. 8 shows a comparison of keyphasor-based and keyphasor-free complete-cycle lengths under different working conditions.
(9) FIG. 9 shows a comparison of keyphasor-based and keyphasor-free complete-cycle integrities under different working conditions.
(10) FIG. 10 shows a complete-cycle abnormal valve clearance signal acquired on a keyphasor-free basis under a working condition according to the present disclosure.
(11) FIG. 11 shows a diagnosis result of a valve clearance fault of a reciprocating machinery.
DETAILED DESCRIPTION
(12) The method of the present disclosure is described in detail with reference to the drawings and the actual cylinder head data of a diesel engine.
(13) As shown in FIG. 1, a fault diagnosis method of a reciprocating machinery based on a keyphasor-free complete-cycle signal mainly includes a diagnosis process as follows:
(14) Step 1: Build a complete-cycle vibration signal image library. FIG. 2 shows a traditional keyphasor-based signal monitoring method. It mainly uses a crankshaft groove or an external keyphasor module as a trigger, and a crankshaft rotates two revolutions, namely 720° to complete one operating cycle. A measuring point of a cylinder head is selected through a vibration transducer, and 500 groups of normal vibration acceleration data N.sub.m and abnormal valve clearance data A.sub.m of a complete cycle of the cylinder head under all possible working conditions are respectively acquired on a keyphasor basis. FIG. 3 shows a complete-cycle vibration signal acquired on a keyphasor basis under a working condition. According to different working conditions, different unit parameters and other characteristics, all data are normalized by using a z-score method, and images with a size of 1600×512 are generated, thereby generating a complete-cycle vibration signal image library P.sub.m of all working conditions as shown in FIG. 3.
(15) Step 2: According to an actual working process of a diesel engine and an analysis of the acquired signal, the cylinder head vibration signal of the diesel engine mainly includes four strokes: intake, compression, combustion and exhaust. An ignition shock, an exhaust valve closing shock and an intake valve closing shock have the most significant characteristics, as shown in FIG. 4. It can be seen from the figure that each working process of the reciprocating machinery has a sequence, and has a corresponding specific relationship with a crankshaft rotation angle. Each image in the normal data image set P.sub.m is partitioned into sub-images with a size of 400×512. The sub-images are labeled to generate an intake stroke image set J={j.sub.1, j.sub.2, j.sub.3, . . . , j.sub.m}, a compression stroke image set C={c.sub.1, c.sub.2, c.sub.3, . . . , c.sub.m}, a combustion stroke image set F={f.sub.1, f.sub.2, f.sub.3, . . . , f.sub.m} and an exhaust stroke image set E={e.sub.1, e.sub.2, e.sub.3, . . . , e.sub.m}. The four stroke image sets are divided into a training set and a test set respectively according to a ratio of 30% to 70% so as to generate a training image set Train_C={J.sub.train, C.sub.train, F.sub.train, E.sub.train} and a test image set Test_C={J.sub.test, C.sub.test, F.sub.test, E.sub.test}.
(16) Step 3: Build and train a two-class hybrid convolutional neural network (CNN) Net, as shown in FIG. 5. The four CNNs have the same initial parameter, that is, a learning rate 1e-5. A convolution layer 1 and a convolution layer 2 respectively have 32 convolution kernels with a size of 3×3. Two pooling layers respectively adopt max pooling and have a 2×2 pooling kernel. A maximum number of iterations of the CNN is 120. The network is trained by the image training set and test set obtained in Step 2 to obtain a two-class hybrid CNN model T_Net. An accuracy is calculated as follows:
(17)
(18) Step 4: Acquire a complete-cycle data of the reciprocating machinery on a keyphasor-free basis.
(19) 4.1: A measuring point of the cylinder head of the reciprocating machinery is selected, and normal vibration acceleration data S.sub.n={s.sub.1, s.sub.2, s.sub.3, . . . , s.sub.n} of two or more cycles are continuously acquired on a keyphasor-free basis, as shown in FIG. 6.
(20) 4.2: According to a sampling frequency 51200 of the monitoring system and a working speed range [600, 2100] of a unit, a range of sampling point count [2926,10240] of a complete cycle is determined as follows:
(21) 0
(22) A series of window lengths W.sub.v={2926,2976,3026, . . . , 10226} are set according to [2926,10240], where d=50.
(23) 4.3: Sliding cut-off is performed on data S.sub.n in window 2926 with a step of 10 to obtain a cut-off result S.sub.n1. The window traverses data S.sub.n through to obtain a cut-off data set Cut1={S.sub.n11, S.sub.n12, . . . }. Data in Cut1 are normalized by the z-score method to obtain a data set Cut1′. Images with a size of 1600×512 are generated from each group of data in Cut1′ respectively. Each generated image is partitioned from left to right into sub-images with a size of 400×512, and a partitioning result of each image is denoted as S.sub.n1_P={img1,img2,img3,img4}. The above process is repeated to obtain image sets of each window as follows:
Cut1_P={S.sub.n11_P,S.sub.n12_p, . . . },Cut2_P={S.sub.n21_p,S.sub.n22_p, . . . }, . . . ,Cut(α+1)_P={S.sub.n(α+1)1_p,S.sub.n(α+1)2_p, . . . }
(24) 4.4: A first part of images in image set Cut1_P are sequentially selected and input into T_Net for initial classification. If the selected images include a complete-cycle image, a remaining image is continuously classified, and a data point corresponding to the complete-cycle image obtained by the classification of T_Net is a complete-cycle data, which is denoted as zq.sub.i′. If the selected images do not include a complete-cycle image, the classification of the remaining image in Cut1_P is stopped, and the operation switches to a next window. A count of images initially classified is calculated as follows:
(25)
(26) 4.5: The image sets obtained by all windows are processed according to the method in Step 4.4 to finally obtain a complete-cycle data set T_zq={zq.sub.1, zq.sub.2, zq.sub.3, . . . , zq.sub.i′}, i′=1, 2, 3, . . . through keyphasor-free cut-off.
(27) A keyphasor-free cut-off result of a complete-cycle signal is shown in FIG. 7, which is compared with a keyphasor-based complete-cycle result (FIG. 8), and a complete-cycle integrity of the keyphasor-free acquisition is above 96%. As shown in FIG. 9, there is only a slight difference between the two acquisitions. The complete-cycle integrity is calculated as follows:
(28)
(29) In the equation, N.sub.non represents a complete-cycle length acquired through keyphasor-free cut-off, and n represents a rotation speed.
(30) The same measuring point of the cylinder head of the reciprocating machinery is selected, and abnormal valve clearance-induced vibration acceleration data Ab_S.sub.n′={ab_s.sub.1, ab_s.sub.2, ab_s.sub.3, . . . , ab_s.sub.n′} of two or more cycles are continuously acquired on a keyphasor-free basis. Ab_S.sub.n′ is cut off according to Steps 4.2 to 4.4 with a cut-off cycle of ab_zq.sub.i′ to finally obtain a complete-cycle abnormal data set Ab_zq={ab_zq.sub.1, ab_zq.sub.2, ab_zq.sub.3, . . . , ab_zq.sub.i′} through keyphasor-free cut-off, as shown in FIG. 10.
(31) Step 5: Build an automatic feature extraction model, that is, an autoencoder. The normal vibration acceleration data N.sub.m and the abnormal valve clearance data A.sub.m of the cylinder head acquired on a keyphasor basis are respectively divided into a training set Train and a test set Test according to a ratio of 70% to 30%, and the divided data sets are labeled “normal” and “abnormal” respectively. An autoencoder is built with an input layer, a hidden layer 1, a hidden layer 2, a hidden layer 3, a hidden layer 4 and an output layer. An initial parameter includes a learning rate 1e-5. The hidden layers 1 to 4 respectively have 800 nodes and maximally 200 iterations. An initial autoencoder model is trained by the training set Train, and the model after training is tested by the test set Test. An accuracy is calculated by the equation in Step 3. According to the accuracy, the learning rate of the model and the node count and maximum iterations in the hidden layers are adjusted, and then the model is again trained by the training set Train. The above process is repeated until the accuracy is the highest and the time consumed is the shortest, thus obtaining an autoencoder-based feature extraction model.
(32) Step 6: The complete-cycle data sets T_zq and Ab_zq obtained in Step 4 are labeled “normal” and “abnormal”, and divided into a training set and a test set respectively according to a ratio of 70% to 30%. The training set is input into the autoencoder model obtained in Step 5, and an intermediate hidden layer feature obtained by the autoencoder is input into a support vector machine (SVM) model to train a two-class SVM model so as to finally determine whether the valve clearance of the diesel engine is abnormal. The model is tested by the test set, and a test result shown in FIG. 11 is obtained, which has an overall accuracy of 95% or above.