Next Article in Journal
Hand Gesture Recognition on Edge Devices: Sensor Technologies, Algorithms, and Processing Hardware
Previous Article in Journal
Synthesising a Fixed-Length Equispaced Linear Array to Produce Dolph–Chebyshev Patterns with Deep Nulls, a Desired Side Lobe Level and Different Beamwidths
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fault Diagnosis Method for Oil Well Electrical Power Diagrams Based on Multidimensional Clustering Performance Evaluation

1
School of Electrical Information, Southwest Petroleum University, Chengdu 610500, China
2
School of Computer, University of Electronic Science and Technology of China, Chengdu 611731, China
*
Authors to whom correspondence should be addressed.
Sensors 2025, 25(6), 1688; https://doi.org/10.3390/s25061688
Submission received: 19 January 2025 / Revised: 22 February 2025 / Accepted: 6 March 2025 / Published: 8 March 2025
(This article belongs to the Section Fault Diagnosis & Sensors)

Abstract

:
In oilfield extraction activities, traditional downhole condition monitoring is typically conducted using dynamometer cards to capture the dynamic changes in the load and displacement of the sucker rod. However, this method has severe limitations in terms of real-time performance and maintenance costs, making it difficult to meet the demands of modern extraction. To overcome these shortcomings, this paper proposes a novel fault detection method based on the analysis of motor power parameters. Through the dynamic mathematical modeling of the pumping unit system, we transform the indicator diagram of beam-pumping units into electric power diagrams and conduct an in-depth analysis of the characteristics of electric power diagrams under five typical operating conditions, revealing the impact of different working conditions on electric power. Compared to traditional methods, we introduce fourteen new features of the electrical parameters, encompassing multidimensional analyses in the time domain, frequency domain, and time-frequency domain, significantly enhancing the richness and accuracy of feature extraction. Additionally, we propose a new effectiveness evaluation method for the FCM clustering algorithm, integrating fuzzy membership degrees and the geometric structure of the dataset, overcoming the limitations of traditional clustering algorithms in terms of accuracy and the determination of the number of clusters. Through simulations and experiments on 10 UCI datasets, the proposed effectiveness function accurately evaluates the clustering results and determines the optimal number of clusters, significantly improving the performance of the clustering algorithm. Experimental results show that the fault diagnosis accuracy of our method reaches 98.4%, significantly outperforming traditional SVM and ELM methods. This high-precision diagnostic result validates the effectiveness of the method, enabling the efficient real-time monitoring of the working status of beam-pumping unit wells. In summary, the proposed method has significant advantages in real-time performance, diagnostic accuracy, and cost-effectiveness, solving the bottleneck problems of traditional methods and enhancing fault diagnosis capabilities in oilfield extraction processes.

1. Introduction

The rod pumping system stands as the primary equipment in oilfield development for oil extraction. It not only plays a crucial role in the production process but also serves as an essential window into the dynamic information of underground reservoirs [1]. Consequently, real-time evaluation technology for rod pumping systems holds significant theoretical importance and practical value [2]. However, monitoring the operational status of rod pumping equipment poses substantial challenges due to the complex and harsh working conditions thousands of meters underground, where sensors for load and displacement must be deployed [3]. Traditional methods [4,5,6], such as on-site dynamometer cards, often fail to accurately and promptly reflect the working conditions of the pumping unit. This inadequacy can severely affect oilfield production efficiency and may lead to mechanical equipment damage [7].
In contrast, measuring the electrical parameters of the motor driving the pumping unit offers several advantages as follows: convenience, high accuracy, reliability, and cost-effectiveness [8]. These parameters are crucial for realizing the long-term online monitoring of the pumping unit system and present obvious application benefits. Despite these advantages, evaluation methods based on electrical parameters have not been deeply studied due to the lack of comprehensive models and effective data processing techniques [9].
In recent years, although some scholars have attempted to use motor power curves for fault diagnosis, most methods are limited to the analysis of single features or have limitations in data processing, failing to meet the real-time monitoring needs in big data environments. Moreover, existing classification and diagnosis methods lack effective evaluation mechanisms when handling multi-dimensional electrical parameter information, affecting the accuracy and reliability of the diagnostic results.
Therefore, to overcome the limitations of the existing fault diagnosis methods for pumping units based on electrical parameters, we propose a novel approach that combines multi-feature extraction with a fuzzy C-means clustering effectiveness evaluation function. Through this method, we construct a mathematical model to transform the dynamometer card into an electrical power diagram. We then extract multiple features, including the upstroke and downstroke power, cyclic power deviation, cragginess, and marginal spectral characteristics from the motor power curves under different operational conditions. Finally, we employ a novel fuzzy C-means clustering effectiveness function to classify and recognize the operational states of the pumping unit. The contributions of this study include the following: (1) We develop a new mathematical model to transform the dynamometer card into an electrical power diagram, facilitating more accurate and effective feature extraction and analysis.
(2) To address the issue of high computational complexity caused by the low utilization of feature maps in input features, we introduce fourteen new features for the electrical parameters, encompassing multidimensional analyses in the time domain, frequency domain, and time–frequency domain, significantly enhancing the richness and accuracy of feature extraction. By performing multi-feature extraction on electrical parameters, we uncovered a significant amount of fault information, solving the technical bottlenecks in current pumping unit fault diagnosis. This approach significantly reduces algorithm complexity and greatly enhances the accuracy of working condition identification.
(3) We proposed a new fuzzy C-means clustering effectiveness evaluation function, which employs a multidimensional clustering performance evaluation approach to assess the performance of clustering algorithms, overcoming the limitations of traditional clustering algorithms in terms of accuracy and the determination of the number of clusters, aiming to improve classification accuracy in pumping unit fault diagnosis.
This paper is structured as follows. Section 2 summarizes and reviews the relevant research in the field of fault diagnosis for pumping units. Section 3 employs dynamic mathematical modeling of the pumping system, calculates sample motor power curves under different operating conditions, analyses the characteristics of the electric power diagrams under five typical operating conditions, and extracts 14 features. Section 4 puts forward a novel fuzzy C-clustering validity function model for classification. Section 5 demonstrates the efficacy of feature extraction in this paper through field validation. Section 6 presents a discussion and summary.

2. Related Work

The intelligent fault diagnosis of pumping unit systems based on electrical parameters is an emerging and challenging topic in the oil and gas industry. Scholars have proposed numerous methods for diagnosing pumping unit faults, which can be categorized into numerical simulation methods, machine learning methods, and fuzzy theory methods. The details of these methods are described below.

2.1. Numerical Simulation Methods

In recent years, numerous scholars have explored the fault diagnosis of beam-pumping unit systems based on electrical parameters. Early work by [10] proposed a method for calculating the schematic diagram based on the motor power curve. However, due to the torque coefficient approaching zero near the upper and lower dead points, the calculated figure was not closed, resulting in significant errors. They further proposed a method to accurately identify the upper and lower deadspots, and they smoothed the motor power outliers near the deadspots to improve the accuracy. Nonetheless, this identification and smoothing method had limited practicality and faced operational challenges. The authors in [11] advanced this area by using motor power curves to analyze the efficiency of rod pumping systems more accurately and effectively. Similarly, ref. [12] proposed a soft measurement method that obtains an oscillogram using the motor input electrical parameters and the inclination of the traveling beam as inputs. Although these studies made progress in using motor power for well monitoring, the effectiveness of the motor power in pumping machine operations has not been fully analyzed.

2.2. Machine Learning Methods

Machine learning techniques have also been applied to this problem. The quality of feature extraction directly affects the performance and accuracy of machine learning algorithms. The authors in [13] conducted a frequency domain analysis of power curves using wavelet transforms for diagnosing rod pump failures. However, they noted that the motor power curve cannot be adequately characterized by frequency domain features alone. To address the limitations of traditional manual calculation and feature extraction methods, especially given the massive data generated by oilfield pumping machines, the authors in [14] established a mathematical model to convert the mechanical power diagram of pumping rods into an electrical diagram. Despite these advancements, traditional diagnostic methods struggled to adapt to large-scale data environments. The authors in [15] employed motor power data and the XGBoost algorithm to diagnose the working states of sucker rod pumps. However, the classification results were inaccurate because sand production—which can produce curves similar to gearbox faults—was not considered. To improve fault detection, the authors in [16] transformed the motor power curve into an oscillogram and extracted its features. They then used a Hidden Markov Model for fault detection. While these studies advanced the extraction of electrical parameter features, they lack a comprehensive multi-dimensional analysis of electrical parameter information.

2.3. Fuzzy Theory Methods

The application of fuzzy mathematics theory in the diagnosis of pumping unit failures has yielded encouraging outcomes in recent years. The determination of membership functions is fundamental to the application of fuzzy theory in studying fuzzy problems. In [17], a rough classifier based on the rough set theory was used to diagnose and identify five types of failures in rod pumps. Addressing the issue of supervised learning methods being highly dependent on training samples, the authors in [18] proposed an unsupervised learning approach for downhole fault diagnosis, introducing an improved fuzzy iterative self-organizing data analysis technique with “merging” and “splitting” mechanisms. In 2016, the authors in [19] proposed a method for diagnosing faults in sucker rod pumps based on wavelet moment features and fuzzy kernel clustering algorithms. More recently, ref. [20] introduced a methodology for the expeditious annotation of pumping well dynamometer cards based on K-means clustering. While the aforementioned studies have made notable strides in applying fuzzy mathematics theory to pumping unit fault diagnosis, there is a paucity of research on the reasonable and accurate evaluation of classification performance.
In summary, although significant progress has been made in diagnosing pumping unit faults using electrical parameters and fuzzy mathematics, the existing methods often face limitations in accuracy, practicality, or scalability. There remains a need for comprehensive models and effective data processing methods that leverage multi-dimensional electrical parameter information for more accurate and practical fault diagnosis in pumping units. This paper aims to fill this gap by introducing a novel approach that combines multiple electrical parameters’ feature extraction with an improved fuzzy C-means clustering effectiveness evaluation function.

3. Motor Power Sample Generation and Feature Extraction

The balance of the traveling beam-pumping unit can be directly gauged by the electric power diagram; however, there is currently no established set of electric power diagrams that can be used as a reference point for typical working conditions. This lack of a mature sample library of electric power diagrams hinders the application of electric power diagrams in the diagnosis of working conditions. In contrast, schematic diagrams have already accumulated a mature set of diagrams over time. In the preceding period, the mechanical mechanism of the traveling beam-pumping unit was analyzed, and a mapping model of the electric power diagrams and schematic diagrams was established. This has the potential to provide data and technical support for the diagnosis of working conditions based on electric power diagrams. In this section, an electric power generation model is constructed, and the motor power under five operating conditions is obtained by converting the schematic diagram. This is used to study the motor power characteristics under different operating conditions.

3.1. Mathematics of Beam-Pumping System Dynamics Modeling

This section primarily focuses on the theoretical modeling and simulation of the traveling beam-pumping unit system, detailing the method for calculating the electric power curve derived from the dynamometer cards. The electrical parameter simulation model is employed to simulate and analyze the surface machinery of traveling beam-pumping unit wells, as depicted in Figure 1.
This machinery primarily includes the beam-pumping unit, the reducer, and the motor. The pumping system, driven by the asynchronous motor, comprises the motor, the reducer, the four-link mechanism, and the oil pumping device. The torque output from the motor is transmitted to the gearbox via the belt transmission system, where the four-link mechanism converts the rotary motion from the gearbox into the up-and-down reciprocating motion of the suspension point. The simplified model of the entire surface system of the traveling beam-pumping unit is illustrated in Figure 2. To fulfill the system’s functional requirements, energy must be converted from electrical to mechanical form, as depicted in the motor power flow in Figure 3.

3.1.1. Studying Speed Fluctuations in Motion Accuracy Analysis

The schematic diagram of the motion mechanism of a conventional beam-pumping unit is shown in Figure 4, and the key parameters in the figure are listed in Table 1. The pumping machine kinematic parameters related to the pumping machine ground schematic are suspension point displacement s, suspension point velocity v, suspension point acceleration a, the torque factor T F ¯ , the angle of the traveling beam to the horizontal line δ , crank angle θ , and the number of strokes of the oil flushing machine n, etc. Among them, s, T F ¯ , and δ are only related to the motion position of the pumping machine. These parameters depend on the crank angle θ , which is a function of both the crank angle itself and the structural parameters of the pumping unit. Specifically, they can be expressed as follows:
f ( θ , R , C , L , K , P ) = ( s , T F ¯ , δ )

3.1.2. Electrical Parameter Simulation Model Based on the Polished Rod Dynamometer Card

The torque generated on the crankshaft by the structural weight of the pumping unit, excluding the overhanging point load, is denoted as T 0 [21], as follows:
T 0 = T y + T r + T B
where T 0 is the total torque; T y is the traveling beam equilibrium torque; T r is the crank balancing torque; and T B is the unbalanced weight balancing torque.
The torque generated on the crankshaft by the suspension point load is referred to as the pure rod load torque T w n , expressed as follows:
T w n = W T F ¯
T F ¯ = DRsin θ 2 sin π θ 0 ψ
where W is the suspension point load, T F ¯ is the torque factor, and T F ¯ can be derived from Equations (5)–(12), as follows:
α = sin 1 I K
β = sin 1 R L sin θ 2
L = R 2 + K 2 2 R K cos θ 2
θ 2 = 2 π θ 0 θ + α
θ 3 = cos 1 P 2 + L 2 C 2 2 P L β
θ 4 = cos 1 L 2 + C 2 P 2 2 P L β
χ = cos 1 C 2 + P 2 L 2 2 P L
ψ = χ + β
Considering the direction of torque, the total torque on the crankshaft is T n , expressed as follows:
T n = T w n T 0 = T w n T y T r T B
Ignoring the crank balance inertia torque when the following holds:
T n = T n
When the motor input power is below a certain threshold, the transmission efficiency of the motor, belt, and reducer increases as the motor input power increases (assuming the frequency converter remains unchanged). Consequently, the total transmission efficiency of the motor-belt-reducer system becomes a function of the motor input power, as follows:
η total = f P 1
Among them, η total can be obtained by testing the motor power at no load or by comparing the measured oscillogram with the motor input power.
By processing data that measures the real-time speed of the motor, we can also calculate the real-time number of revolutions of the motor. Since the transmission ratio of the belt reducer is fixed, each revolution of the motor corresponds to a crank rotation angle of 6.28 i belt i gearbox rad. The crank angle is expressed as follows:
θ = 2 m 0 π i total
where m 0 represents the accumulated revolutions of the motor from the pumping unit’s lower dead center; and i total is the total transmission ratio of the belt and the reducer.
Considering the instantaneous transmission efficiency of the four-link mechanism, the output shaft of the reducer provides the following torque:
T n = W + a g 1 B cos δ T F ¯ η b m Q e l R e 1 + Q e 2 R e 2 sin ( θ τ )
where Q e l and Q e 2 are the total weight of the crank and the balance block on both sides of the pumping unit; R e 1 and R e 2 are the distance between the center of gravity of the cranks and their balance blocks on both sides of the pumping unit and the crankshaft; τ is the phase angle of the pumping unit balance; η b m is the efficiency of the four-link mechanism; m is the efficiency index; when T F ¯ > 0, m = −1; and when T F ¯ < 0, m = 1.
Considering the motor speed fluctuation and drive system efficiency, the output torque of the reducer is calculated from the motor input power as follows [22]:
T n = i total n motor 9554 P 1 η 1 η 2 η 3 m
where P 1 is the inverter input power; η 1 η 2 η 3 represent the motor’s instantaneous efficiency, belt instantaneous efficiency and gearbox instantaneous efficiency; m is the efficiency index; when T n > 0, m = 1; when T n < 0, m = −1; n motor is the instantaneous motor speed; and i total is the total transmission ratio of the belt and the reducer.
The relationship between the motor input power and the suspension point load is expressed as follows:
P 1 = n motor W Q e 1 R e 1 + Q e 2 R e 2 sin ( θ τ ) η b k 2 9554 η 1 η 2 η 3 k 1 i total · η b k 2 n motor Q y K y cos δ A 1 K y a g A T F ¯ + B cos δ 1 a g T F ¯ 9554 η 1 η 2 η 3 k 1 i total · η b k 2
where T m is the motor’s electromagnetic torque, when T m > 0, k 1 = 1; and when T m < 0, k 1 = −1. When T F ¯ > 0, k 1 = 1; when T F ¯ < 0, k 1 = −1.

3.2. Motor Power Curve Analysis

In this section, according to the constructed electric power generation model, the dynamometer cards under five typical working conditions are converted, and the basic parameters of the five wells are shown in Table 2. The five working conditions chosen for analysis are frequently encountered and have a direct impact on the system’s performance and reliability in real-world operations. The “normal” condition signifies optimal performance, while conditions such as “insufficient liquid supply” and “gas-affected” are common operational challenges that affect the pump’s efficiency. “Gearbox failure” and “oil sands” are critical failure modes that can lead to severe damage if not detected early. These conditions were selected due to their relevance in typical oilfield pumping operations, where timely diagnosis can help prevent costly repairs and downtime.
By converting the dynamometer cards, the electric power diagrams under their corresponding working conditions are obtained from Figure 5, Figure 6, Figure 7, Figure 8 and Figure 9. As listed in Table 3, we can find that the calculated electric power and the measured electric power are well fitted within the allowable error range, and the converted electric motor power curves in this paper can better characterize the measured electric motor power curves. This is used to study the motor power characteristics under different operating conditions.
When the pump is operating normally, it means that all parts of the pumping unit system are functioning correctly, the well has sufficient fluid supply, and the submergence is deep. Additionally, the pump valves do not leak, and the pump operates with high efficiency, resulting in a relatively high oil production under normal operating conditions. The motor power curve is shown in Figure 10a, where the peak power values during the upstroke and downstroke are identical and the trends of the power curve are similar. At the end of loading and unloading during the downstroke, the power curve shows a distinct inflection point. The slope of the curve is steep during the loading and unloading segments, while the slope is smaller during the steady load segment.
The electric power diagram of the gas-affected condition is shown in Figure 10b. In the upstroke, due to the delayed opening of the standing valve, the load line of the electric power diagram changes gently, and the corresponding power curve does not have an obvious inflection point at the end of loading; in the downstroke, due to the delayed opening of the traveling valve, the unloading becomes slow, and the inflection point of the power curve is shifted to the left relative to the normal working condition. The peak power is the same for the upper and lower strokes.
The insufficient fluid supply electric power diagram is shown in Figure 10c. The trend of the power curve change in the upstroke is consistent with the normal working condition, and the power in the start-up section is lower and changes are smaller, which is because the polished load cannot be unloaded in time in the downstroke until unloading starts and the power curve rises rapidly. At the start and end points of unloading, the power curve shows an inflection point, and the time corresponding to this inflection point shifts to the left compared to under normal operating conditions. The time corresponding to the inflection point is shifted to the left relative to the normal working condition. If the liquid supply is seriously insufficient, the power in the downstroke cannot reach the maximum value under normal working conditions, so the power peak in the downstroke is slightly smaller than that in the upstroke.
The electric power diagram of sand production is shown in Figure 10d. The uncertainty of sand production leads to many spikes in the electric power curve.
The gearbox failure electric power diagram is shown in Figure 10e. Similar to the sand production power curve, there are many “spikes”, but the difference is that, at this time, the amplitude of the “spikes” is enhanced and there is periodic occurrence.

3.3. Feature Extraction Methods

3.3.1. Time Domain Analysis

Through the analysis in this paper, different operating states correspond to different motor power curves; therefore, the diagnosis of pumping machine operating conditions can be realized by varying electric power over time. Nine features are defined in the time domain as follows:
1. Upstroke power. The sum of the work done by the motor during the upstroke of the pumping unit operation is called the upstroke work, expressed as follows:
ψ 1 = E upstroke = 0 t top . dead . center p ( t ) d t
2. Downstroke power. The sum of the work done by the motor during the downstroke of the pumping unit operation is called the downstroke work. In fault conditions, the electric power diagram tends to show noticeable fluctuations in the downstroke curve, expressed as follows:
ψ 2 = E downstroke = t downdead . center T P ( t ) d t
3. Cycle work deviation. Under normal operating conditions, the upstroke and downstroke work of a beam-pumping unit are generally balanced. However, when a fault occurs, a significant disparity in work between the two strokes may emerge, expressed as follows:
ψ 3 = e = E upstroke E downstroke
4. Power balance degree:
ψ 4 = B = E ¯ upstroke E ¯ downstroke × 100 %
E ¯ upstroke : average upstroke power; E ¯ upstroke : average downstroke power. Generally, the balance of a pumping unit system is determined by whether the degree of balance falls between 80% and 110%. It is commonly accepted that if the degree of balance exceeds 1.1, the pumping unit is underbalanced, and if the degree of balance is less than 0.8, the unit is overbalanced.
5. First-order moment statistics: The mean, quantile and triple mean. The mean describes the centralized location of the order data and is considered a stable component of the signal. The sample mean is generally calculated according to the following formula:
ψ 5 = X ¯ = 1 N i = 1 N x i ( t )
Sort the data from smallest to largest in a new order as x ( 1 ) x ( 2 ) x ( 3 ) x ( n ) . Let 0 p 1 , then, the P-quartile is expressed as follows:
ψ 6 = M P = x ( [ n p ] + 1 ) , n P is not an integer 1 2 x ( n p ) + x ( n p + 1 ) , n P is an integer
where [ n P ] stands for n multiplied by P and then rounded.
The triple mean is the weighted average of the upper quartile, median and lower quartile, calculated as follows:
ψ 7 = M ^ = 1 4 M 0.25 + 1 2 M 0.5 + 1 4 M 0.75
6. Second-order moment statistics: The mean square value and variance. The mean square value can be used to represent the energy of a vibration signal when describing the vibration signal, expressed as follows:
ψ 8 = X rms 2 = 1 N i = 1 N x i 2 ( t )
Variance, also known as the second-order central moment, is a statistic that describes the relative dispersion of data values:
ψ 9 = s 2 = 1 N 1 i = 1 N x i 2 ( t ) 2 X ¯ i = 1 N x i ( t ) + N X ¯

3.3.2. Time–Frequency Domain Analysis

The shape characteristics of the electric power diagram curve of the pumping machine can accurately show the working state of the pumping machine under certain faults, but this also has certain limitations. Sand production failure occurs when sand particles enter the pump, creating significant resistance to the movement of the plunger. This resistance leads to the vibration of the pumping rod, which is also reflected as strong vibrations in the electric power diagram. Reduction gearbox failure primarily involves broken teeth on the gears. Such gear damage can cause violent impacts, leading to large high-frequency fluctuations in motor power. During this time, the power diagram’s frequency curve becomes rich with information. A typical power diagram is shown in Figure 10d,e. At this point, these two conditions cannot be effectively identified solely through the changes in the power diagram during the upstroke and downstroke. Therefore, it is necessary to analyze the time–frequency information of the power diagram to accurately diagnose these conditions. To address this, feature extraction of the electropower diagram using the improved Hilbert–Huang transform [23,24] is explored to enhance the characterization of the electropower diagram.
The improved Hilbert–Huang Transform (HHT) consists of the following two components: the CEEMDAN decomposition and the Hilbert transform. HHT is a method used to analyze non-linear and non-stationary signals, which are commonly encountered in real-world fault diagnosis scenarios. The CEEMDAN decomposition enhances the traditional Empirical Mode Decomposition (EMD) algorithm by addressing the issue of mode mixing through the addition of adaptive Gaussian white noise and the iterative averaging of the primary Intrinsic Mode Function (IMF) components. This refinement improves the accuracy and stability of signal decomposition, allowing for the more precise extraction of features from complex signals. The Hilbert transform is then applied to the decomposed IMFs to obtain instantaneous frequency and amplitude information, which can be used for further analysis and fault detection. By combining these two components, HHT offers a powerful tool for analyzing signals that exhibit time-varying and frequency-varying characteristics, such as those found in oilfield pumping systems.
The specific steps of CEEMDAN decomposition are as follows:
First, add Gaussian white noise components with zero mean and unit variance, decomposed from the EMD, to the original signal x. The local mean decomposition sequence is as follows:
x i ( t ) = x ( t ) + ε 0 E 1 ξ i ( t )
Obtain the local mean signal of the decomposed sequence M x ( t ) + ε 0 E 1 ξ i ( t ) , and use this to obtain the first residue, as follows:
r 1 ( t ) = M x i ( t ) i = ( 1 , 2 S )
At this point, the first mode at the first stage ( i . e ., when k = 1) can be obtained as follows:
I M F 1 ( t ) = x ( t ) r 1 ( t )
Next, to estimate the second residue, white noise is added to the first residue r 1 as the second local mean M r 1 ( t ) + ε 1 E 2 ζ i ( t ) , and the second mode component is defined as follows:
I M F 2 ( t ) = r 1 ( t ) r 2 ( t ) = r 1 ( t ) M r 1 ( t ) + ε 1 E 2 ξ i ( t )
Furthermore, when stage k cannot be decomposed, the k t h residual is computed as follows:
I M F k ( t ) = r k 1 ( t ) r k ( t )
The Hilbert transform is applied to each of the above IMF components separately to obtain the following:
c i ( t ) = 1 π c i ( τ ) t τ d τ
Construct a parser function as follows:
z i ( t ) = c i ( t ) + j c ^ i ( t ) = a i ( t ) e j φ i ( t )
Expanding Equation (34) yields the Hilbert spectrum of x ( t ) , denoted as follows:
H ( ω , t ) = Re i = 1 n a i ( t ) e j ω i ( t ) d t
Then, the Hilbert marginal spectrum is expressed as follows:
h ( ω ) = 0 T H ( ω , t ) d t
where T is the total signal duration. The Hilbert marginal spectrum h ( ω ) clearly reveals the distribution of the original signal x ( t ) based on frequency changes. It reflects how the amplitude of x ( t ) varies at any given frequency point within the entire frequency distribution. The IMF components and marginal spectra for typical working conditions obtained by the modified Hilbert yellow transform are shown in Figure 11.
Since the sampling period is 50 ms, according to Shannon’s theorem, the marginal spectrum contains only 0–10 Hz signals. This can be seen through the marginal spectrum of Figure 12.
The energy distribution of the electric power diagrams under different working conditions is different, the energy of the low-frequency signals from 0 to 2 Hz mainly originates from the movement of the pumping rods, and the signal components of the higher frequency signals from 2 to 10 Hz are mainly due to the failure of the reduction gearboxes and mechanical vibration caused by the sand production. Although the amplitude of the abnormal frequency is much smaller than the base frequency, long-term wear may waste power. When sand production in the reservoir is severe, it may cause production reduction and shutdown, which may seriously affect the oil well production and cause economic loss. Therefore it is crucial to analyze the electric power signal in time and frequency domain.
The cliff value, which is very sensitive to the vibration signal, is chosen to screen the characteristic signal parameters for determining the vibration, and for a given discrete vibration signal, the cliff coefficient K is expressed as follows:
K = 1 N i = 1 N n i n ¯ σ t 4
where i represents the position of the discrete point in the component; n i represents the signal value; n ¯ represents the signal mean; N represents the sampling length; and σ t represents the standard deviation.
The crags of all IMF components were found and normalized according to the following quation:
ψ 10 = K i = K i i = 1 m K i
where i represents the IMF component labeling, and m represents the number of IMF components.
In addition, the Hilbert marginal spectrum can reflect the cumulative distribution of the energy of the vibration generated at different frequencies during the occurrence of faults. Therefore, frequency features and energy region change features are extracted for the Hilbert marginal spectrum. Three frequency features are defined as follows:
(1) Center of mass frequency (FC):
ψ 11 = F C = 1 2 π Δ f i N f i X i i N X i
(2) Mean square frequency (MSF):
ψ 12 = M S F = 1 4 π 2 Δ f 2 i N f i 2 X i i N X i
(3) Frequency variance (VF):
ψ 13 = V F = 1 4 π 2 Δ f 2 i N f i F C 2 X i i N X i
where N is the length of the data, f i is the ith frequency value, X i is the amplitude corresponding to f i , and Δ f is the frequency resolution.
The steps for the energy region change feature extraction are as follows:
Step 1: Observe the results of the change in the energy of the marginal spectral distribution with frequency, and equalize it into five sub-intervals with different energy distributions, according to the range of frequencies.
Step 2: Sum the energies in each sub-interval. Let E i be the sum parameter for the ith range interval.
E i = k = 1 N c ik 2
where C ik ( i = 1 , 2 , n ; k = 1 , 2 , N ) represents the amplitude of the ith discrete point, and N is the number of sampling points.
Step 3: Find the sum parameter of the energy over the entire frequency range interval, given by E.
Step 4: Normalize by E normalized to the baseline; the characteristic parameter of the ith sub-interval X i is expressed as follows:
X i = E i / E
Step 5: The marginal spectrum energy transformation feature vector X is given by the following:
ψ 14 = X = X 1 , X 2 , X 3 , X 4 , X 5

4. Fuzzy C-Mean Clustering Effectiveness Evaluation Function

The Fuzzy C-Means (FCM) clustering algorithm is a classical clustering method proposed by [25] and popularized by [26]. The FCM algorithm is widely used in several fields such as highway pavement condition detection [27], image segmentation [28], medical detection [29], and data mining [30]. In this paper, we propose a new FCM clustering effectiveness evaluation function based on multiple clustering performance evaluation modules by combining fuzzy affiliation and datasets characterized by overlapping samples, noisy data, high dimensionality, and a higher number of samples. Firstly, five modules are proposed to define the compactness, overlap, cluster shape, similarity, and separation of the data (as shown in Table 4); then, the clustering validity evaluation function is constructed based on the proposed clustering performance evaluation module, and the minimum value of its function indicates the best clustering result. Finally, the clustering validity function based on the multi-clustering performance evaluation module is used to conduct the simulation experiments on 10 UCI datasets.
Five clustering performance evaluation modules based on tightness, overlap, cluster shape, similarity, and separation definitions constitute a ratio type of clustering validity function defined as follows:
V LXY = i = 1 c j = 1 n u i j 2 x j v i 2 + min i j 1 n j = 1 n 1 u i k u j k + λ max , i λ min i min 1 i c j = 1 n u i j 2 + min i k v i v k 2 + 1 c i = 1 c v i v ¯ 2
The following section applies V L X Y to the FCM clustering algorithm, and the algorithmic flow for obtaining the optimal number of clusters is illustrated in Figure 13.
The process of the FCM clustering algorithm based on V LXY of FCM clustering algorithm process is as follows:
Step 1: Given the maximum number of clusters c max
c max n , the maximum number of iterations I max , the fuzzy index m ( 1.5 m 2.5 ) , and the termination threshold ε .
Step 2: Initialize the membership matrix U, the cluster center V and the number of clusters c.
Step 3: Update the fuzzy partition matrix U ( t + 1 ) and cluster center V ( t + 1 ) , and judge whether e = v t + 1 v t is less than ε . If e < ε , go to Step 4. Otherwise, if e ε , then go to Step 2.
Step 4: Let c = c + 1 , use the FCM clustering algorithm to calculate the minimum value of V L X Y , and obtain the optimal solution of c. If c < c m a x , repeat Step 2. If c c m a x , go to Step 5.
Step 5: Select the number of clusters m i n V L X Y ( U , V , c o ) corresponding to c o as the optimal number of clusters, and finally, output the value of V L X Y .
In order to verify the V L X Y , the effectiveness of clustering on complex datasets, the following simulation experiments are conducted again using the UCI dataset. The real datasets selected for the experiment are the WBC, Ionosphere, Heartstatlog, Haberman, CMC, Jain, Thyroid, Robotnavigation, Seeds, and Diabetes datasets in the UCI database, and the data volume, categories, and attributes of each UCI dataset are shown in Table 5.
The experimental results are analyzed, and when dealing with datasets with overlapping samples, noisy data, high dimensionality, and a higher number of samples, the V L X Y ideal number of clusters can be found.
From the experimental results in Figure 14 and Table 6, it can be seen that V L X Y , the optimal number of classifications, can be found for the full UCI dataset and that the ideal number of clusters can still be found for datasets with overlapping samples, noisy data, high dimensionality, and a high number of samples.

5. Experimental Results

5.1. Data Collection

In order to prove the effectiveness of the method which is shown in Figure 15, the motor power data and working status information of 128 wells were collected by logging on to the oil and gas production IoT platform of the L oilfield in Xinjiang, as shown in Figure 16.
The on-site electrical measurement system measures and records all electrical parameters, including voltage, current, and phase angle, to analyze both the electrical and mechanical performance of the pumping unit. Its sensors can be permanently installed inside the electrical enclosure and connected via waterproof connectors on the enclosure’s side to a small plug-in radio, enabling wireless communication with the PC station. This setup allows measurements to be taken without opening the electrical enclosure. The TAM software version 2.3 on the PC receives and analyzes the collected data to evaluate key metrics such as power consumption, power generation, pump unit balance, gearbox torque during the upstroke and downstroke, motor load, and power line loss. There are five kinds of motor working statuses as follows: normal, gas influence, insufficient fluid supply, gearbox failure, and sand production. After data cleaning, in order to evaluate the accuracy of the classification results of the unsupervised learning algorithm, the obtained electric power dataset of size 250 is labeled as shown in Table 7.

5.2. Feature Extraction

First, the electrical parameter signals are normalized using the maximum–minimum normalization method, which is publicized as follows:
p k = p k p min p max p min
where p m i n is the minimum value in the data series; and p m a x is the maximum value in the data series.
Then, the time domain features are extracted using Equations (20)–(28). Furthermore, the frequency domain and time–frequency domain features are extracted according to Equations (39)–(45). Finally, 14 features are obtained.

5.3. Experimental Results

The electric power dataset that has been labeled is clustered using the fuzzy c-clustering validity function algorithm, and in accordance with previous a priori knowledge, it is possible to determine the fuzzy indices 1.5 m 2.5 and the number of clusters 2 c n . In this paper, we choose m = 2 , 2 c 14 to carry out the simulation experiments. Firstly, we judge whether the fuzzy c-clustering validity function can give the best number of clusters on the petroleum dataset, and then, we judge whether its classification is accurate.
As shown in Figure 17, V L X Y can determine the optimal number of clusters in the dataset.
From Table 8 it can be seen that the classification accuracy of normal and gas influence faults is 100%, the classification accuracy of insufficient fluid supply and sand production is 98%, and the reduction gearbox faults are classified with an accuracy of 96%. Analyzing the classification results, one sample of insufficient fluid supply was wrongly classified as insufficient fluid supply, and three samples were wrongly classified as sand production and gearbox faults. The 98.4% accuracy of the model is accurate and valid because the difference in electric power between insufficient fluid supply and the gas influence in continuous operation of a traveler beam-pumping unit is small, and it is difficult for experienced engineers to give accurate judgments, which is a similar situation with sand production and reduction gearbox failures.
SVM and ELM models are selected for comparison due to their strong performance in classification tasks, particularly in the context of fault diagnosis for complex, non-linear systems. SVM can map data to a higher-dimensional space via kernel functions, effectively capturing intricate fault patterns. Meanwhile, ELM uses a single-layer feed-forward network with randomly initialized hidden nodes, offering significantly faster training times while still capturing non-linear relationships. These properties make both models suitable benchmarks for fault diagnosis in this study. To ensure a comprehensive comparison, we rigorously optimized the hyperparameters of the SVM and ELM models. For SVM, a grid search was performed over the regularization parameter C and the kernel coefficient γ , with a quadratic rational kernel selected based on cross-validation performance. For ELM, the number of hidden layer nodes was systematically varied (50–500 nodes), and the sigmoid activation function was adopted to balance nonlinear representation and computational efficiency. The optimal configurations for SVM and ELM were identified through a 10-fold cross-validation on the training dataset. The implementation of SVM relies on the libsvm toolbox. In this study, the SVM model adopts a quadratic rational kernel, a kernel function that can effectively deal with the nonlinear features of the data, and finds the optimal decision boundary by transforming to a higher dimensional space.The ELM model adopts an enhanced stochastic neural network structure, a structure that can quickly deal with the nonlinear features of the data, and effectively improves the training speed and generalization ability of the model by randomly generating hidden layer nodes. The confusion matrices of SVM and ELM are shown in Figure 18. It can be seen that the classification accuracy of SVM in training is 90.8%, and the classification accuracy of ELM is 92%.The test results of the three models are shown in Table 9.
From the analysis of the experimental results, all three methods exhibit high classification accuracy, demonstrating the effectiveness of the multi-feature extraction electrical parameter method proposed in this paper for diagnosing the working conditions of pumping wells. The FCM clustering validity function V L X Y , based on the multi-cluster performance evaluation module, is capable of identifying the optimal number of clusters when handling UCI datasets and petroleum datasets with overlapping samples, noise, high dimensionality, and a large number of samples. This performance highlights the superiority of the classification model proposed in this paper.

5.4. Application in Engineering Practice

The fault diagnosis technology proposed in this paper has high simulation accuracy, but the oilfield production site is complex and has many uncontrollable factors, therefore, in order to verify the effectiveness of this technology in actual production, it is tested in an oil well in Xinjiang.
The electric power diagram for Well T13303, measured on 3 October 2023, is shown in Figure 19.
The operating condition identification system diagnosed a gearbox failure, prompting maintenance personnel to promptly repair the gearbox. After the equipment was shut down for maintenance, production was resumed. A reduction in power loss was observed, and the post-maintenance electric power diagram indicates normal operation, confirming the effectiveness of this technology in real-world production processes.

6. Conclusions

In this paper, a new method for the fault diagnosis of traveling beam-pumping units based on electric power is designed. Due to the small sample of faulty electric power, the dynamic mathematical model of the pumping unit system is first established by considering the geometrical parameters and working parameters of the traveling beam-pumping unit, and the electric power curve is obtained through calculation and compared with the theoretical electric power curve to verify the characteristics of the electric power curve under different working conditions. Then, 14 new features in the time domain, frequency domain, and time–frequency domain are proposed in combination with the working mechanism of the traveling beam-pumping unit, and finally a fuzz c-clustering effectiveness function classification model is established for classification. Subsequently, the proposed method was tested using the electric power dataset from the L oilfield in China. The experimental results show that the new feature extraction method proposed in this paper can accurately characterize the motor power curves under different working conditions, with classification accuracies of over 90% in the FCM, SVM, and ELM models. Additionally, the fuzzy c-means clustering validity function classification model proposed in this paper achieved an accuracy of 98.4%, outperforming the other two methods. Finally, the effectiveness of this method has been demonstrated in engineering practice. The current system exhibits limitations in generalizability across variable real-world operational conditions and scalability to larger datasets or diverse pumping units, with computational efficiency concerns under expanded data volumes. Additionally, its diagnostic accuracy is constrained by the insufficient representation of rare failure modes in training data. Future research should prioritize adaptive modeling techniques for environmental dynamics and fault tolerance, computational optimization for real-time processing at scale, and enhanced failure detection through data augmentation with atypical failure cases or semi-supervised anomaly detection frameworks. Validation should extend to cross-unit applicability and extreme operational scenarios to strengthen robustness.

Author Contributions

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

Funding

This research was funded by the National Natural Science Foundation of China; grant number, 62006200.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sun, Z. The Real-Time Evaluation Method for the Beam-Pump Recovery System. Ph.D. Thesis, China University of Petroleum, Shandong, China, 2011. [Google Scholar]
  2. 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]
  3. Zhang, K.; Wang, Q.; Wang, L.; Zhang, H.; Zhang, L.; Yao, J.; Yang, Y. Fault Diagnosis Method for Sucker Rod Well with Few Shots Based on Meta-Transfer Learning. J. Pet. Sci. Eng. 2022, 212, 110295. [Google Scholar] [CrossRef]
  4. Li, K.; Gao, X.W.; Yang, W.B.; Dai, Y.L.; Tian, Z.D. Multiple fault diagnosis of down-hole conditions of sucker-rod pumping wells based on Freeman chain code and DCA. Pet. Sci. 2013, 10, 347–360. [Google Scholar] [CrossRef]
  5. Cheng, H.; Yu, H.; Zeng, P.; Osipov, E.; Li, S.; Vyatkin, V. Automatic recognition of sucker-rod pumping system working conditions using dynamometer cards with transfer learning and svm. Sensors 2020, 20, 5659. [Google Scholar] [CrossRef]
  6. Han, Y.; Li, K.; Ge, F.; Xu, W. Online fault diagnosis for sucker rod pumping well by optimized density peak clustering. ISA Trans. 2022, 120, 222–234. [Google Scholar] [CrossRef]
  7. Lv, X.X.; Wang, H.X.; Xin, Z.; Liu, Y.X.; Zhao, P.C. Adaptive Fault Diagnosis of Sucker Rod Pump Systems Based on Optimal Perceptron and Simulation Data. Pet. Sci. 2022, 19, 743–760. [Google Scholar] [CrossRef]
  8. Tan, C.; Feng, Z.M.; Liu, X.; Fan, J.; Cui, W.; Sun, R.; Ma, Q. Review of Variable Speed Drive Technology in Beam Pumping Units for Energy-Saving. Energy Rep. 2020, 6, 2676–2688. [Google Scholar] [CrossRef]
  9. Zhang, R.; Wang, Z.; Wang, X.; Wang, J.; Zhang, G.; Chen, D. Integrated diagnostics method and application of ground and downhole working condition in rod pumping well. J. Appl. Sci. Eng. 2018, 21, 615–624. [Google Scholar]
  10. Hujunamp, L.; Jifen, Z.; Lianyou, Z. Predicting Dynamometer Cards by Actual Motor Power Curves. Pet. Geol. Oilfield Dev. Daqing 1991, 10, 63–67. [Google Scholar]
  11. Yin, X.; Du, Z.; Wang, Y.; Lu, S.; Li, Y.; Zhao, T. Analysis and Experimental Study of Oil Well Indicator Diagram Based on Electric Parameter Method. Energy Rep. 2022, 8, 734–745. [Google Scholar] [CrossRef]
  12. Zhao, H.; Wang, J.; Liu, T.; Yu, Y.; Hu, D.; Cai, C. Research on the Soft-Sensing Method of Indicator Diagram of Beam Pumping Unit. Sensors 2024, 24, 1794. [Google Scholar] [CrossRef] [PubMed]
  13. Gillis, J.M.; Morsi, W.G. Non-Intrusive Load Monitoring Using Semi-Supervised Machine Learning and Wavelet Design. IEEE Trans. Smart Grid 2016, 8, 2648–2655. [Google Scholar] [CrossRef]
  14. Zhang, R.; Chen, D.; Lu, N.; Zhang, B.; Yang, Y. Intelligent Diagnosis Model of Working Conditions in Variable Torque Pumping Unit Wells Based on an Electric Power Diagram. Processes 2023, 11, 1166. [Google Scholar] [CrossRef]
  15. 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]
  16. 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]
  17. Wang, J.; Bao, Z. Study on Pump Fault Diagnosis Based on Rough Sets Theory. In Proceedings of the International Conference on Innovative Computing Information and Control, Dalian, China, 18–20 June 2008. [Google Scholar]
  18. Li, K.; Gao, X.W.; Zhou, H.B. Fault Diagnosis for Down-Hole Conditions in Beam Pumping Units Based on an Improved Fuzzy Iterative Self-Organizing Data Analysis Technique. In Proceedings of the 2013 10th International Conference on Fuzzy Systems and Knowledge Discovery (FSKD), Shenyang, China, 23–25 July 2013; pp. 279–284. [Google Scholar]
  19. Rui, C.; Yaxun, Y. Research on Dynamometer Diagram Diagnosis Method Based on Wavelet Moment and Fuzzy Kernel Clustering. Mech. Des. Manuf. Eng. 2016, 45, 80–83. [Google Scholar]
  20. Wang, X.; Shao, Z.; Shen, Y.; He, Y. Research on Fast Marking Method for Indicator Diagram of Pumping Well Based on K-Means Clustering. Heliyon 2023, 9, 10. [Google Scholar] [CrossRef]
  21. Huanwu, C. Development of a Tester for the Balance State of Beam Pumping Units. Ph.D. Thesis, Zhejiang Universiy, Hangzhou, China, 2011. [Google Scholar]
  22. Song, F.; Niu, Z. Research on Control System of Underground Coal Mine Detection Robot Based on Model Reference Adaptation. Coal Min. Mach. 2013, 34, 51–53. [Google Scholar]
  23. Aiswarya, N.; Suja Priyadharsini, S.; Moni, K. An Efficient Approach for the Diagnosis of Faults in Turbo Pump of Liquid Rocket Engine by Employing FFT and Time-Domain Features. Aust. J. Mech. Eng. 2018, 16, 163–172. [Google Scholar] [CrossRef]
  24. Lawson, G.; Sosonkina, M.; Ezer, T.; Shen, Y. Applying EMD/HHT Analysis to Power Traces of Applications Executed on Systems with Intel Xeon Phi. Int. J. High Perform. Comput. Appl. 2020, 34, 187–198. [Google Scholar] [CrossRef]
  25. Dunn, J.C. Well-Separated Clusters and Optimal Fuzzy Partitions. J. Cybern. 1974, 4, 95–104. [Google Scholar] [CrossRef]
  26. Bezdek, J.C.; Coray, C.; Gunderson, R.; Watson, J. Detection and Characterization of Cluster Substructure I. Linear Structure: Fuzzy c-Lines. SIAM J. Appl. Math. 1981, 40, 339–357. [Google Scholar] [CrossRef]
  27. Lin, L.; Li, S.; Wang, K.; Guo, B.; Yang, H.; Zhong, W.; Liao, P.; Wang, P. A New FCM-XGBoost System for Predicting Pavement Condition Index. Expert Syst. Appl. 2024, 249, 123696. [Google Scholar] [CrossRef]
  28. Sun, H.; Liu, L.; Li, F. A Lie Group Semi-Supervised FCM Clustering Method for Image Segmentation. Pattern Recognit. 2024, 155, 110681. [Google Scholar] [CrossRef]
  29. Krishnakumar, B.; Kousalya, K. FCM-DCS: Fuzzy C-Means Distorted Contour-Based Segmentation Model for Breast Cancer Detection. Neurocomputing 2024, 599, 127937. [Google Scholar] [CrossRef]
  30. Sun, F.; Li, L.; Bian, D.; Ji, H.; Li, N.; Wang, S. Short-Term PV Power Data Prediction Based on Improved FCM with WTEEMD and Adaptive Weather Weights. J. Build. Eng. 2024, 90, 109408. [Google Scholar] [CrossRef]
Figure 1. The diagram of the schematic of sucker rod pump: (1) electrical power diagram, (2) the perforation holes.
Figure 1. The diagram of the schematic of sucker rod pump: (1) electrical power diagram, (2) the perforation holes.
Sensors 25 01688 g001
Figure 2. Simplified model of pumping unit.
Figure 2. Simplified model of pumping unit.
Sensors 25 01688 g002
Figure 3. Motor power flow diagram.
Figure 3. Motor power flow diagram.
Sensors 25 01688 g003
Figure 4. Schematic diagram of the beam-pumping unit mechanism.
Figure 4. Schematic diagram of the beam-pumping unit mechanism.
Sensors 25 01688 g004
Figure 5. 1#—Normal.
Figure 5. 1#—Normal.
Sensors 25 01688 g005
Figure 6. 2#—Gas-affected.
Figure 6. 2#—Gas-affected.
Sensors 25 01688 g006
Figure 7. 3#—Insufficient liquid supply.
Figure 7. 3#—Insufficient liquid supply.
Sensors 25 01688 g007
Figure 8. 4#—Oil sands.
Figure 8. 4#—Oil sands.
Sensors 25 01688 g008
Figure 9. 5#—Gearbox failure.
Figure 9. 5#—Gearbox failure.
Sensors 25 01688 g009
Figure 10. Theoretical electric power diagrams: (a) normal. (b) gas-affected. (c) insufficient liquid supply. (d) oil sands. (e) gearbox failure.
Figure 10. Theoretical electric power diagrams: (a) normal. (b) gas-affected. (c) insufficient liquid supply. (d) oil sands. (e) gearbox failure.
Sensors 25 01688 g010
Figure 11. IMF components. (a) Normal. (b) Gearbox failure.
Figure 11. IMF components. (a) Normal. (b) Gearbox failure.
Sensors 25 01688 g011
Figure 12. Marginal spectrum. (a) Normal. (b) Gearbox failure.
Figure 12. Marginal spectrum. (a) Normal. (b) Gearbox failure.
Sensors 25 01688 g012
Figure 13. Flowchart of FCM clustering algorithm based on the proposed validity function.
Figure 13. Flowchart of FCM clustering algorithm based on the proposed validity function.
Sensors 25 01688 g013
Figure 14. Trends in the clustering validity function.
Figure 14. Trends in the clustering validity function.
Sensors 25 01688 g014
Figure 15. Fault diagnosis flowchart for pumping wells.
Figure 15. Fault diagnosis flowchart for pumping wells.
Sensors 25 01688 g015
Figure 16. IoT platform for oil and gas production.
Figure 16. IoT platform for oil and gas production.
Sensors 25 01688 g016
Figure 17. Trends in the clustering validity function.
Figure 17. Trends in the clustering validity function.
Sensors 25 01688 g017
Figure 18. Confusion matrix of SVM and ELM. (a) SVM. (b) ELM.
Figure 18. Confusion matrix of SVM and ELM. (a) SVM. (b) ELM.
Sensors 25 01688 g018
Figure 19. Measured electric work diagram.
Figure 19. Measured electric work diagram.
Sensors 25 01688 g019
Table 1. Basic parameters of the beam-pumping unit.
Table 1. Basic parameters of the beam-pumping unit.
ParameterSymbolUnit
Crank radiusRm
Connecting rod lengthPm
Beam rear arm lengthCm
Base rod lengthKm
Beam front arm lengthDm
Horizontal projection of the base rodIm
Table 2. Basic parameters of the oil well.
Table 2. Basic parameters of the oil well.
Oil-Well Tag1#2#3#4#5#
Pumping unit typeCYJ5-2.5-26HBCYJ5-2.5-26HBCYJ6-2.5-26HBCYJ8-3-48HBCYJ10-3-53HB
Total transmission ratio of the gearbox34.35734.35734.35730.187530.1875
Rated load (KN)50506060100
Rated voltage (V)380380380380380
Rated power (KW)2222223837
Beam forearm (mm)25002500250030003000
Beam rear arm (mm)24002400240025002500
Connecting rod length (mm)30263026230032003200
Base pole vertical distance (mm)29522952320032003280
Base pole horizontal distance (mm)28202820230024002990
Crank radius (mm)19351935248718401950
Crank center of gravity radius (mm)850850670790625
Single block crank quality (kg)58058075017721740
Single balance weight mass (kg)7007006509901075
Structural unbalanced weight (KN)0.230.232.85−0.862.25
Motor speed (r/min)730730730980980
Oil well conditionsNormalGas-affectedInsufficient liquid supplyOil sandsGearbox failure
Table 3. Evaluation indicators for different oil wells.
Table 3. Evaluation indicators for different oil wells.
Indicator1#2#3#4#5#
MSE0.006050.019050.018690.029050.03926
MAE0.063550.074350.069740.144350.17256
RSE0.182270.279380.289500.439380.47262
Table 4. Clustering validity evaluation modules.
Table 4. Clustering validity evaluation modules.
ModulesFormulaFeatures of the Module
Compactness Com = i = 1 c j = 1 n u i j 2 x j v i 2 Represents the sum of distances between the cluster center v i and the data sample x j . A smaller value indicates higher similarity and tighter data within the class.
Overlap Ove = min i j 1 n j = 1 n 1 | u i k u j k | Measures the overlap between clusters based on a membership degree. A smaller Ove value indicates better separation of overlapping data.
Cluster shape Cs = λ max , i λ min , i The ratio of the maximum eigenvalue ( λ max , i ) to the minimum eigenvalue ( λ min , i ) of the covariance matrix of cluster i. Smaller ratios indicate cluster shapes closer to a sphere.
Similarity Sim = min 1 i c j = 1 n u i j 2 Represents the sum of squares of membership degrees. Larger Sim values indicate higher similarity within the cluster.
Separation1 Sep 1 = min i k v i v k 2 Defines the minimum distance between any two cluster centers. Larger Sep1 values indicate better separation between clusters.
Separation2 Sep 2 = 1 c i = 1 c v i v ¯ 2 Represents the average distance between cluster centers and their equilibrium point. Larger Sep2 values indicate better separation between clusters.
Table 5. UCI datasets used in component experiments.
Table 5. UCI datasets used in component experiments.
DatasetData NumbersAttributesClasses
WBC68392
Ionosphere351342
Heartstatlog270132
Haberman30632
CMC147393
Jain37322
Thyroid21553
Robotnavigation5456254
Seeds21073
Diabetes76882
Table 6. Best cluster numbers for different validity functions for the UCI datasets.
Table 6. Best cluster numbers for different validity functions for the UCI datasets.
DataWBCIonosphereHeartstatlogHabermanCMCJainThyroidRobotnavigationSeedsDiabetes
Optimal c2222323432
V L X Y 2222323432
Table 7. Oil dataset details.
Table 7. Oil dataset details.
DataNumber of SamplesSerial Number
Normal500–49
Gas affected5050–99
Insufficient liquid supply50100–149
Oil sands50150–199
Gearbox failure50200–249
Table 8. Test results summary.
Table 8. Test results summary.
DataAccuracyNumber of SamplesSerial Number
Normal100%500–49
Gas affected100%5050–99
Insufficient liquid supply98%50100–149
Oil sands98%50150–199
Gearbox failure96%50200–249
Table 9. Comparison of results for different methods.
Table 9. Comparison of results for different methods.
ModelFCMSVMELM
Accuracy0.98400.90800.9200
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, X.; Meng, X.; Hu, Z.; Duan, H.; Wang, M.; Chen, Y. A Fault Diagnosis Method for Oil Well Electrical Power Diagrams Based on Multidimensional Clustering Performance Evaluation. Sensors 2025, 25, 1688. https://doi.org/10.3390/s25061688

AMA Style

Liu X, Meng X, Hu Z, Duan H, Wang M, Chen Y. A Fault Diagnosis Method for Oil Well Electrical Power Diagrams Based on Multidimensional Clustering Performance Evaluation. Sensors. 2025; 25(6):1688. https://doi.org/10.3390/s25061688

Chicago/Turabian Style

Liu, Xingyu, Xin Meng, Ze Hu, Hancong Duan, Min Wang, and Yaping Chen. 2025. "A Fault Diagnosis Method for Oil Well Electrical Power Diagrams Based on Multidimensional Clustering Performance Evaluation" Sensors 25, no. 6: 1688. https://doi.org/10.3390/s25061688

APA Style

Liu, X., Meng, X., Hu, Z., Duan, H., Wang, M., & Chen, Y. (2025). A Fault Diagnosis Method for Oil Well Electrical Power Diagrams Based on Multidimensional Clustering Performance Evaluation. Sensors, 25(6), 1688. https://doi.org/10.3390/s25061688

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