A method for predicting well connectivity based on knowledge interaction graph neural network

By building a graph structure in the oilfield well network and embedding the material balance equation, a knowledge interaction graph neural network model is constructed, which solves the existing problems of long time consumption and insufficient accuracy in predicting inter-well connectivity, and achieves accurate prediction and accuracy of inter-well connectivity. Interpretability, suitable for practical applications in complex reservoirs.

CN118296975BActive Publication Date: 2024-08-23CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410727440.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing inter-well connectivity prediction methods are time-consuming and insufficient in accuracy in oil field development. Physical models are difficult to apply to complex reservoirs. Machine learning model parameters cannot be explained, making it difficult to put them into practical applications.

Method used

Using a method based on knowledge interactive graph neural network, by building a well network graph structure, embedding material balance equations, integrating artificial neural networks with seepage physics knowledge, building a knowledge interactive graph neural network model, learning the physical consistency injection and production dependencies, and realizing Accurate prediction of well-to-well connectivity.

Benefits of technology

This method can accurately invert the underground channels of oil reservoirs, provide model explanations that are consistent with actual oil field development, and has good adaptability and interpretability. It overcomes the shortcomings of existing technologies that are difficult to take into account the comprehensive effects of multiple factors, and saves manpower and time costs. , to guide oil field development and productivity assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296975B
    Figure CN118296975B
Patent Text Reader

Abstract

The present invention discloses a well-to-well connectivity prediction method based on a knowledge interaction graph neural network, which belongs to the field of petroleum engineering and includes the following steps: step 1, obtaining geological data and production dynamic data, pre-processing the data and dividing the data set; step 2, constructing a knowledge interaction graph neural network model; step 3, using the production dynamic data of the target well network to train the model, and based on the trained knowledge interaction graph neural network model, performing connectivity prediction analysis; step 4, using the test set data to check the generalization ability of the model; step 5, real-time acquisition of geological data and production dynamic data of the current oil reservoir block to be predicted, normalization processing and input into the knowledge interaction graph neural network model for training, and according to the trained model, the well-to-well connectivity coefficient is obtained, thereby predicting the well-to-well connectivity. The present invention can accurately invert the underground channel of the oil reservoir, and then accurately predict the well-to-well connectivity during the oil reservoir development process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of petroleum engineering, and in particular relates to a method for predicting inter-well connectivity based on a knowledge interaction graph neural network. Background Art

[0002] The contradiction between injection and production is the core problem that needs to be solved in oilfield development and production. In actual development, the well network of oilfields is complex and the number of oil and water wells is large. Conventional methods and existing reservoir models are time-consuming and inaccurate when interpreting connectivity. There is a wealth of data accumulation in the process of oilfield development. Considering the characteristics of multiple effective directions of water drive, rapid changes in injection and production associations, and strong multi-solutions of dynamic analysis, the use of big data technology can discover the implicit relationships in massive data, and can efficiently mine the inherent relationships of a large amount of real-time injection and production data, reducing the uncertainty in dynamic analysis. Therefore, it is necessary to establish corresponding big data analysis methods to mine the implicit injection and production relationships in massive data.

[0003] At present, the methods for predicting well connectivity are mainly divided into two categories: physical model methods and machine learning methods. Among them, the model parameters in the physical model method based on material balance have exact physical meanings, but they cannot be used for complex reservoirs that are not clearly understood; although the machine learning model has strong learning ability, the parameters in the model cannot be explained and are difficult to be put into actual oilfield applications; therefore, these two methods need to be combined. At the same time, in order to ensure that the model can reflect the physical consistency between the injection and production data and the model parameters, knowledge interaction must be incorporated into the modeling to reflect the corresponding seepage mechanism. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes a well-to-well connectivity prediction method based on a knowledge interaction graph neural network. A graph structure is constructed according to the well network structure in the actual development of the oil field, so that the graph structure and the well network form a one-to-one correspondence, and the artificial neural network is integrated with the seepage physics knowledge by embedding the material balance equation. The reservoir knowledge, that is, the actual physical meaning of the reservoir flow mechanism, is added to the model, which enables the network to learn the physically consistent injection-production dependency, more accurately invert the underground channels of the reservoir, and further accurately predict the well-to-well connectivity during the reservoir development process.

[0005] The technical solution of the present invention is as follows:

[0006] A method for predicting well connectivity based on knowledge interaction graph neural network includes the following steps:

[0007] Step 1: Obtain geological data and production dynamic data, normalize the data and divide the data set;

[0008] Step 2: Build a graph structure based on the well network structure, integrate the geological information of the well network into the graph structure, embed the material balance equation, and construct a knowledge interaction graph neural network model that conforms to the law of reservoir development;

[0009] Step 3: Use the production dynamic data of the target well network to train the model, and perform connectivity prediction analysis based on the trained knowledge interaction graph neural network model;

[0010] Step 4: Use the test set data to check the generalization ability of the model;

[0011] Step 5: Real-time acquisition of geological data and production dynamic data of the current oil reservoir block to be predicted, normalization processing and input into the knowledge interaction graph neural network model for training, and the well connectivity coefficient is obtained according to the trained knowledge interaction graph neural network model, so as to predict the well connectivity.

[0012] Furthermore, the specific process of step 1 is as follows:

[0013] Step 1.1, obtaining geological data reflecting well network information required for constructing a graph structure of the oil reservoir block to be predicted, wherein the geological data specifically includes the number of injection wells, the number of production wells, and the distance between each well point;

[0014] Step 1.2, obtaining the production dynamic data of the target well network required for training the knowledge interaction graph neural network model, the production dynamic data specifically including the injection volume and injection pressure of all injection wells at different times and the liquid production and bottom hole flow pressure of all production wells at different times;

[0015] Step 1.3: Normalize the collected geological data and production dynamic data samples so that the values ​​are mapped to [0,1]. The conversion function is as follows:

[0016] (1);

[0017] In the formula, is a data sample; for Normalized value; and Respectively represent the minimum and maximum values ​​in the data sample set;

[0018] Step 1.4, the normalized geological data and production dynamic data constitute a data set as a standard sample set of the knowledge interaction graph neural network model;

[0019] Step 1.5: Divide the standard sample set into a training validation set and a test set in a ratio of 8:2.

[0020] Furthermore, the specific process of step 2 is as follows:

[0021] Step 2.1, abstract the well network into a graph, build a graph structure according to the well network structure, integrate the geological information of the well network into the graph structure so that the two form a one-to-one correspondence; based on the geological data and production dynamic data of the target well network, establish a graph neural network model that uses different nodes to represent each production well and each water injection well; wherein the nodes are each production well and each water injection well; when the node represents a production well, the characteristics of the node are the liquid production and bottom hole pressure of the production well, and when the node represents a water injection well, the characteristics of the node are the water injection volume and injection pressure of the water injection well; the edges of the graph neural network model are used for the distance between a well point and other well points;

[0022] The well network information corresponds to the graph structure one by one, and the information transmission mechanism is used to simulate the fluid interaction process between wells. The hidden state of the node is periodically updated by the following function:

[0023] (2);

[0024] In the formula, For Node exist The state vector at the moment; For Node The set of neighbor nodes of Is a node Neighbor nodes of is the update function; , , Node Characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term; is the eigenvector of the edge, i.e. the adjacency matrix; , , Neighbor nodes Characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term; Neighbor node exist The state vector at the moment; Is a node The loss function introduced by the reservoir material balance equation;

[0025] Step 2.2, by introducing the material balance equation as the learning criterion and obtaining the objective function from the learning criterion, the actual physical meaning is given to each part of the model, so as to update the model parameters within the framework of the reservoir flow mechanism;

[0026] The material balance equation is:

[0027] (3);

[0028] In the formula, Indexing production wells; Indexing of injection wells; is the total number of injection wells; For the Production well and Total compressibility of water injection wells; For the Production well and The rock pore volume of the injection wells; for Moment The liquid production rate of the production well; For the Production well and The inter-well connectivity coefficient of water injection wells; for Moment The injection rate of the injection well;

[0029] The objective function is:

[0030] (4);

[0031] In the formula, is the loss function of the reservoir model as a whole; For the The control volume fluid volume change rate term for each well group; For the The production rate term for each well group; For the The inflow rate term for each well group; is the total number of well groups.

[0032] Furthermore, in step 2, the constructed knowledge interaction graph neural network model is divided into a structure section and a training section. The structure section reflects the basic model structure of the knowledge interaction graph neural network, and the training section reflects the specific training process based on the material balance equation. The structure section integrates the objective function of the global material balance of the reservoir. Enter the training section under the guidance of , so as to conduct model training;

[0033] In the structure section, the water injection rate, bottom hole flow pressure, liquid production rate and water injection pressure production dynamic data form a time series in chronological order and are input into the graph structure constructed by the well network structure as the initial node signal of each node. The initial node signal of each node is classified based on the material balance equation. The classified node signals respectively simulate the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation;

[0034] In the training section, the node signals of the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation are simulated after classification. Under the guidance of the objective function, they are divided into three modules: injection regulation module, control volume module and liquid production monitoring module for training. After the training, the liquid production rate and bottom hole flow pressure are output in the liquid production monitoring module, and the adjacency matrix is ​​output in the injection regulation module to obtain the predicted well-to-well connectivity coefficient.

[0035] Furthermore, the specific process of step 3 is as follows:

[0036] Step 3.1: Use the production dynamic data of the target well network to train the model, and divide the production dynamic data into a training validation set and a test set in a ratio of 8:2; perform a five-fold cross-validation on the data in the training validation set; the five-fold cross-validation process is as follows: randomly divide the training validation set into five subsets of equal size, four of which are used for training the model, and the remaining subset is used for validation; repeat the five-fold cross-validation process five times, each time selecting a different subset for validation, and the rest as the training set; finally, take the average of the five performance evaluation results to obtain the final evaluation result;

[0037] Step 3.2: Use the objective function in step 2 to perform gradient updates on the parameters in the knowledge interaction graph neural network and calculate the error until the error meets the requirements;

[0038] Step 3.3: After the model training is completed, the adjacency matrix injected into the adjustment module in the knowledge interaction graph neural network model is output to obtain the well connectivity coefficient and perform well connectivity prediction analysis; the adjacency matrix is ​​a A matrix in which each row represents a production well and each column represents an injection well; is the total number of producing wells; is the total number of injection wells; the elements in the matrix For the Production well and The inter-well connectivity coefficient between the injection wells is The larger the value of , the better the connectivity between the corresponding production well and the injection well; , ; The output adjacency matrix is ​​expressed as:

[0039] (5);

[0040] In the formula, is the adjacency matrix of the knowledge interaction graph neural network model; For the Production well and The inter-well connectivity coefficient between the injection wells;

[0041] Step 3.4: Based on the adjacency matrix obtained in step 3.3, draw a connectivity evaluation heat map.

[0042] Furthermore, the specific process of step 4 is: based on the network model trained in step 3, use the test set data to replace the training validation set data, and recalculate the network error according to the loss function; if the test set error and the training validation set error are both small, it means that the network has good generalization ability; if the training validation set error is small and the test set error is large, it means that the network has overfitting, and it is necessary to return to step 3 and retrain the network model.

[0043] Furthermore, in step 5, after the normalized real-time data is input into the trained knowledge interaction graph neural network model, the liquid production and bottom hole pressure of each production well will be output in real time, and the adjacency matrix in the model will be output at the same time. The value in the adjacency matrix is ​​the inter-well connectivity coefficient.

[0044] The beneficial technical effects brought about by the present invention are as follows.

[0045] The present invention builds a graph structure according to the well network structure of the oil field, so that the graph structure and the well network form a one-to-one correspondence, ensuring that the model can reflect the physical process of reservoir seepage in space, and then the inversion process of the model is consistent with the actual development process of the oil field. Specifically, the graph network is constructed with each production well and injection well as a node, and geological data such as well spacing as edge information, so that the well network information and the graph structure are in one-to-one correspondence, ensuring that the model can accurately invert the underground channel of the oil reservoir, and then accurately predict and analyze the connectivity between the injection and production wells.

[0046] The machine learning prediction method for well connectivity based on knowledge interaction graph neural network is accurate and practical. Compared with the physical model method based on material balance, it has good adaptability and can process big data; compared with the general machine learning model, it combines the seepage mechanism to make the model parameters interpretable and have a definite physical meaning, which can meet the needs of practical applications. Specifically, based on the material balance equation, the present invention integrates theoretical knowledge into the machine learning process, prompts the network to learn the physically consistent injection-production dependency, integrates intelligent methods with reservoir physical models to construct a graph neural network machine learning model with physical meaning, which can accurately invert the underground channels of the reservoir, characterize the complex connectivity between injection and production wells, and provide a model interpretation that conforms to the actual reservoir development.

[0047] The trained knowledge interaction graph neural network can not only calculate and judge the connectivity between injection and production wells, but also dynamically predict the production signals such as the production rate and water content of the oil wells based on the mapping relationship of the injection and production signals. While ensuring the calculation accuracy, it is closer to the actual dynamic law of oil field development, overcoming the shortcomings of the existing technology that it is difficult to take into account the comprehensive influence of multiple factors. It has important guiding significance for the formulation and adjustment of development plans on the oil field site, the adoption of injection and production optimization, water plugging and profile adjustment and other process measures, which greatly saves manpower and time costs. At the same time, it also provides an indispensable data basis for the dynamic description of oil field development and production capacity evaluation, which is helpful to realize intelligent injection and production in oil fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a flow chart of the well connectivity prediction method based on the knowledge interaction graph neural network of the present invention.

[0049] Figure 2 It is a structural diagram of the knowledge interaction graph neural network model of the present invention.

[0050] Figure 3 It is a simplified diagram of the network model corresponding to the well network of the oil reservoir block to be predicted in the embodiment of the present invention.

[0051] Figure 4 It is a connectivity evaluation heat map in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0053] The present invention first collects production data of each water injection well and oil production well at the oil field site, and then obtains and divides the data set of the knowledge interaction graph neural network model by normalizing the original injection and production data; then builds the knowledge interaction graph neural network model, introduces the material balance equation as the loss function, and gives actual physical meaning to each part of the model, so as to update the model parameters within the framework of the reservoir flow mechanism; finally, the connectivity between wells is quantitatively characterized based on the adjacency matrix of the trained knowledge interaction graph neural network model.

[0054] like Figure 1 As shown, a method for predicting well connectivity based on knowledge interaction graph neural network includes the following steps:

[0055] Step 1: Obtain the geological data reflecting the well network information required to build the graph structure and the production dynamic data required to train the knowledge interaction graph neural network model, normalize the data and divide the data set; the specific process is as follows:

[0056] Step 1.1, obtain the geological data reflecting the well network information required for constructing the graph structure of the oil reservoir block to be predicted, and the geological data specifically includes the number of injection wells, the number of production wells, the distance between each well point, etc.

[0057] Step 1.2, obtain the production dynamic data of the target well network required for training the knowledge interaction graph neural network model. The production dynamic data specifically includes the injection volume and injection pressure of all injection wells at different times and the liquid production and bottom hole flow pressure of all production wells at different times.

[0058] Step 1.3: Normalize the collected geological data and production dynamic data samples so that the values ​​are mapped to [0,1]. The conversion function is as follows:

[0059] (1);

[0060] In the formula, is a data sample; for Normalized value; and Respectively represent the minimum and maximum values ​​in the data sample set.

[0061] Step 1.4, the normalized geological data and production dynamic data constitute a data set as a standard sample set of the knowledge interaction graph neural network model;

[0062] Step 1.5: Divide the standard sample set into a training validation set and a test set in a ratio of 8:2.

[0063] Step 2: Build a graph structure based on the well network structure, integrate the geological information of the well network into the graph structure to make the two form a one-to-one correspondence, and embed the material balance equation in the model to build a knowledge interaction graph neural network model that conforms to the law of reservoir development; the specific process is as follows:

[0064] Step 2.1, abstract the well network into a graph, build a graph structure according to the well network structure, and integrate the geological information of the well network into the graph structure so that the two form a one-to-one correspondence. Based on the geological data and production dynamic data of the target well network, establish a graph neural network model that uses different nodes to represent each production well and each water injection well; wherein the nodes are each production well and each water injection well; when the node represents a production well, the characteristics of the node are the production dynamic data such as the liquid production and bottom hole pressure of the production well; when the node represents a water injection well, the characteristics of the node are the production dynamic data such as the water injection volume and injection pressure of the water injection well; the edges of the graph neural network model are used for the distance between a well point and other well points.

[0065] The well network information corresponds to the graph structure one by one, and the information transmission mechanism is used to simulate the fluid interaction process between wells. The hidden state of the node is periodically updated by the following function:

[0066] (2);

[0067] In the formula, For Node exist The state vector at the moment; For Node The set of neighbor nodes of Is a node Neighbor nodes of is the update function; , , Node Characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term; is the eigenvector of the edge, i.e. the adjacency matrix; , , Neighbor nodes Characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term; Neighbor node exist The state vector at the moment; Is a node The loss function introduced by the reservoir material balance equation;

[0068] Specifically, production dynamic data such as liquid production, bottom hole flow pressure or water injection volume, injection pressure, etc. are used as node features of nodes, and the distance between different well points is used as edge features.

[0069] Step 2.2, by introducing the material balance equation as the learning criterion and obtaining the objective function from the learning criterion, the actual physical meaning is given to each part of the model, so as to update the model parameters within the framework of the reservoir flow mechanism;

[0070] Specifically, based on the material balance equation, by simplifying the reservoir into a connected body with a certain volume, a modular neural network model is constructed, the injection-production dynamic relationship between each well group is analyzed, and the corresponding material balance equation is established:

[0071] (3);

[0072] In the formula, Indexing production wells; Indexing of injection wells; is the total number of injection wells; For the Production well and Total compressibility of water injection wells; For the Production well and The rock pore volume of the injection wells; for Moment The liquid production rate of the production well; For the Production well and The inter-well connectivity coefficient of water injection wells; for Moment The injection rate of the water injection well; It is expressed as the rate of change term of the volume of the control volume fluid; It is expressed as the inflow rate term; the material balance equation can be expressed as the control volume fluid volume change rate term + liquid production rate term - inflow rate term = 0.

[0073] The material balance equation between the above well groups in the reservoir can be extended to the material balance equation of the entire reservoir in the model, and the loss function of the reservoir model as a whole is obtained, that is, the objective function of the model is:

[0074] (4);

[0075] In the formula, is the loss function of the reservoir model as a whole; For the The control volume fluid volume change rate term for each well group; For the The production rate term for each well group; For the The inflow rate term for each well group; is the total number of well groups.

[0076] In order to ensure that the model can reflect the physical consistency between the injection and production data and the model parameters, the theoretical knowledge is integrated into the machine learning process, the corresponding seepage mechanism is reflected in the modeling, and the network is prompted to learn the physical consistency injection and production dependency. Therefore, based on the material balance equation, the intelligent method is integrated with the reservoir physical model to construct a knowledge interaction graph neural network model with physical meaning, such as Figure 2 As shown in the figure, the model is divided into a structural section and a training section. The structural section reflects the basic model structure of the knowledge interaction graph neural network, and the training section reflects the specific training process based on the material balance equation. The structural section integrates the objective function of the global material balance of the reservoir. Under the guidance of , the training section is entered to conduct model training. Specifically, the production dynamic data such as water injection rate, bottom hole flow pressure, liquid production rate and water injection pressure in the structure section form a time series in chronological order and are input into the graph structure built by the well network structure as the initial node signal of each node. The initial node signal of each node is classified based on the material balance equation. The classified node signals respectively simulate the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation. In the training section, the material balance equation of the control volume fluid volume change rate term + liquid production rate term - inflow rate term = 0 in formula (3) can be evolved into the inflow rate term = control volume fluid volume change rate term + liquid production rate term. Therefore, corresponding to the node signals of the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation after classification, the model is divided into three modules, namely the injection regulation module, the control volume module and the liquid production monitoring module, for training under the guidance of the objective function. After the training, the liquid production rate and bottom hole pressure can be output in the liquid production monitoring module, and the adjacency matrix can also be output in the injection regulation module to obtain the predicted well-to-well connectivity coefficient.

[0077] Step 3: Use the production dynamic data of the target well network to train the model, and perform connectivity prediction analysis based on the trained knowledge interaction graph neural network model; the specific process is as follows:

[0078] Step 3.1: Use the production dynamic data of the target well network for model training, and divide the production dynamic data into a training validation set and a test set in a ratio of 8:2; perform five-fold cross-validation on the data in the training validation set. The process of five-fold cross-validation is: randomly divide the training validation set into five subsets of equal size, four of which are used for training the model, and the remaining subset is used for validation. Repeat the five-fold cross-validation process five times, each time selecting a different subset for validation, and the rest as the training set. Finally, take the average of the five performance evaluation results to obtain the final evaluation result. Keep the model with the highest accuracy, screen out the hyperparameters of the final model, and the five-fold cross-validation method can prevent overfitting problems.

[0079] Step 3.2: Use the objective function in step 2 to perform gradient updates on the parameters in the knowledge interaction graph neural network and calculate the error until the error meets the requirements.

[0080] Step 3.3: After the model training is completed, the adjacency matrix injected into the adjustment module in the knowledge interaction graph neural network model is output. This value can represent the well connectivity coefficient, so that the well connectivity prediction analysis can be performed; the adjacency matrix is ​​a A matrix in which each row represents a production well and each column represents an injection well; is the total number of producing wells; is the total number of injection wells; the elements in the matrix The corresponding value is Production well and The inter-well connectivity coefficient between the injection wells is The larger the value of , the better the connectivity between the corresponding production well and the injection well; , ; The output adjacency matrix is ​​expressed as:

[0081] (5);

[0082] In the formula, is the adjacency matrix of the knowledge interaction graph neural network model; For the Production well and The inter-well connectivity coefficient between the injection wells;

[0083] Step 3.4: Based on the adjacency matrix obtained in step 3.3, draw a connectivity evaluation heat map.

[0084] Step 4: Use the test set data to check the generalization ability of the model. Based on the network model trained in step 3, use the test set data to replace the training validation set data, and recalculate the network error according to the loss function. If the test set error and the training validation set error are both small, it means that the network has good generalization ability; if the training validation set error is small and the test set error is large, it means that the network is overfitting, and it is necessary to return to step 3 and retrain the network model.

[0085] Step 5: Real-time acquisition of geological data and production dynamic data of the current oil reservoir block to be predicted, normalization processing and input into the knowledge interaction graph neural network model for training. According to the trained knowledge interaction graph neural network model, real-time output of production dynamic data such as liquid production and bottom hole pressure of each production well is performed. At the same time, the adjacency matrix in the model is output. The value in the adjacency matrix is ​​the well-to-well connectivity coefficient, so as to predict the well-to-well connectivity.

[0086] In order to demonstrate the feasibility and superiority of the present invention, the following examples are given.

[0087] In the embodiment of the present invention, the oil reservoir block to be predicted is composed of 70×70×20 orthogonal grids, with a total number of 98,000 cells. A four-injection and five-production well network model is established for the oil reservoir block to be predicted. The four injection wells are named I1, I2, I3, and I4; the five production wells are named P1, P2, P3, P4, and P5. The well network model is simplified according to the permeability field, so that a simplified network model diagram that can reflect the permeability field and the well network structure can be obtained, as shown in FIG. Figure 3As shown, there are channels with a permeability of 1000md between I4-P3, I1-P2 and I2-P4, so there are three thickened high-permeability channels, and the permeability of the remaining grids is 30md. Only oil-water two-phase flow is simulated in the reservoir, and the oil wells are all produced at a constant pressure. The production dynamic data specifically include the injection volume and injection pressure of the four injection wells I1, I2, I3, and I4 at different times, and the liquid production and bottom hole flow pressure of the five production wells P1, P2, P3, P4, and P5 at different times. Based on the training of steps 1 to 3 above, the knowledge interaction graph neural network model is obtained, and the adjacency matrix in the injection regulation module is used as the predicted injection-production connectivity evaluation index. The results are shown in Table 1; the adjacency matrix is ​​specifically a 5×4 matrix, that is , Based on the adjacency matrix, the connectivity evaluation heat map is drawn as follows Figure 4 As shown, Figure 4 The darker the color of the middle block, the larger the corresponding connectivity value, indicating that the connectivity relationship between the corresponding injection and production wells is stronger. Figure 4 The corresponding results are shown in Table 1:

[0088] Table 1 Quantitative evaluation results of injection-production connectivity;

[0089] .

[0090] from Figure 4 As can be seen from Table 1, the water injection well I4 and the production well P3 have the strongest connectivity, and their well connectivity coefficient reaches 0.886. Figure 3 From the simplified permeability field distribution, we can see that I4-P3, I1-P2 and I2-P4 are located on the main high permeability channels (1000md), and the permeability between the remaining injection and production wells (30md) is much lower than these three channels. Figure 4 I4-P3, I1-P2 and I2-P4 in the figure accurately reflect the strong connectivity between the three pairs of injection and production wells, and the connectivity analysis results of the remaining weakly connected well groups are very small, which is consistent with the permeability field distribution. The above connectivity prediction analysis result diagram shows that the knowledge interaction graph neural network can accurately invert and predict the connectivity between injection and production wells, with high credibility.

[0091] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for predicting well connectivity based on knowledge interaction graph neural network, characterized in that: The steps include: Step 1: Obtain geological data and production dynamic data, normalize the data and divide the data set; Step 2: Build a graph structure based on the well network structure, integrate the geological information of the well network into the graph structure, embed the material balance equation, and construct a knowledge interaction graph neural network model that conforms to the law of reservoir development; The specific process of step 2 is: Step 2.1, abstract the well network into a graph, build a graph structure according to the well network structure, integrate the geological information of the well network into the graph structure so that the two form a one-to-one correspondence; based on the geological data and production dynamic data of the target well network, establish a graph neural network model that uses different nodes to represent each production well and each water injection well; wherein the nodes are each production well and each water injection well; when the node represents a production well, the characteristics of the node are the liquid production and bottom hole pressure of the production well, and when the node represents a water injection well, the characteristics of the node are the water injection volume and injection pressure of the water injection well; the edges of the graph neural network model are used for the distance between a well point and other well points; The well network information corresponds to the graph structure one by one, and the information transmission mechanism is used to simulate the fluid interaction process between wells. The hidden state of the node is periodically updated by the following function: In the formula, is the state vector of node v at time t; N(v) is the set of neighbor nodes of node v; u is the neighbor node of node v; f(·) is the update function; V v , Q v ,I v are the characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term of node v respectively; is the eigenvector of the edge, i.e. the adjacency matrix; V u , Q u ,I u are the characteristic vectors of the control volume fluid volume change rate term, liquid production rate term, and inflow rate term of the neighbor node u respectively; is the state vector of neighbor node u at time t-1; L v is the loss function of node v introduced by the reservoir material balance equation; Step 2.2, by introducing the material balance equation as the learning criterion and obtaining the objective function from the learning criterion, the actual physical meaning is given to each part of the model, so as to update the model parameters within the framework of the reservoir flow mechanism; The material balance equation is: In the formula, k is the production well index; j is the injection well index; is the total number of injection wells; C tkj is the total compression coefficient of the kth production well and the jth injection well; V pkj is the rock pore volume of the kth production well and the jth injection well; q k (t) is the liquid production rate of the kth production well at time t; kj is the well connectivity coefficient between the kth production well and the jth injection well; i j (t) is the injection rate of the jth injection well at time t; The objective function is: Where F is the loss function of the reservoir model as a whole; V i is the control volume fluid volume change rate term of the i-th well group; Q i is the liquid production rate term of the i-th well group; I i is the inflow rate term of the i-th well group; is the total number of well groups; Step 3: Use the production dynamic data of the target well network to train the model, and perform connectivity prediction analysis based on the trained knowledge interaction graph neural network model; Step 4: Use the test set data to check the generalization ability of the model; Step 5: Acquire the geological data and production dynamic data of the current oil reservoir block to be predicted in real time, input the data into the knowledge interaction graph neural network model for training after normalization, and obtain the inter-well connectivity coefficient based on the trained knowledge interaction graph neural network model to predict the inter-well connectivity.

2. The well connectivity prediction method based on knowledge interaction graph neural network according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1.1, obtaining geological data reflecting well network information required for constructing a graph structure of the oil reservoir block to be predicted, wherein the geological data specifically includes the number of injection wells, the number of production wells, and the distance between each well point; Step 1.2, obtaining the production dynamic data of the target well network required for training the knowledge interaction graph neural network model, the production dynamic data specifically including the injection volume and injection pressure of all injection wells at different times and the liquid production and bottom hole flow pressure of all production wells at different times; Step 1.3: Normalize the collected geological data and production dynamic data samples so that the values ​​are mapped to [0,1]. The conversion function is as follows: X * =(X-X min ) / (X-X max ) (1); In the formula, X is the data sample; X * is the normalized value of X; min and X max Respectively represent the minimum and maximum values ​​in the data sample set; Step 1.4, the normalized geological data and production dynamic data constitute a data set as a standard sample set of the knowledge interaction graph neural network model; Step 1.5: Divide the standard sample set into a training validation set and a test set in a ratio of 8:

2.

3. The well connectivity prediction method based on knowledge interaction graph neural network according to claim 1 is characterized in that: In the step 2, the constructed knowledge interaction graph neural network model is divided into a structure section and a training section. The structure section reflects the basic model structure constructed by the knowledge interaction graph neural network, and the training section reflects the specific training process based on the material balance equation. The structure section enters the training section under the guidance of the objective function F that integrates the global material balance of the reservoir, thereby performing model training; In the structure section, the water injection rate, bottom hole flow pressure, liquid production rate and water injection pressure production dynamic data form a time series in chronological order and are input into the graph structure constructed by the well network structure as the initial node signal of each node. The initial node signal of each node is classified based on the material balance equation. The classified node signals respectively simulate the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation; In the training section, the node signals of the inflow rate term, the control volume fluid volume change rate term and the liquid production rate term of the material balance equation are simulated after classification. Under the guidance of the objective function, they are divided into three modules: injection regulation module, control volume module and liquid production monitoring module for training. After the training, the liquid production rate and bottom hole flow pressure are output in the liquid production monitoring module, and the adjacency matrix is ​​output in the injection regulation module to obtain the predicted well-to-well connectivity coefficient.

4. The well connectivity prediction method based on knowledge interaction graph neural network according to claim 1 is characterized in that: The specific process of step 3 is as follows: Step 3.1: Use the production dynamic data of the target well network to train the model, and divide the production dynamic data into a training validation set and a test set in a ratio of 8:2; perform a five-fold cross-validation on the data in the training validation set; the five-fold cross-validation process is as follows: randomly divide the training validation set into five subsets of equal size, four of which are used for training the model, and the remaining subset is used for validation; repeat the five-fold cross-validation process five times, each time selecting a different subset for validation, and the rest as the training set; finally, take the average of the five performance evaluation results to obtain the final evaluation result; Step 3.2: Use the objective function in step 2 to perform gradient updates on the parameters in the knowledge interaction graph neural network and calculate the error until the error meets the requirements; Step 3.3: After the model training is completed, the adjacency matrix injected into the adjustment module in the knowledge interaction graph neural network model is output to obtain the well connectivity coefficient and perform well connectivity prediction analysis; the adjacency matrix is ​​a A matrix in which each row represents a production well and each column represents an injection well; is the total number of producing wells; is the total number of injection wells; the element λ in the matrix kj is the well connectivity coefficient between the kth production well and the jth injection well, The larger the value of , the better the connectivity between the corresponding production well and the injection well; The output adjacency matrix is ​​expressed as: In the formula, is the adjacency matrix of the knowledge interaction graph neural network model; For the Production well and The inter-well connectivity coefficient between the injection wells; Step 3.4: Based on the adjacency matrix obtained in step 3.3, draw a connectivity evaluation heat map.

5. The well connectivity prediction method based on knowledge interaction graph neural network according to claim 4 is characterized in that: The specific process of step 4 is: based on the network model trained in step 3, use the test set data to replace the training validation set data, and recalculate the network error according to the loss function; if the test set error and the training validation set error are both small, it means that the network has good generalization ability; if the training validation set error is small and the test set error is large, it means that the network is overfitted, and it is necessary to return to step 3 and retrain the network model.

6. The well connectivity prediction method based on knowledge interaction graph neural network according to claim 5 is characterized in that: In step 5, after the normalized real-time data is input into the trained knowledge interaction graph neural network model, the liquid production and bottom hole pressure of each production well will be output in real time, and the adjacency matrix in the model will be output at the same time. The value in the adjacency matrix is ​​the well-to-well connectivity coefficient.