[go: up one dir, main page]

CN114357887A - A prediction method of mud loss before drilling in complex well conditions based on BP neural network - Google Patents

A prediction method of mud loss before drilling in complex well conditions based on BP neural network Download PDF

Info

Publication number
CN114357887A
CN114357887A CN202210013790.1A CN202210013790A CN114357887A CN 114357887 A CN114357887 A CN 114357887A CN 202210013790 A CN202210013790 A CN 202210013790A CN 114357887 A CN114357887 A CN 114357887A
Authority
CN
China
Prior art keywords
data
neural network
value
layer
leakage
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.)
Granted
Application number
CN202210013790.1A
Other languages
Chinese (zh)
Other versions
CN114357887B (en
Inventor
丁文龙
石铄
赵展
杨瑞强
赵腾
史帅雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Geosciences Beijing
Original Assignee
China University of Geosciences Beijing
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China University of Geosciences Beijing filed Critical China University of Geosciences Beijing
Priority to CN202210013790.1A priority Critical patent/CN114357887B/en
Publication of CN114357887A publication Critical patent/CN114357887A/en
Application granted granted Critical
Publication of CN114357887B publication Critical patent/CN114357887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)

Abstract

The invention discloses a method for predicting the slurry leakage before drilling under complex well conditions based on a BP neural network, which comprises the following steps: s1, collecting historical seismic attribute data of the target area and engineering and geological data corresponding to the missing case; s2, carrying out standardization processing on the collected data, and carrying out conversion processing on all data for the convenience of implementing a method; s3, taking the preprocessed historical seismic data as input, the loss condition as output and the real loss state as a standard value, and carrying out supervision training and optimization to obtain a loss prediction neural network model; and S4, inputting earthquake real-time seismic data of the target area, and automatically judging the leakage condition corresponding to each depth of the area by the model. The invention solves the problems that the condition in the well is difficult to accurately predict before drilling under the existing complex well condition and mud leakage is easy to occur.

Description

一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法A prediction method of mud loss before drilling in complex well conditions based on BP neural network

技术领域technical field

本发明涉及钻井施工技术领域,具体涉及一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法。The invention relates to the technical field of drilling construction, in particular to a method for predicting mud loss before drilling in complex well conditions based on a BP neural network.

背景技术Background technique

在钻井生产过程中,当钻遇裂缝发育带和/或溶洞发育带时,常常会发生井漏。若在容易发生井漏情况的地层进行钻井,则是一个较为复杂的钻井工作,在上述地层进行钻井极易诱发井喷、卡钻等重大井下事故。更为重要的是,钻井工程事故直接影响油气层的发现和保护,造成勘探开发成效下降。例如塔里木盆地塔中北坡地区目前常用的技术手段主要是通过测井对井漏进行测试分析,找准漏层位置,确定漏层通道性质,即先进行钻井工作,在遇到井漏时才能知道钻井地层为钻井漏失层段。该方法不能在钻井前对地层进行井漏进行预测,从而不能对钻井提供指导,避开钻井漏失层段。所以该方法钻探成功率较低。During the drilling and production process, lost circulation often occurs when drilling into fracture-developed zones and/or karst-cavity-developed zones. Drilling in formations prone to lost circulation is a relatively complex drilling work, and drilling in the formations above can easily induce major downhole accidents such as blowouts and pipe sticking. More importantly, drilling engineering accidents directly affect the discovery and protection of oil and gas formations, resulting in a decline in the effectiveness of exploration and development. For example, the commonly used technical means in the north slope area of Tazhong in the Tarim Basin are mainly to test and analyze the lost circulation through well logging, identify the location of the leakage layer, and determine the channel properties of the leakage layer. Knowing that the drilling formation is the drilling lost interval. This method cannot predict the lost circulation in the formation before drilling, so it cannot provide guidance for drilling and avoid drilling leakage intervals. Therefore, the drilling success rate of this method is low.

中国专利申请号CN 110941010 A,申请公布日为2020年3月31日,发明创造名称为一种利用地震资料预测钻井漏失的方法,包括以下步骤:本发明提供了一种利用地震资料预测钻井漏失的方法,包括以下步骤:S1:对原始地震数据体进行降噪滤波处理,得到滤波数据体;S2:对所述滤波数据体进行相干处理得到相干体;S3:将所述相干体与所述原始地震数据体进行融合得到融合数据体;S4:根据所述融合数据体的剖面确定相干体的分布区域,根据所述相干体的分布区域预测裂缝发育带和/或溶洞发育带的位置;S5:根据所述裂缝发育带和/或溶洞发育带的位置预测钻井漏失层段。该申请案提出了一种利用地震资料预测钻井漏失的技术方案,但其不足之处在于:第一,该申请案所描述的方法中地震数据体处理及融合具有很大的不误差性,会影响最终预测裂缝发育带和/或溶洞发育带的位置结果;第二,该方法只能初步确定裂缝发育带和/或溶洞发育带的位置,不能仅凭借裂缝发育带和/或溶洞发育带的位置确定漏失位置,影响漏失的因素有很多,故而具有很大的局限性、不确定性。因此,需要一种针对复杂井况钻前泥浆漏失预测方法,提升安全性。Chinese Patent Application No. CN 110941010 A, the application publication date is March 31, 2020, the invention-creation title is a method for predicting drilling loss by utilizing seismic data, comprising the following steps: The present invention provides a method for predicting drilling loss by utilizing seismic data The method includes the following steps: S1: perform noise reduction filtering processing on the original seismic data volume to obtain a filtered data volume; S2: perform coherent processing on the filtered data volume to obtain a coherent volume; S3: combine the coherent volume with the The original seismic data volume is fused to obtain a fusion data volume; S4: Determine the distribution area of the coherent volume according to the section of the fusion data volume, and predict the position of the fracture development zone and/or the karst cave development zone according to the distribution area of the coherent volume; S5 : Predict the drilling lost interval according to the position of the fracture development zone and/or the cave development zone. This application proposes a technical solution for predicting drilling loss by using seismic data, but its shortcomings are: first, the processing and fusion of seismic data volumes in the method described in this application has great inaccuracy, and will It affects the final prediction of the location results of the fracture development zone and/or the cave development zone; secondly, this method can only determine the location of the fracture development zone and/or the cave development zone preliminarily, and cannot rely solely on the fracture development zone and/or the cave development zone. The location determines the missing location, and there are many factors that affect the missing, so it has great limitations and uncertainties. Therefore, there is a need for a method for predicting mud loss before drilling for complex well conditions to improve safety.

发明内容SUMMARY OF THE INVENTION

为此,本发明提供一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,以解决现有复杂井况钻前难以准确预测井内状况、容易出现泥浆漏失的问题。To this end, the present invention provides a method for predicting mud loss before drilling in complex well conditions based on BP neural network, so as to solve the problems of difficulty in accurately predicting well conditions and easy mud loss before drilling in complex well conditions.

为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:

本发明公开了一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,所述方法为:The invention discloses a method for predicting mud loss before drilling in complex well conditions based on BP neural network. The method is as follows:

S1、收集目标区域历史地震属性数据、漏失案例相应的工程及地质数据资料;S1. Collect historical seismic attribute data of the target area, engineering and geological data corresponding to missing cases;

S2、对收集数据进行标准化处理,并且为了方便方法的实施,对所有数据进行转换处理;S2. Standardize the collected data, and in order to facilitate the implementation of the method, convert all data;

S3、以预处理后的历史地震数据为输入,以漏失情况为输出,以真实漏失状态为标准值,监督训练并优化得到漏失预测神经网络模型;S3. Take the preprocessed historical seismic data as the input, take the leakage situation as the output, and take the real leakage state as the standard value, supervise training and optimize to obtain the leakage prediction neural network model;

S4、输入目标区域地震即时地震数据,由模型自动评判出此区域各深度对应的漏失情况。S4. Input the real-time seismic data of the target area, and the model automatically judges the leakage situation corresponding to each depth in this area.

进一步地,所述S1步骤中,通过对目标区块历史钻井漏失地质参数和工程参数,地质参数主要包括漏失时的地质层位、漏失段的岩性,工程参数包括泥浆漏失速度、累计泥浆漏失量、泥浆密度以及泥浆漏失时的施工工况的收集、整理和验证,确定了5个输入参数的变量集:原始振幅、AFE、均方根振幅、瞬时频率、响应相位等地震属性数据,将收集到的该区块漏失情况真实值,设漏失为数值1,未漏失设为数值0,作为模型训练的标准值。Further, in the step S1, through the historical drilling leakage geological parameters and engineering parameters of the target block, the geological parameters mainly include the geological horizon at the time of the leakage and the lithology of the leakage section, and the engineering parameters include the mud leakage rate, the cumulative mud leakage. Quantity, mud density, and construction conditions when mud is lost are collected, sorted and verified, and a variable set of five input parameters is determined: original amplitude, AFE, RMS amplitude, instantaneous frequency, response phase and other seismic attribute data. The collected real value of the missing situation in this block is set as the value of 1 for missing, and the value of 0 for no missing, as the standard value for model training.

进一步地,所述S2步骤中,标准化处理的方法为采用直方图法;确定相对层;绘制直方图;获取研究区各数据标准值;获取单井曲线校正值。Further, in the step S2, the standardization processing method is to use the histogram method; determine the relative layer; draw the histogram; obtain the standard value of each data in the study area; obtain the correction value of the single well curve.

进一步地,所述确定相对层中将将研究区志留系顶面作为相对标准层,地震识别特征明显;所述绘制直方图,提取各单井的标准层数据,通过高斯正态分布函数对地震响应频率分布直方图进行拟合,获得各地震属性的峰值读数。Further, in the determination of the relative layer, the top surface of the Silurian in the study area will be used as the relative standard layer, and the seismic identification features are obvious; the histogram is drawn, the standard layer data of each single well is extracted, and the Gaussian normal distribution function is used to analyze the data. The seismic response frequency distribution histogram is fitted to obtain peak readings for each seismic attribute.

进一步地,所述获取研究区各数据标准值,取各单井的地震属性响应值绘制全区的原始振幅、AFE、均方根振幅、瞬时频率、响应相位的频率分布直方图,得到全区直方图峰值,即各属性的标准值。Further, the standard value of each data in the study area is obtained, and the seismic attribute response value of each single well is used to draw the frequency distribution histogram of the original amplitude, AFE, RMS amplitude, instantaneous frequency, and response phase of the whole area, so as to obtain the frequency distribution histogram of the whole area. The peak value of the histogram, that is, the standard value of each attribute.

进一步地,所述获取单井曲线校正值中,校正值=全区标准值-单井峰值。Further, in the acquisition of the correction value of the single well curve, the correction value = the standard value of the whole area - the peak value of the single well.

进一步地,所述S2步骤中,数据进行转换处理为对数据归一化,数据归一化是将预处理的数据被限定在[-1,1]的范围内,从而将数据的所有特征都映射到同一尺度上。Further, in the step S2, the data is converted to normalize the data, and the data normalization is to limit the preprocessed data to the range of [-1, 1], so that all the features of the data are mapped to the same scale.

进一步地,所述S3步骤中设置训练集的输入参数InputData,将收集整理的5个地震属性参数作为神经网络训练的数据;设置训练集的输出标准值OutputTarget,标准值为实测该区块对应深度的漏失情况;建立BP神经网络,设置输入层、隐含层、输出层的节点个数,设置传递函数,并利用批处理梯度下降算法对模型进行无约束非线性优化。Further, in the step S3, the input parameter InputData of the training set is set, and the collected 5 seismic attribute parameters are used as the data of neural network training; the output standard value OutputTarget of the training set is set, and the standard value is the actual measured depth corresponding to this block. establish the BP neural network, set the number of nodes in the input layer, hidden layer and output layer, set the transfer function, and use the batch gradient descent algorithm to perform unconstrained nonlinear optimization of the model.

进一步地,所述监督训练并优化得到漏失预测神经网络模型的方法为:对原始变量参数进行初始化,设置初始权重、阈值和学习速率,然后输入给定样本通过sigmoid作用函数计算各层的输入值和输出值,每一层神经元状态只影响下一层神经元状态,并逐渐向隐含层传播,隐含层的输入等于输入层信号的加权和,输出层等于上一层隐含层的输出通过激励函数映射后的输出值,在输出端产生输出信号,若在输出层不能得到理想的输出值,则系统转入误差信号反向传播过程,误差信号从输出层向输入层传播并沿途调整各层间连接权值以及各层神经元的偏置值,执行误差函数梯度下降策略以使误差信号不断减少,权值不断调整使网络误差函数达到最小值。Further, the method for obtaining the dropout prediction neural network model by the supervision training and optimization is as follows: initialize the original variable parameters, set the initial weight, threshold and learning rate, and then input a given sample to calculate the input value of each layer through the sigmoid function function. and output value, the neuron state of each layer only affects the neuron state of the next layer, and gradually propagates to the hidden layer. The input of the hidden layer is equal to the weighted sum of the signals of the input layer, and the output layer is equal to the value of the previous hidden layer. The output value mapped by the excitation function is output, and the output signal is generated at the output end. If the ideal output value cannot be obtained at the output layer, the system transfers to the error signal back propagation process, and the error signal propagates from the output layer to the input layer along the way. The connection weights between layers and the bias values of neurons in each layer are adjusted, and the gradient descent strategy of the error function is implemented to continuously reduce the error signal, and the weights are continuously adjusted to make the network error function reach the minimum value.

进一步地,所述S4步骤中,基于漏失情况预测值和漏失情况实测值之间的差距,反向传播算法会相应更新神经网络参数的权值,并根据权值来对神经网络进行修改,模型预测值在不断地修改中接近目标值,直到达到一定的准确率或训练次数为止。Further, in the step S4, based on the difference between the predicted value of the missing situation and the measured value of the missing situation, the back-propagation algorithm will update the weights of the neural network parameters accordingly, and modify the neural network according to the weights. The predicted value is continuously modified to approach the target value until a certain accuracy rate or training times is reached.

本发明具有如下优点:The present invention has the following advantages:

本发明公开了一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,通过预测得出的漏失情况,作为井位部署开发的判断依据,为钻井技术人员和施工人员提供更加准确、有效的决策依据,从而提高规避复杂井况的概率,增加钻井作业的实施效率,避免了重复作业,节省工程时间。可以快速、精准的进行钻前漏失情况预测,从而为钻井提供决策支持,提高规避漏失减少钻井时长的概率。The invention discloses a method for predicting mud leakage before drilling in complex well conditions based on BP neural network. The leakage situation obtained through the prediction is used as the judgment basis for well position deployment and development, and provides drilling technicians and construction personnel with more accurate and effective methods. Therefore, the probability of avoiding complex well conditions is increased, the implementation efficiency of drilling operations is increased, repeated operations are avoided, and engineering time is saved. It can quickly and accurately predict the leakage situation before drilling, so as to provide decision support for drilling and improve the probability of avoiding leakage and reducing drilling time.

附图说明Description of drawings

为了更清楚地说明本发明的实施方式或现有技术中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是示例性的,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图引申获得其它的实施附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only exemplary, and for those of ordinary skill in the art, other implementation drawings can also be derived from the provided drawings without any creative effort.

本说明书所绘示的结构、比例、大小等,均仅用以配合说明书所揭示的内容,以供熟悉此技术的人士了解与阅读,并非用以限定本发明可实施的限定条件,故不具技术上的实质意义,任何结构的修饰、比例关系的改变或大小的调整,在不影响本发明所能产生的功效及所能达成的目的下,均应仍落在本发明所揭示的技术内容得能涵盖的范围内。The structures, proportions, sizes, etc. shown in this specification are only used to cooperate with the contents disclosed in the specification, so as to be understood and read by those who are familiar with the technology, and are not used to limit the conditions for the implementation of the present invention, so there is no technical The substantive meaning above, any modification of the structure, the change of the proportional relationship or the adjustment of the size should still fall within the technical content disclosed in the present invention without affecting the effect and the purpose that the present invention can produce. within the range that can be covered.

图1为本发明实施例提供的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法的流程图;1 is a flowchart of a method for predicting mud loss before drilling in complex well conditions based on a BP neural network according to an embodiment of the present invention;

图2为本发明实施例提供的BP网络运算结构示意图;2 is a schematic diagram of a BP network operation structure provided by an embodiment of the present invention;

图3为本发明实施例提供的BP网络算法流程图;3 is a flowchart of a BP network algorithm provided by an embodiment of the present invention;

图4为本发明实施例提供的模型训练寻优曲线图;Fig. 4 is a model training optimization curve diagram provided by an embodiment of the present invention;

图5为本发明实施例提供的验证集漏失预测结果对比图。FIG. 5 is a comparison diagram of a validation set dropout prediction result provided by an embodiment of the present invention.

具体实施方式Detailed ways

以下由特定的具体实施例说明本发明的实施方式,熟悉此技术的人士可由本说明书所揭露的内容轻易地了解本发明的其他优点及功效,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The embodiments of the present invention are described below by specific specific embodiments. Those who are familiar with the technology can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例Example

参考图1,本实施例公开了一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,所述方法为:Referring to FIG. 1 , the present embodiment discloses a method for predicting mud loss before drilling in complex well conditions based on BP neural network. The method is as follows:

S1、收集目标区域历史地震属性数据、漏失案例相应的工程及地质数据资料;S1. Collect historical seismic attribute data of the target area, engineering and geological data corresponding to missing cases;

S2、对收集数据进行标准化处理,并且为了方便方法的实施,对所有数据进行转换处理;S2. Standardize the collected data, and in order to facilitate the implementation of the method, convert all data;

S3、以预处理后的历史地震数据为输入,以漏失情况为输出,以真实漏失状态为标准值,监督训练并优化得到漏失预测神经网络模型;S3. Take the preprocessed historical seismic data as the input, take the leakage situation as the output, and take the real leakage state as the standard value, supervise training and optimize to obtain the leakage prediction neural network model;

S4、输入目标区域地震即时地震数据,由模型自动评判出此区域各深度对应的漏失情况。S4. Input the real-time seismic data of the target area, and the model automatically judges the leakage situation corresponding to each depth in this area.

参考图2是本发明技术方案中的BP网络运算结构示意,由图2可知,典型的BP神经网络主要指拥有三层及以上网络结构的前向网络,该结构的首层和和尾层一般叫做输入层和输出层,中间各层均称为隐含层或中间层。网络之间无反馈,网络层内也不互相连同。主要依靠系统的复杂程度,来动态调整网络内部节点的连接关系和连接强度,进而更好地反映系统的构造情况。Referring to Fig. 2, it is a schematic diagram of the operation structure of the BP network in the technical solution of the present invention. It can be seen from Fig. 2 that a typical BP neural network mainly refers to a forward network with three or more layers of network structures. The first layer and the tail layer of the structure are generally It is called the input layer and the output layer, and each layer in the middle is called the hidden layer or the middle layer. There is no feedback between the networks, and the network layers are not connected to each other. It mainly depends on the complexity of the system to dynamically adjust the connection relationship and connection strength of the internal nodes of the network, so as to better reflect the structure of the system.

图3是本发明技术方案中的BP网络算法流程图,学习过程一般为:首先对原始变量参数依次进行标准化、转换及初始化处理,设置初始权重、阈值和学习速率等,然后输入给定样本通过sigmoid作用函数计算各层的输入值和输出值,每一层神经元状态只影响下一层神经元状态,并逐渐向隐含层传播,隐含层的输入等于输入层信号的加权和,输出层等于上一层隐含层的输出通过激励函数映射后的输出值,在输出端产生输出信号。若在输出层不能得到理想的输出值,则系统转入误差信号反向传播过程,误差信号从输出层向输入层传播并沿途调整各层间连接权值以及各层神经元的偏置值,执行误差函数梯度下降策略以使误差信号不断减少,权值不断调整使网络误差函数达到最小值;该神经网络的学习速率设为0.01,最小目标误差0.001,迭代次数最高为1000,其他参数保持默认,隐含层神经元个数设为12,输入层为5,输出层为1,采用下式来计算隐含层节点个数k,Fig. 3 is the flow chart of the BP network algorithm in the technical solution of the present invention. The learning process is generally as follows: first, standardize, convert and initialize the original variable parameters in turn, set the initial weight, threshold and learning rate, etc., and then input a given sample to pass The sigmoid function calculates the input value and output value of each layer. The neuron state of each layer only affects the neuron state of the next layer, and gradually propagates to the hidden layer. The input of the hidden layer is equal to the weighted sum of the signals of the input layer, and the output The layer is equal to the output value after the output of the previous hidden layer is mapped by the excitation function, and an output signal is generated at the output end. If the ideal output value cannot be obtained at the output layer, the system transfers to the process of back propagation of the error signal, and the error signal propagates from the output layer to the input layer and adjusts the connection weights between layers and the bias values of neurons in each layer along the way. Execute the error function gradient descent strategy to continuously reduce the error signal, and adjust the weights to make the network error function reach the minimum value; the learning rate of the neural network is set to 0.01, the minimum target error is 0.001, the maximum number of iterations is 1000, and other parameters remain default , the number of neurons in the hidden layer is set to 12, the input layer is 5, and the output layer is 1. The following formula is used to calculate the number of hidden layer nodes k,

Figure BDA0003458967070000061
Figure BDA0003458967070000061

式中,m为隐含层节点数;n为输入层节点数;l为输出层节点数;α为1-10之间的整数,故k为4-13,选择不同的k值训练模型,最终得到最佳精度的隐含层节点数为12。In the formula, m is the number of hidden layer nodes; n is the number of input layer nodes; l is the number of output layer nodes; Finally, the number of hidden layer nodes to get the best accuracy is 12.

S1步骤中,通过对目标区块历史钻井漏失地质参数和工程参数,地质参数主要包括漏失时的地质层位、漏失段的岩性,工程参数包括泥浆漏失速度、累计泥浆漏失量、泥浆密度以及泥浆漏失时的施工工况的收集、整理和验证,确定了5个输入参数的变量集:原始振幅、AFE、均方根振幅、瞬时频率、响应相位等地震属性数据,将收集到的该区块漏失情况真实值,设漏失为数值1,未漏失设为数值0,作为模型训练的标准值。In step S1, the geological parameters and engineering parameters of historical drilling leakage in the target block are determined. The geological parameters mainly include the geological horizon at the time of leakage and the lithology of the leakage section. The collection, sorting and verification of construction conditions when mud is lost has determined a variable set of 5 input parameters: original amplitude, AFE, RMS amplitude, instantaneous frequency, response phase and other seismic attribute data, which will be collected in this area. The true value of the block missing condition, set the missing value as 1 and the non-missing value as 0, as the standard value for model training.

由于每口井所在区块地震数据所测时间不同,深度、井下环境、仪器系列不同,并且后期标准刻度的操作方式也不一定相同,由此可能会导致不同区块地震属性之间存在误差。因此应用这些地震属性资料时,必须对其进行标准化处理,并且为了方便方法的实施,对所有数据也会进行转换处理。Because the seismic data of the block where each well is located is different in time, depth, downhole environment, instrument series, and the operation mode of the standard calibration in the later stage is not necessarily the same, which may lead to errors between the seismic attributes of different blocks. Therefore, when applying these seismic attribute data, they must be standardized, and in order to facilitate the implementation of the method, all data will be transformed.

标准化处理的方法为采用直方图法;确定相对层;绘制直方图;获取研究区各数据标准值;获取单井曲线校正值。The standardization method is to use the histogram method; to determine the relative layers; to draw the histogram; to obtain the standard value of each data in the study area; to obtain the correction value of the single well curve.

确定相对层中将将研究区志留系顶面作为相对标准层,地震识别特征明显;所述绘制直方图,提取各单井的标准层数据,通过高斯正态分布函数对地震响应频率分布直方图进行拟合,获得各地震属性的峰值读数。获取研究区各数据标准值,取各单井的地震属性响应值绘制全区的原始振幅、AFE、均方根振幅、瞬时频率、响应相位的频率分布直方图,得到全区直方图峰值,即各属性的标准值,获取单井曲线校正值中,校正值=全区标准值-单井峰值。In the relative layers, the top surface of the Silurian in the study area will be used as the relative standard layer, and the seismic identification features are obvious; the histogram is drawn, the standard layer data of each single well is extracted, and the seismic response frequency distribution histogram is calculated by the Gaussian normal distribution function. Figures are fitted to obtain peak readings for each seismic attribute. Obtain the standard value of each data in the study area, and take the seismic attribute response value of each single well to draw the frequency distribution histogram of the original amplitude, AFE, RMS amplitude, instantaneous frequency, and response phase of the whole area, and obtain the peak value of the histogram in the whole area, namely The standard value of each attribute is obtained in the calibration value of the single well curve, the calibration value = the standard value of the whole area - the peak value of the single well.

转换处理就是数据归一化,数据归一化是将预处理的数据被限定在[-1,1]的范围内,从而将数据的所有特征都映射到同一尺度上,这样可以避免由于量纲的不同使数据的某些特征形成主导作用。Transformation processing is data normalization. Data normalization is to limit the preprocessed data to the range of [-1, 1], so that all the features of the data are mapped to the same scale, which can avoid due to the dimension The difference makes some characteristics of the data form a dominant role.

在S3步骤中设置训练集的输入参数InputData,将收集整理的5个地震属性参数作为神经网络训练的数据;设置训练集的输出标准值OutputTarget,标准值为实测该区块对应深度的漏失情况;建立BP神经网络,设置输入层、隐含层、输出层的节点个数,设置传递函数,并利用批处理梯度下降算法对模型进行无约束非线性优化。In step S3, the input parameter InputData of the training set is set, and the collected 5 seismic attribute parameters are used as the data for neural network training; the output standard value OutputTarget of the training set is set, and the standard value is the actual measurement of the missing situation of the corresponding depth of the block; Build a BP neural network, set the number of nodes in the input layer, hidden layer and output layer, set the transfer function, and use the batch gradient descent algorithm to perform unconstrained nonlinear optimization of the model.

对钻前泥浆漏失预测神经网络模型监督训练及优化的具体过程如下,首先对原始变量参数进行初始化,设置初始权重、阈值和学习速率等,如图3,然后输入给定样本通过sigmoid作用函数计算各层的输入值和输出值,每一层神经元状态只影响下一层神经元状态,并逐渐向隐含层传播,隐含层的输入等于输入层信号的加权和,输出层等于上一层隐含层的输出通过激励函数映射后的输出值,在输出端产生输出信号。若在输出层不能得到理想的输出值,则系统转入误差信号反向传播过程,误差信号从输出层向输入层传播并沿途调整各层间连接权值以及各层神经元的偏置值,执行误差函数梯度下降策略以使误差信号不断减少,权值不断调整使网络误差函数达到最小值。The specific process of supervising, training and optimizing the neural network model for pre-drilling mud loss prediction is as follows. First, initialize the original variable parameters, set initial weights, thresholds, and learning rates, as shown in Figure 3, and then input a given sample to calculate through the sigmoid action function. The input value and output value of each layer, the neuron state of each layer only affects the neuron state of the next layer, and gradually propagates to the hidden layer. The input of the hidden layer is equal to the weighted sum of the signals of the input layer, and the output layer is equal to the previous layer. The output of the hidden layer of the layer is mapped through the output value of the excitation function, and an output signal is generated at the output end. If the ideal output value cannot be obtained in the output layer, the system transfers to the process of error signal back propagation, the error signal propagates from the output layer to the input layer and adjusts the connection weights between layers and the bias values of neurons in each layer along the way. The error function gradient descent strategy is implemented to continuously reduce the error signal, and the weights are continuously adjusted to make the network error function reach the minimum value.

为保证模型运行时权值和阈值的自动初始化,将newff函数用作网络模型的生成函数——newff函数,指的是训练前馈网络的第一步是建立网络对象,实质是newff函数的参数。这个命令建立了网络对象并且初始化了网络权重和偏置,因此网络就可以进行训练了。In order to ensure the automatic initialization of weights and thresholds when the model is running, the newff function is used as the generation function of the network model - the newff function, which means that the first step in training the feedforward network is to establish a network object, which is essentially the parameter of the newff function. . This command creates the network object and initializes the network weights and biases, so the network can be trained.

动量的批处理梯度下降法用训练函数traingdm触发;The batch gradient descent method of momentum is triggered by the training function trainingdm;

输入层与隐含层间选用双曲线正切函数tansig作为传递函数;logsigz作为隐含层与输出层间的传递函数;The hyperbolic tangent function tansig is used as the transfer function between the input layer and the hidden layer; logsigz is used as the transfer function between the hidden layer and the output layer;

选用traingdx函数作为“误差逆传播”过程的训练函数。The trainingdx function is selected as the training function of the "error inverse propagation" process.

在S4步骤中,利用漏失情况预测值与标准值等数据进行监督训练的方式为:基于漏失情况预测值和漏失情况实测值之间的差距,反向传播算法会相应更新神经网络参数的权值,并根据权值来对神经网络进行修改,模型预测值在不断地修改中接近目标值,直到达到一定的准确率或训练次数为止。In step S4, the method of supervised training using data such as the predicted value of the missing situation and the standard value is: based on the difference between the predicted value of the missing situation and the measured value of the missing situation, the back-propagation algorithm will update the weights of the neural network parameters accordingly. , and modify the neural network according to the weights. The predicted value of the model is constantly modified to approach the target value until it reaches a certain accuracy rate or training times.

参考图4是模型训练寻优曲线图,由图可知,当迭代9次时结果连续6次小于误差0.001,满足训练要求,成功建立神经网络训练模型。Referring to Figure 4 is the model training optimization curve. It can be seen from the figure that the result is less than the error of 0.001 for 6 consecutive times after 9 iterations, which meets the training requirements and successfully establishes the neural network training model.

参考图5是验证集漏失预测结果对比图,由图可知,整体预测的符合率已经达到80%以上,证明了综合利用这些信息预测漏失的有效性,同时说明BP神经网络适合该地区漏失的判定,预测偏差的主要原因可能还是由于不同地区的地质情况,地震属性的多解性或者数据代表性不够等。Referring to Figure 5, it is a comparison chart of the prediction results of the validation set. It can be seen from the figure that the coincidence rate of the overall prediction has reached more than 80%, which proves the effectiveness of comprehensively using this information to predict the leakage, and also shows that the BP neural network is suitable for the judgment of the leakage in this area , the main reason for the prediction deviation may be due to the geological conditions in different regions, the multi-solution of seismic attributes or the lack of representative data.

本实施例公开的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,通过预测得出的漏失情况,作为井位部署开发的判断依据,为钻井技术人员和施工人员提供更加准确、有效的决策依据,从而提高规避复杂井况的概率,增加钻井作业的实施效率,避免了重复作业,节省工程时间。可以快速、精准的进行钻前漏失情况预测,从而为钻井提供决策支持,提高规避漏失减少钻井时长的概率。The present embodiment discloses a method for predicting mud leakage before drilling in complex well conditions based on BP neural network. The leakage situation obtained through the prediction is used as the judgment basis for well location deployment and development, and provides drilling technicians and construction personnel with more accurate, Effective decision-making basis, thereby increasing the probability of avoiding complex well conditions, increasing the implementation efficiency of drilling operations, avoiding repetitive operations, and saving engineering time. It can quickly and accurately predict the leakage situation before drilling, so as to provide decision support for drilling and improve the probability of avoiding leakage and reducing drilling time.

虽然,上文中已经用一般性说明及具体实施例对本发明作了详尽的描述,但在本发明基础上,可以对之作一些修改或改进,这对本领域技术人员而言是显而易见的。因此,在不偏离本发明精神的基础上所做的这些修改或改进,均属于本发明要求保护的范围。Although the present invention has been described in detail above with general description and specific embodiments, some modifications or improvements can be made on the basis of the present invention, which will be obvious to those skilled in the art. Therefore, these modifications or improvements made without departing from the spirit of the present invention fall within the scope of the claimed protection of the present invention.

Claims (10)

1.一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述方法为:1. a method for predicting mud leakage before drilling in complex well conditions based on BP neural network, is characterized in that, described method is: S1、收集目标区域历史地震属性数据、漏失案例相应的工程及地质数据资料;S1. Collect historical seismic attribute data of the target area, engineering and geological data corresponding to missing cases; S2、对收集数据进行标准化处理,并且为了方便方法的实施,对所有数据进行转换处理;S2. Standardize the collected data, and in order to facilitate the implementation of the method, convert all data; S3、以预处理后的历史地震数据为输入,以漏失情况为输出,以真实漏失状态为标准值,监督训练并优化得到漏失预测神经网络模型;S3. Take the preprocessed historical seismic data as the input, take the leakage situation as the output, and take the real leakage state as the standard value, supervise training and optimize to obtain the leakage prediction neural network model; S4、输入目标区域地震即时地震数据,由模型自动评判出此区域各深度对应的漏失情况。S4. Input the real-time seismic data of the target area, and the model automatically judges the leakage situation corresponding to each depth in this area. 2.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述S1步骤中,通过对目标区块历史钻井漏失地质参数和工程参数,地质参数主要包括漏失时的地质层位、漏失段的岩性,工程参数包括泥浆漏失速度、累计泥浆漏失量、泥浆密度以及泥浆漏失时的施工工况的收集、整理和验证,确定了5个输入参数的变量集:原始振幅、AFE、均方根振幅、瞬时频率、响应相位等地震属性数据,将收集到的该区块漏失情况真实值,设漏失为数值1,未漏失设为数值0,作为模型训练的标准值。2. a kind of mud loss prediction method based on BP neural network before drilling in complex well condition as claimed in claim 1, is characterized in that, in described S1 step, by the historical drilling loss geological parameter and engineering parameter of target block, The geological parameters mainly include the geological horizon at the time of leakage and the lithology of the missing section. The engineering parameters include the rate of mud leakage, the cumulative amount of mud leakage, the density of mud, and the collection, arrangement and verification of the construction conditions when the mud is lost. Five parameters have been identified. Variable set of input parameters: seismic attribute data such as original amplitude, AFE, root mean square amplitude, instantaneous frequency, response phase, etc., set the value of the missing value as 1 for the collected real value of the missing situation in this block, and the value of 0 for non-missing , as the standard value for model training. 3.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述S2步骤中,标准化处理的方法为采用直方图法;确定相对层;绘制直方图;获取研究区各数据标准值;获取单井曲线校正值。3. The method for predicting mud loss before drilling in complex well conditions based on BP neural network as claimed in claim 1, characterized in that, in the step S2, the method of standardization is to adopt a histogram method; determine the relative layer; Draw histogram; obtain the standard value of each data in the study area; obtain the calibration value of the single well curve. 4.如权利要求3所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述确定相对层中将将研究区志留系顶面作为相对标准层,地震识别特征明显;所述绘制直方图,提取各单井的标准层数据,通过高斯正态分布函数对地震响应频率分布直方图进行拟合,获得各地震属性的峰值读数。4. a kind of mud loss prediction method based on BP neural network before drilling in complex well conditions as claimed in claim 3, is characterized in that, in the described determination relative layer, the top surface of Silurian in the study area will be used as the relative standard layer, The seismic identification features are obvious; the histogram is drawn, the standard layer data of each single well is extracted, and the seismic response frequency distribution histogram is fitted by the Gaussian normal distribution function to obtain the peak readings of each seismic attribute. 5.如权利要求3所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述获取研究区各数据标准值,取各单井的地震属性响应值绘制全区的原始振幅、AFE、均方根振幅、瞬时频率、响应相位的频率分布直方图,得到全区直方图峰值,即各属性的标准值。5. A method for predicting mud loss before drilling in a complex well condition based on BP neural network as claimed in claim 3, characterized in that, obtaining the standard values of each data in the study area, and drawing the seismic attribute response values of each single well The frequency distribution histogram of the original amplitude, AFE, RMS amplitude, instantaneous frequency, and response phase of the whole area, and the peak value of the histogram of the whole area is obtained, that is, the standard value of each attribute. 6.如权利要求3所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述获取单井曲线校正值中,校正值=全区标准值-单井峰值。6 . The method for predicting mud loss before drilling in complex well conditions based on BP neural network according to claim 3 , wherein, in the obtained single-well curve correction value, the correction value=the standard value of the whole area-single well. 7 . peak. 7.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述S2步骤中,数据进行转换处理为对数据归一化,数据归一化是将预处理的数据被限定在[-1,1]的范围内,从而将数据的所有特征都映射到同一尺度上。7. The method for predicting mud loss before drilling in complex well conditions based on BP neural network as claimed in claim 1, characterized in that, in the step S2, the data is converted and processed to normalize the data, and the data is normalized. The transformation is to limit the preprocessed data to the range of [-1, 1], so that all the features of the data are mapped to the same scale. 8.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述S3步骤中设置训练集的输入参数InputData,将收集整理的5个地震属性参数作为神经网络训练的数据;设置训练集的输出标准值OutputTarget,标准值为实测此区块对应深度的漏失情况;建立BP神经网络,设置输入层、隐含层、输出层的节点个数,设置传递函数,并利用批处理梯度下降算法对模型进行无约束非线性优化。8. a kind of mud loss prediction method based on BP neural network before drilling in complex well conditions as claimed in claim 1, is characterized in that, in described S3 step, the input parameter InputData of training set is set, and 5 earthquakes collected and arranged will be collected. The attribute parameters are used as the data for neural network training; set the output standard value OutputTarget of the training set, and the standard value is the leakage of the depth corresponding to the measured block; build a BP neural network, and set the number of nodes in the input layer, hidden layer, and output layer , set the transfer function, and use the batch gradient descent algorithm to perform unconstrained nonlinear optimization of the model. 9.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述监督训练并优化得到漏失预测神经网络模型的方法为:对原始变量参数进行初始化,设置初始权重、阈值和学习速率,然后输入给定样本通过sigmoid作用函数计算各层的输入值和输出值,每一层神经元状态只影响下一层神经元状态,并逐渐向隐含层传播,隐含层的输入等于输入层信号的加权和,输出层等于上一层隐含层的输出通过激励函数映射后的输出值,在输出端产生输出信号,若在输出层不能得到理想的输出值,则系统转入误差信号反向传播过程,误差信号从输出层向输入层传播并沿途调整各层间连接权值以及各层神经元的偏置值,执行误差函数梯度下降策略以使误差信号不断减少,权值不断调整使网络误差函数达到最小值。9. The method for predicting mud loss before drilling in complex well conditions based on BP neural network as claimed in claim 1, wherein the method for obtaining the loss prediction neural network model by supervising training and optimizing is: Initialize, set the initial weight, threshold and learning rate, and then input a given sample to calculate the input and output values of each layer through the sigmoid function. Containing layer propagation, the input of the hidden layer is equal to the weighted sum of the signal of the input layer, and the output layer is equal to the output value of the output of the previous hidden layer mapped by the excitation function, and the output signal is generated at the output end. If the ideal output value is obtained, the system transfers to the error signal back propagation process, the error signal propagates from the output layer to the input layer and adjusts the connection weights between layers and the bias values of neurons in each layer along the way, and executes the error function gradient descent strategy. In order to make the error signal continue to decrease, the weights are constantly adjusted to make the network error function reach the minimum value. 10.如权利要求1所述的一种基于BP神经网络的复杂井况钻前泥浆漏失预测方法,其特征在于,所述S4步骤中,基于漏失情况预测值和漏失情况实测值之间的差距,反向传播算法会相应更新神经网络参数的权值,并根据权值来对神经网络进行修改,模型预测值在不断地修改中接近目标值,直到达到一定的准确率或训练次数为止。10. A method for predicting mud loss before drilling in complex well conditions based on BP neural network according to claim 1, wherein in the step S4, based on the difference between the predicted value of the leakage situation and the measured value of the leakage situation , the back-propagation algorithm will update the weights of the neural network parameters accordingly, and modify the neural network according to the weights. The model prediction value is constantly modified to approach the target value until a certain accuracy rate or training times is reached.
CN202210013790.1A 2022-01-06 2022-01-06 A method for predicting mud loss before drilling in complex well conditions based on BP neural network Active CN114357887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210013790.1A CN114357887B (en) 2022-01-06 2022-01-06 A method for predicting mud loss before drilling in complex well conditions based on BP neural network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210013790.1A CN114357887B (en) 2022-01-06 2022-01-06 A method for predicting mud loss before drilling in complex well conditions based on BP neural network

Publications (2)

Publication Number Publication Date
CN114357887A true CN114357887A (en) 2022-04-15
CN114357887B CN114357887B (en) 2025-02-28

Family

ID=81106680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210013790.1A Active CN114357887B (en) 2022-01-06 2022-01-06 A method for predicting mud loss before drilling in complex well conditions based on BP neural network

Country Status (1)

Country Link
CN (1) CN114357887B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115293462A (en) * 2022-10-08 2022-11-04 西南石油大学 Method for predicting size range of leakage channel based on deep learning
CN115749763A (en) * 2022-12-12 2023-03-07 中国石油大学(北京) A method and device for determining the downhole leakage rate
CN116070767A (en) * 2023-02-14 2023-05-05 西南石油大学 Drilling fluid leakage horizon prediction method based on capsule neural network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014066981A1 (en) * 2012-10-31 2014-05-08 Resource Energy Solutions Inc. Methods and systems for improved drilling operations using real-time and historical drilling data
CN106873033A (en) * 2017-03-13 2017-06-20 中国海洋石油总公司 A kind of method of many attribute earthquake information fusion FRACTURE PREDICTIONs based on neutral net
CN110952978A (en) * 2019-12-20 2020-04-03 西南石油大学 Drilling leakage fracture width prediction method based on neural network data mining

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014066981A1 (en) * 2012-10-31 2014-05-08 Resource Energy Solutions Inc. Methods and systems for improved drilling operations using real-time and historical drilling data
CN106873033A (en) * 2017-03-13 2017-06-20 中国海洋石油总公司 A kind of method of many attribute earthquake information fusion FRACTURE PREDICTIONs based on neutral net
CN110952978A (en) * 2019-12-20 2020-04-03 西南石油大学 Drilling leakage fracture width prediction method based on neural network data mining

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘敬寿 等: ""储层裂缝综合表征与预测研究进展"", 《地球物理学进展》, vol. 34, no. 6, 31 December 2019 (2019-12-31) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115293462A (en) * 2022-10-08 2022-11-04 西南石油大学 Method for predicting size range of leakage channel based on deep learning
CN115293462B (en) * 2022-10-08 2023-01-10 西南石油大学 A method for predicting the size range of missing channels based on deep learning
CN115749763A (en) * 2022-12-12 2023-03-07 中国石油大学(北京) A method and device for determining the downhole leakage rate
CN116070767A (en) * 2023-02-14 2023-05-05 西南石油大学 Drilling fluid leakage horizon prediction method based on capsule neural network
CN116070767B (en) * 2023-02-14 2024-04-02 西南石油大学 A drilling fluid loss layer prediction method based on capsule neural network

Also Published As

Publication number Publication date
CN114357887B (en) 2025-02-28

Similar Documents

Publication Publication Date Title
CN114357887A (en) A prediction method of mud loss before drilling in complex well conditions based on BP neural network
CN110807557B (en) BP neural network-based drilling rate prediction method and BP neural network-based particle swarm optimization method
CN112901137B (en) Deep well drilling ROP prediction method based on deep neural network Sequential model
CN111105332B (en) Highway intelligent pre-maintenance method and system based on artificial neural network
CN110952978B (en) Drilling leakage fracture width prediction method based on neural network data mining
CN112529341A (en) Drilling well leakage probability prediction method based on naive Bayesian algorithm
CN115049173B (en) Deep learning and Eaton method coupled to drive formation pore pressure prediction method
CN116976146B (en) Fracturing well yield prediction method and system coupled with physical driving and data driving
CN114969953A (en) Shield underpass tunnel optimization design method and device based on Catboost-NSGA-III
CN108596780A (en) A kind of Reservoir type division methods and system based on multiple information
CN115977736A (en) A coal and gas outburst early warning method driven by on-site real-time data
CN115438823A (en) A method and system for analysis and prediction of wellbore instability mechanism
CN117236191A (en) A method for predicting reservoir physical property parameters based on deep learning technology
CN115874993A (en) A shale gas well production control method, device and system based on artificial intelligence
CN112016766A (en) Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network
CN116644844A (en) Stratum pressure prediction method based on neural network time sequence
CN111412959A (en) Flow online monitoring calculation method, monitor and monitoring system
CN115796019A (en) A data-driven multi-objective optimization method for shield tunneling parameters
CN115860197A (en) Data-driven coal bed gas yield prediction method and system
CN110188439A (en) Early warning method of ground subsidence in subway construction based on case reasoning and system dynamics
CN114676631A (en) Shale gas reservoir fracturing horizontal well fracturing transformation parameter recommendation method
CN119090313A (en) Intelligent decision-making method and system for preventing and controlling geological disasters induced by TBM construction disturbance
CN118820955A (en) Dam monitoring data calculation method based on big data analysis and outlier filtering
CN118134022A (en) A method for predicting formation pressure based on improved machine learning algorithm
CN118395140A (en) A method for dividing mode intervals of multi-mode shield tunnels

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
GR01 Patent grant
GR01 Patent grant