MMP prediction method and device based on conditional generative adversarial network
Through the combination of conditional generative adversarial network and Bayesian hyperparameter optimization, an accurate prediction model for CO2 and reservoir crude oil MMP was established, which solved the complex and time-consuming problem of MMP prediction in the existing technology and achieved efficient and accurate prediction. The result provides a reliable basis for oil field development.
Patent Information
- Application Number
- CN202111493520.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-08
AI Technical Summary
The existing technology is complex, time-consuming and costly to determine the minimum miscibility pressure (MMP) between CO2 and reservoir crude oil, and lacks an efficient prediction solution.
The MMP prediction method based on the conditional generative adversarial network is used to obtain the MMP influencing factor data of the reservoir, train the generator and discriminator, establish a nonlinear mapping relationship, and use the Bayesian hyperparameter optimization method to optimize the model structure to achieve unknown prediction Accurate prediction of reservoir MMP.
It achieves accurate and efficient prediction of CO2 and reservoir crude oil MMP, simplifies the process, improves calculation efficiency, and provides a reliable basis for oilfield development.
Smart Images

Figure CN114169240B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil reservoir development, and in particular to a MMP prediction method and device based on a conditional generative adversarial network. Background Art
[0002] CO2 miscible flooding is the most widely used and highest recovery method in CO2-EOR of low permeability reservoirs. During the injection of CO2 into the reservoir for oil recovery, the interaction of gas, oil and water phases will occur in the rock formation. Interphase component transfer, phase change and other complex phase behaviors will occur. The basic mechanism of miscible flooding is that the displacing agent (CO2 injection gas) and the displaced agent (crude oil) form a stable miscible zone front under reservoir conditions. The front is a single phase, and its movement can effectively push the crude oil forward and eventually reach the production well. Due to the miscibility, the oil-gas interface disappears, and the interfacial tension in the porous medium is reduced to zero, so theoretically the microscopic displacement efficiency can reach 100%.
[0003] The minimum miscible pressure (MMP) between CO2 and reservoir crude oil is one of the key parameters in the CO2 displacement process and is the boundary that distinguishes CO2 miscible displacement from immiscible displacement. Accurately determining the minimum miscible pressure of CO2 and crude oil is very important for improving the efficiency of CO2 miscible displacement, reducing operating costs, and generating social and economic benefits.
[0004] The prior art usually uses experimental measurement to determine MMP. Although this method can ensure accuracy, it is complex, time-consuming and expensive. Therefore, the prior art lacks a more efficient solution for determining the minimum miscibility pressure (MMP) between CO2 and crude oil in the reservoir. Summary of the invention
[0005] In order to solve at least one technical problem in the above-mentioned background technology, the present invention proposes a MMP prediction method and device based on a conditional generative adversarial network.
[0006] In order to achieve the above object, according to one aspect of the present invention, a MMP prediction method based on a conditional generative adversarial network is provided, the method comprising:
[0007] Obtain data on MMP influencing factors of target reservoirs;
[0008] The MMP influencing factor data is input into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by performing multiple iterative training based on a training sample set, and each training sample in the training sample set includes: the MMP value of the reservoir and the MMP influencing factor data of the reservoir.
[0009] Optionally, the MMP prediction method based on a conditional generative adversarial network further includes:
[0010] Obtaining the training sample set;
[0011] Perform H1 iterations of training according to the training sample set to obtain the pre-trained generator, wherein each iteration of training is divided into multiple batches of training. When training each batch, first select H2 training samples from the training sample set, then train the network weights of the discriminator based on the selected training samples, and finally train the network weights of the generator in a combined model composed of the discriminator and the generator based on the selected training samples, and H1 and H2 are both positive integers.
[0012] Optionally, the training sample consists of first data and second data, the first data is the MMP influencing factor data of the oil reservoir, and the second data is the MMP value of the oil reservoir;
[0013] The training of the network weights of the discriminator based on the selected training samples specifically includes:
[0014] For each selected training sample, respectively, combine the MMP prediction value output by the generator according to the first data of the training sample with the first data of the training sample to obtain combined data, and set the label of the combined data to 0;
[0015] Set the label of each selected training sample to 1;
[0016] The combined data after labeling and the training samples after labeling are input into the discriminator to train the network weights of the discriminator.
[0017] Optionally, the training of the network weights of the generator in the combined model consisting of the discriminator and the generator based on the selected training samples specifically includes:
[0018] For each selected training sample, the first data of the training sample is input into the generator to obtain the MMP prediction value corresponding to the training sample output by the generator;
[0019] For each selected training sample, respectively, combine the first data of the training sample with the MMP prediction value corresponding to the training sample to obtain combined data, and set the label of the combined data to 1;
[0020] The combined data after labeling is input into the discriminator to obtain the probability that the combined data output by the discriminator is the real data.
[0021] Optionally, performing H1 iterations of training according to the training sample set to obtain the pre-trained generator includes:
[0022] The hyperparameter optimization method is used to optimize the number of iterative training H1, the number of training samples H2, the hyperparameters of the generator, and the hyperparameters of the discriminator to obtain the best parameter combination.
[0023] In order to achieve the above object, according to another aspect of the present invention, a MMP prediction device based on a conditional generative adversarial network is provided, the device comprising:
[0024] A data acquisition unit, used for acquiring MMP influencing factor data of a target oil reservoir;
[0025] A prediction unit is used to input the MMP influencing factor data into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by multiple iterative training based on a training sample set, and each training sample in the training sample set contains: the MMP value of the reservoir and the MMP influencing factor data of the reservoir.
[0026] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the MMP prediction method based on the conditional generative adversarial network are implemented.
[0027] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer program product is also provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned MMP prediction method based on conditional generative adversarial network.
[0028] The beneficial effects of the present invention are:
[0029] The present invention combines a conditional generative adversarial network with the prediction of the minimum miscibility pressure (MMP) between CO2 and crude oil in an oil reservoir, and trains a generator of the conditional generative adversarial network as an MMP prediction model, which can accurately and efficiently predict the MMP of an oil reservoir. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0031] Figure 1is a first flow chart of a MMP prediction method based on a conditional generative adversarial network according to an embodiment of the present invention;
[0032] Figure 2 is a second flow chart of the MMP prediction method based on a conditional generative adversarial network according to an embodiment of the present invention;
[0033] Figure 3 is a training flow chart of a discriminator according to an embodiment of the present invention;
[0034] Figure 4 is a training flow chart of a generator according to an embodiment of the present invention;
[0035] Figure 5 is a schematic diagram of a training sample set according to an embodiment of the present invention;
[0036] Figure 6 is a schematic diagram of the network structure of a generator according to an embodiment of the present invention;
[0037] Figure 7 is a schematic diagram of the network structure of the discriminator according to an embodiment of the present invention;
[0038] Figure 8 It is a schematic diagram of a combined model of an embodiment of the present invention;
[0039] Fig. 9 It is a first structural block diagram of an MMP prediction device based on a conditional generative adversarial network according to an embodiment of the present invention;
[0040] Fig.10 It is a second structural block diagram of the MMP prediction device based on the conditional generative adversarial network according to an embodiment of the present invention;
[0041] Fig.11 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0043] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0044] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0045] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0046] It should be noted that the MMP in this application refers to the minimum miscibility pressure between CO2 and the crude oil in the reservoir.
[0047] Generative Adversarial Networks (GANs) is a deep learning model and one of the most promising methods for unsupervised learning on complex distributions in recent years. The model produces fairly good output through the mutual game learning of (at least) two modules in the framework: the generative model (also known as the generator) and the discriminative model (also known as the discriminator).
[0048] Generative adversarial networks are an unsupervised machine learning method, which makes this method generally used in data enhancement. That is, when there are few training samples provided to machine learning, generative adversarial networks can be used to generate some data samples for machine learning. Since generative adversarial networks were born relatively late, they have only been used by a few oil workers for data enhancement in recent years. However, the effects of the data generated by this method have been praised and criticized by various researchers.
[0049] The most primitive generative adversarial network only needs to input a random vector and then get a generated object, but we cannot control what kind of object is generated. So researchers proposed the theory of conditional generative adversarial networks, added constraints to the original GAN, introduced conditional variables y (Conditional variable y) in the generative model and the discriminative model, introduced additional information to the model, and guided the generation of data. In theory, y can be meaningful information, such as class labels, which can turn the unsupervised learning method of GAN into supervised.
[0050] The emergence of conditional generative adversarial networks has transformed generative adversarial networks from unsupervised learning to supervised learning, which means that this method can be used for parameter prediction in the field of petroleum, and has great application prospects in the field of petroleum. However, according to current literature research, this method has not yet been combined with the petroleum industry. The present invention combines conditional generative adversarial networks with MMP prediction, and proposes a method for predicting the minimum miscible pressure (MMP) of CO2 and crude oil based on conditional generative adversarial networks. Through adversarial training of conditional generative adversarial networks (CGAN), the nonlinear mapping relationship between MMP and its influencing factors is learned and established, and the Bayesian hyperparameter optimization method is used to optimize the model structure, and the prediction accuracy of the model is comprehensively improved, thereby achieving accurate prediction of the MMP of unknown reservoirs, providing a reliable basis for the next step of oil field development, and helping the efficient development of reservoirs.
[0051] Figure 1 is a first flow chart of the MMP prediction method based on the conditional generative adversarial network according to an embodiment of the present invention, such as Figure 1 As shown, in one embodiment of the present invention, the MMP prediction method based on conditional generative adversarial network of the present invention includes steps S101 to S103.
[0052] Step S101, obtaining MMP influencing factor data of a target oil reservoir.
[0053] In one embodiment of the present invention, the MMP influencing factor data specifically include: oil layer temperature (T R ), the mole fraction of volatile components in crude oil (X vol ), C2-C4 component mole fraction in crude oil (X C2-4 ), C5-C6 component molar fraction in crude oil (X C5-6 ), C in crude oil 7+ Component molecular weight (MW C7+ ), the molar fractions of CO2 and four impurities in the injected gas (i.e., y CO2 ,y C1 ,y N2 ,y H2S and HC)wait.
[0054] Step S102, inputting the MMP influencing factor data into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by performing multiple iterative training based on a training sample set, and each training sample in the training sample set contains: the MMP value of the reservoir and the MMP influencing factor data of the reservoir.
[0055] Figure 2 is a second flow chart of the MMP prediction method based on the conditional generative adversarial network according to an embodiment of the present invention, such as Figure 2 As shown, the pre-trained generator in the above step S102 is specifically generated by training in steps S201 and S202.
[0056] Step S201, obtaining the training sample set.
[0057] In one embodiment of the present invention, the present invention collects a certain number of MMP values of existing oil reservoirs and corresponding MMP influencing factor data, and divides them into a training sample set, a verification sample set and a test sample set according to a certain ratio.
[0058] Figure 5 The figure shows the MMP values of 105 oil reservoirs and the corresponding MMP influencing factor data collected by an embodiment of the present invention. Specifically, the present invention divides all data into a training sample set, a validation sample set and a test sample set in a ratio of 6:2:2, so the training sample set has 63 groups of data, the validation sample set has 21 groups of data, and the test sample set has 21 groups of data.
[0059] In one embodiment of the present invention, after obtaining the training sample set, the validation sample set and the test sample set, the present invention first performs maximum and minimum normalization processing on the training sample set, and then uses the maximum and minimum values of the training sample set data to perform the same processing on the data in the validation sample set and the test sample set.
[0060] In one embodiment of the present invention, the maximum and minimum normalization formula may be as follows:
[0061]
[0062] Step S202, performing H1 iterative training according to the training sample set to obtain the pre-trained generator, wherein each iterative training is divided into multiple batches of training, and when performing each batch of training, first select H2 training samples from the training sample set, and then train the network weights of the discriminator based on the selected training samples, and finally train the network weights of the generator in the combined model composed of the discriminator and the generator based on the selected training samples, and H1 and H2 are both positive integers.
[0063] In the present invention, each iterative training is divided into multiple batches of training. When each batch of training is performed, H2 training samples are first selected from the training sample set. The training samples selected for the multiple batches of training in the same iterative training are all different. If the number of samples remaining in the training sample set during the training of a certain batch is less than H2, all the remaining samples are selected for the training of this batch. After all the samples in the training sample set have been trained once, an iterative training process of the conditional generative adversarial network is realized, which is also called a training cycle. The performance of the generator and the discriminator will gradually improve with the increase of the number of iterative training times (H1).
[0064] In the present invention, the present invention performs H1 iteration training according to the above process. When the iteration training reaches a certain number of times, the MMP prediction value under the corresponding conditions generated by the generator will be very close to the real data, and the prediction function of MMP is realized. In one embodiment of the present invention, the present invention simultaneously monitors the prediction error of the generator on the validation set after each iteration training is completed during the iterative training process, and saves the generator after each iteration training separately, and finally selects the generator with the smallest error on the validation set during the iterative training process, which is the MMP prediction model.
[0065] In the present invention, the present invention first trains the network weights of the discriminator based on the training samples, and then trains the network weights of the generator in a combined model consisting of the discriminator and the generator based on the training samples. Figure 8 Schematic diagram of the combined model of the embodiment of the present invention, Figure 8 As shown in the figure, when the network weights of the generator are trained in the combined model, the network weights of the discriminator do not change, while the network weights of the generator will change as the data is trained.
[0066] In one embodiment of the present invention, the training sample consists of first data and second data, the first data is the MMP influencing factor data of the oil reservoir, and the second data is the MMP value of the oil reservoir.
[0067] Figure 3 is a training flow chart of the discriminator according to an embodiment of the present invention, such as Figure 3As shown, in one embodiment of the present invention, the training of the network weights of the discriminator based on the selected training samples in the above step S202 specifically includes steps S301 to S303.
[0068] Step S301, for each selected training sample, respectively, combines the MMP prediction value output by the generator according to the first data of the training sample with the first data of the training sample to obtain combined data, and sets the label of the combined data to 0.
[0069] Step S302, setting the label of each selected training sample to 1.
[0070] Step S303: input the labeled combined data and the labeled training samples into the discriminator to train the network weights of the discriminator.
[0071] In one embodiment of the present invention, when an iterative training is started, the first batch of training samples is first selected from the training sample set, and the number of training samples in this batch is H2. The established generator is used to take the first data in the H2 training samples of this batch as the conditional input of the generator, and the MMP prediction value under the corresponding condition generated by the generator for the first time is output; then, the first data is combined with the MMP prediction value output by the generator to obtain the combined data, and the combined data is labeled as 0 and input into the discriminator; at the same time, the combination of the first data and the corresponding real MMP value, i.e., the training data, is labeled as 1 and also sent to the discriminator, so that the discriminator performs the first learning, i.e., the first learning of the true and false data. Then, according to the above process, the discriminator is trained for multiple batches and then H1 times of iterative training, and the discriminator trained iteratively can more accurately identify the real data.
[0072] Figure 4 is a training flow chart of the generator according to an embodiment of the present invention, such as Figure 4 As shown, in one embodiment of the present invention, the network weights of the generator are trained in the combined model composed of the discriminator and the generator based on the selected training samples in the above step S202, specifically including steps S401 to S403.
[0073] Step S401, for each selected training sample, input the first data of the training sample into the generator, and obtain the MMP prediction value corresponding to the training sample output by the generator.
[0074] Step S402: for each selected training sample, respectively, combine the first data of the training sample with the MMP prediction value corresponding to the training sample to obtain combined data, and set the label of the combined data to 1.
[0075] Step S403, input the combined data after labeling into the discriminator, and obtain the probability that the combined data output by the discriminator is true data.
[0076] In the present invention, after the discriminator is trained, the weight of the discriminator is kept unchanged, and then the network weight of the generator is trained in the combined model composed of the discriminator and the generator. Specifically, the present invention combines the conditional input of the generator (i.e., the first data in the training data) with the MMP prediction value output by the generator, sets the label to 1, and inputs it into the combined model to achieve separate training and learning of the generator without affecting the discriminator, thereby improving the accuracy of the generator in generating data.
[0077] Figure 6 is a schematic diagram of the network structure of the generator according to an embodiment of the present invention, such as Figure 6 As shown, the input of the generator is the MMP influencing factor data, and the output of the generator is the MMP predicted value; the network structure of the generator specifically includes: a first FCNN layer, a first splicing layer and a second FCNN layer, the first FCNN layer is used to preprocess the MMP influencing factor data, the first splicing layer is used to splice the preprocessed data output by the first FCNN layer with random noise, and the second FCNN layer is used to process the spliced data output by the first splicing layer to output the MMP predicted value.
[0078] like Figure 6 As shown, the present invention uses a fully connected neural network (FCNN) to build a generator in a conditional generative adversarial network. Figure 6 As shown, the present invention first sets an FCNN layer (i.e., the first FCNN layer) to preprocess the condition X, i.e., the normalized MMP influencing factor data; then, the data preprocessed by the FCNN layer (i.e., the first FCNN layer) is spliced with the random noise data Z generated by the generator; finally, the FCNN layer (i.e., the second FCNN layer) is set again to process the spliced data, thereby outputting the MMP prediction value under the current influencing factor, i.e., Y'. In the present invention, the real MMP value, i.e., the MMP value in the training data, is represented by Y, and the MMP prediction value output by the generator is represented by Y'.
[0079] In one embodiment of the present invention, the hyperparameters of the generator specifically include: the number of layers of the first FCNN layer, the number of neurons in each layer of the first FCNN layer, the dropout rate of each layer of the first FCNN layer, the number of layers of the second FCNN layer, the number of neurons in each layer of the second FCNN layer, the dropout rate of each layer of the second FCNN layer, and the initial learning rate of the generator.
[0080] In one embodiment of the present invention, the initial learning rate of the generator is specifically the initial learning rate of the Adam optimizer in the generator.
[0081] Figure 7 Schematic diagram of the network structure of the discriminator according to an embodiment of the present invention. Figure 7 As shown, the input of the discriminator is the MMP influencing factor data and the MMP value, the MMP value includes the output of the generator as the MMP prediction value, and the output of the discriminator is the probability that the data is real data; the network structure of the discriminator specifically includes: a third FCNN layer, a second splicing layer and a fourth FCNN layer, the third FCNN layer is used to preprocess the MMP influencing factor data, the second splicing layer is used to splice the preprocessed data output by the third FCNN layer with the MMP value, and the fourth FCNN layer is used to process the spliced data output by the second splicing layer and output the probability that the data is real data.
[0082] like Figure 7 As shown, the discriminator accepts two inputs, the first input is condition X, that is, the normalized MMP influencing factor data, which is preprocessed, and the second is the actual MMP value Y corresponding to condition X or the MMP prediction value Y′ generated by the generator under condition X.
[0083] like Figure 7 As shown, in one embodiment of the present invention, when the discriminator is set, the FCNN layer (i.e., the third FCNN layer) is first set to preprocess the condition X, i.e., the normalized MMP influencing factor data; then, the data preprocessed by the FCNN layer (i.e., the third FCNN layer) is spliced with the input MMP value (the actual MMP value Y corresponding to the condition X or the MMP prediction value Y′ generated by the generator under the condition X); finally, the FCNN layer (i.e., the fourth FCNN layer) is set again to process the spliced data, and the number of neurons in the last layer of this FCNN layer (i.e., the fourth FCNN layer) is 1, the activation function is sigmoid, and the output is the probability that the currently input data is the real data. If the output probability is >0.5, it belongs to the real data, otherwise, it is false data, that is, the data generated by the generator.
[0084] In one embodiment of the present invention, the hyperparameters of the discriminator specifically include: the number of layers of the third FCNN layer, the number of neurons in each layer of the third FCNN layer, the dropout rate of each layer of the third FCNN layer, the number of layers of the fourth FCNN layer, the number of neurons in each layer of the fourth FCNN layer, the dropout rate of each layer of the fourth FCNN layer, and the initial learning rate of the discriminator.
[0085] In one embodiment of the present invention, the initial learning rate of the discriminator is specifically the initial learning rate of the Adam optimizer in the generator.
[0086] In one embodiment of the present invention, when performing iterative training in the above step S202, the present invention also uses a hyperparameter optimization method to optimize the number of iterative training H1, the number of training samples H2, the hyperparameters of the generator, and the hyperparameters of the discriminator to obtain the best parameter combination. Then, based on the best parameter combination, the model is iteratively trained to obtain the generator, that is, the MMP prediction model.
[0087] In a specific embodiment of the present invention, the present invention uses a Bayesian hyperparameter optimization method to optimize the hyperparameters of the generator and the discriminator, the number of training samples in each batch during each iterative training (H2), and the number of iterative training times (H1), to find the parameter combination that makes the model have the best prediction effect in the validation set, and use the parameter combination with the best prediction effect in the validation set as the optimal parameter combination.
[0088] Among them, during Bayesian optimization, several sets of parameter combinations will be randomly used for trial calculations. The number of trial calculations can be set manually. Here, the number of trial calculations is set to 10. Then, the real Bayesian optimization is performed. After the trial calculation, each Bayesian optimization will refer to the results of the previous calculation, that is, the performance of the model on the validation set, so as to select the hyperparameters and the number of iterative training to be used in the next calculation. Here, the number of steps for the actual execution of Bayesian optimization is set to 90.
[0089] In one embodiment of the present invention, the present invention uses the best parameter combination obtained by Bayesian hyperparameter optimization to establish a MMP prediction model (i.e., a generator). This model is the model we will use to predict the MMP of a new oil reservoir. By inputting the MMP influencing factor data of the new oil reservoir, the corresponding MMP value can be predicted.
[0090] In one embodiment of the present invention, the best parameter combination can be obtained by using Bayesian hyperparameter optimization as follows:
[0091] In the generator, the FCNN layer (i.e., the first FCNN layer) for preprocessing the input influencing factor X is set to 2 layers, the number of neurons in the first layer is set to 430, the drop rate is 0.1943, the number of neurons in the second layer is set to 1, and the activation function is relu; the FCNN layer (i.e., the second FCNN layer) for processing the concatenated data is set to 5 layers, the number of neurons in the first four layers is set to 381, the drop rate of each layer of the first four layers is 0.2944, the number of neurons in the fifth layer is set to 1, and the activation function is relu. The initial learning rate of the Adam optimizer in the generator is set to 0.0001960.
[0092] In the discriminator, the FCNN layer for preprocessing the input influencing factor X (i.e., the third FCNN layer) is set to 2 layers, the number of neurons in the first layer is set to 247, the drop rate is 0.0123, the number of neurons in the second layer is set to 1, and the activation function is relu; the FCNN setting for processing the spliced data (i.e., the fourth FCNN layer) is 4 layers, the number of neurons in each of the first three layers is set to 110, the drop rate of each layer of the first three layers is 0.3779, the number of neurons in the last layer is set to 1, the activation function of the first three layers is relu, and the activation function of the last layer is sigmoid. The initial learning rate of the Adam optimizer in the discriminant network is set to 0.0001758.
[0093] The number of iterative training (H1) was set to 890 after Bayesian optimization, and the number of training samples in each batch during each iterative training (H2) was set to 38 after Bayesian optimization.
[0094] Based on the same training sample set, three machine learning methods, FCNN, RF, and SVM, were used to establish MMP prediction models, and the structure of each model was optimized by combining the Bayesian algorithm and the validation set data. Finally, the prediction accuracy of each optimized model was evaluated using the same untrained test sample set.
[0095] Table 1. Forecast mean absolute percentage error
[0096]
[0097] As can be seen from Table 1, compared with the prediction results of FCNN, RF, and SVM models, the error of the MMP prediction model based on CGAN in the test set of the present invention is improved by 1, 3, and 8 percentage points respectively, which is the highest accuracy among the four machine learning methods. This reflects the powerful fitting ability of CGAN, which has higher prediction accuracy than FCNN, RF, and SVM, and confirms the good performance of CGAN in other fields.
[0098] It can be seen from the above embodiments that the MMP prediction method based on conditional generative adversarial network of the present invention achieves at least the following beneficial effects:
[0099] 1. The method of the present invention combines the conditional generative adversarial network with reservoir MMP prediction for the first time, and establishes a data-driven reservoir MMP prediction model by learning a large amount of reservoir MMP data, thereby improving the prediction accuracy of the model. It is a new idea and method for MMP prediction, and has opened up a precedent for the use of conditional generative adversarial networks in MMP prediction, which is of great significance to reservoir MMP prediction and reservoir development plan design.
[0100] 2. During the modeling process, the method of the present invention uses the Bayesian optimization method to optimize the hyperparameters in the network, thereby comprehensively improving the prediction accuracy of the model.
[0101] 3. The model building process of the method of the present invention is simple, the calculation efficiency is high, the prediction accuracy is high, and it is comprehensive and applicable. It lays a certain foundation for the large-scale application of machine learning and conditional generative networks in reservoir MMP prediction and has broad application prospects.
[0102] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0103] Based on the same inventive concept, an embodiment of the present invention also provides an MMP prediction device based on a conditional generative adversarial network, which can be used to implement the MMP prediction method based on a conditional generative adversarial network described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the MMP prediction device based on a conditional generative adversarial network is similar to that of the MMP prediction method based on a conditional generative adversarial network, the embodiment of the MMP prediction device based on a conditional generative adversarial network can refer to the embodiment of the MMP prediction method based on a conditional generative adversarial network, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0104] Fig. 9 is a first structural block diagram of an MMP prediction device based on a conditional generative adversarial network according to an embodiment of the present invention, such as Fig. 9 As shown, in one embodiment of the present invention, the MMP prediction device based on the conditional generative adversarial network of the present invention includes:
[0105] A data acquisition unit 1 is used to acquire MMP influencing factor data of a target oil reservoir;
[0106] Prediction unit 2 is used to input the MMP influencing factor data into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by multiple iterative training based on a training sample set, and each training sample in the training sample set contains: the MMP value of the reservoir and the MMP influencing factor data of the reservoir.
[0107] Fig.10is a second structural block diagram of the MMP prediction device based on the conditional generative adversarial network according to an embodiment of the present invention, such as Fig.10 As shown, in one embodiment of the present invention, the MMP prediction device based on the conditional generative adversarial network of the present invention further includes:
[0108] A training sample set acquisition unit 3, used to acquire the training sample set;
[0109] The model training unit 4 is used to perform H1 iterative training according to the training sample set to obtain the pre-trained generator, wherein each iterative training is divided into multiple batches of training. When training each batch, H2 training samples are first selected from the training sample set, and then the network weights of the discriminator are trained based on the selected training samples. Finally, the network weights of the generator are trained in the combined model composed of the discriminator and the generator based on the selected training samples. H1 and H2 are both positive integers.
[0110] In one embodiment of the present invention, the training sample is composed of first data and second data, the first data is the MMP influencing factor data of the reservoir, and the second data is the MMP value of the reservoir. In one embodiment of the present invention, the model training unit specifically includes:
[0111] A first label setting module is used to combine, for each selected training sample, the MMP prediction value output by the generator according to the first data of the training sample with the first data of the training sample to obtain combined data, and set the label of the combined data to 0;
[0112] A second label setting module, used to set the label of each selected training sample to 1;
[0113] The discriminator training module is used to input the combined data after labeling and the training samples after labeling into the discriminator to train the network weights of the discriminator.
[0114] In one embodiment of the present invention, the model training unit specifically includes:
[0115] A prediction value acquisition module, for inputting the first data of each selected training sample into the generator, and obtaining the MMP prediction value corresponding to the training sample output by the generator;
[0116] A combined data acquisition module, for combining the first data of each selected training sample with the MMP prediction value corresponding to the training sample to obtain combined data, and setting the label of the combined data to 1;
[0117] The generator training module is used to input the combined data after labeling into the discriminator to obtain the probability that the combined data output by the discriminator is real data.
[0118] Optionally, the model training unit further includes:
[0119] The hyperparameter optimization module is used to optimize the number of iterative training H1, the number of training samples H2, the hyperparameters of the generator, and the hyperparameters of the discriminator using the hyperparameter optimization method to obtain the best parameter combination.
[0120] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Fig.11 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.
[0121] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0122] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0123] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0125] The specific details of the above-mentioned computer device can be understood by referring to the corresponding related descriptions and effects in the above-mentioned embodiments, and will not be repeated here.
[0126] In order to achieve the above purpose, according to another aspect of the present application, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps in the MMP prediction method based on the conditional generative adversarial network when executed in a computer processor. It can be understood by those skilled in the art that the implementation of all or part of the process in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the process of the embodiment of each method as described above when executed. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0127] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is also provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned MMP prediction method based on conditional generative adversarial network.
[0128] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A MMP prediction method based on conditional generative adversarial networks, It is characterized in that include: Obtain the MMP influencing factor data of the target reservoir; Inputting the MMP influencing factor data into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by performing multiple iterations of training according to a training sample set, and each training sample in the training sample set includes: the MMP value of the reservoir and the MMP influencing factor data of the reservoir; Obtaining the training sample set; Performing H1 iterations of training according to the training sample set to obtain the pre-trained generator, wherein each iteration of training is divided into a plurality of batches of training, and when performing each batch of training, firstly selecting H2 training samples from the training sample set, and then training the network weights of the discriminator based on the selected training samples, and finally training the network weights of the generator in a combined model consisting of the discriminator and the generator based on the selected training samples, wherein H1 and H2 are both positive integers; The input of the generator is the MMP influencing factor data, and the output of the generator is the MMP predicted value; the network structure of the generator specifically includes: a first FCNN layer, a first splicing layer and a second FCNN layer, the first FCNN layer is used to preprocess the MMP influencing factor data, the first splicing layer is used to splice the preprocessed data output by the first FCNN layer with random noise, and the second FCNN layer is used to process the spliced data output by the first splicing layer and output the MMP predicted value; The input of the discriminator is the MMP influencing factor data and the MMP value, the MMP value includes the output of the generator as the MMP prediction value, and the output of the discriminator is the probability that the data is real data; the network structure of the discriminator specifically includes: a third FCNN layer, a second splicing layer and a fourth FCNN layer, the third FCNN layer is used to preprocess the MMP influencing factor data, the second splicing layer is used to splice the preprocessed data output by the third FCNN layer with the MMP value, and the fourth FCNN layer is used to process the spliced data output by the second splicing layer and output the probability that the data is real data.
2. The MMP prediction method based on conditional generative adversarial network according to claim 1, It is characterized in that The training sample is composed of first data and second data, wherein the first data is the MMP influencing factor data of the oil reservoir, and the second data is the MMP value of the oil reservoir; The training of the network weights of the discriminator based on the selected training samples specifically includes: For each selected training sample, respectively, combine the MMP prediction value output by the generator according to the first data of the training sample with the first data of the training sample to obtain combined data, and set the label of the combined data to 0; Set the label of each selected training sample to 1; The combined data after labeling and the training samples after labeling are input into the discriminator to train the network weights of the discriminator.
3. The MMP prediction method based on conditional generative adversarial network according to claim 2, It is characterized in that The method of training the network weights of the generator in the combined model consisting of the discriminator and the generator based on the selected training samples specifically includes: For each selected training sample, the first data of the training sample is input into the generator to obtain the MMP prediction value corresponding to the training sample output by the generator; For each selected training sample, respectively, combine the first data of the training sample with the MMP prediction value corresponding to the training sample to obtain combined data, and set the label of the combined data to 1; The combined data after labeling is input into the discriminator to obtain the probability that the combined data output by the discriminator is the real data.
4. The MMP prediction method based on conditional generative adversarial network according to claim 1, It is characterized in that The performing H1 iterations of training according to the training sample set to obtain the pre-trained generator comprises: The hyperparameter optimization method is used to optimize the number of iterative training H1, the number of training samples H2, the hyperparameters of the generator, and the hyperparameters of the discriminator to obtain the best parameter combination.
5. A MMP prediction device based on conditional generative adversarial network, It is characterized in that include: A data acquisition unit, used for acquiring MMP influencing factor data of a target oil reservoir; A prediction unit, used for inputting the MMP influencing factor data into a pre-trained generator to obtain the MMP prediction value of the target reservoir output by the pre-trained generator, wherein the generator is obtained by performing multiple iterations of training according to a training sample set, and each training sample in the training sample set includes: the MMP value of the reservoir and the MMP influencing factor data of the reservoir; A training sample set acquisition unit, used to acquire the training sample set; A model training unit, configured to perform H1 iterations of training according to the training sample set to obtain the pre-trained generator, wherein each iteration of training is divided into a plurality of batches of training, and when performing each batch of training, firstly select H2 training samples from the training sample set, and then train the network weights of the discriminator based on the selected training samples, and finally train the network weights of the generator in a combined model consisting of the discriminator and the generator based on the selected training samples, and H1 and H2 are both positive integers; The input of the generator is the MMP influencing factor data, and the output of the generator is the MMP predicted value; the network structure of the generator specifically includes: a first FCNN layer, a first splicing layer and a second FCNN layer, the first FCNN layer is used to preprocess the MMP influencing factor data, the first splicing layer is used to splice the preprocessed data output by the first FCNN layer with random noise, and the second FCNN layer is used to process the spliced data output by the first splicing layer and output the MMP predicted value; The input of the discriminator is the MMP influencing factor data and the MMP value, the MMP value includes the output of the generator as the MMP prediction value, and the output of the discriminator is the probability that the data is real data; the network structure of the discriminator specifically includes: a third FCNN layer, a second splicing layer and a fourth FCNN layer, the third FCNN layer is used to preprocess the MMP influencing factor data, the second splicing layer is used to splice the preprocessed data output by the third FCNN layer with the MMP value, and the fourth FCNN layer is used to process the spliced data output by the second splicing layer and output the probability that the data is real data.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
