[go: up one dir, main page]

CN112016766A - Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network - Google Patents

Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network Download PDF

Info

Publication number
CN112016766A
CN112016766A CN202010979086.2A CN202010979086A CN112016766A CN 112016766 A CN112016766 A CN 112016766A CN 202010979086 A CN202010979086 A CN 202010979086A CN 112016766 A CN112016766 A CN 112016766A
Authority
CN
China
Prior art keywords
risk
early warning
term memory
memory network
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.)
Pending
Application number
CN202010979086.2A
Other languages
Chinese (zh)
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 National Petroleum Corp
CNPC Chuanqing Drilling Engineering Co Ltd
Original Assignee
China National Petroleum Corp
CNPC Chuanqing Drilling Engineering Co Ltd
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 National Petroleum Corp, CNPC Chuanqing Drilling Engineering Co Ltd filed Critical China National Petroleum Corp
Priority to CN202010979086.2A priority Critical patent/CN112016766A/en
Publication of CN112016766A publication Critical patent/CN112016766A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Business, Economics & Management (AREA)
  • Biophysics (AREA)
  • Tourism & Hospitality (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Agronomy & Crop Science (AREA)
  • Animal Husbandry (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Mining & Mineral Resources (AREA)
  • Primary Health Care (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

本发明提供了一种基于长短期记忆网络的油气井钻井溢漏预警方法,所述预警方法可包括以下步骤:构建基于长短期记忆网络的溢漏风险预警模型,溢漏风险预警模型包括输入层、隐含层和输出层,其中,隐含层包括至少两层长短期记忆网络结构;利用已有的钻井风险数据对溢漏风险预警模型进行训练;利用训练后的溢漏风险预警模型进行油气井钻井溢漏预警。本发明的有益效果可包括:能够及时、准确地给出识别结果,能够降低风险识别对先验知识和专家经验的依赖,使得钻井风险的预警更加智能和高效,具有良好的现场应用前景。

Figure 202010979086

The present invention provides an oil and gas well drilling leakage early warning method based on a long short-term memory network. The early warning method may include the following steps: constructing a long short-term memory network-based leakage risk early warning model, and the leakage risk early warning model includes an input layer. , hidden layer and output layer, wherein the hidden layer includes at least two layers of long-term and short-term memory network structure; use the existing drilling risk data to train the spill risk early warning model; use the trained spill risk early warning model for oil and gas Well drilling spill warning. The beneficial effects of the invention may include: timely and accurate identification results can be given, the dependence of risk identification on prior knowledge and expert experience can be reduced, the early warning of drilling risks can be made more intelligent and efficient, and it has a good field application prospect.

Figure 202010979086

Description

一种基于长短期记忆网络的油气井钻井溢漏预警方法An early warning method for oil and gas well drilling spillage based on long short-term memory network

技术领域technical field

本发明涉及石油天然气钻井工程中的井控安全领域,特别地,涉及一种基于长短期记忆网络的油气井钻井溢漏预警方法。The invention relates to the field of well control safety in oil and gas drilling engineering, in particular, to a method for early warning of oil and gas well drilling leakage based on a long short-term memory network.

背景技术Background technique

溢流、井漏是钻井过程中的两种易发风险,尤其对于深井、超深井、断层发育、碳酸盐岩等特点的油气勘探区块和一些地下压力体系尚不十分明确的新开区块,溢漏险情更易发生。溢流和井漏不仅会对储层造成严重损害,增加开发成本,降低开发效率,而且一旦控制不力,还会诱发卡钻、井塌、井喷等钻井事故发生,造成重大的人员伤亡及经济损失。因此,在钻井过程中对早期溢流、井漏进行实时监测预警对实现安全高效钻井、节省钻井成本具有重要意义。Overflow and lost circulation are two easy risks in the drilling process, especially for oil and gas exploration blocks characterized by deep wells, ultra-deep wells, fault development, carbonate rocks, etc. and some newly developed areas where the underground pressure system is not very clear. Blocks, spill hazards are more likely to occur. Overflow and lost circulation will not only cause serious damage to the reservoir, increase development costs and reduce development efficiency, but also induce drilling accidents such as stuck pipe, well collapse, blowout, etc., resulting in heavy casualties and economic losses if the control is not effective. . Therefore, real-time monitoring and early warning of early overflow and lost circulation during drilling is of great significance to achieve safe and efficient drilling and save drilling costs.

钻井过程是一个复杂的非线性动态过程,不确定性因素众多,各类钻井参数受到的随机干扰大,且参数之间相互关联、相互耦合,难以建立准确的溢漏风险识别模型,溢漏预警的准确性受限。The drilling process is a complex nonlinear dynamic process with many uncertain factors. Various drilling parameters are subject to large random interference, and the parameters are interrelated and coupled with each other. It is difficult to establish an accurate spill risk identification model and spill early warning. accuracy is limited.

发明内容SUMMARY OF THE INVENTION

针对现有技术中存在的不足,本发明的目的在于解决上述现有技术中存在的一个或多个问题。例如,本发明的目的之一在于提升溢漏监测预警的准确性。Aiming at the deficiencies existing in the prior art, the purpose of the present invention is to solve one or more problems existing in the prior art mentioned above. For example, one of the objectives of the present invention is to improve the accuracy of leakage monitoring and early warning.

为了实现上述目的,本发明提供了一种基于长短期记忆网络的油气井钻井溢漏预警方法。所述预警方法可包括以下步骤:构建基于长短期记忆网络的溢漏风险预警模型,溢漏风险预警模型包括输入层、隐含层和输出层,其中,隐含层包括至少两层长短期记忆网络结构;利用已有的钻井风险数据对溢漏风险预警模型进行训练;利用训练后的溢漏风险预警模型进行油气井钻井溢漏预警。In order to achieve the above object, the present invention provides a method for early warning of oil and gas well drilling leakage based on a long short-term memory network. The early-warning method may include the following steps: constructing a long-short-term memory network-based spillover risk early-warning model, the spillage risk early-warning model includes an input layer, a hidden layer and an output layer, wherein the hidden layer includes at least two layers of long short-term memory Network structure; use the existing drilling risk data to train the spill risk early warning model; use the trained spill risk early warning model for oil and gas well drilling spill warning.

根据本发明的一个示例性实施例,所述预警方法可包括以下步骤:构建基于长短期记忆网络的溢漏风险预警模型,溢漏风险预警模型包括输入层、隐含层和输出层,其中,隐含层包括至少两层长短期记忆网络结构;利用已有的钻井风险数据对溢漏风险预警模型进行训练;利用训练后的溢漏风险预警模型进行油气井钻井溢漏预警。According to an exemplary embodiment of the present invention, the early-warning method may include the following steps: constructing a long-short-term memory network-based spillover risk early-warning model, where the spillage risk early-warning model includes an input layer, a hidden layer and an output layer, wherein, The hidden layer includes at least two layers of long-term and short-term memory network structure; using the existing drilling risk data to train the spill risk early warning model; using the trained spill risk early warning model for oil and gas well drilling spill warning.

根据本发明的一个示例性实施例,所述输出层与隐含层的长短期记忆网络结构可以采用softmax激活函数连接。According to an exemplary embodiment of the present invention, the long short-term memory network structure of the output layer and the hidden layer may be connected by a softmax activation function.

根据本发明的一个示例性实施例,所述输出层能够输出溢流风险、井漏风险和正常工况中至少一种发生的概率。According to an exemplary embodiment of the present invention, the output layer is capable of outputting at least one of overflow risk, lost circulation risk, and probability of occurrence of normal operating conditions.

根据本发明的一个示例性实施例,所述对溢漏风险预警模型进行训练的步骤包括:数据的正向传播和误差的反向传播。According to an exemplary embodiment of the present invention, the step of training the leakage risk early warning model includes: forward propagation of data and back propagation of errors.

根据本发明的一个示例性实施例,所述对溢漏风险预警模型进行训练的步骤包括:步骤A:设定所述构建的溢漏风险预警模型的训练参数;步骤B:初始化所述构建的溢漏风险预警模型的权值和偏置;步骤C:输入所述钻井风险数据,在当前权值和偏置下,所述溢漏风险预警模型输出实际工况情况;步骤D:比较实际工况情况与所期望输出,并在实际工况情况不满足所期望输出的情况下,逐层反向传播,将误差分配到溢漏风险预警模型的各层;步骤E:对所述权值和偏置进行调整,并重复步骤B~D,直至输出的实际工况情况满足期望输出。According to an exemplary embodiment of the present invention, the step of training the spill risk early warning model includes: step A: setting training parameters of the constructed spill risk early warning model; step B: initializing the constructed spill risk early warning model Weights and biases of the spill risk early warning model; Step C: Input the drilling risk data, under the current weights and biases, the spill risk early warning model outputs actual operating conditions; Step D: Compare the actual operating conditions If the actual working conditions do not meet the expected output, backpropagation layer by layer, and the error is allocated to each layer of the leakage risk early warning model; Step E: compare the weights and Adjust the offset, and repeat steps B to D until the actual working conditions of the output meet the expected output.

根据本发明的一个示例性实施例,所述对溢漏风险预警模型进行训练的步骤包括:从钻井数据中筛选出钻井风险数据,钻井风险数据包括:地面的泥浆池体积、立管压力、井口的钻井液出口流量、井底的环空压力和井底的环空温度;对钻井风险数据进行归一化处理,并去除所述归一化处理后得到的数据中的野值点;采用重叠采样的方式对所述钻井风险数据进行扩充;然后进行上述的步骤A~E。According to an exemplary embodiment of the present invention, the step of training the leakage risk early warning model includes: screening out drilling risk data from drilling data, where the drilling risk data includes: mud pool volume on the surface, riser pressure, wellhead The drilling fluid outlet flow rate, the bottom hole annular pressure and the bottom hole annular temperature are determined; normalize the drilling risk data, and remove outliers in the data obtained after the normalization; use overlapping The drilling risk data is expanded by means of sampling; and then the above steps A to E are performed.

根据本发明的一个示例性实施例,上述筛选钻井风险数据、归一化处理、去除野值点的环节以及数据扩充的环节可以通过溢漏风险预警模型的输入层来实现。According to an exemplary embodiment of the present invention, the above steps of screening drilling risk data, normalizing, removing outliers, and data expansion can be implemented through the input layer of the leakage risk early warning model.

根据本发明的一个示例性实施例,所述钻井风险数据可包括:地面的泥浆池体积、立管压力、井口的钻井液出口流量、井底的环空压力和井底的环空温度。According to an exemplary embodiment of the present invention, the drilling risk data may include: mud pool volume at the surface, riser pressure, drilling fluid outlet flow at the wellhead, annulus pressure at the bottom hole, and annulus temperature at the bottom hole.

根据本发明的一个示例性实施例,在所述对溢漏风险预警模型进行训练之前,所述方法还可包括步骤:对所述钻井风险数据进行归一化处理。According to an exemplary embodiment of the present invention, before the training of the leakage risk early warning model, the method may further include the step of: normalizing the drilling risk data.

根据本发明的一个示例性实施例,可采用最值法对所述钻井风险数据进行归一化处理。According to an exemplary embodiment of the present invention, the drilling risk data may be normalized by using an optimum method.

根据本发明的一个示例性实施例,所述方法还可包括步骤:去除所述归一化处理后得到的数据中的野值点。According to an exemplary embodiment of the present invention, the method may further include the step of removing outliers in the data obtained after the normalization process.

根据本发明的一个示例性实施例,在所述对溢漏风险预警模型进行训练之前,可采用重叠采样的方式对所述钻井风险数据进行扩充。According to an exemplary embodiment of the present invention, before the training of the leakage risk early warning model, the drilling risk data may be augmented by means of overlapping sampling.

与现有技术相比,本发明的有益效果可包括以下中的至少一项:Compared with the prior art, the beneficial effects of the present invention may include at least one of the following:

(1)本发明在进行溢漏风险监测时,能够及时、准确地给出识别结果。(1) The present invention can timely and accurately give the identification result when monitoring the leakage risk.

(2)本发明能够避免当前主流溢漏预警方法的特征提取过程,降低了风险识别对先验知识和专家经验的依赖,使得钻井风险的预警更加智能和高效。(2) The present invention can avoid the feature extraction process of the current mainstream leakage early warning methods, reduce the dependence of risk identification on prior knowledge and expert experience, and make the early warning of drilling risks more intelligent and efficient.

(3)本发明输入输出数据依据不严重依赖于理论机理模型的人工智能模型建立,能够降低对专家经验的要求。(3) The input and output data of the present invention is based on the establishment of an artificial intelligence model that does not rely heavily on the theoretical mechanism model, which can reduce the requirements for expert experience.

(4)随着数字油田建设的推进以及钻井风险数据库的建立,本发明的钻井风险预警方法具有良好的现场应用前景。(4) With the advancement of digital oilfield construction and the establishment of a drilling risk database, the drilling risk early warning method of the present invention has a good field application prospect.

附图说明Description of drawings

通过下面结合附图进行的描述,本发明的上述和其他目的和特点将会变得更加清楚,其中:The above and other objects and features of the present invention will become more apparent from the following description in conjunction with the accompanying drawings, wherein:

图1示出了本发明的基于长短期记忆网络的溢漏风险预警模型的一个示意图;Fig. 1 shows a schematic diagram of the leakage risk early warning model based on long short-term memory network of the present invention;

图2示出了本发明进行重叠采集的一个示意图;Fig. 2 shows a schematic diagram of the present invention for overlapping acquisition;

图3示出了本发明的溢漏风险预警模型的一个训练流程图。FIG. 3 shows a training flow chart of the spill risk early warning model of the present invention.

具体实施方式Detailed ways

在下文中,将结合附图和示例性实施例详细地描述本发明的基于长短期记忆网络的油气井钻井溢漏预警方法。Hereinafter, the method for early warning of oil and gas well drilling leakage based on the long short-term memory network of the present invention will be described in detail with reference to the accompanying drawings and exemplary embodiments.

目前钻井现场采用的溢漏监测方法以泥浆池液面人工坐岗监测为主,受液位传感器的灵敏度以及泥浆池液面自身波动的影响,监测的准确性不高。针对目前溢流、井漏等钻井风险监测实时性及准确性受限、智能化程度不高的问题,本发明结合井下、井口及地面三类监测参数以及长短期记忆网络(Long short-term memory,LSTM)适用于处理强耦合、强时间相关性数据的特点,提出了一种基于LSTM网络的溢漏风险智能预警方法,用来提高溢漏监测预警的准确性。At present, the leakage monitoring method adopted at the drilling site is mainly based on manual monitoring of the liquid level in the mud pool. Due to the influence of the sensitivity of the liquid level sensor and the fluctuation of the liquid level in the mud pool, the monitoring accuracy is not high. Aiming at the problems of limited real-time and accuracy and low intelligence of drilling risk monitoring such as overflow and lost circulation, the present invention combines three types of monitoring parameters of downhole, wellhead and surface, as well as a long short-term memory network (Long short-term memory network). , LSTM) is suitable for processing data with strong coupling and strong temporal correlation. An intelligent early warning method of spill risk based on LSTM network is proposed to improve the accuracy of spill monitoring and early warning.

在本发明的一个示例性实施例中,所述基于长短期记忆网络的油气井钻井溢漏预警方法可包括以下步骤:In an exemplary embodiment of the present invention, the method for early warning of oil and gas well drilling leakage based on a long short-term memory network may include the following steps:

S10:构建如图1所示的基于长短期记忆网络的溢漏风险预警模型,溢漏风险预警模型包括输入层、隐含层和输出层三部分。S10: Construct a spillage risk early warning model based on a long short-term memory network as shown in Figure 1. The spillage risk early warning model includes three parts: an input layer, a hidden layer and an output layer.

S20:利用已有的钻井风险数据对溢漏风险预警模型进行训练。S20: Use the existing drilling risk data to train the leakage risk early warning model.

S30:利用训练后的溢漏风险预警模型进行油气井钻井溢漏预警。S30: Use the trained spillage risk early warning model for oil and gas well drilling spillage early warning.

在本实施例中,所述输入层可以具有监测参数选取和数据预处理的功能。In this embodiment, the input layer may have the functions of monitoring parameter selection and data preprocessing.

(1)监测参数选取(1) Selection of monitoring parameters

为了准确地监测溢流及井漏风险,需要选取合适的监测参数。本发明结合溢漏风险发生时相关参数的变化特征,能够优选出地面的泥浆池体积、立管压力,井口的钻井液出口流量,以及井底的环空压力、环空温度五个参数作为溢漏风险监测的参数。In order to accurately monitor the risk of overflow and lost circulation, appropriate monitoring parameters need to be selected. According to the change characteristics of the relevant parameters when the leakage risk occurs, the invention can optimize the volume of the mud pool above the surface, the pressure of the riser, the outlet flow rate of the drilling fluid at the wellhead, the annular pressure and the annular temperature at the bottom of the well as overflow parameters. Parameters for leakage risk monitoring.

(2)数据预处理(2) Data preprocessing

在实际钻井过程中,传感器的种类众多,不同传感器的量纲和数量级各不相同,为了加快网络的训练速度,提高分类精度,增强模型的适用性,在进行网络模型训练之前,首先采用最值法对传感器采集的数据序列进行归一化处理,如公式(1)所示。In the actual drilling process, there are many types of sensors, and the dimensions and orders of magnitude of different sensors are different. In order to speed up the training speed of the network, improve the classification accuracy, and enhance the applicability of the model, before training the network model, first use the maximum value The method normalizes the data sequence collected by the sensor, as shown in formula (1).

Figure BDA0002686910910000041
Figure BDA0002686910910000041

其中,

Figure BDA0002686910910000042
为归一化之后的值,xi为当前值,xmin和xmax分别表示采集数据序列的最小值和最大值。in,
Figure BDA0002686910910000042
is the normalized value, x i is the current value, and x min and x max represent the minimum and maximum values of the collected data sequence, respectively.

同时,现场获取的数据在采集、传输过程中受噪声及随机干扰的影响,不可避免地会出现野值点,影响识别模型的准确性,本发明对数据进行归一化处理后,采用基于3σ准则的野值点剔除法去除野值点。设

Figure BDA0002686910910000043
为n个采样数据序列的均值,σ2为其方差,当第n个采样点满足
Figure BDA0002686910910000044
时,则认为该点为野值点,采用邻域均值将其替换。At the same time, the data acquired on site is affected by noise and random interference during the process of collection and transmission, and outliers will inevitably appear, which will affect the accuracy of the recognition model. The outlier elimination method of the criterion removes outliers. Assume
Figure BDA0002686910910000043
is the mean of n sampled data series, σ 2 is its variance, when the nth sampling point satisfies
Figure BDA0002686910910000044
, the point is considered to be an outlier, and the neighborhood mean is used to replace it.

另外,对于监测数据中可能存在的缺失数据,采用最近邻插值的方式予以补齐。In addition, for the missing data that may exist in the monitoring data, the nearest neighbor interpolation method is used to fill up.

(3)数据扩充(3) Data expansion

进一步地,输入层可以具有数据扩充的功能。考虑到溢流、井漏等风险数据相对较少,为避免造成网络过拟合,本发明提出采用重叠采样的方式对数据集进行了扩充。重叠采样的示意图如图2所示。其中,在对模型进行训练的时候,可采用数据扩充功能(即该环节)扩充样本数据,而在应用模型进行溢漏监测时,不需要数据扩充功能。Further, the input layer can have the function of data augmentation. Considering that there are relatively few risk data such as overflow and lost circulation, in order to avoid over-fitting of the network, the present invention proposes to expand the data set by means of overlapping sampling. A schematic diagram of overlapping sampling is shown in Figure 2. Among them, when the model is trained, the data expansion function (that is, this link) can be used to expand the sample data, and when the model is used for overflow monitoring, the data expansion function is not required.

在本实施例中,隐含层可以是由两层LSTM结构构成,每层所含神经元节点的个数、输出形态和参数可如表1所示。In this embodiment, the hidden layer may be composed of a two-layer LSTM structure, and the number, output form, and parameters of neuron nodes contained in each layer may be as shown in Table 1.

表1隐含层信息Table 1 Hidden layer information

LayerLayer unitunit Output ShapeOutput Shape ParamParam LSTM1LSTM1 3232 (None,5,32)(None,5,32) 67846784 LSTM2LSTM2 1616 (None,16)(None,16) 31363136

其中,None表示该维度不能确定,与神经网络训练时批量数据样本数有关。Among them, None means that the dimension cannot be determined, which is related to the number of batch data samples during neural network training.

在本实施例中,输出层可以针对溢流和井漏两种风险进行预警。其中,可将每一种钻井风险对应一类标签,例如可以采用“one-hot vector”表示,具体形式见表2。In this embodiment, the output layer can provide early warning for two risks of overflow and lost circulation. Among them, each drilling risk can be corresponding to a type of label, for example, it can be represented by "one-hot vector", and the specific form is shown in Table 2.

表2风险类型及表示方法Table 2 Risk types and representation methods

Figure BDA0002686910910000051
Figure BDA0002686910910000051

输出层与隐含层的LSTM单元可以采用softmax激活函数连接,并最终分别输出溢流风险、井漏风险和正常工况发生的概率。The LSTM units of the output layer and the hidden layer can be connected by the softmax activation function, and finally output the overflow risk, lost circulation risk and probability of normal working conditions respectively.

在本实施例中,在步骤S20中,即在训练过程中,可以从训练样本中随机抽取32组数据组成一个批次(Batch),每次迭代训练一个Batch的数据,并记录训练损失值及测试准确率。考虑到本次实验的样本数量相对较少,为了防止神经网络过拟合,可以在两个LSTM层引入L2正则化策略进行约束。In this embodiment, in step S20, that is, during the training process, 32 sets of data can be randomly selected from the training samples to form a batch, the data of one batch is trained each iteration, and the training loss value and Test accuracy. Considering the relatively small number of samples in this experiment, in order to prevent the neural network from overfitting, an L2 regularization strategy can be introduced into the two LSTM layers for constraints.

具体训练过程包括数据的正向传播和误差的反向传播两部分,如图3所示。首先,设定网络的训练参数,初始化网络的权值和偏置,输入监测数据,依次经过LSTM层、全连接层计算当前权值和偏置下的实际输出,计算其与期望输出间的误差并逐层反向传播,将误差分配到各层,使用Adam算法对网络的权值和偏置进行调整,直至满足训练条件,以实现网络的有监督训练。The specific training process includes two parts: forward propagation of data and back propagation of errors, as shown in Figure 3. First, set the training parameters of the network, initialize the weights and biases of the network, input monitoring data, and then go through the LSTM layer and the fully connected layer to calculate the actual output under the current weights and biases, and calculate the error between it and the expected output. And backpropagation layer by layer, the error is allocated to each layer, and the weights and biases of the network are adjusted by the Adam algorithm until the training conditions are met, so as to realize the supervised training of the network.

本发明技术方案将先进的深度学习方法引入油气井钻井风险监测领域,提出了基于LSTM网络的钻井溢漏风险预警方法,即通过LSTM网络学习已有的钻井风险数据得到溢漏风险预警模型,将采集到的原始钻井数据经预处理后直接输入到训练好的LSTM网络模型进行溢漏风险监测,能够及时、准确地给出识别结果。The technical scheme of the present invention introduces an advanced deep learning method into the field of oil and gas well drilling risk monitoring, and proposes a drilling leakage risk early warning method based on the LSTM network, that is, the leakage risk early warning model is obtained by learning the existing drilling risk data through the LSTM network, and the The collected raw drilling data is preprocessed and directly input to the trained LSTM network model for leakage risk monitoring, which can give timely and accurate identification results.

尽管上面已经通过结合示例性实施例描述了本发明,但是本领域技术人员应该清楚,在不脱离权利要求所限定的精神和范围的情况下,可对本发明的示例性实施例进行各种修改和改变。Although the present invention has been described above in connection with the exemplary embodiments, it will be apparent to those skilled in the art that various modifications and variations can be made in the exemplary embodiments of the present invention without departing from the spirit and scope defined by the appended claims. Change.

Claims (10)

1.一种基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述预警方法包括以下步骤:1. a kind of oil and gas well drilling overflow early warning method based on long short-term memory network, is characterized in that, described early warning method may further comprise the steps: 构建基于长短期记忆网络的溢漏风险预警模型,溢漏风险预警模型包括输入层、隐含层和输出层,其中,隐含层包括至少两层长短期记忆网络结构;Build a spillover risk early warning model based on a long short-term memory network, the spillage risk early warning model includes an input layer, a hidden layer and an output layer, wherein the hidden layer includes at least two long and short-term memory network structures; 利用已有的钻井风险数据对溢漏风险预警模型进行训练;Use the existing drilling risk data to train the spill risk early warning model; 利用训练后的溢漏风险预警模型进行油气井钻井溢漏预警。Using the trained spill risk early warning model for oil and gas well drilling spill early warning. 2.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述输出层与隐含层的长短期记忆网络结构采用softmax激活函数连接。2 . The oil and gas well drilling leakage warning method based on long short term memory network according to claim 1 , wherein the long short term memory network structure of the output layer and the hidden layer is connected by a softmax activation function. 3 . 3.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述输出层能够输出溢流风险、井漏风险和正常工况中至少一种发生的概率。3. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, wherein the output layer can output at least one occurrence of overflow risk, lost circulation risk and normal operating conditions. probability. 4.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,所述对溢漏风险预警模型进行训练的步骤包括:数据的正向传播和误差的反向传播。4. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, wherein the step of training the leakage risk warning model comprises: forward propagation of data and back propagation of errors. 5.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述对溢漏风险预警模型进行训练的步骤包括:5. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, wherein the step of training the leakage risk warning model comprises: 步骤A:设定所述构建的溢漏风险预警模型的训练参数;Step A: set the training parameters of the constructed spill risk early warning model; 步骤B:初始化所述构建的溢漏风险预警模型的权值和偏置;Step B: Initialize the weights and biases of the constructed spill risk early warning model; 步骤C:输入所述钻井风险数据,在当前权值和偏置下,所述溢漏风险预警模型输出实际工况情况;Step C: input the drilling risk data, under the current weight and offset, the leakage risk early warning model outputs the actual working condition; 步骤D:比较实际工况情况与所期望输出,并在实际工况情况不满足所期望输出的情况下,逐层反向传播,将误差分配到溢漏风险预警模型的各层;Step D: Compare the actual working condition with the expected output, and if the actual working condition does not meet the expected output, backpropagate layer by layer, and allocate the error to each layer of the leakage risk early warning model; 步骤E:对所述权值和偏置进行调整,并重复步骤B~D,直至输出的实际工况情况满足期望输出。Step E: Adjust the weights and offsets, and repeat steps B to D until the actual output conditions meet the expected output. 6.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述钻井风险数据包括:6. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, wherein the drilling risk data comprises: 地面的泥浆池体积、立管压力、井口的钻井液出口流量、井底的环空压力和井底的环空温度。Mud pool volume at the surface, riser pressure, drilling fluid outlet flow at the wellhead, annulus pressure at the bottom hole, and annulus temperature at the bottom hole. 7.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,在所述对溢漏风险预警模型进行训练之前,所述方法还包括步骤:对所述钻井风险数据进行归一化处理。7. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, characterized in that, before the leakage risk warning model is trained, the method further comprises the step of: The drilling risk data is normalized. 8.根据权利要求7所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,采用最值法对所述钻井风险数据进行归一化处理。8 . The long-short-term memory network-based oil and gas well drilling leak warning method according to claim 7 , wherein the drilling risk data is normalized by using the maximum value method. 9 . 9.根据权利要求7所述的长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,所述方法还包括步骤:去除所述归一化处理后得到的数据中的野值点。9 . The long short-term memory network oil and gas well drilling leakage warning method according to claim 7 , wherein the method further comprises the step of removing outliers in the data obtained after the normalization process. 10 . 10.根据权利要求1所述的基于长短期记忆网络的油气井钻井溢漏预警方法,其特征在于,在所述对溢漏风险预警模型进行训练之前,采用重叠采样的方式对所述钻井风险数据进行扩充。10. The oil and gas well drilling leakage warning method based on long short-term memory network according to claim 1, characterized in that, before the leakage risk warning model is trained, the method of overlapping sampling is used to detect the drilling risk. data is expanded.
CN202010979086.2A 2020-09-17 2020-09-17 Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network Pending CN112016766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010979086.2A CN112016766A (en) 2020-09-17 2020-09-17 Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010979086.2A CN112016766A (en) 2020-09-17 2020-09-17 Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network

Publications (1)

Publication Number Publication Date
CN112016766A true CN112016766A (en) 2020-12-01

Family

ID=73521436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010979086.2A Pending CN112016766A (en) 2020-09-17 2020-09-17 Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network

Country Status (1)

Country Link
CN (1) CN112016766A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926839A (en) * 2021-02-05 2021-06-08 中国石油大学(华东) Overflow risk cooperative monitoring method and system for oil and gas well drilling process
CN113486595A (en) * 2021-07-23 2021-10-08 中海石油(中国)有限公司 Intelligent blowout early warning method, system, equipment and storage medium
CN115130934A (en) * 2022-09-01 2022-09-30 中国石油大学(华东) Pre-assessment method of regional lost circulation risk based on ZEL model and multi-source data
WO2025020324A1 (en) * 2023-07-25 2025-01-30 中国石油天然气股份有限公司 Gas well annulus condition diagnosis method, apparatus and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599520A (en) * 2016-12-31 2017-04-26 中国科学技术大学 LSTM-RNN model-based air pollutant concentration forecast method
CN109448445A (en) * 2018-09-05 2019-03-08 南京航空航天大学 Flight based on shot and long term Memory Neural Networks is delayed grading forewarning system method
CN110443488A (en) * 2019-07-31 2019-11-12 中国石油大学(华东) The recognition methods of drilling well spill hazard, system and equipment based on convolutional neural networks
CN110533163A (en) * 2019-08-02 2019-12-03 中国石油集团长城钻探工程有限公司 Sand plugging after fracturing method for early warning based on long Memory Neural Networks in short-term
CN111175852A (en) * 2019-12-27 2020-05-19 中国电子科技集团公司第十四研究所 Airport fog forecast early warning method based on long-time memory algorithm
CN111325947A (en) * 2020-03-04 2020-06-23 合肥泽众城市智能科技有限公司 Storm surge flood early warning method and system based on long-term and short-term memory network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599520A (en) * 2016-12-31 2017-04-26 中国科学技术大学 LSTM-RNN model-based air pollutant concentration forecast method
CN109448445A (en) * 2018-09-05 2019-03-08 南京航空航天大学 Flight based on shot and long term Memory Neural Networks is delayed grading forewarning system method
CN110443488A (en) * 2019-07-31 2019-11-12 中国石油大学(华东) The recognition methods of drilling well spill hazard, system and equipment based on convolutional neural networks
CN110533163A (en) * 2019-08-02 2019-12-03 中国石油集团长城钻探工程有限公司 Sand plugging after fracturing method for early warning based on long Memory Neural Networks in short-term
CN111175852A (en) * 2019-12-27 2020-05-19 中国电子科技集团公司第十四研究所 Airport fog forecast early warning method based on long-time memory algorithm
CN111325947A (en) * 2020-03-04 2020-06-23 合肥泽众城市智能科技有限公司 Storm surge flood early warning method and system based on long-term and short-term memory network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭阳;余芳强;许?琳;: "基于长短期记忆网络的空调机组故障诊断与风险评估", 计算机应用, no. 1 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926839A (en) * 2021-02-05 2021-06-08 中国石油大学(华东) Overflow risk cooperative monitoring method and system for oil and gas well drilling process
CN113486595A (en) * 2021-07-23 2021-10-08 中海石油(中国)有限公司 Intelligent blowout early warning method, system, equipment and storage medium
CN113486595B (en) * 2021-07-23 2024-05-14 中海石油(中国)有限公司 Well blowout intelligent early warning method, system, equipment and storage medium
CN115130934A (en) * 2022-09-01 2022-09-30 中国石油大学(华东) Pre-assessment method of regional lost circulation risk based on ZEL model and multi-source data
CN115130934B (en) * 2022-09-01 2022-11-04 中国石油大学(华东) Pre-assessment method of regional lost circulation risk based on ZEL model and multi-source data
WO2025020324A1 (en) * 2023-07-25 2025-01-30 中国石油天然气股份有限公司 Gas well annulus condition diagnosis method, apparatus and storage medium

Similar Documents

Publication Publication Date Title
CN112016766A (en) Oil and gas well drilling overflow and leakage early warning method based on long-term and short-term memory network
Pang et al. Lost circulation prediction based on machine learning
CN108388921B (en) Overflow loss real-time identification method based on random forest
CN110766192B (en) Deep learning-based drilling lost circulation prediction system and method
Sun et al. A new pattern recognition model for gas kick diagnosis in deepwater drilling
Khamehchi et al. A novel approach to sand production prediction using artificial intelligence
Aljubran et al. Deep learning and time-series analysis for the early detection of lost circulation incidents during drilling operations
CN110443488A (en) The recognition methods of drilling well spill hazard, system and equipment based on convolutional neural networks
CN108573320A (en) Calculation method and system for ultimate recoverable reserves of shale gas reservoirs
WO2016160005A1 (en) Model generation for real-time rate of penetration prediction
CN112926839A (en) Overflow risk cooperative monitoring method and system for oil and gas well drilling process
Fjetland et al. Kick detection and influx size estimation during offshore drilling operations using deep learning
CN109829561B (en) Accident prediction method based on smoothing processing and network model machine learning
CN113062731A (en) Intelligent identification method for complex working conditions under drilling well
Chandrasekaran et al. Drilling efficiency improvement and rate of penetration optimization by machine learning and data analytics
CN115099406B (en) Formation pressure inversion method and device based on multivariate time series
CN115438823A (en) A method and system for analysis and prediction of wellbore instability mechanism
CN106523393A (en) Fault diagnosis method used for downhole draining system
CN117669795A (en) Tight gas reservoir production prediction method and system based on deep learning
CN114357887A (en) A prediction method of mud loss before drilling in complex well conditions based on BP neural network
CN113887049A (en) Drilling speed prediction method and system for petroleum drilling based on machine learning
CN113129157B (en) A real-time early warning method for downhole stuck drill failures in long water sections of shale gas
Yang et al. Fault Diagnosis Method and Application of ESP Well Based on SPC Rules and Real‐Time Data Fusion
CN119599437A (en) Real-time stuck drill early warning method based on multi-mode data fusion and graph neural network
CN117852580A (en) Stratum pore pressure prediction method based on migration learning TCA-LSTM model

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201201