Dynamic production splitting method for multi-layer commingled production reservoirs based on domain generalization machine learning

Through the method based on domain generalization machine learning, the problems of uneven production distribution and data uncertainty in multi-layer commingled production reservoirs are solved, and accurate modeling and production prediction of dynamic and static parameters of the oil field system are achieved, improving the model The robustness and adaptability avoid dependence on a single parameter.

CN118378724BActive Publication Date: 2024-10-15QINGDAO UNIV OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410824435.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-15
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

During the development process of multi-layer commingled production reservoirs, the production distribution is uneven due to interlayer interference and data uncertainty. The traditional production splitting method is difficult to accurately predict dynamic changes, and over-reliance on the KH splitting value ignores the influence of other important parameters.

Method used

A multi-layer commingled production reservoir dynamic production splitting method based on domain generalization machine learning is adopted. By obtaining reservoir spatiotemporal data, constructing a spatiotemporal relationship graph data structure, and building a machine learning model oriented to domain generalization robust learning, including spatiotemporal relationships The learning module, robust learning module and bias correction estimation module use spectral domain graph convolutional neural network and long short-term memory neural network to model spatiotemporal relationships, and improve model robustness through noise and disturbance processing.

Benefits of technology

It improves the accuracy and reliability of yield prediction, reduces the bias caused by differences in data distribution, enhances the robustness and domain generalization capabilities of the model, avoids over-reliance on a single parameter, and improves the robustness of the prediction results. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378724B_ABST
    Figure CN118378724B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-layer commingled production reservoir dynamic production splitting method based on domain generalization machine learning, which belongs to the field of petroleum engineering and includes the following steps: step 1, obtaining reservoir spatiotemporal data and performing data preprocessing to construct a sample library of spatiotemporal relationship graph data structure; step 2, building a multi-layer commingled production reservoir dynamic production splitting machine learning model for domain generalization robust learning; step 3, adding noise and disturbance to increase data uncertainty and initialize model parameters; step 4, training the model and adjusting the model parameters to achieve model domain generalization; step 5, using test set data to check the model generalization ability and evaluate the model performance. The present invention can accurately predict the production distribution and dynamic changes of multi-layer commingled production reservoirs, thereby providing reliable support and guidance for production management and optimization of oil fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of petroleum engineering, and in particular relates to a multi-layer commingled production reservoir dynamic production splitting method based on domain generalization machine learning. Background Art

[0002] Oil well production splitting plays a key role in the detailed description and development of multi-layer commingled production reservoirs. Affected by the differences in reservoir physical properties between layers, multi-layer commingled production reservoirs have serious inter-layer interference during development, and the degree of inter-layer production varies greatly, resulting in uneven production distribution of each oil layer in the reservoir, affecting the release of oil well production capacity and overall production efficiency. Therefore, formulating a scientific and reasonable production splitting scheme is crucial to improving the production efficiency of dynamic development of multi-layer heterogeneous reservoirs.

[0003] Traditional methods for oil well production splitting mainly include formation coefficient method, catastrophe theory method and numerical simulation method. The formation coefficient method estimates oil well production by statistical analysis of geological parameters and production parameters. However, the determination of formation coefficient usually relies on some assumptions, and for complex oilfield systems, formation coefficient cannot accurately reflect the true situation of the formation. The catastrophe theory method describes the changes in oil well production through catastrophe theory. However, in practical applications, the parameter estimation of catastrophe theory usually requires a large amount of data, and often has high requirements for data, and is more sensitive to data noise and uncertainty. The numerical simulation method simulates the changes in oil well production by establishing complex geological models and fluid dynamics models. Although the numerical simulation method can take into account more influencing factors and can better describe the complexity of the oilfield system, its calculation amount is large, model parameter estimation and model verification require a lot of time and resources, and the parameterization process of the model may introduce additional data uncertainty.

[0004] Multi-layer commingled oil reservoir oilfield systems usually have complex spatiotemporal structures, and the data involve geological parameters, fluid production parameters, and production dynamic parameters. The complex spatiotemporal relationship between these dynamic and static parameters has an important impact on the production distribution and dynamic changes of each small layer of the oil well; because multi-layer commingled oil reservoirs are located in different geographical locations, there are significant differences in the data distribution in each region, which increases the uncertainty of the data; the KH production splitting value is a key parameter for measuring the pore space of the formation and represents an indicator of the formation's production potential, but the KH value under different geological conditions also has significant differences, resulting in traditional models over-relying on this parameter and ignoring the influence of other important parameters. In summary, the traditional production splitting method faces huge challenges in dealing with the complex spatiotemporal structure of dynamic and static parameters, data uncertainty, and over-reliance on the KH splitting value. Summary of the invention

[0005] In order to solve the problems of complex spatiotemporal structure of dynamic and static parameters, data uncertainty and over-reliance on KH splitting values ​​in dynamic production prediction of multi-layer commingled production reservoirs, the present invention proposes a dynamic production splitting method for multi-layer commingled production reservoirs based on domain generalized machine learning, which can accurately predict the production distribution and dynamic changes of multi-layer commingled production reservoirs, thereby providing reliable support and guidance for production management and optimization of oil fields.

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

[0007] A method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning comprises the following steps:

[0008] Step 1: Obtain reservoir spatiotemporal data and perform data preprocessing to build a sample library of spatiotemporal relationship graph data structure;

[0009] Step 2: Build a machine learning model for dynamic production splitting of multi-layer commingled oil reservoirs for domain generalization robust learning;

[0010] Step 3: Add noise and disturbance to increase data uncertainty and initialize model parameters;

[0011] Step 4: Train the model and adjust the model parameters to achieve model domain generalization;

[0012] Step 5: Use the test set data to check the model generalization ability and evaluate the model performance.

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

[0014] Step 1.1, obtaining reservoir spatiotemporal data, which includes geological parameters, fluid production parameters, production dynamic parameters, and measurement time;

[0015] Step 1.2: Preprocess the reservoir spatiotemporal data and calculate the KH splitting value; the preprocessing includes data cleaning and data normalization. The KH splitting value calculation formula is:

[0016] (1);

[0017] in, is the KH split value; It indicates the effective permeability of the formation; is the effective thickness of the formation;

[0018] Step 1.3, analyze the main controlling factors of the preprocessed data, retain the characteristic attribute factors with strong correlation with porosity, permeability, effective thickness, and daily liquid production, and construct a high-quality spatiotemporal data item table;

[0019] Step 1.4: Convert the data in the established high-quality spatiotemporal data item table into a spatiotemporal relationship graph data structure ;in, is the set of all nodes in the graph data structure, For the nodes; For the moment The set of edges of ; For the moment The adjacency matrix of

[0020] Each well is a vertex of the graph, each small layer is a node of the graph, and the connection between each well and its corresponding small layer is an edge of the graph; according to the connection relationship between the edges of the nodes, an adjacency matrix is ​​constructed. To describe the topological structure of the graph; adjacency matrix It is a matrix that describes the connection relationship between nodes in the graph. Each element in the matrix indicates whether there is an edge connection between two nodes. The elements in the matrix are assigned values ​​according to whether there is an edge connection between the two nodes. and nodes If there is an edge connection between them, then the adjacency matrix Elements or The value of is 1, otherwise it is 0;

[0021] Construct a feature matrix based on the features contained in the graph nodes , as shown below:

[0022] (2);

[0023] in, Indicates the number of nodes; Represents feature dimension; is the feature matrix The node Dimension elements; the specific contents of the elements are characteristic attribute factors with strong correlation with the porosity, permeability, effective thickness and daily liquid production after pretreatment in step 1.3.

[0024] Furthermore, in the step 2, the multi-layer commingled reservoir dynamic production splitting machine learning model for domain generalization robust learning includes a spatiotemporal relationship learning module, a robust learning module and a bias correction estimation module;

[0025] The spatiotemporal relationship learning module is further divided into a spatial learning module and a temporal learning module. The two-layer spectral domain graph convolutional neural network in the spatial learning module converts the feature representation of the nodes in the spatiotemporal relationship graph data structure into a frequency domain representation in the spectral domain through Fourier transform. In the spectral domain, the feature representation of each node is a linear combination of frequency components. After the convolution operation is performed on the graph signal in the spectral domain, the node feature representation in the spectral domain is converted back to the spatial domain through inverse Fourier transform. The specific formula is as follows:

[0026] (3);

[0027] (4);

[0028] in, The output of the Fourier transform of the graph is used to convert the graph signal in the spatial domain into the frequency domain; The output of the inverse Fourier transform is used to convert the signal in the frequency domain back to the spatial domain; is a collection of node features; The matrix representing the eigenvectors of the normalized graph Laplacian; is the transpose symbol;

[0029] The graph convolution operation of the spectral domain graph convolutional neural network is defined as:

[0030] (5);

[0031] (6);

[0032] in, is the graph convolution kernel; Represents the convolution operation; is the graph convolution kernel represented in the frequency domain;

[0033] Will Approximation by truncated expansion of the Chevshcherby polynomial:

[0034] (7);

[0035] (8);

[0036] in, is the normalized graph Laplacian, is the graph Laplacian matrix, yes The maximum eigenvalue of is the identity matrix; It is the graph signal processed by two layers of spectral domain graph convolutional neural network; represents the order of Chebyshev polynomial; is the total number of orders of Chebyshev polynomials used to approximate the graph filter; represents the Chebyshev coefficient vector; for Chebyshev polynomial of order.

[0037] Furthermore, the graph signal processed by the two-layer spectral domain graph convolutional neural network As an input of a time step, it is transmitted to the long short-term memory neural network in the time learning module for processing; the long short-term memory neural network will gradually update its internal state and memory units according to the time order of the sequence data, and generate the corresponding output sequence; the long short-term memory neural network model has three gates, namely the forget gate, input gate and output gate; the forget gate controls the selective forgetting of information in the memory state; the forget gate formula is:

[0038] (9);

[0039] in, For the The activation value of the forget gate at time steps; is the sigmoid function; is the weight matrix; For the The hidden state of time steps; For the time step input; is the bias term of the forget gate;

[0040] The input gate determines which information is added to the memory cell state as new memory; the input gate formula is as follows:

[0041] (10);

[0042] (11);

[0043] (12);

[0044] in, For the The input gate activation value at time steps; is the weight of the input gate; is the bias term of the input gate; For the Candidate cell states for time steps; is the tanh function; is the weight matrix of the memory unit; is the bias term of the memory unit; For the The memory cell state at time steps; For the The memory cell state at time steps;

[0045] The output gate finally outputs the required memory; the formula of the output gate is:

[0046] (13);

[0047] (14);

[0048] in, For the The activation value of the output gate at time steps; is the weight matrix of the output gate; is the bias term of the output gate; is the output sequence of the spatiotemporal relationship module.

[0049] Furthermore, the robust learning module is composed of the generated noise-added, perturbed uncertainty data, and the output sequence of the spatiotemporal relationship module. and loss function; by generating noise and disturbing uncertainty data, the randomness and uncertainty in the data are simulated; the output sequence of the spatiotemporal relationship module is measured by the distribution-based Wasserstein distance , generated noise, disturbance data The probability distribution difference between them, the Wasserstein distance formula between them is:

[0050] (15);

[0051] in, is the output result of the robust learning module, indicating and Wasserstein distance between them; for The infimum of is a joint distribution; Indicates that all and The collection of connected joint distributions; for The support set of for The support set of yes and The distance function between yes and The joint distribution of

[0052] The bias correction estimation module is composed of the output of the robust learning module , KH splitting value and linear regression model; the results of learning the characteristics of geological conditions, fluid production parameters and production dynamic parameters by using the linear regression model to establish a robust learning module The linear relationship between the KH split value;

[0053] (16);

[0054] in, for The changes in the extent of the impact; is the intercept;

[0055] (17);

[0056] in, is the bias-corrected estimate of the KH split value;

[0057] Finally Input to the fully connected layer to get the prediction result.

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

[0059] Step 3.1, in the robust learning module, add a value of a random number from a Gaussian distribution to each original data point to introduce noise data, and amplify and reduce part of the original data to add perturbation data;

[0060] Step 3.2: Before the model training starts, the parameters of the model are initialized using the He initialization method; the He initialization formula is as follows:

[0061] (18);

[0062] in, is the weight matrix to be initialized; is a normal distribution; For the The number of neurons in a layer.

[0063] Furthermore, the specific process of step 4 is as follows:

[0064] Step 4.1: Based on the spatiotemporal relationship graph data structure converted in step 1.4, use ten-fold cross validation to divide the sample set into a training set and a test set; divide the sample library into subsets of similar size, one of which is selected as the test set, and the rest A subset is used as the training set;

[0065] Step 4.2, set the number of Chevshcherby polynomial terms, the number of hidden layers, input and output parameters and learning rate, and divide the training set obtained by ten-fold cross validation in step 1.4 into small batches, input one batch of data into the model for training each time; repeat the batch training process until the predetermined number of iterations is reached;

[0066] Step 4.3, training model; in the model training cycle, first use the spectral domain graph neural network and long short-term memory neural network in the spatiotemporal relationship learning module to learn the temporal and spatial dependencies between the dynamic and static parameters of the multi-layer commingled oil reservoir; the robust learning module minimizes the Wasserstein distance between the noise and disturbance uncertainty data added to the model and the data distribution output by the spatiotemporal relationship learning module; for this purpose, the loss function based on the distribution of Wasserstein distance is set to:

[0067] (19);

[0068] in, is the generator, generating the same distribution as the real data Similar data distribution; is a discriminator, used to distinguish between real data and perturbed uncertainty data; is the Wasserstein distance; is the distribution of real data; is the distribution of uncertain data;

[0069] Step 4.4, tune the model hyperparameters; use the particle swarm optimization algorithm to tune the number of hidden layers, the number of Chevshev polynomial terms, and the learning rate of the multi-layer commingled reservoir dynamic production splitting machine learning model for domain generalization robust learning; using the particle swarm optimization algorithm for hyperparameter tuning, it is necessary to first initialize the particle swarm, and each particle represents a combination of hyperparameters, including the number of hidden layers, the number of Chebyshev polynomial terms, and the learning rate; randomly initialize the hyperparameter value and speed of the particle and set the range of the parameter, and use the mean square error MSE as the fitness function to evaluate the fitness of each particle on the training set; finally, perform iterative update to reach the maximum number of iterations; the update formula for updating the speed and position of each particle is as follows:

[0070] (20);

[0071] (twenty one);

[0072] in, For particles In the The speed at the iteration; For particles In the The position at the iteration; It is a particle In the The speed at the iteration; It is a particle In the The position at the iteration; is the inertia weight; and All are learning factors; and All are random numbers between [0,1]; It is a particle The best position in history; is the global optimal position;

[0073] After multiple iterations, the hyperparameter combination corresponding to the global optimal position is output;

[0074] Step 4.5, save the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalization robust learning with the parameters adjusted in step 4.4.

[0075] Furthermore, the specific process of step 5 is as follows:

[0076] Step 5.1, input the test set data into the multi-layer commingled production reservoir dynamic production splitting machine learning model for domain generalization robust learning saved in step 4.5, and predict the production splitting results of the test set data of the multi-layer commingled production reservoir;

[0077] Step 5.2: Use evaluation indicators to measure the generalization ability of the model. Use multi-model evaluation indicators to measure the generalization ability of the model. The evaluation indicators include root mean square error and mean absolute error. According to step 3.3, in each batch, calculate the root mean square error and mean absolute error until the predetermined number of iterations is reached. After the number of iterations is reached, take the average of the root mean square error and mean absolute error obtained in each iteration. The smaller the value of the root mean square error and mean absolute error, the better the prediction performance of the model and the smaller the error.

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

[0079] The present invention uses spectral domain graph neural network and long short-term memory neural network to model the spatiotemporal relationship between geological parameters, fluid production parameters and production dynamic parameters, which can better capture the complexity and dynamics between dynamic and static parameters of the oilfield system and improve the accuracy and reliability of production prediction.

[0080] The robust learning module in the model of the present invention can minimize the loss on the target distribution, so that it can still maintain good prediction performance when facing data distribution in different fields. It can alleviate the deviation drift caused by the difference in data distribution in different fields, reduce the impact of data distribution offset, make the model tolerant to data uncertainty, improve its adaptability to data in different fields, and make the model more robust and capable of field generalization.

[0081] The present invention uses a linear regression model to establish a linear relationship between the dynamic and static parameter characteristic values ​​and the KH splitting value, calculates the difference between the linear regression model prediction value and the actual KH splitting value, and subtracts the difference to achieve correction of the KH splitting value. The deviation correction estimation of the KH splitting value can eliminate the excessive dependence on the KH splitting value in the model prediction process, and no longer over-depends on a single parameter, thereby improving the accuracy and robustness of the prediction results and enhancing the robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 It is a flow chart of the method for dynamic production splitting of multi-layer combined production reservoirs based on domain generalized machine learning of the present invention.

[0083] Figure 2 This is a simplified diagram of the spatiotemporal relationship graph data structure of the present invention.

[0084] Figure 3 This is a structural diagram of the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalization robust learning in the present invention.

[0085] Figure 4 It is a MAE curve diagram in an embodiment of the present invention.

[0086] Figure 5 This is a training loss curve diagram in an embodiment of the present invention.

[0087] Figure 6 It is a RMSE curve diagram in an embodiment of the present invention.

[0088] Figure 7 It is the R2 curve diagram in the embodiment of the present invention.

[0089] Figure 8 This is a diagram showing the prediction results of production splitting of each layer in the A1 well of the block using the multi-layer commingled oil reservoir dynamic production splitting machine learning model for domain generalized robust learning in an embodiment of the present invention.

[0090] Fig. 9 This is a diagram showing the production splitting prediction results of each layer of the ASII well in the block using the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalized robust learning in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0092] The present invention provides a multi-layer commingled production reservoir dynamic production splitting method based on domain generalization machine learning. First, the collected dynamic and static parameters are preprocessed and the KH splitting value is calculated. The preprocessed data is converted into a spatiotemporal graph data structure according to the time and space relationship, a high-quality spatiotemporal graph structure data sample library is constructed, and a data set is divided by ten-fold cross validation. A multi-layer commingled production reservoir dynamic production splitting machine learning model for domain generalization robust learning is established, and the model includes a spatiotemporal relationship learning module, a robust learning module, and a bias correction estimation module. The spatiotemporal relationship learning module is used to learn the time dependency and spatial dependency of the spatiotemporal graph data structure, and the spatiotemporal data distribution is modeled in combination with the robust learning module to minimize the loss on the target distribution, solve the data uncertainty problem, and enable the model to better adapt to the data distribution in different fields, thereby improving the domain generalization ability of the model. The bias correction estimation module is used to realize the bias correction estimation of the KH splitting value, eliminating the excessive dependence on the KH splitting value in the model prediction process. Finally, the result is input into the fully connected layer to achieve accurate prediction of the multi-layer commingled production reservoir production splitting result.

[0093] A dynamic production splitting method for multi-layer commingled production reservoirs based on domain generalization machine learning. The brief process is as follows: Figure 1 As shown, the specific steps include:

[0094] Step 1: Obtain reservoir spatiotemporal data and perform data preprocessing to build a sample library of spatiotemporal relationship graph data structure; the specific process is as follows:

[0095] Step 1.1, obtain reservoir spatiotemporal data, which includes geological parameters, fluid production parameters, production dynamic parameters, measurement time, etc.;

[0096] Step 1.2: Preprocess the reservoir spatiotemporal data and calculate the KH splitting value; the preprocessing includes data cleaning and data normalization. The KH splitting value calculation formula is:

[0097] (1);

[0098] in, is the KH split value; It indicates the effective permeability of the formation, which represents the permeability of the formation to crude oil; is the effective thickness of the formation, which indicates the effective thickness of the formation that can be used for fluid storage and flow;

[0099] Step 1.3: Analyze the main controlling factors of the preprocessed data, retain the characteristic attribute factors with strong correlation such as porosity, permeability, effective thickness, daily liquid production, etc., and construct a high-quality spatiotemporal data item table;

[0100] Step 1.4: Convert the data in the established high-quality spatiotemporal data item table into a spatiotemporal relationship graph data structure .in, is the set of all nodes in the graph data structure, For the nodes; For the moment The set of edges of ; For the moment The adjacency matrix of .

[0101] Each well and each small layer are regarded as graph nodes, each well is regarded as a graph vertex connecting the corresponding small layers, and each well and its corresponding small layer have a connection relationship. Therefore, each well is regarded as a vertex of the graph, each small layer is regarded as a graph node, and the connection relationship between each well and its corresponding small layer is regarded as the edge of the graph. According to the connection relationship between the edges of the nodes, the adjacency matrix can be constructed. To describe the topological structure of the graph. It is a matrix that describes the connection relationship between nodes in the graph. Each element in the matrix indicates whether there is an edge connection between two nodes. The elements in the matrix are assigned values ​​according to whether there is an edge connection relationship between the two nodes. and nodes If there is an edge connection between them, then the adjacency matrix Elements or The value is 1, otherwise it is 0. Construct a feature matrix based on the features contained in the graph nodes , as shown below:

[0102] (2);

[0103] in, Indicates the number of nodes, Represents the feature dimension. A feature vector representing a node, each of which contains the attribute information of the node. is the feature matrix The node Dimensional elements, the specific contents of the elements are the characteristic attribute factors with strong correlation such as porosity, permeability, effective thickness, daily liquid production, etc. after pretreatment in step 1.3.

[0104] For example, if Figure 2 As shown, the spatiotemporal relationship graph data structure is constructed , including six nodes numbered 1 to 6. Node 1 is connected to nodes numbered 3 and 6, node 2 is connected to node 3, node 3 is connected to nodes numbered 1, 2, and 4, node 4 is connected to node 3, node 5 is connected to node 6, and node 6 is connected to nodes numbered 1 and 5. Therefore, the row numbers of the six nodes are set to 1123334566, and the column numbers are set to 3631243615. According to the row numbers and column numbers of each node, the connection relationship of each edge is represented as follows: , , , , , , , , , ; The adjacency matrix constructed based on the connection relationship between the edges of the nodes .

[0105] Step 2: Build a machine learning model for dynamic production splitting of multi-layer commingled oil reservoirs for domain generalization robust learning;

[0106] like Figure 3 As shown in the figure, the multi-layer co-production reservoir dynamic production splitting machine learning model for domain generalization robust learning mainly includes a spatiotemporal relationship learning module, a robust learning module and a bias correction estimation module.

[0107] The spatiotemporal relationship learning module is further divided into a spatial learning module and a temporal learning module. The two-layer spectral domain graph convolutional neural network in the spatial learning module converts the feature representation of the nodes in the spatiotemporal relationship graph data structure into a frequency domain representation in the spectral domain through Fourier transform. In the spectral domain, the feature of each node can be represented as a linear combination of frequency components, which can better capture the local and global structural information between nodes. The graph signal is convolved in the spectral domain. After the convolution is completed, the node feature representation in the spectral domain is converted back to the spatial domain through the inverse Fourier transform. The specific formula is as follows:

[0108] (3);

[0109] (4);

[0110] in, The output of the Fourier transform of the graph is used to convert the graph signal in the spatial domain into the frequency domain; The output of the inverse Fourier transform is used to convert the signal in the frequency domain back to the spatial domain; is a collection of node features; The matrix representing the eigenvectors of the normalized graph Laplacian; is the transpose symbol;

[0111] The graph convolution operation of the spectral domain graph convolutional neural network is defined as:

[0112] (5);

[0113] (6);

[0114] in, is the graph convolution kernel; Represents the convolution operation; represents a filter in the spectral domain; is the graph convolution kernel represented in the frequency domain.

[0115] Will Approximation by truncated expansion of the Chevshcherby polynomial:

[0116] (7);

[0117] (8);

[0118] in, is the normalized graph Laplacian, is the graph Laplacian matrix, yes The maximum eigenvalue of is the identity matrix; It is the graph signal processed by two layers of spectral domain graph convolutional neural network; Represents the order of the Chebyshev polynomial, which is an integer starting from 0 and is used to index the polynomial sequence; is the total number of orders of Chebyshev polynomials used to approximate the graph filter; represents the Chebyshev coefficient vector; for Chebyshev polynomial of order.

[0119] Graph signal processed by two layers of spectral domain graph convolutional neural network As an input of a time step, it is transmitted to the long short-term memory neural network LSTM in the time learning module for processing. The long short-term memory neural network will gradually update its internal state and memory units according to the time order of the sequence data, and generate the corresponding output sequence. The long short-term memory neural network model has three gates, namely the forget gate, input gate and output gate. The forget gate controls the selective forgetting of information in the memory state. The forget gate formula is:

[0120] (9);

[0121] in, For the The activation value of the forget gate at time steps; is the sigmoid function; is the weight matrix; For the The hidden state of time steps; For the time step input; is the bias term of the forget gate; the weight matrix right and The concatenated matrices are multiplied and then biased. , put it into the sigmoid function, and get a The memory cell state at time steps A matrix of the same dimension. Each value in the matrix determines whether the corresponding information is forgotten or retained. Figure 3 In It represents the dot product operation in the formula.

[0122] The input gate determines which information is added to the memory cell state as new memory. The input gate formula is as follows:

[0123] (10);

[0124] (11);

[0125] (12);

[0126] in, For the The input gate activation value at time steps; is the weight of the input gate; is the bias term of the input gate; For the Candidate cell states for time steps; is the tanh function; is the weight matrix of the memory unit; is the bias term of the memory unit; For the The memory cell state at time steps; For the The memory cell state at time steps;

[0127] Formula (10) is a linear operation of the input gate to obtain an Matrices of the same dimension Formula (11) constructs a candidate cell state , which saves and The information in and then with The value of is multiplied to determine which memories are useful. 0 represents complete discarding, and 1 represents complete retention. The retained information is added to the new cell state as new memory. Formula (12) is the new cell state after updating. Dot Product represents the old memory after processing, Dot Product Indicates the new memory that needs to be added, which adds up to the new cell state.

[0128] The output gate finally outputs the required memory. The formula of the output gate is:

[0129] (13);

[0130] (14);

[0131] in, For the The activation value of the output gate at time steps; is the weight matrix of the output gate; is the bias term of the output gate; is the output sequence of the spatiotemporal relationship module.

[0132] Formula (13) is obtained using the sigmoid layer , to determine which part of the cell state is output. Formula (14) processes the new cell state through the tanh function, and the dot product , control which part needs to be output. The spatiotemporal relationship learning module learns and outputs the spatiotemporal relationship modeling and learned feature representation of dynamic and static parameters such as geological parameters, fluid production parameters, and production dynamic parameters.

[0133] The robust learning module is composed of the generated noise, perturbation uncertainty data, and the output sequence of the spatiotemporal relationship module. And loss function. By adding noise and disturbing uncertainty data, the randomness and uncertainty in the data are simulated. The output sequence of the spatiotemporal relationship module is measured by the distribution-based Wasserstein distance. , generated noise, disturbance data The probability distribution difference between them, the Wasserstein distance formula between them is:

[0134] (15);

[0135] in, is the output result of the robust learning module, indicating and Wasserstein distance between them; for The infimum of is a joint distribution; Indicates that all and The collection of connected joint distributions; for The support set of for The support set of yes and The distance function between yes and The joint distribution of .

[0136] The bias correction estimation module is composed of the output of the robust learning module , KH splitting value and linear regression model. The results of using the linear regression model to establish a robust learning module to learn the geological conditions, fluid production parameters, production dynamic parameters and other characteristics and the linear relationship between the KH split value.

[0137] (16);

[0138] in, for The changes in the extent of the impact; is the intercept;

[0139] (17);

[0140] The linear regression model is used to calculate the deviation correction result of KH split value as shown in formula (16): The difference between the actual KH split value is then subtracted from the original robust learning module output using formula (17) to obtain the bias-corrected estimate of the KH split value , achieving a bias-corrected estimate of the KH split value.

[0141] Finally The data is input into the fully connected layer to obtain the prediction results, thus realizing the accurate prediction of the production splitting results of multi-layer commingled oil reservoirs.

[0142] Step 3: Add noise and disturbance to increase data uncertainty and initialize model parameters. The specific process is as follows:

[0143] Step 3.1: In the robust learning module, you can add a value of a random number that conforms to the Gaussian distribution to each original data point to introduce noise data, and you can add perturbation data by amplifying and reducing part of the original data. Data uncertainty is added in these two ways.

[0144] Step 3.2: Before the model training begins, use the He initialization method to initialize the model parameters to prevent the model from entering the local optimum too early. The He initialization formula is as follows:

[0145] (18);

[0146] in, is the weight matrix to be initialized; is a normal distribution; For the The number of neurons in a layer.

[0147] Step 4: Train the model and adjust the model parameters to achieve model domain generalization; the specific process is as follows:

[0148] Step 4.1: Based on the spatiotemporal relationship graph data structure converted in step 1.4, use ten-fold cross validation to divide the sample set into a training set and a test set. subsets of similar size, usually Take 10, select one of the subsets as the test set, and the rest A subset is used as the training set.

[0149] Step 4.2: Set the number of Chevshcherby polynomial terms, number of hidden layers, input and output parameters, and learning rate, and divide the training set obtained by ten-fold cross validation in step 1.4 into smaller batches, and input one batch of data into the model for training each time. Repeat the batch training process until the predetermined number of iterations is reached.

[0150] Step 4.3, training model. In the model training cycle, the spectral domain graph neural network and long short-term memory neural network in the spatiotemporal relationship learning module are first used to learn the temporal and spatial dependencies between the dynamic and static parameters of the multi-layer co-production reservoir. The robust learning module minimizes the Wasserstein distance between the noise, disturbance uncertainty data added to the model and the data distribution output by the spatiotemporal relationship learning module. For this purpose, the loss function based on the distribution of Wasserstein distance can be set as:

[0151] (19);

[0152] in, is the generator, generating the same distribution as the real data Similar data distribution; is a discriminator, used to distinguish between real data and perturbed uncertainty data; is the Wasserstein distance; is the distribution of real data; is the distribution of uncertain data. The robust learning module can minimize the worst case under different distributions and return the distance between two data distributions as the loss value, solving the problem of data uncertainty. This enables the model to better adapt to the data distribution under different geological conditions, thereby improving the model's domain generalization ability.

[0153] Step 4.4, tune the model hyperparameters. Use the particle swarm optimization algorithm to tune the number of hidden layers, the number of Chebyshev polynomial terms, and the learning rate hyperparameters of the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalization robust learning. To use the particle swarm optimization algorithm for hyperparameter tuning, you first need to initialize the particle swarm, and each particle represents a combination of hyperparameters, including the number of hidden layers, the number of Chebyshev polynomial terms, and the learning rate. Randomly initialize the hyperparameter value and speed of the particle and set the range of the parameter. Use the mean square error MSE as the fitness function to evaluate the fitness of each particle on the training set. Finally, perform an iterative update to reach the maximum number of iterations. The update formula for updating the speed and position of each particle is as follows:

[0154] (20);

[0155] (twenty one);

[0156] in, For particles In the The speed at the iteration; For particles In the The position at the iteration; It is a particle In the The speed at the iteration; It is a particle In the The position at the iteration; is the inertia weight; and Both are learning factors. and All are random numbers between [0,1]; It is a particle The best location in history. is the global optimal position. After multiple iterations, the hyperparameter combination corresponding to the global optimal position is output;

[0157] Step 4.5, save the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalization robust learning with the parameters adjusted in step 4.4.

[0158] Step 5: Use the test set data to check the model generalization ability and evaluate the model performance; the specific process is as follows:

[0159] Step 5.1, input the test set data into the multi-layer commingled production reservoir dynamic production splitting machine learning model for domain generalization robust learning saved in step 4.5, and predict the production splitting results of the test set data of the multi-layer commingled production reservoir;

[0160] Step 5.2: Use evaluation indicators to measure the generalization ability of the model. Multi-model evaluation indicators are used to measure the generalization ability of the model, including root mean square error (RMSE) and mean absolute error (MAE). According to step 3.3, in each batch, RMSE and MAE are calculated until the predetermined number of iterations is reached. After the number of iterations is reached, the RMSE and MAE obtained in each iteration are averaged. Smaller RMSE and MAE values ​​indicate better prediction performance of the model and smaller error.

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

[0162] This embodiment mainly studies and experiments on the aforementioned multi-layer commingled production reservoir dynamic production splitting method based on domain generalization machine learning and verifies the dynamic prediction effect of this method, aiming to solve the problems of complex spatiotemporal structure of dynamic and static parameters of multi-layer commingled production reservoirs in different blocks, data uncertainty, and excessive dependence on KH splitting values. The model of the present invention is used to accurately predict the production splitting of small layers in multi-layer commingled production reservoirs. The process of the specific embodiment is as follows:

[0163] (1) Obtaining dynamic and static parameters of oil reservoirs in different blocks. The well control production profile results of 6 wells in oil reservoirs in 8 blocks are used as the data of this embodiment. The well control production profile results include well number, test date, sublayer, liquid production, oil production, porosity, permeability, bottom hole pressure, and wellhead pressure.

[0164] (2) Perform data preprocessing and main control factor analysis. Perform data cleaning on the 360 ​​dynamic and static parameters collected and calculate the KH splitting value. Perform main control factor analysis on the preprocessed data, retain characteristic attribute factors with strong correlation with production splitting (such as porosity, permeability, effective thickness, daily liquid production, etc.), and normalize the highly correlated features to construct a high-quality spatiotemporal data item table.

[0165] (3) Construct a spatiotemporal relationship graph data structure. The spatiotemporal data item table data is divided into graphs according to the test time, with each well as the vertex of the graph and each small layer as the graph node. Each graph node contains the selected highly correlated features, and the connection relationship between each well and its corresponding small layer is the edge of the graph. A total of 128 spatiotemporal relationship graph data structures are constructed. .

[0166] (4) Follow the process in step 2 to build a machine learning model for dynamic production splitting of multi-layer co-production reservoirs with domain generalization robust learning.

[0167] (5) Training a multi-layer commingled reservoir dynamic production splitting machine learning model for domain generalization robust learning and saving the model; the specific process is as follows:

[0168] 1) Divide the training set and the test set. Use ten-fold cross validation to randomly divide the data set into a training set and a test set in a ratio of 9:1;

[0169] 2) Set model hyperparameters. Random seed set_random_seed = 100, spectral domain graph convolutional neural network input gcn_input_dim = 15, long short-term memory neural network input lstm_input_dim = 15, hidden layer hidden_dim = 105, model output output_dim = 1, Chevsheff polynomial number num_cheb_poly = 1, dropout rate dropout_rate = 0.1, learning rate lr = 0.001;

[0170] 3) Training model. Input the 115 spatiotemporal graph structure data in the training set into the spatiotemporal relationship learning module of the model. The spatiotemporal relationship learning module contains a two-layer embedded spectral domain graph convolutional neural network to learn the spatial dependence of dynamic and static parameters of the reservoir, and then uses the long short-term memory neural network to learn the temporal dependence of dynamic and static parameters of the reservoir. The output results of the spatial learning module and the noise and disturbance data automatically generated by the robust learning module are modeled using the distribution-based Wasserstein distance to minimize the loss on the target distribution, solve the problem of data uncertainty, and enable the model to better adapt to the data distribution in different fields. The results of the robust learning module are input into the bias correction estimation module to use the linear regression model to learn the linear relationship between the input features and the KH splitting value, calculate the difference between the linear regression model prediction value and the actual KH splitting value, and then subtract this difference from the original robust learning module output to achieve the correction of the KH splitting value. Eliminate excessive dependence on the KH splitting value. Finally, the results of the bias correction estimation module are input into the fully connected layer to achieve multi-layer combined production reservoir production splitting prediction;

[0171] 4) Save the model. In this embodiment, the determination coefficient R2 = 0.96, the scoring index source = 0.89, and thus the model is considered to meet the prediction standard. Finally, save the trained model in the .model file format.

[0172] (6) Use evaluation indicators to measure the generalization ability of the model. Multi-model evaluation indicators, including root mean square error (RMSE) and mean absolute error (MAE), are used to measure the generalization ability of the model. The specific results of the model evaluation indicators are as follows: Figure 4-Figure 7 As shown, Figure 4 is the MAE curve, Figure 5 is the training loss curve, Figure 6 is the RMSE curve, Figure 7 is the R2 curve. Figure 4-Figure 7 It can be seen that all evaluation indicators of the model showed a good improvement trend during the training process. MAE and RMSE gradually decreased, the training loss decreased and converged, and the R2 value gradually increased and approached 1, indicating that the model has achieved good performance and stability in many aspects, and the prediction effect is significant.

[0173] (7) Oil well production split prediction. The production split prediction results of each layer of the A1 and ASII wells in two different blocks are as follows: Figure 8 and Fig. 9 As shown. Figure 8 The following table shows the production splitting prediction results of the A1 well in the A1 block using the model for each sub-layer "L1Ⅱ lower", "L1Ⅳ upper", "L1Ⅱ upper + L1Ⅱ", "L1Ⅳ upper BC", "L1ⅡA", and "L1Ⅱ lower B", with corresponding values ​​of 36.9, 59, 48.7, 103, 74.3, and 22.9, respectively. Fig. 9 The following table shows the model's production prediction results for different sub-layers "L1I", "L1II lower", "L1IV upper A", and "L1IV upper B" in the A2 well of the ASII block, with corresponding values ​​of 149.7, 19.4, 13.8, and 20.0, respectively. So far, the sub-layer production splitting of the multi-layer commingled oil reservoir has been completed.

[0174] The present invention can model the spatiotemporal relationship between geological parameters, liquid production parameters and production dynamic parameters of multi-layer commingled oil reservoirs in different fields, capture the complexity and dynamics of the association between dynamic and static parameters of the oilfield system, and improve the accuracy and reliability of stratified dynamic production prediction of multi-layer commingled oil reservoirs; it can effectively solve the problem of poor prediction ability caused by differences in data distribution in different fields, reduce the impact of data distribution offset, improve its adaptability to data in different fields and tolerance to data uncertainty, and make the model more robust and domain generalization capable; embed the KH splitting domain knowledge of reservoir engineering, but avoid excessive reliance on the KH splitting value, and do not rely too much on a single parameter, thereby improving the robustness of the prediction results, enhancing the robustness of the model, and meeting the needs of actual applications.

[0175] 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 dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning, characterized in that: The steps include: Step 1: Obtain reservoir spatiotemporal data and perform data preprocessing to build a sample library of spatiotemporal relationship graph data structure; Step 2: Build a machine learning model for dynamic production splitting of multi-layer commingled oil reservoirs for domain generalization robust learning; The multi-layer commingled reservoir dynamic production splitting machine learning model for domain generalization robust learning includes a spatiotemporal relationship learning module, a robust learning module, and a bias correction estimation module. The spatiotemporal relationship learning module is further divided into a spatial learning module and a temporal learning module. The two-layer spectral domain graph convolutional neural network in the spatial learning module converts the feature representation of the nodes in the spatiotemporal relationship graph data structure into a frequency domain representation in the spectral domain through Fourier transform. In the spectral domain, the feature representation of each node is a linear combination of frequency components. After the convolution operation is performed on the graph signal in the spectral domain, the node feature representation in the spectral domain is converted back to the spatial domain through inverse Fourier transform. The specific formula is as follows: F(x)=U T x (3); F- 1 (x)=Ux (4); Where F(·) is the output of the Fourier transform of the graph, which converts the graph signal in the spatial domain to the frequency domain; F -1 (·) is the output of the inverse graph Fourier transform, which converts the frequency domain signal back to the spatial domain; x is the set of node features; U represents the matrix of the normalized graph Laplacian operator eigenvectors; T is the transpose symbol; The graph convolution operation of the spectral domain graph convolutional neural network is defined as: g*x=F -1 (F(g)⊙F(x))=U(U T g⊙U T x) (5); g w *x=Ug w U T x (6); Among them, g is the graph convolution kernel; ⊙ represents the convolution operation; g w is the graph convolution kernel represented in the frequency domain; G w Approximation by truncated expansion of the Chevshcherby polynomial: in, is the normalized graph Laplacian operator, L is the graph Laplacian matrix, λ max is the maximum eigenvalue of L; I N is the unit matrix; O t1 is the graph signal processed by two layers of spectral domain graph convolutional neural network; k represents the order of Chebyshev polynomial; K represents the total number of orders of Chebyshev polynomials used to approximate the graph filter; w k represents the Chebyshev coefficient vector; T K (·) is the K-order Chebyshev polynomial; The graph signal O after being processed by two layers of spectral domain graph convolutional neural network t1 As a time step input, it is transmitted to the long short-term memory neural network in the time learning module for processing; The robust learning module is composed of the generated noise-added, perturbed uncertainty data, and the output sequence O of the spatiotemporal relationship module t2 And the loss function; The bias correction estimation module is composed of the output of the robust learning module O t3 , KH splitting value and linear regression model; the results of learning the characteristics of geological conditions, fluid production parameters and production dynamic parameters by using the linear regression model to establish a robust learning module t4 The linear relationship between the KH split value; O t4 =A.O t3 +B (16); Among them, A is O t3 The change of O t4 The degree of influence; B is the intercept; The t5 =O t3 -O t4 (17); Among them, O t5 is the bias-corrected estimate of the KH split value; Finally, O t5 Input to the fully connected layer to get the prediction result; Step 3: Add noise and disturbance to increase data uncertainty and initialize model parameters; Step 4: Train the model and adjust the model parameters to achieve model domain generalization; Step 5: Use the test set data to check the model generalization ability and evaluate the model performance.

2. The method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1.1, obtaining reservoir spatiotemporal data, which includes geological parameters, fluid production parameters, production dynamic parameters, and measurement time; Step 1.2: Preprocess the reservoir spatiotemporal data and calculate the KH splitting value; the preprocessing includes data cleaning and data normalization. The KH splitting value calculation formula is: KH=K×H (1); Wherein, KH is the KH splitting value; K represents the effective permeability of the formation; H is the effective thickness of the formation; Step 1.3, analyze the main controlling factors of the preprocessed data, retain the characteristic attribute factors with strong correlation with porosity, permeability, effective thickness, and daily liquid production, and construct a high-quality spatiotemporal data item table; Step 1.4: Convert the data in the established high-quality spatiotemporal data item table into a spatiotemporal relationship graph data structure G = (V, E t ,A t ); where V = (V1, V2, V3, ..., V n ) is the set of all nodes in the graph data structure, V n is the nth node; E t is the set of edges at time t; A t is the adjacency matrix at time t; Each well is a vertex of the graph, each small layer is a node of the graph, and the connection relationship between each well and its corresponding small layer is an edge of the graph; according to the connection relationship of the edges between nodes, an adjacency matrix A is constructed to describe the topological structure of the graph; the adjacency matrix A is a matrix that describes the connection relationship between nodes in the graph. Each element in the matrix indicates whether there is an edge connection between two nodes. The elements in the matrix are assigned values ​​according to whether there is an edge connection between the two nodes; if there is an edge connection between node i and node j, the value of the element A(i,j) or A(j,i) of the adjacency matrix A is 1, otherwise it is 0; Construct the feature matrix C∈C according to the features contained in the graph nodes M×N , as shown below: Where M represents the number of nodes; N represents the feature dimension; c MN It is the N-th dimension element of the M-th node in the characteristic matrix; the specific content of the element is the characteristic attribute factor with strong correlation with porosity, permeability, effective thickness and daily liquid production after preprocessing in step 1.

3.

3. The method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning according to claim 1 is characterized in that: The LSTM neural network will gradually update its internal state and memory units according to the time order of the sequence data, and generate the corresponding output sequence; the LSTM neural network model has three gates, namely the forget gate, input gate and output gate; the forget gate controls the selective forgetting of the information in the memory state; the forget gate formula is: f t =σ(W f ·[h t-1 ,x t ]+b f ) (9); Among them, f t is the activation value of the forget gate at the tth time step; σ is the sigmoid function; W f is the weight matrix; h t-1 is the hidden state at the t-1th time step; x t is the input of the tth time step; b f is the bias term of the forget gate; The input gate determines which information is added to the memory cell state as new memory; the input gate formula is as follows: i t =σ(w i ·[h t-1 ,x t ]+b i ) (10); Among them, i t is the input gate activation value at the tth time step; w i is the weight of the input gate; b i is the bias term of the input gate; is the candidate cell state at the tth time step; tanh is the tanh function; W c is the weight matrix of the memory unit; b c is the bias term of the memory unit; C t is the memory cell state at the tth time step; C t-1 is the memory unit state at the t-1th time step; The output gate finally outputs the required memory; the formula of the output gate is: the t =σ(W o ·[h t-1 ,x t ]+b o ) (13); O t2 =o t ·tanh(C t ) (14); Among them, t is the activation value of the output gate at the tth time step; W o is the weight matrix of the output gate; b o is the bias term of the output gate; O t2 is the output sequence of the spatiotemporal relationship module.

4. The method for dynamic production splitting of multi-layer commingled oil reservoirs based on domain generalization machine learning according to claim 3 is characterized in that: The randomness and uncertainty in the data are simulated by adding noise and disturbing uncertainty data. The output sequence O of the spatiotemporal relationship module is measured by using the distribution-based Wasserstein distance. t2 , the probability distribution difference between the generated noise and perturbation data Q, the Wasserstein distance formula between them is: Among them, O t3 is the output result of the robust learning module, denoted by O t2 and the Wasserstein distance between Q; inf is The infimum of ; γ is the joint distribution; Π(O t2 ,Q) indicates that all t2 The set of joint distributions connected with Q; O t2 The support set of ; y is the support set of Q; yes The distance function between and y; Yes t2 The joint distribution of and Q.

5. The method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning according to claim 4 is characterized in that: The specific process of step 3 is as follows: Step 3.1, in the robust learning module, add a value of a random number from a Gaussian distribution to each original data point to introduce noise data, and amplify and reduce part of the original data to add perturbation data; Step 3.2: Before the model training starts, the parameters of the model are initialized using the He initialization method; the He initialization formula is as follows: Among them, W is the weight matrix to be initialized; is a normal distribution; n l is the number of neurons in the lth layer.

6. The method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning according to claim 5 is characterized in that: The specific process of step 4 is as follows: Step 4.1: Based on the spatiotemporal relationship graph data structure converted in step 1.4, use ten-fold cross validation to divide the sample set into a training set and a test set; divide the sample library into subsets of similar size, one of which is selected as the test set, and the rest A subset is used as the training set; Step 4.2, set the number of Chevshcherby polynomial terms, the number of hidden layers, input and output parameters and learning rate, and divide the training set obtained by ten-fold cross validation in step 1.4 into small batches, input one batch of data into the model for training each time; repeat the batch training process until the predetermined number of iterations is reached; Step 4.3, training the model; in the model training cycle, firstly, the spectral domain graph neural network and the long short-term memory neural network in the spatiotemporal relationship learning module are used to learn the temporal and spatial dependencies between the dynamic and static parameters of the multi-layer commingled production reservoir; The robust learning module minimizes the Wasserstein distance between the noise and perturbation uncertainty data added in the model and the data distribution output by the spatiotemporal relationship learning module; for this purpose, the loss function based on the distribution of Wasserstein distance is set to: Among them, G is the generator, generating the same distribution as the real data P data similar data distribution; D is the discriminator, which is used to distinguish real data from perturbed uncertainty data; W(·) is the Wasserstein distance; P data is the distribution of real data; P θ is the distribution of uncertain data; Step 4.4, tune the model hyperparameters; use the particle swarm optimization algorithm to tune the number of hidden layers, the number of Chevshev polynomial terms, and the learning rate of the multi-layer commingled reservoir dynamic production splitting machine learning model for domain generalization robust learning; using the particle swarm optimization algorithm for hyperparameter tuning, it is necessary to first initialize the particle swarm, and each particle represents a combination of hyperparameters, including the number of hidden layers, the number of Chebyshev polynomial terms, and the learning rate; randomly initialize the hyperparameter value and speed of the particle and set the range of the parameter, and use the mean square error MSE as the fitness function to evaluate the fitness of each particle on the training set; finally, perform iterative update to reach the maximum number of iterations; the update formula for updating the speed and position of each particle is as follows: in, For particles In the The speed at the iteration; For particles In the The position at the iteration; It is a particle In the The speed at the iteration; It is a particle In the The position at the iteration; w is the inertia weight; c1 and c2 are learning factors; r1 and r2 are random numbers between [0,1]; It is a particle The best position in history; is the global optimal position; After multiple iterations, the hyperparameter combination corresponding to the global optimal position is output; Step 4.5, save the multi-layer combined production reservoir dynamic production splitting machine learning model for domain generalization robust learning with the parameters adjusted in step 4.

4.

7. The method for dynamic production splitting of multi-layer commingled production reservoirs based on domain generalization machine learning according to claim 6 is characterized in that: The specific process of step 5 is as follows: Step 5.1, input the test set data into the multi-layer commingled production reservoir dynamic production splitting machine learning model for domain generalization robust learning saved in step 4.5, and predict the production splitting results of the test set data of the multi-layer commingled production reservoir; Step 5.2: Use evaluation indicators to measure the generalization ability of the model; use multi-model evaluation indicators to measure the generalization ability of the model, including root mean square error and mean absolute error; According to step 3.3, in each batch, calculate the root mean square error and mean absolute error until the predetermined number of iterations is reached; After the number of iterations, the root mean square error and mean absolute error obtained in each iteration are averaged; the smaller the value of the root mean square error and mean absolute error, the better the prediction performance of the model and the smaller the error.

Citation Information

Patent Citations

  • Method for splitting yield of production well of thick-layer sandstone oil pool

    CN107869348A

  • Method for determining characteristic parameters of reformation stages of multi-stage fractured horizontal well in unconventional oil and gas reservoir

    CN110374572A

  • Intelligent yield splitting method and system for multi-layer commingled recovery gas well

    CN113762559A

  • Heterogeneous graph neural network-based multi-series water injection rate splitting method and system

    CN114547978A

  • Mountainous area slope displacement prediction method based on mi-GRA and improved PSO-lstm

    WO2024001942A1