Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ADAPTIVE QUALITY CONTROL FOR MONITORING WELLBORE DRILLING
Document Type and Number:
WIPO Patent Application WO/2019/075124
Kind Code:
A1
Abstract:
A method of validating a directional survey includes measuring the gravity and magnetic field vectors using a surveying tool and computing an overall statistical distance of the measurement. The statistical distance may be calculated from reference values associated with the surveying tool using corresponding surveying tool with error values. In a further aspect, an error covariance matrix be used to determine whether the new errors in a survey are consistent or not with errors from one of more previous surveys.

Inventors:
WILLERTH MARC (US)
MAUS STEFAN (US)
Application Number:
PCT/US2018/055297
Publication Date:
April 18, 2019
Filing Date:
October 10, 2018
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MAGNETIC VARIATION SERVICES LLC (US)
International Classes:
E21B47/024
Domestic Patent References:
WO2017007967A12017-01-12
Foreign References:
US20040160223A12004-08-19
US20150331138A12015-11-19
US20160201449A12016-07-14
Other References:
See also references of EP 3695098A4
Attorney, Agent or Firm:
BORGMAN, Steven, R. (US)
Download PDF:
Claims:
CLAIMS

WHAT IS CLAIMED IS

1. A system fdr monitoring drilling:, the system comprising;

a processor;

a memor coupled to tlie processor, hereis the- memor comprises instructions executable by: the processor for:

during drilling of a borehole by a drilling sy^em, receiving a first survey f om

measurement of a gravity vector G an d a second measurement of a; B agaetic field v ctor B;

calculating a magnetic dip angle φ responsive to die second measurement of die magnetic field vector B;

generating, responsi ve to tool codes for the M WO tool that define error values for tfee first measurement and. the second measUrerneM.. a first eovafiant matrix describing the relationship of a plurality of measure values to expected errors in die measured values:;

generating a pluralit residual values carrespondisg to the first measurement and the second measurement as a difference between a reference valae and a -measured value tor e ch of first measurenierst of the gravity vector G and the second measnrement of the magnetic field vector B;

computing, responsive to the residual values and the first eo variant matrix, an error ellipsoid describing boiitids for residual values lor the first measurement of die: gravity vector G and the second measurement f the magnetic field v ector B;

comparing the first: survey with the -error ellipsoid to determine if the first survey is acceptable; and when the first survey is not acceptable bas d on the e ror ellipsoid, enerating' 'first indication thai the dri flin should stop.

2. The system of claim 1, further comprising instoetions for:

when the first indication is generated, generating a second indication that a expert assessment of a trajectory of the borehole is to he performed befor drilling resom.es,

3. The syste of claim i .. farth comprising instructions for:

generating a plurality of second residual valnes based on differences between aplurality' of previously measured values of the gravity vector G and the magnetic vector B, and the most recesit measuremen ts oi ' die gravity vector: G and the .magnetic sect r B;

generatmg a second covenant matrix describing the relationship of measured values to expected errors in the measured values based on the previously■ measured values; and

cpiBpiit-ing a second error ellipsoid des cribing bounds, for resi dua ! valnes for the . first, measurement of be gravity vector G and the second measurement of tlie magnetic field vector B responsive to. tlte- Se bfl-d. Ί¾5» ¾ύ'¾ί -Valued arid the second: covariaM matrix.

4. The: system of claim i, wherei the instructions for comparing the first survey with the error ellipsoid to determine if the first , survey- is acceptable, further comprise insimetions for; computing a statistical distance associated with the first measurement of the gravity vector G and the second measuremen of the magnetic field vector B responsive to tjie tool codes.

5. The system of clai 4,, further comprising instructions for:

displaying the statistical distance against a sigma threshold. 6;. The system, of claim 5, wherein the instruction for e^i^arin -ihe first survey with the error ellipsoid to determine if the first survey is acceptable further comprise instructions :'f r: classifying the first survey as pass or: fail, based on. a . value: of the statistical, distanc with respect to die sigisa threshold.

7. The system of claim I·, wherei the instructions for comparing the first survey with di error ellipsoid to detgnnmg if the first survey is acceptable tether comprise instructions for; computing a p¾habilit associated with: the first . me¾siiren:ient of die gravity vector G and the second measurement of the magnetic field vector B responsive t the tool codes.

8. The system of claim 7, further- comprising instructioBS. for:

•displa ing the probability against a probability threshold.

9. The system of claim 8, wherein, the instmctions for comparing the first survey with the error ellipsoid to df terraras i f the firs t survey is- acceptable further comprise instructions for: classifying the first survey as pass or fail based o a value of the probability with respect to the probability threshold.

10. The system of claim 7, wherein the probability is a Mahalanobis distance.

11. A method for monitoring drilling, the method comprising;

during- drilling of a borehole' by a drilling', system, receiving a first sur ey from a ;measui.¾«iBta-wli.iIe-dfi|i¾g (M D) tool, wherein the first 'survey includes a plurality of measurements of a gravity vector and a magnetic field vector; using the magnetic field vector, calculating' a nm Betlc. dip angle

½^ottsive:fo p:i.umii4y of tool codes for the M D tool that define error vstues for the plurality of measurements, .generating a .first covanant matrix describing the relationship of measurements to expected errors in the measrremeats;

generating a piiiraiity of. residual values corresponding to the plurality of me suremen s, wherein eaefi residua) value comprises a ifference between is reierence valpe and a measured val ue for each of the plurali ty of measuremen ts;

responsive to the residual values and the first eoVariant matrix, comput n an error ellipsoid describing bounds for residual values for the plurality of measurements;

comparin the first survey with the error ellipsoid to determine if the first: survey is within acceptable limits; and

when the first sumy is not witfeia acceptable limits, generating a first indication that the drilling should stop,

12. The method of claim 11 , mrmer comprising:

iieti 'th& 1¾$f . $eaii6¾. is generated, enerating a second Indication thai an expert assessmeiri of a trajectory of t he borehole shou ld be performed be fore drillin resumes .

13. The method of claini ί 1 , further: comprising:

generating second residual values based on differences; between previously obtained raeasureineriis and the measured value fo each of the plurality of nieasiueraents;

generating: a second eovaria matrix describing the relationship of measured values to expected errors in the measure values based oh resiqMsty m^ 3 ; ¾l¾e¾ s»d

responsive: to the: seeond. residual values and the second covariant mat ¾. cofnputirig the error ellipsoid describing bounds: for si ua! values for the ffieasirrements.

14. The metho of claim. 11,. wherein, comparing the first, survey with the ..error ellipsoid to determine if the first survey is acceptable further coiwprises:

computin a statistical distance associated with: the measurements based ø» the tool codes.

15. The method of claim 14, further comprising :

displaying the statistical distance against a sigma threshold.

16. The metho of claim 15, wherein comparing the first survey with the erro ellipsoid t determine if the first survey is acceptable further comprises:

classifying the first surve as pass or fail based on a value of the statistical distance with respect to the sigma threshold.

17. The method of claim 1 , wherein comparing the first survey with the er or ellipsoid to detettrane if the first, survey is acceptable iuri r om rises;

computing a probability associated with the measurements based ori the tool codes.

18. The method oivclaim 17, further comprising:

displaying the probability against ,a probability threshold.

1 . The method of claim 18:, wherein compariiig the first survey with the error ellipsoid to determine if the firs survey is acceptable further comprises;

classifying the first survey as pass or fail, based on a value of the probability with respect to the '-probability threshold.

20. The systera.o claim 17, wherein the probability is a Mahalanobis distance.

21. Th method fcl mm. 11 , tether cqmprisitig:

display ing at least -one iodkatioh of the gravity vector, the magnetic field vec tor, and the magnetic dip angle toge†i¾r wi th inner error limits, wherei the irmer error limns define a pass range.

.22, The method of cla m I I, B,irt¾er con^ smg;

displaying at least one indication, of the gravit vector, the magneti field vector, a d the magnetic -dip angle together with outer error Limits, wherein: the outer error limits define a fail threshold.

.23. The method of claim i 1, ftrfte coroprisiflg;

displaying at least one indic tion of the gravity vector, the magnetic field vector, and the magnetic di angle together with 'bot inne error hrnfts and oister etTor limits, whereiii the ranges between the inner error limits and the outer error limits indicate a pass or fail range.

24, A system for.niotiitoriog drilling, iii system comprising:

& processor;

a memory coupled to the processor

¾ display device coupled to the processor, herein, me memory comprises iiistmciior!S executable by the processor for performing the steps of:

durmg driilirtg of a borehole by a ilri!li g system,, reeei mg a first survey from a meastiremeW-while-drilliiig (MWD) iool, wherein fte first survey includes ..measurements- of a gra*¾y vector and a magnetic field vector;

responsive to die magnetic field vect r ealculatisg . a magnetic dip asgle;

responsive to tool codes for the MWD tool thai define error values corresponding to th measurements, generating a .first coyariant matrix describing the relationship of a plurality of measured values to: a. plurality of expec ted errors in the measured values;

generating residual values corresponding to die measuremeuis as differences- between each reference value and each assoeiafed.raeasttred va¾c for each of the measurements

respossive to the residual valiies and the first eovariaot matrix, computing a statistical disiirace associated with the measuremeais, the statistical distance describing: bounds for r sidual values for th measurements; nd

displaying on the: display device: a. comparison of at least a portion of me first surve with the" statistical dista&ee to provide a -visual indication of whether; the first survey is within acceptable limits.

25 , The sy stem of claim 25, iurtlier coniprising instructions for;

when the first survey is not within acceptabl K^^ gejtieiati g:^. i¾Si: hid-Cfction that the drillJBg- should stop. 26 , The sy stem of claim 24, further comprising instructions for;

when the first indication is generated, generating a seeond indication that expert assessment of a weiihore trajectory of the borehole is to be .performed: before -drilling can resume.

27:. The system of claim .24, further comprising insteuCiioTis ,fr>r:

generating: second residaal values based on differences between previousl measured values and a mos recently measured value fo each of the measurements;

generaiing a second eovariasrt. matrix describing t¾e relationship of ineasnred value's to expected errors in the measured values based on die previously measured values; and

-using: the second .residual values and t¾e second eo variant matrix, computin the Statistical distance -de-scribing bounds for residual values for the measurements.

28. The system of claim .24, wherein the instructions for comparing the: first survey w th the statistical difference to determine if the first survey' is acceptable further comprise instructions for;

confuting an error ellipsoid associated with th measurements based on the tool codes.

2$ . The system, of claim 28. further comprising instructions for;

displaying the error ellipsoid .against at least one signia threshold.

30. The system of claim 29, wherein tile instructions for comparing th first Survey with the error ellipsoid io deiermine if the first survey is acceptable further comprise insimetlohs for: •classifying ihe first survey as pass or fail, based on a value of the statistical distance w h: respec : te ; the stgma: threshold.

31. The system, of claim 2§ . w herem a: slgma reshol d is displayed as a rectangle unded by the error ellipsoid.

32. The system of claim 24, wherein the "comparison is displayed as a plot with at least one shaded region repf esetit ig a QC threshold.

33. The system of claim 24, wherein the comparison is displayed as a lot of measinerneni values funded: by nner limits and miter limits.

34. The system -of '-claim 33, wherein the inner limits indicat pass or fail of the measurement values and the outer limits indicate fail of the measurement values.

35. The system of claim 33, wherein the: :area¾etween the inner linhts is dispiayed as a first color, and the area between each inner limi t and '.'the. correspond ing outer limit i s displayed as a second color.

36. The sy stem of claim 35, wherein the first color is green.

37. The system of ciadn 3.6, wherein the second eolor is yellow.

38. The system of claim 33, further comprising instructions for; •accessing data &om at l east lone prevfoiis sorvey of the "borehole performe prior to the first sistyey wherein the inner limits aad the outer limits are adaptive responsive to the at least one previous survey.

39. The sysiem of claim 38, wherein, the visual imlieaiiors is updated with addi ional data : responsive to a second survey performed after the first survey.

40. The system of ciaiiii 2 * wherein the visual iai ieatiori is tipdaied wit additional data as the borehole is drilled.

Description:
ADA IVE QUALITY CONTROL FOR MONITORING WELLBORE DRILLING

CROSS-KEFERE N E TO RELA ED APPLICATIONS

|0 01} This application claims priority to United States Provisional Patent Application

i its entirety, ar» claims priority to United States Provisional Patent Application Serial d mber 62/655,675, filed w April 10, 201.8, wiiiich is incorporated herein by reference in its entirety,

BACKGROUND

[Mi>2] The present disclosure: relates generally to drilling of wells for oil and gas proditeiion. and, more particu !arfy ,, to ad aptive Quality control for monitorin wel Shore dri lling.

Description of the .Related Art

(0003} in well placement using: Earth's gravity acceleration and geomagnetic field are iised s a., natural reference iranie. A MWD tool: may measure a surve of the acceleration vector and the magnetic field vector to determine a 3D orientation of the MWD fool, including to infer an inclination angle and an axiinufh angle of the .bottom, hole assembly (ΒΒΑ). From consecutive MWD surveys, ' the well trajectory can fee determined is this manner -and can be used to. validate that the actual well trajectory remains, on target with a; planned well trajectory..

[008 ] The dete m nation of the well fraj eetory from..an M WD surve may involve variou calculations that depend upon referenc values arid measured values. However, variorss interna! and external jEactors may adversely affect an. MWD survey nd,: in tu , the de!terminaiiion. of the well trajectory. Furthermore, certain measurement thresholds used tor Cjua!i y control (QC) erf different measurements . ' may not be mc€>rreiaied wiffi each other, as is c mmoaly assumed m cBnyentfcmai QC: methods.

SUMMARY

[0095] In one aspect, a : first system for monitoring drilling is. isclosed. The first system may nclude a processo , a memory coupled to the processor.. In the first system, the memory may include instructions executable b dig processor for, during drilling of a borehole by a drilling system, receiving a first survey from a measureffierrt-v hiie-driiling (MWD) tool In ille firs $ystei . the ' fi st

second easurement of a magnetic field vector B, The first system may further include instructions for ealcBlating a magnetic dip aujglertp

the magnetic field vector B 5 generating, responsi ve to tool codes for the W.D tool that define error values for the first measurement and the second measurement, a first eovariant matrix describing the relationship of a plimiliiy of measured values to expected errors in the measured values; generating a p lurality of residual values, corresponding to the first measurement apd the second measurement as & diffiarenee between a ' r¾f^ttce-vdu -*hd, ' a hMsa^Ted:-y^|«e for each of first m asuremen t of fee gravity vector G aad the second rneasnremerit. of th magnetic field vector B, computing, responsive, to the residual, values and. the first eovariant matrix, an error ellipsoid describing; hotaids for residhal values for the first measurement of the gravity vector G and the second measurement of the magnetic field vector B, and comparing the first surv ey wife the error ellipsoid to determine if the first survey is acceptable. When he -first survey · is not acceptable; based: on the error ellipsoid:; the first system may ftirther include mstractioHS for generating a first indication that the drilling shoukf stop.

ΘΘ06Ι In any Of the disclosed embodiments, the first system ma further include instructions for, when: the first indication is generated, generating a second indication that an expert assessmen t of a trajectory of the borehole is to be per&rrhed before drilmrg: resumes, [0067] In any of th disclosed embodiments, the first system may Further include instructions for generating a plurality of second residual value based on differences between a ' plurality of previously measured values of the gravity vector G and fee magnetic vector B, an the most s&s t measurements of the gMyity vecto €i and the magnetic; vector ? generating a second eovarlani matrix describing the relationship: of measnred values to. expected errors in th measured values : based on the .pr viousl ; measured values, and compilin a second error ellipsoid describing bounds for residual values for the first measmenieni of the gravity vector G and the second measu e e t of the magnetic field vector B responsi e to die second residual values and the second covariatt matrix,

[0008] In any of the disclosed embodiments of ie first system, the instructions for comparing the first siirvey with, the error ellipsoid to deter ine if the first survey is. acceptable may further include nspections for computing a statistical distance associated with the first measurement of the gravity vector i and the second measurement of the magnetic Beld veetor B responsive to the tool codes.

10009] In any of the disclosed embodiments, the first system may Siirtlier include msifiietioas for displaying the stafistieal distance agait st a sigma threshold..

{WW] In an of the disclosed embodiments of the first system, tbe instructions for comparin the: first survey with the error ellipsoid, to determine if th first, survey is acceptable ma further iMa.de mstruc don for classifying the first survey as pass or fail , based on a value of the statistical: di stance with respec to die: sigma threshold.

fWilj In any of th disclosed emoodiments of ie first: system, tbe instructions for comparing the first survey w i th the erro e.U ' ipso i to determine if the first survey is acceptable may farthe include instaicfiorts for computing a probabilit associated: with the : first, measurement of fee gra vity vector G md the second measurement of fee magnetic field vector B responsi ve to the tool codes.

[00121 ¾ an c€ t e disclosed embodiments, the first system may furthe include instructions for displaying the probability against a probability threshold. (0β13{ ϊβ any; of the disclosed embodiments of the first system, the Instructions for comparing the " first survey with tire error ellipsoid, to leterrtrme if me .first survey is acceptable may further include iBSiructians for classifying the first survey as pass or fail, based on a value of the probability with respect to the probability threshold,

[0014} in any of the disclosed embodiments of the first system, the probability may be a M.ahal : ariohi.s distance..

I i 01S| in another aspect, a first method ibr inonitoriog drilling is disclosed. The " first method may inclu e durin dril l ing f a borehole by a drilling " S stem, receiving a first survey from, a me ^ u^ (M. D) tool. In the first meth d,: the firsr survey may include a plurality of measurements of a gravity vector and a .magneuc fieM vector. The first method may further include using the: magnetic field vector, calculating a magnetic dip angle, responsive to plurt ity of tool codes for the MWD fool that define error values for the plurality of measurements, generating a .firs covariam matrix, describing the relationship of measurements to expected errors in the measurerrteiits,, and .generating; a plurality of residual values corresponding to the plurality of measurements In th first method, each residual value ma ihciu.de a difference between a inference value mi a measured value for each of the pluralit of measurements. Th fust method, ma further tBciude, respo sive to the .residual values and the first εό ariant matrk, eOmputing an error ellipsoid describing bounds for residual values for the plirraliiy of measurements, and eomparing: the . first survey with the .error ellipsoid to deteoBine if the first survey is within acceptable limi is. When the first survey is not within acceptable: limits, the first method .jrtay . ftohex; sQhi<3te .gearin a first, indication that the drilling: sho uld stop,

11010] IB any of : the disclosed embodiments, the first method ma further include, when the first iiidipatsort. is. geBeraied } . geBeraiing a second indication that an: expert assessment of a trajectory of the borehole should be performed before drilling resu s: 0M7{ in any of the disclosed the. ' t¾$t method may further, mchsde generating: second residua! values based on differences between previously obta ned measurements and the .measured va e for each of the plurality of measurements, generattag second: eovariant matrix, describing the relationship of measured value to expected errors in the rrteasirred values based on the previously measured values, and, responsive to the second residual vataes and the second covariaHt: matrix, eomputi g the error ellipsoid describin bounds for residual values for the measurements,

f fiO 1 ' S.J In my of die disclosed embodiments of the first method^ comparing the first surve wi h, the. error ellipsoid to determffle .it the first survey is acceptable may. further include compiitkg a statistical distance associated with the measaremesits based on the tool codes. ji) 19| In my of the disclosed embo ents, th first method may farther include displaying the statistical distance against a sigm threshold.

[9020] In any of the disclosed embodiments of tiie first method, comparing the first survey with the error ellipsoid to determine; if th first surve is acceptabl may farther include classifying the first sim f ey as pass of fail, based on a value of the statistical distance with respect to the sigma threshold.

100 1] In any of the disclosed erabodiniems of the {¾st meihod, comparing the firs t survey with the error ellipsoid to determine if the first survey is acceptable may -further include computing: a probability associated with the me surem nt based on- die tool codes.

[0022} In an of the disclosed embodiments, the first method may iiirther include displaying the probabiliiy against a probability threshold,

[0023} in any of the disclosed embodiments of the first metiml, comparing the first survey with the error ellipsoid to determine if the firs surve is acceptable; may further include: classifying the: first survey as pass or fail, based on. a value of the probabilit with respect to the probability threshold. 8024| in any of the disclosed embodiments of the first method, fee probability may be a Mahalanobis distance,

[0035 j In any of fee disclosed embodiments, the fast, method may ' further include displaying at least one indication of th gravity vector, the: magnetic field, vector,, md the magnetic dip angle together with inner erro limits, while the inner error limits may define a pass range

{ββ2ΐί| in any of the disclose eml sdimeMs, th first method may further include displaying at least one indication of the gravity vector, the nsgnetic Held vector, arid the magnetic dtp angle together with outer error limits, wherein the outer error limits define a fail threshold- j0027| Jrs any of fee disclosed embodiments, the first method may further include displaying at least ope indication of the gravity vector, the: magnetic Held vector, and the magnetic dip angle together with bot inner error limits .and outer- error limits, wherein the rapges between the iuuet error limits and tbe puter error limits mdkat a -pass, or fail range,

[0028] Irs yet another aspect, a second system for raomto rng drilling is disclosed. The second system may include a processor,: a memory coupied to the processor, a display device coupled to the processor, in the second system, fee memory may include iastructieas executable by fee processor for, during drilling of a borehole by a-drij.H^\-sysfeto 5 -r^dv ftg.i i the second system, the. first survey may include measurements of a gravity vector and a magnetic field vector. The second system may further include instructions: for, responsive to the magnetic field vector, calculatin a magnetic dip angle, responsive to tool codes for the MWD tool that define error ' values corresponding to the measurements, generating a first covariant matrix describing the: relationship of a plurality of measu ed values to a piurality of expected e foxs; ¼.the;.t»easure( values, generating residual values eorresponding; to fee measurements s differeuces between each reference value md each associated measured value for each of the measure:s∑ente > c nfutin a statistical distance associated: with the measure-meats, the statist cal distance describing bounds for reS sal values ibr the messwremsnis,. an ' idispjtaying . . on thje display device a comparison of at; least a portion of the first survey with the statistical distance to provide a visual indication of whether the Survey is within acceptable limits..

|0029| in any of the disclosed embodiments, tbe second system may further ineinde instructions for. when the first survey is not within acceptable Bruits, generating a first indication that file drilling should sto :,

in an of the disclosed einbodiTnenis, the second system ma further includ instructions ibr, when the first: ■' indication is generated, generating a second indication .thai:, an expert; assessment of a. wellhore trajectory of the borehole is to be performed, before drilling can resume.

[9031] Irs an o the disclosed embodiments, the second system may ftrrthar include- instructions for generating second residual values based on differences between previously

a second ovari ant matrix describing the rela tionship of measured values to expected errors in the measured values based o the previously measured values,. and using the second residual values and the . second co variant matrix, computing: the statistical distance describing bounds for residual values for the measurements,

(0 32] In n of the disclosed embodiments of the second system, the instructions for comparing the. first survey with the statistical difference to determine if the first survey is acceptable^ m further include instructions for computing an error ellipsoid associated with the ' measurements based on the tool codes. ' (0033] in any of the . disclosed embodimests, the second system iniay furtlier mc de instr ctions for displaying: the error ellipseid against at Ssast one siatna threshold.

[003.41 to any of .the disclosed embodiments of the second system, the instaictiotis for comparing the first survey with , tire error ellipsoid, to determine if &e fei snrvey is acceptable: may further include ms ructions -for classifying the first Survey as pass or fail based on a value of the statistical distance with, respect to d¾ :Sigma threshold.

|0035[ to. any of the disclosed embodiments of the second system, a sigm threshold may displayed as a rectangle bounded by the error ellipsoid.

' {0036] to any of the disclosed embodiments of the second system, the comparison may .be displa ed a a plot with at least one shaded region representing a QC threshold, to. any of the disclosed embodiments of the second system, the comparison may be displayed as a plot of measurement values bounded by inner limits and outer limits,

. ' [0037] I s any of She disclosed embodiments of the second ' system, the inner limits may indicate pass or fait of the measoretHe si vafcss and the outer limits may indicate fail of the Bieasuremeni values ;

[0038] to an of the disclosed embodiments of the second system, the area b tweed the inner limits may he displayed as a fust color, and the a e between each inner limit -and the corresponding outer limit may be displayed as second color, in any of the disclosed embodiments of the second system, the first color may be green. In any of the disclosed embodiments of the second system, the second color may be yellow.

In any of the. disclosed emfcodimerits, the second system may further include : instructions for accessing data from at least one previous survey of the borehole performed prior to the first survey, while : the ' inner limits and the outer limits ma be adaptive sp nsive:: to the at least one previous sirrvey.. to any of the disclosed embodiments of the second system,, the visual indication ma be irpdated wiili additional data responsive to a second surve peri rmed after the first survey, in any of the disclosed embodiments of the second system, the visual indicati n may be. pdated, with additional data as the borehole is drilled.

[0040 j In yet another aspect, a second '' method of validating a direetioaal survey includes defining quality control (QC) criteria directly from the : error mode!, thai is used to c mpete the uncertainties of the well trajectory. The error model describes errors of the measurement while drilling (M D) tool, and additional factors, such as the error in reference values, external interference, the impact of eorrections appl ied to die measurements, and correlation of errors between separate survey measurements. While error models (tool codes) were designed to compile die uncertainties, of the well trajectory; the error models may also be used to derive the rmeertainties of an indi vidual WD measuremeni. In the same way that 3D error ellipsoids of the: weilbore location are computed : . 3D error ellipsoids for G :i and magnetic dip angle φ can also he .confu ed.

10041| In another aspect, a third method, of validating directional '' survey meliides measuring the gravit and m netic field vectors using a. surveying tool an computin an overall statistical distance of di measurement from its reference values tor a giver) surveying tool error model.

10942] In farther aspect, fourth method of validating directional survey includes measuring the gravity and magneti field vectors «g½g a surveying tool, computing the parameters total gravity strength, total magnetic field strength, and magnetic dip*, and computing individual statistical distances between these parameters and their reference values for a give« surveying tool error model

|M>43J in still anothe aspect, a fifth method of validating a directional survey includes measuring: the gravity and magnetic field veci rs using a sufveymg: tool, computing the: parameters total gravity strengt , total magnetic field strength, and magnetic di * and computing hitier and. outer error bounds for each of these parameters. 8 4{ in a further aspect, a sixth method of validating a directional survey includes asu ing . the : ravity and ma netic: field vectors using a surveying tool and computing an overall .-statistical, distance of the measurement from a conditional expectatiom derived: from reference values for a given tool, error model and prior survey measurements collected of the gravity and magnetic field vectors,

' 10045} n yet a further ¾ ect v ¾.^«^t ,i^t¾od ' -of ' v ^rti»g a direedonai, survey includes taking « number: of measurements e ' fthe gravity nd magnetic field vectors using a surveying tool or set of Survey tools, c mputing art overall statistical distance of lire sei from reference values f a give tool error -and evaluating this statistical distance with respect to the I ^formation, content of tlie set.

BRIEF ESCRi TtON OF DRAWINGS

|Θ046| The following: is a descriptio of the figures i» the accompanying drawings. The: figures are not necessarily to scale, and certain figures and certain views of the figures may be shown exaggerated in scale or in schem tic in the interest of clarity and conciseness

18047} FIGURE 1. is a depiction of a driJiiag: system for drilling a borehole;

[M ] FIGURE 2A is a geometric depiction of magnetic field vectors as generated by a magnetometer;

10049] FIGURE 2B is geometric depiction of gravity vectors as generated by an accelerometer;

[ββ§0] FIGURES 3A, 3B, 3C » . a¾d 3D depict selected lements- pi an embodiment of a method for adaptive quality control for monitoring welibore drilling; -

|¾0S1 j FIGURE: 4. depicts a QC tlffes iold 3Ώ ellipsoid depletin 2...S: sigtea error;

[0052 j FIGURE 5 depicts QC threshold. 3D ellipsoid with threshold regions overlaid thereon;

|00S3| FIGURE 6 : is a plot showing statistical distance (sigma) as a function of measured depth along a welibore;

.[0054] FIGURE 7 is a plot showing residual value statistical distances as a function of measure depth along a welibor for magnetic field strength B;

'[10055] FIGURE is a plot showing residual value statistical distances as a function of measured depth along a welibore for irav¾ field G;

[0056] FIGURE 9 is a plot showin residual value statistical distances as a function of measured depth ' long a welibore for magnetic dip angle φ;

[0057] FIGURE 10 is a plot showing statistical probabili ty as a function .of measured depth along a welibore; ' (0058j " FIGURE " i I shows three plots of -residiaal values of B, !¾, and ' φ agaiasi -adaptive QC thresholds versos measure depth;

FIGURE 1.2A shows a plot of actual values of B against adaptive QC thresholds versos measured depth; and

[00601 FIGURE 12B shows & plot of actuai values of φ against adaptive QC thresholds versa measured depth.

DETAILED DESCRIPTION

|006 J.J In the- following description, details are set forth by way of example to facilitate discussion of the disclosed subjec matter. It should; be ap arent; o, a person of ordinary skill in the field, however, that the disclosed embodiment are exemplary and not exhaustive of all possible erhfeodiraertts,

|6062| Throughout: ' this ' di^losur *- a- hyphenated form of a reference numeral refers to a specific instance of an element and the unhyphenated form, of the reference numeral refers to the element geoerically : or collectively. Thus, as an exampl (not shown in the drawings), device "12-1" refers to an instance of a device class, which may be referred to collectively as devices "12" and any one of which may be referre to genetically, .-as- a .device "12". .In t le figures and the description , l ike -numerals are in tended to represent l ike ele ments .

[9063] As noted above, various factors associated with the peffemiatt.ee of MWD surveys ma affect the. deterniinatibn of the well trajectory. For example, th accuracy pf th well trajector detenninatton may depend ots the performance of art MWD tool used for an MWD survey. It ma therefore be useful to a l quality control (QC) to each MWD survey to monitor and eval ate "the- performance of the M WD tool,

0064} As will be disclosed hi further detail ;: application of QC to an MWD survey Can be accomplished by comparing a measured gravity: field strength (given ' by a vector Ci), a measured magnetic field strength (given by a vector B), and a magnetic- dip angle ( given as a angle φ) with respective -reference, values that ma be given or ma he obtained from previous surveys. The differences between the. measured values and the inference values are called '"residual vai ues". Various different QC criteria, may be defined based on these residual values, including QG criteria disclosed control for: monitoring wellbore drilling. ' (0065} in some conventional processing rnediods, given QC thresholds for B, 6 and φ ' may be defined as 0β pass or fail criteria for an MWD survey. When the QC threshold are exceeded, t!ie MWD survey- is said to 1 QC and shoukl no$ be used for determination of the well trajectory. The conventional: approach with: given: QC thresholds may have certain shortcomings, such as, but not limited ' to- (1) a reliance on: three separate measnretneats, which may not consider any cross-correlation of amongf he measyrernents: (2) no relation of the QC criteria to known mvceminties in the determination of the eiibore trajectory; and (3) failure to evaluate the survey results as a collection of surve sets rather man. as isolated data points, TJierefere, an improved approach for validating directional Surveys is disclosed herein as adaptive quality control Tor monitoring weiibore drilling,

[0066] Application: of QC for adaptive quali ty control for monitori ng weiibore drilling, as- disclosed teem ^ may be used as air mtegrated : part of a driOing process that is implemented using a drilling system. The results of a:ppiieatidn: oi the QC criteria to each respectiv MWD sprvey performed ma he used te : evaluate the: quality of the measurement, and ultimately determine . hether the last measurement could be validated as being acceptable for drilling purposes, such as for determining the well trajectory. In other words, QC. using adaptive quality control for -monitoring weiibore drilli ng may improve a determination of the plausibility of e ch measurement from an MWD Purvey.- The level of ' acceptability, as well as ther QC criteria, fo actual ' , drilling purposes may be set &rth,. along with :other information and parameters, in a drilling plan that may define the drilling operations and also may specify the well trajectory,

(0067} A method for adaptive quality control for moni toring weiibore " ' drilling, as disclosed herein, may perioral MWD surveys while drilling proceeds along a well trajectory. Bach of the MWD surveys may be evaluated using adaptive QC criteria to make a decision, whether or not drilling should continue; When the last MWD survey is validated using die adaptive quality control for nionitorirtg wellbore drilling disclosed he in, an indication .may ' be generated drat drilling cm, continue. The indication that the last M WD snrvey was: validated: may be Incorporated as a digital signal or digital information that is used by ano the control system in the drilling system^ such as in order to control the drilling process or in order to not stop ie drilling process. When the last MWP survey is not validated usin the adaptive quality control fbrjrjOnitpring wellbore- drilling disclosed: herein, an indication, ay be generated, that drillin should stop. The indication that the last MWD survey was not validated may he incoiporated as a digital signal or digital information that is used by another control system i the drilling system, such as ; in order to control the driilmg process Of in, order to stop the drilling: process i>¾6S| A method for adaptive quality control for monitoring wellbore drill lug, as disclosed herein, may fnrthe include definin QC criteria directly from the uncertainties in the; .determination ' -o-f the . well trajectory. The uncertainties: may be gives- as certain error values that deseribe errors of the MWD tool and additional factors, such as an error in reference values, external inierferetiee, as i pact . of corrections applied to the peaswemehts, and a correlation of errors between separate survey meas fepenis. It is iioted that certain error values MWD tool codes that define instxuteut parameters) are given that may be used to compute the uncertainties- of the well trajeeioty . in adaptive quality control for monitoring wellbore drilling, as disclosed herein, the same error valnes may also be used to derive the imeeftaiftiies of an individual: MWD measurement Th uncertainties resulting- f om the QC process may be presented as 3D error ellipsoids for values of B, Ci, and φ·- obtain d lioni MWD surveys. The error ellipsoids may present the error in three dimensional coordinates along borehole 106, while fee-errors- for B, G, and φ may ' be related to each other, at least to a. certain degree, along at least one dimens idnal: axis,

{W6&\ In, directional drilling, the well trajector may he reconstructed from a pipe tall (measured ' depth, .MD eoPMned with surveys of an ineliuatfon angle and an azimuth angle of the bet t ehole or the drill string . Accord agly, point nieasuretiients of MD , the inclination angle, and the azimuth angle may thee b combined to generate a continuous determination of the w ll trajector . in some instances, the ppi measui¾menis may be combined using a i nimura curvature: interpolation to generate tile detenrtination of the well, trajectory, The positional errors of the determination, of the well traject ffy ma be described by ellipsoids of neeriainty {E£ ) t¾ where the ax s of a three dimensional (3D) coordinate system used to specify the ellipsoids may indicate standard error is the lateral, vertical, and aiong-bole ■■ directions,, respectively.

f 007§ | The ii!ongi-ho!e directional error ma be considered related to the drill pipe and is not considered further here.

j 00711 For the: cross -bole errors (¾ , the lateral directional errors and th horizontal directional errors forstetghi vertical drilling), the followiag sources: of error may be taken into account: instrument biases: a d scale factors;; senso misalignments within the MWD tool; misaligs¾serit,of the . MWD sensor with, the borehole; sensor misalignments due to the betiding (He., sag) of the drill string component bousing rising the MWD tool; magnetic interference

sources of errors. Even when the exact source of tbe error is unknown, as long as the relationship of tbe error to QC criteria is larowft,: me extent of the error can be estimated, using adaptive quality control : fo monitoring wellbore dril ling,

[0072J Each of the sources of cross-bole errors may be quantified by one or more error coefficients and may be associated with a propagation mode. The errors may then be translated using: the error coefficients into corresponding errors of the inclination angle and the azimuth angle, which may then be propagated along-hoie id determine; a emnulative error Of the well trajectory. In a similar maimer as determining the error M the well trajectory, the methods for adaptive gualit control for nxjmtoring elibore drilling, as disclosed herein, determine ai¾

007 j As a result of adaptive quality central for monitoring welibore drilling, as disclosed herein, three independent parameters ma be computed, namely: strength of the gravity field (G), strength of the .magnetic field (Bit, and magnetic dip anglei?. B, G, and φ may be computed from an MWD survey and are, thus, deri ed from measured values, Reference, values for 8 and G itiay be obtained frorfj global references, or from previou survey information "obtained f m previews drilling. After su traetiiig: the reference values fi»m tfte values of B and (3 deri ved: ¾m measured values, the residual values are calculated. The residual values m he used- to define QC criteria and. to apply j t · tssnfts. of QC analysis to drilling operations. For example, when Ά particular survey fails the QC criteria, a measurement from an MWTJ tool may be flagged as having failed QC.

computation . of he well trajectory. Alternatively, remedial actions ay be ta ' ken to eithe improve the qualijty of the surve or assign the surv to another instrument specification of: reduced accuracy.

10074] Referring to. FIGURE 1 , a drilling system tOO is il sftated is otre embodiment, as a top drive system. As shown, ike drilii sg system 100 includes a derrick .132 on the surface 11)4 of the earth arid is used to drill a horehoi e 106 in to the earth. Typically , drilling system 100 is used: at a !oeation correspondiiig.io a geographic formation 1§2 in the earth that is. known. {O075J In FIGURE I, derrick 132 includes a crown block 134 to which a traveling block 136 is coupled via a drilling line 13 , In drilling svstero 100, .-a top drive 140 is coupled to traveling block 136 and provides rotational force for ' drilling. A saver sub 142 may sit between the top > drive 140 and a .drill ' pipe 144 thai is part of a drill string: 146. Top drive 140 may rotate:: drill string 146 via the:, saver sub 142, which in torn m y rotate a drill bit 148 of a bottom bole ssembl (BHA) 1 9 in borehole 106 passing through formation 1 Θ2, Also visible in drillin system 100 is a rotary table 162 {list may be fitted witha master bushing 164 o hold ' drill siring 146 when not rotating,

[0076] A mud pump 152 may direct a fluid mixture 153 (e.g., a mud mixture) from a mud i .1.54 into drill: string 146-

understood that various receptacles, tanks, pits, or other containers may be used. Mud.153 may flow fmm. mad pump .152 iftto a discharge line; 1.56 ma is cou l to a rotary hose 158 fey a siaiidpipe 160-, Rotary hose 158 may tfaen¼ ' oSupled ίο ο|Η&ί*¾ 140, which includes a passage for mad 153 to flow into borehole 106 via dr ll string 146 from where mud 353 may emerge at drill fe¾ 148 , Mu 133 may lubricate drill bit 148 during drilling and, due to the pressure, supplied by mud pump 152, mud 153 may return via borehole 106 to sprface 104.

|0i} 7| Sensing, detection, nieasurement, and evaluation, functionality may be incorporated into a dow¾hole tool 166 or BH A I or elsewhere along drill siring 146 . to provide MWjD surveys of borehole 106. Accordingly, dowrihole tool ] 66 ma be an MWD tool and. may have corresponding connec wity to ground 146; For xam le, gamma radiation sensors, m gnetometers:, aeceieroroeters, and other t pes of sensors may be used, for the MWD surveys. Aithougi dowoliole; tool 166 is shown in smgrsiar I» drilling system 100, it will he. understood that multiple instances (not shown) of dowi ole tool 166 may be located at. one or more locations along drill string 146.

In som eaibodimentSi formation detection and evaluation tunetioimiity ma be provided via a control system 168 on the surface I 04, Hie control system 168 may be located in oMiiHi to: derrick 132 . or may be included wi th drilling/system 100, la othe embodiments, such as when drilling system 100 is equipped with a communication network (not shown), control system 168 may be remote ; from me actual location of borehole:: 106. For example, control system .168 tnay be a st d-aloue system or ma be incorporated into other sy stems include with drilling system 100.■ ' (0Θ79| in .-operation, control system 168 may receive formation information via the communication. network. ¾ some embodiments-, control system 8 may use the evaluation innctioiiaHly tq provide eo«vergen.ee : plans or other corrective measures. The convergence plans or: other corrective measures may depend on the determination of the well, ttajeetory. and therefore, may be improved in accuracy using adaptive quality Control for monitoring wellbore drilling, as disclosed ; herein. In various embodiments, al; least a portion of control system. 168 may he located i dowrihoie tool 166 (not shown). In some embodiments, control system 1 8 may eo mBMcai with a separate controller (not shown) located in downhole tool 166, 1ft particular, control system; 16% may receive and. process nieasnrements ece ved from M¾'D surveys and may perform fte calculations described herein for adaptive quality control for monitorin w.ellhore drilling using the MWD surveys and other informations referenced herein. fTOSOj Drilling a well iypicaily involves a substantial amount of toman decision, making' during tfce drilling rocess .Ee-r-exampie, geologists and drilling engineers use their knowl edge, experience, and, the availabl information to make decisions on how to plan the drilling operation, how to accomplis the drilling plan, and ho to handl issues that arise during drilling. However, e/yen the best geologists and drilling engineers perform some guesswork due to the unique nature o each borehole. Furthermore, a directional driller directly responsible: for t e: 'drilling may have drilled other boreholes in the same region and so rna have some similar experience, but it-is impossible, for a human to aieiiiali track all the possible inputs and factor those inputs into a. decision. This can result in expensive mistakes,, as -errors in drilling can add hundreds of thousands or even niiilions of dollars to the drilling cost and, in some eases, drilling errors may pennsiiemly lo wer the output of a well, resulting in substantial long: term losses,

[ΘΘ81] Irs the present example, to aid in the drilling process, each well has corresponding collected data, such as . from sensors in the bottom ole assembly, the MWD tool, or both; The collected daia may include the geological .characteristics -of a . particular formation in which the. correspondirsg well, fts ' rmgd, . the. «ttrjh«ie§•af.a patiie isj? drilling rig. iriclutiiwg the bottom hole assembly (BHAjt, and drilling information such as weigM-on-bit (WOB). drilling speed, and. other Information pertinent to she formation of that; particular borehole. The drilling information may be associated with a particular depth or other idernifiable marker so that, for example, i t . is recorded that dril ling of the . well from. 1,000 fpttte !.,2Q0 fee t occurred, at a first rate of penetration (ROP) throtigh a first rock layer with a first WOB, while drilling from 1 ,200 feet to 1 ,500 t¾et Occurred at a second R0P through a seco d rock layer, with a second WOB,.. The collected data may be used to recreate the drilHng process used to creat the corresponding well in the particular formation; It is understood tha th accuracy -with:- hich the drilling process can be recreated depends on the level of detail and accurac of the collected data, irtclsdisg data iroai an MWB survey of the well trajectory.

jW82] The collected data may be stored in a central ize database, which may be connected via a coiBtBtmication channel to at leas one computer, server, network, or com itiatiotis thereof. The database or computer systems ma be located at a drilling huh (not shown) or elsewhere. Alternatively, the data may be stored .cm a removable storage medium: that is later coupled to the database M orde to transfer the data to the database.

f ii83] An on-site corjtroHef may be located at or near the surface where a well is being drilled. The controller ma be coupled to the - drilling rig and. may also be coupled & the database. Other. inputs, ...including data from a magnetometer, and an aeeeieroiseter may also be provided to the on-site controller. Is spine: embodiments, the on-site controller may operate as a stand-alone device with the drilling, fig. For example, the on-site eostroiler may not be coHu^u^citive y : coupied. to: ' Che a¼s l Although it may be positioned near r at the drilling rig m the present example, it is to be u;ndersK»d that some or all aiflponeu.^ of the on-site eOBtroUef may he distributed and physically located elsewhere in other embodiments, such as at remotely located control center i F desired. The controller may include a computer processor and a storage device, such as a mem®rf storing instructions executable by the processor., the Instructions being .en bled„ when executed, for performing adaptive qualit control for moBitoring wellbors: drilling, as disclosed herein..

[0684J The on-site controller may Mther fo.na al of part Of a suriaee steerabie system. The database may also forpi part of the surface steetablesystern. Tlie surface steerabie system "may"be used, to plan and control drillin operations based on input inforr iioB s including feedback from iie drilling process itself. The surface steerabie systerii may be used to erform operations, such as receiving, drilling data representing a drill path, receivi g other drilling parameters., caicoiating a drilling solution for the drill path based on the recei ved data and other available data (e.g., rig characteristics}, implementing tlie : drilling solution at the drilling rig, moiiitoring th i!tillihg process to gauge whether the drilling process is within a defrtred iBargia of error of the drill path, and calculating corrections For the drilling process if the -.drilling, process is outside of the: arg n of error, in addition, the on-site controller may form a portion of the M WD tool or the BHA.

the drilling of a borehole, such as top drive or rotary drive equipment that couples to the drill string and BHA and. is i con figured to rotate tte drill string and apply pressure to the drill hit.. The drilling rig may include control sysiems such as a OB iffcreniiai ressure control system, a positional/rotary control system, and a fluid circulation control system, ' The control systems may be used to monito and. change;, dniiihg; rig..settihgs,. such as the WQB or difierential pressure to alter the ROP or the radial orientation of the toolfaee, change the flow rate^ of drilling mud, and .perform other operations. The drilling rig may also include a se sor system for obtaining sensor data about the drilling operation and. the: drilling rig, Includmg rhe dowfthole equipment. For example, the sensor system may" inelnde MWD: of logging: while drilling (LWfJ) components for ofeiauitsg ini rn atioii, such as too ace and ioniratioB logging ' nfoimaikn, thai may be saved for late rettievai. transmitted, w¾..» delay or in teal time v$m$- any of various commumcation naeaas wireless, wireline., o mud pulse telemetry), or otherwise trans ferred, to the on-site controller. Such. infonpatiou. may include intbrmatioa. related to hole depth, bit depth, inclination,, azimuth,, true vertical depth, g mma count, andpipe pressure, mud flow ra e, je&tjiry rotations ' pej? M¼ite (KPM), hit speed, ROP, WQB, and other information. It is understood that all. or part of the sensor system may be incorporated into a control system, or in another component of the drilling eqriipmetit. As the drilling rig ca he configured in many different ways, it is understood that these control systems ' , m y be different in some embo iment^ and may be combined or farmer divided into various subsystems.

or snore sensors, as wel l as survey ml¾mation, either during or after doffing of the weilhore. The hrpnt information may include talbrmaiios at is pre-loaded, received, and updated is real time. The input information may also include a well p!an,.regional formation history, drilling engineer parameters, MWI? ' tool face/ineliria ion in&irnatiba, LWD gat¾rria ;i resist}vity information, economic parameters, reliability parameters, and other decision guiding parameters. Some of the inputs, s ch as tfc&regio ' nal fommtion history, may be available irom a drilling; ..hub, which may include the database and tlie processor (not shown), while other inputs may fee accessed or uploaded irom other sources. For example, a web interface may be used to; interact directly with the. on-site controller to upload &e well plan or drilling: engineer parameters. Hie input information may be provided to the on-site controller and, after processing by the on-site controller, ma result in control intbrnratioti that may be output td the: drilling rig (e.g., to the control systems;}. The drilling rig (<?,¾.. via the control systems) may provide feedback information to the on-site controller: The feedback information. May then serve as input -to the■ on-site controller, enablin tlie on-site controller to verify that the current control information, is producing :the des«¾d remits. ø l^pro t e^w control inforMdi ft for the drilling rig, which may include instructions for adjusttag one or more drilling parameters, the direction of drilling, the appropriate drilling mode, arid the like, .and.:.may farther include instractioiis to the control systems to automatically drill in: accordance with the updated infoms ton. regarding the ideation of the BBA as determined ή$ $ν .gusltty ' control fo monitoring wellbore drilling, as disclosed herein,

(0087] eferriiig now to IGURES 2A and 2.8, Cartesian-cooriiinate vector diagrams are :sft0 ¾B. ' dietin . ' Ceftaitt measurements that are used to derive QC parameters for adaptive quality control for monitoring wellbore drilling, as disclosed herein. Specifically, in FIGURE 2 A magnetometer measurements 200 sho w how a total magnetic field vector ¾ is geometrically defined, while m FIGURE 2B accderoroeier rneasiiremeats 201 sho how total gravity vector G is geometrically defined. As noted previously, total magnetic field B and iota! gravity & mm represent measurem nts obtained using art MWD tool .Specifically, the. ra axial measurements from the MWD tool for a magnetometer (magnetometer measurements 200) and for aft acceleroineter (accelerometer measurements 20! ) may be obt ained and- used for adaptive quality control for monitoring wellbore .■■drilling, as will he described in further detail below. The Cartesian-eoo ltnate vector diagrams s own in; FIGURES 2A and 2B define an XYZ coordinate space tha - may be used to define: space with respect to borehole iQis during drilling. (0088) In particular, magnetometer measurements 200 and aeeelerometer measurements ' Ml, although generally valid as shown for any orientation;, are depleted for the special ease of straight vertical driiling, Accordingly for straight vertical diSHiftg, a positive Z~axis points into the wellbore direction, while the XY axes define an X¥ plane: perpendicular to the wellbore:: direction aloag the Z-axis, Also, for straight vertical driiling, axial compoaent vector Bz may be referred to as Bvertfcai, while vector Bxy may be erretl to as Bhorkontid. As shown in FIGURES 2A and 2B, a positive- X axis is aligned wife fee geographic north direction, a negative X axis is aligned with the geographic south direction, a positive Y axis is aligned with die geographic west direction,, and a negative Y axis is aligned witiS -the geographic: east direction. It will h understood that such orierrtatior«s nd: polarities may be arbitrary and may be modified in different embodimeais or for different orientations of borehole 106;

|IH)89] During drilling, as drill siring- 146 is caused to rotaie, downhple tool 1 6: fL&, the MWD tool) also rotates in. the X V plane, while motion along the Z-axis ma remain relati vely steady, according the Κ0Ρ, The MWD too! may include a 3D magnetometer that measures and outputs axial, componen ts Bit, By, ¾:of iotal magnetic field B, as well as a 3D accelerometer thai roeasures and outputs axial components £¾ G <¾ of fetal -gravity G. Based oil these ra w

Measurements, an inclination angle and an azimuth angle of the bottom: Mole assembly (BH A) c be calculated i i orde to determ ne a location and. orientation of borehole 1 6 at given well depth. Therefore, the accuracy o f the measured quantities tor B arid G may be critical for deterxnining the location arid orientation :o£ borehole 106;

[9 9] Irs FIGURE 2 A, magnetometer measurements 200 depict a Cartesian coordinate space about, an origin 21 . For example, origin. 210 may represent a current location of the BHA as a reference point for magnetometer measurements 200. From origin 210,

B. Als defined by magnetometer measurements 200 is a vector B¾y that is the sum of axial components B x arid y and which also defines a magnetic di angle φ and a declination angle 0.

[0091 j in FIGURE IB, acceSerometer measurements 201 depict a Cartesia coordinate, space abou t origin 210:, For example, origin 210 may represent a current location of the BHA as a reference: point for aeeeleroHieter measu eme ts 201. Frpni origin 210, aecelerometer measurements i ) l d fiae. ' ihe, axial components <¾ i¾ ¾ of total gravity O.

|Θ092{ Given the vectors G =- G^G y fi g and B - where the subscripts denote axial components and boldface denotes a. vector quantity. Equations 1 , 2, and 3 helow defin the quantities of B, G, aad magnetic dip -angle ..ψ. (Equation 1 ) (Equation 2) (Equation 3}

3j The quantities |Bj, : jC¾- and φ from Eqaatfoas 1 -3, respectively, can be compared wit& reference values to calculate corresponding residual values. Thea, using characteristic values, indicative of instrument performance (i.e... MWD. tool codes., or more generally, an ' insfinttisent performance *»©* such as specified by tool codes) adaptive QC criteria for the MWD too! ma be determined. In other words, for a dowuhole surve that fails Q0,,$i« raw

tool codes. More specifically , a failed QC valuation pray indicate thai the calculated residual values exceed QC thresholds derived from the MWD tool codes, as will now he described in further detail

{¾ 94j An insLriimsni performance rttodel ma incorporate certain assumptions about sources of error. The instrument performance model may be used in ' the form of coefficients (also referred to as "tool code error coefifcieats" or simply "tool codes") that describe different error sources. For example, the sources of error in M WD tool codes may he responsible for related errors in | B], jGj, and. φ, : Thus, for the MWD tool codes, which quantifies the error sources, the resulting errors in |B|, ]<¾ and f can be computed. Table 1 below shows whic tool code error coeffieieats i Ouence which error sources in the Q ' parameters for an MWD tool. The: values Table 1 : t«ay be assumed to be given val oes and amy be used as input values for ite sabsequetii operations.; iisk -a. cevaiiaoce ;mairix. as axplairjecf in further detail ¼b¾

Error ' Sour e: φ

Reference moi AF1 M i MDI

Aceelerorneter bi¾s AB AB

Aeeeierometer scale factor AS; AS

Magnetometer bias. MB MB

Magnetomete scal factor MS MS

Axial interference AMIL AMIL

TABLE 1 : Tool code error coefficients for various error sources. Coyariaoee Matrix

The tool code error eoeificieats in Table ί may fee ttsed to. calculate the terras of a first CGvarianee matrix for a single MWD survey. Equation 4 specifies a first eoya iant matrix Si, while Equations: 5 through 10 describe the calculation of the matrix elements in terras of the intermediate values that depend on the coefficients in Table 1,

SO '2 SG8B 6Goq>

8G&B SB 2 δίΐδφ (Equation 4) 6(ϊδφ δΒδφ (p 2

Elements m the Coyanaiice Matrix

\ 91] The calculatio of the elements of the coyariaaee matrix ¾' . . is given in qua ions 5 throug - 10 in terms of various intermediate values ( j ;. error terms) related to the coefficients in Table i .

SG 2 = GTO + GT1 + GT2 (Equation 5} SB 2 = BTO + BT1 - BT2 + BT3 (Equation 6; === Dipo - DiPi + om + Dm + Dm- + DIPS (Equation 7)

SGSB = 0 (Equation 8) SGSf === (GIT /DIPS) + (G¾/DIP6) (Equation 9) δΒδφ = (BTl DiPl ) + (BT2/D1P2) + (ΒΤ3 Γ)ΪΡ4 (Equation TO) f 0098{ The . fornialas for calcuiaiing the intermediate values in Equations 5 through 10 will ¾w be described.. The convention used to Mrne tJieinterffiediate values herein is GTB fo |G, BTN for |¾ and .DIP« lbr , where n a nm-negative integer.

GTO: The reference error in G is a constant value of coefficient AFI - 0.016 m/s 2 in Table 1 that may b determined die RMS difference betwee the Global Acceleration Reference Model (GARM .2013) and normal gravity of HS06S5 rn for a global average down to 8 00 m depib,. as given by Equation 11.

GTO = AFI = 0.016™ {Equate )

|ΰ10θ{ T i : An aeeeleromete ¾Ias (also referred to as an offset, drift* or intercept) represents a constant offset dial distorts a true value to appear as a measurement value.

Accordingly, for (? r the bias t rm is given, by i¾ itation I2, : TO¾ - _. · en (Equation 12)

In Equation 5 S (J easure<l h a measured value for 6k and i¾ m<? is a true value for G ¾ while

GT i (also referred to a s SGx) ma be■ obtained * , from coefficient. AB for accelerotneter bias in

Table 1 as the value AB 2 , as given by Equation 13. it is noted thai similar equations appl for the Y and Z axes., Furftcrniore. it m y be assiinied that all aeeelerOMete biases are eqaal to enable calculation of 6 y ue and

G 1— AB 1 (Equation.! :!}

[ei0i| GT2: The mterisiediate valu GT2 is given b Equation 1.4 ia terms of the coefficient AS in Table I .

GT2 = — (G % +€γ ~ h G§) (Equation 14) B Error Estimates

|O102] BTO: The reference error in 8 is the coefficient MFI m Table 1 as giveri by EqrtaiioR Ϊ5.

BTO = MF (Equation 15)

I© i03 BIT ; The calculations for BTl are substantially similar to CTi except for application to the vector and usffig.tse coefficient la Table 1 MS for magnetometer bias instead of AB for acoeierorneter bias, as given by Equatio 16.

BTl— MB 2 (Equation 16)

{0104} BT2; The calculations ' for BTl are substantially similar to GTl except tor application .to the vector B and using the: coefficient in Table ! MS Tor AS.ibr accelerometer scale, as given by Equation 1:7.

BT2 = ™~ (G* + Gy - - (Equation ,1 ?)

' fflJ^S] BT3: For the calcril&tion of I3 } an additional bias term in the: aiong^hole . z direction appears, and BT3 is cafciikted. using the coefficient in Table 1 AMIL for axial interference, as given by Equatiob ! 8.

BT3 = ¾. AMIL 2 f Equation 18}

(g Error Estimates l tM] DIFQ The reference error in φ is the coefficient PI in Table 1 as given by Equat n I .

D1PQ = MO/ (Equation 19)

[Ο.ΙβΤ] DlPt ; Tise error term DIP 1 is gi ven iri terrns of the coefficient MB for

magnetometer bias in Table 1 as given by Equatio 20.

(G-B)B y ) 2 + (|B| 2 G Z - (G-B)^,) 2 ) (Equation 20)

[D1 8J Itt Equation 20, the quantity- (g - 6) is defined as-: given by Equation 21,

(S " &) (Equ tion 21)

[O:l.09j MP4: The error term D1P4 is givenin terms of the .sufficient .AB for aeee!erqmeter b as in Table 1 as b Equation: 22, m which certain terais for G andB are exchanged and Equation 2.1 yields the quantity ¾ · ¾.

(G-B)Gy) 2 + (|G|¾ ~ (G-B)¾ j 2 ) (Equa on . ^)

(flllftj D1P2; The error term D1P2 is given in terms of the coefficient MS for magaetomeier scale in Table 1 as given by Equation 23, while Eqaatioa 21 yields the quantity ( g · & . (G-B)By) 2 + ,¾ (|B| 2 G Z ™ (G-B)¾) ' ) (Equation

23}

[©ill j Dfl : The error terai IPS Is given, in terms of the coefficient MS for magnetometer scale Table 1 as given by Equation 24, which is similar to. Equation 23, but with certain values for G and B exchanged and usitig ' MS . ' instead of AS, while. Equation 21 yields, the quantity (g · b). (¾(jG| 2 ¾ - (G'B)G X ) 2 + G} (\G\ 2 B : a u tion

24)

{0112} D1P3: The error term. DIP3 is given .in ienns of the coefficient ANIL for axiai interference in Table 1 as given by Equation 25, while Equation 21 yields ihe quantity (¾ * ¾·}..

{ 113 J A. generalised method, similar to the first eo. variance matrix, may he used in order to produce a second covarianee matrix ¾ thai describes a set of surveys for a given well, or a number of surve legs comprisin some ' number of eils. Second covariaeee m&ts%x 8} may be impacted by an arbitrary number of errors sources, some of which may be correlated across some; or all of the .surveys based OH which, le or which well the surveys belong to.

ffllMj A .general reference quantity ' , R, of known value is considered,, which may Be, B, . : Q, magnetic dip angle . φ, of another reference va se, where a wsidual value will he- use to measure the quality of a survey, point, A set of surveys ma then be associated with a collection of residual values determined .by. subtracting -measured values of R from associated theoreiical quantities related to R.

[031:5] A design maters A. c be; -constructed usin the partial derivatives of the reference value R-with respect to an error source £ for each measurement of the reference criteria. For a set;of n reference measurements that m be corrupted h «* different error sources, each, error source having a respective magnitude of t¾, the desig matrix A may be is defined as gi ven in Equation 26. A (Equati .26)

I 16] It is noted thai in design TOa rm ^ ilobaliy r0 >a^ted iTO^:m¾ -a ^-SiS : a single error source;, well level errofs may be mc!uded once for each well to which the; well level errors apply,, systematic errors may he inelode oiiee for each survey leg: to which the systematic errors apply, and random errors may be included once for each survey to- hich -the random errors apply,

|Mt7| After computing design matrix , secoad covaxiantriiatrix ¾ may be computed as a generalized, error eovariariee matrix «sing c oss multiplication of desig : malm .. Second eovariant matrix <& may have n x s elements and may relate the expected errors in any reference quantity for any particular surve to the same errors in any ohier reference quantity i« any other survey. : Second, ©ovariaitt matrix & is given by Equation 27, -y — A A— (Equation 27} Eva uat ng QC criteria from multiple surveys M 18] As described with respect; t method, 30Q-1 (see FIGURE 3), aw error eevariaoee matrix Si was used for each individual survey station using the error sources identified in instrument too! codes. M a farther aspect, a determinatio may he made whether the errors hi a new -survey station are consistent wi th the errors observed in prior surve stations along the sarae borehole.. ¾ determination may also ev luate whether the errors fxom a group of survey stations are, . w-heft akee- o eth^.-ace-e l^Iebas^OT error values. In, this maraigr s a eriterioB may he developed to generate new information from a survey station that ma indicate QC escalation of a set of surveys for review by mi expert, toother words* it maybe deteraiined whether the new errors in. a survey are consistent or not with errors from ¾ne or more previotis surveys, such as surveys for the same borehole, among other different kinds of surveys.

18119] in this regard, aeriterior! may be generated for whether a: survey set (¾ 5 a plurality •of. surveys) when . ' taken as. a whole, indicates escalation for review by an expert, for example, for havitie, errors not consistent with reference error values and not consistent with error sources included in the WD tool codes (see Table 1 ).

[0120] It is noted that any so-called "escalatiott.c itedS' * s be: con$id$ ¾d a decision point for an a tom ted drilling sys em, because an automated system may be enabled to evaluate. he escalation criteria and perform the escalation, when indicated.

jiliSl j Accordingly, second eovariance matrix ¾ may he generated for a set of several surveys defined through the propagation modes in the . error values, as described, previously. The second eovariance matrix >¾ for the set of sufveys : may describe how errors in ohs survey affect errors in a different survey within the set of sarveys. For example, the set of surveys may ■' include surveys within (be same bore hole that are made using the same M.WD surveying tool. However,: second chvariahce matr¾ & may he generated for surveys taken by differing survey instruments, or even surveys in different boreholes, because the relationships between varying elements can be derived irem the tool codes used to perform the various ssfirveys; Accordingly, mote than one tool code error value or more than one borehole may form the basis for second eovariance matrix .¾ lor the set of survey s.

f ft 122] Second eovariance matrix. & for the set of surveys may provide a meth diapplieable to notional future surveys that have not been measured yet, but have a theorized orientation that can W used in conjunction with the. error values. Once second eovariance . matrix .¾ is crjustraeted, a. set of surveys can be evaluated b computing a Mahaianobis distance ipr ihe measured values of the Q€ criteria for all surveys. Tire Mahaianobis distance can be used to determine the probability t at a survey tool that meets error expectations produces the measured, values (a P-v l e),

[012 j When only some of the surveys have been measured (but some are -notional ure surve s , the v alues of the measured survey cm be- used t¾- produce a second, eovariance matrix & that reduces the: acceptable QC range for the Mute surveys based en what has already beea measured. The second eovariance matrk.¾ can be iised tO :cale:ulate; : a eo¾ditio«ai Mahalitnpbis distance which may enable acceptance or rejection of the new survey data, in .-the contest of the previous data.

|ίίί24| i¾rtiiermore, tolerances ma be defified: by a user) for both the overall probability (P-value) as well as the conditional Mahafanofeis distance (Tnarginai sigma) thai enable automated acceptance: or rejection of surveys- by a non-expert: rsser, or b automated drilling system. The acceptance ejection criteria can be used to : construct a , more , accurate wellbore, or to alert an expert use that detailed evaluation is indicated.

i25J The QC method involving second eovariance matrix .¾ for the set of surveys ca be usM in coujunctipH with surveys intended for a collision avoidance scan such that a user may be alerted to :a potential iai ure of surveys to accurately convey- risk of a borehole collision.

Couip u ted Coy riauee .Matrix -V?< And. Periy ed H an t? ties, Comg.ii. ted From Error Values pi26J Every; survey s ation along the well trajectory ma foe associated with a different eovarianee m trix ¾ due to the changing orientation of the wellbore. So. for every ; survey station, the elements of eovarianc matrix S ma be computed us¾g. Equations 4 throuia 25 given above, as indicated. .Alter .calculation of the eovariance matrix % the following matrices can he eoniputed: an- inverse: of eovariance. matrix ¾ an eigenvector decomposition of the eovari ance ma trix <¾; a root of the eovariance matrix ; an inverse of the root of the cpvatianee matrix; a miiiimam, intersection with axis, an maximum of the l-sigma ellipsoid witb the titesrciaordittate-is steia. iSi f&t. 8, G. .ma¾ftetk dip ariele cp. These matrices mav be used, to compute QC criteria and display the QC criteria la various different kind s of plots. I n vario us implernetrtations, the fallowing, inputs ma be used, for computations: too! code error •coefficients, weflbore inclination angle, welibore azmiuth angle, gravity reierenee field, and magnetic reference field; ί ' Ά ike x to mg: output ' va ies

matrix., an inverse covar i tKe nratrix, a root covariaace matrix, an inverse Toot covarianee matrix, a projection of aa ellipsoid onto a 3 Coordinate S sieffi: axes, a- minimum i sector, a a maximum in sector.

Ca o ti ting; Statistical istanees And JR arises For A Set Of MWD S » .rveys

10127] For a given set of QC parameter residual values dB, .dG arid &ψ, additional cePjput&iofts: ϊή¾$': .fee performed, such .as ' statistical distances aad ranges tor a set of MWD ssrveys.

Statistical Distance: The statistical distance of a gives; set of rest duals given by a vceto.t r = {dB, dG, d<j>) is. comput d as given by Equation 28.

StMistiml Bistanc:e — ^r^ v ' ^r (E u¾ft6n 28) \&129] Residtjai Statistical Distances: The separate residual statistical distances corresponding to the ' individual B, G and φ axes niay be calculated as projections on a given axis.

[0130] Outer Error Bounds; The outer error bound represent Maxirnura values for the: 3 axes (B, G and φ) of an outer bounding box of the ellipsoid, which is iirrambiguous. Because the masimut values, lie at an extrerpa: point on the ellipsoid, the maxirnum: vajne may be deter.mi.ned by settiag the derivative- of a parameterixattoh to zero aad solving for respective values. o (B, G aad φ). 13tf Inner Error Bounds: Th . ' inner ' error hounds represent miiiiiHiiiTi values for the 3 axes (B, Q and )$ ' iw inner bounding box of the eiiipsdid. 1B contrast to the ioutet bounding box, there may be ambiguity in. delitirag an inner bounding box because of sectors in which one of the (B, G and. φ) may dominate. For thi purpose, sectors may be defined as lines through the ellipsoid and used for ealeuktion of the tmer error bouads by using a root of the covariance nmtr .. Scaling, by fee. signa values instead of the diagonals of the root of the Govariance matrix may also be used.

{M32J After two or more surveys in a set have en collecte arid associated residual values have been com uted, the known eovariauee between the surveys ' ;iti the set and ftiture survey can be used, to further refine the expected errors in futur measurements. Th procedure is similar to tha described above with eavariatu matrix but ..involv s: replacing eova&aut matrix -82 with a new covafiant matrix ¾ thatrnay be a couditional covariarice mau x,. it is noted that similar or quiva ent types of displays and user interfaces used, with covariant an j¾,.

1181.33] Starting itom generalized covariant .matrix .¾ having.;? x « elements, once ' & number Of raeasui^rueiits have been eoiieeteeL partition iuatrix -¾ to. generate a partitioned matrix Ss 1)∑ — error eo variance sub-matrix having k . k elements and containing, the relations of reference mea s urements alread collected; 2)∑ n a sub-matrix having (n-k) x (n-k) elements and containing tire relations of measurements yet to the other having .{n ' -k) xl elements, that contain the relations between sub- matrices∑k and i¾. The partitioned matrix S3 is given by Equations 29 and 30, (Equatioti 29)

(Equation 30)

[0134] A condiiiosal co^ariasce for the r mamiag stm^s^^^ tt ^i eatvbe eonipiiied by taking and sub£raci:i:ng ie variance thai would be explained by the priormeasurements;, as g ven in Equation 31, (EquationJ li

[0135] When evaluating a survey against me eoodmosal eovarianee niairix∑ n .co m t im*a, the erro residuals/ may no longer have azero expectation as errors that are correlated between the two groups of surveys may fee expected to persist Evaluation of survey residuals may then be performed against a conditional center μ that can be computed using a f % k sized vector of measured . residuals, R k and the partitioned matrix components previously defined, as given in Equation 32.

(Equation 32} i j Referring now to FIGURES 3 A, 3B, 3C and 3D, flowcharts of selected elements of an erabodiment of a method 300 for adaptive quality control for monitoring eflbote drilling, as disciosed hereiii^ is depicted:. In FIGURE. -3 A, method 300-1 corrsprislti ; steps 3i)2 tbrougli 318 describe a method of adaptive quality control on a single MWD survey . In HGjURB 3B, inetkid 300-2 comprising steps 320 dirough 328 describes additional operations for evaluatin QC and generating an alarm to indicate that drilling should stop. In FIGURE 3C, method 300- 3 Gomprisiag Stops 330 thr ign 342 describes a .roeihod of adaptive quality control on mnltipie MWD surveys. Ill FIGURE 3D, method 30Θ- comprising step 350 through 356 describes a method of adapti ve quality control on n itrple WS sisrveys for an entire well. Method 300- 4 may be performed after drilling of the well is complete, or ay @' erformed ' dwriag drilling ' of the well . It is. noted IhMissriatn, opet¾tiem described me thod 31)0 tnay be optional or m ay be rearranged in differen embodiments.

|* 1371 Method.,30O-l, may beginin, FIGURE 3 A, at step 3-02, by drilling to a first; survey point specified, io a well plan. At step 304, at th first survey point, an actual magnetic field vecto B asd an actual gravity vector G are measured «s«¾* a WD ' tool and actual magnetic dip angle φ is calculated. At step 396, a reference B r vector are obtained. At step 308, a reference -Gmt vector are obtaine . ' At step, 310 B i s compared with aetiiai B G wr is compared with actual : G, sii ^^ds esi ir^ ith-flCtoai^ to general residsal values. It is noted f h¾t ψα may be;. calculated using B te t and G re i * , At step 3 i¾ MWD tool erro coefficients are obtained. At step 314, a : statistical distance: using the residual values for B, G, and φ is computed. At step 3.1 f>, a σ threshold is obtained.. At step the statistical distance is •eva jiated agaiust ihe o thresliold for QC vaiidatiori. After step 318, meiftod:300-] may proceed to method 300-2; in IGURE 3B .

191.38] Method 300-2, may begin in FIGURE 3B, at step 320 (Irom either step 31 or Step 342), by nrnking a de isioO : whether Q€: passed- When the decision in step 320 is YES a¾if QC passed, at step 326, a decision is made w hether drilling is done. When the deci sion hi step 326 is ΝΘ and drilling is not done, niettod 300-2 ma proceed to step 330, When the decision is step 326 is YES and drilling is done, method 300«2. m proceed tostep 3.5 When the decision in step 320 is .^ 0.and QC failed, at step 322, an alarm to stop dril ling and an indication for expert r view of survey results are generated. The alar m in step 322 may be a simple audio or visual indication. The alarm in step 322 may be a message to a control system of a ' drilling, sy tem to stop drilling. At ste 324, a decision, is made .whether it is ok to resume drilling. When the decision in. step 324 is YES; arid it is ok to esnme drilling, method 300-2 may proceed to step 330. When the decision in ste 324 is O: and it is not ok to resume drilling, at step 328, m ia icaaioii. is generated to repea the previous survey. After step :32s, method 300-2 may proceed to step 3¾S

101391 Method 300-3, may begin in FIGURE 3C, at step 330 by continuing to a rasj_t survey- poifit in the well plan, At step 312, MWD tool eiror coefficients are obtained. At step 332, the statistical distance calculation is updated using previously accepted, surveys and associated error values. At step 334, second reference values for B, and φ are calculated. At step 336, at a next survey ρόϊη actual magnetic field vector S and actual gravity vector G are measured using an MWD tool a d actual magnetic dip angle φ is calculated. At step 338, actual B, and φ values are compared with the second reference B, G and φ values io generate second residual values, Atstep 34ft, a second statistical distance is calculated usirjg the second residual values for M f G and φ and the statistical distance ealcvdation updated in step 332 T At step 316, ¾ o threshold is obtained. At step 342, the . second statistical distance is evaluated, against the σ threshold lor QC validation,

[0140] Method 300-4, may begin in FKitiRE 3D, at step 350 by updating: the statistical distance calculation for set of surveys for entire well. At step 352, a statistical probability Is computed using the updated statisiical distance ^calculation in step. 350. At ste 3 t6, aj¾ threshold is obtained. At step 356, the second tatistical distance is evaluated: against the threshold Sir QC validation 1 of the entire well.

Displaying, the , C , criteria

{01 1 j In IGURES 4 through 1 1 , 12A, and 12B, various user interface eleme ts showing Q criteria and indications of QC results are depicte as may be displayed to a user. The display of th plots ai¾&- : giap&s,m IlGURBS :4..i¾rougii I I , 12A. and i :2B r»ay be generated for visualization and. use by the user -.during drilling or for post-drilling analyses. As noted previously, QC criteria for (B, Q and ©) ma be maAermtiea!ly illustrated . s a, 3 ' P ellipsoid. As shown m FIGURE 4, if a sigma value of 2.8 (¾5% confidence in 3D) is used to compute error ellipses for well piaaaiag, then any residual value vector of (d ¾ dB an ύ ) that lies outside : ©f 2.iS times the l -sigma erro ellipse can be considered to l tile - QC criteria ^ However, while exact QC thresholds for parameters may not be definable, areas in 2D (or volumes in 3D) can be define wii¼tt-w&i , . &e,^t © may pass QC (QCP), may pass: or : 1 QC (QCRF), or may fail QG:(QCF), as shown in FIGURE- 5, which depicts a 2D projection of ati ellipsoid 502, . such as the ellipsoid shown in. FIGURED 4,

J 0142 j Referring now id FIGURE 6, a plot of overall sMisiieal. distances is shown. In FIGURE 6, fe statistical distance (or 3D sigma) as disclosed herein Is shown. PliQURE. 6- shows an easy to understand display becaiise a threshold line shows rf the- value is above or below a threshold value for the survey to fail QC, In FIGURE 6, a dark plot 602 represents the second- statistical distance described in method 3f)0 :S while a light plot 604 represents die first Statistical distance described is method 300. A constant 2o value is shown as a : threshold line 606 for ease of evaluation. As is evident from FIGURE 6, the use of mul tiple surveys and the second statistical distance results in

[91 3] Irs FIGURES 7, 8, and 9, plots of residnal distances alon with certain QC thresholds are shown for ' B, G mid φ respectively,: The plots · in FIGURES 7-9 are for the same QG analysis as shown m FIGURE 6 above. In FIGURES 7-9, a light line 702 are QC limit as calculated using a conventional method specified in Society of Petrol eum Engineers (SPE) Ptiblicatio!i No. 103734, a dark line 704 are QC limits as calculated using method 300-3 in FIGURE 3C, while data points are /the respective measurements (B 706 in FIGURE 7; G 708 in FIGURE 8, and f 710 in FIGURE 9). It is noted that QC limits 702 are symmetrical and centered ahout zero, while QC limits 704 are adaptive and are not symmetrical and are not centered about zero.

[Θ1.44} R$fe$ng now to FIGURE 10, a plot of overall survey likelihood tprobabihty) is shown. The plot in FIGURE 10: is for the same QC analysis as shown in FIGURE 6 above. In FIGURE ίβ, a threshold liiie at 10¾ probability of a survey passing QC is used , FIGURE 10 shows an easy to; understand, display because a ¾^¾ο ίη^ : §ίΐ0*$·.ιί¾β· ·' ν¾1.αβ is above or b lo a thres^y : .vaiue er/]flie-SHrv!^.<»---^ l QC.

18145] in FIGURES 6 through .10, a QC analysis: dining drilling of a weilbore is depicted ■&nd the individual data points each correspond to an MWD survey along the weilbore at the corresportdiiig measured depth. For xam le, viewing FIGURE 6 an overall, description of the QC process may fee better understood. After ike first survey point 610 is takes, a QC fail result is generated tb¾ ' i dicates drilling §hoi d stop. Theo^ npd &r ter anaiysis > drilling: is allowed

second statistical distance 602 falls below the a threshold and QC passes for ail surveys until survey point 612 at abo t 1 ,300 m is performed that fails QC. Analysis of the individual residual' alue plots shows that, the failure of QC is due to increased error in magnetic field 8,. seen from data point 7 Iti in FIGURE 71 In partieular, in FIGURE 6, die eoroparison between first statistieai distance 601 and. secoad statistical distance 602 shows bow adaptive QC cap improve reliability of QC and prevent false positives that may indicate too many " -drilling stops, even when nteasiirefnerits :are ih : fact acceptable,;

[0146] In FIGURE 1 1 , a display to a- user is depicted in the form of residual value plots (e.g. , centered, about ¾§io) for B, G and ψ respectively, along with respective adaptive- QC criteria, such as ma be- pateulatgo * usi ' ag co arisat.taa&fe¾S " -l¾. 5¾ or ' Si,, as described above. I FIGURE 12A, a display to a user is depicted in the form of an actual value plot (e.g . , centered about 3; Bieastrred value) for magnetic field B, aiong with respective adaptive QC criteria, . uch as may be calculated using covariant matrices & or S, as described above: In FIGUR 1233, a display to a user is depicted in the form of aa actual value lot (e.¾., centered about a measured value) for magnetic dip ngle: f , along with. respective adaptive QC criteria, such as ina be calculated using covariant matrices J or ¾ as described above, in particular, the plots in FIGURES ! 1, ! 2A and Γ2Β axe shows as respective plots of measme∞eirt values Ixmadecl by inner limits and outer limits: In FIGURES 11 , .12 A an 12B ¾: the inner limits may indicate pass or fail of ihe measurement values an the oiiier limits may - ' indicate fail of t¾e me-asnreraent values, wiikrespee to adaptive QG eriteria. For example, in FIGI ES OA and 1 ' 2B, . ' both ihe inner limits and the outer limits narrow the bounded ranges as drilling proceeds, whic indicates th t tfie QC criteria ar adaptive to previous measurements and incorporate constraints on. measured values from previously measured values, such as calculated using covariani iftatri & during .{killing, for exa ple In FIGURES 12A and .12B, : the area between the inner limits is displayed as a first colo * and: the area between each inner limit and: the. corresponding outer limit is displayed as a second color. In. FIGURES 12 A and f 28, the first color may be green, while: the: second color m&y be yellow,, for example:. In FIGURES 12 A and 12B, the are beyond the .outer limit may be displayed in a third color, which may be red, for example.

[Θ 1.47] In s»tm¾ar?, methods are disclosed for validating directional surveys. The methods disclosed herein describe how errors in the survey are evaluated against various error values to deteranne if the errors pass of fail QC standards. When the errors are found to fail QC standards by an of the methods disclosed herein, an automated drilling system ineorprjrating the methods disclosed herein may make a determination whil drilling. For example, the automated drilling system may determine that drilling, according to a given drilling plan may continue. In another example, the automated .drilling system- may determine drat drilling according t the drilling plan skouid be stopped and- may generate . corresponding alarm., in yet another example, the automated drilling system may determin that drilling according to the drilling pfan can continue, but that evaluation of certain surve data : or certain errors round in the survey data should be escalated for evaluation b an expert, . In this i¾t ner, the methods and determinations described herei may support automated drilling and the use of an automated drilling system, and; may enable precise, accurate, and safe drillin by relatively inexperienced personnel, because the automated drilling system can; implement validation of directional surveys,, as. disclosed herein,

$148] As disclosed herein, a method of validating a direetiona! survey indiides: measaring the gravity and magnetic field vectors using a surveying tool and. computing an overall statistical dist nce of die measurement. The; statistical distance may be calculated from reference values associated with ' .the ' surveying tool using corresponding sisrveyieg tool codes, in a; further as ect, an. error covaxiauee matrix ma be use to detennine whether t¾e new : errors in a survey are consistent or sot with errors fr m se or more . revioos surveys,

[0149] The above disclosed, subject matter is io be and not restricti e, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments which fall within .the true spirit, and scope of the present disclosure. Thus., to the mas im m ex tent allowed by law, the scope of the present disclosure is to be deterniraed by the broadest pemnssiMe H erpretatiQn of the following claims and. their equivalents, and shall not be restricted or limited by the foregoing detailed description.