# Early Fault Diagnosis Model Design of Reciprocating Compressor Valve Based on Multiclass Support Vector Machine and Decision Tree

Authors: Zhihong Yu; Bosi Zhang; Guangxia Hu; Zhigang Chen
Journal: Scientific Programming
 (2022)

---

## Abstract

According to the character of frequent fault occurrence, difficult diagnosis of large reciprocating compressor valves, an early fault diagnosis model of reciprocating compressor valve based on multiclass support vector machine and decision tree is designed. A series of simulation experiments of the suction valve and exhaust valve on a large-scale reciprocating compressor experimental bench are made and the valve fault principle is analyzed. Using the advantages of fast and efficient decision tree classification and the prominent characteristics of support vector machine in small sample binary classification, a multivariate classification and recognition model is constructed. The typical characteristic parameters of gearbox vibration signal are extracted as the fault feature vector training model under different fault conditions, and the samples are tested. The experimental results show that the recognition effect of this method is significantly better than that of the neural network method in the case of small samples, and the recognition efficiency is improved more than that of the conventional multivariate support vector machine method which can be effectively applied to reciprocating compressor valve fault diagnosis.


---

## Body

## 1. Introduction

There are a large amount of dynamic equipment of different categories in the oilfield west of China. All different kinds of equipment for powering, frequency converting, ventilating, and fluid transporting are connected into a chain with series connection or parallel connection, and a complex system comes into being [1]. It is a big challenge to build a model due to mutual coupling, multiple fault models, and complicated patterns and even with implication. Reciprocating compressor has become the critical equipment of oilfield west of China due to the advantage of wide range and high efficiency of pressure and exhaust coupled with stable pressure when adjusting the gas volume. But its structure is complex and most of its components are susceptible to failure. According to the statistics, valves, packing seal, and piston ring are the components with the top failure rate which may cause irregular shut down of reciprocating compressor, among which the shut down due to the failure of the valves accounts for more than 36% [2]. The valves and cylinders have to endure high pressure and temperature. In addition, valves must inhale and exhale the high velocity gas within a short period. The working condition is very serious. How to extract feature parameters from complex and changeable signals is critical for diagnosis. It presents even stricter requirements for the diagnosis model due to tremendous difficulties in extracting feature parameters and unobvious characterization resulting from weak energy change of the feature parameters during the early fault.The traditional diagnosis method is based on the statistical analysis of a large amount of samples. As a matter of fact, the amount of samples, especially the fault samples, is quite limited and even in the absence [3] in a real test. With the development of information science [4–7], various new theories and ideas begin to enter the field of fault diagnosis [8–11]. Support Vector Machine (SVM) theory presents the advantage of the small size of training samples, great generalization ability, and easiness of getting an optimal global solution. It has been widely applied to multiple areas such as electricity, economy, and medical science and diagnosis [12–14]. A decision tree is one kind of inductive learning algorithm based on data. It aims at finding the classification rules from a set of nonsequence and nonrule data. It can be applied to build a classifier and a prediction model which can be used to reduce the training amount of Support Vector Machine and improve the efficiency and accuracy of classification [15–18]. By adopting the method with the combination of a decision tree and Support Vector Machine to build a multiple classifier, the recognition effect and efficiency are much improved compared with the traditional neural network method and conventional multiclass Support Vector Machine.


## 2. Support Vector Machine Based on Decision Tree

### 2.1. Basic Principle of Decision Tree

The decision tree is a forecast model which represents the mapping relationship between the attribute of the object and the value of the object [19]. As is shown in Figure 1, a decision tree is comprised of nodes and branches, and the nodes include both internal nodes and leaf nodes. Each internal node, such as R1, R21, R22, and R23 in the figure, represents one attribute. Each leaf node, such as L1, L2, and L3 in the figure, represents one category. Each leaf node, such as cl, c2, c3, c4, and c5 in the figure, represents one test value of the attribute. Two steps are included in the whole process of the classification of the decision tree. The first step is to establish and refine a decision tree based on the clusters of the training sample and to set up the model of the decision tree. As a matter of fact, it is a process to obtain knowledge from data and undertake machine learning as a whole which normally can be divided into 2 stages: establishing and pruning. The second step is to analyze the new data by using the decision tree established [20, 21].Figure 1
Structure of decision tree.One classification subtask will be performed for each node in the tree. In the classification stage, the bottom-up aggregation algorithm is used to generate the logical structure of the decision tree [21]. Because there is no need to traverse all classifiers, the operation time and classification accuracy are relatively high.


### 2.2. Basic Theory of Support Vector Machine

The support vector machine method is used to propose the optimal hyperplane in the linearly separable case. As is shown in Figure2, the star and the circle in the optimal hyperplane represent two types of samples separately, H represents the classification line, H1 and H2 represent the samples closet to and in parallel with the classification line in each category the distance between which is called classification margin [22].Figure 2
The diagram of optimal hyperplane.Expanded to the linear nonseparable case, considering that some of the samples can not be correctly classified, the constraint condition of hyperplane can be expressed as follows: yi(xiω+b)-1≥0, in which b is the threshold value and ω is the normal vector of the hyperplane. The Lagrange multiplier method should be adopted to achieve the solution of the nonlinear optimal hyperplane.(1)Lω,b,a=12ω−∑i=11aiyixiω+b−1,where ai≥0, i = 1, 2, …, 1;The extreme point ofL is the saddle point. The minimum value of L for ω and b is set as ω=ω∗, b=b∗, and the maximum value for a set as a=a∗.Therefore, the original problem under linear separable condition is converted into a dual problem. The maximum value of the following dual formula is to be solved:(2)maxa=∑i=1lai−12∑j=1l∑i=1laiajyiyjxixj,s.tai≥0,∑i=1laiyi=0.With regard to linear nonseparable problems, the samplex can be mapped to a high dimensional feature space H and the linear classifier is to be applied in H. Therefore, through adopting the appropriate inner product function K(xi,xj) in the optimal hyperplane, we can achieve a linear classification by nonlinear transforming without adding any computation complexity. So the objective function becomes as follows:(3)Wa=∑i=1lai−12∑j=1l∑i=1laiajyiyjkxixj,s.t0≤ai≤C,∑i=1laiyi=0,where constant C is the penalty coefficient for the samples over the boundary controlling the degree of punishment for misclassification samples.Ifai∗is the optimal solution, the decision function can be expressed as follows:(4)fx=∑i=1lyiai∗Kxi,xj+b∗,where b∗=1/2maxi/yi=−1∑j∈svlaiyikxi,xj+maxi/yi=+1∑j∈svlaiyikxi,xj.The detailed derivation process can be seen in reference [23].Different support vectors can be obtained by choosing different kinds of kernel functions. There are four kinds of frequently used kernel functions among which the radial basis kernel function is most commonly used [24].


### 2.3. Multivariate Classification Support Vector Machine

#### 2.3.1. One-to-Many Support Vector Machine

The one-to-many algorithm [25] is first used for multivalue classification of Support Vector Machine. This method uses a two class support vector machine classifier to distinguish each category from all other categories in sequence. For a problem of n categories, n support vector machines will be trained by the one-to-many method, namely, to adopt n separating hyperplanes to classify.However the disadvantages of this method are as follows: on one hand, there are requirements for the number of positive and negative samples which will greatly reduce the accuracy of classification by adopting the one-to-many method. On the other hand, because all the training samples shall be used in the training of each support vector machine, the computation efficiency is very low.


#### 2.3.2. One-to-One Support Vector Machine

For a problem ofn categories, one support vector machine is built for each of n categories of the samples by adopting a one-to-one method. So n(n-1)/2 support vector machines will be trained in total [26]. This method requires more samples, but the training speed is faster than that by using the one-to-many method. By comparison of above-mentioned classification methods of multivalue support vector machine with each other, the one-to-one method is believed to have the better classification effect with more expense. The one-to-many method has an ordinary classification effect with less expense.


#### 2.3.3. Support Vector Machine Based on Decision Tree

Support vector machine has excellent generalization performance in the case of small training samples. But for multiclassification problems, it is often necessary to build multiple classifiers and the diagnosis efficiency is low. In this paper, a multiclass fault identification model of a reciprocating compressor valve is established by combining the decision tree and support vector machine.Through this model, the multiclassification problem is decomposed into a series of two value classification problems, which are distributed in each node of the decision tree. In the classification, the decision tree root node and the branch node are divided into several subsets level by level according to the different attributes, until all the leaf nodes are obtained. One-to-many or one-to-one support vector machine model will be chosen according to the actual situation when dividing into subsets according to the attribute. As an example of dividing into 6 categories, Figure3 is one kind of decision tree classification diagram, which shows the process of dividing 6 types of input samples into corresponding categories level by level. As can be seen from Figure 3, the advantages of the small number of vector machines of the one-to-many classification model, high classification identification accuracy of the one-to-many classification model, and high classification efficiency for decision tree classification are considered comprehensively in the support vector machine based on the decision tree.Figure 3
A sketch diagram of decision tree structure for multiclassification SVM.The main failure parts of the valve include the valve seat, spring, and valve plate. The valve seat is the main part of the valve. The valve seat and lift limiter form the space of the valve set. The concentric convex surface of the valve seat and the valve plate form a sealing structure of the gas. The imperfect sealing of the valve sealing structure will result in the gas return, inefficiency of suction and exhaust, and abnormal thermal parameters such as gas temperature and pressure. It will also cause vibration signal and noise change. Therefore by adopting the vibration method, not only the air leakage of the valve can be monitored, but the size of the leakage gap can be determined. The main forms of the spring failure include broken and the elasticity change. If the elasticity becomes small, the closing of the valve plate will be delayed which will cause temperature and pressure changes of the circulating gas. The impact strength of the valve plate on the lift limiter will be increased which accordingly makes the impact vibration and noise increase. If the elasticity becomes large, air pressure can not make the valve plate stick to the lift limiter surface when opening the valve which will cause the vibration of the valve plate. A broken spring can cause complex vibration, blocked valve movement, nonuniform force on the valve plate, etc. Therefore, spring failure will be reflected in the thermodynamic and dynamic parameters. The vibration diagnosis method can diagnose the fault of spring break or elastic change. The valve plate is the key part of the valve the role of which is to close the air passage after the suctioning or exhausting. The main forms of valve plate include deformation and fracture. With the nonuniform force resulting from the valve plate deformation, the impact force is becoming stronger. However, complex vibration will be caused by fragmentation of the valve plate.In this paper, the experimental object is a reciprocating compressor valve fault. Based on the analysis of the fault of the valve of the reciprocating compressor, the fault diagnosis model of multiclassification support vector machine is built by applying the principle of the decision tree support vector machine. As an example to identify the four kinds of faults such as normal valve, valve plate fracture, valve plate wear, and spring failure of the valve plate, the classification model is shown in Figure4. As the device is in normal operation most of the time, it is quite easy to obtain the samples of the normal running status of the valve plate in the actual test. At the same time, distinguishing the normal operation from other faults of the compressor valve is relatively easy. Therefore, the main purpose of the decision for the first level is to exclude nonfault samples. Nonfault samples can be quickly identified by adopting a one-to-many classifier. At the second level, the three kinds of faults can be identified, respectively, by applying the one-to-one Algorithm. Three one-to-one classifiers will be required during this process. Only four support vector machines will be required in total for this model. Compared with 4∗4−1/2=6 required in 2.3.2, two support vector machines will be reduced. In theory, it will take less time to train and test and diagnosis efficiency will be improved.Figure 4
The classification diagram of DT-SVM.The location of the fault may be involved in the valve seat, spring, valve plate, and other key parts. Because each component has its own fault type, in order to improve the diagnostic efficiency, the fault component should be identified first and the specific type of failure of the component can be determined later. Therefore, in the case of an unknown valve fault of a reciprocating compressor, the first level of decision-making can be designed to identify the faulty components and the second level decision is to determine the fault type of the specific parts.


## 2.1. Basic Principle of Decision Tree

The decision tree is a forecast model which represents the mapping relationship between the attribute of the object and the value of the object [19]. As is shown in Figure 1, a decision tree is comprised of nodes and branches, and the nodes include both internal nodes and leaf nodes. Each internal node, such as R1, R21, R22, and R23 in the figure, represents one attribute. Each leaf node, such as L1, L2, and L3 in the figure, represents one category. Each leaf node, such as cl, c2, c3, c4, and c5 in the figure, represents one test value of the attribute. Two steps are included in the whole process of the classification of the decision tree. The first step is to establish and refine a decision tree based on the clusters of the training sample and to set up the model of the decision tree. As a matter of fact, it is a process to obtain knowledge from data and undertake machine learning as a whole which normally can be divided into 2 stages: establishing and pruning. The second step is to analyze the new data by using the decision tree established [20, 21].Figure 1
Structure of decision tree.One classification subtask will be performed for each node in the tree. In the classification stage, the bottom-up aggregation algorithm is used to generate the logical structure of the decision tree [21]. Because there is no need to traverse all classifiers, the operation time and classification accuracy are relatively high.


## 2.2. Basic Theory of Support Vector Machine

The support vector machine method is used to propose the optimal hyperplane in the linearly separable case. As is shown in Figure2, the star and the circle in the optimal hyperplane represent two types of samples separately, H represents the classification line, H1 and H2 represent the samples closet to and in parallel with the classification line in each category the distance between which is called classification margin [22].Figure 2
The diagram of optimal hyperplane.Expanded to the linear nonseparable case, considering that some of the samples can not be correctly classified, the constraint condition of hyperplane can be expressed as follows: yi(xiω+b)-1≥0, in which b is the threshold value and ω is the normal vector of the hyperplane. The Lagrange multiplier method should be adopted to achieve the solution of the nonlinear optimal hyperplane.(1)Lω,b,a=12ω−∑i=11aiyixiω+b−1,where ai≥0, i = 1, 2, …, 1;The extreme point ofL is the saddle point. The minimum value of L for ω and b is set as ω=ω∗, b=b∗, and the maximum value for a set as a=a∗.Therefore, the original problem under linear separable condition is converted into a dual problem. The maximum value of the following dual formula is to be solved:(2)maxa=∑i=1lai−12∑j=1l∑i=1laiajyiyjxixj,s.tai≥0,∑i=1laiyi=0.With regard to linear nonseparable problems, the samplex can be mapped to a high dimensional feature space H and the linear classifier is to be applied in H. Therefore, through adopting the appropriate inner product function K(xi,xj) in the optimal hyperplane, we can achieve a linear classification by nonlinear transforming without adding any computation complexity. So the objective function becomes as follows:(3)Wa=∑i=1lai−12∑j=1l∑i=1laiajyiyjkxixj,s.t0≤ai≤C,∑i=1laiyi=0,where constant C is the penalty coefficient for the samples over the boundary controlling the degree of punishment for misclassification samples.Ifai∗is the optimal solution, the decision function can be expressed as follows:(4)fx=∑i=1lyiai∗Kxi,xj+b∗,where b∗=1/2maxi/yi=−1∑j∈svlaiyikxi,xj+maxi/yi=+1∑j∈svlaiyikxi,xj.The detailed derivation process can be seen in reference [23].Different support vectors can be obtained by choosing different kinds of kernel functions. There are four kinds of frequently used kernel functions among which the radial basis kernel function is most commonly used [24].


## 2.3. Multivariate Classification Support Vector Machine

### 2.3.1. One-to-Many Support Vector Machine

The one-to-many algorithm [25] is first used for multivalue classification of Support Vector Machine. This method uses a two class support vector machine classifier to distinguish each category from all other categories in sequence. For a problem of n categories, n support vector machines will be trained by the one-to-many method, namely, to adopt n separating hyperplanes to classify.However the disadvantages of this method are as follows: on one hand, there are requirements for the number of positive and negative samples which will greatly reduce the accuracy of classification by adopting the one-to-many method. On the other hand, because all the training samples shall be used in the training of each support vector machine, the computation efficiency is very low.


### 2.3.2. One-to-One Support Vector Machine

For a problem ofn categories, one support vector machine is built for each of n categories of the samples by adopting a one-to-one method. So n(n-1)/2 support vector machines will be trained in total [26]. This method requires more samples, but the training speed is faster than that by using the one-to-many method. By comparison of above-mentioned classification methods of multivalue support vector machine with each other, the one-to-one method is believed to have the better classification effect with more expense. The one-to-many method has an ordinary classification effect with less expense.


### 2.3.3. Support Vector Machine Based on Decision Tree

Support vector machine has excellent generalization performance in the case of small training samples. But for multiclassification problems, it is often necessary to build multiple classifiers and the diagnosis efficiency is low. In this paper, a multiclass fault identification model of a reciprocating compressor valve is established by combining the decision tree and support vector machine.Through this model, the multiclassification problem is decomposed into a series of two value classification problems, which are distributed in each node of the decision tree. In the classification, the decision tree root node and the branch node are divided into several subsets level by level according to the different attributes, until all the leaf nodes are obtained. One-to-many or one-to-one support vector machine model will be chosen according to the actual situation when dividing into subsets according to the attribute. As an example of dividing into 6 categories, Figure3 is one kind of decision tree classification diagram, which shows the process of dividing 6 types of input samples into corresponding categories level by level. As can be seen from Figure 3, the advantages of the small number of vector machines of the one-to-many classification model, high classification identification accuracy of the one-to-many classification model, and high classification efficiency for decision tree classification are considered comprehensively in the support vector machine based on the decision tree.Figure 3
A sketch diagram of decision tree structure for multiclassification SVM.The main failure parts of the valve include the valve seat, spring, and valve plate. The valve seat is the main part of the valve. The valve seat and lift limiter form the space of the valve set. The concentric convex surface of the valve seat and the valve plate form a sealing structure of the gas. The imperfect sealing of the valve sealing structure will result in the gas return, inefficiency of suction and exhaust, and abnormal thermal parameters such as gas temperature and pressure. It will also cause vibration signal and noise change. Therefore by adopting the vibration method, not only the air leakage of the valve can be monitored, but the size of the leakage gap can be determined. The main forms of the spring failure include broken and the elasticity change. If the elasticity becomes small, the closing of the valve plate will be delayed which will cause temperature and pressure changes of the circulating gas. The impact strength of the valve plate on the lift limiter will be increased which accordingly makes the impact vibration and noise increase. If the elasticity becomes large, air pressure can not make the valve plate stick to the lift limiter surface when opening the valve which will cause the vibration of the valve plate. A broken spring can cause complex vibration, blocked valve movement, nonuniform force on the valve plate, etc. Therefore, spring failure will be reflected in the thermodynamic and dynamic parameters. The vibration diagnosis method can diagnose the fault of spring break or elastic change. The valve plate is the key part of the valve the role of which is to close the air passage after the suctioning or exhausting. The main forms of valve plate include deformation and fracture. With the nonuniform force resulting from the valve plate deformation, the impact force is becoming stronger. However, complex vibration will be caused by fragmentation of the valve plate.In this paper, the experimental object is a reciprocating compressor valve fault. Based on the analysis of the fault of the valve of the reciprocating compressor, the fault diagnosis model of multiclassification support vector machine is built by applying the principle of the decision tree support vector machine. As an example to identify the four kinds of faults such as normal valve, valve plate fracture, valve plate wear, and spring failure of the valve plate, the classification model is shown in Figure4. As the device is in normal operation most of the time, it is quite easy to obtain the samples of the normal running status of the valve plate in the actual test. At the same time, distinguishing the normal operation from other faults of the compressor valve is relatively easy. Therefore, the main purpose of the decision for the first level is to exclude nonfault samples. Nonfault samples can be quickly identified by adopting a one-to-many classifier. At the second level, the three kinds of faults can be identified, respectively, by applying the one-to-one Algorithm. Three one-to-one classifiers will be required during this process. Only four support vector machines will be required in total for this model. Compared with 4∗4−1/2=6 required in 2.3.2, two support vector machines will be reduced. In theory, it will take less time to train and test and diagnosis efficiency will be improved.Figure 4
The classification diagram of DT-SVM.The location of the fault may be involved in the valve seat, spring, valve plate, and other key parts. Because each component has its own fault type, in order to improve the diagnostic efficiency, the fault component should be identified first and the specific type of failure of the component can be determined later. Therefore, in the case of an unknown valve fault of a reciprocating compressor, the first level of decision-making can be designed to identify the faulty components and the second level decision is to determine the fault type of the specific parts.


## 2.3.1. One-to-Many Support Vector Machine

The one-to-many algorithm [25] is first used for multivalue classification of Support Vector Machine. This method uses a two class support vector machine classifier to distinguish each category from all other categories in sequence. For a problem of n categories, n support vector machines will be trained by the one-to-many method, namely, to adopt n separating hyperplanes to classify.However the disadvantages of this method are as follows: on one hand, there are requirements for the number of positive and negative samples which will greatly reduce the accuracy of classification by adopting the one-to-many method. On the other hand, because all the training samples shall be used in the training of each support vector machine, the computation efficiency is very low.


## 2.3.2. One-to-One Support Vector Machine

For a problem ofn categories, one support vector machine is built for each of n categories of the samples by adopting a one-to-one method. So n(n-1)/2 support vector machines will be trained in total [26]. This method requires more samples, but the training speed is faster than that by using the one-to-many method. By comparison of above-mentioned classification methods of multivalue support vector machine with each other, the one-to-one method is believed to have the better classification effect with more expense. The one-to-many method has an ordinary classification effect with less expense.


## 2.3.3. Support Vector Machine Based on Decision Tree

Support vector machine has excellent generalization performance in the case of small training samples. But for multiclassification problems, it is often necessary to build multiple classifiers and the diagnosis efficiency is low. In this paper, a multiclass fault identification model of a reciprocating compressor valve is established by combining the decision tree and support vector machine.Through this model, the multiclassification problem is decomposed into a series of two value classification problems, which are distributed in each node of the decision tree. In the classification, the decision tree root node and the branch node are divided into several subsets level by level according to the different attributes, until all the leaf nodes are obtained. One-to-many or one-to-one support vector machine model will be chosen according to the actual situation when dividing into subsets according to the attribute. As an example of dividing into 6 categories, Figure3 is one kind of decision tree classification diagram, which shows the process of dividing 6 types of input samples into corresponding categories level by level. As can be seen from Figure 3, the advantages of the small number of vector machines of the one-to-many classification model, high classification identification accuracy of the one-to-many classification model, and high classification efficiency for decision tree classification are considered comprehensively in the support vector machine based on the decision tree.Figure 3
A sketch diagram of decision tree structure for multiclassification SVM.The main failure parts of the valve include the valve seat, spring, and valve plate. The valve seat is the main part of the valve. The valve seat and lift limiter form the space of the valve set. The concentric convex surface of the valve seat and the valve plate form a sealing structure of the gas. The imperfect sealing of the valve sealing structure will result in the gas return, inefficiency of suction and exhaust, and abnormal thermal parameters such as gas temperature and pressure. It will also cause vibration signal and noise change. Therefore by adopting the vibration method, not only the air leakage of the valve can be monitored, but the size of the leakage gap can be determined. The main forms of the spring failure include broken and the elasticity change. If the elasticity becomes small, the closing of the valve plate will be delayed which will cause temperature and pressure changes of the circulating gas. The impact strength of the valve plate on the lift limiter will be increased which accordingly makes the impact vibration and noise increase. If the elasticity becomes large, air pressure can not make the valve plate stick to the lift limiter surface when opening the valve which will cause the vibration of the valve plate. A broken spring can cause complex vibration, blocked valve movement, nonuniform force on the valve plate, etc. Therefore, spring failure will be reflected in the thermodynamic and dynamic parameters. The vibration diagnosis method can diagnose the fault of spring break or elastic change. The valve plate is the key part of the valve the role of which is to close the air passage after the suctioning or exhausting. The main forms of valve plate include deformation and fracture. With the nonuniform force resulting from the valve plate deformation, the impact force is becoming stronger. However, complex vibration will be caused by fragmentation of the valve plate.In this paper, the experimental object is a reciprocating compressor valve fault. Based on the analysis of the fault of the valve of the reciprocating compressor, the fault diagnosis model of multiclassification support vector machine is built by applying the principle of the decision tree support vector machine. As an example to identify the four kinds of faults such as normal valve, valve plate fracture, valve plate wear, and spring failure of the valve plate, the classification model is shown in Figure4. As the device is in normal operation most of the time, it is quite easy to obtain the samples of the normal running status of the valve plate in the actual test. At the same time, distinguishing the normal operation from other faults of the compressor valve is relatively easy. Therefore, the main purpose of the decision for the first level is to exclude nonfault samples. Nonfault samples can be quickly identified by adopting a one-to-many classifier. At the second level, the three kinds of faults can be identified, respectively, by applying the one-to-one Algorithm. Three one-to-one classifiers will be required during this process. Only four support vector machines will be required in total for this model. Compared with 4∗4−1/2=6 required in 2.3.2, two support vector machines will be reduced. In theory, it will take less time to train and test and diagnosis efficiency will be improved.Figure 4
The classification diagram of DT-SVM.The location of the fault may be involved in the valve seat, spring, valve plate, and other key parts. Because each component has its own fault type, in order to improve the diagnostic efficiency, the fault component should be identified first and the specific type of failure of the component can be determined later. Therefore, in the case of an unknown valve fault of a reciprocating compressor, the first level of decision-making can be designed to identify the faulty components and the second level decision is to determine the fault type of the specific parts.


## 3. Experimental Investigations

### 3.1. Experiment Platform

The equipment used in the experiment is a reciprocating compressor of the double cylinder and double acting which is very close to the compressor used in the actual production of refining and petrochemical companies. A series of related destructive tests are designed for the suction valve and exhaust valve on the experimental platform of the real reciprocating compressor. Using the sensor to collect the vibration signal of the compressor set and temperature signal of the valve, the signal most similar to fault data of the real situation can be collected to the maximum extent. The specific operating parameters of the compressor are shown in Table1.Table 1
Operating parameters of reciprocating compressor.
Rated operating pressure (Mpa)Rated exhaust (m3/min)Rated speed (r/min)Cooling mode0.212500Water coolingThe actual situation is shown in Figure5, where 1 and 2 are cylinder head impact point and acceleration sensor; 3 and 4 are temperature measuring point and install platinum thermal resistance sensor; 5 and 6 are cross head impact point and acceleration sensor; 7 and 9 are crankcase outer surface, internal vibration measuring point, and acceleration sensor, respectively; and 8 is the key phase measuring point and eddy current sensor.Figure 5
System of Valve of reciprocating compressor fault signal acquisition.Four types of operating conditions such as normal valve, valve fracture, valve plate wear, and valve spring failure are simulated under the exhaust pressure (gauge) of 0 Mpa, 0.1 Mpa, and 0.2 Mpa, respectively. In this experimental platform, the valve is simulated with 4 scenarios, respectively: 1 as normal valve, 2 as valve fracture, 3 as valve plate wear, and 4 as valve spring failure. With experiments performed many times for each typical fault, multiple sets of feature vectors can be obtained and used as the sample of this kind of fault training which can reflect the fault rule. The vibration signal is measured in normal mode, and then the fault valve is tested. In the experiment, the piezoelectric IEPE acceleration sensor is used to collect the vibration data, and the sampling frequency is set at 10 KHz. 20 groups of original samples are extracted for each status with continuous sampling.


### 3.2. Feature Extraction of Reciprocating Compressor Valve

Different kinds of characteristic parameters of vibration signal will show different aspects of fault information. Sensitive parameters to the fault are chosen from the time and frequency domain such as amplitude maximum in the frequency domain, frequency domain mean, and dynamical indicators in the time domain (peak value, absolute value, effective value, and variance value). In reference [27], the following characteristic quantities are selected to describe the characteristic of the wave of the signal. Normalized treatment has to be done to make them into [0,1] data before building the model because of the different dimension between the parameters in the time and frequency domain. Feature vectors of the fault are shown in Table 2.Table 2
Feature vector of signal sample.
Fault typeSample numberCrest coefficientKurtosis indexSkewness indexEffective valueStandard deviationFault numberNormal valve10.03030.00290.04580.76090.79257①20.10230.21640.32790.56650.9026①30.04020.03670.14690.63670.9881①40.61290.02940.32050.61370.8351①50.14250.05610.33610.48210.7093①Valve fracture10.04780.04630.09170.842210.00135②20.61900.06370.32750.63470.9027②30.45430.32190.35750.53420.9434②40.20110.06760.38210.50380.9221②50.35790.10410.35280.56740.8657②Valve plate wear10.95810.62870.42920.58210.5238③20.98930.79530.34530.62810.8671③30.78590.65130.42170.69150.9877③40.91390.73850.54460.66090.8592③50.87680.60540.45730.65810.9107③Valve spring failure10.30820.27870.21680.76350.4891④20.10270.16690.24610.76230.9135④30.41030.33730.19310.89380.9437④40.38410.26730.20370.75890.9276④50.37240.19760.25240.70950.9471④


### 3.3. Learning and Training

Select 5 sets of samples of reciprocating compressors from each type of all the four types. A total of 20 sets of signal samples are used to learn and train according to the model in Figure4 and the decision function of the corresponding support vector machine is built. Based on the fault diagnosis model of the reciprocating compressor valve established by using the multiclassification support vector machine, the radial basis kernel is chosen after the analysis. The training steps are as follows:(1)
Data format conversion to the recognizable format required by the libsvm software package(2)
Transform the scale of the training sample and map the sample set to [-1,1](3)
Train model parameters (Penalty factor C and kernel function parameterσ)(4)
With parameters C andσ obtained in step 3, the training samples after scaling in step 2 can be used for training by using this model(5)
Input test samples into the trained model and check the classification resultUsing the above-mentioned sample data to train the support vector machine classifier in sequence and obtaining the optimal classification function. Finally, the optimization of the parameters of the classifier is obtained with the penalty factor C equal to 2 and radial basis parameterσ of the kernel function equal to 2.


### 3.4. Test

In order to test the effect of the classifier, 8 groups of samples which are known to be tested are used to verify the classifier. The generalization ability and accuracy of the classifier are to be tested. Table3 gives the output of different decision functions of the support vector machine for samples to be diagnosed. As is shown in the first column, normal valve ① is distinguished from fault valves ②, ③, and ④ quickly. If the result is positive, it will be a positive sample which means a normal valve. The identification ends; If the result is negative, it will be classified into the other three types which mean fault valve. As is shown in columns 2, 3, and 4, a further one-to-one classification and identification will be needed.Table 3
Result of test samples.
No.1 V 2342 V 32 V 43 V 410.8609———20.9012———3−1.00001.00001.00001.00004−1.0000−0.98430.07281.00005−1.00000.2074−0.5027−1.00006−0.12090.53521.00000.20517−1.0000-0.34921.00001.00008−1.00001.0000−0.3105−1.0000According to the membership of the output of the independent support vector machine in the decision structure, the classification of the test sample is diagnosed. When one of the SVMi,j is determined to be classified as faulti for fault sample x, class i gets one vote. Vice versa, class j will get one vote. The fault type of each sample will be determined according to the respective score in each fault type of such sample. The final vote of each test sample is shown in Table 4.Table 4
Classification results based on the DT-SVM.
No.Fault 1Fault 2Fault 3Fault 4Diagnosis result11000Normal21000Normal30210Valve plate wear40120Valve spring failure50102Valve fracture60210Valve plate wear70120Valve spring failure80102Valve fractureAs can be seen in Table4, the diagnosis results are in complete agreement with the fault types preset for the samples, which are based on the decision rules for diagnosis set up in this paper.


### 3.5. Comparison with Conventional Methods

To further compare the classification results, 20 groups of samples are used to test different models. The classification effect is shown in Table5.Table 5
Comparison of identification result.
ModelSample numberCorrect diagnosisIdentification time (s)Accuracy rate (%)DT--SVM30281.6993.3SVM30282.5593.3BP(δ = 0.01)30251183.3BP(δ = 0.05)30231576.7As can be seen from Table5, the recognition effect of the decision tree support vector machine established based on the actual fault is the same as that of the conventional multiple support vector machine. But it is obviously better than the recognition effect of the traditional neural network method. However, the classification and recognition time of the decision tree support vector machine is saved by about 35% compared with that of a conventional multiple support vector machine.


## 3.1. Experiment Platform

The equipment used in the experiment is a reciprocating compressor of the double cylinder and double acting which is very close to the compressor used in the actual production of refining and petrochemical companies. A series of related destructive tests are designed for the suction valve and exhaust valve on the experimental platform of the real reciprocating compressor. Using the sensor to collect the vibration signal of the compressor set and temperature signal of the valve, the signal most similar to fault data of the real situation can be collected to the maximum extent. The specific operating parameters of the compressor are shown in Table1.Table 1
Operating parameters of reciprocating compressor.
Rated operating pressure (Mpa)Rated exhaust (m3/min)Rated speed (r/min)Cooling mode0.212500Water coolingThe actual situation is shown in Figure5, where 1 and 2 are cylinder head impact point and acceleration sensor; 3 and 4 are temperature measuring point and install platinum thermal resistance sensor; 5 and 6 are cross head impact point and acceleration sensor; 7 and 9 are crankcase outer surface, internal vibration measuring point, and acceleration sensor, respectively; and 8 is the key phase measuring point and eddy current sensor.Figure 5
System of Valve of reciprocating compressor fault signal acquisition.Four types of operating conditions such as normal valve, valve fracture, valve plate wear, and valve spring failure are simulated under the exhaust pressure (gauge) of 0 Mpa, 0.1 Mpa, and 0.2 Mpa, respectively. In this experimental platform, the valve is simulated with 4 scenarios, respectively: 1 as normal valve, 2 as valve fracture, 3 as valve plate wear, and 4 as valve spring failure. With experiments performed many times for each typical fault, multiple sets of feature vectors can be obtained and used as the sample of this kind of fault training which can reflect the fault rule. The vibration signal is measured in normal mode, and then the fault valve is tested. In the experiment, the piezoelectric IEPE acceleration sensor is used to collect the vibration data, and the sampling frequency is set at 10 KHz. 20 groups of original samples are extracted for each status with continuous sampling.


## 3.2. Feature Extraction of Reciprocating Compressor Valve

Different kinds of characteristic parameters of vibration signal will show different aspects of fault information. Sensitive parameters to the fault are chosen from the time and frequency domain such as amplitude maximum in the frequency domain, frequency domain mean, and dynamical indicators in the time domain (peak value, absolute value, effective value, and variance value). In reference [27], the following characteristic quantities are selected to describe the characteristic of the wave of the signal. Normalized treatment has to be done to make them into [0,1] data before building the model because of the different dimension between the parameters in the time and frequency domain. Feature vectors of the fault are shown in Table 2.Table 2
Feature vector of signal sample.
Fault typeSample numberCrest coefficientKurtosis indexSkewness indexEffective valueStandard deviationFault numberNormal valve10.03030.00290.04580.76090.79257①20.10230.21640.32790.56650.9026①30.04020.03670.14690.63670.9881①40.61290.02940.32050.61370.8351①50.14250.05610.33610.48210.7093①Valve fracture10.04780.04630.09170.842210.00135②20.61900.06370.32750.63470.9027②30.45430.32190.35750.53420.9434②40.20110.06760.38210.50380.9221②50.35790.10410.35280.56740.8657②Valve plate wear10.95810.62870.42920.58210.5238③20.98930.79530.34530.62810.8671③30.78590.65130.42170.69150.9877③40.91390.73850.54460.66090.8592③50.87680.60540.45730.65810.9107③Valve spring failure10.30820.27870.21680.76350.4891④20.10270.16690.24610.76230.9135④30.41030.33730.19310.89380.9437④40.38410.26730.20370.75890.9276④50.37240.19760.25240.70950.9471④


## 3.3. Learning and Training

Select 5 sets of samples of reciprocating compressors from each type of all the four types. A total of 20 sets of signal samples are used to learn and train according to the model in Figure4 and the decision function of the corresponding support vector machine is built. Based on the fault diagnosis model of the reciprocating compressor valve established by using the multiclassification support vector machine, the radial basis kernel is chosen after the analysis. The training steps are as follows:(1)
Data format conversion to the recognizable format required by the libsvm software package(2)
Transform the scale of the training sample and map the sample set to [-1,1](3)
Train model parameters (Penalty factor C and kernel function parameterσ)(4)
With parameters C andσ obtained in step 3, the training samples after scaling in step 2 can be used for training by using this model(5)
Input test samples into the trained model and check the classification resultUsing the above-mentioned sample data to train the support vector machine classifier in sequence and obtaining the optimal classification function. Finally, the optimization of the parameters of the classifier is obtained with the penalty factor C equal to 2 and radial basis parameterσ of the kernel function equal to 2.


## 3.4. Test

In order to test the effect of the classifier, 8 groups of samples which are known to be tested are used to verify the classifier. The generalization ability and accuracy of the classifier are to be tested. Table3 gives the output of different decision functions of the support vector machine for samples to be diagnosed. As is shown in the first column, normal valve ① is distinguished from fault valves ②, ③, and ④ quickly. If the result is positive, it will be a positive sample which means a normal valve. The identification ends; If the result is negative, it will be classified into the other three types which mean fault valve. As is shown in columns 2, 3, and 4, a further one-to-one classification and identification will be needed.Table 3
Result of test samples.
No.1 V 2342 V 32 V 43 V 410.8609———20.9012———3−1.00001.00001.00001.00004−1.0000−0.98430.07281.00005−1.00000.2074−0.5027−1.00006−0.12090.53521.00000.20517−1.0000-0.34921.00001.00008−1.00001.0000−0.3105−1.0000According to the membership of the output of the independent support vector machine in the decision structure, the classification of the test sample is diagnosed. When one of the SVMi,j is determined to be classified as faulti for fault sample x, class i gets one vote. Vice versa, class j will get one vote. The fault type of each sample will be determined according to the respective score in each fault type of such sample. The final vote of each test sample is shown in Table 4.Table 4
Classification results based on the DT-SVM.
No.Fault 1Fault 2Fault 3Fault 4Diagnosis result11000Normal21000Normal30210Valve plate wear40120Valve spring failure50102Valve fracture60210Valve plate wear70120Valve spring failure80102Valve fractureAs can be seen in Table4, the diagnosis results are in complete agreement with the fault types preset for the samples, which are based on the decision rules for diagnosis set up in this paper.


## 3.5. Comparison with Conventional Methods

To further compare the classification results, 20 groups of samples are used to test different models. The classification effect is shown in Table5.Table 5
Comparison of identification result.
ModelSample numberCorrect diagnosisIdentification time (s)Accuracy rate (%)DT--SVM30281.6993.3SVM30282.5593.3BP(δ = 0.01)30251183.3BP(δ = 0.05)30231576.7As can be seen from Table5, the recognition effect of the decision tree support vector machine established based on the actual fault is the same as that of the conventional multiple support vector machine. But it is obviously better than the recognition effect of the traditional neural network method. However, the classification and recognition time of the decision tree support vector machine is saved by about 35% compared with that of a conventional multiple support vector machine.


## 4. Conclusion

In this paper, with the advantages of the high efficiency of the decision tree combined with the advantages of the “one-to-one” and “one-to-many” multivalue classification method of SVM, the fault identification model of a reciprocating compressor valve based on decision tree and support vector machine is designed. Applying the model to the fault identification of a small sample number of reciprocating compressor valves, it can be seen from the test results and training classification results that the decision tree support vector machine diagnostic method has strong recognition ability and good classification result which is obviously better than the traditional neural network method when used in small sample cases and early fault diagnosis of the air valve.Decision tree and support vector machine are used to construct a support vector machine model in the form of a decision tree the recognition effect of which is equivalent to a one-to-one multisupport vector machine, and the time for learning training and testing of which is much shorter than the conventional support vector machine. The effect is more obvious with the increase of the number of classification. Therefore, the DT-SVM is more efficient than the conventional support vector machine.



---

*Source: 7486271-2022-06-08.xml*