Method and device for distinguishing exploration well types by weighted Mahalanobis distance with optimized weights
By optimizing weights, the weighted Mahalanobis distance discrimination method solves the problems of fixed weights and complex operations in the existing technology, improves the accuracy and efficiency of exploration well type discrimination, and realizes the application of optimal weight combinations.
Patent Information
- Application Number
- CN201911272603.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-12-12
AI Technical Summary
The existing weighted Mahalanobis distance discrimination method fixes the weights of each factor, resulting in the need to modify the weights for different samples. The operation process is complex and inconvenient for widespread application, and the success rate of discrimination is low.
By obtaining the geological factor parameters of oil and gas wells and dry wells, calculating the mean vector and covariance matrix of each parameter, a weighted Mahalanobis distance discrimination model is generated, and the weights are adjusted through optimization to reduce the discrimination error rate and form a weighted Mahalanobis distance with optimized weights. discriminant model.
The optimal weight combination of parameters based on various geological factors is achieved, which improves the accuracy and efficiency of exploration well type discrimination and reduces the complexity of model operation.
Smart Images

Figure CN112990238B
Abstract
Description
Technical Field
[0001] The present invention relates to the identification of exploration well types, and in particular to a method and a device for identifying the types of exploration wells by using weighted Mahalanobis distance with optimized weights. Background Art
[0002] Oil and gas exploration is characterized by high investment and high output, but due to its special characteristics such as long investment cycle, slow recovery and high risk, pre-drilling risk assessment, that is, identification of exploratory well types, has become an indispensable prerequisite for oil and gas exploration.
[0003] In 2007, Hu Suyun et al. proposed a method for predicting the spatial distribution of oil and gas using multivariate statistics and information processing technology. This method integrates information using the Mahalanobis distance discriminant method, calculates the probability of oil and gas in known samples using the Bayesian formula, and establishes a template for the probability of oil and gas under different Mahalanobis distance values. This template is then used to predict the probability of oil and gas resources in space, so as to effectively discriminate the type of exploration wells.
[0004] In order to improve the success rate of Mahalanobis distance discrimination, Meng Fanshun et al. (2011) introduced a distance discrimination analysis method based on principal component analysis, and regarded the classification of lithology using well logging data as a category discrimination problem. The sample category was discriminated by calculating the distance between the sample and each category. A lithology identification model for well logging interpretation was established, and the model was used to predict the test samples. The predicted results were more consistent with the actual results. Zhao Lin et al. (2007) proposed a weighted Mahalanobis distance discrimination method, and used the principal component analysis idea to obtain a method for determining weights.
[0005] The existing weighted Mahalanobis distance discriminant method fixes the weights of each factor, which causes the weights to be modified for different samples. It is not convenient for widespread application and the operation process is too complicated. Summary of the invention
[0006] In order to solve at least one of the above technical problems, the present invention proposes a method and device for distinguishing the type of exploration wells by using weighted Mahalanobis distance with optimized weights.
[0007] In order to achieve the above object, according to one aspect of the present invention, a method for distinguishing the type of exploration wells by using weighted Mahalanobis distance with optimized weights is provided, the method comprising:
[0008] Respectively obtain geological factor parameters of each well in the oil and gas well set and the dry well set;
[0009] Calculating the mean vector of oil and gas well parameters and the covariance matrix of oil and gas well parameters according to the geological factor parameters of each well in the oil and gas well set, and calculating the mean vector of dry well parameters and the covariance matrix of dry well parameters according to the geological factor parameters of each well in the dry well set;
[0010] A weighted Mahalanobis distance discriminant model is generated according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes weights of various geological factor parameters;
[0011] The weights of the geological factor parameters in the weight diagonal matrix are continuously optimized and adjusted so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, and a weighted Mahalanobis distance discrimination model with optimized weights is obtained, so as to perform type discrimination on the exploration wells to be discriminated according to the weighted Mahalanobis distance discrimination model with optimized weights.
[0012] Optionally, the method further includes:
[0013] Obtain geological factor parameters of the exploration well to be identified;
[0014] According to the geological factor parameters and the weighted Mahalanobis distance discrimination model of the optimized weight, the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well are calculated respectively;
[0015] The type of the exploration well to be identified is determined according to the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well.
[0016] Optionally, the step of continuously optimizing and adjusting the weights of the geological factor parameters in the weight diagonal matrix so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set includes:
[0017] When the total number of samples in the oil and gas well set and the dry well set is less than or equal to a preset value, the weight of each geological factor parameter is searched traversally within the first weight interval according to a preset step length;
[0018] When the total number of samples in the oil and gas well set and the dry well set is greater than a preset value, a genetic algorithm is used to perform a weight optimization search on the weight of each geological factor parameter within a second weight interval.
[0019] Optionally, a weighted Mahalanobis distance discriminant model is generated according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the formula of the weighted Mahalanobis distance discriminant model is:
[0020]
[0021] in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μ dry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters.
[0022] In order to achieve the above object, according to another aspect of the present invention, a device for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with an optimized weight is provided, the device comprising:
[0023] The training set parameter acquisition unit is used to respectively acquire the geological factor parameters of each well in the oil and gas well set and the dry well set;
[0024] An intermediate parameter calculation unit, used to calculate the mean vector of oil and gas well parameters and the covariance matrix of oil and gas well parameters according to the geological factor parameters of each well in the oil and gas well set, and to calculate the mean vector of dry well parameters and the covariance matrix of dry well parameters according to the geological factor parameters of each well in the dry well set;
[0025] A weighted Mahalanobis distance discriminant model generating unit, used for generating a weighted Mahalanobis distance discriminant model according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes weights of various geological factor parameters;
[0026] The model optimization unit is used to continuously optimize and adjust the weights of the geological factor parameters in the weight diagonal matrix so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, so as to obtain the weighted Mahalanobis distance discrimination model with optimized weights, and to perform type discrimination on the exploration wells to be discriminated according to the weighted Mahalanobis distance discrimination model with optimized weights.
[0027] Optionally, the device further comprises:
[0028] A parameter acquisition unit for the exploration well to be identified, used to obtain geological factor parameters of the exploration well to be identified;
[0029] A weighted Mahalanobis distance calculation unit is used to calculate the weighted Mahalanobis distance of the exploration well to be identified to the oil and gas well and the weighted Mahalanobis distance of the exploration well to be identified to the dry well according to the geological factor parameters and the weighted Mahalanobis distance discrimination model with the optimized weights;
[0030] The exploration well type determination unit is used to determine the type of the exploration well to be identified according to the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well.
[0031] Optionally, the model optimization unit includes:
[0032] A first weight optimization and adjustment module is used to search the weight of each geological factor parameter within a first weight interval according to a preset step length when the total number of samples in the oil and gas well set and the dry well set is less than or equal to a preset value;
[0033] The second weight optimization adjustment module is used to use a genetic algorithm to perform a weight optimization search on the weight of each geological factor parameter within a second weight interval when the total number of samples in the oil and gas well set and the dry well set is greater than a preset value.
[0034] Optionally, the formula of the weighted Mahalanobis distance discriminant model used in the weighted Mahalanobis distance discriminant model generation unit is:
[0035]
[0036] in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μ dry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters.
[0037] 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 in the method for discriminating the type of exploration well by using the weighted Mahalanobis distance with optimized weights are implemented.
[0038] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed in a computer processor, the steps in the method of using the weighted Mahalanobis distance with optimized weights to distinguish the type of exploration well are implemented.
[0039] The beneficial effects of the present invention are as follows: In order to emphasize the different effects of various geological factor parameters, the embodiment of the present invention introduces an optimal weight, and forms a method for distinguishing the type of exploration wells by weighted Mahalanobis distance with optimized weights, that is, the participation of each geological factor parameter depends on the feedback of the optimal effect after the comprehensive effect of various geological factor parameters. In other words, the combination with the best discrimination effect is found through optimization, and the weights of various geological factor parameters are determined. In this way, the best discrimination effect can be met without increasing the complexity of model operation, thereby improving the discrimination accuracy and use efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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:
[0041] Figure 1 This is a first flow chart of a method for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention;
[0042] Figure 2 is a second flow chart of a method for discriminating an exploration well type by using a weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention;
[0043] Figure 3 It is a flow chart of optimizing and adjusting the weights of various geological factor parameters according to an embodiment of the present invention;
[0044] Figure 4 This is a first structural block diagram of a device for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention;
[0045] Figure 5 This is a second structural block diagram of a device for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention;
[0046] Figure 6 It is a structural block diagram of the model optimization unit of an embodiment of the present invention;
[0047] Figure 7 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] Figure 1 is a first flow chart of a method for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention. Figure 1 As shown, the method for distinguishing the type of an exploration well by using the weighted Mahalanobis distance with optimized weights in this embodiment includes steps S101 to S104.
[0053] Step S101, respectively obtaining geological factor parameters of each well in the oil and gas well set and the dry well set.
[0054] In an optional embodiment of the present invention, the exploration wells can be divided into two categories: oil and gas wells and dry wells, which are denoted as G and oil and G dry Two sets, the embodiment of the present invention adopts the Dongying Formation in the Nanpu Sag of the Bohai Bay Basin, China to explore the target layer, there are 222 known exploration wells, of which the oil and gas well set includes 66 wells, and the dry well set includes 156 wells.
[0055] In an optional embodiment of the present invention, geological factors affecting oil and gas accumulation are determined through geological research, and a discrimination parameter system is established, that is, geological factor parameters affecting oil and gas accumulation are determined. In an optional embodiment of the present invention, 7 geological factor parameters affecting oil and gas accumulation are determined through geological research, namely: factor 1: fluid potential; factor 2: altitude; factor 3: relative structure; factor 4: reservoir thickness; factor 5: reservoir percentage; factor 6: hydrocarbon generation intensity; factor 7: cap rock thickness. A parameter system consisting of 7 geological factor parameters is formed.
[0056] In an embodiment of the present invention, according to the parameter system constructed above, the geological factor parameters of each exploration well are determined in turn to form a training set. When generating a training set, it is necessary to perform numerical processing on the descriptive parameters so that all parameters are numerical. In an embodiment of the present invention, parameter values can be determined for 222 wells in turn to form a training set, that is, a known sample data body, as shown in Table 1 below.
[0057]
[0058] Table 1
[0059] Step S102, calculating the oil and gas well parameter mean vector and the oil and gas well parameter covariance matrix according to the geological factor parameters of each well in the oil and gas well set, and calculating the dry well parameter mean vector and the dry well parameter covariance matrix according to the geological factor parameters of each well in the dry well set.
[0060] In the embodiment of the present invention, this step calculates the mean vector μ of the geological factor parameters of the dry well according to the data in the training set. dry , the mean vector μ of geological factor parameters of oil and gas wells oil , the covariance matrix of the geological factor parameters of the dry well And the covariance matrix of geological factor parameters of oil and gas wells
[0061] Step S103, generating a weighted Mahalanobis distance discriminant model according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes weights of various geological factor parameters.
[0062] In the embodiment of the present invention, the weighted Mahalanobis distance discriminant model may be:
[0063]
[0064] in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μdry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, is the inverse matrix of the dry well parameter covariance matrix, is the inverse matrix of the oil and gas well parameter covariance matrix, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters.
[0065] Step S104, by continuously optimizing and adjusting the weights of the geological factor parameters in the weight diagonal matrix, the generated weighted Mahalanobis distance discriminant model has the lowest discrimination error rate for the oil and gas well set and the dry well set, and the weighted Mahalanobis distance discriminant model with optimized weights is obtained, so as to perform type discrimination on the exploration wells to be discriminated according to the weighted Mahalanobis distance discriminant model with optimized weights.
[0066] In the embodiment of the present invention, this step finds the best weight combination for discrimination effect through optimization, determines the weights of various geological factor parameters, and then uses the best weight combination for discrimination effect as the weighted Mahalanobis distance discrimination model to obtain the optimized weights.
[0067] The optimal weight search of the present invention specifically includes:
[0068] 1. Weight optimization method: when there are fewer parameters, each weight can be searched in the interval [0.5, 2] with a step size of 0.1; when there are more parameters, a genetic algorithm can be used to optimize the weights in the interval [0.5, 2].
[0069] 2. Calculate the discrimination error rate of the weighted Mahalanobis distance discriminant model for the training set under each weight combination.
[0070] 3. Optimal weight search: Use the weight optimization method in 1 to optimize the weights of the geological factor parameters so that the weighted Mahalanobis distance discriminant model has the lowest discrimination error rate for the training set. The objective function can be:
[0071] Min{err(W)=weighted Mahalanobis distance error rate for training set}
[0072] Where W is the weight diagonal matrix.
[0073] The optimal weight obtained through the above steps is recorded as W best , and the optimal weight is recorded as W best The weight diagonal matrix W in the weighted Mahalanobis distance discriminant model is replaced to obtain a weighted Mahalanobis distance discriminant model with optimized weights.
[0074] The optimal weights searched in the optional embodiment of the present invention can be seen in Table 2, namely:
[0075]
[0076] factor Factor 1 Factor 2 Factor 3 Factor 4 Factor 5 Factor 6 Factor 7 Weight 1.4 0.8 1.0 1.3 1.2 1.3 0.8
[0077] Table 2
[0078] It can be seen from the above description that in order to emphasize the different effects of various geological factor parameters, the embodiment of the present invention introduces an optimal weight to form a weighted Mahalanobis distance method for discriminating the type of exploration wells with optimized weights, that is, the participation of each geological factor parameter depends on the feedback of the optimal effect after the comprehensive effect of various geological factor parameters. In other words, the combination with the best discrimination effect is found through optimization, and the weights of various geological factor parameters are determined. In this way, the best discrimination effect can be met without increasing the complexity of model operation, thereby improving the discrimination accuracy and utilization efficiency.
[0079] The following table 3 is a comparison of the training set data discrimination results using the discrimination method of the present invention and the discrimination results of other similar methods. It can be seen from Table 3 that, through experimental verification, the discrimination method of the present invention has a higher accuracy rate than other similar methods.
[0080]
[0081]
[0082] Table 3
[0083] Figure 2 The flowchart of the method for using the weighted Mahalanobis distance discrimination model with optimized weights obtained in step S104 to discriminate the type of unknown exploration wells is as follows: Figure 2 As shown, the method for distinguishing the type of an exploration well by using the weighted Mahalanobis distance with optimized weights according to the embodiment of the present invention further includes steps S201 to S203.
[0084] Step S201, obtaining geological factor parameters of the exploration well to be identified.
[0085] Step S202, according to the geological factor parameters and the weighted Mahalanobis distance discrimination model of the optimized weight, respectively calculate the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well.
[0086] In the embodiment of the present invention, this step calculates the weighted Mahalanobis distance of the exploration well x to be identified to the oil and gas well according to the weighted Mahalanobis distance discrimination model with optimized weights obtained in step S104 above. And the weighted Mahalanobis distance between the exploration well x to be identified and the dry well
[0087] Step S203, determining the type of the exploration well to be identified according to the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well.
[0088] In the embodiment of the present invention, if Then the exploration well x to be identified is judged to be an oil and gas well, otherwise x is a dry well.
[0089] In an optional embodiment of the present invention, a data set of 17 unknown wells (exploratory wells to be identified) is established. The Mahalanobis distances of the 17 unknown well samples to oil and gas wells and dry wells are calculated one by one according to the weighted Mahalanobis distance discrimination model with optimized weights of the present invention, and the well type is determined according to the distance. The discrimination results are shown in Table 4.
[0090]
[0091]
[0092] Table 4
[0093] Figure 3 is a flow chart of optimizing and adjusting the weights of various geological factor parameters according to an embodiment of the present invention, such as Figure 3 As shown, the above step S104 continuously optimizes and adjusts the weights of the geological factor parameters in the weight diagonal matrix so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, including step S301 and step S302.
[0094] Step S301: When the total number of samples in the oil and gas well set and the dry well set is less than or equal to a preset value, the weight of each geological factor parameter is traversed and searched in a first weight interval according to a preset step length.
[0095] In an optional embodiment of the present invention, the preset value may range from [5, 20], the first weight interval may range from [0.5, 2], and the preset step size may range from [0.5, 0.2].
[0096] Step S302: When the total number of samples in the oil and gas well set and the dry well set is greater than a preset value, a genetic algorithm is used to perform a weight optimization search on the weight of each geological factor parameter within a second weight interval.
[0097] In an optional embodiment of the present invention, the preset value may range from [5, 20], and the second weight interval may range from [0.5, 2].
[0098] In an optional embodiment of the present invention, in order to achieve a better optimal weight search effect, when there are fewer samples in the training set, the present invention can traverse and search each weight in the interval [0.5, 2] with a step size of 0.1; and when there are more samples in the training set, a genetic algorithm can be used to optimize the search for each weight in the interval [0.5, 2].
[0099] 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.
[0100] Based on the same inventive concept, an embodiment of the present invention also provides a device for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights, which can be used to implement the method for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the device for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights is similar to the method for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights, the embodiment of the device for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights can refer to the embodiment of the method for distinguishing the type of an exploration well by using a weighted Mahalanobis distance with optimized weights, 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 embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0101] Figure 4 is a first structural block diagram of a device for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention, such as Figure 4 As shown, the device for distinguishing the type of exploration wells by weighted Mahalanobis distance with optimized weights according to the embodiment of the present invention comprises: a training set parameter acquisition unit 1, an intermediate parameter calculation unit 2, a weighted Mahalanobis distance discrimination model generation unit 3 and a model optimization unit 4.
[0102] The training set parameter acquisition unit 1 is used to respectively acquire the geological factor parameters of each well in the oil and gas well set and the dry well set.
[0103] The intermediate parameter calculation unit 2 is used to calculate the oil and gas well parameter mean vector and the oil and gas well parameter covariance matrix according to the geological factor parameters of each well in the oil and gas well set, and to calculate the dry well parameter mean vector and the dry well parameter covariance matrix according to the geological factor parameters of each well in the dry well set.
[0104] The weighted Mahalanobis distance discriminant model generating unit 3 is used to generate a weighted Mahalanobis distance discriminant model according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes the weights of various geological factor parameters.
[0105] In an optional embodiment of the present invention, the formula of the weighted Mahalanobis distance discriminant model used in the weighted Mahalanobis distance discriminant model generation unit 3 can be:
[0106]
[0107] in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μ dry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters.
[0108] The model optimization unit 4 is used to continuously optimize and adjust the weights of the geological factor parameters in the weight diagonal matrix so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, so as to obtain the weighted Mahalanobis distance discrimination model with optimized weights, and to perform type discrimination on the exploration wells to be discriminated according to the weighted Mahalanobis distance discrimination model with optimized weights.
[0109] Figure 5 : is a second structural block diagram of a device for distinguishing exploration well types by using weighted Mahalanobis distance with optimized weights according to an embodiment of the present invention, such as Figure 5 As shown, the device for distinguishing the type of an exploration well by using the weighted Mahalanobis distance with optimized weights according to the embodiment of the present invention further includes: a parameter acquisition unit 5 for the exploration well to be distinguished, a weighted Mahalanobis distance calculation unit 6 and an exploration well type determination unit 7.
[0110] The parameter acquisition unit 5 of the exploration well to be identified is used to acquire the geological factor parameters of the exploration well to be identified.
[0111] The weighted Mahalanobis distance calculation unit 6 is used to calculate the weighted Mahalanobis distance of the exploration well to be identified to the oil and gas well and the weighted Mahalanobis distance of the exploration well to be identified to the dry well according to the geological factor parameters and the weighted Mahalanobis distance discrimination model with the optimized weights.
[0112] The exploration well type determination unit 7 is used to determine the type of the exploration well to be identified according to the weighted Mahalanobis distance between the exploration well to be identified and the oil and gas well and the weighted Mahalanobis distance between the exploration well to be identified and the dry well.
[0113] Figure 6 is a structural block diagram of the model optimization unit of the embodiment of the present invention, such as Figure 6 As shown, the model optimization unit 4 includes: a first weight optimization adjustment module 401 and a second weight optimization adjustment module 402.
[0114] The first weight optimization and adjustment module 401 is used to search the weight of each geological factor parameter within the first weight interval according to a preset step length when the total number of samples in the oil and gas well set and the dry well set is less than or equal to a preset value.
[0115] The second weight optimization adjustment module 402 is used to use a genetic algorithm to perform a weight optimization search on the weight of each geological factor parameter within a second weight interval when the total number of samples in the oil and gas well set and the dry well set is greater than a preset value.
[0116] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 7 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.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0121] 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.
[0122] 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 when the computer program is executed in a computer processor, the steps in the method for discriminating the type of exploration well by weighted Mahalanobis distance with the above-mentioned optimized weights are implemented. Those skilled in the art can understand that the implementation of all or part of the processes 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 when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. 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.
[0123] 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.
[0124] 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 method for distinguishing exploration well types using weighted Mahalanobis distance with optimized weights. It is characterized in that include: Respectively obtain geological factor parameters of each well in the oil and gas well set and the dry well set, wherein the geological factor parameters include: fluid potential, altitude, relative structure, reservoir thickness, reservoir percentage, hydrocarbon generation intensity and cap rock thickness; Calculating the mean vector of oil and gas well parameters and the covariance matrix of oil and gas well parameters according to the geological factor parameters of each well in the oil and gas well set, and calculating the mean vector of dry well parameters and the covariance matrix of dry well parameters according to the geological factor parameters of each well in the dry well set; A weighted Mahalanobis distance discriminant model is generated according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes the weights of the parameters of each geological factor, and the weighted Mahalanobis distance discriminant model is: in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μ dry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters; The weights of the geological factor parameters in the weight diagonal matrix are continuously optimized and adjusted so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, and a weighted Mahalanobis distance discrimination model with optimized weights is obtained, so as to discriminate the type of the exploration well to be discriminated according to the weighted Mahalanobis distance discrimination model with optimized weights; Obtain geological factor parameters of the exploration well to be identified; The weighted Mahalanobis distance of the exploration well to be identified to the oil and gas well is calculated according to the geological factor parameters and the weighted Mahalanobis distance discrimination model of the optimized weight. And the weighted Mahalanobis distance between the exploration well to be identified and the dry well if Then it is determined that the exploration well x to be identified is an oil and gas well, otherwise the exploration well x to be identified is a dry well; The weights of the geological factor parameters in the weight diagonal matrix are continuously optimized and adjusted so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, thereby obtaining a weighted Mahalanobis distance discrimination model with optimized weights, including: When the total number of samples in the oil and gas well set and the dry well set is less than or equal to the preset value, the weight of each geological factor parameter is searched in the interval [0.5, 2] with a step length of 0.1; When the total number of samples in the oil and gas well set and the dry well set is greater than the preset value, a genetic algorithm is used to optimize the weight of each geological factor parameter in the interval [0.5, 2]; Calculate the discrimination error rate of the weighted Mahalanobis distance discrimination model for the training set under each weight combination; The weight optimization method mentioned above is used to optimize the weights of the parameters of each geological factor so that the weighted Mahalanobis distance discriminant model has the lowest discrimination error rate for the training set. The objective function is: Min{err(W)=weighted Mahalanobis distance error rate for training set} Where W is the weight diagonal matrix; The optimal weight obtained through the above steps is W best , and denote the optimal weight W best The weight diagonal matrix W in the weighted Mahalanobis distance discriminant model is replaced to obtain a weighted Mahalanobis distance discriminant model with optimized weights.
2. A device for distinguishing the type of exploration wells using weighted Mahalanobis distance with optimized weights, It is characterized in that include: A training set parameter acquisition unit is used to respectively acquire geological factor parameters of each well in the oil and gas well set and the dry well set, wherein the geological factor parameters include: fluid potential, altitude, relative structure, reservoir thickness, reservoir percentage, hydrocarbon generation intensity and caprock thickness; An intermediate parameter calculation unit, used to calculate the mean vector of oil and gas well parameters and the covariance matrix of oil and gas well parameters according to the geological factor parameters of each well in the oil and gas well set, and to calculate the mean vector of dry well parameters and the covariance matrix of dry well parameters according to the geological factor parameters of each well in the dry well set; The weighted Mahalanobis distance discriminant model generating unit is used to generate a weighted Mahalanobis distance discriminant model according to the oil and gas well parameter mean vector, the oil and gas well parameter covariance matrix, the dry well parameter mean vector, the dry well parameter covariance matrix and a preset weight diagonal matrix, wherein the weight diagonal matrix includes the weights of the parameters of various geological factors, and the weighted Mahalanobis distance discriminant model is: in, is the weighted Mahalanobis distance between the exploration well x to be identified and the oil and gas well, is the weighted Mahalanobis distance between the exploration well x to be identified and the dry well, μ dry is the mean vector of dry well parameters, μ oil is the mean vector of oil and gas well parameters, is the dry well parameter covariance matrix, is the covariance matrix of oil and gas well parameters, and W is the weight diagonal matrix, that is: Where W 1 ,W 2 …is the weight of geological factor parameters; A model optimization unit is used to continuously optimize and adjust the weights of the geological factor parameters in the weight diagonal matrix so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, so as to obtain a weighted Mahalanobis distance discrimination model with optimized weights, and to perform type discrimination on the exploration well to be discriminated according to the weighted Mahalanobis distance discrimination model with optimized weights; A parameter acquisition unit for the exploration well to be identified, used to obtain geological factor parameters of the exploration well to be identified; A weighted Mahalanobis distance calculation unit is used to calculate the weighted Mahalanobis distance of the exploration well to be identified to the oil and gas well according to the geological factor parameters and the weighted Mahalanobis distance discrimination model with the optimized weight. And the weighted Mahalanobis distance between the exploration well to be identified and the dry well The exploration well type determination unit is used if Then it is determined that the exploration well x to be identified is an oil and gas well, otherwise the exploration well x to be identified is a dry well; The weights of the geological factor parameters in the weight diagonal matrix are continuously optimized and adjusted so that the generated weighted Mahalanobis distance discrimination model has the lowest discrimination error rate for the oil and gas well set and the dry well set, thereby obtaining a weighted Mahalanobis distance discrimination model with optimized weights, including: When the total number of samples in the oil and gas well set and the dry well set is less than or equal to the preset value, the weight of each geological factor parameter is searched in the interval [0.5, 2] with a step length of 0.1; When the total number of samples in the oil and gas well set and the dry well set is greater than the preset value, a genetic algorithm is used to optimize the weight of each geological factor parameter in the interval [0.5, 2]; Calculate the discrimination error rate of the weighted Mahalanobis distance discrimination model for the training set under each weight combination; The weight optimization method mentioned above is used to optimize the weights of the parameters of each geological factor so that the weighted Mahalanobis distance discriminant model has the lowest discrimination error rate for the training set. The objective function is: Min{err(W)=weighted Mahalanobis distance error rate for training set} Where W is the weight diagonal matrix; The optimal weight obtained through the above steps is W best , and denote the optimal weight W best The weight diagonal matrix W in the weighted Mahalanobis distance discriminant model is replaced to obtain a weighted Mahalanobis distance discriminant model with optimized weights.
3. 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 of claim 1 are implemented.
4. A computer-readable storage medium storing a computer program, It is characterized in that The computer program implements the steps of the method according to claim 1 when executed in a computer processor.
