CN110852144A - A DTW-based intelligent stratigraphic comparison method and system - Google Patents
A DTW-based intelligent stratigraphic comparison method and system Download PDFInfo
- Publication number
- CN110852144A CN110852144A CN201910785222.1A CN201910785222A CN110852144A CN 110852144 A CN110852144 A CN 110852144A CN 201910785222 A CN201910785222 A CN 201910785222A CN 110852144 A CN110852144 A CN 110852144A
- Authority
- CN
- China
- Prior art keywords
- matching cost
- data
- formation
- matching
- dtw
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 95
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 60
- 238000001514 detection method Methods 0.000 claims abstract description 40
- 238000007781 pre-processing Methods 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims abstract description 5
- 239000011159 matrix material Substances 0.000 claims description 66
- 230000008859 change Effects 0.000 claims description 43
- 238000010606 normalization Methods 0.000 claims description 23
- 238000004364 calculation method Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 claims description 16
- 239000000284 extract Substances 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 6
- 230000000877 morphologic effect Effects 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 2
- 238000005755 formation reaction Methods 0.000 description 72
- 230000006870 function Effects 0.000 description 11
- 230000001186 cumulative effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005457 optimization Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000018109 developmental process Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 208000035126 Facies Diseases 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
- 230000008929 regeneration Effects 0.000 description 1
- 238000011069 regeneration method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000013517 stratification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/08—Feature extraction
- G06F2218/10—Feature extraction by analysing the shape of a waveform, e.g. extracting parameters relating to peaks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Entrepreneurship & Innovation (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- Life Sciences & Earth Sciences (AREA)
- Quality & Reliability (AREA)
- General Business, Economics & Management (AREA)
- Bioinformatics & Computational Biology (AREA)
- Development Economics (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Operations Research (AREA)
- Signal Processing (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
Description
技术领域technical field
本发明涉及地层数据处理技术领域,特别是一种基于DTW的智能地层对比方法和系统。The invention relates to the technical field of formation data processing, in particular to an intelligent formation comparison method and system based on DTW.
背景技术Background technique
随着油田勘探工作的逐步深化,勘探对象越来越复杂,勘探目标优选及探井部署要求研究工作也越来越细化。油气勘探开发是一个对地下油气藏数据不断采集、加工处理并转换为信息的过程,数据中有信息,信息中有油气资源。如何在统一的计算环境下,最大限度地利用先进的软硬件工具,使这些反应复杂地质对象的数据能够全面、高效地集成并以可视化的方式直观、方便地显示在研究人员面前,从而对地质数据能够加以更加深入地分析应用,进而对勘探工作提供决策支持,已经成为石油行业的发展需要。With the gradual deepening of oilfield exploration work, the exploration objects are becoming more and more complex, and the research work on the selection of exploration targets and the deployment of exploration wells is also becoming more and more refined. Oil and gas exploration and development is a process of continuously collecting, processing and converting data of underground oil and gas reservoirs into information. There is information in the data and oil and gas resources in the information. How to maximize the use of advanced software and hardware tools in a unified computing environment, so that these data reflecting complex geological objects can be integrated comprehensively and efficiently and displayed in front of researchers in a visual way intuitively and conveniently, so as to understand the geological Data can be more deeply analyzed and applied, and then provide decision support for exploration work, which has become the development needs of the oil industry.
地层对比是研究地层结构、构造和沉积环境的基础工作之一,是油气勘探开发中必不可少的工作,当前仍以手工对比为主,相关计算机程序的开发很欠缺。手工对比的好坏取决于人的知识结构和经验积累,因此,同一区块,不同人员的解释也不同,重复性差,多解性强,测井地质人员进行地层对比时,考虑的并非仅是曲线的形态,而是综合曲线的多种信息,依据丰富的知识得到最优解,但这种对比劳动强度大,工作效率低;现有的计算机程序对比根据以深度,厚度,均值和方差等参数作为权重来进行对比,对比效果极其依赖深度和厚度等信息,大的旋回对比时,岩性特征无法使用,没有考虑曲线形态信息所反映的地质意义;利用机器学习等方法进行地层的聚类和分类,这样的方法没有考虑沃尔索相律,层序地层学等地质规律,仅仅考虑曲线参数的相似性,缺乏可解释性。Stratigraphic correlation is one of the basic tasks for the study of stratigraphic structure, structure and sedimentary environment, and it is an indispensable work in oil and gas exploration and development. The quality of manual comparison depends on people's knowledge structure and experience accumulation. Therefore, in the same block, the interpretation of different personnel is also different, the repeatability is poor, and the multi-solution is strong. When logging geologists perform stratigraphic comparison, they consider not only the curve. shape, but a variety of information of the comprehensive curve, and the optimal solution is obtained based on rich knowledge, but this comparison is labor-intensive and low-efficiency; the existing computer programs are compared based on parameters such as depth, thickness, mean and variance. The comparison effect is extremely dependent on information such as depth and thickness. When comparing large cycles, the lithological characteristics cannot be used, and the geological significance reflected by the curve shape information is not considered. Machine learning and other methods are used to cluster and classify the strata. , this method does not consider the Walsau facies law, sequence stratigraphy and other geological laws, but only considers the similarity of curve parameters, which lacks interpretability.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术采用人工地层对比工作强度大、效率低、重复性差,且现有计算机程序对比方法缺乏可解释性等问题,本发明提供一种基于DTW的智能地层对比方法,基于DTW(动态时间规整)算法,融合测井曲线形态相似度、深度、厚度和均值等特征参数进行测井曲线匹配代价,进而利用动态波形匹配算法进行地层对比以对地层单元匹配的方法,能够更精确地进行地层的智能对比,提高了地层对比效率。本发明还涉及一种基于DTW的智能地层对比系统。In order to solve the problems of high intensity, low efficiency, poor repeatability, and lack of interpretability of existing computer program comparison methods in the prior art, the present invention provides an intelligent formation comparison method based on DTW, which is based on DTW (dynamic Time warping) algorithm, which integrates the characteristic parameters such as log curve shape similarity, depth, thickness and mean value to carry out the log curve matching cost, and then uses the dynamic waveform matching algorithm to perform stratigraphic comparison to match the stratigraphic unit, which can be performed more accurately. The intelligent comparison of strata improves the efficiency of stratum comparison. The invention also relates to an intelligent stratigraphic comparison system based on DTW.
本发明技术方案:Technical scheme of the present invention:
一种基于DTW的智能地层对比方法,包括以下步骤:A DTW-based intelligent stratigraphic correlation method, comprising the following steps:
第一步骤:获取原始测井数据并进行归一化预处理形成归一化测井数据;The first step: obtaining the original logging data and performing normalization preprocessing to form normalized logging data;
第二步骤:采用基于滑动窗口的变点检测算法提取所述归一化测井数据的变点信息,以对每口井的测井曲线进行分层获得不同级别的地层单元;The second step: using a sliding window-based change point detection algorithm to extract the change point information of the normalized logging data, so as to layer the logging curves of each well to obtain stratigraphic units of different levels;
第三步骤:提取待对比井各自的测井曲线特征,所述测井曲线特征至少包括测井曲线形态相似度、深度、厚度和均值信息,所述测井曲线形态相似度信息通过DTW算法获取;再通过动态波形匹配算法计算处理所述测井曲线特征确定地层的匹配路径,回溯所述匹配路径对地层单元进行匹配以判断地层是否有缺失并输出。The third step: extracting the log curve features of the wells to be compared, the log curve features at least include log curve shape similarity, depth, thickness and mean information, and the log curve shape similarity information is obtained through the DTW algorithm and then determine the matching path of the formation by calculating and processing the log curve feature through the dynamic waveform matching algorithm, and backtracking the matching path to match the formation unit to judge whether the formation is missing and output.
所述第三步骤包括以下步骤:The third step includes the following steps:
S31:提取待对比井的测井曲线形态相似度以及至少深度、厚度和均值信息,所述测井曲线形态相似度通过DTW算法计算获取;S31 : extracting the log curve shape similarity and at least depth, thickness and mean value information of the well to be compared, and the log curve shape similarity is calculated and obtained by the DTW algorithm;
S32:依次计算对比井的每个地层单元的距离系数/局部匹配代价建立局部匹配代价矩阵;S32: Calculate the distance coefficient/local matching cost of each formation unit of the comparison well in turn to establish a local matching cost matrix;
S33:基于所述局部匹配代价矩阵,通过动态波形匹配算法获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价;S33: Based on the local matching cost matrix, obtain a global matching cost matrix through a dynamic waveform matching algorithm, and filter out the minimum global matching cost in the global matching cost matrix;
S34:回溯所述最小全局匹配代价获取最短路径,根据判断准则对地层单元进行匹配以判断是否有缺失地层并输出。S34: Backtracking the minimum global matching cost to obtain the shortest path, and matching the formation units according to the judgment criterion to judge whether there is a missing formation and output it.
所述第一步骤包括以下步骤:针对不同来源的测井数据,首先分别提取各来源测井数据中占比95%的数据作为最大值、占比5%的数据作为最小值,再结合归一化计算公式分别获得各来源测井数据的归一化测井数据,使得各来源测井数据的数值范围均分布在[0,1]之间。The first step includes the following steps: for the logging data from different sources, firstly extract the data accounting for 95% of the logging data from each source as the maximum value and the data accounting for 5% as the minimum value, and then combine the normalization data. The normalized logging data of each source is obtained by using the normalized calculation formula, so that the numerical range of the logging data from each source is distributed between [0, 1].
所述第二步骤包括以下步骤:沿数据流选取等长度的两个滑动窗口,通过变点检测算法将两个滑动窗的每个统计特性进行比较获取差异度量;根据所述差异度量与数据流的关系绘制差异曲线;检测所述差异曲线的峰值,沿数据流重复上述过程直到完成每口井中的所有数据流内的变点检测,在每个变点对所述测井曲线进行分层,获得不同级别的地层单元。The second step includes the following steps: selecting two sliding windows of equal length along the data stream, and comparing each statistical characteristic of the two sliding windows through a change point detection algorithm to obtain a difference metric; according to the difference metric and the data stream Draw a difference curve according to the relationship; detect the peak value of the difference curve, repeat the above process along the data stream until the change point detection in all data streams in each well is completed, and stratify the log curve at each change point, Obtain different levels of stratigraphic units.
所述变点检测算法以所选取的两个滑动窗口内的损失函数与单独每个滑动窗口的损失函数的差计算所述差异度量,所述损失函数检测高斯函数投影到高维的再生希尔伯特空间的信号的均值变化。The change point detection algorithm calculates the difference metric as the difference between the loss function in the selected two sliding windows and the loss function of each sliding window alone, and the loss function detects the projection of the Gaussian function to the high-dimensional regeneration Hill. The mean change of the signal in Bert space.
一种基于DTW的智能地层对比系统,包括依次连接的第一装置、第二装置和第三装置,A DTW-based intelligent stratigraphic comparison system, comprising a first device, a second device and a third device connected in sequence,
所述第一装置,获取原始测井数据并进行归一化预处理形成归一化测井数据;The first device obtains original logging data and performs normalization preprocessing to form normalized logging data;
所述第二装置,采用基于滑动窗口的变点检测算法提取所述归一化测井数据的变点信息,以对每口井的测井曲线进行分层获得不同级别的地层单元;The second device adopts a sliding-window-based change-point detection algorithm to extract the change-point information of the normalized logging data, so as to stratify the logging curves of each well to obtain formation units of different levels;
所述第三装置,提取待对比井各自的测井曲线特征,所述测井曲线特征至少包括测井曲线形态相似度、深度、厚度和均值信息,所述测井曲线形态相似度信息通过DTW算法获取;再通过动态波形匹配算法计算处理所述测井曲线特征确定匹配路径,回溯所述匹配路径对地层单元进行匹配以判断是否有缺失地层并输出。The third device extracts the log curve features of the wells to be compared, the log curve features at least include log curve shape similarity, depth, thickness and mean information, and the log curve shape similarity information is obtained through DTW Algorithm acquisition; then calculate and process the log curve features through a dynamic waveform matching algorithm to determine a matching path, backtrack the matching path to match formation units to determine whether there is a missing formation and output.
所述第一装置包括依次连接的数据获取装置和归一化预处理装置,所述数据获取装置接收原始测井数据,并发送给所述归一化预处理装置,所述归一化预处理装置将不同来源的原始数据均转化为在[0,1]范围内分布的归一化测井数据。The first device includes a data acquisition device and a normalization preprocessing device connected in sequence, the data acquisition device receives the original logging data and sends it to the normalization preprocessing device, and the normalization preprocessing The device converts raw data from different sources into normalized logging data distributed in the range of [0,1].
所述第二装置包括依次连接的变点检测装置和分层装置,所述变点检测装置包括依次连接的数据选取装置、差异特性计算装置、曲线生成装置和峰值检测装置,所述数据选取装置与所述归一化预处理装置连接,用于接收归一化测井数据并沿数据流选取等长度的两个滑动窗口,所述差异特性计算装置将两个滑动窗的每个统计特性进行比较通过变点检测算法计算得到差异度量值,所述曲线生成装置将所述差异度量沿数据流绘制出差异曲线,所述峰值检测装置检测所述差异曲线的峰值,所述分层装置与峰值检测装置连接,用于在每个变点处对测井曲线分层,获得不同级别的地层单元。The second device includes a change point detection device and a layering device connected in sequence, the change point detection device includes a data selection device, a difference characteristic calculation device, a curve generation device and a peak detection device connected in sequence, the data selection device It is connected with the normalization preprocessing device and is used for receiving normalized logging data and selecting two sliding windows of equal length along the data stream. The difference characteristic calculating device calculates each statistical characteristic of the two sliding windows. Comparing the difference metric value calculated by the change point detection algorithm, the curve generating device draws the difference metric along the data stream to draw a difference curve, the peak detection device detects the peak value of the difference curve, and the layering device is related to the peak value. The detection device is connected for layering the log curve at each change point to obtain different levels of formation units.
所述第三装置包括依次连接的曲线形态相似度计算装置、特征提取装置、匹配装置、缺失判断装置和输出装置,所述曲线形态相似度计算装置与所述分层装置连接,基于DTW算法计算待对比的两条测井曲线的任意两个地层单元之间的测井曲线形态相似度,所述特征提取装置提取所述测井曲线形态相似度以及待对比的两条测井曲线的每个地层单元的至少深度、地层厚度和均值信息,所述匹配装置依次计算对比井的每个地层单元的距离系数/局部匹配代价建立局部匹配代价矩阵,基于所述局部匹配代价矩阵,通过动态波形匹配算法获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价,回溯所述最小全局匹配代价获取最短路径,所述缺失判断装置根据判断准则对地层单元进行匹配和判断是否有缺失地层,所述输出装置输出结果。The third device includes a curve shape similarity calculation device, a feature extraction device, a matching device, a missing judgment device and an output device connected in sequence, and the curve shape similarity calculation device is connected with the layering device, and calculates based on the DTW algorithm. The morphological similarity of the logging curves between any two formation units of the two logging curves to be compared, the feature extraction device extracts the morphological similarity of the logging curves and each of the two logging curves to be compared At least the depth, formation thickness and mean value information of the formation unit, the matching device sequentially calculates the distance coefficient/local matching cost of each formation unit of the comparison well to establish a local matching cost matrix, and based on the local matching cost matrix, through dynamic waveform matching The algorithm obtains a global matching cost matrix, filters out the minimum global matching cost in the global matching cost matrix, backtracks the minimum global matching cost to obtain the shortest path, and the missing judging device matches the formation unit according to the judgment criterion and judges whether there is any If the formation is missing, the output device outputs the result.
所述匹配装置包括依次连接的局部匹配代价矩阵生成装置、全局匹配代价矩阵生成装置和最短路径回溯装置,所述局部匹配代价矩阵生成装置依次计算对比井的每个地层单元的距离系数/局部匹配代价建立局部匹配代价矩阵,所述全局匹配代价矩阵生成装置基于所述局部匹配代价矩阵,通过动态波形匹配算法获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价,所述最短路径回溯装置回溯所述最小全局匹配代价的最短匹配路径,对地层单元进行匹配以判断是否有缺失地层。The matching device includes a local matching cost matrix generating device, a global matching cost matrix generating device and a shortest path backtracking device connected in sequence, and the local matching cost matrix generating device sequentially calculates the distance coefficient/local matching of each formation unit of the comparison well The cost establishes a local matching cost matrix, and the global matching cost matrix generating device obtains a global matching cost matrix through a dynamic waveform matching algorithm based on the local matching cost matrix, and selects the minimum global matching cost in the global matching cost matrix. The shortest path backtracking device backtracks the shortest matching path with the minimum global matching cost, and matches the formation unit to determine whether there is a missing formation.
本发明的有益技术效果:Beneficial technical effects of the present invention:
本发明的一种基于DTW的智能地层对比方法,首先获取原始测井数据并进行归一化预处理形成归一化测井数据,使得各来源测井数据的数值范围均分布在[0,1]之间;然后采用变点检测算法提取每口井的所述归一化测井数据的变点信息对测井曲线进行分层,从而将每口井按照地层顺序划分为不同级别的地层单元;最后进行地层对比和匹配:基于动态时间规整算法(DTW)计算被选取的两口井的测井曲线形态相似度信息,并至少结合地层深度、厚度和均值信息,通过动态波形匹配算法计算处理所述曲线特征确定最小匹配路径,回溯所述最小匹配路径对地层单元进行匹配和判断地层是否有缺失并输出。本发明的方法对分层后的每个地层单元通过动态时间规整算法,获取测井曲线形态相似度信息挖掘出测井曲线形态内蕴含的地质规律,同时结合深度,厚度,岩性等参数计算待对比井之间的每个地层单元之间的局部匹配代价、建立局部匹配代价矩阵,基于所述局部匹配代价矩阵按照地层对比的最短路径模型优选获取全局匹配代价矩阵,通过动态波形匹配算法在所述全局匹配代价矩阵中筛选出最小全局匹配代价,回溯所述最短全局匹配代价的获取路径上累加的每一项获取最短匹配路径,若所述最短路径上的数值中两个井的地层单元一一对应,则二者互相匹配,若一口井的一个地层单元匹配另一井的多个地层,则多个地层中局部匹配代价最小的为匹配的地层单元,其它为缺失地层单元。综上,本方法融合了测井曲线形态相似度、厚度、深度等信息,基于距离较近的相邻井内不应相差较大的地质认识,通过动态波形匹配算法判断匹配结果,以最小全局匹配代价所对应的最短路径作为匹配路径,从而更精确的进行地层对比,相对于手动方法和现有计算机程序方法,快速高效且可解释性强。A DTW-based intelligent stratigraphic comparison method of the present invention first obtains the original logging data and performs normalization preprocessing to form normalized logging data, so that the numerical range of the logging data from each source is distributed in [0,1 ]; then use the change point detection algorithm to extract the change point information of the normalized logging data of each well to stratify the logging curve, so that each well is divided into different levels of stratigraphic units according to the stratigraphic sequence ; Finally, stratigraphic comparison and matching are carried out: based on the dynamic time warping algorithm (DTW), the log curve shape similarity information of the two selected wells is calculated, and at least combined with the formation depth, thickness and mean information, the dynamic waveform matching algorithm is used to calculate and process all the data. The curve feature is used to determine the minimum matching path, and the minimum matching path is backtracked to match the formation unit and determine whether the formation is missing and output. The method of the invention uses the dynamic time warping algorithm for each stratum unit after stratification, obtains the log curve shape similarity information and excavates the geological law contained in the log curve shape, and simultaneously calculates the depth, thickness, lithology and other parameters. The local matching cost between each stratigraphic unit between the wells to be compared is established, and a local matching cost matrix is established. Based on the local matching cost matrix, the global matching cost matrix is preferably obtained according to the shortest path model of stratigraphic comparison. The minimum global matching cost is screened out from the global matching cost matrix, and each item accumulated on the acquisition path of the shortest global matching cost is backtracked to obtain the shortest matching path. One-to-one correspondence, the two match each other. If one formation unit of one well matches multiple formations of another well, the formation unit with the smallest local matching cost among the multiple formations is the matched formation unit, and the others are missing formation units. To sum up, this method integrates the log curve shape similarity, thickness, depth and other information, and based on the geological understanding that adjacent wells should not have a large difference in distance, the dynamic waveform matching algorithm is used to judge the matching results, and the minimum global matching is used. The shortest path corresponding to the cost is used as the matching path, so that the stratigraphic comparison can be performed more accurately. Compared with the manual method and the existing computer program method, it is fast, efficient and highly interpretable.
本发明还涉及一种基于DTW的智能地层对比系统,该智能地层对比系统与本发明的智能地层对比方法相对应,也可以理解为是实现本发明智能地层对比方法的装置,设置依次连接的第一装置、第二装置和第三装置,各装置协同工作,第二装置能够将第一装置得到的归一化数据进行变点检测对测井曲线进行分层获得不同级别的地层单元,第三装置首先提取对比井的至少测井曲线形态相似度、深度、地层厚度和均值信息,其中所述测井曲线形态相似度通过动态时间规整算法获取,然后通过动态波形匹配算法计算对比的两口井的不同地层单元之间的局部匹配代价、建立局部匹配代价矩阵,基于所述局部匹配代价矩阵获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价值,并从所述最小全局匹配代价值处回溯得到最短匹配路径,若两井的地层没有缺失,则两个井之间的每个地层单元一对一匹配,所述最短匹配路径上的每个点上对应匹配的两个地层单元,若两个井有缺失的地层,则在最短匹配路径上存在一口井的一个地层单元匹配另一井的多个地层单元,此时匹配原则为:全局匹配代价最小的为匹配的地层单元,未匹配的则为缺失地层单元,最后输出匹配结果,该方法避免了现有技术采用人工地层对比工作强度大、效率低、重复性差等问题,能够自动智能化完成地层对比,提高了地层对比精度和工作效率。The present invention also relates to a DTW-based intelligent formation comparison system, which corresponds to the intelligent formation comparison method of the present invention, and can also be understood as a device for implementing the intelligent formation comparison method of the present invention. A device, a second device and a third device, each device works together, the second device can perform change point detection on the normalized data obtained by the first device, and layer the logging curve to obtain different levels of stratigraphic units. The device first extracts at least the log curve shape similarity, depth, formation thickness and mean value information of the comparison well, wherein the log curve shape similarity is obtained by a dynamic time warping algorithm, and then the dynamic waveform matching algorithm is used to calculate the comparison of the two wells. The local matching cost between different formation units, establishing a local matching cost matrix, obtaining a global matching cost matrix based on the local matching cost matrix, filtering out the minimum global matching cost value in the global matching cost matrix, and obtaining the minimum global matching cost value from the minimum matching cost matrix. The shortest matching path is obtained by backtracking at the global matching cost value. If the formations of the two wells are not missing, each formation unit between the two wells is matched one-to-one, and each point on the shortest matching path corresponds to the matching two. If there are missing formations in two wells, one formation unit of one well matches multiple formation units of another well on the shortest matching path. At this time, the matching principle is: the one with the smallest global matching cost is the one that matches. Stratigraphic units, those that are not matched are missing stratigraphic units, and finally output the matching results. This method avoids the problems of high intensity, low efficiency, and poor repeatability of artificial stratigraphic correlations in the prior art, and can automatically and intelligently complete stratigraphic correlations, improving the Stratigraphic comparison accuracy and work efficiency.
附图说明Description of drawings
图1为本发明的一种基于DTW的智能地层对比方法的一优选方案流图;Fig. 1 is a kind of optimal scheme flow chart of a kind of DTW-based intelligent formation comparison method of the present invention;
图2为本发明的一种基于DTW的智能地层对比方法的另一优选方案流图;Fig. 2 is another preferred solution flow diagram of a DTW-based intelligent formation comparison method of the present invention;
图3为变点检测流程中生成的各曲线;Fig. 3 is each curve generated in the change point detection process;
图4为分层后的测井曲线的一种实施例的示意图;FIG. 4 is a schematic diagram of an embodiment of a logging curve after layering;
图5为具有标号的全局匹配代价矩阵的一种实施例示意图;5 is a schematic diagram of an embodiment of a global matching cost matrix with a label;
图6为本发明的一种基于DTW的智能地层对比系统的实施例的示意图。FIG. 6 is a schematic diagram of an embodiment of a DTW-based intelligent stratigraphic comparison system of the present invention.
附图标记:Reference number:
1-测井曲线;2-标志性地层;3-其它地层。1- logging curve; 2-marker formation; 3-other formations.
具体实施方式Detailed ways
为了详细介绍本发明,将通过具体实施例和附图详细说明。In order to introduce the present invention in detail, specific embodiments and accompanying drawings will be described in detail.
如图1所示,一种基于DTW的智能地层对比方法,包括以下步骤:第一步骤:获取原始测井数据并进行归一化预处理形成归一化测井数据;第二步骤:采用变点检测算法提取每口井的所述归一化测井数据的变点信息,对测井曲线进行分层获得不同级别的地层单元;第三步骤:提取对比井各自的测井曲线特征,所述曲线特征至少包括测井曲线形态相似度、深度、厚度和均值信息,所述测井曲线形态相似度信息通过动态时间规整算法获取,通过动态波形匹配算法计算处理所述曲线特征确定路径模式图并找出最优匹配路径,回溯所述最优匹配路径,对地层单元进行匹配和判断地层是否有缺失并输出。即本发明为了得到更准确的地层对比结果用于石油勘探开发,基于动态时间规整算法提取预对比的A井和B井的每个地层单元的测井曲线形态相似度,融合其它常规信息,通过动态波形匹配算法计算A井与B井的地层单元之间的距离系数建立局部匹配代价矩阵,获取全局匹配代价矩阵,筛选出最小全局匹配代价,回溯该最优匹配路径即可获得匹配和缺失结果,判断时考虑了测井曲线形态相似度信息,对比时先局部再全局,再从全局反推至局部,确保获取最优匹配路径,此时对比井差异最小、匹配度高,而无法匹配上的则为缺失地层单元,该方法更加精准、效率更高,地层对比结果解释性更强。As shown in Figure 1, a DTW-based intelligent stratigraphic comparison method includes the following steps: the first step: obtaining original logging data and performing normalization preprocessing to form normalized logging data; The point detection algorithm extracts the change point information of the normalized logging data of each well, and stratifies the logging curves to obtain different levels of stratigraphic units; the third step: extracts the logging curve characteristics of the comparison wells, so The curve features at least include log curve shape similarity, depth, thickness and mean value information, the log curve shape similarity information is obtained by a dynamic time warping algorithm, and the curve features are calculated and processed by a dynamic waveform matching algorithm to determine a path pattern diagram. And find the optimal matching path, backtrack the optimal matching path, match the formation unit, judge whether the formation is missing and output. That is, in order to obtain more accurate stratigraphic comparison results for petroleum exploration and development, the present invention extracts the morphological similarity of the logging curves of each stratigraphic unit of Well A and Well B in the pre-comparison based on the dynamic time warping algorithm, fuses other conventional information, The dynamic waveform matching algorithm calculates the distance coefficient between the formation units of Well A and Well B to establish a local matching cost matrix, obtains the global matching cost matrix, filters out the minimum global matching cost, and traces the optimal matching path to obtain matching and missing results. , the morphological similarity information of the logging curve is considered in the judgment. When comparing, firstly the local and then the global, and then reverse from the global to the local to ensure the optimal matching path. At this time, the difference between the contrasting wells is the smallest and the matching degree is high, and it cannot be matched. If there are missing stratigraphic units, this method is more accurate and efficient, and the stratigraphic comparison results are more interpretable.
优选的,本发明的一种基于DTW的智能地层对比方法的优选实施例参照图2所示。包括以下步骤:Preferably, a preferred embodiment of a DTW-based intelligent stratigraphic comparison method of the present invention is shown in FIG. 2 . Include the following steps:
S11:获取不同来源的原始测井数据;S11: Obtain original logging data from different sources;
S12:对所述原始测井数据进行归一化预处理,使得各来源测井数据的数值范围均分布在[0,1]之间形成归一化数据;S12: Perform normalization preprocessing on the original logging data, so that the numerical ranges of the logging data from each source are distributed between [0, 1] to form normalized data;
归一化预处理主要是为了解决不同仪器所测得的测井数据结果的数值范围会不一样而造成的对后续全区岩性预测影响过大、误差过大的问题,具体的归一化预处理要针对不同来源的测井数据,让所有测井数据均分布在[0,1]范围之间,归一化的过程中不是取整个数据的最大值和最小值,而是针对所有数据做一个累计概率分布图,比如优选地首先分别提取各来源所有的测井数据中占比为95%的数作为最大值,然后提取占比5%的数作为最小值(当然,也可以提取其它占比比例进行概率分布),再结合归一化计算公式利用这个最大值和最小值对所有测井曲线数据进行归一化处理分别获得各来源测井数据的归一化结果,使得各来源测井数据的数值范围均分布在[0,1]之间,所述归一化预处理的计算公式如下:The normalization preprocessing is mainly to solve the problem that the numerical range of the logging data results measured by different instruments will be too large and the error will be too large for the subsequent lithology prediction of the whole area. The preprocessing is to target logging data from different sources, so that all logging data are distributed in the range of [0, 1]. The normalization process does not take the maximum and minimum values of the entire data, but for all data. Make a cumulative probability distribution map, for example, it is preferable to first extract the number that accounts for 95% of all logging data from each source as the maximum value, and then extract the number that accounts for 5% as the minimum value (of course, you can also extract other The maximum and minimum values are used to normalize all the logging curve data to obtain the normalized results of the logging data from each source, so that the logging data from each source can be normalized. The numerical range of well data is distributed between [0, 1], and the calculation formula of the normalized preprocessing is as follows:
其中X表示要进行归一化的测井曲线数据,X’表示归一化后的该测井曲线数据,计算过程会遍历所有测井曲线数据。Among them, X represents the logging curve data to be normalized, and X' represents the normalized logging curve data, and the calculation process will traverse all the logging curve data.
S2:采用变点检测算法提取所述归一化测井数据的变点信息,以对每口井的测井曲线进行分层获得不同级别的地层单元;S2: using a change point detection algorithm to extract the change point information of the normalized logging data, so as to layer the logging curves of each well to obtain stratigraphic units of different levels;
采用基于滑动窗口的变点检测算法把不同的归一化测井曲线组合分为多层,其速度较快且适用多变量,且可以将任意的单变点检测算法拓展为多变点检测算法。该算法使用两个沿数据流滑动的窗口。将每个窗口内信号的统计特性与差异度量进行比较。对于给定的损失函数c(·),得出一个差异度量d(·,·):The change point detection algorithm based on sliding window is used to divide different normalized logging curve combinations into multiple layers, which is fast and applicable to multi-variables, and can expand any single-change-point detection algorithm to a multi-variable-point detection algorithm . The algorithm uses two windows that slide along the data stream. The statistical properties of the signal within each window are compared with the variance measure. For a given loss function c( ), a difference measure d( , ) is derived:
d(yu..v,yv..w)=c(yu..w)-c(yu..v)-c(yv..w) (2)d(y u..v ,y v..w )=c(y u..w )-c(y u..v )-c(y v..w ) (2)
其中{yt}t是输入的信号,u<v<w是索引,c(·)是损失函数,d(·,·)是两个窗口之间差异的度量。where {y t } t is the input signal, u < v < w is the index, c( ) is the loss function, and d( , ) is a measure of the difference between the two windows.
本文选择核函数作为损失函数,以将低维的线性不可分、高度非线性的测井信号投影到高维的再生希尔伯特空间中,英文为reproducing Hilbert space,英文缩写为RKHS,从而达到线性可分的目的。In this paper, the kernel function is selected as the loss function to project the low-dimensional linear inseparable and highly nonlinear logging signals into the high-dimensional reproducing Hilbert space, English is reproducing Hilbert space, English abbreviation is RKHS, thus achieving linearity divisible purpose.
给定一个半正定核和其映射关系H是一个合适的希尔伯特空间,我们的损失函数检测投影之后的信号{Φ(yt)}t的均值变化,定义为:Given a positive semi-definite kernel and its mapping H is a suitable Hilbert space, and our loss function detects the mean change of the signal {Φ(y t )} t after projection, defined as:
公式(3)中I为感兴趣的区间,为信号{Φ(yt)}t∈I的均值,此处所用的核函数为径向基核函数(rbf):In formula (3), I is the interval of interest, is the mean value of the signal {Φ(y t )} t∈I , and the kernel function used here is the radial basis kernel function (rbf):
k(x,y)=exp(-γ||x-y||2) (4)k(x,y)=exp(-γ||xy|| 2 ) (4)
式中,||·||是欧几里得范数,γ>0是所谓的带宽参数,根据中值启发式即等于所有成对距离中值的倒数确定。In the formula, ||·|| is the Euclidean norm, and γ>0 is the so-called bandwidth parameter, which is determined according to the median heuristic, which is equal to the reciprocal of the median of all pairwise distances.
根据以下原理:如果滑动窗口u..v和v..w都位于同一个层,则它们的统计特性相似,并且两个窗口之间的差异很小;如果滑动窗位于两个不同的层,则差异显著增大,这表明两个窗之间的边界是一个变点,将则差异曲线定义为:According to the following principle: if the sliding windows u..v and v..w are located in the same layer, their statistical properties are similar, and the difference between the two windows is small; if the sliding windows are located in two different layers, The difference increases significantly, which indicates that the boundary between the two windows is a change point, and the difference curve is defined as:
(t,d(yt-w/2..t,yt..t+w/2)) (5)(t,d(y tw/2..t ,y t..t+w/2 )) (5)
其中t为索引,介于w/2和n-w/2之间,n为样本点数;w为滑动窗口长度;Where t is the index, between w/2 and n-w/2, n is the number of sample points; w is the length of the sliding window;
根据所述差异度量随数据流改变的关系,绘制差异曲线,如图3所示,基于差异曲线,继续峰值检测,其峰值点就对应原始信号的变点,即测井曲线的层界面;According to the relationship between the difference metric and the data flow, a difference curve is drawn, as shown in FIG. 3, based on the difference curve, the peak detection is continued, and the peak point corresponds to the change point of the original signal, that is, the layer interface of the logging curve;
沿数据流重复上述过程直到完成每口井中的整个数据流内的变点检测,对所述测井曲线进行分层,获得不同级别的地层单元。如图4所示,对一口井中对部分信号源的测井曲线1的分层结果,黑色竖虚线位置为变点,在实际中标志性地层2与其它地层3之间的层界面位置均具有变点,可见变点检测分层效果较为准确,其中CALI表示井径测井信号源,GR表示自然伽马测井信号源,SP表示自然电位测井信号源,RT表示深测向电阻率测井信号源,RI表示浅测向电阻率测井信号源,当然还可以包括其它信号源,理论上需要对一口井的所有信号源的测井曲线均进行统一分层;The above process is repeated along the data stream until the change point detection within the entire data stream in each well is completed, and the logging curves are layered to obtain formation units of different levels. As shown in Fig. 4, for the layered results of
S31:提取对比井的测井曲线形态相似度以及至少深度、厚度和均值信息,所述测井曲线形态相似度通过动态时间规整算法计算获取;S31 : extracting the log curve shape similarity and at least depth, thickness and mean information of the comparison well, where the log curve shape similarity is calculated and obtained by a dynamic time warping algorithm;
除了上述曲线特征,还可以选择其它特征例如均方差等。In addition to the above-mentioned curve features, other features such as mean square error can also be selected.
(1)深度f1(1) Depth f1
f1=(y1+y2)/2 (6)f1=(y1+y2)/2 (6)
(2)地层厚度f2(2) Formation thickness f2
f2=y2-y1 (7)f2=y2-y1 (7)
y1:每口井任一地层单元的地层顶深,y2:每口井任一地层单元的地层底深;y1: stratum top depth of any stratum unit of each well, y2: stratum bottom depth of any stratum unit of each well;
(3)测井响应均值f3(3) Mean value of logging response f3
f3=(a1+a2+…ai…+an)/n (8)f3=(a1+a2+…ai…+an)/n (8)
ai:第i点测井曲线值;ai: logging curve value of the i-th point;
(4)曲线形态相似度f4(4) Curve shape similarity f4
在两条曲线的相似度之前,本实施例采用DTW算法将其中一个或者两个序列在时间轴下翘曲扭曲,以达到更好的对齐,再来计算两个时间序列性之间的相似性。Before the similarity of the two curves, this embodiment uses the DTW algorithm to warp and distort one or two sequences under the time axis to achieve better alignment, and then calculate the similarity between the two time series.
假设A井和B井时间序列分别为Q和C,他们的长度分别是n和m:序列中的每个点的值为序列中每一帧的特征值:Suppose the time series of wells A and B are Q and C, respectively, and their lengths are n and m, respectively: the value of each point in the sequence is the eigenvalue of each frame in the sequence:
Q=q1,q2,…,qi,…,qn;Q=q1,q2,…,qi,…,qn;
C=c1,c2,…,cj,…,cm;C=c1,c2,…,cj,…,cm;
为了对齐这两个序列,我们需要构造一个n×m的矩阵网格,矩阵元素(i,j)表示qi和cj两个点的距离d(qi,cj),也就是序列Q的每一个点和C的每一个点之间的相似度,距离越小则相似度越高,一般采用欧式距离d(qi,cj)=(qi-cj)2,也可以理解为失真度。每一个矩阵元素(i,j)表示点qi和cj的对齐。DTW算法可以归结为寻找一条通过此网格中若干格点的路径,使其距离最小,路径通过的格点即为两个序列进行计算的对齐的点。In order to align the two sequences, we need to construct an n×m matrix grid, the matrix element (i,j) represents the distance d(qi,cj) between the two points qi and cj, that is, each point of the sequence Q The similarity with each point of C, the smaller the distance, the higher the similarity, and the Euclidean distance d(qi,cj)=(qi-cj) 2 is generally used, which can also be understood as the degree of distortion. Each matrix element (i,j) represents the alignment of points qi and cj. The DTW algorithm can be summed up as finding a path through several grid points in this grid to minimize the distance, and the grid point passed by the path is the alignment point calculated by the two sequences.
我们把这条路径定义为翘曲规整路径,并用W来表示,W的第k个元素定义为wk=(i,j)k,定义了序列Q和C的映射:We define this path as a warped regular path and denote it by W, and the kth element of W is defined as wk=(i,j)k, which defines the mapping of sequences Q and C:
W=w1,w2,...,wk max(m,n)≤=K<m+n+1 (9)W=w1,w2,...,wk max(m,n)≤=K<m+n+1 (9)
这条路径不是随意选择的,需要满足以下几个约束:This path is not chosen arbitrarily and needs to satisfy the following constraints:
I边界条件:w1=(1,1)和wK=(m,n),不同测井仪器的测井信号的变化快慢都有可能变化,但是其各部分的先后次序不可能改变,因此所选的路径必定是从左下角出发,在右上角结束;I boundary conditions: w1=(1,1) and wK=(m,n), the speed of change of logging signals of different logging tools may change, but the order of each part cannot be changed, so the selected The path must start from the lower left corner and end at the upper right corner;
II连续性:如果wk-1=(a’,b’),那么对于路径的下一个点wk=(a,b)需要满足(a-a’)<=1和(b-b’)<=1,也就是不可能跨过某个点去匹配,只能和自己相邻的点对齐,这样可以保证Q和C中的每个坐标都在W中出现;II Continuity: If wk-1=(a',b'), then for the next point of the path wk=(a,b) needs to satisfy (a-a')<=1 and (b-b')< =1, that is, it is impossible to match across a certain point, and it can only be aligned with its own adjacent point, which ensures that each coordinate in Q and C appears in W;
III单调性:如果wk-1=(a’,b’),那么对于路径的下一个点wk=(a,b)需要满足0<=(a-a’)和0<=(b-b’),这限制W上面的点必须是随着时间单调进行,以保证图B中的虚线不会相交。III Monotonicity: If wk-1=(a',b'), then for the next point of the path wk=(a,b) needs to satisfy 0<=(a-a') and 0<=(b-b '), which restricts the points above W to be monotonic over time to ensure that the dashed lines in Figure B do not intersect.
结合连续性和单调性约束,每一个格点的路径就只有三个方向了。例如如果路径已经通过了格点(i,j),那么下一个通过的格点只可能是下列三种情况之一:(i+1,j),(i,j+1)或者(i+1,j+1),满足上面这些约束条件的路径可以有指数个,我们需要的是使得下面的规整代价最小的路径:Combining continuity and monotonicity constraints, the path of each lattice point has only three directions. For example, if the path has already passed through the lattice point (i, j), the next lattice point to pass through can only be one of the following three cases: (i+1,j), (i,j+1) or (
分母中的K主要是用来对不同的长度的规整路径做补偿。这里我们定义一个累加距离。从(0,0)点开始匹配这两个序列Q和C,每到一个点,之前所有的点计算的距离都会累加。到达终点(n,m)后,这个累积距离就是我们上面说的最后的总的距离,也就是序列Q和C的曲线形态的相似度。The K in the denominator is mainly used to compensate for regular paths of different lengths. Here we define a cumulative distance. The two sequences Q and C are matched starting from the (0,0) point, and each time a point is reached, the distances calculated by all the previous points will be accumulated. After reaching the end point (n, m), this cumulative distance is the final total distance we mentioned above, that is, the similarity of the curve shapes of the sequences Q and C.
累积距离γ(i,j)可以按下面的方式表示,累积距离γ(i,j)为当前格点距离d(i,j),也就是点qi和cj的欧式距离/相似性与可以到达该点的最小的邻近元素的累积距离之和:The cumulative distance γ(i,j) can be expressed in the following way, the cumulative distance γ(i,j) is the current grid point distance d(i,j), that is, the Euclidean distance/similarity of points qi and cj and the reachable distance The sum of the cumulative distances of the smallest neighbors of the point:
f4=γ(i,j)=d(qi,cj)+min{γ(i-1,j-1),γ(i-1,j),γ(i,j-1)} (11)f 4 =γ(i,j)=d(q i ,c j )+min{γ(i-1,j-1),γ(i-1,j),γ(i,j-1)} (11)
S32:依次计算对比井的每个地层单元的距离系数/局部匹配代价建立局部匹配代价矩阵;S32: Calculate the distance coefficient/local matching cost of each formation unit of the comparison well in turn to establish a local matching cost matrix;
局部匹配代价计算公式为The formula for calculating the local matching cost is:
d(A,b)=sqrt{[w1×diff(f1)]2+[w2×diff(f2)]2+w3×diff(f3)]2+[w4×d(A, b)=sqrt{[w1×diff(f1)] 2 +[w2×diff(f2)] 2 +w3×diff(f3)] 2 +[w4×
diff(f4)]2) (12)diff(f4)] 2 ) (12)
d(A,B)为局部匹配代价,表示A井的地层单元的测井曲线与B井的地层单元的测井曲线的距离系数;wi第i种属性对应的权重,为设定值;diff(i)第i种属性对应的代价,为A井与B井的fi的差的绝对值,i=1~3;diff(f4)为曲线的DTW距离f4。d(A, B) is the local matching cost, which represents the distance coefficient between the logging curve of the stratigraphic unit in Well A and the logging curve of the stratigraphic unit in Well B; the weight corresponding to the i-th attribute of wi is the set value; diff (i) The cost corresponding to the i-th attribute is the absolute value of the difference of fi between Well A and Well B, i=1-3; diff(f4) is the DTW distance f4 of the curve.
根据上述公式,获取的局部匹配代价矩阵如表1所示。表1中竖向的表示A井I~VII地层单元,横向表示B井的I-VII地层单元,矩阵中的每个点表示A井I~VII地层单元分别与B井的I-VII地层单元的局部匹配代价,局部匹配代价值越小,表示两个地层单元的匹配度越高。当然表1只是一种局部匹配代价矩阵形式,每个井中的地层单元从I至VII连续排列,也可能A和/或B的地层单元缺少某个或某些地层单元,I至VII可能不连续。According to the above formula, the obtained local matching cost matrix is shown in Table 1. In Table 1, the vertical represents the formation units I to VII in Well A, the horizontal represents the formation units I-VII in Well B, and each point in the matrix represents the formation units I to VII in Well A and the formation units I-VII in Well B, respectively. The local matching cost of , the smaller the local matching cost, the higher the matching degree of the two stratigraphic units. Of course, Table 1 is only a form of local matching cost matrix. The formation units in each well are consecutively arranged from I to VII. It is also possible that the formation units of A and/or B lack one or some formation units, and I to VII may not be continuous. .
表1.局部匹配代价矩阵Table 1. Local matching cost matrix
S33:基于所述局部匹配代价矩阵,通过动态波形匹配算法获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价;S33: Based on the local matching cost matrix, obtain a global matching cost matrix through a dynamic waveform matching algorithm, and filter out the minimum global matching cost in the global matching cost matrix;
全局匹配代价计算公式如下:The global matching cost calculation formula is as follows:
D(Am,Bn)=∑d(Ai,Bj)+∑g(Ak)+∑g(Bk) (13)D(A m , B n )=∑d(A i , B j )+∑g(A k )+∑g(B k ) (13)
D(Am,Bn)为全局匹配代价,∑d(Ai,Bj)表示所有互相匹配的地层单元间的距离系数/局部匹配代价之和;k为序列中地层缺失的数目,∑g(Ak)表示A井中缺失地层单元与B井重复匹配的距离系数之和;∑g(Bk)表示B井中缺失地层单元与A井重复匹配的距离系数之和。D(Am, Bn) is the global matching cost, ∑d(Ai, Bj) is the sum of the distance coefficient/local matching cost between all matching formation units; k is the number of missing formations in the sequence, ∑g(Ak) Represents the sum of the distance coefficients between the missing stratigraphic units in Well A and Well B; ∑g(Bk) represents the sum of the distance coefficients between the missing stratigraphic units in Well B and Well A.
利用测井曲线进行地层对比可归结为系统间有序元素的最佳匹配问题,本发明运用动态规划中的最短路径问题模拟地层对比的过程,并用动态规划的最优化算法完成地层对比的具体计算即距离系数的极小化,从而进行地层匹配。The stratigraphic correlation using the logging curve can be attributed to the optimal matching of ordered elements between systems. The invention uses the shortest path problem in dynamic programming to simulate the stratigraphic correlation process, and uses the dynamic programming optimization algorithm to complete the specific calculation of the stratigraphic correlation. That is, the minimization of the distance coefficient enables formation matching.
使用动态波形算法解决多阶段决策过程的最优化结果时,距离系数的优化计算应分阶段进行,即当前阶段的优化是在前一阶段优化结果的基础上进行的,井的整个求解过程是一个连续的递推过程。When using the dynamic waveform algorithm to solve the optimization results of the multi-stage decision-making process, the optimization calculation of the distance coefficient should be carried out in stages, that is, the optimization of the current stage is carried out on the basis of the optimization results of the previous stage, and the entire solution process of the well is a process. continuous recursive process.
按地层对比的最短路径模型,假如第k阶段要完成A1,A2…Am与B1,B2…Bn的最佳匹配,它是在第一阶段的三种状态即前三个点的基础上各增加一个匹配后优选而成的,第k-1阶段的三种状态分别是:According to the shortest path model of stratigraphic comparison, if the kth stage is to complete the best matching of A1, A2...Am and B1, B2...Bn, it is based on the three states in the first stage, that is, the first three points. After a match is optimized, the three states of the k-1 stage are:
状态1:处于点(Ai-1,Bj-1);状态2:处于点(Ai-1,Bj);状态3:处于点(Ai,Bj-1);这三个点到点(Ai,Bj)的距离分别是d(Ai,Bj),g(Ai),g(Bj),因此第k阶段的递推公式为:State 1: at point (Ai-1, Bj-1); state 2: at point (Ai-1, Bj); state 3: at point (Ai, Bj-1); these three points to point (Ai, Bj-1) The distances of Bj) are d(Ai, Bj), g(Ai), g(Bj) respectively, so the recursive formula of the kth stage is:
D(Ai,Bj)=min{D(Ai-1,Bj)+g(Ai),D(Ai-1,Bj-1)+d(Ai,Bj),D(Ai,Bj-1)+g(Bj)}D(Ai,Bj)=min{D(Ai-1,Bj)+g(Ai),D(Ai-1,Bj-1)+d(Ai,Bj),D(Ai,Bj-1)+ g(Bj)}
按上式可求出序列A,B的最佳匹配距离D(A,B),即通过上述公式计算出全局匹配代价中的每个点。According to the above formula, the optimal matching distance D(A, B) of the sequence A and B can be obtained, that is, each point in the global matching cost is calculated by the above formula.
如图5所示,通过动态波形匹配算法按照最短路径模型获取全局匹配代价矩阵,并在距离计算过程中记录路径矩阵,约定标记为:1-来自左边;2-来自左上;3-来自上方。As shown in Figure 5, the global matching cost matrix is obtained according to the shortest path model through the dynamic waveform matching algorithm, and the path matrix is recorded during the distance calculation process. The convention is marked as: 1-from the left; 2-from the upper left;
例如,图5中第一阶段的三个点:For example, the three points of the first stage in Figure 5:
288.2/1表示193.0点(A井I号地层单元与B井II号地层单元匹配)+左边95.2点(A井I号地层单元与B井I号地层单元匹配);288.2/1 means 193.0 points (the stratigraphic unit No. I in well A matches the stratigraphic unit No. II in well B) + 95.2 points on the left (the stratigraphic unit No. I in well A matches the stratigraphic unit No. I in well B);
213.4/2表示118.2点(A井II号地层单元与B井I号地层单元匹配)+左上95.2点(A井I号地层单元与B井I号地层单元匹配);213.4/2 means 118.2 points (the stratigraphic unit No. II in Well A matches the stratigraphic unit No. I in Well B) + 95.2 points on the upper left (the stratigraphic unit No. I in Well A matches the stratigraphic unit No. I in Well B);
210.5/3表示115.3(A井II号地层单元与B井II号地层单元匹配)+上方95.2(A井I号地层单元与B井I号地层单元匹配);210.5/3 means 115.3 (formation unit No. II in well A matches formation unit No. II in well B) + 95.2 above (formation unit No. I in well A matches formation unit No. I in well B);
在上述三个点的基础上,按照最短路径模型以此类推,获得图6的第7排和第6列对应的值为全局匹配代价值,其中690.7/2为最小全局匹配代价。On the basis of the above three points, according to the shortest path model and so on, the values corresponding to the seventh row and the sixth column in Figure 6 are obtained as global matching cost values, of which 690.7/2 is the minimum global matching cost.
S34:回溯所述最小全局匹配代价获取最短路径,对地层单元进行匹配以判断是否有缺失地层并输出;S34: Backtracking the minimum global matching cost to obtain the shortest path, and matching formation units to determine whether there is a missing formation and output;
如图5所示,以反向箭头表示的全局最小匹配代价690.7/2的回溯路径为:As shown in Figure 5, the backtracking path of the global minimum matching cost 690.7/2 represented by the reverse arrow is:
690.7/2(A的VII与B的VII匹配)→618.2(A的VI与B的VI匹配)→550/2(A的V与B的V匹配)→407.7/2(A的IV与B的IV匹配)→315/2(A的III与B的III匹配)690.7/2 (A's VII matches B's VII) → 618.2 (A's VI matches B's VI) → 550/2 (A's V matches B's V) → 407.7/2 (A's IV matches B's V's) IV matches) → 315/2 (A's III matches B's III)
→210.5/3(A的II与B的I匹配)→95.5(A的I与B的I匹配);→ 210.5/3 (A's II matches B's I) → 95.5 (A's I matches B's I);
其中690.7/2、618.2、550/2、407.7/2和315/2中每个点值中对应的两个井的地层单元一一对应,则A的VII-III依次与B的VII-III互相匹配;而B的I与A的II和I均匹配,其中B的I与A的I的局部匹配代价95.2最小,则表示B的I应与A的I匹配,而A的II为缺失。Among them, the stratigraphic units of the two wells corresponding to each point value in 690.7/2, 618.2, 550/2, 407.7/2, and 315/2 correspond one-to-one, then VII-III of A and VII-III of B are mutually in turn The I of B matches both II and I of A, and the local matching cost of I of B and I of A is 95.2, which means that the I of B should match the I of A, and the II of A is missing.
本发明还涉及一种基于DTW的智能地层对比系统,该智能地层对比系统与本发明的智能地层对比方法相对应,也可以理解为是实现本发明智能地层对比方法的装置,如图6所示,包括依次连接的第一装置、第二装置和第三装置。其中第一装置包括依次连接的数据获取装置和归一化预处理装置,所述数据获取装置接收原始测井数据,并发送给所述归一化预处理装置,所述归一化预处理装置将不同来源的原始数据均转化为在[0,1]范围内分布的归一化测井数据。所述第二装置包括依次连接的变点检测装置和分层装置,所述变点检测装置包括数据选取装置、差异特性计算装置、曲线生成装置和峰值检测装置,所述数据选取装置与所述归一化预处理装置连接,接收归一化测井数据并沿数据流选取等长度的两个滑动窗口,所述差异特性计算装置将两个滑动窗的每个统计特性进行比较通过变点检测算法计算得到差异度量值,所述曲线生成装置将所述差异度量沿数据流绘制出差异曲线,所述峰值检测装置检测所述差异曲线的峰值,所述分层装置与峰值检测装置连接,在每个变点处对测井曲线分层,获得不同级别的地层单元。The present invention also relates to an intelligent stratigraphic comparison system based on DTW. The intelligent stratigraphic comparison system corresponds to the intelligent stratigraphic comparison method of the present invention, and can also be understood as a device for realizing the intelligent stratigraphic comparison method of the present invention, as shown in FIG. 6 . , including a first device, a second device and a third device connected in sequence. The first device includes a data acquisition device and a normalization preprocessing device connected in sequence, the data acquisition device receives the original logging data, and sends it to the normalization preprocessing device, and the normalization preprocessing device The raw data from different sources are transformed into normalized logging data distributed in the range of [0,1]. The second device includes a change point detection device and a layered device connected in sequence, the change point detection device includes a data selection device, a difference characteristic calculation device, a curve generation device and a peak detection device, the data selection device and the The normalization preprocessing device is connected, receives the normalized logging data and selects two sliding windows of equal length along the data stream, and the difference characteristic calculation device compares each statistical characteristic of the two sliding windows through change point detection The algorithm calculates the difference metric value, the curve generation device draws the difference metric along the data stream to draw a difference curve, the peak value detection device detects the peak value of the difference curve, the layering device is connected with the peak value detection device, and the Logging curves are layered at each change point to obtain stratigraphic units of different levels.
所述第三装置包括依次连接的曲线形态相似度计算装置、特征提取装置、匹配装置、缺失判断装置和输出装置,所述匹配装置包括局部匹配代价矩阵生成装置、全局匹配代价矩阵生成装置和最短路径回溯装置,所述曲线形态相似度计算装置基于动态时间规整算法计算对比的两个井的两测井曲线的每个地层单元之间的测井曲线形态相似度,所述特征提取装置取所述测井曲线形态相似度以及至少深度、地层厚度和均值信息,所述局部匹配代价矩阵生成装置依次计算对比井的每个地层单元的距离系数建立局部匹配代价矩阵,所述全局匹配代价矩阵生成装置基于所述局部匹配代价矩阵,通过动态波形匹配算法获取全局匹配代价矩阵,在所述全局匹配代价矩阵中筛选出最小全局匹配代价,所述最短路径回溯装置回溯所述最小全局匹配代价的最短匹配路径,回溯最短匹配路径对地层单元进行匹配一判断是否有缺失地层,所述输出装置输出以上匹配结果。The third device includes a curve shape similarity calculation device, a feature extraction device, a matching device, a missing judgment device and an output device connected in sequence, and the matching device includes a local matching cost matrix generating device, a global matching cost matrix generating device and a shortest matching cost matrix. A path backtracking device, the curve shape similarity calculation device calculates the log curve shape similarity between each formation unit of the two logging curves of the two wells compared based on a dynamic time warping algorithm, and the feature extraction device takes the The log curve shape similarity and at least depth, formation thickness and mean value information, the local matching cost matrix generating device sequentially calculates the distance coefficient of each formation unit of the comparison well to establish a local matching cost matrix, and the global matching cost matrix is generated. Based on the local matching cost matrix, the device obtains a global matching cost matrix through a dynamic waveform matching algorithm, filters out the minimum global matching cost in the global matching cost matrix, and the shortest path backtracking device backtracks the shortest of the minimum global matching costs Matching paths, backtracking the shortest matching path to match formation units to determine whether there is a missing formation, the output device outputs the above matching results.
应当指出,以上所述具体实施方式可以使本领域的技术人员更全面地理解本发明创造,但不以任何方式限制本发明创造。因此,尽管本说明书参照附图和实施例对本发明创造已进行了详细的说明,但是,本领域技术人员应当理解,仍然可以对本发明创造进行修改或者等同替换,总之,一切不脱离本发明创造的精神和范围的技术方案及其改进,其均应涵盖在本发明创造专利的保护范围当中。It should be pointed out that the above-mentioned specific embodiments can make those skilled in the art understand the present invention more comprehensively, but do not limit the present invention in any way. Therefore, although this specification has described the invention in detail with reference to the accompanying drawings and embodiments, those skilled in the art should understand that the invention can still be modified or equivalently replaced. The technical solutions and improvements of the spirit and scope shall be covered by the protection scope of the invention patent.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910785222.1A CN110852144A (en) | 2019-08-23 | 2019-08-23 | A DTW-based intelligent stratigraphic comparison method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910785222.1A CN110852144A (en) | 2019-08-23 | 2019-08-23 | A DTW-based intelligent stratigraphic comparison method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110852144A true CN110852144A (en) | 2020-02-28 |
Family
ID=69595531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910785222.1A Pending CN110852144A (en) | 2019-08-23 | 2019-08-23 | A DTW-based intelligent stratigraphic comparison method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110852144A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113420936A (en) * | 2021-07-01 | 2021-09-21 | 中国海洋石油集团有限公司 | Stratum comparison method based on dynamic time programming optimization algorithm |
CN113777669A (en) * | 2021-08-17 | 2021-12-10 | 中国石油化工股份有限公司 | Sandstone reservoir sublayer comparison method based on dynamic time sequence matching number technology |
CN114839694A (en) * | 2022-05-06 | 2022-08-02 | 西南石油大学 | A Stratigraphic Correlation Method Based on Dynamic Time Warping Algorithm |
CN114909125A (en) * | 2022-06-08 | 2022-08-16 | 中国地质大学(北京) | Numericalization of text-type cuttings logging data and automatic stratigraphic comparison method and device |
CN115113281A (en) * | 2022-05-18 | 2022-09-27 | 北京月新时代科技股份有限公司 | Method, device, equipment and storage medium for determining marker well and marker layer thereof |
CN115113299A (en) * | 2022-05-18 | 2022-09-27 | 北京月新时代科技股份有限公司 | Intelligent marking stratum positioning and dividing method, device, equipment and storage medium |
WO2022203702A1 (en) * | 2021-03-26 | 2022-09-29 | Schlumberger Technology Corporation | Wellbore data depth matching using change point algorithms |
CN117910883A (en) * | 2024-03-18 | 2024-04-19 | 中海油田服务股份有限公司 | Logging data quality detection method, device, computing equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150088424A1 (en) * | 2013-09-20 | 2015-03-26 | Schlumberger Technology Corporation | Identifying geological formation depth structure using well log data |
CN105426645A (en) * | 2016-01-12 | 2016-03-23 | 东营文迪科技有限公司 | Automatic comparing method and system for ASC stratum |
CN106707344A (en) * | 2016-12-12 | 2017-05-24 | 中国石油天然气股份有限公司 | Stratum sequence dividing method and device |
CN107218033A (en) * | 2017-05-15 | 2017-09-29 | 中国海洋石油总公司 | A kind of inversion method for the method and formation parameter for recognizing attitude of stratum |
CN109919184A (en) * | 2019-01-28 | 2019-06-21 | 中国石油大学(北京) | An intelligent identification method and system for multi-well complex lithology based on logging data |
-
2019
- 2019-08-23 CN CN201910785222.1A patent/CN110852144A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150088424A1 (en) * | 2013-09-20 | 2015-03-26 | Schlumberger Technology Corporation | Identifying geological formation depth structure using well log data |
CN105426645A (en) * | 2016-01-12 | 2016-03-23 | 东营文迪科技有限公司 | Automatic comparing method and system for ASC stratum |
CN106707344A (en) * | 2016-12-12 | 2017-05-24 | 中国石油天然气股份有限公司 | Stratum sequence dividing method and device |
CN107218033A (en) * | 2017-05-15 | 2017-09-29 | 中国海洋石油总公司 | A kind of inversion method for the method and formation parameter for recognizing attitude of stratum |
CN109919184A (en) * | 2019-01-28 | 2019-06-21 | 中国石油大学(北京) | An intelligent identification method and system for multi-well complex lithology based on logging data |
Non-Patent Citations (6)
Title |
---|
CHARLES TRUONG等: "Selective review of offline change point detection methods", 《ARXIV PREPRINT ARXIV》 * |
EAMONN J. KEOGH等: "Derivative Dynamic Time Warping", 《PROCEEDINGS OF THE 2001 SIAM INTERNATIONAL CONFERENCE ON DATA MINING (SDM)》 * |
吴志芳等: "动态模式匹配算法在地层对比中的应用", 《世界地质》 * |
张子戎等, 北京:煤炭工业出版社 * |
杨洁等: "动态时间规则DTW算法的研究", 《科技与创新》 * |
蔡希源等: "《陆相盆地高精度层序地层学 隐蔽油气藏勘探基础、方法与实践 技术方法篇》", 31 May 2004, 《北京:地质出版社》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022203702A1 (en) * | 2021-03-26 | 2022-09-29 | Schlumberger Technology Corporation | Wellbore data depth matching using change point algorithms |
CN113420936A (en) * | 2021-07-01 | 2021-09-21 | 中国海洋石油集团有限公司 | Stratum comparison method based on dynamic time programming optimization algorithm |
CN113420936B (en) * | 2021-07-01 | 2022-12-20 | 中国海洋石油集团有限公司 | Stratum comparison method based on dynamic time programming optimization algorithm |
CN113777669A (en) * | 2021-08-17 | 2021-12-10 | 中国石油化工股份有限公司 | Sandstone reservoir sublayer comparison method based on dynamic time sequence matching number technology |
CN114839694A (en) * | 2022-05-06 | 2022-08-02 | 西南石油大学 | A Stratigraphic Correlation Method Based on Dynamic Time Warping Algorithm |
CN115113281A (en) * | 2022-05-18 | 2022-09-27 | 北京月新时代科技股份有限公司 | Method, device, equipment and storage medium for determining marker well and marker layer thereof |
CN115113299A (en) * | 2022-05-18 | 2022-09-27 | 北京月新时代科技股份有限公司 | Intelligent marking stratum positioning and dividing method, device, equipment and storage medium |
CN114909125A (en) * | 2022-06-08 | 2022-08-16 | 中国地质大学(北京) | Numericalization of text-type cuttings logging data and automatic stratigraphic comparison method and device |
CN114909125B (en) * | 2022-06-08 | 2024-08-16 | 中国地质大学(北京) | Method and device for digitizing text-based cuttings logging data and automatically comparing formations |
CN117910883A (en) * | 2024-03-18 | 2024-04-19 | 中海油田服务股份有限公司 | Logging data quality detection method, device, computing equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110852144A (en) | A DTW-based intelligent stratigraphic comparison method and system | |
CN110674841B (en) | Logging curve identification method based on clustering algorithm | |
US20220170366A1 (en) | 3d in-situ characterization method for heterogeneity in generating and reserving performances of shale | |
CN110609320B (en) | A pre-stack seismic reflection pattern recognition method based on multi-scale feature fusion | |
AU2013337322B2 (en) | Seismic waveform classification system and method | |
CN111458767B (en) | A method and system for identifying lithology based on intersection map method | |
CN103775075B (en) | A kind of full well section Lithology Identification Methods | |
KR101148835B1 (en) | Prediction system and method for subsurface lithology in oil sands reservoir using statistical analysis of well logging data | |
CN104011566A (en) | Wavelet-transform based system and method for analyzing characteristics of a geological formation | |
EP2686715A2 (en) | Subsurface directional equalization analysis of rock bodies | |
CN118071954A (en) | Three-dimensional geological modeling method, system and equipment based on exploration line profile data | |
CN106777707A (en) | A kind of method that WELL LITHOLOGY quantitative judge is carried out using improved spider diagram | |
EP3387469B1 (en) | Electrofacies determination | |
CN118116506A (en) | A method and system for identifying underground lithology based on machine learning | |
CN117784254A (en) | Multi-scale lithology prediction method based on artificial intelligence, electronic equipment and medium | |
CN117452518A (en) | Reservoir lithology prediction method based on multidisciplinary data fusion clustering algorithm | |
CN112394392A (en) | Method and device for evaluating distribution condition of hydrocarbon source rock | |
CN110146920A (en) | Microseismic event detection method and system based on relative amplitude changes | |
CN117555017A (en) | Reservoir lithology prediction method based on hierarchical joint clustering | |
CN116341232A (en) | Method and system for automatically generating horizons in sea breeze geological modeling based on image recognition | |
CN113640875B (en) | Deposition phase identification method, device and system | |
CN113720952A (en) | Method, device, equipment and medium for generating chart for reservoir interpretation and evaluation | |
CN111366976A (en) | Seismic attribute self-adaptive median filtering method based on scale guide | |
CN114909125B (en) | Method and device for digitizing text-based cuttings logging data and automatically comparing formations | |
CN113552639B (en) | Geophysical prospecting data boundary abnormity enhancement method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200228 |
|
RJ01 | Rejection of invention patent application after publication |