Oil reservoir development optimization method and device, electronic equipment and storage medium
Optimizing the reservoir development model through deep learning models and physical constraint methods, using monitoring data to adjust the injection mode, solves the limitations of traditional simulation methods in accuracy and speed, and achieves high-precision and rapid reservoir production prediction and recovery Rate increases.
Patent Information
- Application Number
- CN202310348008.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional physics-based reservoir numerical simulation methods have limitations in simulation accuracy and time, making it difficult to adjust injection patterns to increase production while maintaining low GOR and water production.
Using a pre-trained reservoir development model, by obtaining monitoring data from production wells and adjacent injection wells, using deep learning models and physical constraint methods, a production optimization evaluation function is constructed, and the injection mode is optimized to increase production.
It achieves high-precision and rapid reservoir production prediction, which can replace traditional numerical simulators, provide reservoir engineers with reliable recovery rate suggestions, and improve reservoir recovery efficiency.
Smart Images

Figure CN118780144A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil and gas development, and in particular to an oil reservoir development optimization method, device, electronic equipment and storage medium. Background Art
[0002] Production optimization is an important part of closed-loop reservoir management. There are two ways to optimize production: well pattern optimization and well operation optimization. Compared with the long-term, high-risk, and high-cost well pattern optimization, operation optimization is more effective and more feasible for developed reservoirs. Therefore, it has attracted more attention from oilfield developers.
[0003] How to adjust the injection mode to maximize production while maintaining low GOR and water production has become a key issue. The traditional solution is mainly to use reservoir numerical simulators, which require very detailed three-dimensional geological modeling and rely on geological interpretation. If it is not handled properly, it is easy to have a "garbage in, garbage out" result. At the same time, reservoir simulators involve numerical solutions, which often require the division of a large number of grids and rely on iterative solutions. Therefore, traditional reservoir numerical simulation has room for improvement in simulation accuracy and time. Summary of the invention
[0004] The present invention provides a reservoir development optimization method, device, electronic device and storage medium to solve the technical problem that traditional physics-based methods have limitations in simulation accuracy and time.
[0005] According to one aspect of the present invention, a method for optimizing reservoir development is provided, the method comprising:
[0006] Obtain monitoring data of production wells and adjacent injection wells to be tested;
[0007] Input the monitoring data to be tested into the pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well;
[0008] Among them, the reservoir development model is trained under the constraints of the pre-constructed production optimization evaluation function.
[0009] According to another aspect of the present invention, there is provided an oil reservoir development optimization device, the device comprising:
[0010] A data acquisition module is used to acquire the monitoring data to be tested of the production well and the adjacent injection well;
[0011] The production data acquisition module is used to input the monitoring data to be tested into the pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well;
[0012] Among them, the reservoir development model is trained under the constraints of the pre-constructed production optimization evaluation function.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program executable by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the reservoir development optimization method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the reservoir development optimization method of any embodiment of the present invention when executed by a processor.
[0018] By adopting the technical solution of the present application, utilizing the classical reservoir physics laws and expert experience, introducing physical guidance, a reservoir development model is constructed based entirely on the monitoring data of the oil field, and a production optimization framework is formed to solve the injection optimization problem in reservoir production and development. It has high prediction accuracy and fast prediction speed, can replace traditional numerical simulators, and can provide reliability suggestions for reservoir engineers to improve reservoir recovery.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a reservoir development optimization method provided according to the first embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a prediction result of daily oil production applicable to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of an optimization result of a production optimization evaluation function applicable to an embodiment of the present invention;
[0024] Figure 4is a schematic diagram of a second initial model and an attention mechanism applicable to an embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of the calculation result of the inter-well connectivity between the production well and the adjacent injection well to which the embodiment of the present invention is applicable;
[0026] Figure 6 is a structural schematic diagram of an oil reservoir development optimization device provided according to Embodiment 2 of the present invention;
[0027] Figure 7 It is a structural schematic diagram of an electronic device for implementing the reservoir development optimization method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flow chart of a reservoir development optimization method is provided for the first embodiment of the present invention. This embodiment can be applied to adjusting the injection mode while maintaining low GOR and water production to maximize production. The method can be executed by a reservoir development optimization device, which can be implemented in the form of hardware and / or software. The reservoir development optimization device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0032] S110, obtaining monitoring data to be tested of the production well and adjacent injection wells.
[0033] A production well may be a well drilled for the extraction of oil and gas or a well converted into an oil or gas production well. An injection well may be a well drilled at the edge or inside of an oil field to inject water or gas into the oil layer in order to maintain or restore the oil layer pressure during the oil field development process. An adjacent injection well may be an injection well adjacent to a production well. The monitoring data to be measured may be the data values of the production well and the adjacent injection well during injection, including but not limited to the type of injected fluid (I t ), injection volume (I v ), injection pressure (I p ), porosity Permeability (K), saturation (S) and well logging interpretation (Data log )data.
[0034] S120, inputting the monitoring data to be tested into a pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well.
[0035] Among them, the reservoir development model is trained under the constraints of the pre-constructed production optimization evaluation function.
[0036] The reservoir development model can be a deep learning model used to calculate oil production and gas-oil ratio.
[0037] The monitoring data to be tested of the production wells and adjacent injection wells are collected, and the monitoring data to be tested is input into the pre-trained reservoir development model. The reservoir development model can be used to calculate the oil production and gas-oil ratio of the production wells, and the oil production and gas-oil ratio corresponding to the monitoring data to be tested are obtained.
[0038] In an optional solution, the training process of the reservoir development model may include steps A1-A3:
[0039] Step A1: Obtain sample monitoring data of the production well and the adjacent injection well.
[0040] Step A2: input the sample monitoring data into the original model for training to obtain a first initial model.
[0041] Step A3: constraining the first initial model according to the pre-constructed production optimization evaluation function to obtain an oil reservoir development model.
[0042] The sample monitoring data may be data of production wells and adjacent injection wells used to train the neural network model, including but not limited to daily water production (Q w ), daily gas production (Q g ), Nissan Oil (Q o), nozzle size (CS), switch well status (SI), gas-oil ratio (GOR), injection fluid type (I t ), injection volume (I v ), injection pressure (I p ), porosity Permeability (K), saturation (S) and well logging interpretation (Data log ) data. The original model may be a neural network model that has not been trained. The first initial model may be a model obtained after the original model is trained by inputting sample monitoring data. The reservoir development model may be a model for determining the oil production and gas-oil ratio of the production well. The production optimization evaluation function may be a function for adjusting the model input data and thus the oil field recovery rate.
[0043] Before training the neural network model to obtain the reservoir development model, it is necessary to obtain the input data of the neural network model. Therefore, the sample monitoring data of the production wells and the adjacent injection wells will be obtained. The neural network model will be trained based on the sample monitoring data to obtain the first initial model that can calculate the oil production and gas-oil ratio.
[0044] Exemplarily, a data set is extracted from sample monitoring data, and the data set is divided into a training set and a test set in a ratio of 8:2 to obtain a training set and a test set; wherein the porosity, permeability, saturation, and injection fluid type, injection volume, and injection pressure in the data set are used as inputs of the original model, and the daily oil production, daily gas production, daily water production, and gas-oil ratio of the production wells in the data set are used as outputs of the original model; the switching well status and nozzle size of the production well are placed in the output part of the original model, and two important reservoir information, the switching well status and nozzle size, are introduced into the model to guide training.
[0045] The encoding component and decryption component of the first initial model each have 6 layers, and the number of neurons in each layer is 88; it can be expressed as [Weight,Bias]. Among them, Weight represents the connection weight matrix between neurons, and Bias represents the bias matrix in each neuron.
[0046] Figure 2 It is a schematic diagram of the prediction result of daily oil production applicable to the embodiment of the present invention. Figure 3 This is a schematic diagram of the optimization result of the production optimization evaluation function applicable to the embodiment of the present invention. Figure 2 as well as Figure 3 However, due to the high gas-oil ratio (GOR) during the gas injection development of the reservoir, it is easy to cause safety hazards such as gas channeling and pipeline damage, which is not conducive to the sustainable development of the reservoir. At the same time, improving the recovery rate of the reservoir and increasing the oil production are also the most concerned goals of the reservoir. Therefore, it is necessary to optimize with a large daily oil production and a low gas-oil ratio as the goal, which can be expressed as Target = [Max(Q o),Min(GOR)], thereby constraining the first initial model according to the production optimization evaluation function to obtain the reservoir development model.
[0047] Optionally, before constraining the first initial model according to the pre-constructed production optimization evaluation function to obtain the reservoir development model, the method further includes:
[0048] The first initial model is constrained based on the mass conservation physical constraint method to obtain the second initial model.
[0049] After obtaining the first initial model, since the calculation results of the first initial model may have a large error compared with the situation in the real physical world, in order to avoid the above problem, it is necessary to use the mass conservation physical constraint method to constrain the first initial model to obtain the second initial model.
[0050] Optional, mass conservation physics constraint methods, including:
[0051] The mass conservation physical constraint method is constructed according to the following formula:
[0052] Loss phy =Loss(pred,monitor)+Loss(Q inj -Q prod -Q reservoir )
[0053] Among them, Loss phy represents the total loss function value with physical constraints added, Loss(pred,monitor) represents the loss function value between the deep learning prediction result and the reservoir monitoring value, and Loss(Q inj -Q prod -Q reservoir ) represents the loss function value between the cumulative total injection volume of the injection wells around the production well, the cumulative total production volume and the formation production volume.
[0054] In an optional solution, obtaining sample monitoring data of a production well and an adjacent injection well may include steps A11-A13:
[0055] Step A11: Collect dynamic production data and static geological data of the production well and adjacent injection wells.
[0056] Step A12: Clean the dynamic production data and static geological data to obtain a first data set.
[0057] Step A13: fill the first data set with data to obtain a complete data set.
[0058] The complete data set includes an output parameter and at least two corresponding input parameters.
[0059] Dynamic production data may be data that is in dynamic change in production wells and adjacent injection wells, including but not limited to daily water production, daily gas production, daily oil production, nozzle size, switch well status, gas-oil ratio, injection fluid type, injection volume, and injection pressure. Static geological data may be geological information of the area where production wells and adjacent injection wells are located, including but not limited to porosity, permeability, saturation, and logging interpretation data. The first data set may be a data set obtained by removing abnormal data from dynamic production data and static geological data. A complete data set may be a data set after filling in missing data.
[0060] Collect dynamic production data and static geological data of target oil reservoir production wells and surrounding injection wells;
[0061] Among them, the dynamic production data of production wells include: daily water production, daily gas production, daily oil production, nozzle size, switch well status and gas-oil ratio; the dynamic production data of adjacent injection wells include: injection fluid type, injection volume and injection pressure; static geological data include: porosity, permeability, saturation and logging interpretation data.
[0062] Since there may be a problem of large errors in the data when collecting dynamic production data and static geological data, it is necessary to clean the collected dynamic production data and static geological data to obtain the first data set.
[0063] As for the missing data of daily water production, daily gas production, daily oil production and saturation, the monitoring values of the day before the beginning of the missing segment and the monitoring values of the day after the end of the missing segment are used to fill in the values of the missing segment by using the equidistant interpolation method.
[0064] For the missing nozzle size and switch well status, a production-dependent method is used to determine it, that is, if there is production at the current moment, the switch well status is open, and if there is no production at the current moment, the switch well status is closed; the completed nozzle size is obtained by multiplying the ratio of the nozzle size to the production at the previous well opening moment by the current production.
[0065] The missing injection fluid type, injection volume, and injection pressure are considered to be the same as those at the previous moment, thereby obtaining a complete data set.
[0066] In an optional solution, after constraining the first initial model based on the mass conservation physical constraint method to obtain the second initial model, steps B1-B3 are also included:
[0067] Step B1: Based on the second initial model, the importance of the input parameters to the output parameters is determined according to the errors between the model predicted values and the monitored values of at least two input parameters.
[0068] Step B2: prune the complete dataset according to the importance level to obtain the final proxy training dataset.
[0069] Step B3: training the second initial model according to the final proxy training data set and boundary conditions to obtain a third initial model.
[0070] The importance degree can be used to indicate the influence degree of the input parameter on the output parameter. The final proxy training data set can be a data set obtained by deleting the non-important input parameters from the complete data set.
[0071] Based on the second initial model, the importance of the input parameters to the output parameters is calculated one by one, that is, one of the input parameters is reduced one by one, and the other input parameters and model settings are kept unchanged to form a new training set and use it to train the model. The error of the corresponding prediction result is calculated, and the error value is used as the importance of the input parameter. The input parameters with the greatest impact on the output parameters of the reservoir are selected to form the final proxy model training data set.
[0072] Adjust the boundary conditions, set the pressure boundary condition to the constant pressure boundary condition, and the pressure value is the formation pressure at infinity; set the saturation boundary condition to the initial saturation of the reservoir.
[0073] The second initial model is trained according to the final proxy training data set and the boundary conditions to obtain a third initial model.
[0074] In one alternative, the importance level is calculated according to the following formula:
[0075]
[0076] Among them, Degree i Indicates the importance of the i-th input parameter, error all Indicates the error between the predicted value and the monitored value of the model containing all input parameters, error i Represents the error between the predicted value and the monitored value including the missing i-th input parameter.
[0077] In an optional solution, after the complete data set is deleted according to the importance level to obtain the final proxy training data set, steps B21-B23 are also included:
[0078] Step B21: Based on the second initial model, determine the weight value of the output parameter to the input parameter in the second initial model.
[0079] Step B22: Use the weight value as the well-to-well connectivity between the production well and the adjacent injection well.
[0080] Step B23: adding the well-to-well connectivity as a training input parameter of the third initial model to the final proxy training data set.
[0081] Well connectivity can be a data quantity used to describe the connectivity status between adjacent injection wells and production wells. Weight value can be a data quantity used to describe the importance of a certain parameter to the whole.
[0082] Figure 4 A schematic diagram of a second initial model and an attention mechanism applicable to an embodiment of the present invention. Figure 5 Schematic diagram of the calculation results of the well connectivity between the production well and the adjacent injection well applicable to the embodiment of the present invention. Figure 4 as well as Figure 5 Based on the second initial model, the existing attention mechanism in the second initial model is used to take the weight value of the output parameter learned by the second initial model to the input parameter as the well-to-well connectivity between the production well and the surrounding neighboring wells, and the obtained well-to-well connectivity is added to the final proxy training data set as the training input parameter of the third initial model.
[0083] In one alternative, well connectivity is calculated according to the following formula:
[0084]
[0085] Among them, Connectivity j represents the inter-well connectivity of the production well to the surrounding j-th injection well, Q j , K j and V j are the query value, key value and weight of the production well to the jth injection well in the vicinity, and softmax is the normalized exponential function.
[0086] In an optional solution, the formula for constructing the production optimization evaluation function is as follows:
[0087]
[0088] Among them, Eva(x 1 ,x 2 ,…,x n ,t) is the reservoir parameter x 1 ,x 2 ,…,x n The production optimization evaluation function corresponding to time t; The reservoir parameter is x 1 ,x 2 ,…,x n The daily oil production at time t is, The input reservoir parameter is x 1,x 2 ,…,x n The gas-oil ratio corresponding to time t; where the reservoir parameters at least include daily water production, daily gas production, daily oil production, nozzle size, switch well status, gas-oil ratio, injection fluid type, injection volume, injection pressure, porosity, permeability, saturation and logging interpretation data.
[0089] By adopting the technical solution of the present application, utilizing the classical reservoir physics laws and expert experience, introducing physical guidance, a reservoir development model is constructed based entirely on the monitoring data of the oil field, and a production optimization framework is formed to solve the injection optimization problem in reservoir production and development. It has high prediction accuracy and fast prediction speed, can replace traditional numerical simulators, and can provide reliability suggestions for reservoir engineers to improve reservoir recovery.
[0090] Embodiment 2
[0091] Figure 5 The present invention provides a structural block diagram of an oil reservoir development optimization device. This embodiment is applicable to the situation where the injection mode is adjusted to maximize the production while maintaining low GOR and water production. The oil reservoir development optimization device can be implemented in the form of hardware and / or software. The oil reservoir development optimization device can be configured in an electronic device with data processing capabilities. Figure 5 As shown, the reservoir development optimization device of this embodiment may include: a data acquisition module 210 and a production data acquisition module 220. Among them:
[0092] The data acquisition module 210 is used to acquire the monitoring data to be tested of the production well and the adjacent injection well;
[0093] The production data acquisition module 220 is used to input the monitoring data to be tested into the pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well;
[0094] Among them, the reservoir development model is trained under the constraints of the pre-constructed production optimization evaluation function.
[0095] Based on the above embodiment, optionally, the training process of the reservoir development model includes:
[0096] A detection data acquisition unit, used to acquire sample monitoring data of the production well and adjacent injection wells;
[0097] A first model training unit, used for inputting sample monitoring data into the original model for training to obtain a first initial model;
[0098] The development model training unit is used to constrain the first initial model according to the pre-constructed production optimization evaluation function to obtain the reservoir development model.
[0099] Based on the above embodiment, optionally, before the first model training unit, the method further includes:
[0100] A second model training unit is used to constrain the first initial model based on a mass conservation physical constraint method to obtain a second initial model;
[0101] Accordingly, the first initial model is constrained according to the pre-constructed production optimization evaluation function, including:
[0102] The second initial model is constrained according to the pre-constructed production optimization evaluation function to obtain the reservoir development model.
[0103] Based on the above embodiment, optionally, the construction formula of the production optimization evaluation function is as follows:
[0104]
[0105] Among them, Eva(x 1 ,x 2 ,…,x n ,t) is the reservoir parameter x 1 ,x 2 ,…,x n The production optimization evaluation function corresponding to time t; The reservoir parameter is x 1 ,x 2 ,…,x n The daily oil production at time t is, The input reservoir parameter is x 1 ,x 2 ,…,x n The gas-oil ratio corresponding to time t; where the reservoir parameters at least include daily water production, daily gas production, daily oil production, nozzle size, switch well status, gas-oil ratio, injection fluid type, injection volume, injection pressure, porosity, permeability, saturation and logging interpretation data.
[0106] Based on the above embodiment, optionally, the detection data acquisition unit includes:
[0107] A data determination subunit for collecting dynamic production data and static geological data of production wells and adjacent injection wells;
[0108] A data cleaning subunit, used for cleaning the dynamic production data and the static geological data to obtain a first data set;
[0109] A data filling subunit, used to fill the first data set with data to obtain a complete data set;
[0110] The complete data set includes an output parameter and at least two corresponding input parameters.
[0111] Based on the above embodiment, optionally, the second model training unit further includes:
[0112] an importance determination unit, configured to determine the importance of the input parameters to the output parameters based on the second initial model and according to the errors between the model predicted values and the monitored values of at least two input parameters;
[0113] A data set determination unit, used to prune the complete data set according to the degree of importance to obtain a final proxy training data set;
[0114] A third model training unit is used to train the second initial model according to the final proxy training data set and boundary conditions to obtain a third initial model;
[0115] Accordingly, the first initial model is constrained according to the pre-constructed production optimization evaluation function, including:
[0116] The third initial model is constrained according to the pre-constructed production optimization evaluation function to obtain the reservoir development model.
[0117] Based on the above embodiment, optionally, after the data set determination unit, the following further includes:
[0118] A weight value determination unit, used to determine the weight value of the output parameter to the input parameter in the second initial model based on the second initial model;
[0119] A connectivity determination unit, for using the weight value as the inter-well connectivity between the production well and the adjacent injection well;
[0120] The data adding unit is used to add the well connectivity as a training input parameter of the third initial model into the final proxy training data set.
[0121] On the basis of the above embodiment, optionally, the well connectivity is calculated according to the following formula:
[0122]
[0123] Among them, Connectivity j represents the inter-well connectivity of the production well to the surrounding j-th injection well, Q j , K j and V j are the query value, key value and weight of the production well to the jth injection well in the vicinity, and softmax is the normalized exponential function.
[0124] Based on the above embodiment, optionally, the importance degree is calculated according to the following formula:
[0125]
[0126] Among them, Degree i Indicates the importance of the i-th input parameter, error all Indicates the error between the predicted value and the monitored value of the model containing all input parameters, error i Represents the error between the predicted value and the monitored value including the missing i-th input parameter.
[0127] Based on the above embodiment, optionally, the mass conservation physical constraint method includes:
[0128] The mass conservation physical constraint method is constructed according to the following formula:
[0129] Loss phy =Loss(pred,monitor)+Loss(Q inj -Q prod -Q reservoir )
[0130] Among them, Loss phy represents the total loss function value with physical constraints added, Loss(pred,monitor) represents the loss function value between the transformer deep learning prediction result and the reservoir monitoring value, and Loss(Q inj -Q prod -Q reservoir ) represents the loss function value between the cumulative total injection volume of the injection wells around the production well, the cumulative total production volume and the formation production volume.
[0131] The reservoir development optimization device provided in the embodiment of the present invention can execute the reservoir development optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0132] Embodiment 3
[0133] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0134] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0135] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0136] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a reservoir development optimization method.
[0137] In some embodiments, the reservoir development optimization method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the reservoir development optimization method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the reservoir development optimization method in any other suitable manner (e.g., by means of firmware).
[0138] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0139] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0140] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 of the foregoing.
[0141] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0142] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0143] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0144] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0145] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for optimizing oil reservoir development, characterized in that: include: Obtain monitoring data of production wells and adjacent injection wells to be tested; Inputting the monitoring data to be tested into a pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well; The reservoir development model is trained under the constraints of a pre-constructed production optimization evaluation function.
2. The method according to claim 1, characterized in that: The training process of the reservoir development model includes: Obtain sample monitoring data from production wells and adjacent injection wells; Inputting the sample monitoring data into the original model for training to obtain a first initial model; The first initial model is constrained according to a pre-constructed production optimization evaluation function to obtain the reservoir development model.
3. The method according to claim 2, characterized in that Before constraining the first initial model according to the pre-constructed production optimization evaluation function to obtain the reservoir development model, the method further includes: Constraining the first initial model based on a mass conservation physical constraint method to obtain a second initial model; Accordingly, constraining the first initial model according to the pre-constructed production optimization evaluation function includes: The second initial model is constrained according to a pre-constructed production optimization evaluation function to obtain the reservoir development model.
4. The method according to claim 2, characterized in that: The construction formula of the production optimization evaluation function is as follows: Among them, Eva(x1,x2,…,x n ,t) are reservoir parameters x1,x2,…,x n The production optimization evaluation function corresponding to time t; The reservoir parameters are x1, x2,…, x n The daily oil production at time t is, The input reservoir parameters are x1, x2,…, x n The gas-oil ratio corresponding to time t; where the reservoir parameters at least include daily water production, daily gas production, daily oil production, nozzle size, switch well status, gas-oil ratio, injection fluid type, injection volume, injection pressure, porosity, permeability, saturation and logging interpretation data.
5. The method according to claim 2, characterized in that: The obtaining of sample monitoring data of the production well and the adjacent injection well includes: Collect dynamic production data and static geological data of production wells and adjacent injection wells; Cleaning the dynamic production data and static geological data to obtain a first data set; Filling the first data set with data to obtain a complete data set; The complete data set includes an output parameter and at least two corresponding input parameters.
6. The method according to claim 3, characterized in that After constraining the first initial model based on the mass conservation physical constraint method to obtain the second initial model, the method further includes: Based on the second initial model, determining the importance of the input parameters to the output parameters respectively according to the errors between the model predicted values and the monitored values of the at least two input parameters; Deleting the complete data set according to the importance level to obtain a final proxy training data set; Training the second initial model according to the final proxy training data set and boundary conditions to obtain a third initial model; Accordingly, constraining the first initial model according to the pre-constructed production optimization evaluation function includes: The third initial model is constrained according to a pre-constructed production optimization evaluation function to obtain the reservoir development model.
7. The method according to claim 6, characterized in that After the complete data set is deleted according to the importance level to obtain the final proxy training data set, the method further includes: Based on the second initial model, determining a weight value of an output parameter to an input parameter in the second initial model; Using the weight value as the well-to-well connectivity between the production well and the adjacent injection well; The well-to-well connectivity is added as a training input parameter of the third initial model in the final proxy training data set.
8. The method according to claim 7, characterized in that , the well connectivity is calculated according to the following formula: Among them, Connectivity j represents the inter-well connectivity of the production well to the surrounding j-th injection well, Q j , K j and V j are the query value, key value and weight of the production well to the jth injection well in the vicinity, and softmax is the normalized exponential function.
9. The method according to claim 6, characterized in that The degree of importance is calculated according to the following formula: Among them, Degree i Indicates the importance of the i-th input parameter, error all Indicates the error between the predicted value and the monitored value of the model containing all input parameters, error i Represents the error between the predicted value and the monitored value including the missing i-th input parameter.
10. The method according to claim 3, characterized in that The mass conservation physical constraint method comprises: The mass conservation physical constraint method is constructed according to the following formula: Loss phy =Loss(pred,monitor)+Loss(Q inj -Q prod -Q reservoir ) Among them, Loss phy represents the total loss function value with physical constraints added, Loss(pred,monitor) represents the loss function value between the transformer deep learning prediction result and the reservoir monitoring value, and Loss(Q inj -Q prod -Q reservoir ) represents the loss function value between the cumulative total injection volume of the injection wells around the production well, the cumulative total production volume and the formation production volume.
11. An oil reservoir development optimization device, characterized in that: The device comprises: A data acquisition module is used to acquire the monitoring data to be tested of the production well and the adjacent injection well; A production data acquisition module is used to input the monitoring data to be tested into a pre-trained reservoir development model to obtain the oil production and gas-oil ratio of the production well; The reservoir development model is trained under the constraints of a pre-constructed production optimization evaluation function.
12. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the reservoir development optimization method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the reservoir development optimization method according to any one of claims 1 to 10 when executed.
