CN110941747B - Indicator diagram processing method, device and equipment - Google Patents

Indicator diagram processing method, device and equipment Download PDF

Info

Publication number
CN110941747B
CN110941747B CN201811117594.9A CN201811117594A CN110941747B CN 110941747 B CN110941747 B CN 110941747B CN 201811117594 A CN201811117594 A CN 201811117594A CN 110941747 B CN110941747 B CN 110941747B
Authority
CN
China
Prior art keywords
indicator diagram
displacement
point
current indicator
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811117594.9A
Other languages
Chinese (zh)
Other versions
CN110941747A (en
Inventor
葛婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811117594.9A priority Critical patent/CN110941747B/en
Publication of CN110941747A publication Critical patent/CN110941747A/en
Application granted granted Critical
Publication of CN110941747B publication Critical patent/CN110941747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

After acquiring indicator diagram information, the embodiment performs graph division on the current indicator diagram by using a group of parallel lines of a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs, and the divided regular graphs are prevented from exceeding the regional boundary of the current indicator diagram, so that the accuracy of the area of the current indicator diagram calculated by using the area of each regular graph is ensured, the calculated amount is greatly reduced and the calculation efficiency and accuracy are improved compared with an integral area calculation mode.

Description

Indicator diagram processing method, device and equipment
Technical Field
The invention relates to the field of oil field oil extraction application, in particular to a method and a device for processing an indicator diagram and computer equipment.
Background
With the steady development of global economy, the application of petroleum in production and life of people is wider and wider, and the demand of petroleum is increased day by day. People are more concerned about the production of petroleum. At present, sensors are generally adopted for collecting and monitoring data in an oil field on site, then signals are transmitted to a control center through cables for processing, and the obtained indicator diagram information is utilized to analyze and diagnose the working state of the oil pumping unit.
The indicator diagram is a graph reflecting the change rule of the load of the suspension point of the oil pumping unit along with the displacement of the oil pumping unit, and is a closed curve measured by an indicator in one pumping period of the oil pumping unit. The displacement and the load of the oil pumping unit can be collected during production, 144 pieces of load data and 144 pieces of displacement data are collected in one stroke and are respectively used as horizontal and vertical coordinates to form a closed graph surrounded by 144 points, and then the applications such as oil well yield measurement, oil pumping unit fault diagnosis and the like are realized by calculating the area of the indicator diagram.
However, currently, the indicator diagram area is usually obtained by calculating the integral of the load and displacement of the pumping unit in the up-stroke and down-stroke processes, the process is relatively complex, and the working condition of the pumping unit cannot be accurately analyzed and diagnosed.
Disclosure of Invention
In view of the above, the present invention has been made to provide an indicator diagram processing method, apparatus and computer device that overcome or at least partially solve the above problems.
The embodiment of the invention provides a method for processing an indicator diagram, which comprises the following steps:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph.
Optionally, the graph division is performed on the current indicator diagram by using a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs, including:
detecting the relationship among the displacement data of each intermediate displacement point forming the current indicator diagram, and determining a plurality of pairs of intermediate displacement points with the same displacement data in each intermediate displacement point, wherein the intermediate displacement points are points forming the current indicator diagram except for a minimum displacement point and a maximum displacement point;
and dividing the current indicator diagram into a plurality of quadrangles by using a connecting line between each pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively.
Optionally, the calculating the obtained areas of the multiple regular graphs to obtain the graph area of the current indicator graph includes:
and summing the obtained areas of the plurality of quadrangles and the plurality of triangles to obtain the graph area of the current indicator diagram.
Optionally, the graph division is performed on the current indicator diagram by using a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs, including:
acquiring a maximum displacement point and a minimum displacement point which form the current indicator diagram;
dividing the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
dividing a first area among the first line segment, the two coordinate axes of the current indicator diagram and the first straight line into a plurality of first trapezoids by using a group of parallel lines parallel to load coordinate axes, and dividing a second area among the second line segment, the two coordinate axes and the first straight line into a plurality of second trapezoids;
wherein the first straight line is a straight line through the point of maximum displacement in the set of parallel lines parallel to the load coordinate axis.
Optionally, the calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph includes:
summing the obtained areas of the plurality of first trapezoids to obtain the area of the first region;
summing the obtained areas of the plurality of second trapezoids to obtain the area of the second region;
and performing difference operation on the area of the first region and the area of the second region to obtain the graph area of the current indicator diagram.
Optionally, the method further includes:
acquiring displacement data and load data respectively corresponding to a first point and a last point which form a current indicator diagram;
detecting whether the displacement data of the first point and the last point are the same or not and whether the load data of the first point and the last point are the same or not;
and if the difference is different, acquiring displacement data and load data of a complementary position point of the current indicator diagram, and taking the complementary position point as the last point of the current indicator diagram.
Optionally, the method further includes:
and determining that the obtained graphic area of the current indicator diagram is a negative value, and outputting fault prompt information.
The present embodiment also provides an indicator diagram processing apparatus, where the apparatus includes:
the information acquisition module is used for acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming the current indicator diagram;
the graph dividing module is used for carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
the graph area calculation module is used for calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and the indicator diagram area calculation module is used for calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator diagram.
Optionally, the graph dividing module includes:
a first determining unit, configured to detect a relationship between displacement data of intermediate displacement points that constitute the current indicator diagram, and determine a plurality of pairs of intermediate displacement points that have the same displacement data in the intermediate displacement points, where the intermediate displacement points are points that constitute the current indicator diagram except for a minimum displacement point and a maximum displacement point;
and the first graph dividing unit is used for dividing the current indicator diagram into a plurality of quadrangles by using a connecting line between every pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively.
The present embodiment further provides a computer device, where the computer device includes:
a communication interface;
a memory for storing a program for implementing the indicator diagram processing method as described above;
a processor for loading and executing the memory-stored program, the program for:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph.
By means of the technical scheme, after the indicator diagram information is obtained, the indicator diagram is subjected to graph division by using a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphs, and the divided regular graphs are prevented from exceeding the region boundary of the current indicator diagram, so that the accuracy of the graph area of the current indicator diagram obtained by calculating by using the area of each regular graph is ensured, and compared with an integral area calculation mode, the indicator diagram processing method, device and computer equipment greatly reduce the calculation amount and improve the calculation efficiency and accuracy.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a schematic diagram of an indicator diagram;
FIG. 2 is a diagram illustrating a graph partitioning manner of an indicator diagram according to the present invention;
fig. 3 is a flowchart illustrating an indicator diagram processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an indicator diagram with displacement symmetry properties;
fig. 5 is a flowchart illustrating another indicator diagram processing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an indicator diagram without displacement symmetry properties;
fig. 7 is a flowchart illustrating another indicator diagram processing method according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating division of indicator diagram graphics according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a further indicator diagram processing method according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating another indicator diagram processing method according to an embodiment of the present invention;
FIG. 11a is a schematic diagram of another indicator diagram provided by an embodiment of the invention;
FIG. 11b is a simplified schematic diagram of another indicator diagram provided by an embodiment of the present invention;
fig. 12 is a schematic structural diagram illustrating an indicator diagram processing apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram illustrating another indicator diagram processing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram illustrating another indicator diagram processing apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram illustrating another indicator diagram processing apparatus according to an embodiment of the present invention;
fig. 16 is a schematic diagram illustrating a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
The inventor of the invention finds that the actually obtained indicator diagram is often not a regular convex multi-quadrangle, the process is very complicated by adopting a mode of calculating the area of the diagram by integration, the area of the indicator diagram is reduced, and the calculation of plastics is further influenced, so that the oil well yield measurement, the fault diagnosis of the oil pumping unit and the like are realized based on the area of the indicator diagram. In order to solve the problems in the prior art, the inventor provides an area division method for calculating the indicator diagram area, namely dividing the indicator diagram into a plurality of regular graphs, and calculating the areas of the regular graphs to obtain the indicator diagram area.
Referring to the schematic diagram of the indicator diagram shown in fig. 1, it should be noted that the points constituting the indicator diagram are not limited to the points given in fig. 1, and this embodiment is only described by taking this as an example, the inventor tries to divide the indicator diagram into a plurality of triangles, and since the indicator diagram is a closed graph generally composed of 144 points, the inventor selects any point as a vertex and connects it with other points, and can divide the indicator diagram into 152 triangles, and then, the areas of the 152 triangles are calculated according to a triangle calculation formula by using displacement data and load data of each point, and the areas of the 152 triangles are summed up, so that the area of the indicator diagram can be obtained.
However, since the indicator diagram is not necessarily a convex polygon, as the indicator diagram shown in fig. 1, the current indicator diagram is divided into graphs, and the obtained gray triangle part exceeds the indicator diagram, and the area of the indicator diagram obtained according to the above calculation method is larger than the area of the actual indicator diagram, that is, the area of the indicator diagram obtained by dividing the indicator diagram into a plurality of triangles is not accurate.
In order to quickly obtain the indicator diagram area, the inventor also proposes a Monte Carlo method (also translated into a Monte Carlo method) to obtain the indicator diagram area, wherein the Monte Carlo method is a numerical calculation method based on the theory and method of probability and statistics, and can be used for calculating the area of a region besides calculating the probability, such as randomly generating a plurality of points, and approximately calculating the indicator diagram area by the proportion of the points and all the points in the coverage range of the indicator diagram, but the actual experiment finds that the calculation efficiency of too many points is very low, and the approximate calculation is not the actual indicator diagram area, and a certain error exists, which affects the accuracy of specific application based on the indicator diagram area in each application scene.
After the above-mentioned various attempts, the inventor of the present invention continuously changes the angle of the straight line for dividing the indicator diagram, and finally finds that the graph division is performed on the indicator diagram by using a group of parallel lines parallel to the coordinate axis of the indicator diagram (for example, a group of parallel lines parallel to the load coordinate axis as shown in fig. 2), which does not exceed the area of the indicator diagram, so that the area of the indicator diagram is calculated more accurately by using the areas of the plurality of graphs obtained by the division, and the problem that the area of the indicator diagram calculated is inaccurate due to the vertex connection method and the monte carlo method which are described above and attempted by the inventor is solved.
Moreover, according to the dividing mode, the divided graphs are regular graphs, the area of the regular graphs can be rapidly and accurately calculated by directly utilizing a mathematical area calculation formula, the calculation amount of the area of the indicator diagram is greatly reduced, and the calculation efficiency and the calculation accuracy are improved compared with the traditional integral calculation method.
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 3, a flowchart of an indicator diagram processing method provided in an embodiment of the present invention is shown, where the method may be applied to a computer device, such as a terminal device or a server with a computing function, and the embodiment does not limit a product type of the computer device, and may specifically include, but is not limited to, the following steps:
step S11, acquiring indicator diagram information;
in combination with the analysis of the above background art, the indicator diagram is generally a polygon surrounded by a plurality of points, and can represent the production condition of the oil field and the working state of the pumping unit, generally, one indicator diagram can be drawn for each stroke, and a large number of indicator diagrams will be obtained in the process of generating the oil field.
Therefore, the indicator diagram information acquired by this embodiment may at least include: the displacement data and the load data which correspond to a plurality of points forming the current indicator diagram respectively, namely the horizontal and vertical coordinate data of each point forming the current indicator diagram, are used for determining the position of each point, the relative position relationship between each point and the like.
It should be noted that the present embodiment does not limit how to acquire the displacement data and the load data of each point. In general, the displacement is related to the acquisition time interval of a load sensor of the pumping unit, and in one stroke, the displacement is divided according to the stroke and the acquisition time interval to obtain the corresponding displacement during each load return.
Step S12, dividing the current indicator diagram into a plurality of regular graphs by a group of parallel lines parallel to the coordinate axis of the current indicator diagram;
as described above in the analysis of the core idea of the embodiment of the present invention, in order to avoid that the divided graphs exceed the area of the current indicator diagram and reduce the workload of calculating the area of the indicator diagram, the embodiment may divide the current indicator diagram into a plurality of regular graphs by using a straight line parallel to the load coordinate axis, such as the indicator diagram division manner shown in fig. 2, but is not limited to the division manner shown in fig. 2.
Step S13, calculating the area of each regular pattern by using the displacement data and the load data of each point forming the regular pattern;
in this embodiment, the divided regular patterns may include regular quadrangles and triangles, the areas of the regular patterns generally have a general mathematical calculation formula, and the time taken for obtaining the areas by using the mathematical calculation formula is far shorter than the time taken for directly integrating the indicator diagram to obtain the areas.
When calculating the area of each graph, the corresponding parameter in the area calculation formula may be obtained by using the coordinate data of each vertex forming the graph, for example, for the transverse span, the difference between the displacement data of two vertices may be calculated, and the like.
In step S14, the areas of the plurality of regular patterns obtained are calculated to obtain the pattern area of the current indicator diagram.
In this embodiment, the manner of dividing the current indicator diagram adopted in the step S12 is different, the obtained regular patterns are different, and the method of calculating the area of the current indicator diagram by using the area of the obtained regular patterns is also different, which may specifically refer to the description of the corresponding embodiment below, and this embodiment is not described herein again.
In summary, in order to obtain the area of the current indicator diagram quickly and accurately, after the indicator diagram information is obtained, a set of parallel lines parallel to the coordinate axis of the indicator diagram is selected based on the displacement position relationship among a plurality of points forming the current indicator diagram, and the current indicator diagram is subjected to graph division, so that the obtained regular graph is prevented from exceeding the current indicator diagram, the area of the current indicator diagram obtained by calculation is ensured to be accurate by using the area of each regular graph, and the area of the regular graph can be obtained by directly using a simple area calculation formula without using an integral calculation, so that the calculation amount is greatly reduced, and the calculation efficiency and the accuracy are improved.
Further, the inventor of the present invention found that some acquired indicator diagrams have displacement symmetry characteristics, such as the indicator diagram shown in fig. 4, except for the maximum displacement point and the minimum displacement point in the indicator diagram, the displacement intervals of other adjacent moments are the same, and the displacements of two points symmetric up and down on the indicator diagram are the same, based on this characteristic, the inventor proposed that the intermediate displacement points except the maximum displacement point and the minimum displacement point are divided into (144-2-2)/2-70 quadrangles, the maximum displacement point and the minimum displacement point respectively form a triangle with the adjacent displacement points, that is, the indicator diagram is divided into two triangles and a plurality of quadrangles, and the areas of these regular graphs are calculated to obtain the areas of the indicator diagrams.
Specifically, referring to fig. 5, a schematic flow chart of an indicator diagram processing method according to another embodiment of the present invention is provided, where this embodiment mainly processes an indicator diagram (such as the indicator diagram shown in fig. 4) with displacement symmetry characteristics, and may specifically include, but is not limited to, the following steps:
step S21, acquiring indicator diagram information;
the indicator diagram information at least includes displacement data and load data corresponding to a plurality of points constituting the current indicator diagram.
Step S22, detecting the relationship among the displacement data of each intermediate displacement point forming the current indicator diagram, and determining a plurality of pairs of intermediate displacement points with the same displacement data in each intermediate displacement point;
wherein the intermediate displacement point is a point other than the minimum displacement point and the maximum displacement point constituting the current indicator diagram. The present embodiment may detect whether the current indicator diagram has the above-mentioned displacement symmetry characteristic by means of the step S22.
For the indicator diagram shown in fig. 4, by analyzing the displacement data of each intermediate displacement point constituting the current indicator diagram, it can be known that the displacements of the vertically symmetric intermediate displacement points are the same, and the displacement intervals at adjacent times are the same, which indicates that the intermediate displacement points are connected to form a quadrangle, and at least one set of opposite sides of the quadrangle are parallel, and the indicator diagram having the characteristics can be processed by adopting the graph division method described in this embodiment, so that the area of the indicator diagram can be calculated more quickly.
Alternatively, in this embodiment, the minimum displacement point and the maximum displacement point may be determined from a plurality of points that constitute the plurality of indicator diagrams by comparing displacement data of the points, and at this time, a point that constitutes the current indicator diagram except for the minimum displacement point and the maximum displacement point may be regarded as the intermediate displacement point. For convenience in describing the subsequent processing steps, two intermediate displacement points having the same displacement data may be referred to as a pair of intermediate displacement points, as shown in fig. 4, two upper and lower intermediate displacement points on one vertical line may be referred to as a pair of intermediate displacement points, and the current indicator diagram may be composed of a plurality of pairs of intermediate displacement points, a minimum displacement point, and a maximum displacement point.
And step S23, dividing the current indicator diagram into a plurality of quadrangles by using connecting lines between every pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively.
Referring to fig. 4, for the indicator diagram with displacement symmetry characteristics, in addition to the triangle divided at the two ends of the indicator diagram, the middle area may be divided into several quadrangles, that is, according to the analysis of the characteristics of such indicator diagrams, a set of parallel lines parallel to the load coordinate axis (i.e., the connecting lines between the middle displacement points of each pair of displacement data) may be used to divide the current indicator diagram into a plurality of quadrangles, as in the above calculation manner, if the current indicator diagram is composed of 144 points, 70 quadrangles may be obtained according to the above division, and in some cases, the quadrangles may be parallelograms.
Moreover, for the maximum displacement point and the minimum displacement point in the current indicator diagram, two triangles may be formed with the middle displacement point having the same displacement data as the adjacent pair of displacement points, such as the triangles formed on the left and right sides in the indicator diagram of fig. 4.
It should be noted that, for the indicator diagram with displacement symmetry characteristic, the graph dividing manner described in this embodiment is not limited, and in general, if the overall shape of the resulting indicator diagram extends laterally, in the manner described in this embodiment, the graphical division may be performed by a set of parallel lines parallel to the load coordinate axis, if the overall shape of the resulting indicator diagram extends longitudinally, a set of parallel lines parallel to the axis of displacement coordinate may be used for graphical division, in which case there are multiple pairs of intermediate load points with the same load data as the intermediate load points of the indicator diagram, according to the graphical division concept of this embodiment, the indicator diagram can be divided into a plurality of quadrangles by using connecting lines between each pair of intermediate load points with the same load data, and a triangle is formed by the maximum load point and the minimum load point and the adjacent middle load point respectively.
Therefore, for different overall shapes of the obtained indicator diagrams, the graph division of the indicator diagrams is realized by utilizing the corresponding displacement symmetry characteristic or load symmetry characteristic and correspondingly adopting a group of parallel lines parallel to a load coordinate axis or a group of parallel lines parallel to a displacement coordinate axis to obtain a plurality of quadrangles and triangles, and the graph division flexibility and accuracy are improved. The determination of the overall shape of the indicator diagram may be based on a displacement data difference between a maximum displacement point and a minimum displacement point, and a load data difference between a maximum load point and a minimum load point, and the determination method is not limited in this embodiment.
Step S24, calculating the area of the corresponding quadrangle and the area of the corresponding triangle by using the displacement data and the load data of each point forming each quadrangle and each triangle;
still taking the indicator diagram shown in fig. 4 as an example, the triangle area is 1/2 (bottom x high), and x is used i Indicating displacement data of the ith point, y i Load data representing the ith point, triangle area S Triangle shape =1/2[(y i+1 -y i )*(x i+1 -x i )]Square area S Quadrilateral shape =(y i+1 -y i )*(x i+1 -x i ) In this embodiment, the area of each divided quadrangle and each divided triangle can be calculated by using the area calculation formulas of different figures, which is not described in detail.
And step S25, summing the areas of the plurality of quadrangles and the areas of the plurality of triangles to obtain the graphic area of the current indicator diagram.
In this embodiment, as shown in fig. 4, for the indicator diagram with displacement symmetry characteristics, the inner region of the indicator diagram is directly divided into a plurality of quadrangles and triangles in this embodiment, and compared with the way that the inventor originally thinks of dividing into a plurality of triangles, the regular graph obtained by dividing in this embodiment does not exceed the whole region of the indicator diagram, so that the areas of the plurality of regular graphs obtained can be directly summed to obtain the graph area of the current indicator diagram, which is simple and convenient, and the accuracy of the current indicator diagram area is ensured, and the calculation efficiency is improved. Compared with the traditional integral calculation mode, the method greatly improves the calculation efficiency and accuracy. As another embodiment provided by the present invention, in practical applications, the obtained indicator diagrams do not all have displacement symmetry characteristics, and for such indicator diagrams without displacement symmetry characteristics as shown in fig. 6, the graph division method and the indicator diagram area calculation method described in the above embodiments cannot be adopted, so that for such indicator diagrams, the inventor proposes an area difference method to calculate the area of the indicator diagram, and for the areas of two regions for performing difference calculation, the two regions may be divided into a plurality of trapezoids, the areas of the corresponding plurality of trapezoids are used to obtain the areas of the corresponding regions, and then the difference between the areas of the two regions is calculated to obtain the graph area of the indicator diagram.
Specifically, with reference to the graph dividing manner shown in fig. 6, referring to a flowchart of the indicator diagram processing method provided in another embodiment shown in fig. 7, the method may specifically include the following steps:
step S31, acquiring indicator diagram information;
the indicator diagram information at least includes displacement data and load data corresponding to a plurality of points constituting the current indicator diagram.
Step S32, acquiring the maximum displacement point and the minimum displacement point which form the current indicator diagram;
step S33, dividing the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
referring to the indicator diagram shown in fig. 6, the displacement data of the upper and lower points on the same vertical line are not the same, and the current indicator diagram cannot be processed according to the indicator diagram graph division method provided in the above embodiment.
Specifically, in this embodiment, the indicator diagram may be divided into an upper portion and a lower portion by the maximum displacement point, that is, the points constituting the indicator diagram are divided by using the minimum displacement point a and the maximum displacement point B as critical points, so as to form an upper line segment and a lower line segment, which are respectively marked as a first line segment and a second line segment, for example, the first line segment corresponding to the thick solid line and the second line segment corresponding to the thin solid line in fig. 6. At this time, the two line segments and the two coordinate axes, and the vertical line passing through the maximum displacement point may form two closed regions.
It should be noted that, in the present embodiment, for the indicator diagram shown in fig. 6, the overall shape extends transversely, and the first line segment and the second line segment, and the two line segments described in the upper section, are determined to be located in the respective regions in the manner shown in step S33; if the indicator diagram extends longitudinally in the overall shape, according to the concept of the present embodiment, the current indicator diagram may be divided into the third line segment and the fourth line segment distributed left and right by using the minimum load point and the maximum load point as the critical points.
Of course, the mode of dividing the indicator diagram in the present invention is not limited to the two implementation modes described above, and may be determined according to the characteristics of the actually obtained current indicator diagram based on the core concept described above, and the present invention is not listed here.
Step S34, dividing a first line segment, two coordinate axes of the current indicator diagram and a first area between the first straight lines into a plurality of first trapezoids by using a group of parallel lines parallel to the load coordinate axes, and dividing a second line segment, two coordinate axes and a second area between the first straight lines into a plurality of second trapezium coordinate axes;
wherein the first straight line is a straight line passing through the point of maximum displacement in the set of parallel lines parallel to the load coordinate axis, and the rightmost straight line is a straight line parallel to the load coordinate axis as shown in fig. 6.
Still taking the indicator diagram shown in fig. 6 as an example, as described above, the area where the first line segment located above (i.e., the area filled by the line segment at an acute angle to the displacement coordinate angle in fig. 6) is located covers the area where the second line segment located below (i.e., the area filled by the line segment at an obtuse angle to the displacement coordinate angle in fig. 6) is located. It should be noted that, when determining the two regions, it is also possible to use a vertical line passing through the minimum displacement point, if necessary.
For convenience of description, in this embodiment, the area between the first line segment, the two coordinate axes, and the first straight line may be referred to as a first area, the area between the second line segment, the two coordinate axes, and the first straight line may be referred to as a second area, and the two areas are distinguished by oblique lines with different angles in fig. 6.
As for any of the above-described regions, taking the first region as an example, as shown in fig. 8, the first region is divided into a plurality of trapezoids by connecting points on the displacement coordinate axis of the same displacement data as those on the first line segment, and each of the trapezoids in the first region shown in fig. 8 is referred to as a first trapezoid and each of the trapezoids in the second region is referred to as a second trapezoid in order to distinguish the trapezoids obtained by graphically dividing the first region from the second region.
It should be noted that the division manner of the current indicator diagram is not limited to the division manner described in the present embodiment, and as described above, the indicator diagram may be divided into a third line segment and a fourth line segment, in this case, a point on the load coordinate axis where the load is the same as that on the third line segment (i.e., the left line segment) may be connected, the third area and the fourth area obtained in the manner described in the present embodiment may be divided into a plurality of trapezoids, the division manner of the diagram is the same as the division manner described in the present embodiment, and the present embodiment is not described in detail herein.
Step S35, calculating the area of the corresponding first trapezoid and the area of the corresponding second trapezoid by using the displacement data and the load data of each point forming each first trapezoid and each second trapezoid;
still taking the indicator diagram shown in fig. 6 as an example, after the indicator diagram is graphically divided in the above manner, since the first region and the second region may both be composed of corresponding trapezoids obtained by division, the areas of the corresponding regions may be obtained by accumulating the areas of the corresponding trapezoids. According to the trapezoidal area calculation formula: s Trapezoidal shape The area of each trapezoid can be calculated as 1/2 (top + bottom) high.
Refer to the coordinate data (x) of each vertex of a certain trapezoid shown in FIG. 8 i ,y i ) Combining the above trapezoid area calculation formula, the trapezoid area S can be obtained Trapezoidal shape =1/2*(y i +y i+1 )(x i+1 -x i ),. According to the calculation mode, the area of each trapezoid in the two regions can be calculated, namely the area of each first trapezoid and the area of each second trapezoid are obtained.
Step S36, summing the obtained areas of the plurality of first trapezoids to obtain an area of a first region, and summing the obtained areas of the plurality of second trapezoids to obtain an area of a second region;
following the indicator diagram shown in fig. 6 given above, the area S of the first region First region Or the area S of the second region Second region It can be calculated according to the following formula:
Figure BDA0001807752730000131
and step 37, performing difference operation on the area of the first region and the area of the second region to obtain the graphic area of the current indicator diagram.
After the area of each region is obtained based on the above calculation method, as shown in fig. 6, the first region includes the current indicator diagram region and the second region, and therefore, the area of the second region subtracted from the area of the first region is the graph area of the current indicator diagram, i.e., S Indicator diagram =S First region -S Second region
It can be seen that, in the present embodiment, for the indicator diagram without the displacement symmetry characteristic, a calculation mode of an area difference is adopted, the area of the current indicator diagram is quickly and accurately obtained, and in the obtaining process, the current indicator diagram is divided into a plurality of trapezoids, so that the area of the region is calculated, instead of adopting a triangle division mode, an integral calculation mode is not adopted, the efficiency and accuracy of indicator diagram calculation are improved, and further, the accuracy and efficiency of the analysis result of the subsequent application scene based on the obtained indicator diagram area are improved.
It should be noted that the area difference calculation method proposed in this embodiment is also applicable to the calculation of the indicator diagram area with displacement symmetry, but it cannot achieve the rapidity and accuracy of the graph division and indicator diagram area calculation method corresponding to fig. 4 and 5. Therefore, the area difference calculation method proposed in this embodiment can be applied to the calculation of the graphic areas of more indicator diagrams, that is, the application range is wider.
In summary, in the present invention, the indicator diagram with displacement symmetry characteristics can be divided into a plurality of quadrangles and triangles, and the graphic areas of the indicator diagram are obtained by summing the graphic areas; for the indicator diagram without displacement symmetry, the areas of the plurality of trapezoids divided by the divided different regions need to be summed to obtain the corresponding region area, and then the area difference between the two region areas is calculated to obtain the graph area of the current indicator diagram.
Therefore, for different types of indicator diagrams, different graphic division modes can be flexibly selected, the current indicator diagram is subjected to graphic division, after a plurality of regular graphic areas are obtained, the graphic areas of the indicator diagram are quickly and accurately obtained by adopting a summing or difference-solving mode, complex operation of integral is not needed, the calculation workload is greatly reduced, and the working efficiency and the accuracy are improved.
In addition, in practical application, because the indicator diagram area is an important basis for judging the working state of the pumping unit, after the current indicator diagram area is obtained according to the above modes, whether the pumping unit normally works can be judged according to the current indicator diagram area, of course, the working state of the pumping unit can be determined by utilizing the area change of a plurality of indicator diagrams obtained within a period of time, the petroleum development progress and the like can be determined according to the area change, and the obtained indicator diagram area can be further processed according to actual requirements.
In general, this embodiment may store the area of the current indicator diagram obtained each time, and when it is necessary to count the area change of the indicator diagram, may obtain the areas of a plurality of indicator diagrams obtained within a preset time from the current time to determine the area change of the plurality of indicator diagrams, and then obtain the meaning of the indicator diagram area change representation according to a preset judgment criterion.
It should be noted that, the present invention does not limit how the calculated graph area of the indicator diagram meets the application requirements in each application scenario, and a corresponding processing method may be determined according to actual needs, which is not described in detail herein in this embodiment.
Optionally, in practical applications of the foregoing embodiments, for some special reasons, sometimes the first point and the last point of the indicator diagram are not coincident, that is, sometimes the obtained current indicator diagram is not a closed graph, in this case, the present embodiment may manually supplement a last returning point to ensure that the last point and the first point are the same in position, that is, the displacement data and the load data are the same.
Therefore, on the basis of the foregoing embodiments, referring to a further schematic flow diagram of the indicator diagram processing method shown in fig. 9, after obtaining the current indicator diagram information, and before performing the step of determining the graph division rule of the current indicator diagram based on the relationship between the displacement data respectively corresponding to the multiple points, this embodiment may further include the following steps:
step S41, obtaining displacement data and load data of a first point and a last point which form the current indicator diagram;
the present embodiment may determine the first point and the last point constituting the current indicator diagram according to the generation time of each point of the indicator diagram, but is not limited to this determination.
Step S42, detecting whether the displacement data of the first point and the last point are the same, and whether the load data of the first point and the last point are the same, if not, entering step S43; if yes, go to step 44;
step S43, obtaining displacement data and load data of the supplementary position point of the current indicator diagram, and using the supplementary position point as the last point of the current indicator diagram;
step S44, dividing the current indicator diagram into a plurality of regular graphs by a group of parallel lines parallel to the coordinate axis of the current indicator diagram;
optionally, in practical application, each time an indicator diagram is generated, the indicator diagram may be output, and a worker may visually see whether the indicator diagram is a closed diagram, and if not, may manually make up points in time, so that the computer device may obtain coordinate data of the make-up points input by the user in time, and update the indicator diagram information.
Of course, in this embodiment, the computer device may also compare the coordinate data of the first point and the last point of the current indicator diagram to determine whether the two points are overlapped, if not, output a prompt message to remind the operator to perform point compensation, and update the indicator diagram information of the current indicator diagram by using the obtained coordinate data of the point compensation.
Step S45, calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and step S46, calculating areas of the obtained plurality of regular patterns to obtain the pattern area of the current indicator diagram.
For specific implementation of steps S44 to S46, reference may be made to the description of corresponding parts of steps S12 to S14, and this embodiment is not described in detail again.
In addition, referring to the flowchart shown in fig. 10, in combination with the two indicator diagram dividing methods proposed in the foregoing embodiment and the description of the corresponding indicator diagram area calculating method, in a general case, the indicator diagram has a displacement symmetry characteristic, a plurality of quadrangles can be obtained from the middle displacement point of the indicator diagram in the manner described in the foregoing alternative embodiment, and then the area of the indicator diagram is obtained by calculation.
Optionally, as for the obtained indicator diagram, a special situation as shown in fig. 11a may also occur, which is often a case where a pump of the pumping unit has a serious fault or other problems, resulting in a serious abnormality of the obtained current indicator diagram, where the current indicator diagram often appears as shown in fig. 11a, and for convenience of research on the current indicator diagram, the obtained indicator diagram may be simplified into the indicator diagram shown in fig. 11 b.
Based on the above, after the graph area of the current indicator diagram is calculated according to the above method, whether the graph area is a negative value or not can be judged, and if the graph area is the negative value, fault prompt information can be output to inform workers that the oil pumping unit or other equipment has faults at the moment and needs to be overhauled.
Certainly, this embodiment can be through a large amount of experiments, the indicator diagram area of each negative value, the corresponding beam-pumping unit trouble condition of predetermining, like this, when detecting the graphic area of current indicator diagram and being the negative value, can confirm what rank trouble is to present beam-pumping unit according to the corresponding relation that prestores to determine the beam-pumping unit of serious fault from this, inform the staff to overhaul it, solve the beam-pumping unit participation work of trouble, influence work efficiency, reduce the oil pumping volume etc..
It should be noted that, in this embodiment, when it is determined that the graph area of the current indicator diagram is a negative value, a specific implementation method of how to perform the fault analysis is not limited, and may be determined according to an actual application requirement, and details of this embodiment are not described herein.
In summary, after the current indicator diagram information is obtained, according to the displacement characteristics of the current indicator diagram, the corresponding graph division rule is selected, the current indicator diagram is subjected to graph division, and then the areas of the plurality of divided graphs are subjected to simple mathematical operation, so that the graph area of the current indicator diagram can be obtained, an integral mode is not required, and the calculation efficiency, the accuracy and the flexibility are improved.
In addition, in the process of dividing the current indicator diagram into graphs, the present embodiment does not adopt a triangle division mode proposed by earlier research of the inventor, but adopts a quadrilateral division mode or a quadrilateral + triangle division mode, so that the problem that the area of the obtained graph is larger than the area of the actual indicator diagram due to the fact that the current indicator diagram is directly divided by triangles is solved, and the accuracy of calculating the area of the indicator diagram is improved.
Referring to fig. 12, a schematic structural diagram of an indicator diagram processing apparatus provided in an embodiment of the present invention, the apparatus may be applied to a computer device, and may specifically include, but is not limited to, the following functional modules:
an information obtaining module 121, configured to obtain indicator diagram information;
the indicator diagram information at least comprises displacement data and load data which are respectively corresponding to a plurality of points forming the current indicator diagram. Regarding the manner of obtaining the current indicator diagram, reference may be made to the description of the corresponding part of the foregoing method embodiment, which is not limited in this embodiment.
The graph dividing module 121 is configured to perform graph division on the current indicator diagram by using a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
in combination with the above description of the method embodiment, for indicator diagrams with different characteristics, different graph division modes may be adopted to perform image division on the current indicator diagram, and reference may be specifically made to the description of the corresponding part of the above method embodiment.
A graph area calculation module 123, configured to calculate an area of each regular graph by using displacement data and load data of each point constituting the regular graph;
the obtained regular patterns are usually common patterns in the mathematical field, such as quadrangles, trapezoids, and triangles, and for each regular pattern, there is usually a corresponding area calculation formula to quickly and accurately calculate the area of the regular pattern, which may specifically refer to the description of the corresponding embodiment below.
And the indicator diagram area calculating module 124 is configured to calculate areas of the obtained multiple regular graphs to obtain a graph area of the current indicator diagram.
In combination with the description of the above method embodiment, in this embodiment, a group of parallel lines parallel to the coordinate axis of the current indicator diagram is used to perform graph division on the current indicator diagram, instead of using the oblique line division manner shown in fig. 1, so that it is avoided that the divided regular graph exceeds the indicator diagram, and for the obtained regular graph, the area of the regular graph can be obtained by using a simple mathematical area calculation formula, and then the graph area of the current indicator diagram is obtained through addition and subtraction operation, so that integral operation is not required, the calculation workload is greatly reduced, and the work efficiency and accuracy are improved.
Optionally, by analyzing displacement data of a plurality of points that constitute the current indicator diagram, it is known that some indicator diagrams have a displacement symmetry characteristic, for such indicator diagrams, this embodiment may divide the indicator diagram into a plurality of quadrangles and triangles, and obtain the area of the current indicator diagram by using the sum of the areas of the plurality of graphs, based on the graph division concept, as shown in fig. 11, the graph dividing module 122 may include:
a first determining unit 12210, configured to detect a relationship between displacement data of each intermediate displacement point that constitutes the current indicator diagram, and determine a plurality of pairs of intermediate displacement points that have the same displacement data in each intermediate displacement point, where the intermediate displacement points are points that constitute the current indicator diagram except for a minimum displacement point and a maximum displacement point;
a first graph dividing unit 12211, configured to divide the current indicator diagram into multiple quadrangles by using a connection line between each pair of middle displacement points with the same displacement data, and form a triangle by using the maximum displacement point and the minimum displacement point and the respective adjacent middle displacement points respectively;
accordingly, the graphic area calculation module 123 may specifically include:
a first pattern area calculation unit 12310 for calculating an area of a corresponding quadrangle using displacement data and load data of points constituting each quadrangle;
and a second figure area calculating unit 12311 for calculating the area of the corresponding triangle using the displacement data and the load data of the points constituting each triangle.
The indicator area calculation module 124 may include:
a first summation operation module 12410, configured to perform summation operation on the obtained areas of the multiple quadrangles and the multiple triangles, so as to obtain a graph area of the current indicator diagram.
It should be noted that, with respect to the area calculation process of the indicator diagram with displacement symmetry characteristics, that is, the specific implementation process of each functional unit, reference may be made to the description of the corresponding part of the foregoing method embodiment.
As another embodiment of the present invention, in order to realize a graph area of an indicator diagram without displacement symmetry, an area difference calculation method is proposed in this embodiment, and specifically as shown in fig. 14, the graph dividing module 122 may include:
a displacement point obtaining unit 12220, configured to obtain a maximum displacement point and a minimum displacement point that constitute the current indicator diagram;
a dividing unit 12221, configured to divide the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
the second graph dividing unit 12222 is configured to divide a first region between the first line segment, the two coordinate axes of the current indicator diagram, and the first straight line into a plurality of first trapezoids by using a set of parallel lines parallel to the load coordinate axis, and divide a second region between the second line segment, the two coordinate axes, and the first straight line into a plurality of second trapezoids, where the first straight line is a straight line passing through the maximum displacement point in the set of parallel lines parallel to the load coordinate axis.
Correspondingly, the graph area calculating module 123 may specifically include:
a third pattern area calculation unit 12320 for calculating an area of a corresponding first trapezoid using displacement data and load data of each point of each of the composed first trapezoids;
a fourth pattern area calculation unit 12321 configured to calculate an area of a corresponding second trapezoid using the displacement data and the load data of each of the points of each of the second trapezoids;
the indicator area calculation module 124 may include:
a second summation operation module 12420, configured to sum the obtained areas of the plurality of first trapezoids to obtain the area of the first region;
a third summation operation module 12421, configured to sum the obtained areas of the plurality of second trapezoids to obtain the area of the second region;
a difference operation unit 12422, configured to perform difference operation on the area of the first region and the area of the second region, so as to obtain a graph area of the current indicator diagram.
It should be noted that, for the area obtaining process of the indicator diagram without displacement symmetry, reference may be made to the specific description of the corresponding method embodiment described above, and this embodiment is not described again here.
In summary, in this embodiment, after obtaining the current indicator diagram information, the displacement relationship of each point may be determined first to determine which graph division manner is used for the current indicator diagram to perform graph division, specifically, a set of parallel lines parallel to a coordinate axis is used to perform graph division on the current indicator diagram to obtain a plurality of regular graphs, so as to prevent the obtained plurality of regular graphs from exceeding the current indicator diagram, and then, the area of each regular graph is obtained by directly using a mathematical graph area calculation formula, and the graph area of the current indicator diagram is obtained quickly and accurately by performing addition and subtraction operations on the areas of the plurality of regular graphs, so that the calculation efficiency and accuracy are greatly improved compared with an integral calculation manner.
Optionally, in practical applications, because the obtained current indicator diagram is sometimes not a closed diagram, in order to ensure reliable operation of the indicator diagram area calculation method provided in the foregoing embodiment and improve calculation accuracy, in this case, a point-complementing method may be adopted to update the current indicator diagram, so that the updated indicator diagram is a closed diagram, and on the basis of the foregoing embodiments, as shown in fig. 15, the apparatus may further include:
a data obtaining module 125, configured to obtain displacement data and load data corresponding to a first point and a last point that form a current indicator diagram, respectively;
a detecting module 126, configured to detect whether the displacement data of the first point and the displacement data of the last point are the same, and whether the load data of the first point and the load data of the last point are the same;
and the point supplementing module 127 is configured to, when the detection result of the detection module is negative, obtain displacement data and load data of a point to be supplemented for the current indicator diagram, and use the point to be supplemented as the last point of the current indicator diagram.
It should be understood that, when the displacement data of the first point and the last point are not the same, or the load data of the first point and the last point are different, the detection result of the detection module is no, and when the displacement data of the first point and the last point are the same, and the load data of the first point and the last point are the same, the detection result of the detection module is yes.
In this embodiment, after the displacement data and the load data of the compensation point are obtained, the current indicator diagram information may be updated accordingly, so that the updated indicator diagram is called a closed diagram, that is, the first point and the last point of the updated indicator diagram coincide.
As another embodiment of the present invention, in the above embodiments, as shown in fig. 13, the apparatus may further include:
and the fault prompt module 128 is configured to determine that the obtained graph area of the current indicator diagram is a negative value, and output fault prompt information.
It should be noted that the present embodiment does not limit the type of the fault notification module, that is, does not limit the specific output mode of outputting the fault notification information, and may directly output corresponding text through the display screen, and output the fault notification information through a voice broadcast mode, etc. After the staff obtains the fault prompt information, the corresponding pumping unit pump can be overhauled in time, so that the faulty pumping unit is prevented from participating in work, and the work efficiency is reduced.
In this embodiment, the indicator diagram processing apparatus described in each of the above embodiments may include a processor and a memory, and the information obtaining module, the graph dividing module, the graph area calculating module, the judging unit, the graph dividing rule determining unit, the first graph dividing unit, the first graph area calculating unit, the second graph area calculating unit, the first summation operation module, the displacement point obtaining unit, the dividing unit, the second graph dividing unit, the third graph area calculating unit, the fourth graph area calculating unit, the second summation operation module, the third summation operation module, the difference operation unit, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor may include a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the displacement characteristic of the current indicator diagram is determined by adjusting the kernel parameters, a group of parallel lines parallel to the coordinate axis of the current indicator diagram is selected, the current indicator diagram is divided into a plurality of regular graphs, and the graph area of the current indicator diagram is accurately and quickly obtained by adding and subtracting the areas of the regular graphs.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the program implements the indicator diagram processing method described in the above-mentioned method embodiment.
The embodiment of the invention provides a processor, which is used for running a program, wherein the indicator diagram processing method is executed when the program runs.
As shown in the hardware structure diagram of fig. 16, an embodiment of the present invention provides a computer device, which may include: a communication interface 161, a memory 162, and a processor 163, wherein:
the number of the communication interface 161, the memory 162, and the processor 163 may be at least one, and the communication interface 161, the memory 162, and the processor 163 may communicate with each other through a communication bus.
The communication interface 161 may be configured to receive a message sent by an external device, for example, current indicator diagram information of a target oil field acquired by the acquisition device, and may also be configured to implement transmission of internal data of the computer device, which may be specifically determined according to requirements of an actual application scenario, and this embodiment is not described in detail.
Optionally, the communication interface may include a wired or wireless network interface, such as a WIFI network interface, a GPRS network interface, and the like, and the type of the interface included in the communication interface is not limited in this embodiment.
A memory 162 for storing a program for implementing the indicator diagram processing method described above;
a processor 163 for loading and executing the memory-stored program for:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph.
Optionally, the following steps may be implemented when the processor executes the program:
detecting the relationship among the displacement data of each intermediate displacement point forming the current indicator diagram, and determining a plurality of pairs of intermediate displacement points with the same displacement data in each intermediate displacement point, wherein the intermediate displacement points are points forming the current indicator diagram except for a minimum displacement point and a maximum displacement point;
and dividing the current indicator diagram into a plurality of quadrangles by using connecting lines between every pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively.
Optionally, the following steps may be implemented when the processor executes the program:
and summing the obtained areas of the plurality of quadrangles and the plurality of triangles to obtain the graph area of the current indicator diagram.
Optionally, the following steps may be implemented when the processor executes the program:
acquiring a maximum displacement point and a minimum displacement point which form the current indicator diagram;
dividing the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
dividing a first area among the first line segment, the two coordinate axes of the current indicator diagram and the first straight line into a plurality of first trapezoids by using a group of parallel lines parallel to the load coordinate axes, and dividing a second area among the second line segment, the two coordinate axes and the first straight line into a plurality of second trapezoids, wherein the first straight line is a straight line passing through the maximum displacement point in the group of parallel lines parallel to the load coordinate axes.
Optionally, the following steps may be implemented when the processor executes the program:
summing the obtained areas of the plurality of first trapezoids to obtain the area of the first region;
summing the obtained areas of the plurality of second trapezoids to obtain the area of the second region;
and performing difference operation on the area of the first region and the area of the second region to obtain the graph area of the current indicator diagram.
Optionally, the following steps may also be implemented when the processor executes the program:
acquiring displacement data and load data respectively corresponding to a first point and a last point which form a current indicator diagram;
detecting whether the displacement data of the first point and the last point are the same, and whether the load data of the first point and the last point are the same;
and if the difference is different, acquiring displacement data and load data of a complementary position point of the current indicator diagram, and taking the complementary position point as the last point of the current indicator diagram.
Optionally, the following steps may be implemented when the processor executes the program:
and determining that the obtained graphic area of the current indicator diagram is a negative value, and outputting fault prompt information.
In practical applications, the computer device provided in this embodiment may be a terminal device, a server, and the like, and the product type of the computer device is not limited in this embodiment.
Embodiments of the present invention further provide a computer program product, which, when executed on a computer device, is adapted to execute a program that initializes the following method steps:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
and calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph.
Optionally, other steps of the above method embodiments may also be implemented when the computer product executes the program, and reference may be specifically made to the description of the corresponding parts in the above embodiments, which is not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, computer device or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, computer devices and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable message processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, computer device or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (7)

1. An indicator diagram processing method, characterized in that the method comprises:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using displacement data and load data of each point forming each regular graph;
calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph;
the method for dividing the current indicator diagram by using a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphs comprises the following steps:
detecting the relationship among the displacement data of each intermediate displacement point forming the current indicator diagram, and determining a plurality of pairs of intermediate displacement points with the same displacement data in each intermediate displacement point, wherein the intermediate displacement points are points forming the current indicator diagram except for a minimum displacement point and a maximum displacement point;
dividing the current indicator diagram into a plurality of quadrangles by using a connecting line between each pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively;
or, the graph division is performed on the current indicator diagram by using a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphs, including:
acquiring a maximum displacement point and a minimum displacement point which form the current indicator diagram;
dividing the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
dividing a first line segment, two coordinate axes of the current indicator diagram and a first area between the first lines into a plurality of first trapezoids by using a group of parallel lines parallel to load coordinate axes, and dividing a second line segment, two coordinate axes and a second area between the first lines into a plurality of second trapezoids; the first straight line is a straight line through the point of maximum displacement in the set of parallel lines parallel to the load coordinate axis.
2. The method according to claim 1, wherein the calculating the areas of the obtained regular graphs to obtain the graph area of the current indicator graph comprises:
and performing summation operation on the obtained areas of the plurality of quadrangles and the areas of the plurality of triangles to obtain the graph area of the current indicator diagram.
3. The method according to claim 1, wherein the calculating the areas of the obtained regular graphs to obtain the graph area of the current indicator graph comprises:
summing the obtained areas of the plurality of first trapezoids to obtain the area of the first region;
summing the obtained areas of the plurality of second trapezoids to obtain the area of the second region;
and performing difference operation on the area of the first region and the area of the second region to obtain the graph area of the current indicator diagram.
4. The method according to any one of claims 1-3, further comprising:
acquiring displacement data and load data respectively corresponding to a first point and a last point which form a current indicator diagram;
detecting whether the displacement data of the first point and the last point are the same or not and whether the load data of the first point and the last point are the same or not;
and if the difference is different, acquiring displacement data and load data of a complementary position point of the current indicator diagram, and taking the complementary position point as the last point of the current indicator diagram.
5. The method according to any one of claims 1-3, further comprising:
and determining that the obtained graphic area of the current indicator diagram is a negative value, and outputting fault prompt information.
6. An indicator diagram processing apparatus, characterized in that the apparatus comprises:
the information acquisition module is used for acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming the current indicator diagram;
the graphic division module is used for carrying out graphic division on the current indicator diagram by utilizing a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphics;
the graph area calculation module is used for calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
the indicator diagram area calculation module is used for calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator diagram;
wherein the graph partitioning module comprises:
a first determining unit, configured to detect a relationship between displacement data of each intermediate displacement point that constitutes the current indicator diagram, and determine a plurality of pairs of intermediate displacement points that have the same displacement data among the intermediate displacement points, where the intermediate displacement points are points that constitute the current indicator diagram except for a minimum displacement point and a maximum displacement point;
the first graph dividing unit is used for dividing the current indicator diagram into a plurality of quadrangles by using a connecting line between each pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively;
or, the graph dividing module includes:
the displacement point acquisition unit is used for acquiring a maximum displacement point and a minimum displacement point which form the current indicator diagram;
a dividing unit, configured to divide the current indicator diagram into a first line segment and a second line segment by using the maximum displacement point and the minimum displacement point as critical points;
the second graph dividing unit is used for dividing the first line segment, two coordinate axes of the current indicator diagram and a first area between the first straight lines into a plurality of first trapezoids by using a group of parallel lines parallel to the load coordinate axes, and dividing the second line segment, the two coordinate axes and a second area between the first straight lines into a plurality of second trapezoids; the first line is a straight line through the point of maximum displacement in a set of parallel lines parallel to the load coordinate axis.
7. A computer device, characterized in that the computer device comprises:
a communication interface;
a memory for storing a program for implementing the indicator diagram processing method according to any one of claims 1 to 5;
a processor for loading and executing the memory-stored program, the program for:
acquiring indicator diagram information, wherein the indicator diagram information at least comprises displacement data and load data which respectively correspond to a plurality of points forming a current indicator diagram;
carrying out graph division on the current indicator diagram by utilizing a group of parallel lines parallel to a coordinate axis of the current indicator diagram to obtain a plurality of regular graphs;
calculating the area of each regular graph by using the displacement data and the load data of each point forming each regular graph;
calculating the areas of the obtained multiple regular graphs to obtain the graph area of the current indicator graph;
the method for dividing the current indicator diagram by using a group of parallel lines parallel to the coordinate axis of the current indicator diagram to obtain a plurality of regular graphs comprises the following steps:
detecting the relationship among the displacement data of each intermediate displacement point forming the current indicator diagram, and determining a plurality of pairs of intermediate displacement points with the same displacement data in each intermediate displacement point, wherein the intermediate displacement points are points forming the current indicator diagram except for a minimum displacement point and a maximum displacement point;
dividing the current indicator diagram into a plurality of quadrangles by using a connecting line between each pair of middle displacement points with the same displacement data, and forming a triangle by using the maximum displacement point and the minimum displacement point and the adjacent middle displacement points respectively;
or, the dividing the current indicator diagram into a plurality of regular graphs by using a group of parallel lines parallel to the coordinate axis of the current indicator diagram includes:
acquiring a maximum displacement point and a minimum displacement point which form the current indicator diagram;
dividing the current indicator diagram into a first line segment and a second line segment by taking the maximum displacement point and the minimum displacement point as critical points;
dividing a first line segment, two coordinate axes of the current indicator diagram and a first area between the first straight lines into a plurality of first trapezoids by using a group of parallel lines parallel to load coordinate axes, and dividing a second line segment, two coordinate axes and a second area between the first straight lines into a plurality of second trapezoids; the first straight line is a straight line through the point of maximum displacement in the set of parallel lines parallel to the load coordinate axis.
CN201811117594.9A 2018-09-21 2018-09-21 Indicator diagram processing method, device and equipment Active CN110941747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811117594.9A CN110941747B (en) 2018-09-21 2018-09-21 Indicator diagram processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811117594.9A CN110941747B (en) 2018-09-21 2018-09-21 Indicator diagram processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN110941747A CN110941747A (en) 2020-03-31
CN110941747B true CN110941747B (en) 2022-09-09

Family

ID=69904905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811117594.9A Active CN110941747B (en) 2018-09-21 2018-09-21 Indicator diagram processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN110941747B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104500029A (en) * 2014-11-14 2015-04-08 中国石油天然气股份有限公司 Method for judging similarity of indicator diagrams of oil wells
CN106951662A (en) * 2017-04-12 2017-07-14 东北大学 Dlagnosis of Sucker Rod Pumping Well underground working diagnostic method based on valve operating point

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10540594B2 (en) * 2015-09-18 2020-01-21 International Business Machines Corporation Identifying abnormal pumpjack conditions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104500029A (en) * 2014-11-14 2015-04-08 中国石油天然气股份有限公司 Method for judging similarity of indicator diagrams of oil wells
CN106951662A (en) * 2017-04-12 2017-07-14 东北大学 Dlagnosis of Sucker Rod Pumping Well underground working diagnostic method based on valve operating point

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
示功图计算产量简易法;刘明德;《石油钻采工艺》;19910620(第03期);第75页-第79页 *

Also Published As

Publication number Publication date
CN110941747A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN109460561B (en) Fault diagnosis method and device for oil extraction equipment
DE102020100591A1 (en) ERROR DETECTING DEVICE FOR DETECTING A PROBLEM WITH A PART OF A MACHINE
CN108153979B (en) Deformation information extraction method based on InSAR, terminal and storage medium
CN111104736B (en) Abnormal data detection method, device, medium and equipment based on time sequence
CN113378274A (en) Building construction monitoring method and system based on BIM
CN110673146B (en) Weather prediction image detection method and device, computer equipment and readable storage medium
CN111583244A (en) Bridge deformation detection method and system
JP2016090547A (en) Crack information collection device and server apparatus to collect crack information
CN114937133A (en) Point cloud data-based visual monitoring method and system for embankment
CN115035475A (en) Water supply pipeline real-time monitoring method and device, electronic equipment and medium
CN117068692A (en) Conveyer belt health diagnosis method, conveyer belt health diagnosis device, server and storage medium
CN110941747B (en) Indicator diagram processing method, device and equipment
CN110889597A (en) Method and device for detecting abnormal business timing sequence indexes
CN106122430A (en) A kind of fine module gear rim detection accuracy computation method of feature based image
CN110532969B (en) Slope unit dividing method based on multi-scale image segmentation
US9336616B2 (en) Power transmission network state visualization
CN110991779A (en) Anomaly detection method and device for oil pumping well
CN115235676A (en) Automatic alarm method for pressure abnormity of mine hydraulic support
CN115311231A (en) Error determination method and error determination device based on construction site panoramic image
CN111045027B (en) Method and device for determining tree lodging defect and method and device for determining tree lodging area
CN108108101B (en) Picture testing method, device, system, computer equipment and storage medium
US20190392571A1 (en) Facility maintenance management system and facility information providing method
CN116274893B (en) Method, processor, device and storage medium for detecting erosion amount of ladle lining
CN118049938B (en) Rail measuring method, device, electronic equipment, readable storage medium and system
CN116740545A (en) Fire extinguisher pressure gauge state identification method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant