[go: up one dir, main page]

CN115095318B - A Particle Filter-Based Wellbore Trajectory Prediction Method and Device - Google Patents

A Particle Filter-Based Wellbore Trajectory Prediction Method and Device Download PDF

Info

Publication number
CN115095318B
CN115095318B CN202210723052.6A CN202210723052A CN115095318B CN 115095318 B CN115095318 B CN 115095318B CN 202210723052 A CN202210723052 A CN 202210723052A CN 115095318 B CN115095318 B CN 115095318B
Authority
CN
China
Prior art keywords
well
predicted
well section
azimuth
inclination angle
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.)
Active
Application number
CN202210723052.6A
Other languages
Chinese (zh)
Other versions
CN115095318A (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 Petroleum and Chemical Corp
China University of Petroleum Beijing
Sinopec Research Institute of Petroleum Engineering
Original Assignee
China Petroleum and Chemical Corp
China University of Petroleum Beijing
Sinopec Research Institute of Petroleum Engineering
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 Petroleum and Chemical Corp, China University of Petroleum Beijing, Sinopec Research Institute of Petroleum Engineering filed Critical China Petroleum and Chemical Corp
Priority to CN202210723052.6A priority Critical patent/CN115095318B/en
Publication of CN115095318A publication Critical patent/CN115095318A/en
Application granted granted Critical
Publication of CN115095318B publication Critical patent/CN115095318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E21EARTH OR ROCK DRILLING; MINING
    • E21BEARTH OR ROCK DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS
    • E21B47/00Survey of boreholes or wells
    • E21B47/02Determining slope or direction
    • E21B47/022Determining slope or direction of the borehole, e.g. using geomagnetism
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Geology (AREA)
  • Theoretical Computer Science (AREA)
  • Mining & Mineral Resources (AREA)
  • Biomedical Technology (AREA)
  • Data Mining & Analysis (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geochemistry & Mineralogy (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Environmental & Geological Engineering (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Fluid Mechanics (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Geophysics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

本说明书提供了一种基于粒子滤波的井眼轨迹预测方法及装置。该方法包括:获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。基于上述方法能够解决现有方法中存在的井眼轨迹预测算法自适应能力差的技术问题,实现井眼轨迹的精确预测和对井眼轨迹预测结果的不确定描述。

Figure 202210723052

This specification provides a particle filter-based wellbore trajectory prediction method and device. The method includes: obtaining the adjacent well data around the target well to be predicted, and obtaining preprocessing data based on the adjacent well data; constructing the well inclination angle observation equation and the state equation, and the azimuth angle observation equation and the state equation based on the preprocessing data; Particle filtering, solving the inclination angle observation equation and the state equation, and the azimuth angle observation equation and the state equation to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well. Based on the above method, the technical problem of poor adaptive ability of the wellbore trajectory prediction algorithm existing in the existing methods can be solved, and the accurate prediction of the wellbore trajectory and the uncertain description of the prediction results of the wellbore trajectory can be realized.

Figure 202210723052

Description

一种基于粒子滤波的井眼轨迹预测方法及装置A method and device for predicting wellbore trajectory based on particle filtering

技术领域Technical Field

本说明书属于石油天然气勘探开发技术领域,尤其涉及一种基于粒子滤波的井眼轨迹预测方法及装置。The present invention relates to the technical field of oil and gas exploration and development, and in particular to a method and device for predicting wellbore trajectory based on particle filtering.

背景技术Background Art

在油气开发领域,钻井过程中井眼轨迹精度会影响油井产量。通常情况下,井眼轨迹难以随钻高频实时测量,现场施工人员主要依靠个人经验和间隔测量信息对定向施工参数进行调整,依据调整后的定向施工参数确定井眼轨迹。定向施工参数调整决策不合理,将会导致井眼轨迹预测不准确,进而导致井眼质量和施工效率降低,安全风险增大。In the field of oil and gas development, the accuracy of the wellbore trajectory during drilling will affect the oil well production. Under normal circumstances, the wellbore trajectory is difficult to measure in real time with high frequency while drilling. On-site construction personnel mainly rely on personal experience and interval measurement information to adjust the directional construction parameters and determine the wellbore trajectory based on the adjusted directional construction parameters. Unreasonable decisions on directional construction parameter adjustment will lead to inaccurate prediction of the wellbore trajectory, which will in turn reduce the wellbore quality and construction efficiency, and increase safety risks.

现有的井眼轨迹预测方法包括:几何外推法、力学分析法和统计方法。其中,几何外推法没有考虑钻井参数和地层特性对井眼轨迹的影响,计算准确性不足;力学分析法采用的模型中考虑因素较多,输入参数不易获取,难以在钻井现场广泛应用;统计方法利用邻井或已钻井眼数据建立回归模型,通过回归系数反映待钻井眼的地层特性,但是其自适应能力差。Existing wellbore trajectory prediction methods include: geometric extrapolation, mechanical analysis and statistical methods. Among them, the geometric extrapolation method does not consider the impact of drilling parameters and formation characteristics on the wellbore trajectory, and the calculation accuracy is insufficient; the mechanical analysis method uses a model that considers many factors, and the input parameters are not easy to obtain, making it difficult to be widely used in the drilling site; the statistical method uses data from neighboring wells or drilled wells to establish a regression model, and the regression coefficient reflects the formation characteristics of the wellbore to be drilled, but its adaptive ability is poor.

因此,目前亟需一种解决自适应能力差问题的井眼轨迹预测方法。Therefore, there is an urgent need for a wellbore trajectory prediction method that can solve the problem of poor adaptability.

发明内容Summary of the invention

本说明书提供了一种基于粒子滤波的井眼轨迹预测方法及装置,能够解决现有方法中存在的井眼轨迹预测算法自适应能力差的技术问题,得到待预测井段的井眼轨迹参数和井眼轨迹参数置信区间。This specification provides a wellbore trajectory prediction method and device based on particle filtering, which can solve the technical problem of poor adaptability of wellbore trajectory prediction algorithms in existing methods and obtain wellbore trajectory parameters and wellbore trajectory parameter confidence intervals of the well section to be predicted.

本说明书实施例的目的是提供一种基于粒子滤波的井眼轨迹预测方法,包括:The purpose of the embodiment of this specification is to provide a wellbore trajectory prediction method based on particle filtering, comprising:

获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;Acquire the data of neighboring wells around the target well to be predicted, and obtain preprocessed data based on the data of neighboring wells;

根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;According to the preprocessed data, the observation equation and state equation of the well inclination angle, as well as the observation equation and state equation of the azimuth angle are constructed;

基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。Based on particle filtering, the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation are solved to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well.

进一步地,所述方法的另一个实施例中,所述获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据,包括:Furthermore, in another embodiment of the method, the step of acquiring the data of adjacent wells around the target well to be predicted and obtaining the preprocessed data based on the adjacent well data includes:

基于轨迹测量数据对井眼进行第一次分段,得到井眼第一分段结果;Performing a first segmentation of the wellbore based on the trajectory measurement data to obtain a first segmentation result of the wellbore;

根据所述井眼第一分段结果和录井米数据,得到钻进数据;Obtaining drilling data according to the first segmentation result of the wellbore and the logging meter data;

根据所述井眼第一分段结果和定向井施工记录数据,得到工具面角平均值;According to the first segmentation result of the wellbore and the directional well construction record data, an average value of the tool face angle is obtained;

基于邻井参数数据对井眼进行第二次分段,得到井眼第二分段结果。The wellbore is segmented for the second time based on the parameter data of the adjacent wells to obtain the second segmentation result of the wellbore.

进一步地,所述方法的另一个实施例中,所述根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程,包括:Furthermore, in another embodiment of the method, constructing the well inclination angle observation equation and state equation, and the azimuth angle observation equation and state equation according to the preprocessed data includes:

按照以下算式构建井斜角观测方程:The well inclination angle observation equation is constructed according to the following formula:

Incb,i=(θ0,i×cos(tfb,i)+θ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Incb,i-1 Inc b, i = (θ 0, i × cos (tf b, i ) + θ 1, i × WOB b, i + θ 2, i ) × L b, i + θ 3, i × L h, i + θ 4,i +Inc b,i-1

式中,i和i-1表示待预测的井段的编号,b表示底部,Incb,i为待预测井段底部井斜角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Incb,i-1为待预测井段顶部井斜角,θ0,i、θ1,i、θ2,i、θ3,i、θ4,i为i井段的井斜角状态参数,其中,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,ii井段的为井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差。Wherein, i and i-1 represent the number of the well section to be predicted, b represents the bottom, Inc b,i is the well inclination angle at the bottom of the well section to be predicted, tf b,i is the average value of the tool face angle, WOB b,i is the average drilling pressure of sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Inc b,i-1 is the well inclination angle at the top of the well section to be predicted, θ 0,i , θ 1,i , θ 2,i , θ 3,i , θ 4,i are the well inclination state parameters of the i well section, wherein θ 0,i is the well inclination angle build-up rate correction coefficient of the i well section, θ 1,i is the well inclination angle drilling pressure influence coefficient of the i well section, θ 2,i is the well inclination angle build-up rate error of the i well section, θ 3,i is the slope change law coefficient of the well inclination angle composite drilling distance of the i well section, and θ 4,i is the well inclination angle system error of the i well section.

进一步地,所述方法的另一个实施例中,所述根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程,包括:Furthermore, in another embodiment of the method, constructing the well inclination angle observation equation and state equation, and the azimuth angle observation equation and state equation according to the preprocessed data includes:

按照以下算式构建井斜角状态方程:The state equation of well inclination is constructed according to the following formula:

θ0,i=θ0,i-1+w0,i-1 θ 0,i0,i-1 +w 0,i-1

θ1,i=θ1,i-1+w1,i-1 θ 1, i = θ 1, i-1 + w 1, i-1

θ2,i=θ2,i-1+w2,i-1 θ 2,i2,i-1 +w 2,i-1

θ3,i=θ3,i-1+w3,i-1 θ 3, i = θ 3, i-1 + w 3, i-1

θ4,i=θ4,i-1+w4,i-1 θ 4, i = θ 4, i-1 + w 4, i-1

式中,w0,i-1、w1,i-1、w2,i-1、w3,i-1、w4,i-1为i-1井段的井斜角高斯白噪声,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,i为i井段的井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差,θ0,i-1为i-1井段的井斜角造斜率修正系数,θ1,i-1为i-1井段的井斜角钻压影响系数,θ2,i-1为i-1井段的井斜角造斜率误差,θ3,i-1为i-1井段的井斜角复合钻进距离斜率变化规律系数,θ4,i-1为i-1井段的井斜角系统误差。Wherein, w0 ,i-1 , w1,i-1 , w2,i-1 , w3,i-1 , w4,i-1 are the Gaussian white noise of the well inclination angle of the i-1 well section, θ0,i is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i is the well inclination angle build-up rate error of the i-1 well section, θ3,i is the slope variation law coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ4,i is the well inclination angle system error of the i-1 well section, θ0,i-1 is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i-1 is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i-1 is the well inclination angle build-up rate error of the i-1 well section, θ 3, i-1 is the slope variation coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ 4, i-1 is the systematic error of the well inclination angle of the i-1 well section.

进一步地,所述方法的另一个实施例中,所述根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程,包括:Furthermore, in another embodiment of the method, constructing the well inclination angle observation equation and state equation, and the azimuth angle observation equation and state equation according to the preprocessed data includes:

按照以下算式构建方位角观测方程:Construct the azimuth observation equation according to the following formula:

Azib,i=(φ0,i×cos(tfb,i)+φ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Azib,i-1 Azi b,i =(φ 0,i ×cos(tf b,i )+φ 1,i ×WOB b,i2,i )×L b,i3,i ×L h,i + φ 4,i +Azi b,i-1

式中,i和i-1表示待预测的井段的编号,b表示底部,Azib,i为待预测井段底部方位角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Azib,i-1为待预测井段顶部方位角,φ0,i、φ1,i、φ2,i、φ3,i、φ1,i为i井段的方位角状态参数,其中,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差。where i and i-1 represent the numbers of the well sections to be predicted, b represents the bottom, Azi b,i is the azimuth of the bottom of the well section to be predicted, tf b,i is the average tool face angle, WOB b,i is the average drilling pressure during sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Azi b,i-1 is the azimuth of the top of the well section to be predicted, φ 0,i , φ 1,i , φ 2,i , φ 3,i , φ 1,i are the azimuth state parameters of the i well section, where φ 0,i is the azimuth buildup rate correction coefficient of the i well section, φ 1,i is the azimuth buildup rate influence coefficient of the i well section, φ 2,i is the azimuth buildup rate error of the i well section, φ 3,i is the azimuth composite drilling distance slope variation coefficient of the i well section, and φ 4,i is the azimuth system error of the i well section.

进一步地,所述方法的另一个实施例中,所述根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程,包括:Furthermore, in another embodiment of the method, constructing the well inclination angle observation equation and state equation, and the azimuth angle observation equation and state equation according to the preprocessed data includes:

按照以下算式构建方位角状态方程:The azimuth state equation is constructed according to the following formula:

φ0,i=φ0,i-1+n0,i-1 φ 0,i0,i-1 +n 0,i-1

φ1,i=φ1,i-1+n1,i-1 φ 1,i1,i-1 +n 1,i-1

φ2,i=φ2,i-1+n2,i-1 φ 2,i2,i-1 +n 2,i-1

φ3,i=φ3,i-1+n3,i-1 φ 3,i3,i-1 +n 3,i-1

φ4,i=φ4,i-1+n4,i-1 φ 4,i4,i-1 +n 4,i-1

式中,n0,i-1、n1,i-1、n2,i-1、n3,i-1、n4,i-1为i-1井段的方位角高斯白噪声,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差,φ0,i-1为i-1井段的方位角造斜率修正系数,φ1,i-1为i-1井段的方位角钻压影响系数,φ2,i-1为i-1井段的方位角造斜率误差,φ3,i-1为i-1井段的方位角复合钻进距离斜率变化规律系数,φ4,i-1为i-1井段的方位角系统误差。Wherein, n0 ,i-1 , n1,i-1 , n2,i-1 , n3,i-1 , n4,i-1 are the azimuth Gaussian white noise of well section i-1, φ0,i is the azimuth buildup rate correction coefficient of well section i, φ1,i is the azimuth drilling pressure influence coefficient of well section i, φ2 ,i is the azimuth buildup rate error of well section i, φ3,i is the azimuth composite drilling distance slope variation law coefficient of well section i, φ4,i is the azimuth system error of well section i, φ0,i-1 is the azimuth buildup rate correction coefficient of well section i-1, φ1 ,i-1 is the azimuth drilling pressure influence coefficient of well section i-1, φ2,i-1 is the azimuth buildup rate error of well section i-1, φ 3, i-1 is the coefficient of slope variation of azimuth composite drilling distance of well section i-1, φ 4, i-1 is the azimuth system error of well section i-1.

进一步地,所述方法的另一个实施例中,所述基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间,包括:Further, in another embodiment of the method, the particle filtering-based method of solving the well inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation to determine the wellbore trajectory parameters and the wellbore trajectory parameter confidence interval of the target well includes:

按照以下方式,通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,确定目标井中当前待预测井段的井眼轨迹参数和井眼轨迹参数置信区间:The wellbore trajectory parameters and wellbore trajectory parameter confidence intervals of the current well section to be predicted in the target well are determined by solving the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation in the following manner:

根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数;According to the well inclination state equation and the azimuth state equation, the state parameters of the current well section to be predicted are obtained;

根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角;According to the state parameters of the current well section to be predicted, the well inclination observation equation and the azimuth observation equation are solved to obtain the weighted normalized particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted;

根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群;According to the particle swarm normalized by the weight of the current well section to be predicted, a resampled particle swarm of the current well section to be predicted is obtained;

基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间。Based on the resampled particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted, the final bottom well inclination angle of the current well section to be predicted, the final bottom azimuth angle of the current well section to be predicted, the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted, and the preset prediction confidence interval of the bottom azimuth angle of the current well section to be predicted are obtained.

进一步地,所述方法的另一个实施例中,所述根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数,包括:Furthermore, in another embodiment of the method, obtaining the state parameters of the current well section to be predicted according to the well inclination state equation and the azimuth state equation comprises:

判断当前待预测井段是否为第一个井段;Determine whether the current well section to be predicted is the first well section;

在当前待预测井段是第一个井段的情况下,依据预处理数据获得待预测目标井的先验高斯分布,并基于先验高斯分布生成初始粒子群;依据初始粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数;When the current well section to be predicted is the first well section, the prior Gaussian distribution of the target well to be predicted is obtained according to the preprocessed data, and an initial particle group is generated based on the prior Gaussian distribution; the well inclination state equation and the azimuth state equation are solved according to the initial particle group to obtain the state parameters of the current well section to be predicted;

在当前待预测井段不是第一个井段的情况下,获取前一个井段重采样后的粒子群,依据前一个井段重采样后的粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数。When the current well section to be predicted is not the first well section, the particle swarm after resampling of the previous well section is obtained, and the well inclination state equation and the azimuth state equation are solved according to the particle swarm after resampling of the previous well section to obtain the state parameters of the current well section to be predicted.

进一步地,所述方法的另一个实施例中,所述根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,包括:Furthermore, in another embodiment of the method, solving the well inclination angle observation equation and the azimuth angle observation equation according to the state parameters of the current well section to be predicted to obtain the weighted normalized particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted, comprises:

依据当前待预测井段的状态参数,求解井斜角观测方程和方位角观测方程,得到当前待预测井段的底部井斜角和当前待预测井段的底部方位角;According to the state parameters of the current well section to be predicted, the well inclination angle observation equation and the azimuth angle observation equation are solved to obtain the bottom well inclination angle and the bottom azimuth angle of the current well section to be predicted;

依据当前待预测井段的底部井斜角和当前待预测井段的底部方位角,得到当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差;According to the bottom well inclination angle of the current well section to be predicted and the bottom azimuth angle of the current well section to be predicted, the absolute error of the well inclination angle of the current well section to be predicted and the absolute error of the azimuth angle of the current well section to be predicted are obtained;

根据当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差重新计算当前待预测井段的粒子群中每一个粒子的权重,获得当前待预测井段的重新赋权的粒子群;Recalculate the weight of each particle in the particle swarm of the current well section to be predicted according to the absolute error of the well inclination angle and the absolute error of the azimuth angle of the current well section to be predicted, and obtain a re-weighted particle swarm of the current well section to be predicted;

依据当前待预测井段的重新赋权的粒子群,获得当前待预测井段的权重归一化后的粒子群。According to the re-weighted particle swarm of the current well section to be predicted, a particle swarm with normalized weights of the current well section to be predicted is obtained.

另一方面,本申请提供了一种基于粒子滤波的井眼轨迹预测装置,包括:On the other hand, the present application provides a wellbore trajectory prediction device based on particle filtering, comprising:

预处理模块,用于获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;A preprocessing module is used to obtain the data of neighboring wells around the target well to be predicted, and obtain preprocessing data based on the data of the neighboring wells;

构建模块,用于根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;A construction module, used for constructing the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation according to the preprocessed data;

粒子滤波模块,用于基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。The particle filter module is used to solve the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation based on particle filtering, so as to determine the wellbore trajectory parameters and the wellbore trajectory parameter confidence interval of the target well.

再一方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机可读存储介质执行所述指令时实现上述基于粒子滤波的井眼轨迹预测方法。On the other hand, the present application also provides a computer-readable storage medium having computer instructions stored thereon, and the computer-readable storage medium implements the above-mentioned particle filtering-based wellbore trajectory prediction method when executing the instructions.

本说明书提供的一种基于粒子滤波的井眼轨迹预测方法及装置,通过获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。依据本说明书提供的方法,能够解决现有方法中存在的井眼轨迹预测算法自适应性差的技术问题,实现井眼轨迹预测和对井眼轨迹进行不确定性描述的技术效果。The present specification provides a method and device for predicting borehole trajectory based on particle filtering, which obtains data of neighboring wells around the target well to be predicted and obtains preprocessed data based on the data of neighboring wells; constructs the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation according to the preprocessed data; solves the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation based on particle filtering to determine the wellbore trajectory parameters and wellbore trajectory parameter confidence intervals of the target well. According to the method provided in the present specification, the technical problem of poor adaptability of the wellbore trajectory prediction algorithm existing in the existing method can be solved, and the technical effect of wellbore trajectory prediction and uncertainty description of the wellbore trajectory can be achieved.

并且,在基于粒子滤波,确定目标井的井眼轨迹参数和井眼轨迹参数置信区间时,通过待预测的前一个井段的粒子群计算得到待预测井段的状态参数,根据待预测井段的状态参数计算得到待预测井段底部井斜角、待预测井段底部方位角,对粒子群进行归一化、重采样操作后,依据重采样后的粒子群获得待预测井段底部最终井斜角、待预测井段底部最终方位角,以对井眼轨迹进行预测,实现在线自适应校准井眼轨迹预测参数的目的,从而对定向施工参数、随钻数据进行调整。Moreover, when determining the borehole trajectory parameters and the confidence interval of the borehole trajectory parameters of the target well based on particle filtering, the state parameters of the well section to be predicted are calculated by the particle group of the previous well section to be predicted, and the bottom well inclination angle and the bottom azimuth angle of the well section to be predicted are calculated according to the state parameters of the well section to be predicted. After normalizing and resampling the particle group, the final well inclination angle and the final azimuth angle of the bottom of the well section to be predicted are obtained according to the resampled particle group, so as to predict the borehole trajectory and achieve the purpose of online adaptive calibration of the borehole trajectory prediction parameters, thereby adjusting the directional construction parameters and drilling data.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本说明书实施例,下面将对实施例中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本说明书提供的一种基于粒子滤波的井眼轨迹预测方法一个实施例的流程示意图;FIG1 is a flow chart of an embodiment of a wellbore trajectory prediction method based on particle filtering provided in this specification;

图2是本说明书一个实施例中的预处理数据图;FIG2 is a diagram of preprocessed data in one embodiment of the present specification;

图3是本说明书一个实施例中的井斜角先验高斯分布求取结果图;FIG3 is a diagram showing the result of obtaining a priori Gaussian distribution of well inclination in one embodiment of this specification;

图4是本说明书一个实施例中的方位角先验高斯分布求取结果图;FIG4 is a diagram showing the result of obtaining the azimuth prior Gaussian distribution in one embodiment of the present specification;

图5是本说明书一个实施例中的自适应校准流程图;FIG5 is a flowchart of an adaptive calibration in one embodiment of the present specification;

图6是本说明书一个实施例中的目标井的井斜角预测结果图;FIG6 is a diagram showing the prediction result of the well inclination angle of a target well in one embodiment of the present specification;

图7是本说明书提供的一种基于粒子滤波的井眼轨迹预测装置一个实施例的模块结构示意图。FIG. 7 is a schematic diagram of the module structure of an embodiment of a wellbore trajectory prediction device based on particle filtering provided in this specification.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

考虑到现有的基于统计方法的井眼轨迹预测方法通常利用邻井或已钻井眼数据建立回归模型,通过回归系数反映待钻井眼的地层特性,但是它难以根据邻井数据及时调整自身模型参数,导致其自适应能力较差。Considering that the existing wellbore trajectory prediction methods based on statistical methods usually use the data of neighboring wells or drilled wells to establish regression models, and reflect the formation characteristics of the wellbore to be drilled through regression coefficients, it is difficult to adjust its own model parameters in time according to the data of neighboring wells, resulting in poor adaptability.

进一步,还考虑到现有的基于几何外推的井眼轨迹预测方法没有考虑地层特性对井眼轨迹的影响,导致其计算结果准确性较差。Furthermore, it is also considered that the existing wellbore trajectory prediction method based on geometric extrapolation does not consider the influence of formation characteristics on the wellbore trajectory, resulting in poor accuracy of its calculation results.

针对现有方法存在的上述问题以及产生上述问题的具体原因,本申请考虑可以引入粒子滤波进行井眼轨迹预测以提升方法的自适应能力和预测结果精度。In view of the above problems existing in the existing methods and the specific reasons for the above problems, this application considers introducing particle filtering for wellbore trajectory prediction to improve the adaptability of the method and the accuracy of the prediction results.

基于上述思路,本说明书提出一种基于粒子滤波的井眼轨迹预测方法。首先,获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;然后,根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;最后,基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。参阅图1所示,本说明书实施例提供了一种基于粒子滤波的井眼轨迹预测方法。具体实施时,该方法可以包括以下内容。Based on the above ideas, this specification proposes a wellbore trajectory prediction method based on particle filtering. First, the neighboring well data around the target well to be predicted is obtained, and pre-processed data is obtained based on the neighboring well data; then, according to the pre-processed data, the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation are constructed; finally, based on particle filtering, the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation are solved to determine the wellbore trajectory parameters of the target well and the wellbore trajectory parameter confidence interval. Referring to FIG1, an embodiment of this specification provides a wellbore trajectory prediction method based on particle filtering. In specific implementation, the method may include the following contents.

S101:获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据。S101: Acquire the neighboring well data around the target well to be predicted, and obtain pre-processed data based on the neighboring well data.

在一些实施例中,所述邻井数据具体可以包括:轨迹测量数据、录井米数据、定向井施工记录数据、邻井参数数据;所述预处理数据具体可以包括:钻进数据、工具面角平均值、井眼第二分段结果。In some embodiments, the adjacent well data may specifically include: trajectory measurement data, logging meter data, directional well construction record data, and adjacent well parameter data; the preprocessed data may specifically include: drilling data, tool face angle average value, and wellbore second segmentation result.

在一些实施例中,所述轨迹测量数据具体可以包括:轨迹测量深度、井斜角、方位角;所述录井米数据具体可以包括:录井米深度、钻压、转速;所述定向井施工记录数据具体可以包括工具面角;所述邻井参数数据具体可以包括:井眼尺寸、地层、钻具组合;所述钻进数据具体可以包括:滑动钻进距离、滑动钻进平均钻压、复合钻进距离。In some embodiments, the trajectory measurement data may specifically include: trajectory measurement depth, well inclination, and azimuth; the logging meter data may specifically include: logging meter depth, drilling pressure, and rotation speed; the directional well construction record data may specifically include tool face angle; the adjacent well parameter data may specifically include: wellbore size, formation, and drill bit combination; the drilling data may specifically include: sliding drilling distance, sliding drilling average drilling pressure, and composite drilling distance.

在一些实施例中,上述基于邻井数据获得预处理数据,具体实施时,可以包括:In some embodiments, the above-mentioned obtaining of pre-processed data based on adjacent well data may include:

S1:基于轨迹测量数据对井眼进行第一次分段,得到井眼第一分段结果;S1: Perform the first segmentation of the wellbore based on the trajectory measurement data to obtain the first segmentation result of the wellbore;

S2:根据所述井眼第一分段结果和录井米数据,得到钻进数据;S2: Obtain drilling data according to the first segmentation result of the wellbore and the logging meter data;

S3:根据所述井眼第一分段结果和定向井施工记录数据,得到工具面角平均值;S3: obtaining an average tool face angle according to the first segmentation result of the wellbore and the directional well construction record data;

S4:基于邻井参数数据对井眼进行第二次分段,得到井眼第二分段结果。S4: Perform a second segmentation on the wellbore based on the parameter data of the adjacent wells to obtain a second segmentation result of the wellbore.

在一些实施例中,上述基于轨迹测量数据对井眼进行第一次分段,得到井眼第一分段结果,具体实施时,可以包括:依据轨迹测量数据对井眼轨迹分段,将某测点的轨迹测量深度、井斜角、方位角分别作为该井段的底部深度、底部井斜角、底部方位角,将上一个测点的轨迹测量深度、井斜角、方位角分别作为该井段的顶部深度、顶部井斜角、顶部方位角,得到了井眼第一分段结果。In some embodiments, the above-mentioned first segmentation of the wellbore based on the trajectory measurement data to obtain the first segmentation result of the wellbore can be specifically implemented as follows: segmenting the wellbore trajectory according to the trajectory measurement data, using the trajectory measurement depth, well inclination, and azimuth of a certain measuring point as the bottom depth, bottom well inclination, and bottom azimuth of the well section, respectively, and using the trajectory measurement depth, well inclination, and azimuth of the previous measuring point as the top depth, top well inclination, and top azimuth of the well section, respectively, to obtain the first segmentation result of the wellbore.

在一些实施例中,上述根据所述井眼第一分段结果和录井米数据,得到钻进数据,具体实施时,可以包括:根据井眼第一分段结果,在录井米数据中提取录井米深度,将每个录井米深度放入对应的第一分段结果中,并提取每个第一分段结果中转速等于0的记录行数,记为滑动钻进距离,并计算转速等于0的行中钻压的平均值,记为滑动钻进平均钻压;提取每个第一分段结果中转速大于0的记录行数,记为复合钻进距离。In some embodiments, the drilling data is obtained according to the first segmentation result of the wellbore and the logging meter data. When implemented specifically, it may include: extracting the logging meter depth from the logging meter data according to the first segmentation result of the wellbore, placing each logging meter depth into the corresponding first segmentation result, and extracting the number of record rows with a rotation speed equal to 0 in each first segmentation result, recording it as the sliding drilling distance, and calculating the average drilling pressure in the rows with a rotation speed equal to 0, recording it as the sliding drilling average drilling pressure; extracting the number of record rows with a rotation speed greater than 0 in each first segmentation result, recording it as the composite drilling distance.

在一些实施例中,上述根据所述井眼第一分段结果和定向井施工记录数据,得到工具面角平均值,具体实施时,可以包括:根据定向井施工记录数据获取井眼第一分段结果中每一段的工具面角,并计算其平均值,记为工具面角平均值。In some embodiments, the above-mentioned obtaining the average tool face angle based on the first segmentation result of the wellbore and the directional well construction record data may include: obtaining the tool face angle of each segment in the first segmentation result of the wellbore based on the directional well construction record data, and calculating the average value thereof, which is recorded as the average tool face angle.

在一些实施例中,上述基于邻井参数数据对井眼进行第二次分段,得到井眼第二分段结果,具体实施时,可以包括:根据井眼尺寸划分井眼第一分段结果,得到第一井段数据,其中,第一井段数据中的每个井段都具有相同的井眼尺寸;根据地层划分第一井段数据,得到第二井段数据,其中,第二井段数据中的每个井段都具有相同的地层;根据钻具组合划分第二井段数据,得到井眼第二分段结果,其中,井眼第二分段结果中的每个井段都具有相同的钻具组合;其中,上述井眼第二分段结果中的最小井段内测点数目不能少于10个;并且,将井眼第二分段结果中每段内最后一个测点的井斜角作为该段的底部井斜角,同时也是下一段的顶部井斜角;将井眼第二分段结果中每段内最后一个测点的方位角作为该段的底部方位角,同时也是下一段的顶部方位角。In some embodiments, the second segmentation of the wellbore based on the adjacent well parameter data to obtain the second segmentation result of the wellbore may include: dividing the first segmentation result of the wellbore according to the wellbore size to obtain the first segmentation data, wherein each segment in the first segmentation data has the same wellbore size; dividing the first segmentation data according to the formation to obtain the second segmentation data, wherein each segment in the second segmentation data has the same formation; dividing the second segmentation data according to the drilling tool assembly to obtain the second segmentation result of the wellbore, wherein each segment in the second segmentation result of the wellbore has the same drilling tool assembly; wherein the minimum number of measuring points in the wellbore segment in the above second segmentation result of the wellbore cannot be less than 10; and the inclination angle of the last measuring point in each segment of the second segmentation result of the wellbore is used as the bottom inclination angle of the segment, and also the top inclination angle of the next segment; the azimuth angle of the last measuring point in each segment of the second segmentation result of the wellbore is used as the bottom azimuth angle of the segment, and also the top azimuth angle of the next segment.

在一些实施例中,在计算机的软件交互页面针对上述预处理数据进行可视化显示。In some embodiments, the pre-processed data is visualized on a software interactive page of a computer.

通过上述实施例,同时考虑到了井眼尺寸、地层、钻具组合三种因素对井眼进行分段,可以使分段结果更加准确,提高后续粒子滤波方法计算的精度。Through the above embodiment, the wellbore is segmented by taking into account the three factors of wellbore size, formation and drilling tool assembly, which can make the segmentation result more accurate and improve the accuracy of subsequent particle filtering method calculation.

S102:根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程。S102: constructing the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation according to the preprocessed data.

在一些实施例中,状态方程用于将系统当前时刻的状态预测结果和状态的测量相结合,得到对系统的最优估计;观测方程用于对状态进行线性或非线性观测观测,得到系统当前时刻的观测值。本说明书中,可以使用前一个井段的井眼轨迹参数的观测值结合预处理数据来更正待预测井段的井眼轨迹参数的值,以得到更加准确的观测值;使用前一个井段的状态参数值结合高斯白噪声推算待预测井段的状态参数值。In some embodiments, the state equation is used to combine the state prediction result of the system at the current moment with the state measurement to obtain the optimal estimate of the system; the observation equation is used to perform linear or nonlinear observation of the state to obtain the observation value of the system at the current moment. In this specification, the observation value of the borehole trajectory parameter of the previous well section can be used in combination with the preprocessed data to correct the value of the borehole trajectory parameter of the well section to be predicted to obtain a more accurate observation value; the state parameter value of the previous well section is used in combination with Gaussian white noise to infer the state parameter value of the well section to be predicted.

在一些实施例中,上述根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程,具体实施时,可以包括:In some embodiments, the above-mentioned construction of the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation based on the preprocessed data may include:

按照以下算式构建井斜角观测方程:The well inclination angle observation equation is constructed according to the following formula:

Incb,i=(θ0,i×cos(tfb,i)+θ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Incb,i-1 (1)Inc b, i = (θ 0, i × cos (tf b, i ) + θ 1, i × WOB b, i + θ 2, i ) × L b, i + θ 3, i × L h, i + θ 4,i +Inc b,i-1 (1)

式中,i和i-1表示待预测的井段的编号,Incb,i为待预测井段底部井斜角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Incb,i-1为待预测井段顶部井斜角,θ0,i、θ1,i、θ2,i、θ3,i、θ4,i为i井段的井斜角状态参数,其中,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,ii井段的为井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差。Wherein, i and i-1 represent the number of the well section to be predicted, Inc b,i is the well inclination angle at the bottom of the well section to be predicted, tf b,i is the average tool face angle, WOB b,i is the average drilling pressure during sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Inc b,i-1 is the well inclination angle at the top of the well section to be predicted, θ 0,i , θ 1,i , θ 2,i , θ 3,i , θ 4,i are the well inclination state parameters of the i well section, wherein θ 0,i is the well inclination angle build-up rate correction coefficient of the i well section, θ 1,i is the well inclination angle drilling pressure influence coefficient of the i well section, θ 2,i is the well inclination angle build-up rate error of the i well section, θ 3,i is the slope variation law coefficient of the well inclination angle composite drilling distance of the i well section, and θ 4,i is the well inclination angle system error of the i well section.

按照以下算式构建井斜角状态方程:The state equation of well inclination is constructed according to the following formula:

Figure BDA0003711977730000081
Figure BDA0003711977730000081

式中,w0,i-1、w1,i-1、w2,i-1、w3,i-1、w4,i-1为i-1井段的井斜角高斯白噪声,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,i为i井段的井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差,θ0,i-1为i-1井段的井斜角造斜率修正系数,θ1,i-1为i-1井段的井斜角钻压影响系数,θ2,i-1为i-1井段的井斜角造斜率误差,θ3,i-1为i-1井段的井斜角复合钻进距离斜率变化规律系数,θ4,i-1为i-1井段的井斜角系统误差。Wherein, w0 ,i-1 , w1,i-1 , w2,i-1 , w3,i-1 , w4,i-1 are the Gaussian white noise of the well inclination angle of the i-1 well section, θ0,i is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i is the well inclination angle build-up rate error of the i-1 well section, θ3,i is the slope variation law coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ4,i is the well inclination angle system error of the i-1 well section, θ0,i-1 is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i-1 is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i-1 is the well inclination angle build-up rate error of the i-1 well section, θ 3, i-1 is the slope variation coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ 4, i-1 is the systematic error of the well inclination angle of the i-1 well section.

按照以下算式构建方位角观测方程:Construct the azimuth observation equation according to the following formula:

Azib,i=(φ0,i×cos(tfb,i)+φ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Azib,i-1(3)Azi b,i =(φ 0,i ×cos(tf b,i )+φ 1,i ×WOB b,i2,i )×L b,i3,i ×L h,i + φ 4,i +Azi b,i-1 (3)

式中,i和i-1表示待预测的井段的编号,Azib,i为待预测井段底部方位角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Azib,i-1为待预测井段顶部方位角,φ0,i、φ1,i、φ2,i、φ3,i、φ1,i为i井段的方位角状态参数,其中,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差。where i and i-1 represent the number of the well section to be predicted, Azi b,i is the azimuth of the bottom of the well section to be predicted, tf b,i is the average tool face angle, WOB b,i is the average drilling pressure during sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Azi b,i-1 is the azimuth of the top of the well section to be predicted, φ 0,i , φ 1,i , φ 2,i , φ 3,i , φ 1,i are the azimuth state parameters of the i well section, where φ 0,i is the azimuth buildup rate correction coefficient of the i well section, φ 1,i is the azimuth buildup rate influence coefficient of the i well section, φ 2,i is the azimuth buildup rate error of the i well section, φ 3,i is the azimuth composite drilling distance slope variation coefficient of the i well section, and φ 4,i is the azimuth system error of the i well section.

按照以下算式构建方位角状态方程:The azimuth state equation is constructed according to the following formula:

Figure BDA0003711977730000082
Figure BDA0003711977730000082

Figure BDA0003711977730000091
Figure BDA0003711977730000091

式中,n0,i-1、n1,i-1、n2,i-1、n3,i-1、n4,i-1为i-1井段的方位角高斯白噪声,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差,φ0,i-1为i-1井段的方位角造斜率修正系数,φ1,i-1为i-1井段的方位角钻压影响系数,φ2,i-1为i-1井段的方位角造斜率误差,φ3,i-1为i-1井段的方位角复合钻进距离斜率变化规律系数,φ4,i-1为i-1井段的方位角系统误差。Wherein, n0 ,i-1 , n1,i-1 , n2,i-1 , n3,i-1 , n4,i-1 are the azimuth Gaussian white noise of well section i-1, φ0,i is the azimuth buildup rate correction coefficient of well section i, φ1,i is the azimuth drilling pressure influence coefficient of well section i, φ2 ,i is the azimuth buildup rate error of well section i, φ3,i is the azimuth composite drilling distance slope variation law coefficient of well section i, φ4,i is the azimuth system error of well section i, φ0,i-1 is the azimuth buildup rate correction coefficient of well section i-1, φ1 ,i-1 is the azimuth drilling pressure influence coefficient of well section i-1, φ2,i-1 is the azimuth buildup rate error of well section i-1, φ 3, i-1 is the coefficient of slope variation of azimuth composite drilling distance of well section i-1, φ 4, i-1 is the azimuth system error of well section i-1.

S103:基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。S103: Based on particle filtering, solving the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation, to determine the wellbore trajectory parameters of the target well and the wellbore trajectory parameter confidence interval.

在一些实施例中,所述目标井的井眼轨迹参数可以包括:待预测井段底部最终井斜角、待预测井段底部最终方位角;所述目标井的井眼轨迹参数置信区间可以包括:待预测井段底部井斜角预设的预测置信区间、待预测井段底部方位角预设的预测置信区间。In some embodiments, the wellbore trajectory parameters of the target well may include: the final well inclination angle at the bottom of the well section to be predicted, and the final azimuth angle at the bottom of the well section to be predicted; the confidence interval of the wellbore trajectory parameters of the target well may include: the preset prediction confidence interval of the well inclination angle at the bottom of the well section to be predicted, and the preset prediction confidence interval of the azimuth angle at the bottom of the well section to be predicted.

在一些实施例中,粒子滤波是一种基于蒙特卡洛思想的非线性、非高斯系统滤波方法,它改进了卡尔曼滤波只适用于线性系统的缺陷,对系统的过程噪声和测量噪声没有任何限制。粒子滤波用一系列带有权值的粒子来表示后验概率密度函数,从而得到待预测的值。由于粒子滤波同时适用于非线性和非高斯的系统,所以它的应用范围更广。本说明书中,首先采用粒子滤波更新状态参数,将前一个井段的后验分布作为当前井段的先验分布,利用更新后的状态参数解算井斜角观测方程和方位角观测方程,得到待预测井段底部井斜角和待预测井段底部方位角;然后对粒子群进行权重归一化、重采样操作,得到重采样后的粒子群;最后根据待预测井段底部井斜角、待预测井段底部方位角、重采样后的粒子群,计算待预测井段的井眼轨迹参数和井眼轨迹参数置信区间,以实现井眼轨迹参数的在线自适应校准,然后可以对定向施工参数进行调整;上述后验分布具体指的是前一个井段经过重采样后的粒子群。In some embodiments, particle filtering is a nonlinear, non-Gaussian system filtering method based on the Monte Carlo concept, which improves the defect that Kalman filtering is only applicable to linear systems and has no restrictions on the process noise and measurement noise of the system. Particle filtering uses a series of weighted particles to represent the posterior probability density function to obtain the value to be predicted. Since particle filtering is applicable to both nonlinear and non-Gaussian systems, it has a wider range of applications. In this specification, firstly, a particle filter is used to update the state parameters, and the posterior distribution of the previous well section is used as the prior distribution of the current well section. The well inclination observation equation and the azimuth observation equation are solved using the updated state parameters to obtain the well inclination at the bottom of the well section to be predicted and the azimuth at the bottom of the well section to be predicted; then, the particle group is weighted normalized and resampled to obtain the resampled particle group; finally, according to the well inclination at the bottom of the well section to be predicted, the azimuth at the bottom of the well section to be predicted, and the resampled particle group, the wellbore trajectory parameters and the wellbore trajectory parameter confidence interval of the well section to be predicted are calculated to realize the online adaptive calibration of the wellbore trajectory parameters, and then the directional construction parameters can be adjusted; the above-mentioned posterior distribution specifically refers to the particle group after the resampling of the previous well section.

在一些实施例中,上述通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间,具体实施时,可以包括:In some embodiments, the above-mentioned particle filtering is used to solve the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation to determine the wellbore trajectory parameters and the wellbore trajectory parameter confidence interval of the target well. When implemented specifically, it may include:

按照以下方式,通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,确定目标井中当前待预测井段的井眼轨迹参数和井眼轨迹参数置信区间:The wellbore trajectory parameters and wellbore trajectory parameter confidence intervals of the current well section to be predicted in the target well are determined by solving the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation in the following manner:

S1:根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数;S1: According to the well inclination state equation and the azimuth state equation, the state parameters of the current well section to be predicted are obtained;

S2:根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角;S2: according to the state parameters of the current well section to be predicted, solve the well inclination angle observation equation and the azimuth angle observation equation to obtain the weighted normalized particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted;

S3:根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群;S3: obtaining a resampled particle swarm of the current well section to be predicted according to the particle swarm normalized by the weight of the current well section to be predicted;

S4:基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间。S4: Based on the resampled particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted, obtain the bottom final well inclination angle of the current well section to be predicted, the bottom final azimuth angle of the current well section to be predicted, the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted, and the preset prediction confidence interval of the bottom azimuth angle of the current well section to be predicted.

在一些实施例中,上述根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数,具体实施时,可以包括:In some embodiments, the state parameters of the current well section to be predicted are obtained according to the well inclination state equation and the azimuth state equation. When implemented specifically, the following may be included:

S1:判断当前待预测井段是否为第一个井段;S1: Determine whether the current well section to be predicted is the first well section;

S2:在当前待预测井段是第一个井段的情况下,依据预处理数据获得待预测目标井的先验高斯分布,并基于先验高斯分布生成初始粒子群;依据初始粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数;S2: When the current well section to be predicted is the first well section, the prior Gaussian distribution of the target well to be predicted is obtained based on the preprocessed data, and an initial particle swarm is generated based on the prior Gaussian distribution; the well inclination state equation and the azimuth state equation are solved based on the initial particle swarm to obtain the state parameters of the current well section to be predicted;

S3:在当前待预测井段不是第一个井段的情况下,获取前一个井段重采样后的粒子群,依据前一个井段重采样后的粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数。S3: When the current well section to be predicted is not the first well section, the particle swarm after resampling of the previous well section is obtained, and the well inclination state equation and the azimuth state equation are solved according to the particle swarm after resampling of the previous well section to obtain the state parameters of the current well section to be predicted.

在一些实施例中,上述状态参数具体可以包括:井斜角状态参数和方位角状态参数。In some embodiments, the above-mentioned state parameters may specifically include: well inclination state parameters and azimuth state parameters.

在一些实施例中,上述初始粒子群具体可以包括:井斜角初始粒子群和方位角初始粒子群;所述井斜角初始粒子群和所述方位角初始粒子群均为一组随机产生的具有上述先验高斯分布的数据集合,井斜角初始粒子群中每个粒子的权重相等,方位角初始粒子群中每个粒子的权重相等。In some embodiments, the above-mentioned initial particle group may specifically include: an initial particle group of well inclination angle and an initial particle group of azimuth angle; the initial particle group of well inclination angle and the initial particle group of azimuth angle are both a group of randomly generated data sets with the above-mentioned prior Gaussian distribution, and the weight of each particle in the initial particle group of well inclination angle is equal, and the weight of each particle in the initial particle group of azimuth angle is equal.

其中,上述井斜角初始粒子群可以记为

Figure BDA0003711977730000101
其为N×5的矩阵,N表示井斜角初始粒子群的粒子数,每个粒子的权重可以记为1/N;上述方位角初始粒子群可以记为
Figure BDA0003711977730000102
其为M×5的矩阵,M表示方位角初始粒子群的粒子数,每个粒子的权重可以记为1/M。Among them, the initial particle group of the above-mentioned well inclination angle can be recorded as
Figure BDA0003711977730000101
It is an N×5 matrix, where N represents the number of particles in the initial particle group of well inclination angle, and the weight of each particle can be recorded as 1/N; the above initial particle group of azimuth angle can be recorded as
Figure BDA0003711977730000102
It is an M×5 matrix, where M represents the number of particles in the azimuth initial particle group, and the weight of each particle can be recorded as 1/M.

在一些实施例中,上述在当前待预测井段是第一个井段的情况下,依据预处理数据获得待预测目标井的先验高斯分布,具体实施时,可以包括:In some embodiments, when the current well section to be predicted is the first well section, obtaining the prior Gaussian distribution of the target well to be predicted based on the preprocessed data may include:

S1:根据井眼第二分段结果,基于顶部井斜角、滑动钻进距离、滑动钻进平均钻压、复合钻进平均钻压、底部井斜角,拟合井斜角观测方程,得到每一个井段的井斜角状态参数;S1: According to the second segmentation result of the wellbore, based on the top well inclination angle, sliding drilling distance, sliding drilling average drilling pressure, composite drilling average drilling pressure, and bottom well inclination angle, the well inclination angle observation equation is fitted to obtain the well inclination angle state parameters of each well section;

S2:根据井眼第二分段结果,基于顶部方位角、滑动钻进距离、滑动钻进平均钻压、复合钻进平均钻压、底部方位角,拟合方位角观测方程,得到每一个井段的方位角状态参数;S2: According to the results of the second segmentation of the wellbore, the azimuth observation equation is fitted based on the top azimuth, sliding drilling distance, sliding drilling average drilling pressure, composite drilling average drilling pressure, and bottom azimuth to obtain the azimuth state parameters of each well section;

S3:计算每一个井段的井斜角状态参数的期望和方差、每一个井段的方位角状态参数的期望和方差,得到待预测目标井的先验高斯分布。S3: Calculate the expectation and variance of the well inclination state parameter of each well section and the expectation and variance of the azimuth state parameter of each well section to obtain the prior Gaussian distribution of the target well to be predicted.

在一些实施例中,所述拟合井斜角观测方程和所述拟合方位角观测方程的方法具体可以包括:最小二乘法、牛顿迭代法、线性逼近约束优化(COBYLA)法。In some embodiments, the method of fitting the well inclination observation equation and the method of fitting the azimuth observation equation may specifically include: least square method, Newton iteration method, and constrained optimization by linear approximation (COBYLA) method.

在一些实施例中,上述依据初始粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数,具体实施时,可以包括:In some embodiments, the above-mentioned solving the well inclination state equation and the azimuth state equation based on the initial particle swarm to obtain the state parameters of the current well section to be predicted may include:

S1:将井斜角初始粒子群第1列数据作为井斜角造斜率修正系数,第2列数据作为井斜角钻压影响系数,第3列数据作为井斜角造斜率误差,第4列数据作为井斜角复合钻进距离斜率变化规律系数,第5列数据作为井斜角系统误差,求解井斜角状态方程,得到当前待预测井段的井斜角状态参数;S1: The first column of data of the initial particle group of well inclination angle is used as the well inclination angle build-up rate correction coefficient, the second column of data is used as the well inclination angle drilling pressure influence coefficient, the third column of data is used as the well inclination angle build-up rate error, the fourth column of data is used as the well inclination angle composite drilling distance slope variation law coefficient, and the fifth column of data is used as the well inclination angle system error, and the well inclination angle state equation is solved to obtain the well inclination angle state parameters of the current well section to be predicted;

S2:将方位角初始粒子群第1列数据作为方位角造斜率修正系数,第2列数据作为方位角钻压影响系数,第3列数据作为方位角造斜率误差,第4列数据作为方位角复合钻进距离斜率变化规律系数,第5列数据作为方位角系统误差,求解方位角状态方程,得到当前待预测井段的方位角状态参数。S2: The data in the first column of the azimuth initial particle group is used as the azimuth slope correction coefficient, the data in the second column is used as the azimuth drilling pressure influence coefficient, the data in the third column is used as the azimuth slope error, the data in the fourth column is used as the azimuth composite drilling distance slope variation coefficient, and the data in the fifth column is used as the azimuth system error. The azimuth state equation is solved to obtain the azimuth state parameters of the current well section to be predicted.

在一些实施例中,上述依据前一个井段重采样后的粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数,具体实施时,可以包括:In some embodiments, the above-mentioned particle swarm after resampling of the previous well section solves the well inclination state equation and the azimuth state equation to obtain the state parameters of the current well section to be predicted. When implemented specifically, it may include:

S1:将前一个井段重采样后的井斜角粒子群第1列数据作为前一个井段的井斜角造斜率修正系数,第2列数据作为前一个井段的井斜角钻压影响系数,第3列数据作为前一个井段的井斜角造斜率误差,第4列数据作为前一个井段的井斜角复合钻进距离斜率变化规律系数,第5列数据作为前一个井段的井斜角系统误差,将上述前一个井段重采样后的井斜角粒子群代入井斜角状态方程,求解得到当前待预测井段的井斜角状态参数;S1: The first column of the well inclination angle particle group after resampling of the previous well section is used as the well inclination angle build-up rate correction coefficient of the previous well section, the second column of data is used as the well inclination angle drilling pressure influence coefficient of the previous well section, the third column of data is used as the well inclination angle build-up rate error of the previous well section, the fourth column of data is used as the well inclination angle composite drilling distance slope variation law coefficient of the previous well section, and the fifth column of data is used as the well inclination angle system error of the previous well section. The well inclination angle particle group after resampling of the previous well section is substituted into the well inclination angle state equation to solve and obtain the well inclination angle state parameters of the current well section to be predicted;

S2:将前一个井段重采样后的方位角粒子群第1列数据作为前一个井段的方位角造斜率修正系数,第2列数据作为前一个井段的方位角钻压影响系数,第3列数据作为前一个井段的方位角造斜率误差,第4列数据作为前一个井段的方位角复合钻进距离斜率变化规律系数,第5列数据作为前一个井段的方位角系统误差,将上述前一个井段重采样后的方位角粒子群代入方位角状态方程,求解得到当前待预测井段的方位角状态参数。S2: The first column of the azimuth particle group after resampling of the previous well section is used as the azimuth build-up rate correction coefficient of the previous well section, the second column of data is used as the azimuth drilling pressure influence coefficient of the previous well section, the third column of data is used as the azimuth build-up rate error of the previous well section, the fourth column of data is used as the azimuth composite drilling distance slope variation law coefficient of the previous well section, and the fifth column of data is used as the azimuth system error of the previous well section. The azimuth particle group after resampling of the previous well section is substituted into the azimuth state equation to solve and obtain the azimuth state parameters of the current well section to be predicted.

在一些实施例中,上述根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,具体实施时,可以包括以下步骤:In some embodiments, the above method solves the well inclination observation equation and the azimuth observation equation according to the state parameters of the current well section to be predicted, and obtains the weighted normalized particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted. When implemented specifically, the following steps may be included:

S1:依据当前待预测井段的状态参数,求解井斜角观测方程和方位角观测方程,得到当前待预测井段的底部井斜角和当前待预测井段的底部方位角;S1: solving the well inclination angle observation equation and the azimuth angle observation equation according to the state parameters of the well section to be predicted, and obtaining the well inclination angle at the bottom of the well section to be predicted and the azimuth angle at the bottom of the well section to be predicted;

S2:依据当前待预测井段的底部井斜角和当前待预测井段的底部方位角,得到当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差;S2: according to the bottom well inclination angle of the current well section to be predicted and the bottom azimuth angle of the current well section to be predicted, obtaining the absolute error of the well inclination angle of the current well section to be predicted and the absolute error of the azimuth angle of the current well section to be predicted;

S3:根据当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差重新计算当前待预测井段的粒子群中每一个粒子的权重,获得当前待预测井段的重新赋权的粒子群;S3: recalculating the weight of each particle in the particle swarm of the current well section to be predicted according to the absolute error of the well inclination angle and the absolute error of the azimuth angle of the current well section to be predicted, and obtaining a re-weighted particle swarm of the current well section to be predicted;

S4:依据当前待预测井段的重新赋权的粒子群,获得当前待预测井段的权重归一化后的粒子群。S4: According to the re-weighted particle swarm of the current well section to be predicted, a particle swarm with normalized weights of the current well section to be predicted is obtained.

在一些实施例中,上述重新赋权的粒子群,具体包括:井斜角重新赋权的粒子群、方位角重新赋权的粒子群。In some embodiments, the above-mentioned re-weighted particle group specifically includes: a particle group re-weighted by well inclination angle and a particle group re-weighted by azimuth angle.

在一些实施例中,上述权重归一化后的粒子群,具体包括:井斜角权重归一化后的粒子群、方位角权重归一化后的粒子群。In some embodiments, the weight-normalized particle group specifically includes: a particle group with normalized well inclination weight and a particle group with normalized azimuth weight.

在一些实施例中,上述依据当前待预测井段的底部井斜角和当前待预测井段的底部方位角,得到当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差,具体实施时,可以包括:In some embodiments, the above-mentioned method of obtaining the absolute error of the inclination angle of the current well section to be predicted and the absolute error of the azimuth angle of the current well section to be predicted based on the bottom well inclination angle of the current well section to be predicted and the bottom azimuth angle of the current well section to be predicted may include:

按照以下算式计算当前待预测井段的井斜角绝对误差:The absolute error of the well inclination angle of the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000121
Figure BDA0003711977730000121

式中,

Figure BDA0003711977730000122
为当前待预测井段的井斜角绝对误差,
Figure BDA0003711977730000123
为第k个当前待预测井段底部井斜角,
Figure BDA0003711977730000124
为第k个当前待预测井段底部井斜角的实测值。In the formula,
Figure BDA0003711977730000122
is the absolute error of the well inclination angle of the current well section to be predicted,
Figure BDA0003711977730000123
is the bottom inclination angle of the kth well section to be predicted,
Figure BDA0003711977730000124
is the measured value of the bottom well inclination angle of the kth well section to be predicted.

按照以下算式计算当前待预测井段的方位角绝对误差:Calculate the absolute azimuth error of the current well section to be predicted according to the following formula:

Figure BDA0003711977730000125
Figure BDA0003711977730000125

式中,

Figure BDA0003711977730000126
为当前待预测井段的方位角绝对误差,
Figure BDA0003711977730000127
为第l个当前待预测井段底部方位角,
Figure BDA0003711977730000128
为第l个当前待预测井段底部方位角的实测值。In the formula,
Figure BDA0003711977730000126
is the absolute error of the azimuth of the well section to be predicted,
Figure BDA0003711977730000127
is the bottom azimuth of the lth well section to be predicted,
Figure BDA0003711977730000128
is the measured value of the bottom azimuth of the lth well section to be predicted.

在一些实施例中,上述根据当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差重新计算当前待预测井段的粒子群中每一个粒子的权重,获得当前待预测井段的重新赋权的粒子群,具体实施时,包括:In some embodiments, the weight of each particle in the particle swarm of the current well section to be predicted is recalculated according to the absolute error of the well inclination angle and the absolute error of the azimuth angle of the current well section to be predicted to obtain the re-weighted particle swarm of the current well section to be predicted. Specifically, the method includes:

按照以下算式计算当前待预测井段的井斜角重新赋权的粒子群的权重:The weight of the particle swarm re-weighted by the well inclination angle of the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000129
Figure BDA0003711977730000129

式中,

Figure BDA00037119777300001210
为当前待预测井段的井斜角重新赋权的粒子群中第k个粒子的权重,RInc为常数,根据经验确定。In the formula,
Figure BDA00037119777300001210
is the weight of the kth particle in the particle swarm that is re-weighted for the well inclination angle of the current well section to be predicted, and R Inc is a constant determined based on experience.

按照以下算式计算当前待预测井段的方位角重新赋权的粒子群的权重:The weight of the particle swarm whose azimuth is re-weighted for the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000131
Figure BDA0003711977730000131

式中,

Figure BDA0003711977730000132
为当前待预测井段的方位角重新赋权的粒子群中第l个粒子的权重,RAzi为常数,根据经验确定。In the formula,
Figure BDA0003711977730000132
is the weight of the lth particle in the particle swarm that re-weights the azimuth of the current well section to be predicted, and R Azi is a constant determined based on experience.

在一些实施例中,上述依据当前待预测井段的重新赋权的粒子群,获得当前待预测井段的权重归一化后的粒子群,具体实施时,可以包括:In some embodiments, the particle group with normalized weights of the current well section to be predicted is obtained based on the re-weighted particle group of the current well section to be predicted. When implemented specifically, the particle group may include:

按照以下算式计算当前待预测井段的井斜角权重归一化后的粒子群的权重:The weight of the particle swarm after the normalization of the well inclination weight of the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000133
Figure BDA0003711977730000133

式中,

Figure BDA0003711977730000134
为井斜角权重归一化后的粒子群中第k个粒子的权重。In the formula,
Figure BDA0003711977730000134
is the weight of the kth particle in the particle swarm after the well inclination weight is normalized.

按照以下算式计算当前待预测井段的方位角权重归一化后的粒子群的权重:The weight of the particle swarm after the azimuth weight normalization of the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000135
Figure BDA0003711977730000135

式中,

Figure BDA0003711977730000136
为方位角权重归一化后的粒子群中第l个粒子的权重。In the formula,
Figure BDA0003711977730000136
is the weight of the lth particle in the particle swarm after the azimuth weight is normalized.

在一些实施例中,上述根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群,具体实施时,可以包括:对当前待预测井段的权重归一化后的粒子群进行按照权重大小进行重采样,权重越高的粒子重采样次数越多,经过重采样之后,粒子总数不变,权重大的粒子分成了多个粒子,权重小的粒子被抛弃,重采样之后,每个粒子的权重相同;其中,所述重采样的方法具体可以包括:随机重采样、系统采样、残差采样、多项式采样;所述重采样粒子群具体可以包括:井斜角重采样粒子群、方位角重采样粒子群。In some embodiments, the above-mentioned particle group normalized according to the weight of the current well section to be predicted is used to obtain the resampled particle group of the current well section to be predicted. When implemented specifically, it can include: resampling the particle group normalized according to the weight of the current well section to be predicted according to the weight size, the particles with higher weights have more resample times, after resampling, the total number of particles remains unchanged, particles with large weights are divided into multiple particles, particles with small weights are discarded, and after resampling, the weight of each particle is the same; wherein, the resampling method can specifically include: random resampling, systematic sampling, residual sampling, polynomial sampling; the resampling particle group can specifically include: well inclination resampling particle group, azimuth resampling particle group.

在一些实施例中,上述基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间,具体实施时,可以包括:In some embodiments, the above-mentioned resampled particle group based on the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted are used to obtain the bottom final well inclination angle of the current well section to be predicted, the bottom final azimuth angle of the current well section to be predicted, the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted, and the preset prediction confidence interval of the bottom azimuth angle of the current well section to be predicted. When implemented specifically, it may include:

按照以下算式计算当前待预测井段的底部最终井斜角:The final well inclination angle at the bottom of the current well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000137
Figure BDA0003711977730000137

式中,Incfinal,b,i为当前待预测井段的底部最终井斜角,

Figure BDA0003711977730000138
为当前待预测井段的井斜角重采样粒子群中第k个粒子的值。Where, Inc final,b,i is the final well inclination angle at the bottom of the well section to be predicted.
Figure BDA0003711977730000138
is the value of the kth particle in the well inclination resampling particle swarm for the current well section to be predicted.

按照以下算式计算当前待预测井段的底部最终方位角:The final azimuth of the bottom of the well section to be predicted is calculated according to the following formula:

Figure BDA0003711977730000139
Figure BDA0003711977730000139

式中,Azifinal,b,i为当前待预测井段的底部最终方位角,

Figure BDA00037119777300001310
为当前待预测井段的方位角重采样粒子群中第l个粒子的值。Where Azi final,b,i is the final azimuth of the bottom of the well section to be predicted.
Figure BDA00037119777300001310
is the value of the lth particle in the azimuth resampling particle swarm of the current well section to be predicted.

在一些实施例中,在计算机的软件交互页面针对上述待预测井段的底部最终井斜角、上述待预测井段的底部最终方位角进行可视化显示。In some embodiments, the final well inclination angle at the bottom of the well section to be predicted and the final azimuth angle at the bottom of the well section to be predicted are visualized on the software interactive page of the computer.

在一些实施例中,在得到当前待预预测井段的井眼轨迹参数之后,可以利用该井眼轨迹参数进行井眼轨迹的预测,即利用井眼轨迹参数依据轨迹形状计算相应测点的位置坐标,最后得到井眼轨迹形态的空间数据,现场工作人员依据空间数据进行决策思考,为指挥钻井工作提供理论依据。In some embodiments, after obtaining the wellbore trajectory parameters of the current well section to be predicted, the wellbore trajectory parameters can be used to predict the wellbore trajectory, that is, the wellbore trajectory parameters are used to calculate the position coordinates of the corresponding measuring points according to the trajectory shape, and finally the spatial data of the wellbore trajectory morphology is obtained. The on-site staff makes decisions based on the spatial data, providing a theoretical basis for directing the drilling work.

在所述当前待预测井段底部井斜角预设的预测置信区间可以为当前待预测井段底部井斜角95%置信区间的情况下,按照以下算式计算当前待预测井段底部井斜角预设的预测置信区间下限:When the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted can be the 95% confidence interval of the bottom well inclination angle of the current well section to be predicted, the lower limit of the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted is calculated according to the following formula:

Incpred,min=μInc-1.96σInc (13)Inc pred,minInc -1.96σ Inc (13)

式中,μInc为待预测井段底部井斜角的均值,σInc为待预测井段底部井斜角的方差,Incpred,min为待预测井段底部井斜角预设的预测置信区间下限。Wherein, μ Inc is the mean of the well inclination angle at the bottom of the well section to be predicted, σ Inc is the variance of the well inclination angle at the bottom of the well section to be predicted, and Inc pred,min is the lower limit of the preset prediction confidence interval of the well inclination angle at the bottom of the well section to be predicted.

在所述当前待预测井段底部井斜角预设的预测置信区间可以为当前待预测井段底部井斜角95%置信区间的情况下,按照以下算式计算当前待预测井段底部井斜角预设的预测置信区间上限:When the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted can be the 95% confidence interval of the bottom well inclination angle of the current well section to be predicted, the upper limit of the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted is calculated according to the following formula:

Incpred,max=μInc+1.96σInc (14)Inc pred,maxInc +1.96σ Inc (14)

Incpred,max为待预测井段底部井斜角预设的预测置信区间上限。Inc pred,max is the upper limit of the prediction confidence interval of the bottom well inclination angle of the well section to be predicted.

因此,待预测井段底部井斜角预设的预测置信区间可以记为[Incpred,min,Incpred,max]。Therefore, the preset prediction confidence interval of the bottom well inclination angle of the well section to be predicted can be recorded as [Inc pred,min ,Inc pred,max ].

在所述当前待预测井段底部方位角预设的预测置信区间可以为当前待预测井段底部方位角95%置信区间的情况下,按照以下算式计算当前待预测井段底部方位角预设的预测置信区间下限:In the case where the preset prediction confidence interval of the bottom azimuth of the current well section to be predicted can be the 95% confidence interval of the bottom azimuth of the current well section to be predicted, the lower limit of the preset prediction confidence interval of the bottom azimuth of the current well section to be predicted is calculated according to the following formula:

Azipred,min=μAzi-1.96σAzi (15)Azi pred,minAzi -1.96σ Azi (15)

式中,μAzi为待预测井段底部方位角的均值,σAzi为待预测井段底部方位角的方差,Azipred,min为待预测井段底部方位角预设的预测置信区间下限。Wherein, μ Azi is the mean azimuth of the bottom of the well section to be predicted, σ Azi is the variance of the azimuth of the bottom of the well section to be predicted, and Azi pred,min is the lower limit of the prediction confidence interval of the azimuth of the bottom of the well section to be predicted.

在所述当前待预测井段底部方位角预设的预测置信区间可以为当前待预测井段底部方位角95%置信区间的情况下,按照以下算式计算当前待预测井段底部方位角预设的预测置信区间上限:In the case where the preset prediction confidence interval of the bottom azimuth of the current well section to be predicted can be the 95% confidence interval of the bottom azimuth of the current well section to be predicted, the upper limit of the preset prediction confidence interval of the bottom azimuth of the current well section to be predicted is calculated according to the following formula:

Azipred,max=μAzi+1.96σAzi (16)Azi pred,maxAzi +1.96σ Azi (16)

式中,Azipred,min为待预测井段底部方位角预设的预测置信区间上限。Where Azi pred,min is the upper limit of the prediction confidence interval of the bottom azimuth of the well section to be predicted.

因此,待预测井段底部方位角预设的预测置信区间可以记为[Azipred,min,Azipred,max]。Therefore, the preset prediction confidence interval of the bottom azimuth of the well section to be predicted can be recorded as [Azi pred,min ,Azi pred,max ].

在一些实施例中,根据待预测井段底部井斜角预设的预测置信区间、待预测井段底部方位角预设的预测置信区间就可以对目标井的井眼轨迹进行不确定描述。In some embodiments, the wellbore trajectory of the target well can be described uncertainly based on the preset prediction confidence interval of the bottom well inclination angle of the well section to be predicted and the preset prediction confidence interval of the bottom azimuth angle of the well section to be predicted.

在一个具体的场景示例中,可以应用本说明书提供的基于粒子滤波的井眼轨迹预测方法对目标井眼的井眼轨迹参数进行求取。其中,基于邻井数据得到的预处理数据如图2所示;目标井一共被分为4个井段,井斜角状态参数先验高斯分布如图3所示,θi,prior(i=0,1,2,3,4)表示井斜角状态参数先验高斯分布;方位角状态参数先验高斯分布如图4所示,φi,prior(i=0,1,2,3,4)表示方位角状态参数先验高斯分布;自适应校准流程如图5所示,依据邻井数据获得目标井的先验高斯分布,并且将前一个井段的重采样粒子群作为前一个井段的后验分布,同时也作为当前待遇测井段的先验分布,依据粒子滤波的计算结果对井眼轨迹预测结果进行自适应校准,根据井眼轨迹预测结果,指导基于随钻数据的钻井作业,在自适应校准过程中,粒子滤波的相关参数可以进行自适应调整;井斜角预测结果如图6所示,由图6可知基于粒子滤波的井眼轨迹预测方法能取得较好的预测效果。In a specific scenario example, the wellbore trajectory prediction method based on particle filtering provided in this specification can be applied to obtain the wellbore trajectory parameters of the target wellbore. Among them, the preprocessed data obtained based on the adjacent well data is shown in Figure 2; the target well is divided into 4 well sections, and the prior Gaussian distribution of the well inclination state parameter is shown in Figure 3, θ i,prior (i=0,1,2,3,4) represents the prior Gaussian distribution of the well inclination state parameter; the prior Gaussian distribution of the azimuth state parameter is shown in Figure 4, φ i,prior (i=0,1,2,3,4) represents the prior Gaussian distribution of the azimuth state parameter; the adaptive calibration process is shown in Figure 5, the prior Gaussian distribution of the target well is obtained based on the adjacent well data, and the resampled particle group of the previous well section is used as the posterior distribution of the previous well section, and also as the prior distribution of the current well section to be measured. The wellbore trajectory prediction result is adaptively calibrated based on the calculation result of the particle filter. According to the wellbore trajectory prediction result, the drilling operation based on the drilling data is guided. In the adaptive calibration process, the relevant parameters of the particle filter can be adaptively adjusted; the wellbore inclination prediction result is shown in Figure 6. It can be seen from Figure 6 that the wellbore trajectory prediction method based on the particle filter can achieve better prediction effect.

虽然本说明书提供了如下述实施例或附图所示的方法操作步骤或装置结构,但基于常规或者无需创造性的劳动在所述方法或装置中可以包括更多或者部分合并后更少的操作步骤或模块单元。在逻辑性上不存在必要因果关系的步骤或结构中,这些步骤的执行顺序或装置的模块结构不限于本说明书实施例或附图所示的执行顺序或模块结构。所述的方法或模块结构的在实际中的装置、服务器或终端产品应用时,可以按照实施例或者附图所示的方法或模块结构进行顺序执行或者并行执行(例如并行处理器或者多线程处理的环境、甚至包括分布式处理、服务器集群的实施环境)。Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure is applied in an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiment or drawings (for example, a parallel processor or multi-threaded processing environment, or even a distributed processing, server cluster implementation environment).

基于上述基于粒子滤波的井眼轨迹预测方法,本说明书还提出一种基于粒子滤波的井眼轨迹预测装置的实施例。如图7所示,所述基于粒子滤波的井眼轨迹预测装置具体包括以下模块:Based on the above-mentioned wellbore trajectory prediction method based on particle filtering, this specification also proposes an embodiment of a wellbore trajectory prediction device based on particle filtering. As shown in FIG7 , the wellbore trajectory prediction device based on particle filtering specifically includes the following modules:

预处理模块701,用于获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;The preprocessing module 701 is used to obtain the data of the neighboring wells around the target well to be predicted, and obtain preprocessing data based on the data of the neighboring wells;

构建模块702,用于根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;A construction module 702 is used to construct the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation according to the preprocessed data;

粒子滤波模块703,用于基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。The particle filter module 703 is used to solve the well inclination observation equation and state equation, as well as the azimuth observation equation and state equation based on particle filtering to determine the wellbore trajectory parameters and wellbore trajectory parameter confidence intervals of the target well.

在一些实施例中,上述预处理模块701具体可以用于基于轨迹测量数据对井眼进行第一次分段,得到井眼第一分段结果;根据所述井眼第一分段结果和录井米数据,得到钻进数据;根据所述井眼第一分段结果和定向井施工记录数据,得到工具面角平均值;基于邻井参数数据对井眼进行第二次分段,得到井眼第二分段结果。In some embodiments, the above-mentioned preprocessing module 701 can be specifically used to perform a first segmentation of the wellbore based on trajectory measurement data to obtain a first segmentation result of the wellbore; obtain drilling data based on the first segmentation result of the wellbore and logging data; obtain an average tool face angle based on the first segmentation result of the wellbore and directional well construction record data; perform a second segmentation of the wellbore based on adjacent well parameter data to obtain a second segmentation result of the wellbore.

在一些实施例中,上述构建模块702具体可以用于:In some embodiments, the building block 702 may be specifically used for:

按照以下算式构建井斜角观测方程:The well inclination angle observation equation is constructed according to the following formula:

Incb,i=(θ0,i×cos(tfb,i)+θ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Incb,i-1 (17)Inc b, i = (θ 0, i × cos (tf b, i ) + θ 1, i × WOB b, i + θ 2, i ) × L b, i + θ 3, i × L h, i + θ 4,i +Inc b,i-1 (17)

式中,i和i-1表示待预测的井段的编号,b表示底部,Incb,i为待预测井段底部井斜角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Incb,i-1为待预测井段顶部井斜角,θ0,i、θ1,i、θ2,i、θ3,i、θ4,i为i井段的井斜角状态参数,其中,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,ii井段的为井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差。Wherein, i and i-1 represent the number of the well section to be predicted, b represents the bottom, Inc b,i is the well inclination angle at the bottom of the well section to be predicted, tf b,i is the average value of the tool face angle, WOB b,i is the average drilling pressure of sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Inc b,i-1 is the well inclination angle at the top of the well section to be predicted, θ 0,i , θ 1,i , θ 2,i , θ 3,i , θ 4,i are the well inclination state parameters of the i well section, wherein θ 0,i is the well inclination angle build-up rate correction coefficient of the i well section, θ 1,i is the well inclination angle drilling pressure influence coefficient of the i well section, θ 2,i is the well inclination angle build-up rate error of the i well section, θ 3,i is the slope change law coefficient of the well inclination angle composite drilling distance of the i well section, and θ 4,i is the well inclination angle system error of the i well section.

按照以下算式构建井斜角状态方程:The state equation of well inclination is constructed according to the following formula:

Figure BDA0003711977730000161
Figure BDA0003711977730000161

式中,w0,i-1、w1,i-1、w2,i-1、w3,i-1、w4,i-1为i-1井段的井斜角高斯白噪声,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,i为i井段的井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差,θ0,i-1为i-1井段的井斜角造斜率修正系数,θ1,i-1为i-1井段的井斜角钻压影响系数,θ2,i-1为i-1井段的井斜角造斜率误差,θ3,i-1为i-1井段的井斜角复合钻进距离斜率变化规律系数,θ4,i-1为i-1井段的井斜角系统误差。Wherein, w0 ,i-1 , w1,i-1 , w2,i-1 , w3,i-1 , w4,i-1 are the Gaussian white noise of the well inclination angle of the i-1 well section, θ0,i is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i is the well inclination angle build-up rate error of the i-1 well section, θ3,i is the slope variation law coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ4,i is the well inclination angle system error of the i-1 well section, θ0,i-1 is the well inclination angle build-up rate correction coefficient of the i-1 well section, θ1,i-1 is the well inclination angle drilling pressure influence coefficient of the i-1 well section, θ2,i-1 is the well inclination angle build-up rate error of the i-1 well section, θ 3, i-1 is the slope variation coefficient of the well inclination angle composite drilling distance of the i-1 well section, θ 4, i-1 is the systematic error of the well inclination angle of the i-1 well section.

按照以下算式构建方位角观测方程:Construct the azimuth observation equation according to the following formula:

Azib,i=(φ0,i×cos(tfb,i)+φ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Azib,i-1(19)Azi b,i =(φ 0,i ×cos(tf b,i )+φ 1,i ×WOB b,i2,i )×L b,i3,i ×L h,i + φ 4,i +Azi b,i-1 (19)

式中,i和i-1表示待预测的井段的编号,b表示底部,Azib,i为待预测井段底部方位角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Azib,i-1为待预测井段顶部方位角,φ0,i、φ1,i、φ2,i、φ3,i、φ1,i为i井段的方位角状态参数,其中,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差。where i and i-1 represent the numbers of the well sections to be predicted, b represents the bottom, Azi b,i is the azimuth of the bottom of the well section to be predicted, tf b,i is the average tool face angle, WOB b,i is the average drilling pressure during sliding drilling, L b,i is the sliding drilling distance, L h,i is the composite drilling distance, Azi b,i-1 is the azimuth of the top of the well section to be predicted, φ 0,i , φ 1,i , φ 2,i , φ 3,i , φ 1,i are the azimuth state parameters of the i well section, where φ 0,i is the azimuth buildup rate correction coefficient of the i well section, φ 1,i is the azimuth buildup rate influence coefficient of the i well section, φ 2,i is the azimuth buildup rate error of the i well section, φ 3,i is the azimuth composite drilling distance slope variation coefficient of the i well section, and φ 4,i is the azimuth system error of the i well section.

按照以下算式构建方位角状态方程:The azimuth state equation is constructed according to the following formula:

Figure BDA0003711977730000171
Figure BDA0003711977730000171

式中,n0,i-1、n1,i-1、n2,i-1、n3,i-1、n4,i-1为i-1井段的方位角高斯白噪声,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差,φ0,i-1为i-1井段的方位角造斜率修正系数,φ1,i-1为i-1井段的方位角钻压影响系数,φ2,i-1为i-1井段的方位角造斜率误差,φ3,i-1为i-1井段的方位角复合钻进距离斜率变化规律系数,φ4,i-1为i-1井段的方位角系统误差。Wherein, n0 ,i-1 , n1,i-1 , n2,i-1 , n3,i-1 , n4,i-1 are the azimuth Gaussian white noise of well section i-1, φ0,i is the azimuth buildup rate correction coefficient of well section i, φ1,i is the azimuth drilling pressure influence coefficient of well section i, φ2 ,i is the azimuth buildup rate error of well section i, φ3,i is the azimuth composite drilling distance slope variation law coefficient of well section i, φ4,i is the azimuth system error of well section i, φ0,i-1 is the azimuth buildup rate correction coefficient of well section i-1, φ1 ,i-1 is the azimuth drilling pressure influence coefficient of well section i-1, φ2,i-1 is the azimuth buildup rate error of well section i-1, φ 3, i-1 is the coefficient of slope variation of azimuth composite drilling distance of well section i-1, φ 4, i-1 is the azimuth system error of well section i-1.

在一些实施例中,上述粒子滤波模块703具体可以用于按照以下方式,通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,确定目标井中当前待预测井段的井眼轨迹参数和井眼轨迹参数置信区间:根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数;根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角;根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群;基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间。In some embodiments, the particle filter module 703 can be specifically used to solve the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation in the following manner, through particle filtering, to determine the borehole trajectory parameters and the confidence interval of the borehole trajectory parameters of the current well section to be predicted in the target well: according to the well inclination angle state equation and the azimuth angle state equation, the state parameters of the current well section to be predicted are obtained; according to the state parameters of the current well section to be predicted, the well inclination angle observation equation and the azimuth angle observation equation are solved to obtain the particle group after the weight normalization of the current well section to be predicted , the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted; according to the particle group after weight normalization of the current well section to be predicted, the resampled particle group of the current well section to be predicted is obtained; based on the resampled particle group of the current well section to be predicted, the bottom well inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted, the final well inclination angle of the bottom of the current well section to be predicted, the preset prediction confidence interval of the bottom well inclination angle of the current well section to be predicted, and the preset prediction confidence interval of the bottom azimuth angle of the current well section to be predicted are obtained.

本说明书实施例还提供了一种基于粒子滤波的井眼轨迹预测方法的计算机存储介质,所述计算机存储介质存储有计算机程序指令,在所述计算机程序指令被执行时实现:获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间。The embodiments of the present specification also provide a computer storage medium for a wellbore trajectory prediction method based on particle filtering, wherein the computer storage medium stores computer program instructions, which, when executed, implement the following: obtaining the data of neighboring wells around the target well to be predicted, and obtaining preprocessed data based on the neighboring well data; constructing the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation according to the preprocessed data; solving the well inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation based on particle filtering to determine the wellbore trajectory parameters of the target well and the wellbore trajectory parameter confidence interval.

在本实施例中,上述存储介质包括但不限于随机存取存储器(Random AccessMemory,RAM)、只读存储器(Read-Only Memory,ROM)、缓存(Cache)、硬盘(Hard DiskDrive,HDD)或者存储卡(Memory Card)。所述存储器可以用于存储计算机程序指令。网络通信单元可以是依照通信协议规定的标准设置的,用于进行网络连接通信的接口。In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.

虽然本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或客户端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent the only execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. The first, second, etc. words are used to represent the name, and do not represent any particular order.

本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构、类等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

通过以上的实施例的描述可知,本领域的技术人员可以清楚地了解到本说明书可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书的技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,移动终端,服务器,或者网络设备等)执行本说明书各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can essentially be embodied in the form of a software product, which can be stored in a storage medium such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.

虽然通过实施例描绘了本说明书,本领域普通技术人员知道,本说明书有许多变形和变化而不脱离本说明书的精神,希望所附的权利要求包括这些变形和变化而不脱离本说明书的精。Although the present specification is described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the present specification.

Claims (9)

1.一种基于粒子滤波的井眼轨迹预测方法,其特征在于,包括:1. A method for predicting borehole trajectory based on particle filter, characterized in that, comprising: 获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;Obtain the data of adjacent wells around the target well to be predicted, and obtain preprocessing data based on the data of adjacent wells; 根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;According to the preprocessed data, the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation are constructed; 基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间;Based on particle filtering, solve the inclination angle observation equation and state equation, as well as the azimuth angle observation equation and state equation to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well; 其中,基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间,包括:Among them, based on the particle filter, the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation are solved to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well, including: 按照以下方式,通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,确定目标井中当前待预测井段的井眼轨迹参数和井眼轨迹参数置信区间:The wellbore trajectory parameters and the confidence intervals of the wellbore trajectory parameters of the current well segment to be predicted in the target well are determined by solving the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation through particle filtering in the following manner: 根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数;According to the inclination angle state equation and the azimuth angle state equation, obtain the state parameters of the current well section to be predicted; 根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角;According to the state parameters of the current well section to be predicted, the inclination angle observation equation and the azimuth angle observation equation are solved to obtain the weighted normalized particle swarm of the current well section to be predicted, the bottom inclination angle of the current well section to be predicted, the current The bottom azimuth of the well section to be predicted; 根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群;According to the particle swarm normalized by the weight of the current well section to be predicted, the resampling particle swarm of the current well section to be predicted is obtained; 基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间。Based on the resampling particle swarm of the current to-be-predicted well section, the bottom inclination angle of the current to-be-predicted well section, and the bottom azimuth of the current to-be-predicted well section, obtain the bottom final inclination angle of the current to-be-predicted well section, the current to-be-predicted well section The final azimuth at the bottom of the section, the preset prediction confidence interval for the bottom inclination angle of the current well section to be predicted, and the preset prediction confidence interval for the bottom azimuth of the current well section to be predicted. 2.根据权利要求1所述的方法,其特征在于,基于邻井数据获得预处理数据,包括:2. The method according to claim 1, wherein obtaining preprocessing data based on offset well data comprises: 基于轨迹测量数据对目标井的井眼进行第一次分段,得到井眼第一分段结果;Based on the trajectory measurement data, the borehole of the target well is segmented for the first time, and the result of the first segment of the borehole is obtained; 根据所述井眼第一分段结果和录井米数据,得到钻进数据;Obtain the drilling data according to the first segmentation result of the wellbore and the mud logging meter data; 根据所述井眼第一分段结果和定向井施工记录数据,得到工具面角平均值;Obtaining the average value of the tool face angle according to the result of the first segmentation of the borehole and the construction record data of the directional well; 基于邻井参数数据对井眼进行第二次分段,得到井眼第二分段结果。Based on the parameter data of adjacent wells, the wellbore is segmented for the second time, and the result of the second segment of the wellbore is obtained. 3.根据权利要求1所述的方法,其特征在于,根据预处理数据,构建井斜角观测方程,包括:3. method according to claim 1, is characterized in that, according to preprocessing data, constructs well inclination angle observation equation, comprises: 按照以下算式构建井斜角观测方程:Construct the well inclination angle observation equation according to the following formula: Incb,i=(θ0,i×cos(tfb,i)+θ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Incb,i-1 Inc b,i = (θ 0,i ×cos(tf b,i )+θ 1,i ×WOB b,i2,i )×L b,i3,i ×L h,i + θ 4,i +Inc b,i-1 式中,i和i-1表示待预测的井段的编号,b表示底部,Incb,i为待预测井段底部井斜角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,Incb,i-1为待预测井段顶部井斜角,θ0,i、θ1,i、θ2,i、θ3,i、θ4,i为i井段的井斜角状态参数,其中,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,ii井段的为井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差。In the formula, i and i-1 represent the number of the well section to be predicted, b represents the bottom, Inc b, i is the inclination angle at the bottom of the well section to be predicted, tf b, i is the average tool face angle, WOB b, i is the average WOB of sliding drilling, L b, i is the sliding drilling distance, L h, i is the composite drilling distance, Inc b, i-1 is the inclination angle at the top of the well section to be predicted, θ 0, i , θ 1, i , θ 2, i , θ 3, i , θ 4, i are the well inclination angle state parameters of well section i, where θ 0, i is the inclination angle build-up rate correction coefficient of well section i, θ 1 , i is the well inclination angle WOB influence coefficient of i well section, θ 2, i is the well inclination angle build-up rate error of i well section, θ 3, i is the variation law of the well inclination compound drilling distance slope of i well section Coefficient, θ 4, i is the systematic error of inclination angle of well segment i. 4.根据权利要求1所述的方法,其特征在于,根据预处理数据,构建井斜角状态方程,包括:4. method according to claim 1, is characterized in that, according to preprocessing data, constructs well inclination angle state equation, comprises: 按照以下算式构建井斜角状态方程:Construct the well inclination angle state equation according to the following formula: θ0,i=θ0,i-1+w0,i-1 θ 0,i = θ 0,i-1 +w 0,i-1 θ1,i=θ1,i-1+w1,i-1 θ 1,i = θ 1,i-1 +w 1,i-1 θ2,i=θ2,i-1+w2,i-1 θ 2,i = θ 2,i-1 +w 2,i-1 θ3,i=θ3,i-1+w3,i-1 θ 3,i = θ 3,i-1 +w 3,i-1 θ4,i=θ4,i-1+w4,i-1 θ 4,i = θ 4,i-1 +w 4,i-1 式中,w0,i-1、w1,i-1、w2,i-1、w3,i-1、w4,i-1为i-1井段的井斜角高斯白噪声,θ0,i为i井段的井斜角造斜率修正系数,θ1,i为i井段的井斜角钻压影响系数,θ2,i为i井段的井斜角造斜率误差,θ3,i为i井段的井斜角复合钻进距离斜率变化规律系数,θ4,i为i井段的井斜角系统误差,θ0,i-1为i-1井段的井斜角造斜率修正系数,θ1,i-1为i-1井段的井斜角钻压影响系数,θ2,i-1为i-1井段的井斜角造斜率误差,θ3,i-1为i-1井段的井斜角复合钻进距离斜率变化规律系数,θ4,i-1为i-1井段的井斜角系统误差。In the formula, w 0, i-1 , w 1, i-1 , w 2, i-1 , w 3, i-1, w 4, i-1 are Gaussian white noise of inclination angle of well section i-1 , θ 0, i is the correction coefficient of inclination angle build-up rate of well section i, θ 1, i is the influence coefficient of well inclination angle on bit of well section i, θ 2, i is the error of inclination angle build-up rate of well section i , θ 3, i is the slope variation coefficient of the well inclination composite drilling distance of well section i, θ 4, i is the systematic error of well inclination angle of well section i, θ 0, i-1 is the well inclination angle of well section i-1 Well inclination angle build-up rate correction coefficient, θ 1, i-1 is the influence coefficient of well inclination angle on WOB of i-1 well section, θ 2, i-1 is the well inclination angle build-up rate error of i-1 well section, θ 3. i-1 is the slope variation coefficient of the well inclination composite drilling distance of the i-1 well section, θ 4, i-1 is the well inclination angle systematic error of the i-1 well section. 5.根据权利要求1所述的方法,其特征在于,根据预处理数据,构建方位角观测方程,包括:5. method according to claim 1, is characterized in that, according to preprocessing data, constructs azimuth angle observation equation, comprises: 按照以下算式构建方位角观测方程:Construct the azimuth observation equation according to the following formula: Azib,i=(φ0,i×cos(tfb,i)+φ1,i×WOBb,i2,i)×Lb,i3,i×Lh,i4,i+Azib,i-1 Azi b,i =(φ 0,i ×cos(tf b,i )+φ 1,i ×WOB b,i2,i )×L b,i3,i ×L h,i + φ 4,i +Azi b,i-1 式中,i和i-1表示待预测的井段的编号,b表示底部,Azib,i为待预测井段底部方位角,tfb,i为工具面角平均值,WOBb,i为滑动钻进平均钻压,Lb,i为滑动钻进距离,Lh,i为复合钻进距离,azib,i-1为待预测井段顶部方位角,φ0,i、φ1,i、φ2,i、φ3,i、φ1,i为i井段的方位角状态参数,其中,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差。In the formula, i and i-1 represent the number of the well segment to be predicted, b represents the bottom, Azi b, i is the azimuth angle of the bottom of the well segment to be predicted, tf b, i is the average tool face angle, WOB b, i is Average WOB of sliding drilling, L b, i is the sliding drilling distance, L h, i is the compound drilling distance, azi b, i-1 is the top azimuth of the well section to be predicted, φ 0, i , φ 1, i , φ 2,i , φ 3,i , φ 1,i are the azimuth angle state parameters of well section i, where φ 0,i is the azimuth build-up rate correction coefficient of well section i, and φ 1,i is i The azimuth WOB influence coefficient of well section, φ 2, i is the azimuth build-up rate error of well section i, φ 3, i is the azimuth composite drilling distance slope variation coefficient of well section i, φ 4, i is Systematic error of the azimuth angle of well section i. 6.根据权利要求1所述的方法,其特征在于,根据预处理数据,构建方位角状态方程,包括:6. method according to claim 1, is characterized in that, according to preprocessing data, builds azimuth angle state equation, comprises: 按照以下算式构建方位角状态方程:Construct the azimuth angle state equation according to the following formula: φ0,i=φ0,i-1+n0,i-1 φ 0,i = φ 0,i-1 +n 0,i-1 φ1,i=φ1,i-1+n1,i-1 φ 1,i = φ 1,i-1 +n 1,i-1 φ2,i=φ2,i-1+n2,i-1 φ 2,i = φ 2,i-1 +n 2,i-1 φ3,i=φ3,i-1+n3,i-1 φ 3,i = φ 3,i-1 +n 3,i-1 φ4,i=φ4,i-1+n4,i-1 φ 4,i = φ 4,i-1 +n 4,i-1 式中,n0,i-1、n1,i-1、n2,i-1、n3,i-1、n4,i-1为i-1井段的方位角高斯白噪声,φ0,i为i井段的方位角造斜率修正系数,φ1,i为i井段的方位角钻压影响系数,φ2,i为i井段的方位角造斜率误差,φ3,i为i井段的方位角复合钻进距离斜率变化规律系数,φ4,i为i井段的方位角系统误差,φ0,i-1为i-1井段的方位角造斜率修正系数,φ1,i-1为i-1井段的方位角钻压影响系数,φ2,i-1为i-1井段的方位角造斜率误差,φ3,i-1为i-1井段的方位角复合钻进距离斜率变化规律系数,φ4,i-1为i-1井段的方位角系统误差。In the formula, n 0, i-1 , n 1, i-1 , n 2, i-1, n 3, i-1, n 4, i-1 is the azimuth Gaussian white noise of well section i-1, φ 0, i is the azimuth build-up rate correction coefficient of well section i, φ 1, i is the azimuth WOB influence coefficient of well section i, φ 2, i is the azimuth build-up rate error of well section i, φ 3, i is the azimuth compound drilling distance slope variation coefficient of well section i, φ 4, i is the azimuth systematic error of well section i, φ 0, i-1 is the azimuth build-up rate correction coefficient of well section i-1 , φ 1, i-1 is the azimuth WOB influence coefficient of well section i-1, φ 2, i-1 is the azimuth build-up rate error of well section i-1, φ 3, i-1 is i-1 The azimuth composite drilling distance slope variation coefficient of the well section, φ 4, i-1 is the azimuth system error of the i-1 well section. 7.根据权利要求1所述的方法,其特征在于,根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数,包括:7. method according to claim 1, is characterized in that, according to inclination angle state equation and azimuth angle state equation, obtain the state parameter of current well section to be predicted, comprising: 判断当前待预测井段是否为第一个井段;Judging whether the current well segment to be predicted is the first well segment; 在当前待预测井段是第一个井段的情况下,依据预处理数据获得待预测目标井的先验高斯分布,并基于先验高斯分布生成初始粒子群;依据初始粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数;In the case that the current well segment to be predicted is the first well segment, the prior Gaussian distribution of the target well to be predicted is obtained according to the preprocessing data, and the initial particle swarm is generated based on the prior Gaussian distribution; the well inclination is calculated according to the initial particle swarm The state equation and the azimuth angle state equation are used to obtain the current state parameters of the well segment to be predicted; 在当前待预测井段不是第一个井段的情况下,获取前一个井段重采样后的粒子群,依据前一个井段重采样后的粒子群求解井斜角状态方程以及方位角状态方程,得到当前待预测井段的状态参数。When the current well section to be predicted is not the first well section, obtain the resampled particle swarm of the previous well section, and solve the inclination angle state equation and azimuth state equation according to the resampled particle swarm of the previous well section , to get the state parameters of the current well section to be predicted. 8.根据权利要求1所述的方法,其特征在于,根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,包括:8. The method according to claim 1, wherein, according to the state parameters of the current well section to be predicted, the well inclination observation equation and the azimuth observation equation are solved to obtain the weight normalization of the current well section to be predicted Particle swarm, the bottom inclination angle of the current well section to be predicted, and the bottom azimuth angle of the current well section to be predicted, including: 依据当前待预测井段的状态参数,求解井斜角观测方程和方位角观测方程,得到当前待预测的井段底部井斜角和当前待预测井段的底部方位角;According to the state parameters of the current well section to be predicted, the inclination angle observation equation and the azimuth angle observation equation are solved to obtain the bottom well inclination angle of the current well section to be predicted and the bottom azimuth angle of the current well section to be predicted; 依据当前待预测井段的底部井斜角和当前待预测井段的底部方位角,得到当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差;According to the bottom inclination angle of the current well section to be predicted and the bottom azimuth angle of the current well section to be predicted, the absolute error of the inclination angle of the current well section to be predicted and the absolute error of the azimuth angle of the current well section to be predicted are obtained; 根据当前待预测井段的井斜角绝对误差和当前待预测井段的方位角绝对误差重新计算当前待预测井段的粒子群中每一个粒子的权重,获得当前待预测井段的重新赋权的粒子群;Recalculate the weight of each particle in the particle swarm of the current well section to be predicted according to the absolute error of the inclination angle of the current well section to be predicted and the absolute error of the azimuth angle of the current well section to be predicted, and obtain the reweighting of the current well section to be predicted the particle swarm; 依据当前待预测井段的重新赋权的粒子群,获得当前待预测井段的权重归一化后的粒子群。According to the re-weighted particle swarm of the current well section to be predicted, the weighted normalized particle swarm of the current well section to be predicted is obtained. 9.一种基于粒子滤波的井眼轨迹预测装置,其特征在于,包括:9. A particle filter-based wellbore trajectory prediction device, characterized in that it comprises: 预处理模块,用于获取待预测目标井周边的邻井数据,并基于邻井数据获得预处理数据;The preprocessing module is used to obtain the adjacent well data around the target well to be predicted, and obtain preprocessed data based on the adjacent well data; 构建模块,用于根据预处理数据,构建井斜角观测方程和状态方程,以及方位角观测方程和状态方程;The construction module is used to construct the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation according to the preprocessed data; 粒子滤波模块,用于基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间;The particle filter module is used to solve the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation based on the particle filter, so as to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well; 其中,基于粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,以确定目标井的井眼轨迹参数和井眼轨迹参数置信区间,包括:Among them, based on the particle filter, the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation are solved to determine the wellbore trajectory parameters and the confidence interval of the wellbore trajectory parameters of the target well, including: 按照以下方式,通过粒子滤波,求解井斜角观测方程和状态方程,以及方位角观测方程和状态方程,确定目标井中当前待预测井段的井眼轨迹参数和井眼轨迹参数置信区间:The wellbore trajectory parameters and the confidence intervals of the wellbore trajectory parameters of the current well segment to be predicted in the target well are determined by solving the inclination angle observation equation and the state equation, as well as the azimuth angle observation equation and the state equation through particle filtering in the following manner: 根据井斜角状态方程以及方位角状态方程,求取当前待预测井段的状态参数;According to the inclination angle state equation and the azimuth angle state equation, obtain the state parameters of the current well section to be predicted; 根据当前待预测井段的状态参数,求解井斜角观测方程以及方位角观测方程,得到当前待预测井段的权重归一化后的粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角;According to the state parameters of the current well section to be predicted, the inclination angle observation equation and the azimuth angle observation equation are solved to obtain the weighted normalized particle swarm of the current well section to be predicted, the bottom inclination angle of the current well section to be predicted, the current The bottom azimuth of the well section to be predicted; 根据当前待预测井段的权重归一化后的粒子群,得到当前待预测井段的重采样粒子群;According to the particle swarm normalized by the weight of the current well section to be predicted, the resampling particle swarm of the current well section to be predicted is obtained; 基于当前待预测井段的重采样粒子群、当前待预测井段的底部井斜角、当前待预测井段的底部方位角,获得当前待预测井段的底部最终井斜角、当前待预测井段的底部最终方位角、当前待预测井段底部井斜角预设的预测置信区间、当前待预测井段底部方位角预设的预测置信区间。Based on the resampling particle swarm of the current to-be-predicted well section, the bottom inclination angle of the current to-be-predicted well section, and the bottom azimuth of the current to-be-predicted well section, obtain the bottom final inclination angle of the current to-be-predicted well section, the current to-be-predicted well section The final azimuth at the bottom of the section, the preset prediction confidence interval for the bottom inclination angle of the current well section to be predicted, and the preset prediction confidence interval for the bottom azimuth of the current well section to be predicted.
CN202210723052.6A 2022-06-24 2022-06-24 A Particle Filter-Based Wellbore Trajectory Prediction Method and Device Active CN115095318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210723052.6A CN115095318B (en) 2022-06-24 2022-06-24 A Particle Filter-Based Wellbore Trajectory Prediction Method and Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210723052.6A CN115095318B (en) 2022-06-24 2022-06-24 A Particle Filter-Based Wellbore Trajectory Prediction Method and Device

Publications (2)

Publication Number Publication Date
CN115095318A CN115095318A (en) 2022-09-23
CN115095318B true CN115095318B (en) 2023-05-23

Family

ID=83292309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210723052.6A Active CN115095318B (en) 2022-06-24 2022-06-24 A Particle Filter-Based Wellbore Trajectory Prediction Method and Device

Country Status (1)

Country Link
CN (1) CN115095318B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3612015B2 (en) * 2000-10-25 2005-01-19 日本電信電話株式会社 Method and apparatus for controlling direction of buried pipe propulsion machine
CA2636564C (en) * 2008-06-25 2017-05-02 Uti Limited Partnership In-drilling alignment
US8095317B2 (en) * 2008-10-22 2012-01-10 Gyrodata, Incorporated Downhole surveying utilizing multiple measurements
US7950473B2 (en) * 2008-11-24 2011-05-31 Smith International, Inc. Non-azimuthal and azimuthal formation evaluation measurement in a slowly rotating housing
CN109915018B (en) * 2017-12-07 2020-09-04 中国石油化工股份有限公司华北油气分公司石油工程技术研究院 Method for determining tool face angle in three-dimensional borehole trajectory control
US20190257189A1 (en) * 2018-02-19 2019-08-22 Gyrodata, Incorporated Determining Direct Hit or Unintentional Crossing Probabilities for Wellbores
CN111119855A (en) * 2018-11-01 2020-05-08 中国石油化工股份有限公司 Borehole trajectory prediction method based on formation and drilling tool characteristics

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于NPSO的三维复杂井眼轨迹控制转矩的优选;沙林秀;潘仲奇;;石油机械(第10期);9-14页 *
基于粒子群算法的井眼轨迹优化研究;丁华,王秀坤,孙焘;大连理工大学学报(第03期);141-144页 *
用灰色动态GM(1,1)模型预测定向井井眼轨迹;王越之,王用军;石油天然气学报(第01期);54-57+11页 *
空间圆弧轨迹的解析描述技术;刘修善;王超;;石油学报(第01期);138-144页 *

Also Published As

Publication number Publication date
CN115095318A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
EP2951720B1 (en) Production analysis and/or forecasting methods, apparatus, and systems
US20140310071A1 (en) Physically-based financial analysis and/or forecasting methods, apparatus, and systems
AU2013399602B2 (en) Creating virtual production logging tool profiles for improved history matching
NO20181025A1 (en) Machine learning for production prediction
US11125017B2 (en) Directional driller quality reporting system and method
US10934813B2 (en) Method to optimize oilfield operations based on large and complex data sets
CN107995983B (en) Risk assessment for drilling and completion operations
CN110268347A (en) The best storage of the load data of life prediction for the equipment used in well operations
US20080133442A1 (en) Method, apparatus, and product for real-time predictive time-to-completion for variable configure-to-order manufacturing
CN115095318B (en) A Particle Filter-Based Wellbore Trajectory Prediction Method and Device
US7702699B2 (en) Dynamic data stream histograms for large ranges
Baumgartner et al. Using Big Data to Study the Impact of Wellbore Tortuosity on Drilling, Completions, and Production Performance
CN112580885A (en) Method, device and equipment for predicting accessory qualification rate and storage medium
CN111639468A (en) Method and device for predicting surface sedimentation value and computer readable storage medium
CN117077060A (en) Shale gas well lost circulation early warning method and device, electronic equipment and storage medium
EP2971502A2 (en) Physically-based analysis apparatus and related methods
US12154259B2 (en) Process of providing an interpreted borehole image
CN118916730B (en) Stratum structure identification method and system based on K-means unsupervised learning
CN119444421A (en) Training method and device for data processing model
EP3097523A1 (en) Model customization by parameter adjustment
WO2025068736A1 (en) Method and system for predicting well production rate
CN119204731A (en) A data asset value assessment and analysis method and system

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