Method and system for automatically dividing gas well plunger gas lift drainage gas recovery cycle

By identifying the characteristic trends of oil pressure and sleeve pressure data, the gas lifting and drainage gas production cycle of gas well plunger is automatically divided, which solves the problem of inaccurate division of production cycles in the existing technology, and improves the production capacity and stable production of gas wells.

CN119531799APending Publication Date: 2025-02-28PETROCHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311104500.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the plunger gas lifting and drainage gas extraction technology, the on-site valve status data is unavailable, resulting in the inability to accurately divide the production cycle, affecting the production capacity and stable production of the gas well.

Method used

By setting the observation range and offset, traversing the oil pressure and sleeve pressure data, identifying the increase and decrease trends of the oil pressure and sleeve pressure data, and automatically dividing the gas lifting and drainage gas production cycle of the gas well plunger.

Benefits of technology

The low-quality data cycle automatic division of the plunger gas lifting drainage and gas production system is realized, and the real-time analysis capability of the plunger gas lifting process is improved, which helps to diagnose and predict the plunger operating conditions and optimizes the production system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119531799A_ABST
    Figure CN119531799A_ABST
Patent Text Reader

Abstract

The invention discloses a gas well plunger gas lift drainage gas production cycle automatic division method and system. The method comprises the steps that S11, oil pressure data are traversed according to a time point i, and casing pressure data are traversed according to a time point j; s12, when the oil pressure data rise in the range of [i-m, i] of the time point i and tend to decrease in the range of [i, i + m], the time point i is recorded; s13, whether a time point j exists in the range of [i-n, i + n] or not is checked, and the conditions that the casing pressure data rises in the range of [j-m, j] of the time point j and tends to decrease in the range of [j, j + m] are met; s14, the minimum period length a and the maximum period length b are set, and the oil pressure and casing pressure data continue to be traversed backwards from the start; s15, determining the starting point of the next period according to the conditions in the step S12 and the step S13; and S16, the step S15 is repeated until all the oil pressure and casing pressure data are traversed, and the last period is determined and divided. The device is used for water drainage gas recovery of a water outlet gas well, the production capacity of the gas well is maintained, and normal production and stable production of the gas well are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of natural gas production technology, and in particular to a method and system for automatically dividing a gas well plunger gas lift drainage and gas production cycle. Background Art

[0002] After years of development, the drainage gas production process system has been relatively complete. Through years of exploitation practice in water-bearing gas fields, various drainage gas production process technologies have been established, such as gas lift drainage gas production technology, foam drainage gas production technology, optimal pipe column drainage gas production technology, and plunger gas lift drainage gas production technology. Plunger gas lift drainage gas production technology is one of the effective processes to solve the problem of low formation energy, severe water production, and inability to drain gas wells normally in the late stage of gas well development. It has the advantages of low initial cost and low maintenance. As an intermittent drainage gas production method, plunger gas lift technology uses the energy stored in the natural gas under the plunger during the well closing period, and generates a pressure difference between the upper and lower parts of the plunger when the well is opened, lifting the plunger and the downhole liquid to the ground. During the lifting process, the plunger acts as a mechanical interface between the liquid column and the lifting gas, playing a sealing role to prevent gas crossflow and liquid slippage. In recent years, the application volume has shown explosive growth. As of the end of 2021, it has reached 4,989 wells, accounting for 39.5% of the total drainage and gas production measures, and the annual increase in natural gas production exceeds 1.5 billion cubic meters.

[0003] The analysis and identification of working conditions and system optimization during the operation of plunger gas lift currently rely mainly on theoretical, empirical models or neural network models constructed by parameters such as oil pressure, casing pressure, gas production, and water production collected at the wellhead. However, since the on-site valve status data is unavailable most of the time, it is impossible to accurately divide the production cycle according to the valve status. Therefore, in order to solve the current problems faced by plunger gas lift production data, it is necessary to accurately and efficiently divide the production cycle. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for automatically dividing the gas well plunger gas lift water drainage and gas production cycle, which is mainly used for water drainage and gas production in water-producing gas wells, maintaining the production capacity of gas wells, and ensuring normal and stable production of gas wells. To achieve the above purpose, the present invention provides the following technical solutions:

[0005] The present invention provides a method for automatically dividing the water drainage and gas production cycle of a gas well plunger gas lift, the method comprising the following steps:

[0006] Step S11: setting the observation range to m, the offset to n, the oil pressure data time point variable to i, and the casing pressure data time point variable to j, and traversing the oil pressure data at time point i, and traversing the casing pressure data at time point j;

[0007] Step S12: When the oil pressure data increases within the range of [im, i] at time point i and decreases within the range of [i, i+m], record time point i;

[0008] Step S13: Check whether there is a time point j in the range [in, i+n], which satisfies that the casing pressure data shows an increase in the range [jm, j] of the time point j and a decrease in the range [j, j+m]; if there is such a time point j that satisfies the condition, determine and set the time point i as the cycle starting point start=i; if there is no such time point j that satisfies the condition, traverse the oil pressure and casing pressure data backward until the time point i appears and satisfies the conditions of step S12 and step S13 at the same time, and set it as the cycle starting point start=i;

[0009] Step S14: according to the oil pressure and casing pressure data collected on site, set the minimum cycle length a and the maximum cycle length b, and continue to traverse the oil pressure and casing pressure data from the start point backwards;

[0010] Step S15: Determine the starting point of the next cycle according to whether the conditions in step S12 and step S13 are satisfied, and the distance between time point i and start and the minimum cycle length a and the maximum cycle length b;

[0011] Step S16: Repeat step S15 until all oil pressure and casing pressure data are traversed, the last cycle is determined and divided, and the task is completed.

[0012] As a preferred implementation, the following steps are also included before step S11:

[0013] The missing oil pressure and casing pressure data collected on site are processed and the missing data are completed to the minute level.

[0014] As a preferred implementation, the step S15: determining the starting point of the next cycle according to whether the conditions in step S12 and step S13 are satisfied, and the minimum cycle length a and the maximum cycle length b of the time point i from start, includes:

[0015] When the conditions in step S12 are met, if the conditions in step S13 are also met, and the distance between time point i and start is greater than the minimum cycle length value a, that is, i-start>a, this time point i is recorded as the end point end of this cycle, and the next point is used as the starting point of the next cycle, that is, end=i, start=i+1.

[0016] As a preferred implementation, the step S15: determining the starting point of the next cycle according to whether the conditions in step S12 and step S13 are satisfied, and the minimum cycle length a and the maximum cycle length b of the time point i from start, includes:

[0017] When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied at the same time, but the time point i is less than the minimum cycle length value a from start, that is, i - start < a, then continue to traverse the oil pressure and casing pressure data.

[0018] As a preferred embodiment, step S15: determining the starting point of the next cycle according to the satisfaction of the conditions in step S12 and step S13, and the minimum cycle length a and the maximum cycle length b of the time point i from start, includes:

[0019] When the condition in step S12 is satisfied, but at the time point i when the condition in step S13 is not satisfied, if the time point i is greater than the maximum cycle length value b from start, that is, i - start > b, record this point as the end point end of this cycle, and use the next point as the starting point of the next cycle, that is, end = i, start = i + 1.

[0020] As a preferred embodiment, step S15: determining the starting point of the next cycle according to the satisfaction of the conditions in step S12 and step S13, and the minimum cycle length a and the maximum cycle length b of the time point i from start, includes:

[0021] When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied at the same time, but the time point i is less than the maximum cycle length value b from start, that is, i - start < b, then continue to traverse the oil pressure and casing pressure data.

[0022] The present invention also provides an automatic division system for the gas lift drainage gas production cycle of a gas well, and the system includes: a first data traversal module, a recording module, a first determination module, a second data traversal module, a second determination module, and a third determination module; wherein,

[0023] The first data traversal module is used to set the observation range as m, the offset as n, the oil pressure data time point variable as i, and the casing pressure data time point variable as j, and traverse the oil pressure data according to the time point i, and traverse the casing pressure data according to the time point j;

[0024] The recording module is used to record the time point i when the oil pressure data shows an increasing trend within the range of [i - m, i] and a decreasing trend within the range of [i, i + m] at the time point i;

[0025] The first determination module is used to check whether there is a time point j in the range [in, i+n], which satisfies that the casing pressure data shows an increase in the range [jm, j] of the time point j and a decrease in the range [j, j+m]; if there is a time point j that satisfies the condition, then determine and set the time point i as the cycle starting point start=i; if there is no time point j that satisfies the condition, then traverse the oil pressure and casing pressure data backward until the time point i appears and satisfies the conditions of the recording module and the first determination module at the same time, and set it as the cycle starting point start=i;

[0026] The second data traversal module is used to set the minimum cycle length a and the maximum cycle length b according to the oil pressure and casing pressure data collected on site, and continue to traverse the oil pressure and casing pressure data from start to the back;

[0027] The second determination module is used to determine the starting point of the next cycle according to whether the conditions in the recording module and the first determination module are satisfied, and the distance between the time point i and the start and the minimum cycle length a and the maximum cycle length b;

[0028] The third determination module is used to repeat the second determination module until all oil pressure and casing pressure data are traversed, the last cycle is determined and divided, and the task is completed.

[0029] As a preferred implementation, the system further includes: a data completion module;

[0030] The data completion module is used to process the missing oil pressure and casing pressure data collected on site and complete the missing data to the minute level.

[0031] Technical effects and advantages of the present invention:

[0032] Aiming at the production process characteristics of the plunger drainage and gas production cycle, the present invention proposes an automatic division and identification algorithm for the plunger lifting process production cycle based on field production data (wellhead oil pressure, casing pressure), which effectively realizes the automatic division of the cycle of low-quality data of the plunger gas lift drainage and gas production system, effectively guides the real-time analysis of the plunger gas lift process, and plays an important role in the diagnosis, prediction, and system optimization of the plunger operating conditions. It has been widely used in Changqing Oilfield and Chongqing Oil and Gas Field, greatly improving the application effect of plunger gas lift.

[0033] Other features and advantages of the present invention will be described in the following description, and partly become obvious from the description, or be understood by implementing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1A flow chart of a method for automatically dividing the gas well plunger gas lift water drainage and gas production cycle of the present invention;

[0035] Figure 2 A schematic diagram of the automatic division result of the gas well plunger gas lift water drainage and gas production cycle according to an exemplary embodiment of the present invention;

[0036] Figure 3 It is a schematic diagram of a gas well plunger gas lift water drainage and gas production cycle automatic division system of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] The design concept of the present invention includes:

[0039] The movement of the plunger in the wellbore includes three stages: upward movement, continuous flow, downward movement, and recovery. When the electric valve is opened, the pipeline is in a completely unobstructed state, and the pressure accumulated at the bottom of the plunger is released at this time. Under the action of expansion, the plunger and the accumulated liquid leave the buffer and are lifted to the wellhead. During the ascent of the plunger, the gas in the casing enters the tubing, so the casing pressure continues to decrease and the oil pressure also shows a downward trend. When the plunger rises to the wellhead catcher, the water is discharged, the oil pressure rises rapidly to a peak, and the natural gas can be produced normally. Due to the accumulation of liquid at the bottom of the well, the casing pressure continues to increase, and the wellhead oil pressure drops to the minimum value. Close the electric valve, and due to the action of gravity, the plunger goes down from the wellhead catcher into the tubing, first passing through the gas, then the accumulated liquid part, and finally passing through the buffer spring to reach the bottom of the well to complete the falling stage. During the falling process of the plunger, the gas pressure in the casing tends to balance. At the moment of shut-in, the casing pressure will remain unchanged or drop slightly. At this time, the tubing pressure will continue to increase. The speed of change is mainly determined by the reservoir pressure. At this time, the well is shut-in until the pressure returns to the set value and enters the next cycle.

[0040] Since the valve status in the plunger gas lift drainage and gas production data is unavailable, according to the periodic change of pressure in plunger production, using the oil pressure and casing pressure in the production data, and targeting the possible data missing, data asynchrony, abnormal working conditions and other problems in the pressure data, Python programming language is used, and programming relies on pandas, numpy and other libraries to realize the automatic division of the plunger gas lift drainage and gas production cycle.

[0041] To this end, the present invention discloses a method for automatically dividing the gas well plunger gas lift drainage and gas production cycle. Figure 1The flowchart of the method for automatically dividing the gas well plunger gas lift drainage and gas production cycle of the present invention is as follows: Figure 1 As shown, the method comprises the following steps:

[0042] Step S10: First, the missing oil pressure and casing pressure data collected on site are processed, and the missing data are completed to the minute level.

[0043] Step S11: Set the observation range to m, the offset to n, the oil pressure data time point variable to i, and the casing pressure data time point variable to j, and traverse the oil pressure data at time point i and traverse the casing pressure data at time point j.

[0044] Set the oil pressure data time point variable to i, and the casing pressure data time point variable to j. Because the oil pressure and casing pressure data may be collected and transmitted asynchronously during field collection, it is necessary to set the observation range m and offset n in minutes according to the data characteristics. Specifically, m is the time range of the current data point in the forward and backward observations, and n is the maximum time difference between the casing pressure and the oil pressure. Set m according to the time span from the continuous rise to the continuous fall of the adjacent cycle data of the oil and casing pressure; set n according to the maximum time difference of the collection and transmission of the oil and casing pressure data. Then traverse the oil pressure data at time point i, and traverse the casing pressure data at time point j.

[0045] Step S12: When the oil pressure data increases within the range of [im, i] at time point i and decreases within the range of [i, i+m], the time point i is recorded.

[0046] Step S13: Check whether there is a time point j in the range [in, i+n], which satisfies the case pressure data showing an increase in the range [jm, j] at the time point j and a decrease in the range [j, j+m].

[0047] If there is a time point j that satisfies the condition, then determine and set the time point i as the cycle starting point start=i;

[0048] If there is no time point j that satisfies the condition, the oil pressure and casing pressure data are traversed backwards until a time point i that satisfies the conditions of step S12 and step S13 appears, and the cycle starting point start=i is determined and set.

[0049] Step S14: according to the oil pressure and casing pressure data collected on site, the minimum cycle length a and the maximum cycle length b are set, and the pressure (oil pressure, casing pressure) data are continuously traversed from the start.

[0050] Step S15: Determine the starting point of the next cycle according to whether the conditions in step S12 and step S13 are met, and the distance between time point i and start and the minimum cycle length a and the maximum cycle length b, including the following situations:

[0051] ①. When the condition in step S12 is satisfied, if the conditions in step S13 are also satisfied at the same time, and the time point i is greater than the minimum cycle length value a from start, that is, i - start > a, record this time point i as the end point of this cycle end, and take the next point as the starting point of the next cycle, that is, end = i, start = i + 1;

[0052] ②. When the condition in step S12 is satisfied, if the conditions in step S13 are also satisfied at the same time, but the time point i is less than the minimum cycle length value a from start, that is, i - start < a, then continue to traverse the oil pressure and casing pressure data;

[0053] ③. When the condition in step S12 is satisfied, but for the time point i that does not satisfy the conditions in step S13, if the time point i is greater than the maximum cycle length value b from start, that is, i - start > b, record this point as the end point of this cycle end, and take the next point as the starting point of the next cycle, that is, end = i, start = i + 1;

[0054] ④. When the condition in step S12 is satisfied, if the conditions in step S13 are also satisfied at the same time, but the time point i is less than the maximum cycle length value b from start, that is, i - start < b, then continue to traverse the oil pressure and casing pressure data.

[0055] Step S16: Repeat step S15 until all the oil pressure and casing pressure data are traversed, determine and divide the last cycle, and the task ends.

[0056] Figure 2 is a schematic diagram of the automatic division result of the gas well plunger gas lift drainage gas production cycle for an exemplary embodiment of the present invention, as Figure 2 shown. The specific display content is the implementation effect of applying this method based on some data from the plunger lift production site in the Chongqing Gas Field. Since this method only relies on the wellhead oil / casing pressure data, by grasping the periodicity of this data and applying the cycle division algorithm proposed in this solution, it is possible to accurately grasp the production cycle of the plunger lift process and achieve the automatic division of the cycle. As shown in the figure, different colors represent different cycles of the plunger lift process identified by the automatic division algorithm proposed in this solution. Combining with the expert experience judgment, it can be seen that the plunger lift cycle identification algorithm proposed in this solution has a high accuracy rate.

[0057] The present invention also discloses an automatic division system for the gas well plunger gas lift drainage gas production cycle, Figure 2 is a schematic diagram of an automatic division system for the gas well plunger gas lift drainage gas production cycle of the present invention, as Figure 2As shown in the figure, the system includes: a data completion module 11, a first data traversal module 12, a recording module 13, a first determination module 14, a second data traversal module 15, a second determination module 16, and a third determination module 17; among them, the data completion module 11 is used to process the problem of missing oil pressure and casing pressure data collected on site and complete the missing data to the minute level; the first data traversal module 12 is used to set the observation range as m, the offset as n, the oil pressure data time point variable as i, and the casing pressure data time point variable as j, and traverse the oil pressure data according to the time point i and traverse the casing pressure data according to the time point j; the recording module 13 is used to record the time point i when the oil pressure data rises within the range of [i - m, i] at the time point i and shows a decreasing trend within the range of [i, i + m]; the first determination module 14 is used to check whether there is a time point j within the range of [i - n, i + n] that satisfies the condition that the casing pressure data rises within the range of [j - m, j] at the time point j and shows a decreasing trend within the range of [j, j + m]; if there is such a time point j that satisfies the condition, then determine and set the time point i as the cycle start point start = i; if there is no such time point j that satisfies the condition, then traverse the oil pressure and casing pressure data backward until a time point i that satisfies the conditions of both the recording module 13 and the first determination module 14 appears, and set it as the cycle start point start = i; the second data traversal module 15 is used to set the minimum cycle length a and the maximum cycle length b according to the oil pressure and casing pressure data collected on site, and continue to traverse the oil pressure and casing pressure data backward from start; the second determination module 16 is used to determine the next cycle start point according to the satisfaction of the conditions in the recording module 13 and the first determination module 14, and the size of the distance between the time point i and start and the minimum cycle length a and the maximum cycle length b; the third determination module 17 is used to repeat the second determination module 16 until all the oil pressure and casing pressure data are traversed, determine and divide the last cycle, and the task ends.

[0058] Further, the second determination module 16 is specifically used for:

[0059] ①. When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied at the same time, and the distance between the time point i and start is greater than the minimum cycle length value a, that is, i - start > a, record this time point i as the end point end of this cycle, and take the next point as the next cycle start point, that is, end = i, start = i + 1;

[0060] ②. When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied at the same time, but the distance between this time point i and start is less than the minimum cycle length value a, that is, i - start < a, then continue to traverse the oil pressure and casing pressure data;

[0061] ③. When the condition in step S12 is satisfied, but at time point i when the condition in step S13 is not satisfied, if the time point i is greater than the maximum cycle length value b from start, that is, i - start > b, record this point as the end point end of this cycle, and use the next point as the starting point of the next cycle, that is, end = i, start = i + 1;

[0062] ④. When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied, but the time point i is less than the maximum cycle length value b from start, that is, i - start < b, then continue to traverse the oil pressure and casing pressure data.

[0063] Finally, it should be noted that the above are only the preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle, characterized in that: The method includes the following steps: Step S11: Set the observation range as m, the offset as n, the oil pressure data time point variable as i, and the casing pressure data time point variable as j, and traverse the oil pressure data according to the time point i and the casing pressure data according to the time point j; Step S12: When the oil pressure data shows an increase within the range of [i - m, i] at the time point i and a decreasing trend within the range of [i, i + m], record the time point i; Step S13: Check whether there exists a time point j within the range of [i - n, i + n] that satisfies the condition that the casing pressure data shows an increase within the range of [j - m, j] at the time point j and a decreasing trend within the range of [j, j + m]; If there exists such a time point j that satisfies the condition, then determine and set the time point i as the cycle start point start = i; if there does not exist such a time point j that satisfies the condition, then traverse the oil pressure and casing pressure data backward until a time point i that satisfies the conditions of both Step S12 and Step S13 appears, and set it as the cycle start point start = i; Step S14: Set the minimum cycle length a and the maximum cycle length b according to the oil pressure and casing pressure data collected on-site, and continue to traverse the oil pressure and casing pressure data backward from start; Step S15: Determine the next cycle start point according to the satisfaction of the conditions in Step S12 and Step S13, and the size of the distance between the time point i and start, the minimum cycle length a, and the maximum cycle length b; Step S16: Repeat Step S15 until all the oil pressure and casing pressure data are traversed, determine and divide the last cycle, and the task ends.

2. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle according to claim 1, characterized in that: Before Step S11, the following steps are also included: Process the problem of missing oil pressure and casing pressure data collected on-site, and complete the missing data to the minute level.

3. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle according to claim 1 or 2, characterized in that: The said Step S15: Determine the next cycle start point according to the satisfaction of the conditions in Step S12 and Step S13, and the size of the distance between the time point i and start, the minimum cycle length a, and the maximum cycle length b, includes: When the condition in Step S12 is satisfied, if the condition in Step S13 is also satisfied at the same time, and the distance between the time point i and start is greater than the minimum cycle length value a, that is, i - start > a, record this time point i as the end point of this cycle end, and take the next point as the next cycle start point, that is, end = i, start = i + 1.

4. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle according to claim 1 or 2, characterized in that: The said Step S15: Determine the next cycle start point according to the satisfaction of the conditions in Step S12 and Step S13, and the size of the distance between the time point i and start, the minimum cycle length a, and the maximum cycle length b, includes: When the condition in Step S12 is satisfied, if the condition in Step S13 is also satisfied at the same time, but the distance between this time point i and start is less than the minimum cycle length value a, that is, i - start < a, then continue to traverse the oil pressure and casing pressure data.

5. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle according to claim 1 or 2, characterized in that: The said Step S15: Determine the next cycle start point according to the satisfaction of the conditions in Step S12 and Step S13, and the size of the distance between the time point i and start, the minimum cycle length a, and the maximum cycle length b, includes: When the condition in step S12 is satisfied, but at time point i when the condition in step S13 is not satisfied, if the time point i is greater than the maximum cycle length value b from start, that is, i - start > b, record this point as the end point end of this cycle, and take the next point as the start point of the next cycle, that is, end = i, start = i + 1.

6. A method for automatically dividing the gas well plunger gas lift drainage and gas production cycle according to claim 1 or 2, characterized in that: The described step S15: Determine the start point of the next cycle according to the satisfaction of the conditions in step S12 and step S13, and the minimum cycle length a and the maximum cycle length b of the time point i from start, including: When the condition in step S12 is satisfied, if the condition in step S13 is also satisfied, but the time point i is less than the maximum cycle length value b from start, that is, i - start < b, then continue to traverse the oil pressure and casing pressure data.

7. A gas well plunger gas lift drainage and gas production cycle automatic division system, characterized in that: The system includes: a first data traversal module, a recording module, a first determination module, a second data traversal module, a second determination module, and a third determination module; where, The first data traversal module is used to set the observation range as m, the offset as n, the oil pressure data time point variable as i, and the casing pressure data time point variable as j, and traverse the oil pressure data according to the time point i and traverse the casing pressure data according to the time point j; The recording module is used to record the time point i when the oil pressure data shows an increase in the range of [i - m, i] and a decrease trend in the range of [i, i + m] at the time point i; The first determination module is used to check whether there is a time point j in the range of [i - n, i + n] that satisfies that the casing pressure data shows an increase in the range of [j - m, j] and a decrease trend in the range of [j, j + m] at the time point j; if there is such a time point j that satisfies the condition, then determine and set the time point i as the start point of the cycle start = i; if there is no such time point j that satisfies the condition, then traverse the oil pressure and casing pressure data backward until there is a time point i that satisfies the conditions of the recording module and the first determination module, and set it as the start point of the cycle start = i; The second data traversal module is used to set the minimum cycle length a and the maximum cycle length b according to the oil pressure and casing pressure data collected on site, and continue to traverse the oil pressure and casing pressure data backward from start; The second determination module is used to determine the start point of the next cycle according to the satisfaction of the conditions in the recording module and the first determination module, and the size of the time point i from start and the minimum cycle length a and the maximum cycle length b; The third determination module is used to repeat the second determination module until all the oil pressure and casing pressure data are traversed, determine and divide the last cycle, and the task ends.

8. The automatic division system of the gas well plunger gas lift water drainage and gas production cycle according to claim 7 is characterized in that: The system further includes: a data completion module; The data completion module is used to process the problem of missing oil pressure and casing pressure data collected on site, and complete the missing data to the minute level.