Pumping well standard work graph acquisition method and device, storage medium and processor

By calculating the threshold load value and load difference of the surface dynamometer card of the pumping unit well, eliminating abnormal data, and constructing a standard dynamometer card, the problem of the surface dynamometer card of the pumping unit well being easily affected by gas is solved, and the accuracy and timeliness of the standard dynamometer card are achieved, reducing false alarms.

CN119933605BActive Publication Date: 2026-05-29PETROCHINA CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PETROCHINA CO LTD
Filing Date
2023-11-02
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, the maximum load, minimum load, and load difference of the surface dynamometer card of the pumping unit well are easily affected by factors such as gas, leading to false alarms when manually selecting standard dynamometer cards, which is labor-intensive and difficult to update in a timely manner.

Method used

By calculating the threshold load value of the surface dynamometer card to be processed, a load line to be processed is constructed. Based on the load difference, abnormal data is eliminated, and a standard load line is constructed. Finally, a standard dynamometer card of the pumping unit well is obtained, reducing manual intervention and improving accuracy and timeliness.

Benefits of technology

It improves the accuracy and efficiency of obtaining standard dynamometer cards for pumping wells, reduces false alarms, and ensures accurate monitoring of the operating status of pumping wells.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119933605B_ABST
    Figure CN119933605B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a pumping unit well standard work graph acquisition method and device, a processor and a storage medium, and belongs to the technical field of pumping unit well working condition diagnosis. The method comprises the following steps: acquiring a to-be-processed ground dynamometer card, and processing the to-be-processed ground dynamometer card to obtain a to-be-processed load line; calculating the to-be-processed load line to obtain a to-be-processed load difference; performing abnormal data elimination on the to-be-processed load line based on the to-be-processed load difference to obtain a standard load line; acquiring a loading line and an unloading line of the to-be-processed ground dynamometer card, and constructing a standard work graph based on the standard load line, the loading line and the unloading line as a pumping unit well standard work graph. The application does not need manual screening of the standard work graph, improves the accuracy and acquisition efficiency of the standard work graph, and prevents false alarms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of oil pumping well condition diagnosis technology, specifically to a method for obtaining a standard dynamometer card for an oil pumping well, a device for obtaining a standard dynamometer card for an oil pumping well, a machine-readable storage medium, and a processor. Background Technology

[0002] Research has revealed that when a pumping unit malfunctions, the surface dynamometer card (DDT) collected shows significant changes in maximum load, minimum load, and load difference compared to the standard DDT card obtained when the pumping unit is operating normally. Currently, the standard DDT card for the pumping unit is mainly obtained by manually selecting any surface DDT card from when the pumping unit is operating normally. However, this method has the following drawbacks: First, the actual operation of the pumping unit is easily affected by factors such as gas, causing fluctuations in the maximum and minimum loads of the obtained surface DDT card. Using this surface DDT card as the standard DDT card often leads to false alarms. Second, relying on manual selection of a surface DDT card from a large number of surface DDT cards as the standard DDT card is not only extremely labor-intensive, but also prone to false alarms when there are delays in the selection process. Summary of the Invention

[0003] The purpose of this application is to provide a method, device, storage medium, and processor for acquiring standard dynamometer cards for oil pumping wells, so as to improve the accuracy and acquisition efficiency of standard dynamometer cards and prevent false alarms.

[0004] To achieve the above objectives, the first aspect of this application provides a method for obtaining a standard dynamometer card for a pumping unit well, the method comprising:

[0005] Obtain the ground dynamometer diagram to be processed, and process the ground dynamometer diagram to obtain the load line to be processed;

[0006] The load difference to be processed is obtained by calculating the load line to be processed;

[0007] Based on the load difference to be processed, abnormal data is removed from the load line to be processed to obtain the standard load line;

[0008] Obtain the loading and unloading lines of the surface dynamometer diagram to be processed, and construct a standard dynamometer diagram based on the standard load line, the loading line, and the unloading line as the standard dynamometer diagram for the pumping well.

[0009] In this embodiment of the application, the load line to be processed includes an upper load line to be processed and a lower load line to be processed. The process of processing the ground dynamometer card to obtain the load line to be processed includes:

[0010] Calculate the threshold load value of the ground indicator diagram to be processed, and determine the upstroke and downstroke of the ground indicator diagram to be processed;

[0011] During the upstroke, when the difference between the current load value and the maximum load value is less than the threshold load value, the upstroke load line calculation formula is called to calculate the data points in the upstroke to obtain the upstroke load line to be processed.

[0012] During the downstroke, when the difference between the current load value and the minimum load value is less than the threshold load value, the download line calculation formula is called to calculate the data points in the downstroke to obtain the download line to be processed.

[0013] In this embodiment of the application, the calculation formula for the threshold load value is as follows:

[0014]

[0015] Where B_BAND represents the threshold load value, F M F represents the maximum load value in the ground indicator diagram to be processed. N This represents the minimum load value in the ground indicator diagram to be processed, where n is a positive integer.

[0016] In this embodiment of the application, the formula for calculating the load line is specifically as follows:

[0017]

[0018] Where DM_FMU represents the load line to be processed, F(i) represents the load value of the i-th data point in the ground dynamometer diagram to be processed, U(i) represents the displacement of the i-th data point in the ground dynamometer diagram to be processed, and P X P represents the bottom dead center in the ground dynamometer diagram to be processed. S This indicates the top dead point in the ground dynamometer diagram to be processed.

[0019] In this embodiment of the application, the formula for calculating the underload line is specifically as follows:

[0020]

[0021] Where DM_FMD represents the load line to be processed, F(i) represents the load value of the i-th data point in the ground dynamometer diagram to be processed, U(i) represents the displacement of the i-th data point in the ground dynamometer diagram to be processed, and P X P represents the bottom dead center in the ground dynamometer diagram to be processed. S This indicates the top dead point in the ground dynamometer diagram to be processed.

[0022] In this embodiment of the application, the step of removing abnormal data from the load line to be processed based on the load difference to obtain a standard load line includes:

[0023] Calculate the mean and standard deviation of the load differences to be processed, and define the load differences to be processed that are greater than the sum of the mean and the standard deviation and the load differences to be processed that are less than the difference between the mean and the standard deviation as abnormal load differences.

[0024] Remove the load lines corresponding to abnormal load differences, and average the load lines after removing the abnormal ones to obtain the standard load lines.

[0025] In this embodiment of the application, after obtaining the standard dynamometer card of the pumping unit well, the method for obtaining the standard dynamometer card of the pumping unit well further includes:

[0026] When the pumping unit well does not receive an update operation command, the constructed standard dynamometer diagram is updated according to the set dynamometer diagram update time interval; when the pumping unit well receives an update operation command, the standard dynamometer diagram is updated immediately after receiving the update operation command.

[0027] A second aspect of this application provides a device for obtaining a standard dynamometer card for a pumping well, the device comprising:

[0028] The load line processing module is used to acquire the ground dynamometer diagram to be processed and process the ground dynamometer diagram to obtain the load line to be processed.

[0029] The load difference calculation module is used to calculate the load difference to be processed from the load line to be processed.

[0030] An abnormal data removal module is used to remove abnormal data from the load line to be processed based on the load difference to be processed, so as to obtain a standard load line.

[0031] The standard dynamometer acquisition module is used to acquire the loading line and unloading line of the surface dynamometer to be processed, and to construct a standard dynamometer as the standard dynamometer for the pumping well based on the standard load line, the loading line and the unloading line.

[0032] A third aspect of this application provides a processor configured to perform the above-described method for obtaining standard dynamometer diagrams of pumping wells.

[0033] A fourth aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, configure the processor to perform the above-described method for obtaining standard dynamometer diagrams of pumping wells.

[0034] Compared with the prior art, the above-mentioned technical solution of the present invention has the following beneficial effects:

[0035] This application provides a method, device, storage medium, and processor for acquiring standard dynamometer cards for oil pumping wells. The method processes the surface dynamometer card to be processed to obtain the load line to be processed, calculates the load difference to be processed based on the obtained load line, then removes abnormal data from the load line to be processed based on the load difference to obtain the standard load line, and finally obtains the loading and unloading lines of the surface dynamometer card to be processed. A standard dynamometer card is then constructed based on the standard load line, loading line, and unloading line as the standard dynamometer card for the oil pumping well. This eliminates the need for manual screening of standard dynamometer cards, improving the accuracy and timeliness of standard dynamometer card acquisition and preventing false alarms.

[0036] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description

[0037] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings:

[0038] Figure 1 The schematic diagram illustrates a process flow diagram of a method for obtaining a standard dynamometer card for a pumping well according to an embodiment of this application;

[0039] Figure 2 The diagram illustrates the ground dynamometer card to be processed according to an embodiment of this application.

[0040] Figure 3 This illustration schematically shows a detailed process diagram of step S10 of the method for obtaining the standard dynamometer card of a pumping well according to an embodiment of this application;

[0041] Figure 4 This illustration schematically shows a detailed process diagram of step S30 of the method for obtaining a standard dynamometer card for a pumping well according to an embodiment of this application.

[0042] Figure 5 A standard dynamometer diagram of a pumping well according to an embodiment of this application is illustrated schematically.

[0043] Figure 6 This illustration schematically shows another process diagram of the method for obtaining the standard dynamometer card of a pumping well according to an embodiment of this application;

[0044] Figure 7 The schematic diagram illustrates the standard dynamometer diagram of the Yujia## well according to an embodiment of this application;

[0045] Figure 8 This schematic diagram illustrates the structural block diagram of a standard dynamometer card acquisition device for oil pumping wells according to an embodiment of this application.

[0046] Figure 9The diagram illustrates the internal structure of a computer device according to an embodiment of this application. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for illustration and explanation of the embodiments of this application and are not intended to limit the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0048] Figure 1 This illustration schematically shows a flowchart of a method for obtaining a standard dynamometer card for a pumping unit well according to an embodiment of this application. Figure 1 As shown in one embodiment of this application, a method for obtaining a standard dynamometer card for a pumping well is provided, comprising the following steps:

[0049] Step S10: Obtain the ground dynamometer diagram to be processed, and process the ground dynamometer diagram to obtain the load line to be processed.

[0050] Among them, the ground dynamometer card to be processed refers to any ground dynamometer card selected from the collected ground dynamometer cards.

[0051] Specifically, the acquired ground dynamometer image to be processed is as follows: Figure 2 As shown. Figure 2 The horizontal axis represents displacement (unit: m), and the vertical axis represents load (unit: kN). M (U M ,F M ) represents the maximum point of the ground dynamometer card to be processed, that is, the data point corresponding to the maximum load in the ground dynamometer card to be processed; P N (U N ,F N ) represents the minimum point of the ground dynamometer card to be processed, that is, the data point corresponding to the minimum load in the ground dynamometer card to be processed; P S (U S ,F S ) represents the top dead center in the ground dynamometer card to be processed, i.e., the data point corresponding to the top dead center in the ground dynamometer card to be processed; P X (U X ,F X) represents the bottom dead center in the ground indicator diagram to be processed, that is, the data point corresponding to the bottom dead center in the ground indicator diagram to be processed; DM_FMU represents the upper load line of the ground indicator diagram to be processed, that is, the average load value corresponding to all data points from the fixed valve opening point to the fixed valve closing point, also known as the maximum average load value of the ground indicator diagram to be processed; DM_FMD represents the lower load line of the ground indicator diagram to be processed, that is, the average load value corresponding to all data points from the floating valve opening point to the floating valve closing point, also known as the minimum average load value of the ground indicator diagram to be processed.

[0052] Wherein, the load line to be processed refers to the load line calculated using the load line calculation formula. In this embodiment, the load line to be processed includes the upper load line to be processed and the lower load line to be processed, specifically, as follows: Figure 3 As shown, step S10 involves processing the ground dynamometer diagram to obtain the load line to be processed, specifically including the following steps:

[0053] S11: Calculate the threshold load value of the ground indicator diagram to be processed, and determine the upstroke and downstroke of the ground indicator diagram to be processed.

[0054] Among them, the upstroke refers to the distance between the bottom dead center and the top dead center in the dynamometer card of the ground to be processed; the downstroke refers to the distance between the top dead center and the bottom dead center in the dynamometer card of the ground to be processed.

[0055] Specifically, the formula for calculating the threshold load value is as follows:

[0056]

[0057] Where B_BAND represents the threshold load value, F M F represents the maximum load value in the ground indicator diagram to be processed. N This represents the minimum load value in the ground indicator diagram to be processed, where n is a positive integer.

[0058] Furthermore, the threshold load value is calculated more accurately when n is 4.

[0059] S12: During the upstroke, when the difference between the current load value and the maximum load value is less than the threshold load value, the upstroke load line calculation formula is called to calculate the data points in the upstroke to obtain the upstroke load line to be processed.

[0060] Among them, the current load value refers to the load value at the current moment; the load line to be processed refers to the average load value obtained by calculating the data points of the upper stroke in the ground indicator diagram to be processed by calling the load line calculation formula.

[0061] Specifically, when the difference between the current load value and the maximum load value is less than the threshold load value, i.e., |F(i)-F M|<B_BAND, where F(i) represents the load value of the i-th data point in the to-be-processed surface dynamometer card, F M represents the maximum load value in the to-be-processed surface dynamometer card, and B_BAND represents the threshold load value.

[0062] The formula for calculating the upper load line is specifically:

[0063]

[0064] where DM_FMU represents the to-be-processed upper load line, F(i) represents the load value of the i-th data point in the to-be-processed surface dynamometer card, U(i) represents the displacement of the i-th data point in the to-be-processed surface dynamometer card, and P X represents the bottom dead center in the to-be-processed surface dynamometer card, and P S represents the top dead center in the to-be-processed surface dynamometer card.

[0065] S13: During the downward stroke, when the difference between the current load value and the minimum load value is less than the threshold load value, the formula for calculating the lower load line is called to calculate the data points during the downward stroke, obtaining the to-be-processed lower load line.

[0066] The to-be-processed lower load line refers to the average load obtained by calculating the data points during the downward stroke of the to-be-processed surface dynamometer card using the formula for calculating the lower load line.

[0067] Specifically, when the difference between the current load value and the minimum load value is less than the threshold load value, that is, |F(i) - F N |<B_BAND, where F(i) represents the load value of the i-th data point in the to-be-processed surface dynamometer card, F N represents the minimum load value in the to-be-processed surface dynamometer card, and B_BAND represents the threshold load value.

[0068] The formula for calculating the lower load line is specifically:

[0069]

[0070] where DM_FMD represents the to-be-processed lower load line, F(i) represents the load value of the i-th data point in the to-be-processed surface dynamometer card, U(i) represents the displacement of the i-th data point in the to-be-processed surface dynamometer card, and P X represents the bottom dead center in the to-be-processed surface dynamometer card, and P S represents the top dead center in the to-be-processed surface dynamometer card.

[0071] Step S20: Calculate the to-be-processed load line to obtain the to-be-processed load difference.

[0072] Specifically, the load difference to be processed = the upper load line to be processed - the lower load line to be processed, i.e., DM_FL = DM_FMU - DM_FMD. Wherein, DM_FL represents the load difference to be processed, DM_FMU represents the upper load line to be processed, i.e., the upper load line of the ground dynamometer card to be processed; and DM_FMD represents the lower load line to be processed, i.e., the lower load line of the ground dynamometer card to be processed.

[0073] Step S30: Based on the load difference to be processed, perform abnormal data removal on the load line to be processed to obtain the standard load line.

[0074] The standard load line refers to the load line obtained after removing abnormal data from the load line to be processed.

[0075] Specifically, such as Figure 4 As shown, step S30 specifically includes the following steps:

[0076] S31: Calculate the mean μ and standard deviation σ of the load difference to be processed. The load differences to be processed that are greater than the sum of the mean μ and the standard deviation σ (i.e., DM_FL>μ+σ) and the load differences to be processed that are less than the difference between the mean and the standard deviation (DM_FL<μ-σ) are regarded as abnormal load differences.

[0077] S32: Remove the load lines corresponding to abnormal load differences, and calculate the average value of the load lines after removing abnormalities to obtain the standard load lines.

[0078] In this embodiment, the standard load line includes a standard upper load line and a standard lower load line. The standard upper load line refers to the upper load line after removing the upper load lines corresponding to abnormal load differences; the standard lower load line refers to the lower load line after removing the lower load lines corresponding to abnormal load differences.

[0079] Specifically, in order to obtain a more accurate load line, this embodiment needs to remove the upper load line and lower load line corresponding to abnormal load differences, and then calculate the average value (i.e., AVG_DM_FMU) of the upper load line after removing abnormalities to obtain the standard upper load line, and calculate the average value (i.e., AVG_DM_FMD) of the lower load line after removing abnormalities to obtain the standard lower load line.

[0080] Step S40: Obtain the loading and unloading lines of the surface dynamometer card to be processed, and construct a standard dynamometer card based on the standard load line, loading line, and unloading line as the standard dynamometer card for the pumping unit well, as detailed below. Figure 5 As shown.

[0081] In one embodiment, such as Figure 6 As shown, after obtaining the standard dynamometer card of the pumping unit well, the method for obtaining the standard dynamometer card of the pumping unit well also includes:

[0082] S51: When the pumping unit well does not receive an update operation command, the constructed standard dynamometer card is updated according to the set dynamometer card update time interval.

[0083] S52: When the pumping unit receives an update operation command, the standard dynamometer diagram will be updated immediately upon receiving the update operation command.

[0084] Specifically, the update operation instructions in this embodiment include, but are not limited to, hot washing, replacing load sensors, and well workover. The accuracy of the standard dynamometer card is improved by updating it periodically and in real-time. The specific steps for updating the standard dynamometer card are as described in S10-S40 above, and will not be repeated here to avoid repetition.

[0085] The method for obtaining standard dynamometer cards for pumping wells provided in this application calculates the threshold load value of the surface dynamometer card to be processed. During the upstroke, the difference between the current load value and the maximum load value is calculated and compared with the threshold load value. If the difference is less than the threshold load value, the upload line calculation formula is used to calculate the data points in the upstroke to obtain the upload line to be processed. During the downstroke, the difference between the current load value and the minimum load value is calculated and compared with the threshold load value. If the difference is less than the threshold load value, the download line calculation formula is used to calculate the data points in the downstroke to obtain the download line to be processed. Then, the load difference to be processed is calculated based on the upload line and the download line to be processed, and abnormal data is removed from the load line to be processed based on the load difference to obtain the standard load line. Finally, a standard dynamometer card is constructed based on the standard load line, the loading line, and the unloading line to improve the accuracy and efficiency of the standard dynamometer card acquisition and avoid false alarms.

[0086] For ease of understanding, we will take the Yujia ## well as an example. A total of 113 dynamometer cards were collected throughout the day. Any one of these surface dynamometer cards was used as the surface dynamometer card to be processed, and the load line to be processed was calculated. The specific data of this surface dynamometer card is shown in Table 1. The specific process is as follows:

[0087] The maximum point P of the ground dynamometer card to be processed M (U M ,F M (0.9, 46.19) is the 38th data point of this dynamometer card, and the minimum point P of the ground dynamometer card to be processed. N (U N ,F N (0.47, 11.32) is the 166th data point of this dynamometer card, and the top dead center P in the ground dynamometer card to be processed. S (U S ,F S The first data point (0, 18.31) in this dynamometer card is the bottom dead center P in the ground dynamometer card to be processed.X (U X ,F X ) is the 100th data point (2.07, 37.97) of this dynamometer card.

[0088] It should be noted that if there are multiple extreme points, only one of them needs to be selected.

[0089] Table 1

[0090]

[0091]

[0092]

[0093]

[0094]

[0095]

[0096] Calculate the threshold load value of the to-be-processed surface dynamometer card: Let n = 4,

[0097] During an upstroke, when |F(i) - F M | < B_BAND, call the upper load line calculation formula and calculate from point P X to point P S ,

[0098]

[0099] During a downstroke, when |F(i) - F N | < B_BAND, call the lower load line calculation formula and calculate from point P S to point P X ,

[0100]

[0101] Calculate the to-be-processed load difference DM_FL through DM_FL = DM_FMU - DM_FMD;

[0102] Calculate the mean μ = 32.03 and standard deviation σ = 0.59 of DM_FL;

[0103] Reject the load lines corresponding to DM_FL > μ + σ = 32.62 and DM_FL < μ - σ = 31.44.

[0104] The mean of DM_FMU after removal is AVG_DM_FMU = 44.21, and the mean of DM_FMD is AVG_DM_FMD = 12.39.

[0105] After obtaining the standard upper load line and standard lower load line, a standard dynamometer diagram is constructed by combining the loading and unloading lines of the surface dynamometer diagram to be processed, which serves as the standard dynamometer diagram for the pumping unit well. Figure 7 As shown.

[0106] Figure 1 , Figure 3 , Figure 4 , Figure 6 This is a flowchart illustrating a method for obtaining a standard dynamometer card for a pumping unit well, as described in one embodiment. It should be understood that, although... Figure 1 , Figure 3 , Figure 4 , Figure 6 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 , Figure 3 , Figure 4 , Figure 6 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0107] In one embodiment, such as Figure 8 As shown, a standard dynamometer card acquisition device 800 for pumping wells is provided, including a load line processing module 801, a load difference calculation module 802, an abnormal data removal module 803, and a standard dynamometer card acquisition module 804, wherein:

[0108] The load line processing module 801 is used to acquire the ground dynamometer diagram to be processed and process the ground dynamometer diagram to obtain the load line to be processed.

[0109] The load difference calculation module 802 is used to calculate the load difference to be processed.

[0110] The abnormal data removal module 803 is used to remove abnormal data from the load line to be processed based on the load difference to obtain the standard load line.

[0111] The standard dynamometer card acquisition module 804 is used to acquire the loading and unloading lines of the surface dynamometer card to be processed, and to construct a standard dynamometer card based on the standard load line, loading line and unloading line as the standard dynamometer card for the pumping well.

[0112] The pumping well standard dynamometer card acquisition device 800 includes a processor and a memory. The load line processing module 801, load difference calculation module 802, abnormal data removal module 803, and standard dynamometer card acquisition module 804 are all stored in the memory as program units. The processor executes the above-mentioned program modules stored in the memory to realize the corresponding functions.

[0113] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters allows for the implementation of a method for obtaining a standard dynamometer card for a pumping unit well.

[0114] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0115] This application provides a storage medium storing a program that, when executed by a processor, implements the above-described method for obtaining standard dynamometer diagrams of pumping wells.

[0116] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor A01, a network interface A02, internal memory A03, and a database connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and the database. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A04. The database stores data related to a method for acquiring standard dynamometer cards for oil wells. The network interface A02 communicates with external terminals via a network connection. When the processor A01 executes the computer program B02, it implements the method for acquiring standard dynamometer cards for oil wells.

[0117] Those skilled in the art will understand that Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0118] In one embodiment, the standard dynamometer card acquisition device 800 for oil pumping wells provided in this application can be implemented as a computer program, which can be implemented in various ways, such as... Figure 9 The computer device shown runs on this device. The computer device's memory can store various program modules that make up the standard dynamometer card acquisition device 800 for oil wells, for example, Figure 8 The diagram shows a load line processing module 801, a load difference calculation module 802, an abnormal data removal module 803, and a standard dynamometer card acquisition module 804. The computer program comprised of these modules causes the processor to execute the steps in a method for acquiring a standard dynamometer card for a pumping unit well, as described in the various embodiments of this application.

[0119] This application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps:

[0120] Obtain the ground dynamometer diagram to be processed, and process the ground dynamometer diagram to obtain the load line to be processed;

[0121] The load line to be processed is calculated to obtain the load difference to be processed;

[0122] Based on the load difference to be processed, abnormal data is removed from the load line to be processed to obtain the standard load line.

[0123] Obtain the loading and unloading lines of the surface dynamometer card to be processed, and construct a standard dynamometer card based on the standard load line, loading line, and unloading line as the standard dynamometer card for the pumping unit well.

[0124] In one embodiment, the load line to be processed includes an upper load line to be processed and a lower load line to be processed. The process of processing the ground dynamometer card to be processed to obtain the load line to be processed includes:

[0125] Calculate the threshold load value of the ground indicator diagram to be processed, and determine the upstroke and downstroke of the ground indicator diagram to be processed;

[0126] During the upstroke, when the difference between the current load value and the maximum load value is less than the threshold load value, the upstroke load line calculation formula is called to calculate the data points in the upstroke to obtain the upstroke load line to be processed.

[0127] During the downstroke, when the difference between the current load value and the minimum load value is less than the threshold load value, the download line calculation formula is called to calculate the data points in the downstroke to obtain the download line to be processed.

[0128] In one embodiment, the formula for calculating the threshold load value is as follows:

[0129]

[0130] Where B_BAND represents the threshold load value, F M F represents the maximum load value in the ground indicator diagram to be processed. N This represents the minimum load value in the ground indicator diagram to be processed, where n is a positive integer.

[0131] In one embodiment, the formula for calculating the load line is as follows:

[0132]

[0133] Where DM_FMU represents the load line to be processed, F(i) represents the load value of the i-th data point in the ground dynamometer diagram to be processed, U(i) represents the displacement of the i-th data point in the ground dynamometer diagram to be processed, and P X P represents the bottom dead center in the ground dynamometer diagram to be processed. S This indicates the top dead point in the ground dynamometer diagram to be processed.

[0134] In one embodiment, the formula for calculating the underload line is as follows:

[0135]

[0136] Where DM_FMD represents the load line to be processed, F(i) represents the load value of the i-th data point in the ground dynamometer diagram to be processed, U(i) represents the displacement of the i-th data point in the ground dynamometer diagram to be processed, and P X P represents the bottom dead center in the ground dynamometer diagram to be processed. S This indicates the top dead point in the ground dynamometer diagram to be processed.

[0137] In one embodiment, based on the load difference to be processed, outlier data is removed from the load line to be processed to obtain a standard load line, including:

[0138] Calculate the mean and standard deviation of the load differences to be processed, and define the load differences to be processed that are greater than the sum of the mean and the standard deviation and the load differences to be processed that are less than the difference between the mean and the standard deviation as abnormal load differences.

[0139] Remove the load lines corresponding to abnormal load differences, and average the load lines after removing the abnormal ones to obtain the standard load lines.

[0140] In one embodiment, after obtaining the standard dynamometer card of a pumping unit well, a method for obtaining the standard dynamometer card of a pumping unit well further includes:

[0141] When the pumping unit well does not receive an update operation command, the constructed standard dynamometer diagram is updated according to the set dynamometer diagram update time interval; when the pumping unit well receives an update operation command, the standard dynamometer diagram is updated immediately after receiving the update operation command.

[0142] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0145] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0147] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0148] Computer-readable media include both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0149] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0150] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for obtaining a standard dynamometer card for a pumping unit well, characterized in that, The method for obtaining the standard dynamometer card of the pumping unit well includes: Obtain the ground dynamometer diagram to be processed, and process the ground dynamometer diagram to obtain the load line to be processed; The load difference to be processed is obtained by calculating the load line to be processed; Based on the load difference to be processed, abnormal data is removed from the load line to be processed to obtain the standard load line; Obtain the loading and unloading lines of the surface dynamometer diagram to be processed, and construct a standard dynamometer diagram based on the standard load line, the loading line, and the unloading line as the standard dynamometer diagram for the pumping well; The load line to be processed includes an upper load line to be processed and a lower load line to be processed. The process of processing the ground dynamometer card to obtain the load line to be processed includes: Calculate the threshold load value of the ground indicator diagram to be processed, and determine the upstroke and downstroke of the ground indicator diagram to be processed; During the upstroke, when the difference between the current load value and the maximum load value is less than the threshold load value, the upstroke load line calculation formula is called to calculate the data points in the upstroke to obtain the upstroke load line to be processed. During the downstroke, when the difference between the current load value and the minimum load value is less than the threshold load value, the download line calculation formula is called to calculate the data points in the downstroke to obtain the download line to be processed. The specific formula for calculating the threshold load value is as follows: in, Indicates the threshold load value. This indicates the maximum load value in the ground indicator diagram to be processed. This represents the minimum load value in the ground indicator diagram to be processed. It is a positive integer; The specific formula for calculating the load line is as follows: in, Indicates the load line to be processed. Indicates the first step in the ground dynamometer diagram to be processed. Load values ​​for each data point Indicates the first step in the ground dynamometer diagram to be processed. The displacement of each data point This indicates the bottom dead center in the ground dynamometer diagram to be processed. This indicates the top dead center in the ground dynamometer diagram to be processed; The specific formula for calculating the underload line is as follows: in, Indicates the load line to be processed. Indicates the first step in the ground dynamometer diagram to be processed. Load values ​​for each data point Indicates the first step in the ground dynamometer diagram to be processed. The displacement of each data point This indicates the bottom dead center in the ground dynamometer diagram to be processed. This indicates the top dead point in the ground dynamometer diagram to be processed.

2. The method for obtaining the standard dynamometer card of a pumping unit well according to claim 1, characterized in that, The step of removing abnormal data from the load line to be processed based on the load difference to obtain a standard load line includes: Calculate the mean and standard deviation of the load differences to be processed, and define the load differences to be processed that are greater than the sum of the mean and the standard deviation and the load differences to be processed that are less than the difference between the mean and the standard deviation as abnormal load differences. Remove the load lines corresponding to abnormal load differences, and average the load lines after removing the abnormal ones to obtain the standard load lines.

3. The method for obtaining the standard dynamometer card of a pumping unit well according to claim 1, characterized in that, After obtaining the standard dynamometer card of the pumping unit well, the method for obtaining the standard dynamometer card of the pumping unit well further includes: When the pumping unit well does not receive an update operation command, the constructed standard dynamometer diagram is updated according to the set dynamometer diagram update time interval; when the pumping unit well receives an update operation command, the standard dynamometer diagram is updated immediately after receiving the update operation command.

4. A device for acquiring standard dynamometer cards for oil pumping wells, characterized in that, The standard dynamometer card acquisition device for the pumping unit well includes: The load line processing module is used to acquire the ground dynamometer diagram to be processed and process the ground dynamometer diagram to obtain the load line to be processed. The load difference calculation module is used to calculate the load difference to be processed from the load line to be processed. An abnormal data removal module is used to remove abnormal data from the load line to be processed based on the load difference to be processed, so as to obtain a standard load line. The standard dynamometer acquisition module is used to acquire the loading line and unloading line of the surface dynamometer to be processed, and to construct a standard dynamometer as the standard dynamometer for the pumping well based on the standard load line, the loading line and the unloading line. The load line to be processed includes an upper load line to be processed and a lower load line to be processed. The load line processing module is specifically used for: Calculate the threshold load value of the ground indicator diagram to be processed, and determine the upstroke and downstroke of the ground indicator diagram to be processed; During the upstroke, when the difference between the current load value and the maximum load value is less than the threshold load value, the upstroke load line calculation formula is called to calculate the data points in the upstroke to obtain the upstroke load line to be processed. During the downstroke, when the difference between the current load value and the minimum load value is less than the threshold load value, the download line calculation formula is called to calculate the data points in the downstroke to obtain the download line to be processed. The specific formula for calculating the threshold load value is as follows: in, Indicates the threshold load value. This indicates the maximum load value in the ground indicator diagram to be processed. This represents the minimum load value in the ground indicator diagram to be processed. It is a positive integer; The specific formula for calculating the load line is as follows: in, Indicates the load line to be processed. Indicates the first step in the ground dynamometer diagram to be processed. Load values ​​for each data point Indicates the first step in the ground dynamometer diagram to be processed. The displacement of each data point This indicates the bottom dead center in the ground dynamometer diagram to be processed. This indicates the top dead center in the ground dynamometer diagram to be processed; The specific formula for calculating the underload line is as follows: in, Indicates the load line to be processed. Indicates the first step in the ground dynamometer diagram to be processed. Load values ​​for each data point Indicates the first step in the ground dynamometer diagram to be processed. The displacement of each data point This indicates the bottom dead center in the ground dynamometer diagram to be processed. This indicates the top dead point in the ground dynamometer diagram to be processed.

5. A processor, characterized in that, It is configured to perform the method for obtaining the standard dynamometer card of a pumping unit well according to any one of claims 1 to 3.

6. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by a processor, this instruction causes the processor to be configured to perform the method for obtaining standard dynamometer diagrams of pumping wells according to any one of claims 1 to 3.