Adaptive system and method for continuous surveying while drilling

The adaptive system addresses the challenge of dynamic wellbore measurement by using an adaptive average with a dynamically-evaluated lag time to improve the accuracy and reliability of wellbore surveying, reducing latency and uncertainty in MWD systems.

WO2026246544A1PCT designated stage Publication Date: 2026-11-26GATECLIFF LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/US2026/028984
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2026-05-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing measurement while drilling (MWD) systems face challenges in accurately determining wellbore inclination and azimuth under dynamic conditions, leading to increased drilling risks, operational inefficiencies, and high costs due to the reliance on static measurements and inadequate handling of noise and lag times in data averaging.

Method used

An adaptive system that continuously acquires and processes accelerometer and magnetic field measurements using an adaptive average with a dynamically-evaluated lag time, weighting current data more heavily when noise is low and less heavily when noise is high, to improve the accuracy and reliability of wellbore survey results.

Benefits of technology

The system provides continuous wellbore surveying with reduced latency and uncertainty, enabling more accurate determination of wellbore position and direction, reducing drilling risks, and lowering operational costs by minimizing time delays and data noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US2026028984_26112026_PF_FP_ABST
    Figure US2026028984_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Systems and methods for surveying a wellbore including drill string configured to drill the wellbore and having bottom hole assembly with gravity and magnetic sensors. Transverse gravity measurements are acquired while bottom hole assembly is rotating; data variability measure is determined with dependency on averaged transverse product magnitude. Transverse gravity measurements and transverse magnetic measurements are processed to determine adaptively-averaged transverse cross product and dot product, which depend on the data variability measure and are used to evaluate wellbore survey with dependency on adaptively-averaged transverse cross product and dot product. Wellbore survey result is selected from: i) inclination, ii) azimuth, iii) gravity magnitude, iv) magnetic dip, v) magnetic field magnitude. Wellbore survey result is used to adjust one or more of: i) position of wellbore; ii) drilling direction; iii) wellbore curvature; iv) drilling speed; v) circulation rate, vi) well path; and vii) drill string angular velocity.
Need to check novelty before this filing date? Find Prior Art

Description

ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGINVENTOR: SAMUEL MARK HAUGLANDReno, NevadaAPPLICANT: Gatecliff LLCRelated Application

[0001] This application claims benefit of and priority from U. S. Provisional Patent Application No.63 / 809,301, filed May 20, 2025, pending.Field

[0002] This invention generally relates to measurement while drilling “MWD” methods and more particularly to a system and method for drilling a wellbore using continuously-acquired subterranean wellbore inclination and / or wellbore azimuth measurements.Background

[0003] In conventional measurement while drilling, " MWD", wellbore inclination and wellbore azimuth are referred to as “inclination” and “azimuth” measurements. In this document, the terms inclination and azimuth will refer to a wellbore inclination and wellbore azimuth measurement respectively. Typically, inclination and azimuth are determined at a discrete number of longitudinal points along an axis of a wellbore by a device mounted on a drill collar. A collection of inclinations and azimuths is assembled into a wellbore survey and then used in conjunction with a set of distance (depth) measurements (typically along an axis of the well) to approximate a three-dimensional well trajectory. A well trajectory can be referred to as a well path. The use of accelerometers, magnetometers, and gyroscopes are well known in such conventional wellbore surveying techniques for measuring inclination and / or azimuth. For example, prior art inclinations are derived from accelerometer measurements sensitive to the earth's gravitational field, independent of magnetometer or gyroscope measurements. Azimuth is most commonly derived from a combination of accelerometer and magnetometer measurements, the magnetometer measurements sensitive to the earth’s magnetic field.

[0004] A static inclination and azimuth measurement is made when drilling, drill string rotation, and circulation of drilling fluid are not happening. Most commonly, a static inclination and azimuth are acquired when drilling is temporarily suspended to insert an additional length of drill pipe to facilitate lengthening the well. A dynamic inclination and azimuth measurement is generally made when drilling, drill string rotation, or circulation of wellbore fluid is also happening. Static measurementsADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGare often sufficient to obtain a first approximation to the actual well path. It is desirable to measure the wellbore inclination and wellbore azimuth under dynamic conditions including during drill string rotation, circulation of drilling fluid, or continuously while drilling as such measurements provide: 1) a more timely indication of the drilling direction and wellbore position; 2) a means for more accurately determining the location of the wellbore; 3) an improved indication of the local curvature (tortuosity) of the wellbore; 4) reduced risk of the drill string becoming stuck as a result of prolonged static conditions; and, 5) lower drilling costs due to time savings. Dynamic measurements are valuable during drilling in both rotary and sliding modes of drilling.

[0005] Methods for making dynamic inclination and azimuth measurements are known and have been used in the prior art. There remains a need to improve the accuracy and reliability of dynamic measurements. This is significantly due to increased requirements for timely and accurate wellbore direction, position, quality, reduced drilling risks, and the high cost of drilling rig time. Some drivers behind the increased requirements are: 1) faster drilling speeds enabled by better drilling technology and needs to reduce drilling costs; 2) more precise identification of the location of drilling targets enabled by improved geophysical technology; 3) the need to more accurately space wells apart in an oilfield to improve reservoir drainage or hydraulic fracturing outcomes; 4) improved ability to control the direction of the drill bit; and, 5) reduced operational risks associated with loss of wells and / or bottom hole assemblies.

[0006] US Patent No. 12,565,832 evaluates a wellbore survey result using an averaged transverse product magnitude from a selection of data corresponding to a gravity magnitude close to a predetermined value (a prior) for the gravity magnitude. Data corresponding to an unfavorable comparison with the prior are ignored. As a result, information indicative of the state of the wellbore surveying system is lost. A recent practical implementation requires the underlying rotational invariants to be telemetered to a surface system where they are processed using a complicated error model involving data from multiple depths along the wellbore. Both the telemetry requirement and the requirement for joint processing of data acquired at multiple depths limit the scope of commercial use for this wellbore surveying system. Another challenge with using a prior in the manner advocated in US Patent No. 12,565,832 is the prior, in general, has different sensitivities to each averaged invariant than does an inclination or azimuth. Thus, a set of seemingly acceptable averaged invariants may not lead to an acceptable wellbore survey result, and data that can be valuable for determining the wellbore survey result is discarded. This problem is especially severe in near-vertical and nearhorizontal wells. For a near- vertical well, the gravity magnitude is dominated by an axial gravity measurement. However, an inclination or azimuth are nearly independent of the axial gravity measurement. When a well is nearly horizontal, transverse measurements determine the gravity magnitude, but the inclination and azimuth are much more sensitive to axial measurements.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSimile; Mark HaugMad,!865 Thoasaad Acres A. Ay. Reno. NV 8952! CoriddeMia!:sa eMr -g •

[0007] US Patent No. 12,378,873 uses an averaged transverse product magnitude to determine a wellbore survey result. Given variable drilling conditions, an average can be very noisy but another soon thereafter can be much less so. Therefore, an adaptive system including a data variability measure with a dependency on an averaged transverse product magnitude is useful. For example, an adaptive average can be set up so that a current input is weighted relatively heavily when the data variability measure is small. Otherwise, past data are weighted more heavily. A system configured accordingly adapts to the changing drilling conditions.

[0008] Priest in US Patent No. 9,804,288 uses an extended Kalman filter for correcting sensor measurements which involves evaluating gravity magnitudes and magnetic dip values using prior art formulas involving the squares of transverse gravity measurements. Time lags are not discussed. Given that wellbore survey results including a wellbore inclination and an azimuth are required in order to determine the corrections, the teachings therein appear to be useful for calibrating a sensor but not for adaptively evaluating a wellbore survey result.

[0009] US Patent No. 11,692,432 addresses relatively small time lags (delays) imposed by the measurement system so that data are suitable for input to what is therein referred to as the “drilling mode survey module”. Included in the drilling mode survey module is a Kalman filter and an averaging module. No reference to a time lag imposed by the Kalman filter is included. The averaging module describes forming an average of transverse gravity measurements that goes to zero when the measurement device is rotating; so, it is not clear how the average can be used to evaluate a wellbore survey result during a rotary drilling operation. However, a means for evaluating standard deviations associated with the axial and transverse gravity measurement is specified. In specifying the Averaging module, the US Patent No. 11,692,432 states, “It will be understood that further corrections can be implemented to adjust for any time delays (e.g., if the time period is known at the surface).” However, the device does not evaluate a time delay caused by the Kalman filter or averaging module.

[0010] The standard deviations associated with the transverse accelerometer measurements in US Patent No. 11,692,432 govern the amount of averaging done to the data and therefore the time lag associated with a result used to determine a wellbore survey. Thus, there is a need for an adaptively-determined time lag to associate with a wellbore survey result using an averaged transverse product magnitude.Brief Description of the Drawings

[0011] FIG. 1 shows a bottom hole assembly (BHA) connected to a drilling rig which can be used in practicing this invention.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential yyMA A;

[0012] FIG. 2 depicts a portion of a BHA with a three-axis magnetometer and a three-axis accelerometer suitable for use in many embodiments of this invention. Also shown is an optional non-transitory computer-readable medium and processor.

[0013] FIG. 3 provides a Flow chart for an embodiment including adaptive averages of rotational invariants and a time variable.

[0014] FIG. 4 provides a Flow chart for an embodiment using a standard deviation for a wellbore survey result as a data variability measure. This is a special case for FIG. 2 with more detail given in blocks involving determining the data variability measure and the weight.

[0015] FIG 5 provides a chart that is a rule relating the weight to a ratio of a target output standard deviation to an input standard deviation. The chart and the ratio determine the weight.

[0016] FIG 6 shows Numerical values for the chart in FIG. 4.

[0017] FIG 7 provides a Flow chart for an embodiment that does not use a processing window.

[0018] FIG 8 provides a Flow chart for best mode embodiment including a data varaibility measure evaluated based on a set of pre -averaged rotational invariants and an adaptive average with a dependency on the data varaibility measure.

[0019] FIG 9 provides a Flow chart for an embodiment including pre-averaging and priors for a gravity magnitude, a magnetic field magnitude, and a magnetic dip.Summary

[0020] A number of methods and systems are presented that are suitable for evaluating a dynamic wellbore azimuth and inclination measurement continuously based on measurements acquired by a downhole tool capable of acquiring accelerometer (gravity) and magnetic field measurements representative of the earth’s gravitational and magnetic fields. These methods and systems are also applicable for evaluating static inclination and azimuth measurements. The disclosed embodiments provide an improvement over the prior art, addressing many of the above noted shortcomings of the prior art.Detailed Description

[0021] Wellbore survey results are based on an averaged set of rotationally invariant quantities. The amount of data used in the average increases with the amount of noise associated with the data. The averaging process introduces a lag time in a wellbore survey result that increases with the amount of noise. More averaging is typically required for the accelerometer than the magnetometer data. Thus, itADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lMis desirable: for a wellbore survey result determined while drilling to be accurate, to have a minimal lag time, and to be associated with a representative time value.

[0022] No prior art system that evaluates a wellbore survey result while drilling, provides a dynamically-evaluated lag time. Some systems even appear to introduce multiple lag times given that the accelerometer data are averaged more than the corresponding magnetometer data. A wellbore survey result depending on both magnetometer and accelerometer data will have an error if it is determined from inputs with different lags and the wellbore orientation changed during the differential lag time. This can be a significant effect when a steering apparatus is used to change the direction of the well or if subsurface conditions cause the orientation of the wellbore to change rapidly, in an unwanted fashion. Wellbore inclination or azimuth errors of several degrees can result from lagged data being associated with unlagged data or if an otherwise correct result is associated with a current time value instead of a lagged time.

[0023] Even if all the data that determine a wellbore survey result have been averaged consistently so that only one lag time applies to the whole data set, it is still important to know the lag time so that the wellbore survey result can be associated with a correct depth-value along the well or a correct time value before it is applied to control a drilling parameter or determine the position of the wellbore. Prior art systems lack a means for determining a dynamically -evaluated lag time applicable to each wellbore survey result produced while drilling. Some embodiments of this invention include: 1) a time variable is averaged consistently with the accelerometer and magnetometer data; and, 2) the accelerometer and magnetometer data are averaged consistently with each other. Such an averaged time-variable is an accurate lag time that can be associated with a wellbore survey result and the inputs that determine it.

[0024] A second object of this invention is to provide continuous wellbore survey results more accurately, with a lower lag time and with a lower uncertainty than prior art systems. An adaptive average is set up to weight current data more heavily in an average when noise is low and less heavily in the average when there is more noise. In the best mode for practicing this invention a data variability measure with a dependency on an averaged transverse product magnitude is used in an adaptive average, the adaptive average evaluated using a recursion. Examples of such data variability measures include: 1) a standard deviation for an averaged transverse product magnitude; 2) a standard deviation for a wellbore survey result determined using an averaged transverse product magnitude; or 3) a standard deviation for a full-vector invariant such as a magnetic dip or a gravity magnitude determined using an averaged transverse product magnitude.

[0025] Shock and vibration noise averages out of calculations involving a gravity magnitude or a transverse gravity magnitude when either are evaluated using an averaged transverse productADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidentialmagnitude. Errors due to angular velocity or angular acceleration for an x or v accelerometer measurement caused by the accelerometer being displaced from the axis of rotation are negligible when using an averaged transverse product magnitude. This enables continuous wellbore surveying systems to be designed with an accelerometer displaced from the axis of rotation within a bottom hole assembly without requiring a correction for being displaced from the axis of rotation.

[0026] In some embodiments of this invention, an average can be omitted from a result calculation. For example, a time-average of invariant quantities with numerous off-scale accelerometer readings can be omitted from a wellbore survey result calculation. It will be understood by one skilled in the art that omitting off-scale data acquired by a measurement system is distinct from rejecting an otherwise valid measurement that merely includes a sizeable error.

[0027] In some embodiments of this invention, a value for a gravity magnitude, magnetic dip, or magnetic field magnitude is input as a prior (a know parameter) and used to constrain a wellbore survey result with a dependency on the prior. This leads to superior performance a system which compares a gravity magnitude, magnetic dip, or magnetic field magnitude to an expected value and then ignores the underlying data when the comparison is not favorable.Embodiment an Adaptive Average of a Rotational Invariant and a Time Variable

[0028] FIG. 1 depicts a drilling rig 10 suitable for using various method embodiments disclosed herein. A semisubmersible drilling platform 12 is positioned over an oil or gas formation disposed below the sea floor 16. A subsea conduit 18 extends from deck 20 of platform 12 to a wellhead installation 22. The platform can include a derrick and a hoisting apparatus for raising and lowering a drill string 30, which, as shown, extends into wellbore 40 and includes a drill bit 32 and a rotary steerable tool 60. Surface telemetry system 13 receives data from a subsurface telemetry system which can be connected to rotary steerable tool 60. Surface telemetry system 13 can include a non-transitory computer-readable medium 14 storing instructions that when executed by processor 15 can generate a wellbore survey result or quality control value used to control the drilling operation. Such information can be used at the surface by a driller viewing display 16 to control the drilling operation.

[0029] Drill string 30 can further include a downhole drilling motor, a downhole telemetry system, and one or more MWD or LWD tools including various sensors for sensing downhole characteristics of the wellbore and the surrounding formation. The disclosed embodiments are not limited in these regards.

[0030] It will be understood by those of ordinary skill in the art that the deployment illustrated on FIG. 1 is merely an example. It will be further understood that disclosed embodiments are not limited to use with a semisubmersible platform 12 as illustrated on FIG. 1. The disclosed embodiments areADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidentialequally well suited for use with any kind of subterranean drilling operation, either offshore or onshore. This invention is also practicable with any mechanism for steering or otherwise controlling the drilling operation. Rotary steerable tool 60 is only one example of a device used to control a drilling operation or guide the bit during drilling. Other devices for this purpose such as a bent sub are known to those skilled in the art. Such devices alter a well path, a drilling direction, or a curvature of a wellbore. Drilling practices also control the drilling operation and are often adjusted in response to a wellbore survey result. Examples of things controllable from the surface is a circulation rate for the fluid ciruclating through the wellbore, a drill string angular velocity (a string rotation rate), a rate of penetration (a drilling speed), and the amount of weight on the drill bit.

[0031] Non-transitory computer readable medium 14, processor 15, and display 16, if present, ordinarily are at the rig. However, a data received by surface telemetry system 13 can be sent via satellite link or other means known to those skilled in the art to a remote location that includes non-transitory computer readable medium 14, processor 15, and display 16.

[0032] FIG. 2 depicts a lower-most portion of a bottom hole assembly (BHA) connected to drill string 30, the BHA housing a three-axis magnetometer 65 and a three-axis accelerometer 67. In the depicted embodiment, the sensors 65 and 67 are enclosed in a sensor housing 62, and they can be deployed as close to the drill bit 32 as possible. This invention optionally includes non-transitory computer-readable medium 61 storing instructions that can be executed by processor 62 to produce a result for directly controlling the drilling operation or indirectly via subsurface telemetry system 63. When used, subsurface telemetry system 63 telemeters data to surface telemetry system 13 for display and use in control of the drilling operation. Non-tranitory computer-readable medium 61 can also store wellbore survey results, averaged rotational invariants, and associated quality control values for subsequent use or reprocessing after the BHA is removed from the wellbore and any such stored data downloaded and written to non-transitory computer-readable medium 14.

[0033] This invention can be practiced with any placement of sensors 65 and 67 in a drill string, the drill string typically inserted into a wellbore and used to drill the wellbore. FIG 1 shows a configuration including two MWD sensors, one below drilling tool 80 and one above it. A practical BHA can have one or more MWD sensors optionally including a non-transitory computer-readable medium 61, processor 62, and subsurface telemetry system 63.

[0034] FIG. 3 is a flow chart showing the steps in this embodiment. The drill string is inserted in a wellbore. During data acquisition, the BHA rotates, drills ahead in slide or rotary mode, circulates fluid through the wellbore, or is temporarily static. Magnetometer and accelerometer data are acquired. Simple averages and standard deviations for rotational invariants are evaluated using data acquired over a current processing window and a time value is assigned to them. A value for a dataADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lMvariability measure with a dependency on an averaged transverse product magnitude is determined. The value for the data variability measure is then used to evaluate a weight for the rotational invariants and the time value in an adaptive average. A wellbore survey result is determined using the adaptive average of the rotational invariants. The wellbore survey result can be optionally used to determine or adjust a drilling parameter or wellbore position. The adaptive average of the time value can be used in conjunction with the wellbore survey result. The term adaptive average refers to an adaptive method for evaluating an average wherein the data included in the average are weighted or otherwise honored in evaluating a wellbore survey result according to a data variability measure.

[0035] , Advantages of using simple averages of rotational invariants as inputs to the adaptive average include: 1) a sequence of simple averages tends to be normally distributed regardless of the distribution of the data that determined it; 2) numerically-intensive calculations such as Kalman filtering or determining a data variability measure for a wellbore survey result or a full-vector invariant are performed less frequently; 3) a simple average does not require an initial value to be assigned to the average; 4) simple averages of rotationally invariant quantities comprise a suitable set of initial values for a recursion advantageously set up to evaluate the adaptive average; and, 5) averages and / or their standard deviations can be written to memory and used for reprocessing or quality control after being downloaded at the surface more easily than a full set of individual samples of data; and, 6) improved convergence of adaptive averages evaluated using a recursion such as averages evaluated using an exponential moving average, an ARMA model, a Kalman filter, a Weiner filter, a recursive least-squares filter, or other means for estimating averages of noisy data.

[0036] In this embodiment, a 10.24 second processing window is used. The gravity and magnetic sensors measure Gx. Gy, Gz, Hx, Hy, and Hzand are sampled approximately synchronously every ts= 10 milliseconds (sample rate 100 Hz). Over a given processing window, there are A=1024 samples. The z-components of both vectors are aligned with the axis of the BHA. A value for Gxand Gycan be referred to as a transverse gravity measurement or a transverse gravity vector, A value for Hxand Hycan be referred to as transverse magnetic measurement or a transverse magnetic vector, a value for Gzcan be referred to as an axial gravity measurement, and a value for Hzcan be referred to as an axial magnetic measurement.

[0037] Simple averages and corresponding standard deviations for data acquired over the processing window are indicated by:<%) = l / A ^=01%(tsW + / c)); J = 0,1, 2. (1.1a)(%2) = l / AZ"2o1%2(ts(Aj + / c));j = 0,l, 2. (1.1b)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGScncre; Mark HaugMad,!865 Thoasaad Acres Way. Rene. NV 8952! CoriddeMia!! 'Mtec LL Uo-«x)) = o-(x) / VN. (I. Id)A distinction between c(x) and < J( X)) is that u(x) is a standard deviation for the sequence of samples determining (x) in (1.1a); whereas, u((x)) is a standard deviation for a sequence of averages, (x). The variables j and k are indices representative of a time variable.

[0038] Data acquisition starts at time 0 corresponding to j = k = 0. As time passes, quantities such as (l.la-d) are evaluated for each processing window and can be distinguished by their subscript, j. The following averages of rotationally -invariant quantities are evaluated over the current processing window and assigned to a vector u(J)1-ui0)=< HZ) isapre-averaged axial magnetic value; (1.2a)2- u2( / ) = (Gz) is a pre-averaged axial gravity value; (1.2b)3- u3(J) = GTx HT) = HyGx— HxGy) is a pre-averaged transverse cross product; (1.2c)4. u4( / ) = GT■ HT) = HXGX+ HyG y) is a pre-averaged transverse dot product; ( 1.2d)5 2e)6. (1.2f)A time-value associated with the current set of averaged invariants is included in u(j)2- u7j) = Njts+ (IV — 1) ts / I is a time value. (1.2g)

[0039] The following standard deviations are evaluated:1. <r«Hz» = Cui); (1.3a)2. < T«GZ)) = < T(U2); (1.3b)3.ff((GTx / / T)) = a(u3); (1.3c)4. a GT■ HT) = (u4); (1.3d)5. a((\HTI)) = < J(U5); and, optionally (1.3e)

[0040] Each standard deviation in (1.3) corresponds to a standard deviation for a pre-averaged quantity in ( 1.2). In ( 1.2) and ( 1.3), the subscript T indicates a transverse vector corresponding to the x and I’-componcnts of the associated vector. In this embodiment, the current values for averages and standard deviations are stored in random access memory while they are being used and are then written to a downloadable memory device before they are replaced in the random access memory by a subsequent set of values. This enables post-job quality control and reprocessing after the bottom-hole assembly is removed from the wellbore.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGMark Hauglaad, i 865 Thoasaad Acres A. Ay. Kero. NV 8952! CoriddeMia!

[0041] For j = 0,1,2,...., the set of vectors u( / ) and corresponding standard deviations are a sequence of pre-averages and their standard deviations. The sequence of pre-averages is suitable for input to a means for evaluating an adaptive average, the average being adaptive given that it depends on a data variability measure, the data variability measure depending on one or more of the standard deviation values in (1.3). In this embodiment, the pre-averages and standard deviations are determined according to (l.la-d). A given vector u(j) or a given value for a component of u(j) can be referred to as a member of a sequence. An alternative means for determining a pre-average is discussed below under the heading, “Embodiments without a processing window”.

[0042] In this embodiment, a value for ( | GT| ) is evaluated using an averaged transverse product magnitude. That is,(|Gr|) — <|GT| |HT|) / (|HT|), (1.4)An averaged transverse product magnitude is (|Gr| \HT|). The averaged transverse product magnitude is a pre-averaged transverse product magnitude because it is evaluated using a pre-averaged transverse dot product and a pre-averaged transverse cross product.

[0043] Under dynamic conditions, a standard deviation associated ( | GT| ) values is much larger when it is evaluated directly using samples of Gx. Gyaccording to (1.3f) than it is when the standard deviation associated with (|Gr|) is evaluated using (1.4) and (1.5). This is important because it is desirable to evaluate a wellbore survey result with quantities having smaller standard deviations because this reduces the latency and improves the accuracy of the wellbore survey result.Furthermore, shock and vibration noise does not completely average out of (1.2f) regardless how many samples are included in the processing window current or in a subsequent recursive average. This is because some noise terms are positive due to the squaring operation indicated in (1.2f). However, such noise does average out when (1.4) and (1.5) are used to evaluate (|Gr|) if a sufficient number of samples are included in the processing window or an adaptive average including preaverages from past processing windows.

[0044] . Though this invention can be practiced using a standard deviation or other measure of data variability, a data variability measure with a dependency on an averaged transverse product magnitude is preferable. This embodiment uses a((Gz)). < J( GTX HT)), and < J((GT■ Hr)), and these three quantities are combined into one standard deviation value,ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential«|Grl» = ^{\GT\\HT\)) / {\HT\) =(1.6b)Equations (1.6a) and (1.6b) respectively represent a standard deviation for a gravity magnitude value,

[0045] It is advantageous to use the same standard deviation value in adaptive averages for all the invariants that will be used to evaluate a wellbore survey result. This is because the adaptive averaging introduces a time lag that depends on a standard deviation. When averages for a set of invariants are combined to determine a wellbore survey result, errors in the wellbore survey result will be caused by invariants having different time lags. This is because the wellbore survey result changes over time in an unknown manner due to changes in the well path.

[0046] An exponential moving average with a weight depending on a standard deviation or other data variability measure is an example of an adaptive means for forming an average of a rotational invariant, the adaptive method including a recursion. One suitable function for a weight in an exponential moving average is:In (1.7), constants a = 0.000156 and b = 0.999999 were found to produce satisfactory results with a 10.24 s processing window, and the min function returns the lesser (smallest value) of its arguments. The vector u( / ) serves as the input to the exponential moving average:A(f) = w j)u j) + (1 - w(j )A(j - 1). (1.8)The adaptive average, (1.8), is assigned an initial value A(— 1) = u(0) when data acquisition begins. When the standard deviation (1.7) is less than or equal to the constant a, the weight is nearly unity and the adaptive average is approximately equal to the average of data over the current processing window. When this standard deviation is greater than the constant a, contributions from previous processing windows become relevant in the adaptive average.

[0047] The following values from the adaptive average are used to determine or use a wellbore survey result:1. (hz) = A (J) is an adaptively-averaged axial magnetic value; ( 1.9a)2- gz= A2( / ) is an adaptively-averaged axial gravity value; (1.9b)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialNA U3. {gTx hT= A3(J) an adaptively-averaged transverse cross product; (1.9c)4. gT■ hT= A4(J) is an adaptively-averaged transverse dot product; ( 1.9d)5. (hT) = A5(J) is an adaptively-averaged transverse magnetic magnitude. ( 1.9e)The time lag associated with the above recursive averages is:6- ^LAGGED=7(f) (l-9f)

[0048] Implicit in the above values and wellbore survey results derived from or interpreted using them is their dependency on a standard deviation that determines the weights, the standard deviation having a dependency on a an averaged transverse product magnitude. This novel feature of the invention is useful because it reduces a latency associated with a wellbore survey result. In the embodiment specified here, the latency isLATENCY = u7( / ) - A7( / ) = Njts+ (IV - 1) ts / 2 - tLAGGED. (1.10)A LATENCY value evaluated according to (1.10a) is relative to the center of the current processing window. The LATENCY value could alternatively be referenced to the last sample acquired in which case its value would increase by Nts / 2.

[0049] One skilled in the art will understand how to use a time lag is used in a time -depth conversion for associating wellbore survey result with a distance along the wellbore or for using a time lag for adjusting a drilling parameter based on a wellbore survey result.2 Wellbore Survey Results Including a Full-Vector Invariant

[0050] Once rotational invariants listed in (1.9) are available, one or more of them can be used to determine a wellbore survey result such as a wellbore inclination 6 or a wellbore azimuth y. The rotational invariants can also be used to determine a full-vector invariant such as a gravity magnitude, g, a magnetic dip value, D or a magnetic field magnitude, h. A full-vector invariant can be used as for quality control for a wellbore survey result or as an input to determine a wellbore survey result. For the purpose of this invention, a full-vector invariant is a wellbore survey result. An adaptively-averaged transverse magnitude product evaluated according tois used to determine the wellbore survey results and full-vector invariants. In the above formula, the adaptively-averaged transverse cross product is (gTx hT, and the adaptively-averaged transverse dot product is {gT■ hT. As is the case for other averages in (1.9), the averaged transverse dot product andADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential:sa eMr -g •the averaged transverse cross product have been determined using a recursion with a dependency on a data variability measure.

[0051] Though a full-vector invariant such as a gravity magnitude, a magnetic dip, or a magnetic field magnitude is a wellbore survey result, it can be used as a quality check on the data given that they do not depend on an inclination, an azimuth, or a tool face. At times, when wis close to unity, full-vector invariants can be evaluated and saved to random access memory for use in determining an inclination or an azimuth and then updated again during a subsequent time when close to unity.

[0052] The formulas presented here are applicable for any average of the quantities enclosed within a set of brackets, (■). The substitutions in (1.9) have been made to indicate that this invention is practiced using adaptively-averaged data.Magnetic Field Magnitude formulasGravity Magnitude formulasMagnetic Dip formulassin(D) = gz) hz) + gT■ hT) (2.2a)D = atan2(sin(£>),cos(Z))) (2.2d)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGMark HaugMad,!865 Thoasaad Acres A. Ay. Reno. NV 8952! CoriddeMia!Inclination formulas6 = atan2«0ThT / {hT), {gz)) (2.3a)9 = a n2 (gThT) / h2- hz)2, gff) (2.3b)Azimuth formulascos(y) = hz} gThT}2- gzgT■ hT} hT}2(2.4b) y = atan2(sin(y), cos(y)) (2.4c)Azimuth formulas with a prior for g, D, or hr = ghsm(D) - (gz){hz) (2.5b) s = -sign of {gTx hT) = ~{gTx hT) / \{gTx hT)\ (2.5c)cos(y) = hz) gT2- gz)r (2.5e)cos(y) = hz(g2- (^z)2) - gz)r (2.5e) cos(y) = (hz) gThT2 / hT2- gz)r (2.5g) y = atan2(sin(y),cos(y)) (2.5f)

[0053] In using any of the above wellbore survey results to, for example, adjust a position of a wellbore, a drilling direction of a wellbore, a curvature of a wellbore, a drilling speed, a drilling fluid circulation rate, or a well path, it is understood that the time associated with the wellbore survey result is tLAGGEDin (1.9f). All the above wellbore survey results have a dependency on a data variability measure resulting less data latency than anticipated by prior art. In the best mode, this is due to the use of a standard deviation of with an averaged transverse product magnitude instead of a standard deviation evaluated directly from transverse gravity samples.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential

[0054] In the above, atan2(y.x) is an arctangent function which returns the angle between the positive x-axis and the ray from the origin to the point (x,y), the angle in the range (-71, 71].

[0055] The azimuth formulae (2.5) are novel. They are useful because they enable determining an azimuth based on a prior for a gravity magnitude, a magnetic dip, or a magnetic field magnitude in conjunction with an axial gravity value and an axial magnetic value. The only requirement for a transverse measurement is a sign (±) of the transverse cross product, the sign only relevant when a well path is near the N-S line.3 Alternative weight functions or data variability measures

[0056] Embodiments of this invention can be practiced without using a standard deviation as a data variability measure. Examples of alternatives include a min -max difference, a variance, an interpercentile range, a range, or an error.

[0057] Embodiments with an alternative weight function can be practiced. It can be useful to limit the minimum weight value to limit the time lag. This can be easily accomplished by adding a third argument to the min function in (1.7):w( / ) = min(max(a / o'(G7),c), b). (3.1)A value for constant c in (3.1) on the order of c « 0.01 is suitable for the 10.24 s processing window used in this specification. The max function returns the greater of its arguments. A similar weight function to (3.1) could be implemented using a variance or a range instead of a standard deviation.

[0058] This method can be practiced using a data variability measure for a wellbore survey result or a full-vector invariant with a dependency on an averaged transverse product magnitude by: 1) substituting averages u( / ) from (1.2a-e) for A(J) in (1.9a-e); 2) associating the averages with atime value such as (1.2f); and, 3) then evaluating the data variability measure using an inclination, azimuth, gravity, or magnetic dip formula or its partial derivatives. Let the function ( / ) =denote such a wellbore survey result or full -vector invariant. One data variability measure to use in a weight function (1.7) is:RATIO = OTARGET / oJ (3 -2b) w( / ) = min(max( / M77O a / <7(Gj).c b) (3.2c)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential

[0059] The ^TARGET value is a target for a standard deviation representative of an error in a wellbore survey result or full-vector invariant, and o' ( ( / )) represents an observed standard deviation for a wellbore survey result or a full-vector invariant having a dependency on an averaged transverse magnitude product. A value for RATIO is a factor indicative proportionally how much the standard deviations for the quantities in the result calculation need to increase or decrease to have a standard deviation of ^TARGET- A value for RATIO that is greater than one means that less averaging would be acceptable resulting in smaller lag times. A value for RATIO that is less than one means that more averaging and longer lag times would be required to meet the accuracy target for the wellbore survey result. Modifying to the weight function according to (3.2c) has this property.

[0060] One of ordinary skill in the art would be able to evaluate the partial derivatives in (3.2a) analytically or numerically. An embodiment without the partial derivatives is to use a means for evaluating <?( ( / )) in (3.2a) directly from a sequence of ( / ) values. A recursion can be used for this purpose as follows:A value for the standard deviation, a( ( / )) evaluated according to (3.3d) is used to determine the value for RATIO in (3.2) in this embodiment. Initial values for the recursions in (3.3a-d) are:F(-l) = (0), C(-l) = (0), and D(-l) = / 2(0).

[0061] FIG. 4 is a flow chart for an embodiment with a data variability measure based on a wellbore survey result. One or ordinary skill in the art would be able to use the above explanation and formulas to replace the wellbore survey result with a full-vector invariant with a dependency on an averaged transverse product magnitude.

[0062] Values for ^TARGET depend on which result is in question. For an inclination or an azimuth (^TARGET °f 0.25 degrees is suitable for many applications. For a magnetic dip, a ^TARGETor0.25 degrees is suitable. For a gravity magnitude, ^TARGET of a few milligravities is suitable.

[0063] FIG. 5 shows the ratio of the standard deviation for an output sequence to the standard deviation for an input sequence as a function of the weight for an exponentially -weighted moving average. The standard deviation values used to construct the chart were all evaluated using an exponentially-weighted moving average. This chart is useful for determining a weight value when aADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGMark Hauglaad, i 865 Thoasaad Acres A. Ay. Kero. NV 8952! CoriddeMia!target output standard deviation is sought and an input standard deviation is known. For example, an input standard deviation such as ^(G)) and a target standard deviation such as ^TARGET determine a value for RATIO. On the chart in FIG. 5, the RATIO value corresponds to a coordinate on the vertical axis. Given this coordinate and the chart, a weight is uniquely specified via an interpolation. One or ordinary skill in the art can use a chart such as FIG. 5 to determine a weight value given an input standard deviation and a target standard deviation.

[0064] The chart in FIG. 5 is a predetermined relationship between a weight in an exponential moving average and a standard deviation associated with a result determined using the exponential moving average. Numerical or otherwise determined values comprising this chart are useful for determining a numerical value for a weight in an exponential moving average, the weight having a dependency on a data variability measure.

[0065] FIG. 6 shows numerical values for points comprising the chart depicted in FIG. 5. Weights corresponding to RATIO values smaller than about 0.1 are reasonably approximated by the equation w( / ') = 3.6872 X 7M77O1 9849. (3.4)4 Extended Kalman Filter

[0066] An embodiment with a Kalman filter is described here. An extended Kalman filter is used because priors that constrain the output depend nonlinearly on the variables that determine priors. The priors are one or more full-vector invariants: g, a gravity magnitude; h a magnetic field magnitude; or, D a magnetic dip. In this embodiment, the priors are updated when low data variability is detected such as when the weight w is close to unity. With reference to FIG 3., the Kalman filter evaluates the adaptive average.

[0067] The control input vector to the Kalman filter, u(J). is a five-vector populated corresponding to the first five values of the vector u specified in (1.2):«i( / ') = < HZ); (4.2a)U2( / ) = (GZ); (4.2b) u3( / ) = (GTx HT) = (HyGx- HxGy); (4.2c)u4(j) = {GT- HT) = {HxGx+ HyGy, (4.2d)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialNA UThe predicted state estimate is determined using an equation of the form (1.8) with weights determined according to (3.1) or with a target standard deviation using the chart in FIG 5. That isThe predicted covariance matrix is the 5x5 matrix,In (4.4) the state transition matrix isFj = (1 - w( / ))I. (4.5a)

[0068] The matrix I in (4.5a) is the 5x5 identity matrix. The process noise matrix Qj in (4.4) is diagonal and populated with the variances (or other data variability metrics) from the input data. In this embodiment, variances calculated from (1.3a-e) populate Qj.Qj = diag( « / / z))2, «Gz))2, «GrX HT))2(GT ’ WT))2, ((|WT|))2). (4.5b)

[0069] In this example, the residual error,,-, is a three-vector representing differences in the gravity magnitude, magnetic field magnitude, and magnetic dip evaluated using the predicted state estimate and a prior. The prior for each of these values is assigned to the corresponding element of the vector z. That is:yj = z — Vj. (4.6a)

[0070] Thus, v j is a gravity magnitude evaluated according to (2.1a) using XJIJ-I; v2j is a magnetic field magnitude evaluated according to (2.0a) using Xj\ j_; and, v3;is a magnetic dip evaluated according to (2.2a), (2.2b), and (2.2d) using Xj\j- • hi this embodiment, the observation values v j and v3j are evaluated using an averaged transverse product magnitude, and so are corresponding priors. This novel feature of the invention is useful because RMS errors indicated by (4.6a) are smaller than they would be if prior art means for evaluating them had been used. Equation (4.6a) is an example of a data variability measure that is an error. In this case, the error is a difference between a prior, z and values for corresponding quantities determined using the predicted state estimate,

[0071] A Jacobian matrix for the vector Vj is 3x5. It can be evaluated analytically or numerically. In this embodiment, the Jacobian is evaluated numerically. Each element of the Jacobian is defined byADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential yyMA A;The notation Hikj represents element i, k of the matrix Hj. The residual covariance matrix isThe covariance matrix for the observation noise is Rj which, in this embodiment, isRj = diaS(_a,p, Y)HJQJH ’. (4.7c)The three values required to specify the diagonal matrix diag(a, ft, y) pre-multiplying Hj in (4.7c) are selected empirically. In this embodiment, a = 0.2, f> = 0.5, y = 0.5. The Kalman gain isKj = Pj j-H Sj (4.8c)The updated state estimate and updated covariance matrices areA suitable initial value for P0|-r = Qo

[0072] The matrix inverse, S^1, in (4.8c) of this embodiment corresponds to a minimum-norm solution for the vectors comprising the inverse matrix, the minimum -norm solution determined via a singular value decomposition of the matrix Sj. This embodiment is robust even when 5) is singular.

[0073] , A value for Xj determines a wellbore survey result by substituting values of Xj for A(J) in (1.9) and evaluating the wellbore survey result as described above. In this example, a value for ^LAGGED isn°t determined by the Kalman fdter. Instead, it is^LAGGED J')= wj)u7(j) + (1— W(jy)tLAGGED(j ~4)- (4.10a)

[0074] Here, u7( / ) is equal to the time value specified in (1.2g). One of ordinary skill in the art would realize that the time lag for the Kalman filter specified here could alternatively be determined by appending u7( / ) to the control input vector and setting its variance and covariances equal to zero. Multiple lag times can be treated by appending more than one time lag time to the control input vector, and setting the corresponding variances and covariances equal to zero. Multiple lag times should be treated this way when the state transition model results in multiple lags. This happens if, for example, w( / ), is a diagonal matrix (instead of the scalar value used here) with more than one unique eigenvalue. A time lag variable should be associated with each unique eigenvalue.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialNA U I

[0075] Given the above, one of ordinary skill in the art would be able to produce an extended Kalman filter with three control inputs for correcting errors in gravity measurements. In this case, the control inputs would correspond to u2j), u3j), and u4( / ) in (4.2). In this case, a prior involving the magnetic field magnitude would be omitted. A prior on the magnetic dip, gravity magnitude, or both would still be used.5 Embodiments without a processing window

[0076] FIG 7. depicts an embodiment for the case N = 1 wherein there is no processing window. A drill string including a BHA inserted in a wellbore. Triaxial magnetometer and accelerometer measurements are acquired while the BHA is rotating, circulating, or drilling ahead. An adaptive average for rotational invariants and their standard deviations is evaluated and used to determine a data variability measure, the data variability measure depending on an averaged transverse product magnitude. A wellbore survey result is determined based on the adaptive average and the data variability measure.

[0077] In more detail, the averages in (1.2) are replaced by rotational invariants for individual data samples and are assigned to the vector p( / ):1. Pi(f)=Hz(5.1a)2. p20) = Gz(5.1b)3. p3( / ) = HyGx- HxGy; (5.1c)4. p4( / ) = HXGX+ HyGy(5. Id)A time-value associated with each individual sample can be appended to p( / ):7. p7(j) =jts- (52g)The following recursions with fixed weights are then evaluated:B( / ') = wp(j) + (1 - w)B(j - 1), (5.3a)G(f) = wB(j) + (1 - w)C(j - 1), (5.3b)Dk(f) = wCk(f) + (1 - w)Dk(j - 1), and (5.3c)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential

[0078] Initial values for the recursions are assigned according to: B(— 1) = u(0), C(— 1) = u(0), and £>fe(— 1) = u2(0). In (5.3c) and (5.3d), the subscript k = 1, 5 to reference components of the vector associated with the subscript. Given the 100 Hz sample rate, a suitable value for the weight in an exponential moving average is w = 0.002. An exponential moving average a fixed weight has a lag of 1 / w — 1 samples, corresponding to 4.99 seconds. This lag is also evaluated directly in (5.3a)

[0079] The vector u( / ) in equation (1.2) is assigned the values of B(j). The corresponding standard deviations <j(uk) in (1.3) are assigned the valuesin equation (5.3d). Once these assignments have been made, the invention can be practiced according to previously specified embodiments. This includes evaluating a wellbore survey result with a dependency on an averaged transverse product magnitude using a value for B(j) in (5.3a) and a data variability measure with a dependency on an averaged transverse product magnitude determined using <j(uk(J) values in (5.3d).6 Embodiments with a data variability determined directly from a set of pre-averages

[0080] Determining a data variability from pre-averages saves computational capacity in processor 61 shown in FIG 2. FIG 8. depicts the best mode embodiment including a data varaibility measure determined by pre-averaged rotational invariants and an adaptive average with a dependency on the data variability measure: A drill string 40 including a BHA is inserted in a wellbore. Triaxial magnetometer 65 and triaxial accelerometer 67 measurements are acquired while the BHA is rotating, circulating, or drilling ahead. Pre-averages are evaluated in processor 61 according to Equation (1) but with A=100 for a 1 second processing window. In this embodiment, the static average is a simple average of pre-averages, and the data variability measure is determined from an average of squared values of pre-averages. The data variability measure determines a weight for an adaptive average, the weight applied to the incoming static average in the adaptive average. Once an adaptive average is available, it is used to evaluate a wellbore survey result, a QC (quality control) value, it is fed back to impact a subsequent adaptive average.

[0081] In more detail, suppose data acquisition starts at time 0 and incoming samples of accelerometer and magnetometer readings are incoming every 0.01 s. Evaluate pre-averages according to1. = (Hz) is a pre-averaged axial magnetic value; (6.1a)2. v2=< GZ) isapre-averaged axial gravity value; (6.1b)3. v3= (Grx Hr) = HyGx— HxGyis a pre-averaged transverse cross product; (6.1c)4. v4= GT■ HT= HXGX+ HyG y) is a pre-averaged transverse dot product; (6. Id)ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential5. vs= ( is a pre-averaged transverse magnetic magnitude. (6.1e)

[0082] In (6.1), each pre-average comprises 100 samples of accelerometer and magnetometer readings over 1 s. The pre-averages determine a static averages according to u( / c) = (v). This average of v comprises nv= 20 samples of v and the time stamp k is incremented every 20 s. The vector u defined in this example has a sixth component which is the time stamp which is averaged adaptively, and the adaptively-averaged time stamp is the time to associate with a wellbore survey result and QC value from the adaptive average.

[0083] The data variability measure for this embodiment is a standard deviaiton for an inclination measurement evaluated according to:where the standard deviations are evaluated according towhere a sum indicated by the symbol S is from 1 to nv. This data variability measure includes a dependency on an averaged transverse product magnitude which leads to superior performance because it is a more accurate indicator of the actual standard deviation than a prior art data variability measure.

[0084] The target standard deviation for the inclination in this embodiment is ^TARGET = 0.005. The weight for the adaptive average is interpolated using either the graph in FIG. 5 or the numerical table in FIG. 6 with RATIO = oTARGET / u(0). With a value for the weight and a static average, the adaptive average is incremented. Then the wellbore survey result and QC value are evaluated according to Equations (2.1)-(2.5). The LATENCY is determined according to (1.10) with u7and A7replaced by u6and A6because the version of u in the best mode embodiment does not include a direct average of the transverse gravity readings and therefore only has six components.

[0085] The best mode embodiment described does not remove data even, off-scale readings. Those of ordinary skill in the art commonly, however, remove invalid data from data sets using any number of prior art techniques. One of the simplest and most obvious is to take outliers out. Even if outliers are accepted, off-scale readings may not be accepted. Should a pre-average be deemed unsuitable due to off-scale readings, for example, accelerometer readings, it can be omitted from both the static averageADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialNA U Iand data variability measure calculation it would contribute to. In this case, nvis decremented by 1 for each omitted pre-average. If so many pre-averages are deemed unsuitable that an acceptable result can’t expected, then RATIO is assigned a minimum value such as the first value in FIG. 6. This would correspond to a weight of 0.001.

[0086] FIG 9. depicts an embodiment including a data variability measure determined by preaverages and an adaptive average with a dependency on the data variability measure. In this case only axial measurements are required because a prior for a gravity magnitude, magnetic field magnitude, and a magnetic dip are input. This embodiment is used in relatively highly-deviated wells with inclination typically over 60 degrees. In this case, transverse measurements are impactful drilling near or along a north-south line, but are not required in a vast majority of practical scenarios. Triaxial magnetometer 65 and triaxial accelerometer 67 measurements are acquired while the BHA is rotating, circulating, or drilling ahead. Required pre-averages are evaluated in the processor according to Equation (6.1a,b) and optionally for Equation (6.1c). In this embodiment, the static average is a simple average of pre-averages, and the data variability measure is determined from an average of squared values of pre-averages. The data variability measure determines a weight for an adaptive average, the weight applied to the incoming static average in the adaptive average. Once an adaptive average is available, it is used to evaluate a wellbore survey result, a QC (quality control) value, it is fed back to impact a subsequent adaptive average.

[0087] In more detail, suppose data acquisition starts at time 0 and incoming samples of accelerometer and magnetometer readings are incoming every 0.01 s. Evaluate pre-averages according to1. v = (Hz) is a pre-averaged axial magnetic value; (6.4a)2. v2= (Gz) is a pre-averaged axial gravity value; (6.4b)3. v3= {GTx HT= (HyGx— HxGy) is a pre-averaged transverse cross product; (6.4c)

[0088] In (6.4), each pre-average comprises 100 samples of accelerometer and magnetometer readings over 1 s. The pre-averages determine a static averages according to u( / c) = (v). This average of v comprises nv= 20 samples of v and the time stamp k is incremented every 20 s. The vector u defined in this example has a fourth component which is the time stamp which is averaged adaptively, and the adaptively-averaged time stamp is the time to associate with a wellbore survey result and QC value from the adaptive average.

[0089] The data variability measure for this embodiment is a standard deviation for an inclination measurement evaluated according to the formulaADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 ConfidentialW[ ](6.5)where a sum indicated by the symbol S is from 1 to nv. The traget standard deviation for the inclination in this embodiment is ^TARGET=0.005. The weight for the adaptive average is interpolated using either the graph in FIG. 5 or the numerical table in FIG. 6 with RATIO =With a value for the weight and a static average, the adaptive average is incremented. An inclination is evaluated according to (2.3a) and (2.1c) with the prior for the gravity magnitude g used to evaluate (2.3c). Given priors g, h, and D and azimuth is evaluated according to (2.5a-e) with the s in (2.5c) assigned a value of +1 if the well path has an easterly heading and -1 if the well has a westerly heading. When the well path is close to a north-south line (2.5c), the adaptively-averaged transverse cross product is used to determine the sign indicated by (2.5c).

[0090] A wellbore survey result, a QC value, and a latency can be determined according to this some embodiments of this invention using a single static average or a pre -average and an accompanying data variability measure. For example, setting the weight equal to one in an exponential moving average produces an output determined exclusively by the current input. In this case, the data variability measure can be used to estimate an uncertainty for a wellbore survey result based on the static average.7 Embodiments using other adaptive techniques

[0091] Given the above specification, one skilled in the art would be able to use other recursions that were not explicitly specified here. Examples of alternative recursions include a recursive least-squares filter, an ARMA (auto-regressive moving average) model, a Weiner filter.8 Embodiments with a wellbore survey result evaluated in surface telemetry system

[0092] Given the above specification, one skilled in the art would be able to configure the system to telemeter an intermediate value such as a static average and / or standard deviation referenced in FIG. 8 or FIG. 9 to the surface telemetry system 13, compute a result by executing an instruction stored on non-transitory computer-readable medium 14 using processor 15, interpret the result using display 16, and control the drilling operation with the benefit of the result. This is disadvantageous because it requires more telemetry bandwidth than a system would if only the result were telemetered to the surface. Nonetheless, many embodiments of this invention can be practiced without computing a result using a subsurface processor given a telemetry system used as described here.9 Embodiments with a non-transitory computer-readable medium and a processorADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lM

[0093] An embodiment of this invention can include a first non-transitory computer-readable medium and a processor in a bottom hole assembly. The non-transitory computer-readable medium stores one or more instructions that, when executed by the processor, cause the processor to evaluate a data variability measure for one or more of the group:i. an averaged transverse product magnitude;ii. a wellbore survey result depending on an averaged transverse product magnitude; or iii. a full -vector invariant depending on an averaged transverse product magnitude; the averaged transverse product magnitude determined adaptively with a dependency on the data variability measure; evaluating a wellbore survey result using the averaged transverse product magnitude, the wellbore survey result selected from the group: i) an inclination, ii) an azimuth, iii) a gravity magnitude, iv) a magnetic dip, v) a magnetic field magnitude.

[0094] Embodiments of this invention can further include a surface telemetry system with a second non-transitory computer-readable medium, a second processor, and a display; the display enabling a driller to control drilling using a result of executing an instruction stored on the first non-transitory computer-readable medium by the first processor or an instruction stored on the second non-transitory computer-readable medium by the second processor.10 Embodiments including a normalized transverse magnetic measurement

[0095] This invention can be practiced with a normalized transverse magnetic value wherein a transverse magnetic x-value and a transverse magnetic y-value are divided by the square root of the sum of their squares. Then each transverse magnetic vector becomes a unit vector. When this is done, a transverse gravity magnitude value is availlable directly from an averaged transverse product magnitude without needing to divide by a transverse magnetic magnitude. However, values for an averaged transverse dot product and an averaged transverse cross product required for an azimuth or a magnetic dip must be multiplied by atransverse magnetic magnitude.

[0096] The description of the different illustrative embodiments has been presented for purposes of illustration and description and the invention is not intended to be exhaustive or limited to the embodiments in the form disclosed. Many modifications and variations will be apparent to persons of ordinary skill in the art. Further, different illustrative embodiments can provide different features as compared to other desirable embodiments. The embodiments selected are chosen and described in order to best explain the principles of the invention and the practical applications of the invention, and to enable persons of ordinary skill in the art to understand the invention and various embodiments of it and various modifications of it as are suited to the particular use contemplated.

Claims

ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lMWhat is claimed is:

1. A method for surveying a wellbore comprising the steps:a. inserting a drill string in the wellbore, the drill string configured to drill the wellbore including a bottom hole assembly, the bottom hole assembly including a gravity sensor and a magnetic sensor;b. acquiring from the gravity sensor while the bottom hole assembly is rotating, a plurality of transverse gravity measurements;c. acquiring from the magnetic sensor while the bottom hole assembly is rotating, a plurality of transverse magnetic measurements;d. determining a data variability measure with a dependency on an averaged transverse product magnitude, the averaged transverse product magnitude determined using the plurality of transverse gravity measurements and the plurality of transverse magnetic measurements;e. processing the plurality of transverse gravity measurements and the plurality of transverse magnetic measurements to determine an adaptively-averaged transverse cross product and an adaptively -averaged transverse dot product, the adaptively- averaged transverse cross product and the adaptively-averaged transverse dot product depending on the data variability measure;f. evaluating a wellbore survey result with a dependency on the adaptively -averaged transverse cross product, and a dependency on the adaptively -averaged transverse dot product, the wellbore survey result selected from the group: i) an inclination, ii) an azimuth, iii) a gravity magnitude, iv) a magnetic dip, v) a magnetic field magnitude. g. using the wellbore survey result to adjust one or more of the group: i) a position of the wellbore; ii) a drilling direction of the wellbore; iii) a curvature of the wellbore; iv) a drilling speed; v) a circulation rate, vi) a well path; and, vii) a drill string angular velocity.

2. The method of claim 1 further comprising the steps:a. acquiring from the gravity sensor, a plurality of axial gravity measurements;b. acquiring from the magnetic sensor, a plurality of axial magnetic measurements; c. processing the plurality of axial gravity measurements to determine an adaptively- averaged axial gravity value;d. processing the plurality of transverse magnetic measurements to determine an adaptively-averaged transverse magnetic magnitude;e. using the adaptively-averaged axial gravity measurement, the adaptively-averaged axial magnetic measurement, and the adaptively-averaged transverse magnetic magnitude to evaluate the wellbore survey result.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lM3. The method of claim 2 wherein the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, the adaptively-averaged axial gravity measurement, the adaptively-averaged axial magnetic measurement, and the adaptively- averaged transverse magnetic magnitude are determined using a recursion.

4. The method of claim 3 further comprising a lagged time associated with the wellbore survey result.

5. The method of claim 4 wherein the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, the adaptively-averaged axial gravity value, the adaptively-averaged axial magnetic value, the adaptively-averaged transverse magnetic magnitude, and the lagged time are evaluated according to:wherein j is an index representing a current time value; A(j) is a current value for a vector including the adaptively-averaged axial magnetic value, the adaptively-averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, the adaptively-averaged transverse magnetic magnitude, and the lagged time;A(j — 1) a value for the vector A corresponding to a previous time value j — 1; w(J) is a weight with the dependency on the data variability measure; and, u( / ) is a vector including a pre-averaged axial magnetic value, a pre-averaged axial gravity value, pre-averaged transverse cross product, a pre -averaged transverse dot product, a pre-averaged transverse magnetic magnitude, and the current time value.

6. The method of claim 5 wherein the weight is a function selected from one or more of the group:b. w(j) = min(max(a / σ(Gj), c), b); andc. w(j) = min(max(RATIO a / σ(Gj), c), b);wherein min is a function returning the lesser of its arguments; max is a function returning the greater of its arguments; a is a constant; b is a constant; c is a constant; o(Gj)' a standard deviation for a gravity magnitude with a dependency on the data variability measure; and, RATIO represents a target value for a standard deviation divided by an observed standard deviation.

7. The method of claim 5 wherein the weight is determined according to a rule relating the weight to a ratio of a target output standard deviation to an input standard deviation, the input standard deviation having a dependency on the data variability measure.

8. The method of claim 1 wherein the adaptively-averaged transverse cross product and the adaptively-averaged transverse dot product are determined using an averaging method selected from one of the group:ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidentiala. an exponential moving average,b. a Kalman filter,c. an extended Kalman filter,d. a recursive least-squares filter,e. an ARMA model, andf. a Weiner filter.

9. The method of claim 2 wherein the wellbore survey result is determined according to one or more of the group:a. 9 = atan2 {gThT) / {hT),{gz),wherein, atan2 represents an arctangent function; sin represents a trigonometric sine function; cos represents a trigonometric consine function; acos represents a trigonometric arc cosine function; asin represents a trigonometric arc sine function; 9 represents the inclination;ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lMy represents the azimuth; g represents the gravity magnitude; D represents the magnetic dip; h represents the magnetic field magnitude; {gr^r represents the averaged transverse product magnitude; (hT) represents an adaptively-averaged transverse magnetic magnitude; (hz) represents the adaptively-averaged axial magnetic value; (gz) represents the adaptively- averaged axial gravity value; (gTx hTrepresents the adaptively-averaged transverse cross product; gT■ hTrepresents the adaptively-averaged transverse dot product.

10. A method for surveying a wellbore comprising the steps:a. inserting a drill string in the wellbore, the drill string configured to drill the wellbore including a bottom hole assembly, the bottom hole assembly including a gravity sensor and a magnetic sensor;b. acquiring from the gravity sensor while the bottom hole assembly is rotating, a pre- averaged axial magnetic value, a pre-averaged axial gravity value, a pre-averaged transverse cross product, a pre-averaged transverse dot product, and a pre-averaged transverse magnetic magnitude;c. evaluating an averaged transverse product magnitude using the pre-averaged transverse cross product and he pre-averaged transverse dot product;d. evaluating a data variability measure with a dependency on the averaged transverse product magnitude;e. determineing a weight for an adaptive average with a dependency on the data variability measure;f. using the weight to determine an adaptively-averaged axial magnetic value, an adaptively-averaged axial gravity value, an adaptively-averaged transverse cross product, an adaptively-averaged transverse dot product, and an adaptively-averaged transverse magnetic magnitude;g. using the adaptively-averaged axial magnetic value, the adaptively-averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively- averaged transverse dot product, and the adaptively-averaged transverse magnetic magnitude to determine a wellbore survey result selected from one or more of the group: i) an inclination, ii) an azimuth, iii) a gravity magnitude, iv) a magnetic dip, v) a magnetic field magnitude.h. using the wellbore survey result to adjust one or more of the group: i) a position of the wellbore; ii) a drilling direction of the wellbore; iii) a curvature of the wellbore; iv) a drilling speed; v) a circulation rate, vi) a well path; and, vii) a drill string angular velocity.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidential vkAA lM11. The method of claim 10 further comprising a lagged time associated with the wellbore survey result.

12. The method of claim 11 wherein the adaptively-averaged axial magnetic value, the adaptively-averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively- averaged transverse dot product, and the adaptively -averaged transverse magnetic magnitude, and the lagged time are evaluated according to:wherein j is an index representing a current time value; A(j) is a current value for a vector comprising the adaptively-averaged axial magnetic value, the adaptively-averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, the adaptively-averaged transverse magnetic magnitude, and the lagged time; A(j — 1) a value for the vector A corresponding to a previous time value j — 1; w( / ) is the weight with the dependency on the data variability measure; and, u( / ) is a vector including the pre-averaged axial magnetic value, the pre-averaged axial gravity value, the pre-averaged transverse cross product, the pre-averaged transverse dot product, the preaveraged transverse magnetic magnitude, and the current time value.

13. The method of claim 11 wherein the adaptively-averaged axial magnetic value, the adaptively-averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, and the adaptively -averaged transverse magnetic magnitude are determined using a recursion.

14. The method of claim 12 wherein the weight is determined according to a rule relating the weight to a ratio of a target output standard deviation to an input standard deviation, the input standard deviation having a dependency on the data variability measure.

15. The method of claim 10 wherein adaptively-averaged axial magnetic value, the adaptively- averaged axial gravity value, the adaptively-averaged transverse cross product, the adaptively-averaged transverse dot product, and the adaptively -averaged transverse magnetic magnitude are determined using an averaging method selected from one of the group:a. an exponential moving average,b. a Kalman filter,c. an extended Kalman filter,d. a recursive least-squares filter,e. an ARMA model, andf. a Weiner filter.ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSimile; Mark HaugMad,!865 Thoasaad Acres A. Ay. Renee NV 8952! ConddeMia!■nk dMM16. The method of claim 10 wherein the wellbore survey result is determined according one or more of the group:a. 9 = atan2 {gThT) / {hT),{gz),wherein, atan2 represents an arctangent function; sin represents a trigonometric sine function; cos represents a trigonometric consine function; acos represents a trigonometric arc cosine function; asin represents a trigonometric arc sine function; 9 represents the inclination; y represents the azimuth; g represents the gravity magnitude; D represents the magnetic dip; h represents the magnetic field magnitude; {grhT) represents the averaged transverse product magnitude; {hT) represents the adaptively-averaged transverse magnetic magnitude; {hz) represents the adaptively-averaged axial magnetic value; {gz) represents the adaptively-ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGSamuel Mark Haugland, 1865 Thousand Acres Way, Reno, NV 89521 Confidentialaveraged axial gravity value; (gTx hTrepresents the adaptively-averaged transverse cross product; gT■ hTrepresents the adaptively-averaged transverse dot product.

17. A system for surveying a wellbore comprising:a. a drill string configured to drill a wellbore and inserted therein, the drill string including a bottom hole assembly, the bottom hole assembly including a gravity sensor and a magnetic sensor;b. an axial magnetic measurement;c. an axial gravity measurement;d. a transverse cross product determined by a transverse gravity vector and a transverse magnetic vector;e. a prior for a gravity magnitude, a prior for a magnetic dip, and a prior for a magnetic field magnitude;f. an azimuth determined according to one or more of the group:i)ii)iii) y = atan2(sin(y), cos(y));wherein y represents the azimuth; sin represents a trigonometric sine function; cos represents a trigonometric cosine funciton; atan2 represnts a trigonometric dual quadrant arc tangent function; (hz) represents the axial magnetic measurement; (gz) represents the axial gravity measurement; g represents the prior for the gravity magnitude; h represents the prior for the magnetic field magnitude; D represents the prior for the magnetic dip; q =determined by the prior for the gravity magnitude, the prior for the magnetic field magnitude, the axial gravity value, and the axial magnetic value; r = ghsin(D) — gzhzand, s = —{gTx hT) / \{gTx hT)\ represents a sign of the transverse cross product, gTx hTrepresents the transverse cross product; \ gTx hT) \ represents the absolute value of the transverse cross product.g. use the azimuth to adjust one or more of the group: i) a position of the wellbore; ii) a drilling direction of the wellbore; iii) a curvature of the wellbore; iv) a drilling speed; v) a circulation rate, vi) a well path; and, vii) a drill string angular velocity.

18. The system of claim 17 wherein: the axial magnetic measurement is selected from one or more of the group: i) a pre-averaged axial magnetic value, ii) an adaptively-averaged axial magnetic value; the axial gravity value is selected from one or more of the group: i) a pre-ADAPTIVE SYSTEM AND METHOD FOR CONTINUOUS SURVEYING WHILE DRILLINGaveraged axial gravity value, ii) an adaptively-averaged axial gravity value; the transverse cross product is selected from one or more of the group: i) a pre-averaged transverse cross product, ii) an adaptively-averaged transverse cross product.

19. The system of claim 18 wherein the adaptively-averaged transverse cross product and the adaptively-averaged axial magnetic value, and the adaptively-averaged axial gravity value are determined using an averaging method selected from one of the group:a. a recursionb. an exponential moving average,c. a Kalman fdter,d. an extended Kalman fdter,e. a recursive least-squares fdter,f. an ARMA model, andg. a Weiner fdter.

20. The system of claim 19 further including a variability measure determined by the preaveraged axial gravity value, the data variability measure used to determine one or more of the group: i) the adaptively-averaged axial magnetic value, ii) the adaptively-averaged axial gravity value, iii) the adaptively-averaged transverse cross product.