Water drive reservoir production performance prediction and injection-production optimization method and system

By constructing a directed injection-production bipartite graph and graph attention network, combined with a long short-term memory encoder and a multi-objective evolutionary algorithm, the problem of difficulty in representing inter-well relationships in water-drive reservoirs was solved, achieving efficient multi-well dynamic prediction and injection-production optimization, and generating accurate single-well injection-production schemes.

CN123180503APending Publication Date: 2026-11-27ZHANJIANG BRANCH OF CHINA NATIONAL OFFSHORE OIL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611334329.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively characterize the spatial relationships and dynamic correlations between wells in water-driven reservoirs, resulting in high computational costs for multi-well, multi-objective optimization processes and insufficient speed and accuracy in evaluating injection and production schemes.

Method used

A directed injection-production bipartite graph is constructed, and dynamic connectivity coefficients are generated using graph attention networks and long short-term memory encoders. The injection-production scheme is optimized by combining multi-objective evolutionary algorithms. By fusing the node features of water injection wells and production wells, future oil and water production are predicted, and an optimized scheme is generated under constraints.

Benefits of technology

It improves the accuracy and interpretability of future production dynamics prediction, reduces the reliance on reservoir numerical simulators, generates single-well injection and production schemes that meet engineering constraints, and satisfies the needs for rapid evaluation and optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180503A_ABST
    Figure CN123180503A_ABST
Patent Text Reader

Abstract

The application discloses a water drive reservoir production dynamic prediction and injection-production optimization method and system, and the method comprises the following steps: a directed injection-production bipartite graph is constructed with the injection well role and the production well role as the connecting nodes, and an injection-production topological mask is generated based on the directed injection-production bipartite graph; a window-level dynamic connectivity coefficient is obtained by using a graph attention network and combining the injection-production topological mask; the node features of the injection well and the production well are fused based on the window-level dynamic connectivity coefficient to obtain historical injection-production fusion features; a long short-term memory encoder and decoder are used to generate the predicted oil production and water production of each production well according to the historical injection-production fusion features; under the injection-production constraint condition, a multi-objective evolutionary algorithm is used to search for an injection-production scheme according to the optimization target constructed by the predicted oil production and the predicted water production, and a target injection-production scheme is obtained. Based on the above data processing procedure, the application can reduce the calling of numerical simulation, improve the multi-well production prediction, dynamic injection-production correlation identification and injection-production control efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of oil and gas field development, reservoir engineering, artificial intelligence and multi-objective optimization technology, and in particular to a method and system for dynamic prediction of water-driven reservoir production and injection-production optimization. Background Technology

[0002] Water injection development maintains production and improves oil recovery by replenishing reservoir energy and expanding the water drive sweep range. As water-driven reservoirs enter the medium-to-high water-cut development stage, they are prone to local water channeling, inefficient circulation, increased water production, and decreased oil production due to reservoir heterogeneity, differences in inter-well connectivity, and long-term water injection effects. The response relationship between multiple wells can also change with well opening / closing, well type conversion, and changes in injection-production regimes.

[0003] Current injection-production adjustments typically rely on reservoir numerical simulation models to evaluate candidate solutions. For multi-well, multi-control-time, and multi-objective problems, the evolutionary optimization process requires repeated calls to the numerical simulator, and the computational cost increases rapidly with the decision dimension and population size, making it difficult to meet the needs of rapid solution evaluation and production control.

[0004] Using recurrent neural networks or long short-term memory networks to establish dynamic production proxy models can reduce evaluation costs, but when multi-well data is directly organized into fixed vectors, it is difficult to explicitly characterize the spatial relationships between wells and the differentiated effects of different injection-production well pairs; using fixed connectivity coefficients is also difficult to reflect the dynamic correlation adjustments caused by changes in injection-production systems.

[0005] Meanwhile, graph neural networks can represent wells as nodes and relationships between wells as edges, but fully connected graphs can introduce spatially unreasonable or weakly responsive redundant relationships; if the time-by-time edge weights obtained by graph attention are not combined with the actual water injection activity state and reservoir engineering topology priors, they are easily affected by the injection stoppage period, the shut-in stage and invalid connections.

[0006] Furthermore, there is a competitive relationship between increasing oil production, reducing water production, and decreasing water injection consumption. A single weighted sum objective can lead to search results being influenced by preset weights; when geometric knee points are directly used on three-objective discrete Pareto surfaces, they are easily affected by solution set density, normalization methods, and local curvature calculations.

[0007] Therefore, based on the above problems, it is necessary to develop a complete technical solution that can dynamically identify inter-well interactions, synchronously predict multi-well production under future control conditions, and complete target injection-production optimization and selection of clear representative schemes under engineering constraints. Summary of the Invention

[0008] This invention provides a method and system for dynamic prediction of production and injection-production optimization in water-drive reservoirs. Under the conditions of multi-well spatial coupling, production response time lag, and dynamic changes in well status in water-drive reservoirs, it improves the accuracy and interpretability of future production dynamic prediction, reduces repeated calls to the reservoir numerical simulator during multi-objective injection-production optimization, and generates single-well injection-production schemes that meet the injection-production requirements.

[0009] Firstly, a method for predicting the dynamic production of water-drive reservoirs and optimizing injection and production is provided, including: Historical injection and production data of physical wells in the water-drive reservoir of the study area were obtained, and the physical wells were identified as either water injection wells or production wells at different development stages. Construct a directed injection-production bipartite graph with injection well roles and production well roles as connection nodes, and generate an injection-production topology mask based on the inter-well relationships in the directed injection-production bipartite graph; The historical injection and mining production data is processed using a graph attention network, and the injection and mining topology mask is combined during the processing to obtain window-level dynamic connectivity coefficients. Based on the window-level dynamic connectivity coefficient, the node characteristics of the injection well role and the production well role are fused to obtain historical injection-production fusion characteristics. Based on the historical injection-production fusion characteristics, the long short-term memory encoder and decoder generate the predicted oil production and water production of each production well in the future target period. The cumulative water injection volume is obtained based on the daily water injection volume of each injection well in the future target period. Under the constraint of injection and production, a multi-objective evolutionary algorithm is used to search for injection and production schemes according to the optimization objectives constructed by the predicted oil production, the predicted water production, and the cumulative water injection volume, to obtain the Pareto non-dominated solution set, and the target injection and production scheme is determined from the Pareto non-dominated solution set.

[0010] Secondly, a system for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production is provided, including: The injection and production data acquisition module is used to acquire historical injection and production data of physical wells in the water-drive reservoir of the study area. The physical wells correspond to the roles of water injection wells or production wells at different development stages. The topology mask module is communicatively connected to the injection and production data acquisition module. It is used to construct a directed injection and production bipartite graph with the roles of injection wells and production wells as connection nodes, and to generate an injection and production topology mask based on the inter-well relationships in the directed injection and production bipartite graph. The connectivity coefficient module is communicatively connected to the topology mask module. It is used to process the historical injection and mining production data using a graph attention network, and in the process of processing, it combines the injection and mining topology mask to obtain window-level dynamic connectivity coefficients. The fusion module, which is communicatively connected to the connectivity coefficient module, is used to fuse the node features of the injection well role and the production well role based on the window-level dynamic connectivity coefficient to obtain historical injection-production fusion features. The prediction module, communicatively connected to the fusion module, is used to generate predicted oil production and predicted water production for each production well in a future target time period based on the historical injection-production fusion characteristics using a long short-term memory encoder and decoder; and The scheme search module is communicatively connected to the prediction module and is used to obtain the cumulative water injection volume based on the daily water injection volume of each injection well in the future target period. Under the constraint of injection and production, the multi-objective evolutionary algorithm is used to search for injection and production schemes according to the optimization objectives constructed by the predicted oil production, the predicted water production, and the cumulative water injection volume, to obtain the Pareto non-dominated solution set, and to determine the target injection and production scheme from the Pareto non-dominated solution set.

[0011] Thirdly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the water-drive reservoir production dynamic prediction and injection-production optimization method as described above.

[0012] Fourthly, embodiments of the present invention provide an electronic device, including a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor. When the processor runs the computer program, it implements the water-drive reservoir production dynamic prediction and injection-production optimization method as described above.

[0013] Compared with the prior art, the beneficial effects of the present invention are as follows: Under the conditions of multi-well spatial coupling, production response time lag, and dynamic changes in well status in water-drive reservoirs, this study aims to improve the accuracy and interpretability of future production dynamic predictions, reduce repeated calls to reservoir numerical simulators during multi-objective injection-production optimization, and generate single-well injection-production schemes that meet the requirements of well status, single-well boundaries, and control amplitude. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating a method for predicting dynamic production in water-driven oil reservoirs and optimizing injection and production according to the present invention. Figure 2 This is a schematic diagram of the directed injection sampling bipartite graph and topological prior of the present invention; Figure 3 This is a schematic diagram of the dynamic connectivity coefficient extraction and injection-sampling feature fusion process of the present invention; Figure 4 This is a schematic diagram of the complete structure of the GAT-LSTM surrogate model and the joint loss training of the present invention; Figure 5This is a schematic diagram of the initial prediction curves for each production well and the error changes for each subsequent prediction step in this invention. Figure 6 This is a schematic diagram comparing the dynamic injection-production correlation weights before and after well A17's conversion to injection, according to the present invention. Figure 7 This is a schematic diagram of the three-target injection-extraction optimization and representative scheme selection process of the present invention; Figure 8 This is a schematic diagram illustrating the injection and extraction constraint processing and feasibility priority selection of the present invention; Figure 9 This is a flowchart of the NSGA-III three-objective optimization iteration and batch proxy evaluation process of the present invention; Figure 10 This is a schematic diagram of the three-target Pareto front and the distribution of representative injection and production schemes of the present invention; Figure 11 This is a flowchart of the representative scheme selection, numerical recalculation, and injection / collection control output of the present invention. Detailed Implementation

[0015] Referring now to specific embodiments of the invention, examples of which are illustrated in the accompanying drawings. Although the invention will be described in conjunction with specific embodiments, it will be understood that it is not intended to limit the invention to the described embodiments. Rather, it is intended to cover variations, modifications, and equivalents included within the spirit and scope of the invention as defined by the appended claims. It should be noted that the method steps described herein can be implemented by any functional block or functional arrangement, and any functional block or functional arrangement can be implemented as a physical entity or a logical entity, or a combination of both.

[0016] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0017] Note: The examples described below are merely specific examples and are not intended to limit the embodiments of the present invention to the specific steps, values, conditions, data, order, etc. Those skilled in the art can utilize the concept of the present invention to construct more embodiments not mentioned herein by reading this specification.

[0018] Please see Figure 1 The present invention provides a method for dynamic prediction and injection-production optimization of water-drive reservoirs. The method includes steps S100-S600: Step S100: Obtain historical injection and production data of physical wells in the water-drive reservoir of the study area. The physical wells correspond to the roles of water injection wells or production wells at different development stages. Specifically, in this embodiment of the invention, the well location coordinates, well type, well operating status, and injection-production data of physical wells in the water-drive reservoir of the study area are obtained, and a production dynamic prediction sample is constructed. The injection-production data includes at least one of actual historical injection-production data and simulated injection-production data generated based on the numerical model of the target water-drive reservoir. The physical wells correspond to the roles of water injection wells or production wells at different development stages. The injection and production data can be derived from actual historical production records or generated through a numerical model of the target water-drive reservoir. When using simulated injection and production data, based on the baseline injection and production scheme, the water injection and production volumes during the effective well opening phase are perturbed to generate multiple sets of varying injection and production conditions. These varying conditions are then input into the reservoir numerical model for simulation, extracting the corresponding water injection volume, production volume, oil production volume, water production volume, well type, and well operating status. When using actual historical production data, the well-level data is uniformly organized according to well name, time, well type, and well operating status. Subsequently, the obtained data undergoes time alignment, well role mapping, well status processing, normalization, and sliding window construction to form a dataset for training, validating, and testing the production dynamic prediction model.

[0019] Among them, physical wells correspond to the actual wellbore; well roles correspond to the water injection or production functions of physical wells during a specific time period. The main data fields, node affiliations, and processing methods are shown in the table below:

[0020] This invention focuses on the WS23-5S-2D well area. The target layer in the well area is a thick, box-shaped, medium-permeability, low-viscosity oil reservoir with strong vertical heterogeneity. It is affected by limited natural water bodies and bottom water, and the development effect is highly sensitive to water injection intensity, production well production regime, and injection-production balance.

[0021] A three-dimensional numerical model of a single-porosity reservoir was established, with the model calculation starting on June 30, 2024, and the simulation production period ending on April 15, 2026. The basic parameters of the reservoir numerical model are shown in the table below:

[0022] The well area includes two water injection wells, S23-5-A5 and A17, and four production wells, S23-5-A3, S23-5-A4, A16, and A17. Well A17 was initially a production well, but was later converted into a water injection well.

[0023] Centered on the baseline injection and production scheme, Latin hypercube sampling was used to randomly perturb the water injection volume and production volume during the well opening stage by ±20%, while keeping the production, well shut-in and well type conversion events unchanged, generating a total of 300 sets of simulation examples, each containing 331 daily time steps.

[0024] In this embodiment, the node characteristics of the water injection well role are [water injection volume, 0, 0], and the node characteristics of the production well role are [liquid production volume, oil production volume, water production volume]. Correspondingly, the input control characteristics consist of the water injection volume of the two water injection well roles and the liquid production volume of the four production well roles, for a total of 6 dimensions; the output response characteristics consist of the oil production volume and water production volume of the four production well roles, for a total of 8 dimensions. Except for the A17 well, whose oil production is zero during the conversion phase, all other variables exhibit a continuous unimodal distribution. The coefficients of variation for the input and output variables are 0.010–0.041 and 0.008–0.041, respectively, with absolute skewness less than 1, and mean kurtosis of [missing values]. 0.197 and The mean nearest neighbor distances of the input and output features in the t-SNE projection space are 0.173 and 0.799 and 0.846, respectively, indicating that the samples can characterize the response differences under different injection and collection conditions.

[0025] Historical Window Take 30 days, predict the length A time frame of 14 days and a sliding step size of 1 day were used. The water injection rate and product output control characteristics were adopted. The window, oil production and water production response characteristics are adopted Window, future forecasting adopts window.

[0026] The 300 sets of test cases are grouped into complete test cases, and divided into training set, validation set and test set in proportions of 80%, 10% and 10%, respectively, containing 240, 30 and 30 sets of test cases.

[0027] The sample construction for each set of examples begins at the first moment that satisfies both the complete historical window and the complete future window, and slides backward in 1-day steps. For any decision moment... The end of the history control window contains The control variable is known at all times, but the historical response window only extends to... At that moment; thus, the same The actual oil and water production at any given time is only used as a prediction target and is not included in the historical response input.

[0028] Data normalization preserves the minimum and maximum values ​​for each well role and each physical variable. Future candidate control variables are transformed using the normalized parameters of the control variables saved during the training phase before being input into the surrogate model. Oil production and water production prediction results are inversely normalized using the corresponding output variable parameters.

[0029] In the 300 sets of calculations, the production, shut-in, restart, and injection transfer events of well A17 were kept consistent with the baseline scheme. Random disturbances only affected the injection volume and production volume during the effective well opening phase. This both broadened the coverage of control variables and avoided creating training samples that contradicted the well state logic. The sample information is shown in the table below:

[0030] Step S200: Construct a directed injection-production bipartite graph with injection well roles and production well roles as connection nodes, and generate an injection-production topology mask based on the well relationships in the directed injection-production bipartite graph. The bidirectional edges in the directed injection-production bipartite graph are constructed between different types of well roles, and the edge attributes of the bidirectional edges are shown in the following formula:

[0031]

[0032] In the formula, For water injection wells and production wells The original edge weights are formed by the reciprocal of the three-dimensional Euclidean distance between them; For source nodes Edge attributes after normalization of all outgoing edges; and They are water injection wells and production wells 3D coordinates; For the source node The out-of-neighbor domain; It is a numerically stable term; For the source node Its out-neighboring nodes The original edge weights between them.

[0033] The generation of the injection-production topology mask based on the well relationships in the directed injection-production bipartite graph includes: The connection search radius of each well is determined based on the shortest distance from each well to the other wells in the directional injection-production dual-part diagram; Obtain well pairs connected within the search radius of each well connection and established according to the distance between wells; perform angle pruning on the triangles formed by the well pairs connected according to a preset angle threshold. The connections between injection well role nodes and production well role nodes are extracted from the pruned directed injection-production bipartite graph to form an injection-production topology mask.

[0034] Specifically, in the embodiments of the present invention, according to Figure 2 Construct a directed injection-production bipartite graph, establishing bidirectional edges between all injection well role nodes and production well role nodes, without adding self-loops; no connection is established between the injection role node and the production role node corresponding to well A17.

[0035] The reciprocal of the 3D distance between wells, after being normalized by the outgoing edges of the source node, is used as the edge attribute of the convolutional layer of the subsequent graph attention network. The connection search radius is set to 2.0 times the nearest distance from each well to the other wells; the triangles formed by candidate connections are traversed, and when both preset interior angles are less than 15°, the direct connections blocked by the intermediate wells are deleted, thus forming the injection-mining topology mask.

[0036] The bidirectional edges are used to transmit water injection impact information from the injection well to the production well and to transmit production response information back from the production well to the injection well, respectively. The attention coefficients returned by the second graph attention convolutional layer of the graph attention network are Softmax normalized according to the incoming edges of the target node; when constructing the dynamic connectivity coefficients, only the attention in the direction from the injection well to the production well is extracted.

[0037] The injection-production topology mask can be obtained in the following order: calculate the three-dimensional distance between any two wells; determine the nearest neighbor distance for each well; form a candidate neighborhood with a nearest neighbor distance of 2.0 times; enumerate triangles in the candidate neighborhood; delete the long side that is blocked by the intermediate well according to the 15° angle condition; retain the connection between heterogeneous well nodes and form a Boolean matrix.

[0038] The topological masking is used only after the graph attention has completed time-wise spatial encoding, thus avoiding the direct interruption of GAT message propagation in the early stages of training; the masked connections are computed... The time weight is reset to zero, the connection is preserved, and then normalized along the dimension of the injection well.

[0039] See also Figure 3 As shown, step S300 involves processing the historical injection and sampling production data using a graph attention network, and combining the injection and sampling topology mask during the processing to obtain window-level dynamic connectivity coefficients, including: The historical injection and production data are processed using a graph attention network to obtain the node spatial characteristics at each historical moment and the hourly attention coefficients from the injection well role to the production well role. Specifically, the graph attention network includes a first graph attention convolutional layer, a second graph attention convolutional layer, an input residual mapping layer, and a layer normalization layer. The first graph attention convolutional layer performs latent space mapping on the node features, and the second graph attention convolutional layer outputs the node spatial features and edge attention coefficients. The output of the second graph attention convolutional layer is added to the linear projection of the original node features by residual addition, and then normalized by the layer to obtain the node spatial features.

[0040] For the aforementioned two-layer graph attention network (GAT), single-head attention can be used, with edge feature dimension of 1 and no self-loops added. The first layer maps 3D node features to 128 dimensions, and the second layer maintains 128 dimensions and returns the edge attention coefficients. Dropout in both layers is set to 0.1. The input residual is mapped to a linear (3→128), and the residuals are summed and then normalized by the layer.

[0041] To improve computational efficiency, the batch... The isomorphic attention maps are stitched together to form a batch map, and the spatial encoding of all historical time steps is completed through forward propagation of a single graph attention network.

[0042] Then, the hourly attention coefficients are weighted and aggregated based on the water injection activity within the historical window. During the aggregation process, the injection-production topology mask is applied and normalized along the water injection well dimension to obtain the window-level dynamic connectivity coefficients. The window-level dynamic connectivity coefficient is shown in the following formula:

[0043] Among them, the weighted aggregation result

[0044] In the formula, For water injection wells For production wells Window-level dynamic connectivity coefficients; For water injection wells At a historical moment The amount of water injected; For water injection wells Pointing to production well The time-to-time attention coefficient; For topological masking; For water injection wells At a historical moment Time weighting of water injection activity; It is a numerically stable term; The length of the history window; For time indexes within the history window; Index for roles in water injection wells.

[0045] For production wells with valid connections ,satisfy The dynamic connectivity coefficient reflects the relative information contribution of different injection wells to the same production well within the current historical window, and is not directly equivalent to the actual injected water splitting ratio.

[0046] See also Figure 3As shown, in step S400, the node features of the injection well role and the production well role are fused based on the window-level dynamic connectivity coefficient to obtain the historical injection-production fusion features. The method is as follows:

[0047]

[0048] In the formula, To be at a historical moment Production wells Historical characteristics of injection and extraction integration; For water injection wells For production wells Window-level dynamic connectivity coefficients; For a historic moment Production wells Corresponding water injection impact characteristics; Number of roles in the water injection well; and Each of these is a historical moment Water injection well and production wells Spatial features obtained through graph attention networks; The linear mapping matrix of the fusion layer; This is the bias vector for the fusion layer.

[0049] Therefore, the injection-production fusion layer splices together the 128-dimensional characteristics of the production well itself with the 128-dimensional water injection influence characteristics obtained by weighting dynamic connectivity. ReLU and layer normalization yielded the fused features. The fused features from the four production wells were flattened to 512 dimensions. The Dropout(0.1) input is then fed into the subsequent Long Short-Term Memory (LSTM) encoder.

[0050] Step S500: Using a long short-term memory encoder and decoder, based on the historical injection-production fusion characteristics, generate the predicted oil production and predicted water production of each production well in the future target time period, including: The historical injection-production fusion features of all production wells at the same historical moment are flattened and projected onto a unified hidden space to form the input historical sequence of the long short-term memory encoder. The long short-term memory encoder encodes the input historical sequence to obtain the final hidden state and memory state. The long short-term memory decoder is initialized with the final hidden state and memory state of the long short-term memory encoder. The long short-term memory decoder generates hidden features for the future target time period based on the decoder input, and generates the predicted oil production and predicted water production of each production well through the oil production prediction branch and the water production prediction branch, respectively. The input to the Long Short-Term Memory decoder is as follows:

[0051] In the formula, For the future The input to the Long Short-Term Memory decoder at each time step; For the future Learnable query embeddings for each time step; For the future The control vector consists of the water injection volume of each injection well and the liquid production volume of each production well at each time step; The linear projection matrix of the future control vector; For the corresponding bias vector; For predicting length.

[0052] Specifically, both the LSTM encoder and decoder can be set to 2 layers, with a hidden dimension of 128 and an inter-layer dropout of 0.2. The future control vector is 6-dimensional. The projected data is then added to the embeddings of 14 learnable predictable locations. Both the oil production and water production output branches employ this method. The complete model structure is as follows: Figure 4 As shown: The historical injection-production sequence is first spatially encoded by a two-layer GAT. The injection-production bipartite graph attention is filtered by topological mask and weighted by water injection activity to form dynamic connectivity coefficients. The fused production well features are used to form historical states by an LSTM encoder. Future water injection and production are used as conditional inputs to the decoder, and multi-step prediction results are output synchronously by the oil production and water production branches.

[0053] The model consisting of the graph attention network, long short-term memory encoder, and decoder is a GAT-LSTM surrogate model. The GAT-LSTM surrogate model uses the AdamW optimizer with an initial learning rate of... The weight decay coefficient is The batch size is 64, and the maximum number of training epochs is 100. The learning rate is multiplied by 0.8 if the validation loss fails to improve for 5 consecutive epochs, and training stops early if it fails to improve for 25 consecutive epochs. The gradient pruning threshold is 1.0. The Huber loss inflection parameter is 0.1, the injection-sampling response constraint weight is 0.5, and the effective sample threshold is 0.01. The specific GAT-LSTM surrogate model and data processing parameters are shown in the table below.

[0054] In the early stages of training, the training loss increased from 1.53 × 10⁻⁶ in the first round. - ³ It quickly dropped to 4.46 × 10 in the 4th round. -5 The verification loss increased from 2.83 × 10 during the same period. -4 Reduced to 1.73×10 -5By the 100th round, the training loss and validation loss had decreased to 3.65 × 10⁻⁶. -6 and 1.81×10 -6 The validation loss did not show a continuous increase during training and maintained a consistent downward trend with the training loss, indicating that the model training process was relatively stable and there was no obvious overfitting.

[0055] For the training loss, the GAT-LSTM surrogate model is jointly trained by the injection-sampling response constraint loss function and the production dynamic prediction loss function constructed using Huber loss. For a single prediction error The Huber function is defined as follows:

[0056] In the formula, For a single prediction error; The transition parameter for Huber loss; This corresponds to the Huber loss value. The average Huber loss for all prediction time steps, production wells, and the oil-water production output channel is used to obtain the production dynamic prediction loss. .

[0057] The injection-procurement response constraint loss function As shown in the following formula:

[0058]

[0059]

[0060] In the formula, For a historic moment Learning-based temporal weights; For a historic moment Normalized time position within the historical window; For the sample Medium-sized water injection well Effective water injection volume after time-weighted aggregation; For water injection wells At a historical moment Normalized water injection volume; For the sample Medium production well Productive fluid response based on dynamic connectivity coefficient estimation; For production wells Learnable positive amplitude factor; Number of roles in the water injection well; For the sample Medium-sized water injection well For production wells The dynamic connectivity coefficient; For use in generating Learnable parameters; This is a sample set of wells that are in effective production and have historical windows showing effective water injection. For production wells The yield in the training set was extremely poor; For sample index; For the sample Medium production well The actual liquid production; It is a numerically stable term.

[0061] Therefore, the total loss of the GAT-LSTM surrogate model is:

[0062] After the GAT-LSTM surrogate model is trained, future multi-step oil and water production predictions are performed on the training set, validation set, and test set formed by grouping complete simulation cases. The model performance is evaluated using the coefficient of determination, mean absolute error, root mean square error, and overall relative error.

[0063] The evaluation model using the coefficient of determination, mean absolute error, root mean square error, and overall relative error is as follows:

[0064]

[0065]

[0066]

[0067] The overall relative error is calculated as the ratio of the sum of the absolute errors of all samples to the sum of the absolute values ​​of the true values. This avoids abnormal amplification of relative errors at specific points during periods of production stoppage or low production. The model evaluation results are shown in the table below:

[0068] Within the 288 effective sliding windows generated by the benchmark example, the initial predicted curves for each production well highly overlapped with the actual curves, enabling the identification of well shut-in, restart, well type conversion, and sudden changes in production. The MAE (Matriculation Estimated Effectiveness) for oil production in steps 1–14 was 0.22–0.67 m³ / d, and the MAE for water production was 0.05–0.31 m³ / d. Errors did not accumulate significantly with increasing prediction steps. The initial predicted curves for each production well and the changes in error step by step are shown below. Figure 5 As shown in the figure, the upper part of the figure compares the actual value of each sliding window with the predicted value of the first step, and the lower part shows the change of the average absolute error in the next 1 to 14 steps.

[0069] The coefficients of determination for the training, validation, and test sets all reached 0.9999. The MAE and RMSE for the test set were 0.3125 and 0.5460, respectively, with an overall relative error of 0.37%. The relative errors for oil production and water production were 0.34% and 0.43%, respectively, indicating that the model has high prediction accuracy and good generalization ability.

[0070] The dynamic connectivity coefficients of the last set of effective sliding windows were compared for the first and last 1 / 5 of the time period. The weights of injection wells with near-zero injection volume were reset to zero, and then converted along the production well dimension into injection impact allocation coefficients for visualization. Only effective associations with a value not less than 0.02 were displayed. Initially, A17 was still a production well, and the well area was mainly injected by S23-5-A5. After A17 was converted to injection, a pattern of joint injection by S23-5-A5 and A17 was formed. The influence of S23-5-A5 on multiple production wells was relatively dispersed, while the injection response of A17 was relatively concentrated. This indicates that the model can identify the association weight adjustments caused by well type conversion and changes in injection-production regime. The injection impact allocation coefficient is used to express the direction and relative strength of the injection impact and is not equivalent to the actual injected water splitting ratio. Related results are as follows: Figure 6 As shown.

[0071] The above prediction results show that the GAT-LSTM surrogate model can maintain stable multi-step prediction capabilities under conditions such as well shut-in, production resumption, well type conversion, and sudden changes in production, and can be used for rapid evaluation of subsequent candidate injection and production schemes.

[0072] In the well-by-well prediction results, the oil and water production predictions of wells S23-5-A3, S23-5-A4 and A16 can track the phased changes; the oil production of well A17 after the conversion to injection remains at zero, indicating that the role node and well status processing can avoid ineffective production output.

[0073] The visualization of dynamic connectivity coefficients can also convert the weight of the same injection well to each production well into a water injection impact allocation display coefficient along the production well dimension. This water injection impact allocation coefficient is only used to compare the direction and relative strength of the impact at different stages, and does not change the definition of normalization along the injection well dimension within the model.

[0074] The table below shows the evaluation results and engineering implications of the GAT-LSTM surrogate model;

[0075] See also Figure 7As shown, step S600 involves obtaining the cumulative water injection volume based on the daily water injection volume of each injection well during the future target time period; under injection-production constraints, a multi-objective evolutionary algorithm is used to search for injection-production schemes according to the optimization objectives constructed based on the predicted oil production, the predicted water production, and the cumulative water injection volume, to obtain a Pareto non-dominated solution set, and to determine the target injection-production scheme from the Pareto non-dominated solution set, including steps S610-S660: Step S610: Obtain candidate injection and production schemes composed of the daily water injection volume of each injection well and the daily liquid production volume of each production well in the future target period, and obtain the cumulative water injection volume based on the daily water injection volume of each injection well. Step S620: Based on the predicted oil production and predicted water production of each production well in the future target period, the cumulative oil production and cumulative water production corresponding to the candidate injection and production scheme are obtained. Step S630: Under the constraints of injection and production, a multi-objective evolutionary algorithm is used to search for injection and production schemes with the optimization objectives of maximizing the cumulative oil production, minimizing the cumulative water production, and minimizing the cumulative water injection, so as to obtain the Pareto non-dominated solution set. The optimization objective is shown in the following formula: ;

[0076]

[0077]

[0078] In the formula, Candidate injection and extraction schemes Corresponding cumulative oil production; Candidate injection and extraction schemes Corresponding cumulative water production; Candidate injection scheme The corresponding cumulative water injection volume; and Each of the future Production wells at each time step Predicted oil production and predicted water production; For the future Each time step water injection well Candidate water injection volume; To optimize the start time; For prediction time step index; For predicted length; The feasible region is defined by the single-well control boundary, well operating status, and adjustment range constraints. Number of roles in production wells; Number of roles in the water injection well; For the future The duration of each time step.

[0079] Step S640: Determine the injection-production scheme with the maximum cumulative oil production, the injection-production scheme with the minimum cumulative water production, and the injection-production scheme with the minimum cumulative water injection in the Pareto non-dominated solution set, and perform normalized deviation calculation on each injection-production scheme in the Pareto non-dominated solution set. The method for calculating the normalized deviation of each injection and production scheme is shown in the following formula:

[0080]

[0081]

[0082] In the formula, , , For the first Normalized biases of the Pareto scheme on the three targets of cumulative oil production, cumulative water production, and cumulative water injection; and These represent the maximum and minimum cumulative oil production values ​​in the Pareto solution set, respectively. For the first Cumulative oil production of the Pareto program; and These represent the maximum and minimum cumulative water production values ​​in the Pareto solution set, respectively. For the first Cumulative water production of the Pareto program; and These represent the maximum and minimum cumulative water injection volumes in the Pareto solution set, respectively. For the first The cumulative water injection volume of each Pareto scheme; For Pareto scheme index; It is a numerically stable term.

[0083] Step S650: Calculate the Chebyshev evaluation value by weighting the deviation calculation results, and determine the injection and production scheme corresponding to the minimum evaluation value as the compromise injection and production scheme; The method for weighting the Chebyshev evaluation value based on the deviation calculation results is shown in the following formula:

[0084] In the formula, For the first Weighted Chebyshev scores for each Pareto scheme; For the first The weights of the normalization objective, , and These correspond to the cumulative oil production, cumulative water production, and cumulative water injection targets, respectively. For the first The Pareto scheme in the ... Normalization bias on each objective; For target index; This is the coefficient for the augmented term.

[0085] Step S660: Based on the injection and production scheme with the maximum cumulative oil production, the injection and production scheme with the minimum cumulative water production, the injection and production scheme with the minimum cumulative water injection, and the compromise injection and production scheme, the target injection and production scheme is obtained.

[0086] Specifically, in this embodiment of the invention, regarding the injection / import constraint: feasible region It consists of upper and lower limits for a single well, well operating status, and adjustment range constraints for adjacent control times. The upper and lower limits for a single well are set centered on the historical reference control trajectory; variables with a reference value of zero, wells not in production, wells shut down, or mismatched well types are locked at zero. The adjustment range for adjacent control times satisfies:

[0087] In the formula, and The first The control variables at adjacent control times and The value of -1; and These are the historical reference control values ​​for the corresponding time points; Additional amplitude modulation factor allowed; (·) is used to select the maximum value between adjacent reference control values ​​and 1.0 as the scaling factor.

[0088] When any adjacent value of the reference trajectory falls below a preset threshold, it is considered that the corresponding stage may involve shutdown, resumption of production, or well switching, and no adjustment range constraint is applied. For other soft constraints, the positive exceedance is calculated and normalized with the corresponding allowable adjustment range to obtain the total constraint violation. Environment selection follows a feasibility-first principle: feasible solutions are preferred over infeasible solutions; if all are infeasible, the one with the smaller violation is prioritized; if all are feasible, further selection is based on non-dominated level, reference point association, and niche selection, as follows: Figure 8 As shown.

[0089] After training, a 30-day historical window prior to the initial optimization time is fixed, and open-loop joint optimization is performed on the daily water injection volume of each injection well and the daily fluid production of each production well for the next 14 days. The daily decision dimensions are 6, and the complete decision dimensions are... .

[0090] Each decision variable takes a value within ±20% of the historical reference control value for the corresponding day of the optimization period; variables with a reference value of zero, wells not in production, wells shut down, or mismatched well types are fixed at zero; the amplitude adjustment coefficient for adjacent days... Set the value to 0.3. When any adjacent value of the reference trajectory is lower than 1.0, no amplitude adjustment constraint is applied for that adjacent time period.

[0091] The multi-objective evolutionary algorithm is the third-generation non-dominated sorting genetic algorithm NSGA-III. Within the normalized objective space, it maintains the convergence and distribution diversity of the Pareto non-dominated solution set through non-dominated sorting, individual-reference point association, and niche selection. Multiple candidate injection and sampling schemes of the same generation are batched and input into the GAT-LSTM surrogate model for parallel evaluation.

[0092] The positive over-limit quantities that violate the adjustment range are normalized and summed to form the total constraint violation quantity of the solution. The NSGA-III environment selection adopts a feasibility-first strategy, prioritizing feasible solutions over infeasible solutions, and retaining the solution with the smaller constraint violation quantity between two infeasible solutions.

[0093] See also Figure 9 As shown, the NSGA-III population size is 120, the maximum number of iterations is 300, and the target number is... Reference point division parameters The number of reference points is: ; Offspring are generated through selection, crossover, and mutation. After merging with the parent generation, non-dominated ranking, objective normalization, individual-reference point association, and niche selection are performed sequentially to achieve elite preservation. When the Pareto front improvement is less than... Furthermore, the evaluation process is terminated early if no significant improvement is observed after 50 consecutive checks. Each generation consists of 120 candidate solutions, which are evaluated using a single GAT-LSTM forward propagation on a graphics processor. 300 generations correspond to 36,000 equivalent individual evaluations, but only about 300 batch forward inferences are performed.

[0094] The following table shows the optimization parameters for the target injection and extraction process:

[0095] Schemes A, B, and C are representative injection-production schemes corresponding to the maximum cumulative oil production, minimum cumulative water production, and minimum cumulative water injection, respectively; Scheme D is an equally weighted Chebyshev comprehensive compromise injection-production scheme. The normalized objective vector of Scheme D is (0.4752, 0.4731, 0.3474), corresponding to the minimum weighted Chebyshev evaluation value in the Pareto solution set, indicating that it does not significantly favor a single objective and achieves a relatively balanced compromise between increasing oil production, controlling water production, and conserving water. The evaluation results of the GAT-LSTM surrogate model are shown in the table below. The distribution of the three-objective Pareto front and the four representative schemes in the normalized three-dimensional objective space and pairwise objective projections are shown in the table below. Figure 10 As shown.

[0096]

[0097] Option A maintains a high production level in production wells and strengthens water injection in the later stages to achieve maximum oil production, but water production increases simultaneously; Option B reduces the production volume and water injection intensity of most production wells, reflecting a tendency to control water production; Option C further reduces the overall water injection volume and maintains a high production volume in some production wells to improve water injection utilization efficiency; Option D's control range is between the extreme options, the production system of production wells is relatively stable, and water production is basically stable through the time-series division of labor between the two water injection wells.

[0098] All four schemes maintained the liquid production of A17 production role at zero, with its water injection mainly concentrated in the early stage of optimization and gradually reduced to zero; S23-5-A5 undertook the main water injection task in the later stage, and increased the water injection intensity on the 11th to 14th control days, indicating that the optimization results formed a phased and differentiated water injection control method.

[0099] Option A represents the maximum cumulative oil production boundary achievable under the current constraints, with the engineering cost being a simultaneous increase in cumulative water production; Option B represents the maximum water control boundary, where water production decreases while oil production also decreases; Option C represents the minimum cumulative water injection boundary, reflecting the effect of reducing ineffective water injection and reallocating timing; Option D is used to control the maximum deviation among the three normalized objectives.

[0100] In the equally weighted Chebyshev evaluation, "equal weight" means that the three normalized deviations have the same importance; it does not require that the percentage changes in cumulative oil production, cumulative water production, and cumulative water injection relative to the baseline scheme be equal. The augmented term in the evaluation formula is used to prioritize the scheme with the smaller sum of the three deviations when the maximum deviations are the same or close.

[0101] Compared with the local curvature knee point identification of three-dimensional surfaces, the comprehensive scheme selection in this embodiment does not rely on neighborhood point density and curvature calculation, and can repeatedly obtain the same scheme when inputting the same Pareto solution set and the same normalization rule.

[0102] The following table shows the goal orientation and control characteristics of the four types of schemes:

[0103] Finally, the four representative schemes are re-entered into the crude oil reservoir numerical model mentioned in step S100 for recalculation. The evaluation results of the GAT-LSTM surrogate model are verified based on the cumulative oil production deviation and cumulative water production deviation, and the target injection-production scheme is determined from the verified four schemes. The comparison of cumulative production between the GAT-LSTM surrogate model prediction and the numerical simulation recalculation is shown in the table:

[0104] The relative deviations of the proxy predictions for cumulative oil and water production for all four schemes were less than 4%, and the target characteristics and relative ranking remained consistent. The optimization results after numerical simulation recalculation are shown in the table below:

[0105] After numerical simulation and recalculation, Scheme D achieves increased oil production by 1.35% and decreased cumulative water injection by 10.39% under the condition that the cumulative water production only increases by 0.14%, thus realizing increased oil production and water conservation under the condition of basically stable water production. Schemes A, B, and C maintain the characteristics of schemes with maximum oil production increase, maximum water control, and maximum water conservation, respectively.

[0106] The GAT-LSTM surrogate model slightly underestimated the cumulative oil production of all four schemes and slightly overestimated the cumulative water production, but it did not change the objective orientation or relative ranking of schemes A, B, C, and D. This unidirectional bias can be identified during the numerical recalculation process and does not affect the surrogate model's ability to quickly and relatively evaluate candidate schemes during the evolutionary search phase.

[0107] The recalculation verification used the same crude oil reservoir numerical model generated as the training sample. The original reference control trajectory was replaced with the water injection and fluid production of the representative scheme 14 days well by well. Other geological models, fluid parameters and initial states remained unchanged, so that the prediction and numerical simulation results of the GAT-LSTM surrogate model had the same control conditions.

[0108] Figure 11 The complete data stream is shown, which involves selecting four representative schemes from the Pareto solution set, recalculating the numerical model of the crude oil reservoir, determining the target scheme, and outputting the control sequences of injection wells and production wells.

[0109] Meanwhile, the present invention provides a water-drive reservoir production dynamic prediction and injection-production optimization system, comprising: The injection and production data acquisition module is used to acquire historical injection and production data of physical wells in the water-drive reservoir of the study area. The physical wells correspond to the roles of water injection wells or production wells at different development stages. The topology mask module is communicatively connected to the injection and production data acquisition module. It is used to construct a directed injection and production bipartite graph with the roles of injection wells and production wells as connection nodes, and to generate an injection and production topology mask based on the inter-well relationships in the directed injection and production bipartite graph. The connectivity coefficient module is communicatively connected to the topology mask module. It is used to process the historical injection and mining production data using a graph attention network, and in the process of processing, it combines the injection and mining topology mask to obtain window-level dynamic connectivity coefficients. The fusion module, which is communicatively connected to the connectivity coefficient module, is used to fuse the node features of the injection well role and the production well role based on the window-level dynamic connectivity coefficient to obtain historical injection-production fusion features. The prediction module, communicatively connected to the fusion module, is used to generate predicted oil production and predicted water production for each production well in a future target time period based on the historical injection-production fusion characteristics using a long short-term memory encoder and decoder; and The scheme search module is communicatively connected to the prediction module and is used to obtain the cumulative water injection volume based on the daily water injection volume of each injection well in the future target period. Under the constraint of injection and production, the multi-objective evolutionary algorithm is used to search for injection and production schemes according to the optimization objectives constructed by the predicted oil production, the predicted water production, and the cumulative water injection volume, to obtain the Pareto non-dominated solution set, and to determine the target injection and production scheme from the Pareto non-dominated solution set.

[0110] Specifically, this embodiment corresponds one-to-one with the above method embodiments. The functions of each module have been described in detail in the corresponding method embodiments, so they will not be repeated here.

[0111] In summary, the beneficial effects of the present invention are as follows: 1. This invention couples well location, well status, and injection-production data with the graph attention algorithm. By jointly constraining the dynamic connectivity coefficient through water injection activity and reservoir engineering topology priors, the algorithm's processing objects, output results, and reservoir development control process have a clear technical correspondence.

[0112] 2. This invention utilizes dynamic connectivity coefficients to directionally aggregate the spatial characteristics of relevant water injection wells to production wells. While preserving the historical dynamics of the production wells themselves, it introduces external water injection effects, improves the interpretability of multi-well production dynamic prediction, and can characterize the correlation weight adjustments caused by well type conversion and changes in injection and production systems.

[0113] 3. This invention explicitly inputs the known future water injection volume and liquid production volume into the long short-term memory decoder, and outputs the oil production volume and water production volume at multiple future times at one time, avoiding the accumulation of errors caused by step-by-step extrapolation.

[0114] 4. This invention uses Huber loss and injection-production response constraint loss for joint training, which maintains the accuracy of production prediction while subjecting the dynamic connectivity coefficient and time series weight to the actual water injection volume-production volume response relationship.

[0115] 5. This invention employs hard boundaries, soft amplitude adjustment constraints, and feasibility-first selection to keep the optimization scheme near the training distribution of the surrogate model and meet the requirements of well state and control continuity.

[0116] 6. This invention evaluates candidate schemes in batches using a proxy model, reducing the number of times reservoir numerical simulators are called in multi-objective evolutionary search; it simultaneously preserves different technical orientations of increasing oil production, controlling water, and saving water through Pareto solution sets, and obtains comprehensive schemes with clear screening criteria using a weighted Chebyshev scalarization method.

[0117] 7. This invention adopts a dataset grouping method based on complete simulation cases, and misaligns the historical control window, historical response window, and future control window to avoid cross-dataset leakage between adjacent windows of the same case and to prevent the predicted actual response at the start time from entering the model input.

[0118] 8. This invention, through physical well-role node mapping and well state zero-locking mechanism, can uniformly handle state changes such as non-production, shut-in, resumption of production, and production wells converted to water injection wells, so that the graph structure and future control sequence maintain a fixed dimension throughout the research period.

[0119] 9. This invention applies the injection-production topology mask after attention extraction without changing the original GAT message propagation graph. On the one hand, it preserves the graph attention network's ability to learn information about all heterogeneous well nodes, and on the other hand, it uses reservoir engineering geometric priors to filter out unreasonable window-level associations.

[0120] 10. This invention performs multi-step prediction performance evaluation on a test set divided according to complete simulation examples, and performs numerical model recalculation of the representative scheme for crude oil reservoirs after optimization, forming a reliability verification process of "surrogate model test evaluation - Pareto scheme screening - numerical recalculation".

[0121] 11. The output of this invention includes not only the cumulative target value, but also the sequence of water injection and production volume for each well and each control time, which facilitates the conversion of optimization results into production system adjustment parameters.

[0122] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements all or part of the method steps of the above method.

[0123] The present invention can implement all or part of the processes in the above methods, or it can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0124] Based on the same inventive concept, embodiments of this application also provide an electronic device, including a memory and a processor. The memory stores a computer program that runs on the processor. When the processor executes the computer program, it implements all or part of the method steps described above.

[0125] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the computer device, connecting all parts of the computer device through various interfaces and lines.

[0126] Memory can be used to store computer programs and / or modules. The processor performs various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can primarily include a program storage area and a data storage area. The program storage area can store the operating system and application programs required for at least one function (e.g., sound playback, image playback, etc.); the data storage area can store data created based on mobile usage (e.g., audio data, video data, etc.). Furthermore, memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD cards), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.

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

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

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

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

[0131] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for predicting the dynamic production of water-drive oil reservoirs and optimizing injection and production, characterized in that, include: Historical injection and production data of physical wells in the water-drive reservoir of the study area were obtained, and the physical wells were identified as either water injection wells or production wells at different development stages. Construct a directed injection-production bipartite graph with injection well roles and production well roles as connection nodes, and generate an injection-production topology mask based on the inter-well relationships in the directed injection-production bipartite graph; The historical injection and mining production data are processed using a graph attention network, and the injection and mining topology mask is combined during the processing to obtain window-level dynamic connectivity coefficients. Based on the window-level dynamic connectivity coefficient, the node characteristics of the injection well role and the production well role are fused to obtain historical injection-production fusion characteristics. Based on the historical injection-production fusion characteristics, the long short-term memory encoder and decoder generate the predicted oil production and water production of each production well in the future target period. Obtain the cumulative water injection volume based on the daily water injection volume of each injection well during a future target time period; Under the constraints of injection and production, a multi-objective evolutionary algorithm is used to search for injection and production schemes based on the optimization objectives constructed by the predicted oil production, the predicted water production, and the cumulative water injection, to obtain a Pareto non-dominated solution set, and to determine the target injection and production scheme from the Pareto non-dominated solution set.

2. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The bidirectional edges in the directed injection-production bipartite graph are constructed between different types of well roles, and the edge attributes of the bidirectional edges are shown in the following formula: In the formula, For water injection wells and production wells The original edge weights are formed by the reciprocal of the three-dimensional Euclidean distance between them; For source nodes Edge attributes after normalization of all outgoing edges; and They are water injection wells and production wells 3D coordinates; For the source node The out-neighboring region; It is a numerically stable term; For the source node Its out-neighboring nodes The original edge weights between them; The generation of the injection-production topology mask based on the well relationships in the directed injection-production bipartite graph includes: The connection search radius of each well is determined based on the shortest distance from each well to the other wells in the directional injection-production dual-part diagram; Obtain well pairs connected within the search radius of each well connection and established according to the distance between wells; perform angle pruning on the triangles formed by the well pairs connected according to a preset angle threshold. The connections between injection well role nodes and production well role nodes are extracted from the pruned directed injection-production bipartite graph to form an injection-production topology mask.

3. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The process of using a graph attention network to process the historical injection and acquisition production data, and combining the injection and acquisition topology mask during the processing, yields window-level dynamic connectivity coefficients, including: The historical injection and production data includes the node characteristics of the injection well role and the node characteristics of the production well role; wherein, the node characteristics of the injection well role are [injection volume, 0, 0], and the node characteristics of the production well role are [liquid production volume, oil production volume, water production volume]; The historical injection and production data are processed using a graph attention network to obtain the node spatial characteristics at each historical moment and the hourly attention coefficients from the injection well role to the production well role. The hourly attention coefficients are weighted and aggregated based on the water injection activity within the historical window. During the aggregation process, the injection-production topology mask is applied and normalized along the water injection well dimension to obtain the window-level dynamic connectivity coefficients. The window-level dynamic connectivity coefficient is shown in the following formula: Among them, the weighted aggregation result In the formula, For water injection wells For production wells Window-level dynamic connectivity coefficients; For water injection wells At a historical moment The amount of water injected; For water injection wells Pointing to production well The time-to-time attention coefficient; For topological masking; For water injection wells At a historical moment Time weighting of water injection activity; It is a numerically stable term; The length of the history window; For time indexes within the history window; Index for roles in water injection wells.

4. The method for predicting the dynamic production of water-drive oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The method for fusing the node features of injection well roles and production well roles based on the window-level dynamic connectivity coefficient to obtain historical injection-production fusion features is shown in the following formula: In the formula, To be at a historical moment Production wells Historical characteristics of injection and extraction integration; For water injection wells For production wells Window-level dynamic connectivity coefficients; For a historic moment Production wells Corresponding water injection impact characteristics; Number of roles in the water injection well; and Each of these is a historical moment Water injection well and production wells Spatial features obtained through graph attention networks; The linear mapping matrix of the fusion layer; This is the bias vector for the fusion layer.

5. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The process of generating predicted oil and water production for each production well in a future target time period using a long short-term memory encoder and decoder based on the historical injection-production fusion characteristics includes: The historical injection-production fusion features of all production wells at the same historical moment are flattened and projected onto a unified hidden space to form the input historical sequence of the long short-term memory encoder. The long short-term memory encoder encodes the input historical sequence to obtain the final hidden state and memory state. The long short-term memory decoder is initialized with the final hidden state and memory state of the long short-term memory encoder. The long short-term memory decoder generates hidden features for the future target time period based on the decoder input, and generates the predicted oil production and predicted water production of each production well through the oil production prediction branch and the water production prediction branch, respectively. The input to the Long Short-Term Memory decoder is as follows: In the formula, For the future The input to the Long Short-Term Memory decoder at each time step; For the future Learnable query embeddings for each time step; For the future The control vector consists of the water injection volume of each injection well and the liquid production volume of each production well at each time step; The linear projection matrix of the future control vector; For the corresponding bias vector; For predicting length.

6. The method for predicting the dynamic production of water-drive oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The graph attention network, long short-term memory encoder, and decoder are jointly trained using the injection-sampling response constraint loss function and the production dynamic prediction loss function constructed with Huber loss. The injection-procurement response constraint loss function As shown in the following formula: In the formula, For a historic moment Learning-based temporal weights; For a historic moment Normalized time position within the historical window; For the sample Medium-sized water injection well Effective water injection volume after time-series weighted aggregation; For water injection wells At a historical moment Normalized water injection volume; For the sample Medium production well Produced liquid response based on dynamic connectivity coefficient estimation; For production wells Learnable positive amplitude factor; Number of roles in the water injection well; For the sample Medium-sized water injection well For production wells The dynamic connectivity coefficient; For use in generating Learnable parameters; The sample set consists of production wells that are in effective production and have effective water injection during historical windows; For production wells The yield in the training set was extremely poor; For sample index; For the sample Medium production well The actual liquid production; It is a numerically stable term.

7. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in claim 1, characterized in that, The process involves obtaining the cumulative water injection volume based on the daily water injection volume of each injection well during a future target time period; under injection-production constraints, using a multi-objective evolutionary algorithm to search for injection-production schemes based on the optimization objectives constructed from the predicted oil production, the predicted water production, and the cumulative water injection volume, obtaining a Pareto non-dominated solution set, and determining the target injection-production scheme from the Pareto non-dominated solution set, including: Obtain candidate injection and production schemes composed of the daily water injection volume of each injection well and the daily liquid production volume of each production well in the future target period, and obtain the cumulative water injection volume based on the daily water injection volume of each injection well; Based on the predicted oil production and predicted water production of each production well in the future target period, the cumulative oil production and cumulative water production corresponding to the candidate injection and production scheme are obtained. Under the constraints of injection and production, a multi-objective evolutionary algorithm is used to search for injection and production schemes with the optimization objectives of maximizing the cumulative oil production, minimizing the cumulative water production, and minimizing the cumulative water injection, so as to obtain the Pareto non-dominated solution set. In the Pareto nondominated solution set, the injection-production scheme with the maximum cumulative oil production, the injection-production scheme with the minimum cumulative water production, and the injection-production scheme with the minimum cumulative water injection are determined, and the normalized deviation is calculated for each injection-production scheme in the Pareto nondominated solution set. The Chebyshev evaluation value is calculated by weighting the deviation calculation results, and the injection and production scheme corresponding to the minimum evaluation value is determined as the compromise injection and production scheme. Based on the injection and production scheme with the maximum cumulative oil production, the injection and production scheme with the minimum cumulative water production, the injection and production scheme with the minimum cumulative water injection, and the compromise injection and production scheme, the target injection and production scheme is obtained.

8. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in any one of claims 1 and 7, characterized in that, The optimization objective is shown in the following formula: ; In the formula, Candidate injection and extraction schemes Corresponding cumulative oil production; Candidate injection and extraction schemes Corresponding cumulative water production; Candidate injection scheme The corresponding cumulative water injection volume; and Each of the future Production wells at each time step Predicted oil production and predicted water production; For the future Each time step water injection well Candidate water injection volume; To optimize the start time; For prediction time step index; For predicted length; The feasible region is defined by the single-well control boundary, well operating status, and adjustment range constraints. Number of roles in production wells; Number of roles in the water injection well; For the future The duration of each time step.

9. The method for predicting the dynamic production of water-driven oil reservoirs and optimizing injection and production as described in claim 7, characterized in that, The method for calculating the normalized deviation of each injection and production scheme is shown in the following formula: In the formula, , , For the first Normalized bias of the Pareto scheme on the three targets of cumulative oil production, cumulative water production, and cumulative water injection; and These represent the maximum and minimum cumulative oil production values ​​in the Pareto solution set, respectively. For the first Cumulative oil production of the Pareto program; and These represent the maximum and minimum cumulative water production in the Pareto solution set, respectively; For the first Cumulative water production of the Pareto program; and These represent the maximum and minimum cumulative water injection volumes in the Pareto solution set, respectively. For the first The cumulative water injection volume of each Pareto scheme; For Pareto scheme index; It is a numerically stable term; The method for weighted calculation of the Chebyshev evaluation value based on the deviation calculation results is shown in the following formula: In the formula, For the first Weighted Chebyshev scores for each Pareto scheme; For the first The weights of the normalization objective, , and These correspond to the cumulative oil production, cumulative water production, and cumulative water injection targets, respectively. For the first The Pareto scheme in the ... Normalization bias on each objective; For target index; This is the coefficient for the augmented term.

10. A system for predicting the dynamic production of water-drive oil reservoirs and optimizing injection and production, characterized in that, include: The injection and production data acquisition module is used to acquire historical injection and production data of physical wells in the water-drive reservoir of the study area. The physical wells correspond to the roles of water injection wells or production wells at different development stages. The topology mask module is communicatively connected to the injection and production data acquisition module. It is used to construct a directed injection and production bipartite graph with the roles of injection wells and production wells as connection nodes, and to generate an injection and production topology mask based on the inter-well relationships in the directed injection and production bipartite graph. The connectivity coefficient module is communicatively connected to the topology mask module. It is used to process the historical injection and mining production data using a graph attention network, and in the process of processing, it combines the injection and mining topology mask to obtain window-level dynamic connectivity coefficients. The fusion module, which is communicatively connected to the connectivity coefficient module, is used to fuse the node features of the injection well role and the production well role based on the window-level dynamic connectivity coefficient to obtain historical injection-production fusion features. The prediction module, which is communicatively connected to the fusion module, is used to generate the predicted oil production and predicted water production of each production well in the future target period based on the historical injection-production fusion characteristics using a long short-term memory encoder and decoder. as well as, The scheme search module is communicatively connected to the prediction module and is used to obtain the cumulative water injection volume based on the daily water injection volume of each injection well in the future target period. Under the constraint of injection and production, the multi-objective evolutionary algorithm is used to search for injection and production schemes according to the optimization objectives constructed by the predicted oil production, the predicted water production, and the cumulative water injection volume, to obtain the Pareto non-dominated solution set, and to determine the target injection and production scheme from the Pareto non-dominated solution set.