Abstract

This paper presents a new method to diagnose oil well pump faults using a modified radial basis function neural network. With the development of submersible linear motor technology, rodless pumping units have been widely used in oil exploration. However, the ground indicator diagram method cannot be used to diagnose the working conditions of rodless pumping units because it is based on the load change of the polished rod suspension point and its displacement. To solve this problem, this paper presents a new method that is applicable to rodless oil pumps. The advantage of this new method is its use of a simple feature extraction method and advanced genetic algorithm to optimize the threshold and weight of the RBF neural network. In this paper, we extract the characteristic value from the operation parameters of the submersible linear motor and oil wellhead as the input vector of the fault diagnosis model. Through experimental analysis, the proposed method is proven to have good convergence performance, high accuracy, and high reliability.

1. Introduction

The special structure of the beam pumping units has many disadvantages, such as huge form, high cost, high energy consumption, and low efficiency. A new rodless oil well pump has been proposed with the development of the submersible linear motor [1]. The submersible linear motor drives the pump plunger directly to move linearly [2]. The new oil well pump has a good application potential because it addresses the disadvantages of the beam pumping units [3].

The structure of the new oil well pump is inverted; that is, the plunger pump is placed on the submersible linear motor [4]. The motor stator is connected to the oil tube and its mover is connected to the travelling valve using the pump plunger. When the mover of linear motor performs a reciprocating motion, the travelling valve is driven to move and transfer liquid of the casing into the pump chamber. Oil is then lifted to the ground wellhead using the tube. Oil extraction efficiency improved greatly when the new oil well pump was used.

Wax deposition, sand sticking, valve leakage, and liquid filling dissatisfaction problems easily occur in oil well pumps because the working conditions of oil wells are abominable. If these problems are not resolved immediately, the reliability and life expectancy of oil well pumps and oil production will decrease.

The ground indicator diagram method is based on the load change of the polished rod suspension point and its displacement. Thus, this paper presents a new method that is applicable to rodless oil well pumps. Genetic algorithm (GA) or the particle swarm optimization (PSO) algorithm is usually combined with neural network and applied in fault diagnosis [57]. Intelligent algorithm can help the model find an optimal solution [8, 9]. However, this method easily encounters problems, such as premature convergence and local optimum [1012]. To overcome these problems, this paper proposes a fault diagnosis method based on the multiple mutation adaptive genetic algorithm-radial basis function neural network (MMAGA-RBFNN), which is suitable for oil well pumps. The characteristic value from the oil production system should be extracted as the input of the model and the weight and threshold value of RBFNN should be optimized using the MMAGA method according to the structure characteristics of oil production systems and oil well pumps. This model has unique advantages, such as fast convergence rate, high accuracy, and global search ability, and can be used in diagnosing numerous working states.

2. Feature Extraction

The working conditions of the motor could be reflected by the operation parameters of the linear motor because the oil well pump is connected directly to the mover of the linear motor. The principle diagram of the oil well pump is shown in Figure 1.

The currents of the linear motor and the loads of the pump differ according to the working conditions of the oil well [13, 14]. The operating current curves of the linear motor in different working conditions are shown in Figure 2.

Several faults, such as the effect of gases, sand sticking, and wax deposition, can be diagnosed using the current, electric power, and load parameters. Tubing leakage, pump opening, strong mechanical vibration, and motor shock sometimes appear, and faults could not be diagnosed accurately according to these parameters. Therefore, other parameters that reflect the working state of the pump should be considered to increase the diagnostic accuracy rate. In the normal well operating process, the oil and casing pressures of the wellhead are stable. When tubing or pump leakage occurs, the pressure of the wellhead will change accordingly. Therefore, the change in value of oil pressure gauge contributes to further determining the working condition of the well. The temperature of wellhead is also an important parameter for diagnosing the working condition of the oil well because the temperature of wellhead changes with the oil quantity. This paper extracted the characteristic parameters using the multivariate data method, which could reflect the real working condition of the pump and enhance the accuracy rate of the fault diagnosis.

Through measuring equipment, such as current and pressure sensors, the linear motor can be monitored in real time and the current and load of the motor pump in each cycle can be obtained. At the same time, the oil and casing pressures and temperature of the wellhead can be recorded.

The well data collected are processed as follows:where is the number of sampling points in a cycle, is the real-time temperature of the wellhead, and is the mean temperature of the wellhead in a cycle.where is the real-time oil pressure of the wellhead and is the mean oil pressure of the wellhead in a cycle.where is the real-time casing pressure of the wellhead and is the mean casing pressure of the wellhead in a cycle.where is the mean current on the motor upstroke, is the real-time current on the motor upstroke, and is the number of sampling points on the motor upstroke.where is the mean current on the motor downstroke, is the real-time current on the motor downstroke, and is the number of sampling points on the motor downstroke.where is the current variance on the motor upstroke.where is the current variance on the motor downstroke.where is the mean load on the motor upstroke and is the real-time load on the motor upstroke.where is the mean load on the motor downstroke and is the real-time load on the motor downstroke.where is the load variance on the motor upstroke.where is the load variance on the motor downstroke.

The data above are normalized using formula (12) to obtain the input vector of the fault diagnosis model :where is the normalized characteristic value, is the raw data, is the maximum value of each data sequence, and is the minimum value of each data sequence.

After the normalization process, the input intervals for the network are 0-1. The input intervals help the weight and threshold value of the network enter the flat region of error curved surface.

3. Summary of Multiple Mutation Adaptive Genetic Algorithm

GA is an optimization algorithm with global optimization ability and includes three main processes: selection, recombination, and mutation [15, 16]. Recombination probability () and mutation probability () have critical influences on the optimization ability of GA. determines the speed of new individuals as well as the speed of the search process. determines whether a new model is formed. In the optimization process, if the value of or is too large or too small, the optimization ability of GA will decrease. Thus, the appropriate values of and should be selected to ensure that optimal solutions are obtained. However, MMAGA adopts the multiple genetic alterations approach [17]. The number of multiple genes mutated depends on the quality of individuals. Low fitness individuals mutate more genes, while high fitness individuals mutate less or none. MMAGA can enhance the population diversity and expand the searching space further. Its algorithm flow chart is shown in Figure 3. and are calculated using the following formulas: where is the maximum fitness value of the population, is the mean fitness value of the population, and is the larger value in the restructured sides. and are hybridization constants, is the value of the individual that will mutate, and and are the mutation constants.

4. Selection of Kernel Function of the Neural Network

BP and RBF are the most frequently used neural networks [18, 19]. The slow convergence speed and poor fault tolerance of the BP algorithm make it easily fall into the local optimal solution [20]. RBF algorithm has a stronger mapping ability between input and output than the BP neural network [21, 22]. In addition, the convergence speed of the RBF algorithm is faster and the classification ability is stronger than those of the BP algorithm. However, the traditional Gaussian kernel function has some defects. This paper adopts a modified Gaussian kernel function as the kernel function of the network to improve the convergence, classification ability, diagnosis ability, and accuracy of the model further.

The form of the modified Gaussian kernel function is as follows:where is the output of node in the hidden layer, is the center of the Gaussian kernel function, is the kernel broadband variable, and is the displacement parameter.

The attenuation performance of the modified Gaussian kernel function is better than that of the traditional Gaussian kernel function in the data center (see Figure 4). The attenuation speed is also relatively slow when the modified Gaussian kernel function is far from the data center and tends to be a nonzero constant. Therefore, the modified Gaussian kernel function can avoid the defects of the traditional Gaussian kernel function effectively.

5. Fault Diagnosis Model Based on the MMAGA-RBFNN for Oil Well Pump

Oil well pumps easily present wax deposition, sand sticking, valve leakage, liquid filling dissatisfaction, pump wear, empty pumping, strong mechanical vibration, and motor shock problems. First, data from the preceding fault conditions should be collected and preprocessed to obtain the input vectors. Then, the input vectors of the fault conditions are used to train the RBF neural network and obtain its optimal weight and threshold. Finally, the fault diagnosis model is used with the optimal weight and threshold to predict new data of certain fault conditions and output the fault diagnosis results. The structure of the fault diagnosis model based on MMAGA-RBFNN is shown in Figure 5.

Although RBF neural network easily falls into local optimum and its convergence speed is slow, the MMAGA has a strong global optimization ability [23, 24]. Therefore, this paper uses MMAGA to optimize the weight and threshold value of the RBF neural network to obtain the optimal value and increase the accuracy of the diagnosis model.

The experiment includes the following steps: 300 groups of data from wax deposition, sand sticking, effect of gases, liquid filling dissatisfaction, valve leakage, and empty pumping are collected as training samples; corresponding input vectors of fault conditions after preprocessing are then obtained using the training samples to train the neural network with initialized parameters; selection, recombination, and mutation operations are repeated until the fault credibility satisfies the termination states; that is, it should achieve the accuracy requirement of the fault diagnosis; gradient descent method is used to update the weight and threshold further until fault credibility satisfies the termination states; and the optimal weight and threshold of the fault diagnosis model are obtained. The optimization flow chart of the weight and threshold value of the RBF neural network using MMAGA is shown in Figure 6.

6. Experimental Analysis

In the experiment, we use the oil well mock circulatory system to simulate each fault of oil well pump. This experiment platform is mainly composed of an oil well mock circulatory system, the flow control device, the oil well pump, and its control device. The experimental platform is shown in Figure 7.

On the experimental platform, six kinds of typical fault conditions (wax deposition, sand sticking, effect of gases, liquid filling dissatisfaction, valve leakage, and empty pumping) are simulated and their working condition data are recorded. Pressure and current sensors are used to collect data of the oil well pump in each fault condition. The downhole equipment is shown in Figure 8. Through the use of the oil pressure gauge, casing pressure gauge, and thermometer of the oil wellhead, the corresponding data in each fault state are also obtained.

In the experiment, 300 groups of data from the wax deposition, sand sticking, effects of gases, liquid filling dissatisfaction, valve leakage, and empty pumping are collected as training samples. Under the same conditions, 100 groups of data are selected randomly from the faults above as test samples. The fault diagnosis model in this paper is analyzed using the training samples.

Through experimental verification, the diagnostic accuracy of the MMAGA-RBFNN fault diagnosis model is determined not only by the parameters but also by the training samples of the fault diagnosis model. The specific experimental analysis process is as follows.

First, the general performance of the model was analyzed using few training samples to train the network. After 360 groups of data (60 groups of data from wax deposition, sand sticking, effect of gases, liquid filling dissatisfaction, valve leakage, and empty pumping) were selected to train the network, the accuracy of the fault diagnosis was then analyzed. The accuracy of the fault diagnosis of this model can be improved only by increasing the training times because the number of training samples is small. The results of judgment rates at different number of iterations are shown in Figure 9.

When the number of iterations is low, the judgment rate is relatively low (Figure 9). In the initial period, the judgment rate increased with the number of iterations. However, when the number of iterations reaches a certain value, the growth trend of the judgment rate becomes slower or even stops. In this case, the model remains stable and overfit phenomenon occurs. In this period, although a slight rise in the judgment rate occurred, the study process is meaningless because the diagnosis model could not be extended to the testing data accurately.

Increasing the number of training samples can prevent the occurrence of overfit phenomenon and increase the judgment rate of the model effectively. Therefore, 200–1200 groups of training data were selected to test the misjudgment rates at different numbers of iterations. The results are shown in Figure 10.

The comprehensive misjudgment rates decreased when the number of training samples increased (Figure 10). The comprehensive misjudgment rate can be controlled at less than 4% when the number of training samples is over 1000. Therefore, the diagnostic ability of the developed model is high. Among above 6 fault conditions, though the sand sticking and the wax deposition are easily misjudged, other types of faults can be accurately diagnosed.

The judgment rates at different training samples are shown in Figure 11 by comparing the MMAGA-RBFNN diagnosis model with the GA-RBFNN model. When the number of training samples is small, the judgment rates of the two models are relatively low (Figure 11). However, the judgment rate of MMAGA-RBFNN model is significantly 5% higher on average than that of the GA-RBFNN model when the number of training samples increases. Obtaining many training samples is costly. Therefore, increasing the training samples is not a feasible solution to improve the judgment ability of the diagnosis model.

7. Conclusion

The advantages of the fault diagnosis model proposed in this paper based on the MMAGA-RBFNN for oil well pump are as follows.

The judgment rate of the developed model increases with the number of training samples increase. The judgment rate can reach over 96% when the number of training samples is over 1000. This shows that this model has a very high judgment rate when the training samples are relatively fewer. Compared to other models, the model proposed in this paper uses fewer training samples and higher accuracy and reduces the cost and workload.

The developed model effectively avoids the defects of traditional Gaussian kernel function, improves convergence and classification ability, and enhances the diagnosis ability and accuracy. In addition, the developed model’s fault diagnosis rate increased by 5% on average compared to the previous model.

The generalization ability of the developed model is strong and can meet the working condition characteristics of oil well pump. The developed model can satisfy the diagnostic accuracy of faults for the oil well pump. We can deal with the oil well pump faults in a timely manner because it can forecast the occurrence of faults accurately. Thus, the work reliability of oil well pump can be improved.

In general, the MMAGA-RBFNN model satisfies the requirements of generalization and accuracy for the fault diagnosis of the oil well pump. This model can predict the fault conditions of oil well pumps accurately and improve the reliability and economic benefits.

Conflicts of Interest

The authors declare that they have no conflicts of interest.