Next Article in Journal
A Comparison Study of the Classical and Modern Results of Semi-Local Convergence of Newton-Kantorovich Iterations
Next Article in Special Issue
The Due Window Assignment Problems with Deteriorating Job and Delivery Time
Previous Article in Journal
Inverse Analysis for the Convergence-Confinement Method in Tunneling
Previous Article in Special Issue
An Adaptive Neuro-Fuzzy Model for Attitude Estimation and Control of a 3 DOF System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Unsupervised Fault Diagnosis of Sucker Rod Pump Using Domain Adaptation with Generated Motor Power Curves

College of Information Science and Engineering, Northeastern University, Shenyang 110819, China
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(8), 1224; https://doi.org/10.3390/math10081224
Submission received: 15 March 2022 / Revised: 2 April 2022 / Accepted: 3 April 2022 / Published: 8 April 2022
(This article belongs to the Special Issue Applied Computing and Artificial Intelligence)

Abstract

:
The poor real-time performance and high maintenance costs of the dynamometer card (DC) sensors have been significant obstacles to the timely fault diagnosis in the sucker rod pumping system (SRPS). In contrast to the DCs, the motor power curves (MPCs), which are accessible easily and highly associated with the entire system, have been attempted to predict the working conditions of the SRPS in recent years. However, the lack of labeled MPCs limits the successful applications in the industrial scenario. Thereby, this paper presents an unsupervised fault diagnosis methodology to leverage the generated MPCs of different working conditions to diagnose the actual unlabeled MPCs. Firstly, the MPCs of six working conditions are generated with an integrated dynamics mathematical model. Secondly, a framework named mechanism-assisted domain adaptation network (MADAN) is proposed to minimize the distribution discrepancy between the generated and actual MPCs. Specifically, benefiting from introducing the mechanism analysis to label the collected MPCs preliminarily, a conditional distribution discrepancy metric is defined to guarantee a more accurate distribution matching with respect to different working conditions. Eventually, validation experiments are performed to evaluate the mathematical model and the diagnosis method with a set of actual MPCs collected by a self-developed device. The experimental result demonstrates that the proposed method offers a promising approach for the unsupervised diagnosis of the SRPS.

1. Introduction

The sucker rod pump system (SRPS) plays an indispensable role in the field of oil exploitation [1]. Due to the long-time operations and harsh working environment, some faults will inevitably occur, resulting in economic loss and energy consumption [2]. With the rapid development of machine learning, many data-driven fault diagnosis methods have been utilized to guarantee manufacturing security and improve production efficiency in the SRPS [3,4]. However, the most traditional and commonly used diagnostic methods universally depend on the dynamometer card (DC), which is measured by the load sensor installed on the “horse head”. These DC-based methods inevitably suffer from the high maintenance cost and low detection frequency, resulting in poor ability in the real-time diagnosis of the SRPS.
Owing to power’s advantages of accessibility and high correlation with the SRPS, the motor power-based diagnosis methods have received ever-increasing attention [5]. Ref. [6] distilled seven features from the motor power curves (MPCs) and utilized improved hidden conditional random fields to diagnose different working conditions. An MPC-based broad learning method was proposed in [7].
Even though conspicuous achievements have been achieved, these methodologies lack applicability due to their reliance on the massive labeled data, which is invalid in the real industrial scenarios [8]. Some researchers tried to tackle this problem by implementing a transformation between the MPC and the DC to facilitate the diagnosis based on the MPCs. In [9], the MPCs were labeled by transforming into DCs with a mechanism model considering many crucial factors. However, the inversed DCs were not closed because the torque factor was zero at the dead points, resulting in huge discrepancies between the actual and inversed DCs. Nowadays, new research transformed the DC to MPC to alleviate the discrepancies at the dead points in [10]. However, the complete DC dataset is still a problematic prerequisite for some wells with incomplete data.
In order to reduce the dependence on the labeled dataset, this paper tries to propose a model-based method to generate the MPCs. Although many scholars have been committed to the process modeling of the SRPS, their purpose is to obtain the polished load without correlating the uphole portion to simulate the MPC [11,12,13]. In this respect, this paper is dedicated to establishing an integrated dynamics mathematical model involving the motor, the four-bar linkage, the sucker rod, and the pump to generate the MPCs at normal and five kinds of faulty scenarios.
Even though the labeled MPCs can be obtained from the model-based method, the traditional intelligent diagnosis strategies trained with such samples possibly fail in classifying actual MPCs. The distribution discrepancy that arises from unavoidable assumptions and simplifications in the model limits the successful applications of these strategies. Domain adaptation (DA), which is a popular branch of transfer learning, has advantages in solving the problem of inconsistent feature distribution [14,15,16,17]. Traditional DA employs the Maximum Mean Discrepancy (MMD) term as the discrepancy penalty to extract the domain-invariant features [18,19,20]. Inspired by the idea of the generative adversarial network, the domain discriminator was explored to align the distributions in an adversarial manner [21]. Ref. [22] leveraged a one-dimensional convolutional neural network (1-D CNN) to bridge the distribution discrepancy by maximizing the discriminator loss and minimizing the classifier loss. In [23], Wasserstein distance replaced the traditional discriminator to minimize the distribution discrepancy. A strong–weak learning framework was proposed to solve the imbalanced data and mismatched domain simultaneously based on the domain adversarial training in [24]. In [25], discriminator and MMD were exploited together to enhance feature representation. The discriminator network was extended to partial domain adaptation in [26,27].
The aforementioned discriminator and MMD are dedicated to aligning the marginal probability distribution. Specifically, inspired by [28], the conditional probability distribution is also increasingly integrated into the domain adversarial training in recent years. In [29], the adversarial training was utilized to realize marginal fusion, and a variance matrix was defined to achieve conditional alignments. The joint distribution supplanted the marginal distribution for conditional distribution alignments in [30]. In [31], a pre-training network was designed for pseudo-label learning and MMD was applied to align the conditional distribution. Ref. [32] utilized the adversarial network and the joint adaptation network to alleviate the distribution discrepancy of the label and feature spaces.
Although conditional distribution alignment has made some progress to the DA, little attention has been paid to the pseudo-label learning of the target domain. The common pseudo-label methodologies rely on the traditional clustering algorithm, source domain classifier, and the pre-trained network with source domain data. Limited by the inaccuracy of the initial phase of the neural network and the huge distribution gap between the target and source domains, these algorithms will assign extensive inaccurate pseudo-labels to interfere with the domain alignment. Therefore, in order to achieve more accurate pseudo-labels to narrow down the distribution discrepancy, a novel method named mechanism-assisted domain adaptation network (MADAN) is proposed. In the MADAN, the mechanical properties of the MPCs under different working conditions are adopted for pseudo-label learning along with the label classifier. Particularly, the classifier iterates continuously with training to alleviate conditional distribution discrepancy through a well-defined MMD term. The marginal distribution alignment is implemented with the help of the adversarial domain adaptation, and 1-D CNN constructs the feature generator network to extract the features of the time-series signal.
The main contributions of this paper can be summarized as follows:
1. An integrated dynamics mathematical model is established to generate the MPCs at normal and five kinds of faulty scenarios. The model calculates “four-bar” linkage movement, sucker rod vibration, the pump chamber pressure, and the liquid flow rate. The adjustment strategies of the model and relevant parameters under different working conditions are also presented.
2. A novel DA method named MADAN is proposed to exploit the knowledge learned from the generated MPCs to facilitate diagnosing the MPCs collected in practical scenarios. The mechanism-assisted pseudo-label learning is constructed to realize better conditional distribution alignment of the collected and generated MPCs under different working conditions. Furthermore, the domain classifier is designed for the marginal distribution alignment of the collected and generated MPCs.
3. Experiments demonstrate the superiority of the proposed fault diagnosis methodology with the MPCs collected by self-developed portable devices in the practical application scenario. The model’s validity is verified by analyzing crucial downhole parameters and comparing the generated and actual MPCs. Furthermore, we experimentally show that MADAN outperforms five other state-of-the-art methods in terms of diagnostic accuracy and distribution alignment.
The rest of this article is organized as follows. The integrated dynamics mathematical model to generate the MPCs under various working conditions is surveyed in Section 2. Section 3 describes the proposed MADAN method. Section 4 shows the effectiveness of the proposed method through experimental verification. Finally, Section 5 concludes this article.

2. Generation of the Motor Power Curves

Driven by the motor, the pump connected with a series of transmissions is in a reciprocating up-and-down motion to pull the oil from the down-hole to the ground in the SRPS. As the energy for the whole system, the MPCs involve information about the SRPS working properties. Homoplastically, the MPCs of the well can be obtained by the inversion of the individual components simulation. To generate supplementary power waveforms of different working states for fault diagnosis, a detailed and integrated discussion of the mathematical model for the SRPS is presented in this section.

2.1. Mathematical Model of the Sucker Rod Pumping System

Figure 1 indicates a typical structure of the SRPS.
Aiming at the MPCs composed by the power vs. time, the mathematical model follows the order as the red arrows in Figure 1 as time → crank angle → polished rod motion ⇆ plunger motion ⇄ pump pressure ⇆ polished rod load → crank torque → power. The prediction of SRPS behavior involves calculating “four-bar” linkage movement, sucker rod vibration, down-hole pump simulation of the pump, etc. Of these items, the operation of the down-hole pump, the polished rod motion, and the vibrations of the rod string are of the most difficulty but primary importance. In this subsection, the establishment of the mathematical model centers on the difficulties mentioned.

2.1.1. Polished Rod Motion Simulation

As the crank angular velocity approaches constant speed in practice, the crank angle θ vs. time is given by
θ ( t ) = ω t = 2 π n t 60 .
From trigonometrical considerations, the calculation for the displacement of the polished rod s ( t ) is listed as follows:
s ( t ) = s m a x χ m a x χ χ m a x χ m i n , χ 1 = arcsin C sin β l 1 , χ 2 = arcsin R sin ( θ 1 + θ ( t ) ) l 1 , β = arccos A 2 2 + C 2 l 2 2 R 2 + 2 l 2 R cos ( θ 1 + θ ( t ) ) 2 A 2 C , l 1 = l 2 2 + R 2 2 l 2 R cos ( θ 1 + θ ( t ) ) , θ 1 = arctan D B G , χ m a x = arccos l 2 2 + A 2 2 ( C + R ) 2 2 l 2 A 2 , χ m i n = arccos l 2 2 + A 2 2 ( C R ) 2 2 l 2 A 2 .
The polished rod load is obtained as the summation torque acting on the polished rod of the crank torque, the counterbalance torque arising from the balanced weight and the net weight of the crankshaft, and counterbalance torque. The crank torque is derived backward by the relation
F c = T F ¯ ( F W u b ) η b μ ( W c k R c k + W c b R ) sin θ ( t ) ,
where μ = 1 when T F ¯ < 0 , and μ = 1 when T F ¯ 0 . The torque factor as obtained from mechanics is given by
T F ¯ = A 1 R A 2 sin β sin φ .

2.1.2. Rod String Simulation

Considering the rod string is up to thousands of meters long, the elastic deformation and vibration should not be neglected during the reciprocating up-and-down motion. Simulation of the rod string involves the calculation of a boundary problem. The boundary upon the ground is regarded as a compulsive movement, which is determined by the motion of the polish rod. The boundary of the down-hole is decided by the pump pressure acting at the plunger and the elastic force of the rod string. Benefiting from the rod string acting as a spring-mass-damping system with multiple degrees of freedom, the rod string is divided into individual parts connected by an equivalent spring, as illustrated in Figure 1.
Combined with buoyancy, gravity, frictional damping of the rod, and tubing, the dynamic analysis of the rod string can be deduced as
F = k 1 ( P 0 P 1 l 1 ) , M 1 P 1 ¨ + b 1 P 1 ˙ + k 2 ( P 1 P 2 l 2 ) + M 1 g ρ o g ( P 0 P 1 ) S r + f r ( P 0 P 1 ) C l σ v = k 1 ( P 0 P 1 l 1 ) , M 2 P 2 ¨ + b 2 P 2 ˙ + k 3 ( P 2 P 3 l 3 ) + M 2 g ρ o g ( P 1 P 2 ) S r + f r ( P 1 P 2 ) C l σ v = k 2 ( P 1 P 2 l 2 ) , M n 1 P ¨ n 1 + b n 1 P ˙ n 1 + k n ( P n 1 P n l n ) + M n 1 g ρ o g ( P n 2 P n 1 ) S r + f r ( P n 2 P n 1 ) C l σ v = k n 1 ( P n 2 P n 1 l n 1 ) , M n P ¨ n + b n P ˙ n k n ( P n 1 P n l n ) + M n g ρ o g ( P n 1 P n ) S r + f r ( P n 1 P n 2 ) C l t σ v = F n ,
where P i ˙ and P i ¨ denote the first and second derivatives of P i regarding time, respectively. C l can be caculated as C l = π ( d p + d r ) .

2.1.3. Down-Hole Pump Simulation

Equal to the force on the bottom of the rod string F n , the force on the plunge can also be deduced from the down-hole pump simulation as follows:
F n ( t ) = S p ( P d P p ( t ) ) S r P d + f p P ˙ n .
It is mainly related to the pressure of the pump. Suffering from various coupled variables and sophisticated processes existing in the down-hole, the simulation of pressure remains a severe issue but is the core of the whole model. In order to get around this impasse, the basic concepts of iterative algorithms are applied in this subsection. The pressure proportional to the mass per unit volume of free gas can be deduced as follows:
P p ( t ) = M f g ( t ) ξ V p ( t ) V w ( t ) V o ( t ) .
The variation of gas, liquid, and oil in the pump can be calculated by flow rate. When the standing valve is closed, the flow rate is zero. When the standing valve is open, the flow rate can be calculated as
Q ( t ) = C 1 S s ρ l σ s P p ( t ) P s ρ l .
Considering a bit of gas dissolved in the oil, the solubility of the gas is calculated based on Henry’s Law. On the assumption that the water–oil–gas mass ratio of flows is constant in one stroke, the specific calculation is organized as follows:
M f g ( t ) = M g ( t ) ρ g ( t 1 ) V f g ( t 1 ) ρ g ( t 1 ) V f g ( t 1 ) + δ g ( t 1 ) M o ( t 1 ) , M g ( t ) = M g ( t 1 ) + γ g Q ( t 1 ) t , M o ( t ) = V o ( t ) ρ o = M o ( t 1 ) + γ o Q ( t 1 ) t , M w ( t ) = V w ( t ) ρ w = M w ( t 1 ) + γ w Q ( t 1 ) t , ρ g ( t 1 ) = P p ( t 1 ) M m o l C 2 T d , δ g ( t 1 ) = C h P p ( t 1 ) .
An iterative equation for estimating the pump pressure P p is given as
P p ( t ) P p ( t 1 ) = M f g ( t ) M f g ( t 1 ) V p ( t 1 ) V w ( t 1 ) V o ( t 1 ) V p ( t ) V w ( t ) V o ( t ) .

2.1.4. Moter and Gearbox Simulation

Considering the energy loss in the gearbox and the motor, the crank toque vs. the motor power is simplified as
P m = F c n m η m σ 9540 , w h e n P > 0 , σ = 1 , e l s e σ = 1 .

2.1.5. Dynamic Implementation of the Overall Model

As the order of the red arrows in Figure 1, Algorithm 1 outlines the procedure of the whole generating power method mentioned above combining the standing and traveling valve switch situations. By the proposed mathematical model, the theoretical MPC can be obtained based on the mechanical parameters of the specific oil well.
Algorithm 1: Generation of motor power waveforms.
Mathematics 10 01224 i001

2.2. Generation for Faulty Working States

Based on the mathematical model of the SRPS, the MPCs of five faulty working states are analyzed in this subsection. The characteristics forming reasons and representation in the model will be discussed emphatically.

2.2.1. Traveling Valve Leakage

After repeating the switch operation numerous times, the traveling valve will wear out so that the oil in the sucker rod leaks into the chamber with the rate concerned to the P p ( t ) . In order to simulate this state, the leaked oil is divided into static and dynamic parts. The pressure and the flow rate are the same as the normal state when the traveling valve is open. When the traveling valve is closed, the static part that is caused by the pressure discrepancy between the top and bottom of the plunger can be deduced as
Q s ( t ) = ρ l C 3 S l t σ t P d P p ( t ) ρ l .
The dynamic part that is caused by the motion of the plunger can be calculated as
Q d ( t ) = π S l t P ˙ n .
The leaked oil can be obtained from the sum of the static part and the dynamic part.

2.2.2. Insufficient Liquid Supply

After a long extraction period, the reservoir formation pressure usually decreases, resulting in insufficient fluid supply capacity. In this working state, the submergence pressure P s is less than the pressure under the normal working state. There will be less oil flowing into the pump, and the traveling valve will open in a shorter time. To simulate this working state, only the submergence pressure P s needs to be set as a smaller value.

2.2.3. Gas Affected

During the oil production process, the remaining free gas accumulates due to the sealing performance of the pump. In the upstroke, the remaining free gas will slow down the reduction of pressure in the pump, which in turn delays the opening of the standing valve, resulting in a low fluid intake. Analogously, in the downstroke, the remaining free gas will also delay the opening of the traveling valve because of the deferred increase of pressure in the pump. In the simulation, the initial mass of the free gas in the pump and the gas mass ratio of flows are set as higher proportions than the normal working state.

2.2.4. Gas Locking

This working state is the special case of gas affected. When the remaining free gas is accumulating to a threshold, the pressure P p ( t ) is greater than the submergence pressure P s so that the valves remain closed without any inflow or outflow all the time. In order to simulate this state, the pressure is set as P s P p ( t ) P d .

2.2.5. Parting Rod

The rod string may crack suffering from corrosion, mechanical vibration, and friction in the down-hole after a long period of continuous work. In this working state, the polished rod load is only related to the rod weight, vibration, and friction above the breakpoint because the pump departs from the rod string. So, the P p ( t ) is equal to 0, and only the department above the breakpoint needs to be calculated in Equation (5) during the simulation.

3. Domain Adaptation Based on Generated Motor Power Curves

Although the labeled MPCs are supplemented with the mechanism model, the distribution discrepancies between generated and collected MPCs limit the diagnosis accuracy. A novel domain adaptation diagnostic network combining the mechanism analysis is proposed in this section to tackle this issue. Considering the load characteristics of the SRPS in one period, the pseudo-labels are assigned for the collected MPCs preliminarily. Then, the conditional and marginal probability distribution of the generated and collected MPCs are well aligned by distilling the domain-invariant features. That implements to acquire knowledge from the generated MPCs to facilitate the diagnosis of collected MPCs. The method’s detailed architecture and training process are discussed in the subsequent section.

3.1. Problem Setting

Benefiting from the dynamic mechanism analysis, the MPCs of different working conditions are generated. However, the data-driven diagnosis methods trained with such generated curves possibly fail in diagnosing actual curves even though the waves have the same varying tendency under different conditions. The simplification and idealization in the mechanism simulation should be the main reason for the misdiagnosis. Take the vibration simulation of the sucker rod as an example. The rod is divided into several individually connected segments to simulate elastic deformation and vibration. The simulated MPCs with different quantities of segments and a similar actual MPC are illustrated in Figure 2.
Dividing the rod into different segments changes the vibration analysis of the rod, which in turn affects the transformation of the DCs to the MPCs. Similar simplified features, e.g., gearbox vibrations, liquid flow rate, and crankshaft speed, lead to the difference between the generated and actual curves collectively.
Inspired by the idea of domain adaptation, which can project the data from various domains into a shared subspace, this section proposes an innovative fault diagnosis approach. It can leverage the knowledge learned from the generated MPCs with labels to facilitate diagnosing actual unlabeled MPCs. In order to promote the features between the generated and actual MPCs to be aligned, a domain classifier is built for marginal distribution adaptation. What is more, a conditional distribution discrepancy metric is employed for conditional distribution adaptation. Therefore, the proposed domain adaptive method not only considers all in-domain features as a whole for feature alignment but also ensures category features of different domains to be aligned.

3.2. Network Architecture

According to the above-mentioned description, the generated MPCs with labels are denoted as the source domain D s = { ( χ i s , y i s ) } i = 1 n s of six categories of working conditions, and the actual MPCs are denoted as the target domain D t = { ( χ j t ) } j = 1 n t without labels. Leveraging the knowledge learned from D s to facilitate diagnosing for D t , the proposed framework is illustrated in Figure 3. Overall, the methodology contains a feature generator network f g with parameters θ g , a domain classifier f d with parameters θ d , a label classifier f c with parameters θ c , a conditional distribution discrepancy metrics M, and a pseudo-label learning layer f P . The detailed description of the methodology is discussed as follows:

3.2.1. Pseudo-Label Learning Layer

Different from the marginal distribution, which does not require the category label, conditional distribution needs the labels to adapt the category-level discrepancy. Unfortunately, the samples in the target domain are unlabeled. Many existing approaches assign pseudo-labels to these samples based on maximum predictive probability, clustering algorithms, or pre-trained models trained with source domain samples. However, since the initial pseudo-labels learned by these methods are inaccurate, some errors will be caused by incorrect labels and accumulate with the strategy training, resulting in negative effects on fault diagnosis. In this respect, a novel pseudo-label learning method combining the mechanism analysis in the SRPS and the source domain samples is proposed to tackle this problem.
The mechanism analysis of the MPCs under different working conditions is summarized as follows:
1. Normal working condition Y 0 : The MPCs of the upstroke and the downstroke are relatively full with similar peaks. 2. Traveling valve leakage Y 1 : The leakage will delay the increase of the pressure during the upstroke, resulting in the delayed opening of the standing valve. Therefore, the power of the upstroke will be less than the normal working condition. 3. Insufficient liquid supply Y 2 : The pump chamber can not be fulled in the upstroke. During the downstroke, the load reduces in the initial stage of the opening of the traveling valve. The load increases rapidly when the plunger hits the oil interface, resulting in double peaks in the power curve. The average value of the MPC is also lower than the normal power. 4. Gas affected Y 3 : Similar to the condition of insufficient liquid supply, the pump chamber also can not be filled because of the superabundant gas dissolved in oil, resulting in the lower average power in the downstroke. The difference is that more gas is present to act as a buffer to the plunger, so there is no second peak in the downstroke. 5. Gas locking Y 4 : The gas in the chamber makes the pressure insufficient to open the standing and traveling valve, so the oil cannot be adequately discharged. During the downstroke, the motor power curve will have negative values due to the gravity of the oil in the sucker rod. 6. Parting rod Y 5 : The motor load is mainly caused by the crank and the weight of the rod above the breakpoint. During the upstroke, the energy stored in the crank is more than the requirement to uplift the remaining rod, resulting in the apparent negative power in the MPC.
On the basis of the above analysis, the mechanistic pseudo-labels of the source domain { y ¯ i s } i = 1 n s and the target domain { y ¯ j t } j = 1 n t are obtained as shown in Figure 4, where P u and P d denote the power points of the upstroke and the downstroke in one stroke, respectively. N u and N d denote the numbers of the points in the upstroke and the downstroke. a 1 and a 2 are set as 0.9 and 1.1.
With the help of mechanism analysis, the accuracy of the initial pseudo-labels is improved. However, as the training continues, the accuracy of the classifier gradually outperforms the mechanical analysis. Therefore, we design the pseudo-label learning layer based on the comparison between the accuracy of the mechanical analysis P m and the accuracy of the classifier in the current epoch P c with the date of the source domain. The P m and P c can be calculated as follows:
P m = 1 N s n = 1 N L ( y ¯ i s , y i s ) ,
P c = 1 N s n = 1 N L ( f c ( f g ( χ i s , θ g ) , θ c ) , y i s ) ,
where L (,) denotes the cross-entropy loss function.
The final pseudo-labels in the target domain y ^ t j can be obtained as follows:
y ^ j t = y ¯ j t , P m P c . f c ( f g ( χ j t , θ g ) , θ c ) , P m < P c .
The target domain with the pseudo-labels are defined as D ^ t = { ( χ j t , y ^ j t ) } j = 1 n t .

3.2.2. Feature Generator Network

Inspired by the great nonlinear characterization capabilities of convolutional neural network (CNN), 1-D CNN specializing in the time-series signal is selected to extract features from the generated and actual power curves. The feature generator is implemented based on a 3-layer 1-D CNN associated with a fully connected layer (FC), whose structure is detailed in Table 1.

3.2.3. Label Classifier

The label classifiers aim to recognize the working condition and direct the feature generator to retain the information of each working condition. As illustrated in Figure 3, the label classifier consists of one hidden layer with the neurons of 256 and one output layer with the Softmax as the activation function. The dropout ratio is set as 0.5. For the classifier of the source domain D s = { ( χ i s , y i s ) } i = 1 n s , the desired objective function can be defined as
L c = 1 N s χ i , y i D s L ( f c ( f g ( χ i , θ g ) , θ c ) , y i ) .
It is noteworthy that the classifier of the target domain is not involved in the backpropagation. It is only used for pseudo-label learning, and its parameters are kept the same as the parameters of the source domain label classifier.

3.2.4. Domain Classifier

In order to direct the feature generator to extract the domain-invariant features, a domain classifier f d is designed by following the idea of DANN [21]. The f d consists of three FCs with neurons as 1024-256-1. The output is a binary classifier that outputs 0 for all target samples and 1 for all source samples. The desired objective function can be defined as
L d = 1 N s + N t χ i , y ˙ i D s D t L ( f d ( f g ( χ i , θ g ) , θ d ) , y ˙ i ) ,
where y ˙ i denotes the domain label.

3.2.5. Conditional Distribution Discrepancy Metrics

Regarding all the samples in one domain as one class, the marginal distributions can be well aligned by the domain classifier. However, only adapting the marginal distributions is insufficient, since the discriminative hyperplane may differ for diverse domain tasks. The conditional distribution adaptation, which aims to match the discriminative structures between source and target data, is also indispensable and highly effective. With the aid of the pseudo-label learning layer, pseudo-labels for target data can be preliminarily supplied. Defining C as the total number of categories and the category c { Y 0 , Y 1 , Y 5 } , the distance index, MMD, can be designed to measure the discrepancy of conditional distributions D s and D ^ t as
D M = c = 1 C 1 n s c χ i D s f g ( χ i | y i = c , θ g ) 1 n t c χ j D ^ t f g ( χ j | y ^ j = c , θ g ) H 2 ,
where · H represents the Reproducing Kernel Hilbert Space.

3.3. Optimization

According to the network losses discussed above, the optimization objective of the proposed MADAN is summarized as
L = L c λ 1 L d + λ 2 D M ,
where the hyperparameters λ 1 and λ 2 indicate the penalty coefficient for different loss functions. A gradient reversal layer (GRL) [33] is placed before the domain classifier to receive the gradient of L d by multiplying a negative factor. The network is updated employing the adaptive moment estimation optimizer (Adam) with the learning rate τ , which is set to 0.001. The parameters θ g , θ c , and θ d are updated simultaneously at each step as
θ g θ g τ ( L c θ g λ 1 L d θ g + λ 2 D M θ g ) , θ c θ c τ L c θ c , θ d θ d τ λ 1 L d θ d .
With the updates of the parameters, the extracted features are domain-invariant and discriminative simultaneously. The label classifier not only can predict labels for generated MPCs but also is available for the collected MPCs.

4. Industrial Experiments

A series of industrial experiments are conducted in this section with the MPCs collected in SRPS with self-developed equipment to verify the feasibility of the proposed mathematic model and the diagnosis method in practical application scenarios. The generated MPCs with the mathematic model are discussed with the mechanical characteristics and compared with the collected MPCs under different working conditions. Moreover, we compare the MADAN with some baseline methods in the field of DA to demonstrate the effectiveness of the improvement in practical applications.

4.1. Data Collection

As illustrated in Figure 5, the portable device developed by the authors’ team in Northeastern University implements the MPCs acquisition by collecting the three-phase current and voltage of the motor. The device consists of five core units as follows:
  • Power acquisition unit: realize the motor power calculation with the help of the ATT7022B.
  • Transmission unit: realize remote query and parameter adjustment on mobiles and computers.
  • Human–machine interaction unit: a touch screen is equipped to facilitate parameter entry, data query, and data display.
  • Data storage unit: it is used to store the collected and calculated data and parameters.
  • Data processing unit: with the help of the XC7Z020CLG400 chip, it implements the core calculation, including the trained diagnostic model, device operation, etc.
After long-term practice, 300 groups of MPCs are collected from seven oil wells with the same mechanical parameters as shown in Table 2. All simulations are implemented in the MATLAB and Pytorch framework and conducted on a workstation with a Core i7-9700K [email protected] GHz and a GTX2080TI GPU with 11-GB memory.

4.2. Validation of the Generated Motor Power Curves

According to the working and mechanical parameters listed in Table 2, the analysis results of six working conditions generated with the model in Section 2 are illustrated in Figure 6, Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11. Each working state contains four sub-figures. The first sub-figures express the variation curves of the crucial variables in the pump containing the chamber volume, oil and water volume, the pressure, and the flow rate through the standing valve. The second and third sub-figures illustrate the generated DCs and MPCs under different working conditions. The fourth sub-figures are typical MPCs selected from the collected samples in practical scenarios.
As illustrated in the figures, the variation of essential parameters is consistent with the settings in Section 2.2. The characteristics embodied in the generated DCs under the different working conditions conform to the historical experience learned from the extensive data collected in different practical application scenarios. The generated and measured power curves have similar trends, and their characteristics are consistent with the previous mechanical analysis in Section 3.2.1. These results verify the rationality of the model on the mechanism analysis.
In order to take a more in-depth validity on the quantitative analysis, 50 samples of the MPCs under each working condition are generated as the training data by adjusting the downhole parameters to diagnose 300 groups of collected samples, which are testing data. The diagnostic method employs the mechanical feature extraction combined with the conditional random field (MCRF), which is mentioned in [6]. The experimental result is presented in Figure 12, where the diagnostic accuracy achieves 73% without the help of collected samples at all. This demonstrates the effectiveness of the generated data. However, the diagnostic accuracy does not meet the industrial requirement. The main reason mainly includes two aspects. On the one hand, limited by the insufficiency of the mechanism feature extraction method, some MPCs of critical working conditions are difficult to identify. On the other hand, the generated samples deviate from the actual samples’ distribution because of the model’s simplifications and interference in the data acquisition.
Moreover, the collected data are divided into two parts, where 240 groups are randomly selected as the training set, and the remaining 60 groups are the testing set. To comprehensively investigate the generated data, we set various scenarios with different amounts of generated samples adding to the training set of the collected data to monitor the working conditions in the SRPS. Three methods named 1-D CNN, CNN, and MCRF are selected from three perspectives of time-series, image, and mechanism to conduct experiments. The diagnostic results are shown in Table 3.
As illustrated in Table 3, the diagnosis accuracy presents an upward trend as the generated samples are added to the original training set. Machine learning is more capable of extracting features than mechanistic feature analysis, and the time-series-based approach is more applicable to the MPCs than the curves acting as pictures.

4.3. Diagnosis Based on Domain Adaptation

In this section, the proposed MADAN is employed to minimize the distribution discrepancy across domains in practical application scenarios. Since the new conditional metrics and pseudo-label learning strategy are appended to the objective function for the distribution alignment, the convergence analysis is imperative to illustrate the stability and transfer ability. As shown in Figure 13a, the discrepancy in diagnostic accuracy between the source and target domain gradually decreases with the iteration of optimization, which illustrates the effectiveness of the feature generator network in bridging the distribution discrepancy. In addition, the accuracy curves converge rapidly and finally approach 1, which demonstrates the superiority of this method in industrial diagnosis.
Furthermore, the training loss including classification loss (classifier_loss), domain classifier error (adversarial_loss), and conditional distribution loss (distance_loss) are plotted in Figure 13b, respectively. It can be found that the classification loss is gradually decreasing with the increasing of training epoch and finally approaches 0. The reciprocal oscillation of the adversarial loss illustrates that the domain classifier efficiently guides the feature generator network to explore domain-invariant features. This is because the feature extraction network keeps improving the information extraction capability under the requirement of the classifier error reduction, which makes the domain classifier keep improving the ability to discriminate domain features to inhibit the feature extraction network from retaining domain-related information. The conditional distribution loss presents a gradual declining trend. This demonstrates that the conditional distribution discrepancy is gradually disappearing.
For comparison purposes, several state-of-the-art methods are considered for comparisons with the MADAN, including 1-D CNN, DANN [21], DATLN [22], DTN [30], and MiDAN [24]. In order to make a fair comparison, all the compared methods adopt the same 1-D CNN architectures to explore features. The details of the compared methods are presented in Table 4, where MDA denotes the marginal distributions alignment and CDA denotes the conditional distributions alignment.
The diagnostic result is an average of five random tests, where the testing set is 60 groups randomly split from the 300 groups of collected MPCs. To comprehensively show the capabilities of the proposed method, three evaluation indicators including Accuracy, F1-score, and MCC are selected to assess the performance of each method. The expressions of the MCC are defined as follows:
M C C = T N × T P F N × F P ( T F + T P ) ( F N + T N ) ( T P + F N ) ( F P + T N ) .
The results are listed in Table 5.
As the results show, the MADAN performs better than other diagnostic methodologies in all evaluation indicators. Concretely, t-distributed stochastic neighbor embedding (t-SNE) is employed to demonstrate visual insights into the distribution discrepancy of features distilled by different methods from the generated and collected MPC. The t-SNE visualization for the original data and the features after the alignment by the methods mentioned above are illustrated in Figure 14.
From Table 5 and Figure 14, some results can be clearly obtained. Firstly, in terms of classification performance, the outlier source samples are much less with the help of transfer learning. In addition, the MADAN can better cluster the same categories and separate different categories than the other methods. Secondly, in terms of the marginal distributions alignment, the adversarial training is superior to the MMD, where Figure 14c,e correspond to Figure 14b,d, respectively. Thirdly, in terms of the conditional distributions alignment, the data in different domains within each category are more evenly distributed, where Figure 14d–f correspond to Figure 14a–c. Fourthly, in terms of pseudo-label learning, despite MiDAN having achieved good results, our MADAN performs better in the same number of iterations due to the higher pseudo-label accuracy resulting from assisted mechanisms during the initial training. From the analysis and discussion above, it can be seen that the proposed MADAN can effectively bridge the distribution discrepancy, resulting in better diagnosis performance in practical application scenarios.

5. Conclusions

The motor power as an easily collected signal contains information about the working status of the SRPS. In order to tackle the issue of an insufficiently labeled MPC database due to the early stage of the electrical parameters research on the SRPS, this paper has proposed an unsupervised fault diagnosis methodology named MADAN to leverage the generated MPCs of different working conditions to diagnose the actual MPCs. Firstly, an integrated dynamics mathematical model has been established to generate the MPCs under different working conditions. Secondly, a mechanism-assisted pseudo-label learning strategy and a conditional distribution discrepancy metric have been added to the adversarial domain adaptation model to bridge the marginal and conditional distribution discrepancy of the generated and collected MPCs. Finally, a set of actual MPCs collected by self-developed portable devices has been utilized to verify the feasibility of the proposed methodology. The experimental results indicated that the generated and the actual MPCs had similar trends, and the MADAN can effectively utilize the generated and actual unlabeled MPCs to realize the power fault diagnosis of oil wells.

Author Contributions

Conceptualization, D.H.; methodology, D.H. and X.G.; software, D.H.; validation, D.H. and X.G.; formal analysis, D.H.; investigation, D.H.; resources, X.G.; data curation, D.H.; writing—original draft preparation, D.H.; writing—review and editing, D.H.; visualization, D.H.; supervision, D.H.; project administration, X.G.; funding acquisition, X.G. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (62173073).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
b i Damping coefficient of ith rod string
C 0 C 1 C 2 C 3 Constant
C h Henry’s law constant
C l Perimeter of the rod string and pump
d p Diameter of pump
d r Diameter of sucker rod
FPolished rod load
F c Crank torque
f i Friction coefficient of ith rod string
f d Friction coefficient of plunger
k i ith rod modulus of elasticity
l i Length of ith rod string
M i Mass of ith rod string
M f g Mass of free gas in pump
M g Mass of whole gas in pump
M o Mass of oil in pump
M m o l Molar mass of methane
M w Mass of water in pump
nTimes of stroke
n m Motor speed
P m Motor power
P d Discharge pressure of the pump
P p Load on the plunger
P s Submergence pressure (Mpa)
QFlow rate though standing valve
R c k Weight radius of crankshaft
SDisplacement of sucker rod node
S r Are of sucker rod
S l t Leaked area of traveling valve
S s Passage area of standing valve
S t Passage area of traveling valve
S p Passage area of plunger
T d Absolute temperature
T F ¯ Torque factor
V o Volume of oil in the pump
V p Volume of the pump
V w Volume of water in the pump
W c b Balanced weight of crankshaft
W c k Weight of crankshaft
W u b Counterbalance weight
γ g Gas mass ratio of produced fluid
γ o Oil mass ratio of produced fluid
γ w Water mass ratio of produced fluid
δ g Gas solubility
η b Efficiency of four-bar linkage
η m Efficiency of motor and reduction gearbox
ξ Gas related constant
ρ l Density of produced fluid
ρ o Density of oil
ρ w Density of water
σ v Damping coefficient of standing valve
ω Angular velocity of crankshaft

References

  1. Lv, X.; Wang, H.; Zhang, X.; Liu, Y.; Jiang, D.; Wei, B. An evolutional SVM method based on incremental algorithm and simulated indicator diagrams for fault diagnosis in sucker rod pumping systems. J. Pet. Sci. Eng. 2021, 203, 108806. [Google Scholar] [CrossRef]
  2. Han, Y.; Song, X.; Li, K.; Yan, X. Hybrid modeling for submergence depth of the pumping well using stochastic configuration networks with random sampling. J. Pet. Sci. Eng. 2022, 208, 109423. [Google Scholar] [CrossRef]
  3. Li, K.; Han, Y.; Wang, T. A novel prediction method for down-hole working conditions of the beam pumping unit based on 8-directions chain codes and online sequential extreme learning machine. J. Pet. Sci. Eng. 2018, 160, 285–301. [Google Scholar] [CrossRef]
  4. Han, Y.; Li, K.; Ge, F.; Wang, Y.; Xu, W. Online fault diagnosis for sucker rod pumping well by optimized density peak clustering. ISA Trans. 2021, 120, 222–234. [Google Scholar] [CrossRef] [PubMed]
  5. Takacs, G.; Kis, L. A new model to find optimum counterbalancing of sucker-rod pumping units including a rigorous procedure for gearbox torque calculations. J. Pet. Sci. Eng. 2021, 205, 108792. [Google Scholar] [CrossRef]
  6. Zheng, B.; Gao, X.; Pan, R. Sucker rod pump working state diagnosis using motor data and hidden conditional random fields. IEEE Trans. Ind. Electron. 2019, 67, 7919–7928. [Google Scholar] [CrossRef]
  7. Wei, J.; Gao, X. Fault Diagnosis of Sucker Rod Pump Based on Deep-Broad Learning Using Motor Data. IEEE Access 2020, 8, 222562–222571. [Google Scholar] [CrossRef]
  8. Zhang, B.; Gao, X.; Li, X. Complete Simulation and Fault Diagnosis of Sucker-Rod Pumping. SPE Prod. Oper. 2021, 36, 277–290. [Google Scholar]
  9. Zheng, B.; Gao, X.; Li, X. Fault detection for sucker rod pump based on motor power. Control Eng. Pract. 2019, 86, 37–47. [Google Scholar] [CrossRef]
  10. Chen, L.; Gao, X.; Li, X. Using the motor power and XGBoost to diagnose working states of a sucker rod pump. J. Pet. Sci. Eng. 2021, 199, 108329. [Google Scholar] [CrossRef]
  11. Gibbs, S. Predicting the behavior of sucker-rod pumping systems. J. Pet. Technol. 1963, 15, 769–778. [Google Scholar] [CrossRef]
  12. Zheng, B.; Gao, X.; Li, X. Diagnosis of sucker rod pump based on generating dynamometer cards. J. Process Control 2019, 77, 76–88. [Google Scholar] [CrossRef]
  13. Lv, X.; Wang, H.; Liu, Y.; Chen, S.; Lan, W.; Sun, B. A novel method of output metering with dynamometer card for SRPS under fault conditions. J. Pet. Sci. Eng. 2020, 192, 107098. [Google Scholar] [CrossRef]
  14. Zhao, Z.; Zhang, Q.; Yu, X.; Sun, C.; Wang, S.; Yan, R.; Chen, X. Applications of Unsupervised Deep Transfer Learning to Intelligent Fault Diagnosis: A Survey and Comparative Study. IEEE Trans. Instrum. Meas. 2021, 70, 1–28. [Google Scholar] [CrossRef]
  15. Zhang, W.; Li, X.; Ma, H.; Luo, Z.; Li, X. Open-Set Domain Adaptation in Machinery Fault Diagnostics Using Instance-Level Weighted Adversarial Learning. IEEE Trans. Ind. Inf. 2021, 17, 7445–7455. [Google Scholar] [CrossRef]
  16. Ainapure, A.; Siahpour, S.; Li, X.; Majid, F.; Lee, J. Intelligent Robust Cross-Domain Fault Diagnostic Method for Rotating Machines Using Noisy Condition Labels. Mathematics 2022, 10, 455. [Google Scholar] [CrossRef]
  17. Zhang, H.; Ren, H.; Mu, Y.; Han, J. Optimal Consensus Control Design for Multiagent Systems with Multiple Time Delay Using Adaptive Dynamic Programming. IEEE Trans. Cybern. 2021. [Google Scholar] [CrossRef]
  18. Wen, L.; Gao, L.; Li, X. A new deep transfer learning based on sparse auto-encoder for fault diagnosis. IEEE Trans. Syst. Man Cybern. Syst. 2017, 49, 136–144. [Google Scholar] [CrossRef]
  19. Ye, Z.; Yu, J.; Mao, L. Multisource Domain Adaption for Health Degradation Monitoring of Lithium-Ion Batteries. IEEE Trans. Transp. Electrif. 2021, 7, 2279–2292. [Google Scholar] [CrossRef]
  20. Zhao, B.; Zhang, X.; Zhan, Z.; Wu, Q. Deep multi-scale separable convolutional network with triple attention mechanism: A novel multi-task domain adaptation method for intelligent fault diagnosis. Expert Syst. Appl. 2021, 182, 115087. [Google Scholar] [CrossRef]
  21. Ganin, Y.; Ustinova, E.; Ajakan, H.; Germain, P.; Larochelle, H.; Laviolette, F.; Marchand, M.; Lempitsky, V. Domain-adversarial training of neural networks. J. Mach. Learn. Res. 2016, 17, 2030–2096. [Google Scholar]
  22. Guo, L.; Lei, Y.; Xing, S.; Yan, T.; Li, N. Deep convolutional transfer learning network: A new method for intelligent fault diagnosis of machines with unlabeled data. IEEE Trans. Ind. Electron. 2018, 66, 7316–7325. [Google Scholar] [CrossRef]
  23. Cheng, C.; Zhou, B.; Ma, G.; Wu, D.; Yuan, Y. Wasserstein distance based deep adversarial transfer learning for intelligent fault diagnosis with unlabeled or insufficient labeled data. Neurocomputing 2020, 409, 35–45. [Google Scholar] [CrossRef]
  24. Tan, Y.; Guo, L.; Gao, H.; Lin, Z.; Liu, Y. MiDAN: A framework for cross-domain intelligent fault diagnosis with imbalanced datasets. Measurement 2021, 183, 109834. [Google Scholar] [CrossRef]
  25. Li, Y.; Song, Y.; Jia, L.; Gao, S.; Li, Q.; Qiu, M. Intelligent fault diagnosis by fusing domain adversarial training and maximum mean discrepancy via ensemble learning. IEEE Trans. Ind. Inf. 2020, 17, 2833–2841. [Google Scholar] [CrossRef]
  26. Li, X.; Zhang, W. Deep Learning-Based Partial Domain Adaptation Method on Intelligent Machinery Fault Diagnostics. IEEE Trans. Ind. Electron. 2021, 68, 4351–4361. [Google Scholar] [CrossRef]
  27. Zhang, W.; Li, X.; Ma, H.; Luo, Z.; Li, X. Universal domain adaptation in fault diagnostics with hybrid weighted deep adversarial learning. IEEE Trans. Ind. Inf. 2021, 17, 7957–7967. [Google Scholar] [CrossRef]
  28. Long, M.; Wang, J.; Ding, G.; Sun, J.; Yu, P.S. Transfer feature learning with joint distribution adaptation. In Proceedings of the IEEE International Conference on Computer Vision, Sydney, Australia, 2–8 December 2013; pp. 2200–2207. [Google Scholar]
  29. Li, X.; Zhang, W.; Xu, N.X.; Ding, Q. Deep learning-based machinery fault diagnostics with domain adaptation across sensors at different places. IEEE Trans. Ind. Electron. 2019, 67, 6785–6794. [Google Scholar] [CrossRef]
  30. Han, T.; Liu, C.; Yang, W.; Jiang, D. Deep transfer network with joint distribution adaptation: A new intelligent fault diagnosis framework for industry application. ISA Trans. 2020, 97, 269–281. [Google Scholar] [CrossRef] [Green Version]
  31. Lu, N.; Xiao, H.; Sun, Y.; Han, M.; Wang, Y. A new method for intelligent fault diagnosis of machines based on unsupervised domain adaptation. Neurocomputing 2021, 427, 96–109. [Google Scholar] [CrossRef]
  32. Liu, Y.; Zhong, L.; Qiu, J.; Lu, J.; Wang, W. Unsupervised Domain Adaptation for Nonintrusive Load Monitoring Via Adversarial and Joint Adaptation Network. IEEE Trans. Ind. Inf. 2022, 18, 266–277. [Google Scholar] [CrossRef]
  33. Ganin, Y.; Lempitsky, V. Unsupervised domain adaptation by backpropagation. In Proceedings of the International Conference on Machine Learning, PMLR, Lille, France, 6–11 July 2015; pp. 1180–1189. [Google Scholar]
Figure 1. Sucker rod pump system.
Figure 1. Sucker rod pump system.
Mathematics 10 01224 g001
Figure 2. The comparison between the actual and generated MPCs with different segments of the rod. (a) Generated power curves. (b) Actual power curve.
Figure 2. The comparison between the actual and generated MPCs with different segments of the rod. (a) Generated power curves. (b) Actual power curve.
Mathematics 10 01224 g002
Figure 3. The framework of the proposed approach.
Figure 3. The framework of the proposed approach.
Mathematics 10 01224 g003
Figure 4. Pseudo-label learning based on the mechanism analysis.
Figure 4. Pseudo-label learning based on the mechanism analysis.
Mathematics 10 01224 g004
Figure 5. A self-developed data acquisition and analysis equipment employed in the SRPS.
Figure 5. A self-developed data acquisition and analysis equipment employed in the SRPS.
Mathematics 10 01224 g005
Figure 6. Normal working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 6. Normal working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g006
Figure 7. Traveling valve leakage working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 7. Traveling valve leakage working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g007
Figure 8. Insufficient liquid supply working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 8. Insufficient liquid supply working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g008
Figure 9. Gas affected working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 9. Gas affected working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g009
Figure 10. Gas locking working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 10. Gas locking working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g010
Figure 11. Parting rod working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Figure 11. Parting rod working state. (a) Pump simulation. (b) Generated DC. (c) Generated MPC. (d) Actual MPC.
Mathematics 10 01224 g011
Figure 12. The confusion matrices of diagnosis result.
Figure 12. The confusion matrices of diagnosis result.
Mathematics 10 01224 g012
Figure 13. The trend of training accuracy and loss on the MADAN. (a) Accuracy. (b) Loss.
Figure 13. The trend of training accuracy and loss on the MADAN. (a) Accuracy. (b) Loss.
Mathematics 10 01224 g013
Figure 14. T-SNE feature visualization. (a) Source sample. (b) 1-D CNN. (c) DANN. (d) DATLN. (e) DTN. (f) MiDAN. (g) MADAN (ours).
Figure 14. T-SNE feature visualization. (a) Source sample. (b) 1-D CNN. (c) DANN. (d) DATLN. (e) DTN. (f) MiDAN. (g) MADAN (ours).
Mathematics 10 01224 g014
Table 1. The structure of the feature generator network.
Table 1. The structure of the feature generator network.
Layer
Type
Activation
Function
Kernel
Number
Kernel Size
× Stride
Output
Size
Input/// ( 1024 , 1 )
Conv1Relu1664 × 1 ( 16 , 1024 , 1 )
MaxPooling1/162 × 2 ( 16 , 512 , 1 )
Conv2Relu325 × 1 ( 32 , 512 , 1 )
MaxPooling2/322 × 2 ( 32 , 256 , 1 )
Conv3Relu645 × 1 ( 64 , 256 , 1 )
MaxPooling3/642 × 2 ( 64 , 128 , 1 )
Flatten/// ( 8192 , 1 )
FCRelu1024/ ( 1024 , 1 )
Table 2. The main parameters of the test well.
Table 2. The main parameters of the test well.
ParametersValueParametersValue
WellCYJ14-5-73HBMoterY250M-6
A 1 /mm7000n/min 1 4
A 2 /mm3110 P s /atm120
C/mm5790 P d /atm180
B/mm7210 γ g : γ w : γ o 0.1:0.2:0.2
G/mm1460 d p /mm44
D/mm3110 d r /mm22
R/mm1270 S p /mm 2 1520
W c k /kg5374 l i /m1600
W c b /kg5378 M i /kg5139.2
W u b /kg1229 M m o l /g·mol 1 16
Table 3. Diagnostic results with different amount of generated samples.
Table 3. Diagnostic results with different amount of generated samples.
MethodABCDE
Collected samples0240240240240
Generated samples3000150300450
1-D CNN0.7470.8630.9070.9330.94
CNN0.7130.8430.8830.900.9133
MCRF0.7330.8370.8830.8930.9067
Table 4. Detailed description of the compared methods.
Table 4. Detailed description of the compared methods.
MethodMDACDAPseudo-Labels
1-D CNN///
DANNMMD//
DATLNMMD + Adversail//
DTNMMDMMDPre-train network
MiDANAdversailMMDPre-train network
MADAN (ours)AdversailMMDMechanism + Classifier
Table 5. Comparison research under various methodologies.
Table 5. Comparison research under various methodologies.
MethodAccuracy (%)F1 (%)MCC (%)
1-D CNN83.3383.2579.9
DANN91.6791.3889.69
DATLN92.3392.1790.58
DTN95.3395.3494.39
MiDAN9797.0396.42
MADAN (ours)98.3398.5198.17
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hao, D.; Gao, X. Unsupervised Fault Diagnosis of Sucker Rod Pump Using Domain Adaptation with Generated Motor Power Curves. Mathematics 2022, 10, 1224. https://doi.org/10.3390/math10081224

AMA Style

Hao D, Gao X. Unsupervised Fault Diagnosis of Sucker Rod Pump Using Domain Adaptation with Generated Motor Power Curves. Mathematics. 2022; 10(8):1224. https://doi.org/10.3390/math10081224

Chicago/Turabian Style

Hao, Dezhi, and Xianwen Gao. 2022. "Unsupervised Fault Diagnosis of Sucker Rod Pump Using Domain Adaptation with Generated Motor Power Curves" Mathematics 10, no. 8: 1224. https://doi.org/10.3390/math10081224

APA Style

Hao, D., & Gao, X. (2022). Unsupervised Fault Diagnosis of Sucker Rod Pump Using Domain Adaptation with Generated Motor Power Curves. Mathematics, 10(8), 1224. https://doi.org/10.3390/math10081224

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop