DETERMINING THE SHAPE AND ORIENTATION OF A BOREHOLE

Abstract: A method and apparatus (10) are provided for estimating the cross-sectional shape and orientation of an earth borehole (12) and the motion of a tool therein. The method and apparatus involve measuring the distance (30) from the tool to the borehole wall at a plurality of locations around the periphery of the tool and fitting those measured distances to a predetermined shape function using a nonlinear parameter estimation technique to minimize the error between the estimated shape of the borehole and the measured distances. The method and apparatus may be used to estimate elliptical and higher order borehole shapes. Additionally, the method and apparatus may be used while drilling the borehole.

Description: DETERMINING THE SHAPE AND ORIENTATION OF A BOREHOLE This application claims priority from United States provisional application Serial No. 60/090,709 filed June 26, 1998 and United States application Serial No. 09/161,107 filed September 25, 1998. BACKGROUND OF THE INVENTION 1. FIELD OF THE INVENTION This mvention relates generally to a method and apparatus for determining the shape and orientation of a borehole traversing an earth formation and the motion of a tool within the borehole while drilling the borehole. More specifically, this invention relates to a nonlinear parameter estimation technique used to approximate the shape of an earth borehole by measuring the distance from the tool to the borehole wall at a plurality of locations around the periphery of the tool and fitting those measured distances to a predetermined shape function in such a manner as to minimize the error between the estimated shape and the measured distances. 2. DESCRIPTION OF THE RELATED ART The cross-sectional shape of a borehole traversing an earth formation is useful in ascertaining other valuable information regarding various properties of the formation, such as stress, porosity, and density. Several methods to obtain information about the shape of a borehole are described in U.S. Pat. No. 5,469,736 to Moake, U.S. Pat. No. 5,638,337 to Priest, U.S. Pat. No. 5,737,277 to Priest, and references cited therein, each of which is incorporated herein by reference. Such methods generally employed acoustic or mechanical calipers to measure the distance from the tool to the borehole wall at a plurality of points around the perimeter of the tool. However, the method described m the '736 patent appears to be based on the assumption that the borehole shape is circular, or at least that the shape may be approximated by an "equivalent" circle, i.e., a circle having an area equivalent to that of the actual borehole. A significant drawback to that method is that, in reality, the borehole shape is often not circular but is rather of an elliptical or even more complex shape. Therefore, under many circumstances, that method does not accurately describe the true borehole shape. Furthermore, although the methods described in the '337 and '277 patents do account for the elhpticity of a borehole and tool rotation during measurement, those methods assume that the tool does not translate in the borehole during measurement. During drilling operations, however, the tool is rarely free from translational motion. Thus, those methods generally do not provide satisfactory results in a measuring while drilling (MWD) mode of operation. Additionally, the '337 and '277 patents do not account for borehole shapes that are more complex than an ellipse. Regarding the motion of a rotating tool within a borehole, U.S. Patent No. 4,958,125, issued Sept. 18, 1990, to Jardine et al., discloses a method and apparatus for determining the lateral acceleration of the tool using accelerometers. As discussed below, the method of the '125 patent is directed to a vertical drill string orientation and does not account for the contribution of gravity to the accelerometer signals. However, in modern petroleum well drilling and logging, the drill string is frequently not m a vertical orientation Thus, the method and apparatus of the '125 patent does not solve a significant problem m the art. It would, therefore, be a significant advance m the art of petroleum well drilling and logging to provide a method and apparatus for accurately determining the shape and orientation of an elliptical or more complex earth borehole and the motion of a tool therein while drilling the borehole in any general inclined direction. SUMMARY OF THE INVENTION Accordingly, it is an object of this invention to provide an improved downhole method and apparatus for accurately estimating the shape and orientation of an elliptical or more complex earth borehole while drilling said borehole. Additionally, it is another object of the present invention to provide an improved method and apparatus for calculating the lateral motion of a drilling tool withm an elliptical or more complex earth borehole while drilling said borehole BRIEF DESCRIPTION OF THE DRAWINGS This invention may best be understood by reference to the following drawings: Fig 1 is a schematic elevational view of an MWD tool in accordance with the present invention disposed withm an earth borehole. Fig. 2 is a schematic sectional view of an MWD tool in accordance with the present invention disposed withm an earth borehole. Fig. 3 is a graphical representation of distance and angle measurements made by an MWD tool in accordance with the present invention at two different tool locations withm an earth borehole. Figs 4a, 4b, and 4c are graphical views illustrating a coordinate transformation in accordance with the present invention. Fig. 5 is a schematic cross-sectional view showing the arrangement of accelerometers in an MWD tool in accordance with the present invention. Fig. 6 is a schematic elevational view showing the gravitational acceleration of an MWD tool in accordance with the present invention when said tool is inclined with respect to the vertical. Figs 7a, 7b, 7c, and 7d are graphical views illustrating four nonconsecutive iterations of a parameter estimation process in accordance with the present invention. Fig. 8 is a schematic cross-sectional diagram showing a rotating coordinate system (x',y') and a fixed coordinate system (x,y) for the apparatus DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT Referring to Fig. 1, a preferred embodiment of this invention comprises a tool 10, preferably an MWD tool, mounted in a section of a rotating drill string 18 disposed withm a borehole 12 traversing an earth formation 24. A drill bit 22 is mounted at the bottom of the drill string 18 to facilitate the drilling of the borehole 12. Drill bit 22 is connected to the drill string 18 with a drill collar 14 Tool 10 preferably includes three distance sensors 30 (only two are shown in Fig. 1) to measure the distance from the tool 10 to the borehole wall 20 and at least one angle sensor 40 to measure the orientation of the borehole 12 with respect to a reference direction, such as the direction of the earth's gravity or the direction of magnetic north. Tool 10 also preferably includes two pairs of accelerometers 80 (only one pair is shown in Fig. 1) and a high-pass filter 90 to help define the motion of the tool 10 withm the borehole 12. Additionally, tool 10 comprises a signal processor 50 to process the signals from the distance sensors 30, angle sensors 40, and accelerometers 80 in order to determine the shape and orientation of the borehole 12 as well as the motion of the tool 10 withm the borehole 12. Tool 10 further includes at least one of the following data disposition devices, namely, a data storage device 60 to store parameter estimation data and a data transmitter 70, such as a conventional mud pulse telemetry system, to transmit parameter estimation data to the surface. The dist ance sensors 30 are preferably acoustic calipers (transceivers) of the type disclosed m application Ser. No. 08/920,929 filed August 29, 1997, by Arian et al., which is incorporated herein by reference. Alternatively, the distance sensors 30 may be conventional mechanical calipers or electrical resistance sensors. In a preferred embodiment, three distance sensors 30 are equally spaced (120° apart) around the perimeter of the tool 10, as shown m Fig. 2 The angle sensors 40 are preferably magnetometers, inclinometers, or accelerometers, however, other sensor types, such as gyroscopes, may also be used. The function of the angle sensors 40 is to provide a sinusoidal electrical signal as the tool 10 rotates that indicates the orientation of the tool 10 with respect to either the direction of gravity or magnetic north. A gravity-type sensor (such as an inclinometer or accelerometer) does not function satisfactorily when the axis of the tool 10 is aligned with the gravitational direction (i.e., m a vertical orientation), and a magnetic-type sensor (such as a magnetometer) does not function satisfactorily when the axis of the tool 10 is aligned with the magnetic north direction. Therefore, the tool 10 should preferably comprise at least one gravity-type sensor 40 and at least one magnetic-type sensor 40 so that a satisfactory angle signal is acquired for any orientation of the axis of the tool 10. According to the present invention, (1) the distance from the tool 10 to the borehole wall 20 is measured at a plurality of locations around the periphery of the tool 10 and (2) the rotational angle of the tool 10 with respect to a reference direction, such as the direction of gravity or magnetic north, is measured. These distance and angle measurements are made at a plurality of times corresponding to a plurality of different rotational positions of the tool 10 within the borehole 12. The measured distances and angles are then optimally fit to a predetermined shape function using a nonlinear parameter estimation technique to minimize the error between the estimated shape and the measured distances. For an elliptical shape approximation, the plurality of measurement times must be at least two, and for more complex shapes described by more than three parameters the plurality of measurement times must be at least three or more, depending on the complexity of the shape. For purposes of discussion only, and without limiting the scope of the present invention, each set of distance and angle measurements associated with a discrete measurement time will be referred to as a "firing" in accordance with the use of acoustic calipers as the distance sensors 30. Referring to Fig. 2, the shape and orientation of an elliptical borehole 12 may be defined by specifying the major radius, r x , the minor radius, r y , and the angle y between the major axis and a reference direction, x, such as the direction of gravity or magnetic north. The position of the tool 10 within the borehole 12 may then be defined by specifying the coordinates (xc,yc) of the tool center and the angle # between a reference radial line on the tool 10 and the reference direction, x. For simplicity, the reference radial line is preferably aligned with the first distance sensor 30. For each firing, the acoustic distance sensors 30 measure the distances ώ (i = 1, 2, 3) according to the equation = Eq. [l] where υ m is the acoustic velocity through the mud between the tool 10 and the borehole wall 20 and t is the round trip transit time of the acoustic signal between the tool 10 and the borehole wall 20 The distances r, (i - 1, 2, 3) from the center of the tool 10 to the borehole wall 20 are then calculated according to the equation r, = d, + r, Eq. [2] where n is the radius of the tool 10. Also at each firing, the angle sensors 40 measure the rotational angle θ. Thus, each firing n (n = 1, 2, 3, . . . , N) produces the following set of data: data n = {r ,r 2 ,r i ,θ „ Eq. [3] Figure 3 depicts the distances r h angle θ, and tool center coordinates (xc,yc) for two sample firings of the tool 10 (not shown). Referring to Figs. 3 and 4a, each of the measured points An, B n , and Cn on the borehole wall 20 may be defined with coordinates (x,y). In the parameter estimation process, an error function must be defined in order to compare the measured data points 120 to the estimated shape 112 of the borehole 12 Although the error function may be defined in any desirable way, a preferred error function is proportional to the distance between a measured point 120 and the estimated shape 112. A parameter optimization method is then used to minimize the error function m order to accurately estimate the shape. The Levenburg-Marquardt method is a preferred nonlinear least squares method that yields good results and has robustness at the initial estimate and quadratic convergence near the solution. The Levenburg- Marquardt method is disclosed by Gill et al. in "Practical Optimization," Academic Press, New York (1981), which is incorporated herein by reference Nevertheless, other well known methods — such as neural networks, genetic algorithms, Monte Carlo methods, and simulated annealing — may also be used To that end, again referring to Fig 4a, the distance d from the origin to an arbitrary point 120 having coordinates (x,y) is given by the following equation The angle φ between the reference direction x and a line from the origin to point (x,y) is given by the relation φ = tm ~l (y,x) Eq. [5] For ease of computation, the coordinates of each such point 120 are transformed from the (x,y) system into the (x",y') system as shown in Figs. 4a, 4b, and 4c. The first step in the coordinate transformation is to rotate the axes by the angle — ^ to align the axes of the ellipse with the coordinate axes (Fig. 4b). Then, the x and y coordinates are divided (scaled) by the ellipse major and minor radii, respectively, such that the ellipse becomes a unit circle (Fig. 4c). Thus, the transformed coordinates (xτ,yτ) in the (x",y') system are defined by the equation { x τ ,y τ ) sm(φ - Eq. [6] The difference, or error, between the measured point and the estimated ellipse then becomes X ' + yι Eq. [7] or Substitution of Eqs. [4] and [5] into Eq. [8] and combining like terms yields the following error function for a single point: Eq. [9] In a preferred embodiment, the three acoustic transceivers 30 are spaced 120° apart circumferentially on the tool 10. Thus, the first transceiver 30 is at an angle Θ, and the second and third transceivers 30 are at angles [θ + (2π/3)] and [θ + (4π/3)], respectively. Given this known sensor geometry and the measured distances n, the combined nonlinear least squares error function E n for each firing then becomes 3 E n ^ x ^ ψ^c ^ yc ^ data^ ∑e^x ^ y ^ r ^ r^ ψ) ι=l = e 2 ((xc„ + r, cos(θ)),(yc n + r, sin(0)),r, ,r , ^) -jjj,r x ,r y , ψ + e Eq. [10] where n and 0 are measured by the tool 10, r x and r y are the estimates of the major and minor radii of the ellipse, ψ is the estimate of the orientation angle of the ellipse, and (xc,yc) is the estimate of the location of the center of the tool 10. The overall error vector {ET} for N total firings is then given by the equation {E T } = {E i ,E 2 ,E 3 ,...,E N } Eq. [11] The parameters to be estimated are contained in the parameter vector {X} as follows: {X} = {r x ,r y , ψ,xc x ,yc λ ,xc 2 ,yc 2 ,...,xc N ,yc N } Eq. [12] The parameter estimation process begins with an initial estimate for {X}. A reasonable initial estimate is to set r x and r y to the average of all the measured r, and set the remaining parameters to zero. The Levenburg- Marquardt method is then iteratively applied until the incremental change in the parameters falls below an acceptable threshold. Each iteration involves four steps: (1) computing the error vector {ET}; (2) computing the Jacobian matrix [J], which is comprised of the partial derivatives of the error functions En with respect to each estimated parameter; (3) computing the parameter adjustment vector {p}; and (4) updating the parameters {X}. The terms of the Jacobian matrix [J], which is a measure of the sensitivity of the error function to each estimated parameter, are defined as follows: cE where X m denotes the various parameters comprising {X), and n=l,2,3,...N and m=l,2,3,...2N+3. The parameter adjustment vector {p} is then calculated according to the equation {p} = -PseudoInverse([J] T [J] + λ[I])([J] τ {E τ }) Eq. [14] where [J] τ is the transpose of [J], λ is the Levenburg-Marquardt parameter that defines the step size for each iteration, [i] is the identity matrix, and {ET} is the value of the error function at the current parameter values. The parameters are then updated according to the relation {X} = {X} + {p} Eq. [15] and the process is repeated until the incremental change in the parameters falls below a specified threshold. Finally, convergence of the solution for {X} is verified by ensuring that the terms of {ET} are below a similar specified threshold. To perform these calculations, a properly programmed digital computer or microprocessor is very useful, particularly for calculating the partial derivatives comprising the terms of the Jacobian matrix [J]. Depending on the number of firings, each of the partial derivatives may contain hundreds of terms. A symbolic manipulator such as Mathematica ® is a preferred means for performing these calculations. Table 1 contains sample Mathematica ® code for generating the Jacobian matrix [J] and applying the Levenburg- Marquardt minimization technique. Figures 7a (iteration 1), 7b (iteration 5), 7c (iteration 10), and 7d (iteration 16) illustrate four nonconsecutive iterations of a sample parameter estimation process in accordance with the present invention. In those figures, the shape indicated by the solid line 112 is the shape defined by the estimation parameters {X}, and the points 120 connected by the dotted line represent the measured points on the borehole wall 20. As seen in these figures, the process yielded a close fit of the estimated shape 112 to the measured points 120 within sixteen iterations. Solving for {X} in the above manner defines (1) the shape and orientation of the borehole 12 and (2) the location and rotational orientation of the tool 10 within the borehole 12 at a plurality of times. In turn, that information allows the calculation of the lateral motion of the tool 10 within the borehole 12. Specifically, the lateral translational displacement s n is readily obtained according to the equation s„ = (* c « + ι - c «) 2 + ;c « + ι - yc* ) 2 E q- t 16 l Then, the lateral translational velocity υ n and lateral translational acceleration a n are obtained by calculating the first and second derivatives, respectively, of s n . Similarly, the rotational velocity ω and rotational acceleration a of the tool 10 are obtained by calculating the first and second derivatives, respectively, of the rotational displacement #with respect to time. Such information regarding the tool motion is extremely valuable to drilling operators in order to adjust drilling parameters, such as weight on bit and drill string rotation speed, to avoid damaging motion such as bit whirl and thereby prolong the service life of the drill bit 22. The method described above works well when measurement noise is negligible; however, in the presence of significant noise (e.g., 2% relative amplitude), the above method can in some cases greatly overestimate both ellipticity and tool motion. To obtain accurate estimates in the presence of measurement noise, the error function may be modified to include error terms proportional to the lateral translational displacement, s n . By minimizing the estimated displacement, the modified method prevents overestimation of tool motion, which in turn prevents overestimation of ellipticity. The modified error vector is composed of the error vector of Eq. [11] appended with N-l additional terms consisting of the translational displacement s n multiplied by a weighting coefficient: {E τ }= {E ] ,E„...,E n ,w - s ] ,w - s 2 ,...w -s M _ ] } Eq. [17] The weighting coefficient, w, should be large enough to prevent overestimation of tool motion when the noise amplitude is large and small enough to prevent underestimation of tool motion when noise is negligible. In practice, w is chosen such that the values of (w ■ s«) are about the same order of magnitude as the values of E n . To further enhance the parameter estimation process, a plurality of accelerometers 80 (Fig. 1) may be used to provide additional data used to improve the accuracy of estimates of the tool center locations (xc n , yc n ). When the caliper data contains significant levels of noise, the solution {X} can either be non-unique or can fit several shapes within a given upper bound on the error {ET}. By supplementing the error {ET} with an additional error function using accelerometer data, constraints are imposed on the estimation of the locations (xc, yc n ), which improves the uniqueness of the solution {X}. Specifically, the estimated tool location can be improved by concurrently minimizing both the error {ET} described above and either (1) the difference between center locations (xc n , yc n ) estimated from acoustic caliper measurements and those obtained from accelerometer measurements or (2) the difference between the lateral acceleration estimated from acoustic caliper measurements and the lateral acceleration estimated from accelerometer measurements. Referring to Fig. 5, a preferred embodiment of the present invention includes two pairs of accelerometers 80 located at the ends of two coplanar, orthogonal drill collar diameters. United States Patent No. 4,958,125, issued Sept. 18, 1990, to Jardine et al., discloses a method and apparatus for determining characteristics of the movement of a rotating drill string, but the method for determining lateral acceleration in the '125 patent is directed to a vertical drill string orientation. Still referring to Fig. 5, for accelerometers oriented such that acl and ac2 are on one diameter and ac3 and ac4 are on an orthogonal diameter, the '125 patent sets forth equations of motion in the following form: acl = ac + a cos β ac2 = ac - a cos β Eqs. [18] ac3 = ac + a sin β ac4 = ac - a sin β where ac is the centripetal acceleration, a is the lateral acceleration, and β is the angle between the acl/ac2 diameter and the lateral acceleration vector a. From Eqs. [18], the '125 patent derives an expression for the magnitude of the lateral acceleration a in the following form: a = {[(acl - ac2) / (2)] 2 + [(ac3 - ac4) / (2)] 2 }* Eq. [19] The direction of the lateral acceleration is determined by the following expression tan β = (ac3 - ac4) / (acl - ac2) Eq. [20] and the lateral acceleration a in vector form is α = | f_ac\-_ac2 _ ac3-_ac4λJ E q. [21] Obviously, Eqs. [18] do not contain any gravitational acceleration terms. Thus, Eqs. [18] correctly describe the tool motion only if the tool is oriented vertically such that the lateral component of the gravitational acceleration is zero. To describe the tool motion accurately if the tool is in some general, inclined orientation, the equations of motion must include the gravitational acceleration terms as follows: acl = ac + α cos β + g sin α cos γ ac2 = ac - a cos β - g sin α cos γ Eqs. [22] ac3 = ac + a sin β - g sin α sin γ ac4 = ac - a sin β + g sin α sin γ where g is the earth's gravitational constant (9.81 m/s 2 ), α is the inclination angle of the tool axis with respect to the vertical 150 (as shown in Fig. 6), and γ is the angle between the acl/ac2 diameter and the g sin α direction (as shown in Fig. 5). With the gravitational terms included, neither Eq. [19] nor Eq. [20] holds true for a general orientation of the tool axis. Thus, for a general orientation, another method is needed to determine the magnitude and direction of the lateral acceleration a. The present invention solves this complication caused by the presence of the gravitational acceleration terms in a general, inclined drill string orientation by incorporating a high-pass filter 90 (Fig. 1) to eliminate those terms. This solution is possible because the rotational frequencies of typical drilling speeds are well below the frequencies of the lateral accelerations of interest. Thus, the gravitational acceleration terms, which vary periodically at the frequency of the drill string rotation, can be safely eliminated without corrupting the lateral acceleration signals. After filtering in this manner, the governing equations of motion revert back to Eqs. [18], and Eqs. [19] and [20] may be used to determine the magnitude and direction of the lateral acceleration α. The lateral velocity υ may be calculated by integrating the lateral acceleration α once, and the lateral displacement s may be calculated by integrating the lateral acceleration a twice. Because the tool 10 is rotating, the initial measurement of the lateral acceleration a is with respect to a rotating coordinate system (x',y'), as shown in Fig. 8. However, the motion of the tool 10 is needed in the fixed reference frame of the borehole (earth). Thus, the lateral acceleration measurement must be converted to a fixed coordinate system (x,y) by way of a coordinate transformation. Referring to Fig. 8, the orthogonal components of the lateral acceleration a in the rotating coordinate system are represented as A x ' and A y '. The rotating coordinate system is rotationally displaced from the fixed coordinate system by an angle ξ. Therefore, the orthogonal components, A x and A y , of the lateral acceleration α in the fixed coordinate system are calculated as follows: Ax = A ' COS ξ + A y ' sin ξ Eq. [23] A y = -Ax' sin ξ + A y ' cos ξ Eq. [24] The angle ξ (m radians) is obtained from the following relation: where ξo is the initial value of the angle ξ, ω is the angular velocity (in radians/second) of the tool 10, and t is time (in seconds). Because the actual value of the initial condition, ξ 0 , is not important for purposes of this invention, ξ 0 may be assumed to be zero. The angular velocity ω is readily calculated by computing the time rate of change in the angle Θ (Fig. 2). After converting the lateral acceleration a into the fixed reference frame, the signal processor 50 is then used to integrate the lateral acceleration a once to obtain the tool's lateral velocity υ, and twice to obtain the tool's lateral displacement s. The lateral acceleration a n and lateral velocity Vn at time for tool center location (xc n ,ycn) are then used to specify a region in which the next tool center location xcn+ ycn+ must fall at time . Assuming that the lateral acceleration a is constant between times t n and +i, the distance s n through which the tool center would travel over that time span is approximated by the equation sn = (u„)(Wι - t») + (%)(o»)(Wi - t„) 2 Eq. [26] The distance S will be in the direction determined according to Eq. [20]. In Eq. [17], additional elements of the error vector are defined in terms of the displacement s n derived from the acoustic calipers. In a similar fashion, additional elements of the error vector may be defined in terms of the difference between the displacements s n and s n ' derived from the acoustic calipers and the accelerometers, respectively: {E τ }= {£, , E ,...,E N ,F ,F 2 , ...,F N _ ] Eq. [28] Again, the weighting coefficient W« is chosen such that the F n terms are generally no larger than the En terms at nominal measurement noise levels. The point defined in this manner is then given a tolerance to define a region in which to constrain the location of the subsequent tool center location The estimated tool location may also be improved by concurrently minimizing {ET} determined according to Eq. [11] and a supplemental error vector that is the weighted difference between the lateral accelerations a n and a 'n estimated from acoustic caliper measurements and accelerometer measurements, respectively. A lateral translation acceleration vector can be derived from the locations (xc n , yc n ) using the following second order finite difference formula a„ - 2*„ + , ), (y„ +1 - 2 y„ + y n _ 4 )) Eq. [29] and the magnitude of the difference between the acceleration estimates is Eq. [30] The supplemental error vector {FT} is defined as follows: {Fτ}={Fι,F2,F 3 , ... ,FN} Eq. [31] and the terms of {FT}, which are the weighted differences of the accelerations, are obtained according to the relation where W a is a weighting (scaling) factor chosen such that the size of the error for the accelerometer data is no greater than that for the acoustic caliper data. An augmented error vector {ET' } is then defined by the concatenation of {ET} from Eq. [11] and {FT} from Eq. [31] as follows: {ET'} = {Ei, E 2) E3, . . . , EN, Fi, Fa, F 3 , . . . , F N } Εq. [33] By minimizing {ET'}, this invention concurrently estimates the borehole shape and minimizes the difference between the lateral acceleration derived from acoustic caliper measurements and the lateral acceleration derived from accelerometer measurements. In a similar fashion, additional error elements may be defined in terms of higher order derivatives of the tool motion. The derivatives can be formulated in terms of finite differences and may use interpolation methods and other numerical differentiation methods. The first and th order finite differences may be defined as follows: D^ [x n ]= D m [x n + l]- D [x H ] Eq. [35] The mth order error term may be defined in terms of the difference between the mth order finite differences of displacement D m [s n ] and D m [s'n] for the acoustic calipers and accelerometers, respectively: JE }= ^ λ , E x , ... E N , F λ F 2 ", ... , F N _ } Eq. [37] All of the required calculations discussed above are performed by signal processor 50, which preferably comprises a properly programmed microprocessor, digital signal processor, or digital computer. Although the above discussion pertains to the estimation of an elliptically shaped borehole, persons reasonably skilled in the art of petroleum well drilling and logging will recognize that more complex shapes may also be estimated according to the method of this invention by specifying appropriate lδ parameters to define the more complex shapes. For example, a borehole shape corresponding to an Oval of Cassini defined by the formula (x* + y 2 + b*) - 4b 2 χz = k 2 Eq. [38] could be estimated by specifying the parameters b and k, where b < k. Finally, although the foregoing specific details describe a preferred embodiment of this invention, persons reasonably skilled in the art of petroleum well drilling and logging will recognize that various changes may be made in the details of the method and apparatus of this invention without departing from the spirit and scope of the invention as defined in the appended claims. Therefore, it should be understood that this invention is not to be limited to the specific details shown and described herein.

Claims: CLAIMS We claim: 1. An apparatus for estimating the actual cross-sectional shape and orientation of an earth borehole comprising: (a) a rotatable tool having (1) a plurality of distance sensors for generating standoff signals representative of respective standoff distances from each of said distance sensors to respective points on the wall of a borehole at a plurality of measurement times, and (2) at least one angle sensor for generating rotational orientation signals representative of the rotational orientation angle of said tool with respect to a reference direction at said plurality of measurement times; and (b) a signal processor for calculating an estimate of the actual cross-sectional shape and orientation of an earth borehole based on said standoff signals and said rotational orientation signals. 2. The apparatus of claim 1 wherein said signal processor is mounted to said tool. 3. The apparatus of claim 2 wherein said tool further comprises a data storage device in communication with said signal processor. 4. The apparatus of claim 3 wherein said data storage device stores data representative of said standoff distances and said rotational orientation angles. 5. The apparatus of claim 3 wherein said data storage device stores data representative of said estimate. 6. The apparatus of claim 2 wherein said tool further comprises a data transmitter in communication with said signal processor. 7. The apparatus of claim 6 wherein said data transmitter transmits said standoff signals and said rotational orientation signals to the earth's surface. 8. The apparatus of claim 6 wherein said data transmitter transmits signals representative of said estimate to the earth's surface. 9. The apparatus of claim 1 wherein said signal processor is located at the earth's surface. 10. The apparatus of claim 9 wherein said tool further comprises a data storage device. 11. The apparatus of claim 10 wherein said data storage device stores data representative of said standoff distances and said rotational orientation angles. 12. The apparatus of claim 9 wherein said tool further comprises a data transmitter. 13. The apparatus of claim 12 wherein said data transmitter transmits said standoff signals and said rotational orientation signals to the earth's surface. 14. The apparatus of claim 1 wherein said distance sensors are selected from the group consisting of acoustic calipers, mechanical calipers, and electrical resistance sensors. 15. The apparatus of claim 1 wherein said plurality of distance sensors comprises three such distance sensors equally spaced around said tool. 16. The apparatus of claim 1 wherein said at least one angle sensor comprises at least one gravitational sensor for indicating the angular orientation of said tool with respect to the direction of the earth's gravity. 17. The apparatus of claim 16 wherein said at least one gravitational sensor is selected from the group consisting of accelerometers, inclinometers, and gyroscopes. 18. The apparatus of claim 1 wherein said at least one angle sensor comprises at least one magnetic sensor for indicating the angular orientation of said tool with respect to the direction of the earth's magnetic field. 19. The apparatus of claim 18 wherein said at least one magnetic sensor comprises a magnetometer. 20. The apparatus of claim 1 wherein said signal processor calculates said estimate of the actual cross-sectional shape and orientation of an earth borehole by (a) receiving said standoff signals and said rotational orientation signals, (b) generating parameter signals representative of a set of parameters that defines an estimated cross-sectional shape and orientation of the borehole and an estimated position of said tool within the borehole at each of said measurement times, (c) combining said standoff signals, said rotational orientation signals, and said parameter signals to generate primary error signals representative of a primary error function proportional to the difference between said estimated cross-sectional shape and the actual cross- sectional shape of the borehole, (d) combining said parameter signals and said primary error signals to generate sensitivity signals representative of the sensitivity of said primary error function to each of said parameters, and (e) adjusting said parameter signals based on said sensitivity signals to minimize said primary error function and thereby determine optimal values for said parameters. 21. The apparatus of claim 20 wherein said signal processor performs the further function of generating translational displacement signals representative of the lateral translational displacement Sn of said tool according to the equation s n = j{xc n+] - xc + (γc n+l - yc„ ) 2 wherein (xc n , yc n ) and (xc n +ι, yc n +ι) are the coordinates of said estimated position of said tool within the borehole at two successive said measurement times. 22. The apparatus of claim 21 wherein said signal processor performs the further function of generating translational velocity signals representative of the lateral translational velocity of said tool by calculating the first derivative of said lateral translational displacement with respect to time. 23. The apparatus of claim 21 wherein said signal processor performs the further function of generating translational acceleration signals representative of the lateral translational acceleration of said tool by calculating the second derivative of said lateral translational displacement with respect to time. 24. The apparatus of claim 20 wherein said signal processor performs the further function of generating rotational displacement signals representative of the rotational displacement θ of said tool according to the equation wherein θn and θ n +ι are said rotational orientation signals of said tool at two successive said measurement times. 25. The apparatus of claim 24 wherein said signal processor performs the further function of generating rotational velocity signals representative of the rotational velocity of said tool by calculating the first derivative of said rotational displacement with respect to time. 26. The apparatus of claim 24 wherein said signal processor performs the further function of generating rotational acceleration signals representative of the rotational acceleration of said tool by calculating the second derivative of said rotational displacement with respect to time. 27. The apparatus of claim 20 wherein said signal processor performs the further functions of generating supplemental error signals representative of a supplemental error function proportional to the motion of said tool, combining said parameter signals and said supplemental error signals to generate supplemental sensitivity signals representative of the sensitivity of said supplemental error function to each of said parameters, and adjusting said parameter signals based on said supplemental sensitivity signals to minimize said supplemental error function. 28. The apparatus of claim 27 wherein: said signal processor performs the further function of generating translational displacement signals representative of the lateral translational displacement Sn of said tool according to the equation ? » = ( c « + ι ~ XC "Y + v c n + χ - yc. f wherein (xc n , yc n ) and (xcn+i, yc n +ι) are the coordinates of said estimated position of said tool withm the borehole at two successive said measurement times; and the terms of said supplemental error function are defined using said translational displacement signals according to the equation wherein W is a weighting coefficient and s n is the lateral translational displacement of said tool at each of said measurement times. 29. The apparatus of claim 27 further comprising: a plurality of accelerometers mounted to said tool for generating raw acceleration signals proportional to the lateral translational acceleration of said tool; a filter mounted to said tool m communication with said plurality of accelerometers for receiving said raw acceleration signals, filtering out the contribution of gravity to said raw acceleration signals, and generating filtered acceleration signals proportional to the lateral translational acceleration of said tool in a rotating reference frame of said tool; wherein said signal processor performs the further functions of receiving said filtered acceleration signals, transforming said filtered acceleration signals and thereby generating transformed acceleration signals proportional to the lateral translational acceleration of said tool in a fixed reference frame of the earth, and combining said transformed acceleration signals and thereby generating measured acceleration signals representative of the lateral translational acceleration of said tool; wherein said signal processor performs the further functions of generating translational displacement signals representative of the lateral translational displacement s n of said tool derived from said standoff signals from said distance sensors according to the equation s » = <J(xc n+] - xc + (γc n+] - yc„ ) 2 wherein (xc n , yc n ) and (xc n +ι, yc n +ι) are the coordinates of said estimated position of said tool withm the borehole at two successive said measurement times, and generating derived acceleration signals representative of the lateral translational acceleration of said tool by calculating the second derivative of said lateral translational displacement with respect to time; and wherein the terms of said supplemental error function are defined according to the equation wherein W a is a weighting coefficient, a n is the value of said derived acceleration signal for each of said measurement times, and a n ' is the value of said measured acceleration signal for each of said measurement times. 30 The apparatus of claim 27 further comprising: a plurality of accelerometers mounted to said tool for generating raw acceleration signals proportional to the lateral translational acceleration of said tool; a filter mounted to said tool in communication with said plurality of accelerometers for receiving said raw acceleration signals, filtering out the contribution of gravity to said raw acceleration signals, and generating filtered acceleration signals proportional to the lateral translational acceleration of said tool in a rotating reference frame of said tool; wherein said signal processor performs the further functions of receiving said filtered acceleration signals, transforming said filtered acceleration signals and thereby generating transformed acceleration signals proportional to the lateral translational acceleration of said tool in a fixed reference frame of the earth, combining said transformed acceleration signals and thereby generating measured acceleration signals representative of the lateral translational acceleration of said tool, and generating derived displacement signals representative of the lateral translational displacement of said tool by twice integrating said measured acceleration signals; wherein said signal processor performs the further function of generating measured displacement signals representative of the lateral translational displacement s n of said tool obtained from said standoff signals from said distance sensors according to the equation wherein (xc n , yc n ) and (xc n +ι, ycn+i) are the coordinates of said estimated position of said tool within the borehole at two successive said measurement times; and wherein the terms of said supplemental error function are defined according to the equation wherein W s is a weighting coefficient, s n is the value of said measured displacement signal for each of said measurement times, and s n ' is the value of said derived displacement signal for each of said measurement times. 31. The apparatus of claim 27 further comprising: a plurality of accelerometers mounted to said tool for generating raw acceleration signals proportional to the lateral translational acceleration of said tool; a filter mounted to said tool in communication with said plurality of accelerometers for receiving said raw acceleration signals, filtering out the contribution of gravity to said raw acceleration signals, and generating filtered acceleration signals proportional to the lateral translational acceleration of said tool in a rotating reference frame of said tool; wherein said signal processor performs the further functions of receiving said filtered acceleration signals, transforming said filtered acceleration signals and thereby generating transformed acceleration signals proportional to the lateral translational acceleration of said tool in a fixed reference frame of the earth, combining said transformed acceleration signals and thereby generating measured acceleration signals representative of the lateral translational acceleration of said tool, and generating derived displacement signals representative of the lateral translational displacement of said tool by twice integrating said measured acceleration signals; wherein said signal processor performs the further function of generating measured displacement signals representative of the lateral translational displacement s n of said tool obtained from said standoff signals from said distance sensors according to the equation s„ = ( χc » + ι - χc nf + (v c « + i - y c » ϊ wherein (xc n , yc n ) and (xc n +ι, yc n +ι) are the coordinates of said estimated position of said tool within the borehole at two successive said measurement times; and wherein the terms of said supplemental error function are defined according to the equation Fn = Wd I D m [Sn ] - D m [Sn' ] I wherein Wd is a weighting coefficient, D m [s n ] is an mth order finite difference of said measured displacement signals, and D m [s n ' ] is an mth order finite difference of said derived displacement signals. 32. The apparatus of any one of claims 29, 30, and 31 wherein: said plurality of accelerometers comprises four accelerometers acl, ac2, ac3, and ac4 mounted at the ends of a first diameter of said tool and a second diameter of said tool, with said first diameter being orthogonal to said second diameter, such that accelerometers acl and ac2 are on said first diameter and accelerometers ac3 and ac4 are on said second diameter, with said accelerometers acl, ac2, ac3, and ac4 producing electrical signals al, a2, a3, and a4, respectively, according to the equations al = ac + a cos β + g sin α cos γ a2 = ac - a cos β - g sin α cos γ a3 = ac + a sin β - g sin α sin γ a4 = ac - a sin β + g sin α sin γ wherein ac is the centripetal acceleration of said tool, a is said lateral translational acceleration of said tool, β is the angle between said first diameter and the direction of said lateral translational acceleration, g is the earth's gravitational constant, α is the inclination angle of said tool with respect to the vertical, and γ is the angle between said first diameter and the direction of the in-plane component of gravity, g sin α; said filter comprises a high-pass filter through which said electrical signals al, a2, a3, and a4 are filtered to produce filtered signals fal, fa2, fa3, and fa4, respectively, according to the equations fal = ac + a cos β fa2 = ac - a cos β wherein said signal processor performs the further functions of receiving said filtered signals fal, fa2, fa3, and fa4 and combining said filtered signals to generate magnitude and direction signals, respectively, representative of the lateral translational acceleration of said tool in a rotating reference frame of said tool according to the equations a = {[(fal - fa2) / (2)] 2 + [(fa3 - fa4) / (2)] 2 } tan β = (fa3 - fa4) / (fal - fa2). 33. An apparatus for estimating the actual cross-sectional shape and orientation of an earth borehole comprising, a rotating tool having a radius rt; three acoustic sensors mounted to said tool at three sensor locations equally spaced around the circumference of said tool for generating standoff signals representative of standoff distances di, d 2 , and eta, respectively, between said three sensor locations on said tool and corresponding measured points Pi, P 2 , and P3 on the wall of the borehole at each of a plurality of measurement times; a gravitational sensor mounted to said tool for generating first rotational orientation signals representative of the rotational orientation angle of said tool with respect to a first reference direction of the earth's gravity at each of said measurement times, a magnetic sensor mounted to said tool for generating second rotational orientation signals representative of the rotational orientation angle of said tool with respect to a second reference direction of the earth's magnetic field at each of said measurement times; a signal processor mounted to said tool in communication with said acoustic sensors, said gravitational sensor, and said magnetic sensor for 2δ receiving said standoff signals, said first rotational orientation signals, and said second rotational orientation signals, generating radius signals representative of distances n, r 2 , and rs , respectively, from the center of said tool to said measured points Pi, Pa, and P3 on the wall of the borehole using said standoff signals according to the equations at each of said measurement times, comparing said first and second rotational orientation signals and selecting one of said first or second rotational orientation signals as a primary rotational orientation signal representative of an angle θ with respect to a primary reference direction at each of said measurement times, generating parameter signals representative of a parameter vector {X} comprised of parameters X that defines an estimated ellipse to approximate the cross-sectional shape and orientation of the borehole and an estimated position of said tool within the borehole at each of said measurement times according to the following equation {X} = {r x ,r y , ψ,xc x ,yc^,xc 2 ,yc 2 ,...,xc N ,yc N } wherein r x is the major radius of said ellipse, r y is the minor radius of said ellipse, ψ is the angle between said major radius and said primary reference direction, and (xc n , yc n ) are the coordinates of the center of said tool withm the borehole at said estimated position at each of said measurement times, generating point error signals representative of a point error function e for each of said measured points according to the following equation wherein (x, y) are the coordinates of said measured points for each of said measurement times, combining said point error signals and generating firing error signals representative of a firing error function E n for each of said measurement times according to the equation E„(r x ,r y ,ψ, xc„,yc„,data n ) = ,y, ,r x ,r y , ψ) = e 2 {( x „ + r \ cos(< )), (yc n + r, sin(0)), r x ,r y , ψ) generating primary error signals representative of a primary error function {ET} according to the equation wherein the terms En represent said firing error signals at each of said measurement times, using said parameter signals and said primary error signals to generate sensitivity signals representative of the Jacobian matrix [J] as a measure of the sensitivity of said primary error function {ET} to each of said parameters X m according to the equation J =-?=- m' " dX m wherein n=l,2,3,...,N and m=l,2,3,...,2N+3, using said sensitivity signals and said primary error signals to generate parameter adjustment signals representative of a parameter adjustment vector {p} according to the equation {p} - -PseudoInverse([J] T [J] + λ[I])([jf {E τ }) wherein [J] τ is the transpose of the Jacobian matrix [J], λ is a Levenburg-Marquardt parameter, and [I ] is the identity matrix, using said parameter adjustment signals to iteratively adjust said parameters according to the relation {X} = {X} + {p} to minimize said primary error function, and generating solution signals representative of optimal values for said parameters. 34. The apparatus of claim 33 wherein said tool further comprises a data storage device in communication with said signal processor. 35. The apparatus of claim 34 wherein said data storage device stores data representative of said standoff distances and said rotational orientation angles. 36. The apparatus of claim 34 wherein said data storage device stores data representative of said optimal values for said parameters. 37. The apparatus of claim 33 wherein said tool further comprises a data transmitter in communication with said signal processor. 38. The apparatus of claim 37 wherein said data transmitter transmits said standoff signals and said first and second rotational orientation signals to the earth's surface. 39. The apparatus of claim 37 wherein said data transmitter transmits said solution signals to the earth's surface. 40. The apparatus of claim 33 further comprising: four accelerometers acl, ac2, ac3, and ac4 mounted at the ends of a first diameter of said tool and a second diameter of said tool, with said first diameter being orthogonal to said second diameter, such that accelerometers acl and ac2 are on said first diameter and accelerometers ac3 and ac4 are on said second diameter, with said accelerometers acl, ac2, ac3, and ac4 producing electrical signals al, a2, a3, and a4, respectively, according to the equations al = ac + a cos β + g sin α cos γ a2 = ac - a cos β - g sin α cos γ a3 = ac + a sin β - g sin α sin γ a4 = ac - a sin β + g sin α sin γ wherein ac is the centripetal acceleration of said tool, a is the lateral translational acceleration of said tool, β is the angle between said first diameter and the direction of said lateral translational acceleration, g is the earth's gravitational constant, α is the inclination angle of said tool with respect to the vertical, and γ is the angle between said first diameter and the direction of the in-plane component of gravity, g sin α; and a high-pass filter through which said electrical signals al, a2, a3, and a4 are filtered to produce filtered signals fal, fa2, fa3, and fa4, respectively, according to the equations fal = ac + a cos β fa2 = ac - a cos β fa3 = ac + a sin β fa4 = ac - a sin β wherein said signal processor performs the further functions of receiving said filtered signals fal, fa2, fa3, and fa4 and combining said filtered signals to generate acceleration magnitude signals and acceleration direction signals, respectively, representative of the lateral translational acceleration of said tool in a rotating reference frame of said tool according to the equations a = {[(fal - fa2) / (2)] 2 + [(fa3 - fa4) / (2)] 2 } tan β = (fa3 - fa4) / (fal - fa2), transforming said acceleration magnitude signals and said acceleration direction signals and thereby generating transformed acceleration signals proportional to the lateral translational acceleration of said tool in a fixed reference frame of the earth, combining said transformed acceleration signals and thereby generating measured acceleration signals representative of the lateral translational acceleration of said tool at each of said measurement times, generating derived acceleration signals representative of the lateral translational acceleration of said tool at each of said measurement times according to the equation a. - 2xc n + xc„_, (γc n+] - 2yc n + yc n )) wherein (xcn-i, yc n -ι), (xc n , yc n ), and (xcn+i, yc n +ι) are the coordinates of said estimated position of said tool within the borehole at three successive said measurement times t n -ι, tn, and tn+i, respectively, generating difference signals representative of the magnitude of the difference between said derived acceleration signals and said measured acceleration signals according to the equation generating supplemental error signals representative of a supplemental error function {FT} according to the equation {Fτ}={Fι,Fa,F3,... ,F N } wherein the terms F n comprising {FT} are defined according to the equation F„ = W - a \ wherein W is a weighting factor, combining said parameter signals and said supplemental error signals to generate supplemental sensitivity signals representative of the sensitivity of said supplemental error function to each of said parameters, and adjusting said parameter signals based on said supplemental sensitivity signals to minimize said supplemental error function. 41. An apparatus for estimating the actual motion of a tool within an earth borehole comprising: (a) a rotatable tool having (1) a plurality of distance sensors for generating standoff signals representative of respective standoff distances from each of said distance sensors to respective points on the wall of a borehole at a plurality of measurement times, and (2) at least one angle sensor for generating rotational orientation signals representative of the rotational orientation angle of said tool with respect to a reference direction at said plurality of measurement times; and (b) a signal processor for calculating an estimate of the lateral motion of said tool withm an earth borehole based on said standoff signals and said rotational orientation signals. 42. The apparatus of claim 41 wherein said signal processor is mounted to said tool. 43. The apparatus of claim 42 wherein said tool further comprises a data storage device in communication with said signal processor. 44 The apparatus of claim 43 wherein said data storage device stores data representative of said standoff distances and said rotational orientation angles. 45. The apparatus of claim 43 wherein said data storage device stores data representative of said estimate. 46. The apparatus of claim 42 wherein said tool further comprises a data transmitter in communication with said signal processor. 47. The apparatus of claim 46 wherein said data transmitter transmits said standoff signals and said rotational orientation signals to the earth's surface. 48 The apparatus of claim 46 wherein said data transmitter transmits signals representative of said estimate to the earth's surface. 49 The apparatus of claim 41 wherein said signal processor is located at the earth's surface. 50 The apparatus of claim 49 wherein said tool further comprises a data storage device. 51 The apparatus of claim 50 wherein said data storage device stores data representative of said standoff distances and said rotational orientation angles. 52. The apparatus of claim 49 wherein said tool further comprises a data transmitter. 53 The apparatus of claim 52 wherein said data transmitter transmits said standoff signals and said rotational orientation signals to the earth's surface 54. The apparatus of claim 41 wherein said distance sensors are selected from the group consisting of acoustic calipers, mechanical calipers, and electrical resistance sensors. 55. The apparatus of claim 41 wherein said plurality of distance sensors comprises three such distance sensors equally spaced around said tool. 56. The apparatus of claim 41 wherein said at least one angle sensor comprises at least one gravitational sensor for indicating the angular orientation of said tool with respect to the direction of the earth's gravity. 57. The apparatus of claim 56 wherein said at least one gravitational sensor is selected from the group consisting of accelerometers, inclinometers, and gyroscopes. 58. The apparatus of claim 41 wherein said at least one angle sensor comprises at least one magnetic sensor for indicating the angular orientation of said tool with respect to the direction of the earth's magnetic field. 59. The apparatus of claim 58 wherein said at least one magnetic sensor comprises a magnetometer. 60. The apparatus of claim 41 wherein said signal processor calculates said estimate of the actual motion of said tool within an earth borehole by (a) receiving said standoff signals and said rotational orientation signals, (b) generating parameter signals representative of a set of parameters that defines an estimated cross-sectional shape and orientation of the borehole and an estimated position of said tool within the borehole at each of said measurement times, (c) combining said standoff signals, said rotational orientation signals, and said parameter signals to generate primary error signals representative of a primary error function proportional to the difference between said estimated cross-sectional shape and the actual cross-sectional shape of the borehole, (d) combining said parameter signals and said primary error signals to generate sensitivity signals representative of the sensitivity of said primary error function to each of said parameters, and (e) adjusting said parameter signals based on said sensitivity signals to minimize said primary error function and thereby determine optimal values for said parameters 61 The apparatus of claim 60 wherein said signal processor performs the further function of generating translational displacement signals representative of the lateral translational displacement Sn of said tool according to the equation s n = j( c n+ , - c - + (yc n+x - yc„ ) 2 wherein (xc n , yc n ) and (xcn+i, ycn+i) are the coordinates of said estimated position of said tool withm the borehole at two successive said measurement times. 62. The apparatus of claim 61 wherein said signal processor performs the further function of generating translational velocity signals representative of the lateral translational velocity of said tool by calculating the first derivative of said lateral translational displacement with respect to time. 63. The apparatus of claim 61 wherein said signal processor performs the further function of generating translational acceleration signals representative of the lateral translational acceleration of said tool by calculating the second derivative of said lateral translational displacement with respect to time. 64 The apparatus of claim 60 wherein said signal processor performs the further function of generating rotational displacement signals representative of the rotational displacement θ of said tool according to the equation wherein θ n and θ n +ι are said rotational orientation signals of said tool at two successive said measurement times. 65. The apparatus of claim 64 wherein said signal processor performs the further function of generating rotational velocity signals representative of the rotational velocity of said tool by calculating the first derivative of said rotational displacement with respect to time. 66. The apparatus of claim 64 wherein said signal processor performs the further function of generating rotational acceleration signals representative of the rotational acceleration of said tool by calculating the second derivative of said rotational displacement with respect to time. 67. A method of estimating the actual cross-sectional shape of an earth borehole comprising the following steps: placing a tool having a plurality of distance sensors in the borehole; rotating said tool in the borehole; making distance measurements of the distance between said tool and the wall of the borehole at a plurality of points around the circumference of said tool and at a plurality of measurement times; making rotational orientation measurements of the rotational orientation of said tool with respect to a reference direction at said plurality of measurement times; establishing a set of parameters that defines an estimated cross- sectional shape and orientation of the borehole and an estimated position of said tool withm the borehole at each of said measurement times; establishing a primary error function proportional to the difference between said estimated cross-sectional shape and the actual cross- sectional shape of the borehole as defined by said distance measurements and said rotational orientation measurements; computing the sensitivity of said primary error function to each of said parameters; and iteratively adjusting said parameters based on said sensitivity to minimize said primary error function and thereby obtain optimal values for said parameters. 68. The method of claim 67 further comprising the steps of: establishing a supplemental error function proportional to the lateral motion of said tool; computing the sensitivity of said supplemental error function to each of said parameters; and iteratively adjusting said parameters based on said sensitivity of said supplemental error function to minimize said supplemental error function along with said primary error function. 69. The method of claim 68 wherein the terms of said supplemental error function are defined by the equation wherein W is a weighting coefficient and s n is the lateral translational displacement of said tool. 70. The method of claim 68 wherein the terms of said supplemental error function are defined by the equation wherein Ws is a weighting coefficient, s n is the value of a measured displacement signal obtained from accelerometers for each of said measurement times, and s n ' is the value of a derived displacement signal obtained from said distance sensors for each of said measurement times. 71. The method of claim 68 wherein the terms of said supplemental error function are defined by the equation wherein Wa is a weighting coefficient, a n is the value of a derived acceleration signal obtained from said distance sensors for each of said measurement times, and a n ' is the value of a measured acceleration signal obtained from accelerometers for each of said measurement times. 72. The method of claim 68 wherein the terms of said supplemental error function are defined by the equation Fn = Wd I D m [Sn ] - D m [Sn' ] I wherein Wd is a weighting coefficient, D m [s n ] is an mth order finite difference of a measured displacement signal obtained from said distance sensors, and D m [s n ' ] is an mth order finite difference of a derived displacement signal obtained from accelerometers. 73. A method for estimating the actual cross-sectional shape and orientation of an earth borehole comprising the following steps: placing a tool having a radius rt and a plurality of distance sensors in the borehole; rotating said tool in the borehole; measuring distances di, U2, and d3 between each of three equally spaced locations around the circumference of said tool and three measured points Pi, Pa, and Pβ, respectively, on the wall of the borehole at each of a plurality of measurement times; calculating distances ri, ra, and n from the center of said tool to said measured points on the wall of the borehole according to the equations at each of said measurement times; making a first rotational orientation measurement of the rotational orientation of said tool with respect to a first reference direction of the earth's gravity at each of said measurement times; making a second rotational orientation measurement of the rotational orientation of said tool with respect to a second reference direction of the earth's magnetic field at each of said measurement times; comparing said first and second rotational orientation measurements and selecting one of said first or second rotational orientation measurements as a primary rotational orientation measurement θ with respect to a primary reference direction at each of said measurement times; establishing a parameter vector {X} comprised of parameters X m that defines an estimated ellipse to approximate the cross-sectional shape and orientation of the borehole and an estimated position of said tool within the borehole at each of said measurement times according to the following equation {X} = {r x ,r y , ψ,xc l ,yc ] ,xc 2 ,yc 2 ,..., xc N ,yc N } wherein r x is the major radius of said ellipse, r y is the minor radius of said ellipse, ψ is the angle between said major radius and said primary reference direction, and (xc n , yc n ) are the coordinates of the center of said tool withm the borehole at said estimated position at each of said measurement times; calculating a point error function e for each of said measured points according to the following equation wherein (x, y) are the coordinates of said measured points for each of said measurement times; calculating a firing error function E n for each of said measurement times according to the equation 3 E„{r x ,r y , ψ, xc n ,yc n ,data n ) = ∑ e 2 (x, ,y, ,r x ,r y , ψ) ι=l = e 2 (xc n + r, cos(θ)),(yc n +/-, sin(θ)), r x ,r y , ψ) + + r 2 ύr[ θ + -~ J , r x , r y , ψ + e xc„ + r. cosl θ + ,> ψ establishing a primary error function {ET} according to the equation I τ ) = { \ ,E 2 , E 3 ,..., N j wherein E n is said firing error function at each of said measurement times; computing the Jacobian matrix [J] as a measure of the sensitivity of said primary error function {ET} to each of said parameters X m according to the equation J = ^ ~ "" ' dX m wherein n=l,2,3,...,N and m=l,2,3,...,2N+3; calculating a parameter adjustment vector {p} according to the equation {p} = -PseudoInverse([J] T [J] + λ[I])([J] τ {E τ }) wherein [J] τ is the transpose of [J], λ is a Levenburg-Marquardt parameter, and [I] is the identity matrix; and iteratively adjusting said parameters according to the relation {X} = {X} + {p} to minimize said primary error function and thereby obtain a solution for said parameter vector. 74. The method of claim 73 further comprising the following steps: calculating a derived lateral translational acceleration of said tool at each of said measurement times according to the equation a.. - 2xc π + xc n _ l - 2yc„ + _yc„_, )) wherein (xcn-i, yc n -ι), (xc n , yc n ), and (xc n +ι, yc n +ι) are the coordinates of said estimated position of said tool within the borehole at three successive said measurement times t n -ι, t n , and t n +ι, respectively; measuring acceleration signals al, a2, a3, and a4 produced by four accelerometers acl, ac2, ac3, and ac4, respectively, mounted at the ends of a first diameter of said tool and a second diameter of said tool, with said first diameter being orthogonal to said second diameter, such that accelerometers acl and ac2 are on said first diameter and accelerometers ac3 and ac4 are on said second diameter, according to the equations al = ac + a cos β + g sin α cos γ a2 = ac - a cos β - g sin α cos γ a3 = ac + a sin β - g sin α sin γ a4 = ac - a sin β + g sin α sin γ wherein ac is the centripetal acceleration of said tool, a is the lateral translational acceleration of said tool, β is the angle between said first diameter and the direction of said lateral translational acceleration, g is the earth's gravitational constant, α is the inclination angle of said tool with respect to the vertical, and γ is the angle between said first diameter and the direction of the in-plane component of gravity, g sin α; filtering said electrical signals al, a2, a3, and a4 with a high- pass filter to produce filtered signals fal, fa2, fa3, and fa4, respectively, according to the equations fal = ac + a cos β fa2 = ac - a cos β fa3 = ac + a sin β fa4 = ac - a sin β combining said filtered signals fal, fa2, fa3, and fa4 to obtain the magnitude and direction of said lateral translational acceleration of said tool in a rotating reference frame of said tool according to the equations a = {[(fal - fa2) / (2)] 2 + [(fa3 - fa4) / (2)] 2 }'- tan β = (fa3 - fa4) / (fal - fa2) transforming said lateral translational acceleration from said rotating reference frame of said tool into a fixed reference frame of the earth to obtain a measured lateral translational acceleration of said tool at each of said measurement times; calculating the magnitude of the difference between said derived lateral translational acceleration and said measured lateral translational acceleration according to the equation establishing a supplemental error function {FT} according to the equation {Fτ}={Fι,Fa,F 3 ,... ,FN} wherein the terms F n comprising {FT} are calculated according to the equation wherein W is a weighting factor; and minimizing said supplemental error function along with said primary error function. 75. A method of estimating the actual motion of a tool within an earth borehole comprising the following steps: placing a tool having a plurality of distance sensors in the borehole; rotating said tool in the borehole; making distance measurements of the distance between said tool and the wall of the borehole at a plurality of points around the circumference of said tool and at a plurality of measurement times; making rotational orientation measurements of the rotational orientation of said tool with respect to a reference direction at said plurality of measurement times; establishing a set of parameters that defines an estimated cross- sectional shape and orientation of the borehole and an estimated position of said tool within the borehole at each of said measurement times; establishing a primary error function proportional to the difference between said estimated cross-sectional shape and the actual cross- sectional shape of the borehole as defined by said distance measurements and said rotational orientation measurements; computing the sensitivity of said primary error function to each of said parameters; and iteratively adjusting said parameters based on said sensitivity to minimize said primary error function and thereby obtain optimal values for said parameters. 76. The method of claim 75 further comprising the step of computing the lateral translational displacement s n of said tool according to the equation s„ = <J(xc n+l - xc n ) 2 + (yc„ +l - yc„ ) 2 wherein (xc n , yc n ) and (xcn+i, yc n +ι) are the coordinates of said estimated position of said tool within the borehole at two successive said measurement times. 77. The method of claim 76 further comprising the step of computing the lateral translational velocity of said tool by calculating the first derivative of said lateral translational displacement with respect to time. 78. The method of claim 76 further comprising the step of computing the lateral translational acceleration of said tool by calculating the second derivative of said lateral translational displacement with respect to time. 79. The method of claim 75 further comprising the step of computing the rotational displacement θ of said tool according to the equation wherein θn and θ n +ι are said rotational orientation measurements of said tool at two successive said measurement times. 80. The method of claim 79 further comprising the step of computing the rotational velocity of said tool by calculating the first derivative of said rotational displacement with respect to time. 81. The method of claim 79 further comprising the step of computing the rotational acceleration of said tool by calculating the second derivative of said rotational displacement with respect to time.

Inventors: CHEN-KANG DAVID CHEN, MURPHEY CAREY R, VARSAMIS GEORGIOS L, WISNIEWSKI LAURENCE T, CHEN-KANG, DAVID, CHEN, MURPHEY, CAREY, R., VARSAMIS, GEORGIOS, L., WISNIEWSKI, LAURENCE, T.
Applicants: DRESSER IND, DRESSER INDUSTRIES, INC.
Application year: 1999
Main classification: G01B21
IPC codes: E21B44, E21B47, G01B15, G01B21, G01V1