Gas well bubble drainage system optimization method, device, medium and equipment

The bubble discharge system of the air well is optimized through the time series prediction model, fuzzy comprehensive evaluation model and threshold clustering model, and the problems of low accuracy and efficiency in the existing technology are solved, and more efficient bubble discharge process operations are achieved.

CN118134034BActive Publication Date: 2024-11-08YANGTZE UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410249540.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-11-08
Estimated Expiration
2044-03-05

AI Technical Summary

Technical Problem

The prior art has poor accuracy and low efficiency in the optimization of the bubble discharge system of the gas well, mainly relying on empirical adjustments, and has poor adaptability to gas wells with large fluctuations in water production.

Method used

The time series prediction model, fuzzy comprehensive evaluation model and threshold clustering model are used to predict and optimize based on the historical data set of the target gas well, and the optimal bubble discharge system is determined to improve the accuracy and efficiency of the bubble discharge process.

Benefits of technology

Through data prediction and clustering analysis, the optimal bubble discharge system is obtained that is more in line with actual production needs, which improves the efficiency of bubble discharge process in the air well and reduces time and labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118134034B_ABST
    Figure CN118134034B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, medium and equipment for optimizing the bubble drainage system of a gas well, wherein the method comprises obtaining a historical data set of a target gas well; predicting a subset of production data that has not been bubbled based on a time series prediction model, and determining a prediction data set corresponding to a preset time period in the future; for each prediction data subset, determining bubble drainage evaluation result data corresponding to each preset period based on a fuzzy comprehensive evaluation model; performing threshold clustering prediction based on a subset of bubbled production data, a subset of historical bubble drainage system data, each prediction data subset and each bubble drainage evaluation result data, and determining the optimal bubble drainage system data of the target gas well. The technical solution provided by the present application can improve the accuracy of gas well bubble drainage system optimization and improve the efficiency of gas well bubble drainage process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of gas well production process optimization, and in particular, relates to a gas well bubble drainage system optimization method, device, medium and equipment. Background Art

[0002] The foam drainage gas production process of gas wells refers to an injection and drainage process that adds a foaming agent to the gas well. The parameters of the foaming agent injection system will directly affect the process efficiency of gas production. At present, when optimizing the foam drainage system of gas wells, the future foam drainage system is mainly adjusted based on historical experience, but this method is inaccurate and inefficient. Summary of the invention

[0003] The embodiments of the present application provide a method, device, medium and equipment for optimizing the gas well bubble drainage system, which can improve the accuracy of gas well bubble drainage system optimization and improve the efficiency of gas well bubble drainage process at least to a certain extent.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to a first aspect of an embodiment of the present application, a method for optimizing a gas well bubble drainage system is provided, comprising:

[0006] Acquire a historical data set of a target gas well, wherein the historical data set includes a non-foaming production data subset, a foaming production data subset, and a historical foaming system data subset;

[0007] Based on the time series prediction model, the unsoaked row production data subset is predicted to determine a prediction data set corresponding to a future preset time period, the preset time period includes a plurality of preset cycles, and the prediction data set includes a prediction data subset corresponding to each of the preset cycles;

[0008] For each of the prediction data subsets, determining the foam discharge evaluation result data corresponding to each of the preset periods based on the fuzzy comprehensive evaluation model;

[0009] Based on the bubble-drained production data subset, the historical bubble-draining system data subset, each of the prediction data subsets and each of the bubble-draining evaluation result data, threshold cluster prediction is performed to determine the optimal bubble-draining system data of the target gas well.

[0010] In some embodiments of the present application, based on the above scheme, the fuzzy comprehensive evaluation model is used to determine the foam evaluation result data corresponding to each preset period, including:

[0011] Determining evaluation index data corresponding to a preset period according to the prediction data subset and the completed production data subset;

[0012] Determining the target membership of the evaluation index data according to the sub-membership of the evaluation index data in each preset evaluation level;

[0013] Determine the weight vector corresponding to the evaluation index data based on the hierarchical analysis method;

[0014] Determining a corresponding comprehensive evaluation vector according to the target membership and the weight vector;

[0015] According to the comprehensive evaluation vector and each of the evaluation levels, the foam pad evaluation result data corresponding to each of the preset cycles is determined.

[0016] In some embodiments of the present application, based on the aforementioned scheme, the evaluation index data includes a combination of one or more of the following data: casing pressure change rate, oil pressure change rate, daily gas production change rate, and daily water production change rate.

[0017] In some embodiments of the present application, based on the above scheme, the threshold clustering prediction is performed based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well, including:

[0018] Performing threshold clustering on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain a plurality of cluster center points;

[0019] For each of the predicted data subsets, determining the first distances between the predicted data subsets and each of the cluster center points, and using the historical bubble-barrier data subset corresponding to the minimum first distance as the target bubble-barrier system data for the corresponding preset period;

[0020] The target bubble drainage system data corresponding to the optimal bubble drainage evaluation result data are used as the optimal bubble drainage system data of the target gas well.

[0021] In some embodiments of the present application, based on the above scheme, the threshold clustering is performed on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain multiple cluster center points, including:

[0022] Obtain n sample data, each sample data including at least one subset of the foam production data, one subset of the historical foam system data and one foam evaluation result data;

[0023] Randomly initialize the target sample point x0 and use the target sample point x0 as the first cluster center point Then the cluster centers in the first cycle are in, represents the lth cluster center point in the first cycle, and k represents the total number of cluster centers in each cycle;

[0024] Get other sample points x in n sample data respectively i With each cluster center The second distance between

[0025] Determine the sample point x according to the size relationship between each of the second distances and the distance threshold i The corresponding cluster center point.

[0026] In some embodiments of the present application, based on the above scheme, other sample points x in the n sample data are obtained based on a combination of one or more of the following algorithms: i With each cluster center The second distance between: Manhattan distance algorithm, Euclidean distance algorithm, Chebyshev distance algorithm, Mahalanobis distance algorithm and cosine distance algorithm.

[0027] In some embodiments of the present application, based on the aforementioned scheme, the time series prediction model adopts the Prophet time series prediction model.

[0028] According to a second aspect of an embodiment of the present application, a gas well bubble drainage system optimization device is provided, comprising:

[0029] An acquisition unit, used for acquiring a historical data set of a target gas well, wherein the historical data set includes a non-foaming production data subset, a foaming production data subset, and a historical foaming system data subset;

[0030] A first determining unit is used to predict the unsoaked row production data subset based on a time series prediction model, and determine a prediction data set corresponding to a future preset time period, wherein the preset time period includes a plurality of preset cycles, and the prediction data set includes a prediction data subset corresponding to each of the preset cycles;

[0031] A second determination unit is used to determine, for each of the prediction data subsets, the foam filling evaluation result data corresponding to each of the preset periods based on a fuzzy comprehensive evaluation model;

[0032] The third determination unit is used to perform threshold clustering prediction based on the bubble production data subset, the historical bubble system data subset, each of the prediction data subsets and each of the bubble evaluation result data to determine the optimal bubble system data of the target gas well.

[0033] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by any method described in the first aspect.

[0034] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by any of the methods described in the first aspect.

[0035] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages:

[0036] The present invention is based on obtaining historical data sets of target gas wells, and performs data prediction through time series prediction models, fuzzy comprehensive evaluation models, and threshold clustering models to determine the optimal bubble drainage system data of the target gas well. Compared with the traditional solution of optimizing the bubble drainage system based on experience, the optimal bubble drainage system data results obtained by this solution are more in line with the actual production needs of the gas well, improve the accuracy of the bubble drainage system optimization, and thus improve the bubble drainage process efficiency of the gas well.

[0037] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0039] Figure 1 A flow chart of a method for optimizing a gas well bubble drainage system according to an embodiment of the present application;

[0040] Figure 2 A structural diagram of a gas well bubble drainage system optimization device according to an embodiment of the present application;

[0041] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

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

[0043] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0045] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0046] It should also be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.

[0047] It should be noted that the foam drainage gas production process refers to an injection and drainage process in which a foaming agent is added to the gas well. After a certain amount of foaming agent is injected into the gas well, the water at the bottom of the well contacts the foaming agent, and with the help of the stirring of the natural gas flow, a large amount of low-density water-containing foam is generated, which is then carried from the bottom of the well to the ground with the air flow, achieving the purpose of clearing the liquid at the bottom of the well. Therefore, whether the parameters of the foaming agent filling system (such as filling time, amount of treatment agent, dilution ratio of treatment agent and aqueous solution, etc.) are appropriate or not will directly affect the efficiency of the gas production process. Specifically, if the injection concentration of the foaming agent is too low, it may not be possible to achieve the purpose of improving the flow state of the gas-water two-phase flow in the wellbore; if the injection concentration of the foaming agent is too high, it may cause the wellbore pressure drop to rise, and it is difficult to defoam on the ground, and the separator will also generate a higher back pressure.

[0048] In the related technologies, there are mainly the following methods for optimizing the foaming and drainage system of gas wells: first, directly determine the adjustment of the foaming and drainage system based on experience; second, first use the time series model to predict the water production of the gas well, and then adjust the foaming and drainage system according to the prediction results to keep the concentration of the foaming agent unchanged; third, find out the foaming time of the gas well through the wellhead temperature, instantaneous curve and on-site sampling, and grasp the water production law of the gas well through the flow pressure test, so as to optimize the adjustment of the dosing time and improve the foaming and drainage efficiency.

[0049] However, the above methods have the following problems: the first method is based solely on experience and has the problem of poor accuracy; for gas wells with large fluctuations in water production, the second method has high requirements for data selection; the third method is more cumbersome in actual implementation and has the problem of empiricism.

[0050] Based on the above, the embodiment of the present application proposes a method for optimizing the bubble drainage system of a gas well, which uses a clustering method to accurately and efficiently predict the optimal bubble drainage system within a certain time period, thereby improving the accuracy of the optimization of the bubble drainage system of the gas well.

[0051] See also Figure 1 , which is a flow chart of a method for optimizing a gas well bubble drainage system according to an embodiment of the present application.

[0052] like Figure 1 As shown, according to the first aspect of the embodiment of the present application, a method for optimizing the bubble drainage system of a gas well is provided, including but not limited to being implemented by steps S1 to S4:

[0053] Step S1. Acquire a historical data set of a target gas well, wherein the historical data set includes a subset of production data before and after the frothing, a subset of production data after and after the frothing, and a subset of historical frothing system data;

[0054] It should be noted that the historical data set of the target gas well may be each non-foaming production data subset, foaming production data subset and historical foaming system data subset corresponding to each day, week, month and other time periods in the past.

[0055] The non-flooding production data subset includes but is not limited to the non-flooding time, casing pressure, oil pressure, daily gas production, and daily water production; the flooded production data subset includes but is not limited to the flooded time, casing pressure, oil pressure, daily gas production, and daily water production; and the historical flooding system data subset includes but is not limited to (time, amount of treatment agent, dilution ratio of treatment agent to aqueous solution, pumping speed of diluted agent, injection time of each well in the cycle, stop injection time, etc.

[0056] It is understandable that after obtaining the historical data set of the target gas well, the data set can be preprocessed, for example: linearly filling the empty values ​​in the bubbled production data subset; copying the historical bubbled system data subset according to the date, and copying the data corresponding to the first time of each time period until the second time of this time period. Among them, if the first time of the time period corresponding to the required optimal system is before the first system adjustment date, the data of this time period will also be copied with the data of the first system adjustment.

[0057] Step S2. Based on the time series prediction model, the unsoaked row production data subset is predicted to determine a prediction data set corresponding to a future preset time period, wherein the preset time period includes a plurality of preset cycles, and the prediction data set includes a prediction data subset corresponding to each of the preset cycles;

[0058] In some embodiments, the time series prediction model adopts the Prophet time series prediction model. The Prophet time series prediction model predicts the prediction data set corresponding to the preset time period based on the subset of un-bubble row production data in the past period of time, on the premise of satisfying the trend consistency and no jump, thereby preparing for the calculation and cluster prediction of the subsequent bubble row evaluation result data.

[0059] The preset time period may be one month in the future, and the preset period may be every day, every two days, or every week, etc., which are not limited here.

[0060] Step S3. for each of the prediction data subsets, determining the foam discharge evaluation result data corresponding to each of the preset periods based on the fuzzy comprehensive evaluation model;

[0061] In some embodiments, the method of determining the foam discharge evaluation result data corresponding to each preset period based on the fuzzy comprehensive evaluation model includes:

[0062] Step S31. Determine the evaluation index data corresponding to the preset period according to the prediction data subset and the produced data subset;

[0063] It should be noted that after the foaming agent is injected into the liquid-filled gas well, the effectiveness of the foaming agent can be evaluated by the change in the production data of the gas well. For example, if the gas production and water production of the gas well increase and the oil-casing pressure difference decreases, the foaming agent injection is considered effective, otherwise it is considered invalid. If the production data of the gas well is to be further used to quantify the effect of the foaming agent on the gas well, a corresponding evaluation model needs to be established, and the specific implementation of the evaluation model is described in the subsequent steps S32 to S35.

[0064] In some embodiments, the evaluation index data includes a combination of one or more of the following data: casing pressure change rate, oil pressure change rate, daily gas production change rate, and daily water production change rate.

[0065] Specifically, when calculating each evaluation index data, the difference between the predicted un-soaked production data and the soaked production data can be calculated, and then the difference can be divided by the un-soaked and soaked production data respectively to obtain the rate of change of the predicted and actual production data within the preset period, and then the corresponding evaluation result data can be calculated using the fuzzy comprehensive evaluation method through the rate of change.

[0066] Step S32. Determine the target membership of the evaluation index data according to the sub-membership of the evaluation index data in each preset evaluation level;

[0067] It should be noted that in order to quantitatively evaluate the impact of each evaluation index data on the bubble drainage effect, the embodiment of the present application was calibrated in the early stage to obtain different evaluation levels and the value range of each evaluation level, so that the bubble drainage effect of the gas well can be specifically evaluated numerically. For example: set a fuzzy set with 5 evaluation levels, define the judgment set vr, and the evaluation level set vr = {vr1, vr2, vr3, vr4, vr5}, wherein the evaluation value interval corresponding to each evaluation level can be successively increasing or successively decreasing, which is not limited here. For example: when the evaluation value interval corresponding to each evaluation level decreases successively, the specific evaluation level corresponding to each evaluation level vr1, vr2, vr3, vr4, vr5 can be: vr = {vr1, vr2, vr3, vr4, vr5} = {very good, good, relatively good, average, poor}.

[0068] Therefore, the method for determining the sub-membership of the evaluation index data in each preset evaluation level can be: matching corresponding sub-membership determination rules for different evaluation levels, and the sub-membership determination rules are associated with the evaluation value interval of the evaluation level; according to each of the sub-membership determination rules, determining each sub-membership of each of the evaluation index data in the corresponding evaluation level.

[0069] Step S33. Determine the weight vector corresponding to the evaluation index data based on the hierarchical analysis method;

[0070] Specifically, according to the importance of each evaluation index data compared with the remaining evaluation index data, a corresponding judgment matrix is ​​constructed; the judgment matrix is ​​normalized by column, and the normalized column data are summed by row; according to the ratio of each element in the summed vector to the total amount of the evaluation index data, the weight vector corresponding to each evaluation index data is determined.

[0071] It can be understood that the weight vector corresponding to each evaluation index data is obtained based on the hierarchical analysis method using conventional principles, which will not be elaborated here.

[0072] Step S34. Determine a corresponding comprehensive evaluation vector according to the target membership and the weight vector;

[0073] Specifically, fuzzy calculation is performed on each of the target memberships and each of the weight vectors based on a fuzzy algorithm; and a corresponding comprehensive evaluation vector is determined according to the fuzzy calculation result.

[0074] Step S35. Determine the foam paddy field evaluation result data corresponding to each of the preset cycles according to the comprehensive evaluation vector and each of the evaluation levels.

[0075] Specifically, the target reference value of each evaluation level is obtained, and the target reference value is used to characterize the mean or median value of the corresponding evaluation value interval; the mean or median value of each evaluation value interval is the most representative value that can characterize the evaluation value interval, therefore, the mean or median value of each evaluation value interval is used as the target reference value for subsequent comprehensive evaluation index calculation, which can improve the accuracy of fuzzy operation as much as possible. Based on each target reference value, the comprehensive evaluation vector is fuzzy calculated to obtain a comprehensive evaluation index; according to the comprehensive evaluation index, the foam drainage evaluation result data of the target gas well is determined.

[0076] Step S4. Perform threshold clustering prediction based on the bubble-drained production data subset, the historical bubble-drainage system data subset, each of the prediction data subsets and each of the bubble-drainage evaluation result data to determine the optimal bubble-drainage system data of the target gas well.

[0077] In some embodiments, the performing threshold cluster prediction based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets, and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well includes:

[0078] Step S41. Perform threshold clustering on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain multiple cluster center points;

[0079] In some embodiments, the threshold clustering is performed on the bubble production data subset, the historical bubble system data subset, and each bubble evaluation result data to obtain multiple cluster center points, including:

[0080] Step S411. Obtain n sample data, each sample data including at least one subset of the foam production data, one subset of the historical foam system data and one foam evaluation result data;

[0081] Step S412: Randomly initialize the target sample point x0 and use the target sample point x0 as the first cluster center point Then the cluster centers in the first cycle are in, represents the lth cluster center point in the first cycle, and k represents the total number of cluster centers in each cycle;

[0082] Step S413. Obtain other sample points x in the n sample data respectively i With each cluster center The second distance between

[0083] In some implementations, the other sample points x in the n sample data are obtained based on a combination of one or more of the following algorithms: i With each cluster center The second distance between: Manhattan distance algorithm, Euclidean distance algorithm, Chebyshev distance algorithm, Mahalanobis distance algorithm and cosine distance algorithm.

[0084] The calculation formula of the Manhattan distance algorithm is as follows:

[0085]

[0086] The calculation formula of the Euclidean distance algorithm is as follows:

[0087]

[0088] The calculation formula of the Chebyshev distance algorithm is as follows:

[0089] D(x i ,x j )=max|x pi -x pj |, p = 1, 2…n;

[0090] The calculation formula of the Mahalanobis distance algorithm is as follows:

[0091]

[0092] The calculation formula of the cosine distance algorithm is as follows:

[0093]

[0094] Where D represents the second distance, x i ,x j Represents the sample point x i And each cluster center The n-dimensional coordinate of the second distance between them, p represents the number of dimensions, and n represents the total number of dimensions.

[0095] Step S414: Determine the sample point x according to the size relationship between each of the second distances and the distance threshold. i The corresponding cluster center point.

[0096] Specifically, for each second distance, if the second distance is less than or equal to the clustering threshold, the corresponding sample point is classified as class, t represents the current cycle, for example, the initial cycle is 0; if it is greater than the threshold, let l = l + 1, if l is less than or equal to the number of current class centers k, then return to step S413; otherwise, the sample point is classified as another class

[0097] After the first cycle is completed, let t=t+1 and update the cluster center point of the current class.

[0098] Specifically, the mean method is used to take the mean of all sample points of each class as the cluster center point. The formula is as follows:

[0099]

[0100] Alternatively, the median method is used to sort all sample points of each class according to a certain dimension, and the median of the sorted data is taken as the class center. The formula is as follows:

[0101] If the number of sample points is odd, then:

[0102] If the number of sample points is even, then:

[0103] Let i = i + 1. If i is greater than the number of samples n, then output the clustering result C. t , otherwise return to step S413.

[0104] It should be noted that for time complexity, when the number of samples is much smaller than the number of clustering categories, the best time complexity is O(n), that is, all samples are one category; the worst case is O(n ^2 ), that is, each sample is regarded as a class separately.

[0105] Step S42. for each of the predicted data subsets, determining the first distances between the predicted data subsets and the respective cluster center points, and using the historical bubble-barrier data subset corresponding to the minimum first distance as the target bubble-barrier system data for the corresponding preset period;

[0106] For example, for a predicted data subset corresponding to a future day, the preset data subset has a first distance from each cluster center point, and the historical bubble sorting data subset corresponding to the minimum distance is used as the bubble sorting system data for that day. In this way, the bubble sorting system data corresponding to each day in the future period of time can be determined.

[0107] Step S43: taking the target bubble drainage system data corresponding to the optimal bubble drainage evaluation result data as the optimal bubble drainage system data of the target gas well.

[0108] It can be understood that the foam drainage evaluation result data can be expressed in numerical form, for example, the total score is 100, and the higher the value, the better the foam drainage evaluation result corresponding to the foam drainage system data. Based on this, the target foam drainage system data corresponding to the foam drainage evaluation result data with the highest value can be used as the optimal foam drainage system data of the target gas well.

[0109] Based on the above disclosed content, the embodiment of the present application is based on obtaining the historical data set of the target gas well, and performs data prediction through time series prediction model, fuzzy comprehensive evaluation model and threshold clustering model to determine the optimal bubble drainage system data of the target gas well. Compared with the traditional solution of optimizing the bubble drainage system based on experience, the optimal bubble drainage system data result obtained by this solution is more in line with the actual production needs of the gas well, improves the accuracy of the bubble drainage system optimization, and thus improves the bubble drainage process efficiency of the gas well. In addition, the embodiment of the present application has strong compatibility with data, has good data processing capabilities for various problems of original data, is more suitable for actual production conditions, can greatly reduce time costs and labor costs, and achieve the purpose of reducing costs and increasing efficiency.

[0110] The following describes an embodiment of the device of the present application, which can be used to execute the method in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the above embodiment of the method of the present application.

[0111] See also Figure 2 , which is a structural diagram of a gas well bubble drainage system optimization device according to an embodiment of the present application.

[0112] like Figure 2 As shown, according to the second aspect of the embodiment of the present application, a gas well bubble drainage system optimization device is provided, comprising:

[0113] An acquisition unit, used for acquiring a historical data set of a target gas well, wherein the historical data set includes a non-foaming production data subset, a foaming production data subset, and a historical foaming system data subset;

[0114] A first determining unit is used to predict the unsoaked row production data subset based on a time series prediction model, and determine a prediction data set corresponding to a future preset time period, wherein the preset time period includes a plurality of preset cycles, and the prediction data set includes a prediction data subset corresponding to each of the preset cycles;

[0115] A second determination unit is used to determine, for each of the prediction data subsets, the foam filling evaluation result data corresponding to each of the preset periods based on a fuzzy comprehensive evaluation model;

[0116] The third determination unit is used to perform threshold clustering prediction based on the bubble production data subset, the historical bubble system data subset, each of the prediction data subsets and each of the bubble evaluation result data to determine the optimal bubble system data of the target gas well.

[0117] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by any method described in the first aspect.

[0118] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by any method described in the first aspect.

[0119] The computer-readable storage medium may be a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the computer-readable storage medium of the present application is not limited thereto. In the present application, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0120] The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0121] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0122] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by any of the methods described in the first aspect.

[0123] like Figure 3 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410).

[0124] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps described in the above “Example Method” section of this specification according to various exemplary implementations of the present application.

[0125] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0126] The storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0127] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0128] The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 460. As shown, the network adapter 460 communicates with other modules of the electronic device 400 via a bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0129] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.

[0130] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0133] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims

1. A method for optimizing the gas well bubble drainage system, characterized in that: include: Acquire a historical data set of a target gas well, wherein the historical data set includes a non-foaming production data subset, a foaming production data subset, and a historical foaming system data subset; Based on the time series prediction model, the unsoaked row production data subset is predicted to determine the prediction data set corresponding to the future preset time period, the preset time period includes multiple preset cycles, the prediction data set includes the prediction data subset corresponding to each preset cycle, and the time series prediction model adopts the Prophet time series prediction model; For each of the prediction data subsets, determining the foam discharge evaluation result data corresponding to each of the preset periods based on the fuzzy comprehensive evaluation model; Performing threshold cluster prediction based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well; The method of determining the foam discharge evaluation result data corresponding to each preset period based on the fuzzy comprehensive evaluation model includes: Determining evaluation index data corresponding to a preset period according to the prediction data subset and the completed production data subset; Determining the target membership of the evaluation index data according to the sub-membership of the evaluation index data in each preset evaluation level; Determine the weight vector corresponding to the evaluation index data based on the hierarchical analysis method; Determining a corresponding comprehensive evaluation vector according to the target membership and the weight vector; Determine the foam pump evaluation result data corresponding to each preset period according to the comprehensive evaluation vector and each evaluation level; The method of performing threshold cluster prediction based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well includes: Performing threshold clustering on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain a plurality of cluster center points; For each of the predicted data subsets, determining the first distances between the predicted data subsets and each of the cluster center points, and using the historical bubble-barrier data subset corresponding to the minimum first distance as the target bubble-barrier system data for the corresponding preset period; The target bubble drainage system data corresponding to the optimal bubble drainage evaluation result data are used as the optimal bubble drainage system data of the target gas well.

2. The method according to claim 1, characterized in that The evaluation index data includes a combination of one or more of the following data: casing pressure change rate, oil pressure change rate, daily gas production change rate, and daily water production change rate.

3. The method according to claim 1, characterized in that: The threshold clustering is performed on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain multiple cluster center points, including: Obtain n sample data, each sample data including at least one subset of the foam production data, one subset of the historical foam system data and one foam evaluation result data; Randomly initialize the target sample point x0 and use the target sample point x0 as the first cluster center point Then the cluster centers in the first cycle are in, represents the lth cluster center point in the first cycle, and k represents the total number of cluster centers in each cycle; Get other sample points x in n sample data respectively i With each cluster center The second distance between Determine the sample point x according to the size relationship between each of the second distances and the distance threshold i The corresponding cluster center point.

4. The method according to claim 3, characterized in that Get other sample points x in n sample data based on a combination of one or more of the following algorithms: i With each cluster center The second distance between: Manhattan distance algorithm, Euclidean distance algorithm, Chebyshev distance algorithm, Mahalanobis distance algorithm and cosine distance algorithm.

5. A gas well bubble drainage system optimization device, characterized in that: include: An acquisition unit, used for acquiring a historical data set of a target gas well, wherein the historical data set includes a non-foaming production data subset, a foaming production data subset, and a historical foaming system data subset; A first determination unit is used to predict the unsoaked row production data subset based on a time series prediction model, and determine a prediction data set corresponding to a future preset time period, wherein the preset time period includes a plurality of preset cycles, and the prediction data set includes a prediction data subset corresponding to each of the preset cycles, and the time series prediction model adopts a Prophet time series prediction model; A second determination unit is used to determine, for each of the prediction data subsets, the foam filling evaluation result data corresponding to each of the preset periods based on a fuzzy comprehensive evaluation model; A third determination unit is used to perform threshold cluster prediction based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well; The method of determining the foam discharge evaluation result data corresponding to each preset period based on the fuzzy comprehensive evaluation model includes: Determining evaluation index data corresponding to a preset period according to the prediction data subset and the completed production data subset; Determining the target membership of the evaluation index data according to the sub-membership of the evaluation index data in each preset evaluation level; Determine the weight vector corresponding to the evaluation index data based on the hierarchical analysis method; Determining a corresponding comprehensive evaluation vector according to the target membership and the weight vector; Determine the foam pump evaluation result data corresponding to each preset period according to the comprehensive evaluation vector and each evaluation level; The method of performing threshold cluster prediction based on the bubble drainage production data subset, the historical bubble drainage system data subset, each of the prediction data subsets and each of the bubble drainage evaluation result data to determine the optimal bubble drainage system data of the target gas well includes: Performing threshold clustering on the bubble production data subset, the historical bubble system data subset and each bubble evaluation result data to obtain a plurality of cluster center points; For each of the predicted data subsets, determining the first distances between the predicted data subsets and each of the cluster center points, and using the historical bubble-barrier data subset corresponding to the minimum first distance as the target bubble-barrier system data for the corresponding preset period; The target bubble drainage system data corresponding to the optimal bubble drainage evaluation result data are used as the optimal bubble drainage system data of the target gas well.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program instruction, and the at least one computer program instruction is loaded and executed by a processor to implement the operations performed by any one of the methods according to claims 1-4.

7. An electronic device, characterized in that: The method comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the method according to any one of claims 1 to 4.