Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MUD ANGLE DETERMINATION FOR ELECTROMAGNETIC IMAGER TOOLS
Document Type and Number:
WIPO Patent Application WO/2021/230893
Kind Code:
A1
Abstract:
Aspects of the subject technology relate to systems and methods for identifying a mud angle associated with an electromagnetic imager tool based on tool measurements made during operation of the electromagnetic imager tool. Tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation can be gathered. The tool measurements can be decomposed into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. As follows, a mud angle associated with the electromagnetic imager tool can be identified from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

Inventors:
FOUDA AHMED E (US)
GUNER BARIS (US)
Application Number:
PCT/US2020/037417
Publication Date:
November 18, 2021
Filing Date:
June 12, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HALLIBURTON ENERGY SERVICES INC (US)
International Classes:
E21B47/0228; E21B47/13; E21B47/26; G01V3/30
Domestic Patent References:
WO2019088998A12019-05-09
Foreign References:
US20150185354A12015-07-02
US20150008927A12015-01-08
US20180203150A12018-07-19
US20150355372A12015-12-10
Attorney, Agent or Firm:
FRONTZ, Matthew et al. (US)
Download PDF:
Claims:
CLAIMS

WHAT IS CLAIMED IS:

1. A method comprising: gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation; decomposing the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool; and identifying a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

2. The method of claim 1, further comprising processing one or more images generated from the tool measurements by applying a mud effect removal process to the tool measurements based on the identified mud angle.

3. The method of claim 1, wherein either or both the identified mud angle has a smallest amount of correlation between the two quantities across the plurality of candidate mud angles and values of the two quantities vary along the plurality of candidate mud angles.

4. The method of claim 1, wherein the two quantities include magnitudes of two orthogonal components of measured impedance at the electromagnetic imager tool where one quantity of the two quantities is in a direction normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities is in the direction parallel to a candidate mud angle of the plurality of candidate mud angles.

5. The method of claim 1, wherein a first quantity of the two quantities includes a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities includes an imaginary component of the measured impedance.

6. The method of claim 1, wherein a first quantity of the two quantities includes a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities includes an imaginary component of the measured impedance.

7. The method of claim 1, wherein a first quantity of the two quantities includes a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities includes the component of the measured impedance normal to the candidate mud angle removed from a real component of the measured impedance.

8. The method of claim 1, wherein a first quantity of the two quantities includes a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities includes the Za projection of the measured impedance generated based on the candidate mud angle removed from a real component of the measured impedance.

9. The method of claim 1, wherein the amount of correlation between the two quantities along the plurality of candidate mud angles is identified along a depth interval of the tool measurements made by the electromagnetic imager tool.

10. The method of claim 11, wherein a length of the depth interval of the tool measurements accounts for variations in either or both a resistivity profile of the formation and rugosity in one or more walls of the wellbore.

11. The method of claim 1, wherein the tool measurements decomposed into the two quantities are a subset of a total number of tool measurements made by the electromagnetic imager tool operating to log the wellbore.

12. The method of claim 11 , wherein the tool measurements are selected from the total number of tool measurements made by the electromagnetic imager tool based on one or a combination of real values, imaginary values, and absolute values of the tool measurements.

13. The method of claim 11, wherein the tool measurements are selected from the total number of tool measurements made by the electromagnetic imager tool based on one or more operating frequencies of the electromagnetic imager tool in making the tool measurements.

14. The method of claim 11 , wherein the tool measurements are selected from the total number of tool measurements made by the electromagnetic imager tool based on a histogram of absolute values of at least a portion of the total number of tool measurements.

15. The method of claim 11, wherein the tool measurements are selected from the total number of tool measurements made by the electromagnetic imager tool based on noise levels in the tool measurements.

16. The method of claim 11, wherein the tool measurements are selected from the total number of tool measurements made by the electromagnetic imager tool based on one or a combination of visual inspection of at least a portion of the total number of tool measurements, visual inspection of one or more images of the formation generated from the at least a portion of the total number of tool measurements, and resistivity measurements made by a different tool from the electromagnetic imager tool.

17. The method of claim 1, further comprising: disposing the electromagnetic imager tool in the wellbore; and operating the electromagnetic imager tool in the wellbore to gather the tool measurements by logging the wellbore.

18. A system comprising: one or more processors; and at least one computer-readable storage medium having stored therein instructions which, when executed by the one or more processors, cause the one or more processors to perform operations comprising: gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation; decomposing the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool; and identifying a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

19. The system of claim 18, wherein the electromagnetic imager tool is further configured to gather the measurements by logging the wellbore when the electromagnetic imager tool is disposed in the wellbore.

20. A non-transitory computer-readable storage medium having stored therein instructions which, when executed by a processor, cause the processor to perform operations comprising: gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation; decomposing the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool; and identifying a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

Description:
MUD ANGLE DETERMINATION FOR ELECTROMAGNETIC IMAGER TOOLS

TECHNICAL FIELD

[0001] The present technology pertains to identifying a mud angle associated with an electromagnetic imager tool, and more particularly, to identifying a mud angle associated with an electromagnetic imager tool based on tool measurements made during operation of the electromagnetic imager tool.

BACKGROUND

[0002] Electromagnetic imager tools have been developed for generating images downhole in wellbores. Specifically, electromagnetic imager tools have been developed to operate in drilling mud to image formations surrounding a wellbore. Electromagnetic imager tools are subject to the mud effect. The mud effect refers to the contribution of the mud to measured impedance. This effect is particularly severe if a formation exhibits low resistivity and/or the distance between the pad’s outer surface and the borehole wall, e.g. the formation, is high. Techniques have been developed in order to remove or otherwise minimize the mud effect in an electromagnetic imager tool operating to log a wellbore, e.g. as part of generating images of a surround formation of the wellbore. For example, the Z90 technique has been developed to remove the mud effect for electromagnetic imager tools.

[0003] Many of these techniques utilize mud angle in minimizing or otherwise removing the mud effect for electromagnetic imager tools. Mud angle, as used herein is the phase angle of a complex-valued mud impedance of an electromagnetic imager tool. The effectiveness of these techniques in removing the mud effect is strongly dependent on accuracy of an identified mud angle associated with an electromagnetic imager tool. In turn, this can ultimately affect quality and accuracy in images that are processed through these techniques to account for the mud effect. However, often times these techniques rely on inaccurate mud angle estimates to remove the mud effect thereby leading to errors in the application of these techniques. For example, inaccurate mud angle usage can lead to poor image quality and contrast in areas of an image affected by the mud effect. There therefore exist needs for systems and methods for accurately identifying a mud angle for an electromagnetic imager tool.

[0004] Actually measuring mud to identify properties of the mud is one way to identify mud angle. Specifically, an electromagnetic imager tool can be operated to just gather measurements of the mud, which can subsequently be used to identify a mud angle. However, this is an inefficient usage of the electromagnetic imager tool. Specifically, operating the electromagnetic imager tool to just take measurements of the mud wastes time during which the electromagnetic imager tool can be operated to actually log a wellbore. Further, the formation still makes contributions to the direct mud measurements, thereby leading to inaccurate mud angle estimates. Tools have been developed with a mud cell for directly measuring mud properties. However, such tools can require additional parts that may increase the cost of the tool while further complicating the tool design process.

BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In order to describe the manner in which the features and advantages of this disclosure can be obtained, a more particular description is provided with reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only exemplary embodiments of the disclosure and are not therefore to be considered to be limiting of its scope, the principles herein are described and explained with additional specificity and detail through the use of the accompanying drawings in which:

[0006] FIG. 1A is a schematic diagram of an example logging while drilling wellbore operating environment, in accordance with various aspects of the subject technology;

[0007] FIG. IB is a schematic diagram of an example downhole environment having tubulars, in accordance with various aspects of the subject technology;

[0008] FIG. 2A illustrates a perspective view of a LWD electromagnetic imager tool.

[0009] FIG. 2B illustrates another perspective view of the LWD electromagnetic imager tool.

[0010] FIG. 2C illustrates yet another perspective view of the LWD electromagnetic imager tool.

[0011] FIG. 3 shows an example current density generated by the electromagnetic sensor of the LWD electromagnetic imager tool operating to measure a formation.

[0012] FIG. 4 illustrates a schematic diagram of an example pad of an electromagnetic imager tool, in accordance with various aspects of the subject technology;

[0013] FIG. 5 illustrates a circuit model of the example pad illustrated in FIG. 4, in accordance with various aspects of the subject technology;

[0014] FIG. 6 is a plot of impedances measured by the electromagnetic imager tool versus formation resistivity R t ., in accordance with various aspects of the subject technology;

[0015] FIG. 7 is a plot of impedances in the complex plane and corresponding Z90 processing of the impedances, in accordance with various aspects of the subject technology; [0016] FIG. 8 is a plot of real parts of simulated impedances measured by the electromagnetic imager tool versus simulated formation resistivities R t after Z90 processing is applied, in accordance with various aspects of the subject technology;

[0017] FIG. 9 is a plot of real parts of simulated impedances measured by the electromagnetic imager tool versus simulated formation resistivities R t after Z90 processing is performed on the shifted mud angles, in accordance with various aspects of the subject technology;

[0018] FIG. 10 illustrates a flowchart for an example method of identifying a mud angle for an electromagnetic imager tool based measurements made by the electromagnetic imager tool, in accordance with various aspects of the subject technology;

[0019] FIG. 11 is a plot of Z90 and Zll vectors in the complex plane for identifying the mud angle based on correlation of Z90 and Zll quantities, in accordance with various aspects of the subject technology;

[0020] FIG. 12 is a plot of real parts of impedances versus simulated formation resistivities R t after Z90 processing is applied based on mud angles identified using the techniques described herein, in accordance with various aspects of the subject technology;

[0021] FIGs. 13A-C are resistivity images, in the logarithmic scale, of another simulation, in accordance with various aspects of the subject technology;

[0022] FIG. 14 is a plot of the variation of the absolute value of correlation as a function of candidate mud angles, identified using the techniques described herein, for the corresponding three different frequencies of the simulations represented in FIGs. 13A-C, in accordance with various aspects of the subject technology; and

[0023] FIG. 15 illustrates an example computing device architecture which can be employed to perform various steps, methods, and techniques disclosed herein.

DETAILED DESCRIPTION

[0024] Various embodiments of the disclosure are discussed in detail below. While specific implementations are discussed, it should be understood that this is done for illustration purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without parting from the spirit and scope of the disclosure.

[0025] Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or can be learned by practice of the principles disclosed herein. The features and advantages of the disclosure can be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. These and other features of the disclosure will become more fully apparent from the following description and appended claims or can be learned by the practice of the principles set forth herein.

[0026] It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.

[0027] The disclosed technology addresses the foregoing by identifying a mud angle associated with an electromagnetic imager tool based on tool measurements made during operation of the electromagnetic imager tool. Specifically, a mud angle can be identified from a plurality of candidate mud angles based on correlation between two quantities decomposed from tool measurements made by an electromagnetic imager tool across the plurality of candidate mud angles .

[0028] In various embodiments, tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation can be gathered. The tool measurements can be decomposed into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. As follows, a mud angle associated with the electromagnetic imager tool can be identified from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles. Specifically, the identified mud angle can have a smallest amount of correlation between the two quantities across the plurality of candidate mud angles.

[0029] In various embodiments, a system can include one or more processors and at least one computer- readable storage medium storing instructions which, when executed by the one or more processors, cause the one or more processors to gather tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation. The instructions can also cause the one or more processors to decompose the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. Further, the instructions can cause the one or more processors to identify a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles. Specifically, the identified mud angle can have a smallest amount of correlation between the two quantities across the plurality of candidate mud angles.

[0030] In various embodiments, a system can include a non-transitory computer-readable storage medium having stored therein instructions which, when executed by a processor, cause the processor to gather tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation. The instructions can also cause the processor to decompose the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. Further, the instructions can cause the processor to identify a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles. Specifically, the identified mud angle can have a smallest amount of correlation between the two quantities across the plurality of candidate mud angles.

[0031] Turning now to FIG. 1 A, a drilling arrangement is shown that exemplifies a Logging While Drilling (commonly abbreviated as LWD) configuration in a wellbore drilling scenario 100. Logging- While-Drilling typically incorporates sensors that acquire formation data. Specifically, the drilling arrangement shown in FIG. 1A can be used to gather formation data through an electromagnetic imager tool as part of logging the wellbore using the electromagnetic imager tool. The drilling arrangement of FIG. 1A also exemplifies what is referred to as Measurement While Drilling (commonly abbreviated as MWD) which utilizes sensors to acquire data from which the wellbore’s path and position in three-dimensional space can be determined. FIG. 1 A shows a drilling platform 102 equipped with a derrick 104 that supports a hoist 106 for raising and lowering a drill string 108. The hoist 106 suspends a top drive 110 suitable for rotating and lowering the drill string 108 through a well head 112. A drill bit 114 can be connected to the lower end of the drill string 108. As the drill bit 114 rotates, it creates a wellbore 116 that passes through various subterranean formations 118. A pump 120 circulates drilling fluid through a supply pipe 122 to top drive 110, down through the interior of drill string 108 and out orifices in drill bit 114 into the wellbore. The drilling fluid returns to the surface via the annulus around drill string 108, and into a retention pit 124. The drilling fluid transports cuttings from the wellbore 116 into the retention pit 124 and the drilling fluid’s presence in the annulus aids in maintaining the integrity of the wellbore 116. Various materials can be used for drilling fluid, including oil-based fluids and water-based fluids.

[0032] Logging tools 126 can be integrated into the bottom-hole assembly 125 near the drill bit 114. As the both drill bit 114 extends into the wellbore 116 through the formations 118 and as the drill string 108 is pulled out of the wellbore 116, logging tools 126 collect measurements relating to various formation properties as well as the orientation of the tool and various other drilling conditions. The logging tool 126 can be applicable tools for collecting measurements in a drilling scenario, such as the electromagnetic imager tools described herein. Each of the logging tools 126 may include one or more tool components spaced apart from each other and communicatively coupled by one or more wires and/or other communication arrangement. The logging tools 126 may also include one or more computing devices communicatively coupled with one or more of the tool components. The one or more computing devices may be configured to control or monitor a performance of the tool, process logging data, and/or carry out one or more aspects of the methods and processes of the present disclosure.

[0033] The bottom-hole assembly 125 may also include a telemetry sub 128 to transfer measurement data to a surface receiver 132 and to receive commands from the surface. In at least some cases, the telemetry sub 128 communicates with a surface receiver 132 by wireless signal transmission e.g, using mud pulse telemetry, EM telemetry, or acoustic telemetry. In other cases, one or more of the logging tools 126 may communicate with a surface receiver 132 by a wire, such as wired drill pipe. In some instances, the telemetry sub 128 does not communicate with the surface, but rather stores logging data for later retrieval at the surface when the logging assembly is recovered. In at least some cases, one or more of the logging tools 126 may receive electrical power from a wire that extends to the surface, including wires extending through a wired drill pipe. In other cases, power is provided from one or more batteries or via power generated downhole.

[0034] Collar 134 is a frequent component of a drill string 108 and generally resembles a very thick-walled cylindrical pipe, typically with threaded ends and a hollow core for the conveyance of drilling fluid. Multiple collars 134 can be included in the drill string 108 and are constructed and intended to be heavy to apply weight on the drill bit 114 to assist the drilling process. Because of the thickness of the collar’s wall, pocket- type cutouts or other type recesses can be provided into the collar’s wall without negatively impacting the integrity (strength, rigidity and the like) of the collar as a component of the drill string 108.

[0035] Referring to HG. IB, an example system 140 is depicted for conducting downhole measurements after at least a portion of a wellbore has been drilled and the drill string removed from the well. An electromagnetic imager tool can be operated in the example system 140 shown in FIG. IB to log the wellbore. A downhole tool is shown having a tool body 146 in order to carry out logging and/or other operations. For example, instead of using the drill string 108 of HG. 1A to lower the downhole tool, which can contain sensors and/or other instrumentation for detecting and logging nearby characteristics and conditions of the wellbore 116 and surrounding formations, a wireline conveyance 144 can be used. The tool body 146 can be lowered into the wellbore 116 by wireline conveyance 144. The wireline conveyance 144 can be anchored in the drill rig 142 or by a portable means such as a truck 145. The wireline conveyance 144 can include one or more wires, slicklines, cables, and/or the like, as well as tubular conveyances such as coiled tubing, joint tubing, or other tubulars. The downhole tool can include an applicable tool for collecting measurements in a drilling scenario, such as the electromagnetic imager tools described herein.

[0036] The illustrated wireline conveyance 144 provides power and support for the tool, as well as enabling communication between data processors 148A-N on the surface. In some examples, the wireline conveyance 144 can include electrical and/or fiber optic cabling for carrying out communications. The wireline conveyance 144 is sufficiently strong and flexible to tether the tool body 146 through the wellbore 116, while also permitting communication through the wireline conveyance 144 to one or more of the processors 148A-N, which can include local and/or remote processors. The processors 148A-N can be integrated as part of an applicable computing system, such as the computing device architectures described herein. Moreover, power can be supplied via the wireline conveyance 144 to meet power requirements of the tool. For slickline or coiled tubing configurations, power can be supplied downhole with a battery or via a downhole generator.

[0037] FIG. 2A illustrates a perspective view of a LWD electromagnetic imager tool 200. FIG. 2B illustrates another perspective view of the LWD electromagnetic imager tool 200. FIG. 2C illustrates yet another perspective view of the LWD electromagnetic imager tool 200. The LWD electromagnetic imager tool 200/mud imager tool can be integrated as part of an applicable LWD drilling system, such as the logging tools 126 in the LWD scenario 100 shown in FIG. 1A.

[0038] The LWD electromagnetic imager tool 200 includes an electromagnetic sensor 202 disposed along a collar of the LWD electromagnetic imager tool 200. The LWD electromagnetic 200 imager tool shown in FIGs. 2A-2C also includes first and second ultrasonic transducers 204 and 206, however and in various embodiments, a LWD electromagnetic imager tool 200 does not have ultrasonic transducers disposed along the collar. Specifically, the LWD electromagnetic imager tool 200 shown in FIGs. 2A-2C is merely an example of a LWD electromagnetic imager tool 200, and in various embodiments, a LWD electromagnetic imager tool 200 can have a different design. Specifically, a water-based LWD mud imager tool may have similar designs, and can provide less design and interpretation complications than oil-based LWD mud imager tools, e.g. due to the conductive nature of water-based mud.

[0039] LWD electromagnetic mud imager tools can provide a high resolution image of a borehole, e.g. when compared to other borehole imager tools. As a result, LWD electromagnetic mud imager tools can be used to identify damaged borehole sections, provide a better knowledge on the thin beds, and also provide images that can be used to determine the dip angle of formation bed.

[0040] The sensor topology of LWD electromagnetic mud imager tools operating in a LWD environment should have minimum complexity, and more importantly, it should not rely on borehole contact. With respect to the LWD electromagnetic imager tool 200 shown in FIGs. 2A-C, the electromagnetic sensor 202 can include a single measurement (also called probe, button or current) electrode mounted on the side of the collar. The electromagnetic sensor 202 can be disposed on the collar such that it is located at a certain distance (standoff) from a borehole wall during operation of the LWD electromagnetic imager tool. Further, the electromagnetic sensor 202 can include a guard electrode that surrounds, at least a portion of the button electrode. This electrode may be excited by an alternating current, sine-wave generator, and it may be coupled to the formation through a mud, e.g. an oil-based mud. This mud is non-conductive for oil-based muds. As a result, the coupling to the formation is accomplished through displacement currents in the mud. This arrangement provides a low sensitivity to standoff changes in resultant microresistivity image.

[0041] In operation of the LWD electromagnetic imager tool 200, a measurement current enters the formation, which may have a much lower resistivity than the mud. In the formation, the current flows by conduction and penetrates the formation. The current then returns back toward the borehole where it returns to the body of the LWD electromagnetic imager tool 200 surrounding the electromagnetic sensor 202, e.g. the tool body serves as the return electrode for the LWD electromagnetic imager tool 200. The tool body can remain at ground potential because of its large surface area.

[0042] Imaging through the LWD electromagnetic imager tool 200 can be achieved by dividing gathered data/measurements into azimuthal bins as the LWD electromagnetic imager tool 200 rotates in the borehole during drilling. The LWD electromagnetic imager tool can also include an additional mud resistivity sensor, e.g. a mud cell. In imaging through the LWD electromagnetic imager tool 200, real components of the measurements made by the electromagnetic sensor 202 can be used to determine formation resistivity. Further, mud resistivity measurements made by the mud resistivity sensor can be used to improve the determined formation resistivity measurements. For the purposes of this disclosure, it is assumed that mud sensor is not available or not accurate.

[0043] The LWD electromagnetic imager tool 200 can be a multi-frequency tool. Specifically, the LWD electromagnetic imager tool 200 can operate at multiple frequencies in gathering measurements. For example, a higher frequency in the MHz range may be used to overcome the nonconductive nature of oil- based muds in generating measurements while a lower frequency in the 100 kHz range may be more sensitive to standoff and thus may be used in standoff determination. Further, gathered standoff information may be used to identify features in the formation. For example, a thin band of increased resistivity can be due to an opening in the rock. In turn, this can be reflected as a jump in apparent standoff.

[0044] FIG. 3 shows an example current density 300 generated by the electromagnetic sensor 202 of the LWD electromagnetic imager tool 200 operating to measure a formation. A power source drives a voltage between the return electrode, whose voltage with respect to the ground is represented through V retum and the probe electrode, whose voltage with respect to a ground is represented by V probe . Further, a circuitry is implemented to keep V probe equal, or roughly equal, to V f o cus for focusing of the measurement current. The current transmitted from the electromagnetic sensor is measured, for example through the use of a toroid. The ratio of the voltage difference between probe and return to the transmitted current is used to calculate a measured impedance. A basic circuit theory based model that relates the measured impedance to formation and mud parameters that is applicable to both LWD and wireline tools will be provided after a discussion on wireline electromagnetic tools.

[0045] The discussion now continues with a discussion of wireline electromagnetic imager tools. FIG. 4 illustrates a schematic diagram of an example pad 400 of a wireline electromagnetic imager tool, as described above in FIG. IB. Specifically, the wireless electromagnetic imager tool can be integrated with the tool body 146 of the downhole tool in FIG. IB. More specifically, the pad 400 can be disposed on an outer surface of the tool body 146 to make measurements as the downhole tool is operated within the wellbore. The electromagnetic imager tool functions to gather measurements while logging a wellbore, e.g. for purposes of imaging a formation surrounding the wellbore. Specifically, the electromagnetic imager tool can operate in a drilling mud to gather measurements for imaging the formation surrounding the wellbore. The electromagnetic imager tool can operate in an applicable type of drilling mud, such as an oil-based mud or a water-based mud, to log the wellbore. Oil-based muds have much higher resistivities than water-based muds. Therefore, the mud effect is much stronger for measurements made in oil-based muds. In operating to log the wellbore, the electromagnetic imager tool can gather applicable measurements that are capable of being measured by the electromagnetic imager tool. For example, measurements made by the electromagnetic imager tool can include apparent impedivity and impedance measurements at the electromagnetic imager tool, complex impedance measurements at the electromagnetic imager tool, voltage measurements at the electromagnetic imager tool, current measurements at the electromagnetic imager tool, phase measurements at the electromagnetic imager tool, and absolute values of impedance measurements at the electromagnetic imager tool. [0046] The measurements gathered by the electromagnetic imager tool can be used to identify values of mud and formation parameters associated with the electromagnetic imager tool, e.g. parameters inside of and outside of the wellbore. Mud and formation parameters include applicable parameters that can be identified from measurements taken by the electromagnetic imager tool for purposes of imaging, e.g. through the wellbore. For example, mud and formation parameters can include mud permittivity, mud resistivity, standoff, formation permittivity of a formation of the wellbore, and formation resistivity of the formation of the wellbore. The values of the mud and formation parameters can be identified using the techniques described herein on a per-button basis for wireline imagers. For example, formation resistivity, formation permittivity, mud resistivity, mud permittivity and standoff values can be identified for each button included as part of a button array 402 of a pad 400. For LWD imagers, measurements are generally obtained using a single button electrode. In that case, azimuthal coverage is obtained by dividing the measurements into azimuthal bins as the tool rotates. Thus, these azimuthal bins in an LWD tool serves the same purpose with the measurements made by multiple button electrodes spaced circumferentially around the tool in a wireline tool. Although the origin of the measurements are different in LWD and wireline tools, the processing methods described herein equally applies to both type of tools.

[0047] In operating the wireline electromagnetic imager tool to gather measurements for imaging, a voltage difference can be applied across the button array 402 and first and second return electrodes 404-1 and 404- 2 (return electrodes 404) of the pad 400. This voltage difference can generate currents that pass from the button array 402 into the mud and a surrounding formation. The pad 400 also includes a guard electrode 406 around the button array 402. The same potential that is applied to the button array 402 can be applied to the guard electrode 406 to focus all or a substantial portion of the current emitted into the mud and the surrounding formation. Specifically, the current can be emitted substantially radially into the surrounding formation by applying the same potential on the guard electrode 406 and the button array 402. An applicable electrical and/or thermal insulating material, such as a ceramic, can fill the remaining portions of the pad 400. For example, a ceramic material can be disposed between the return electrodes 404 and the guard electrode 406.The pad 400 is covered, at least in part, with a housing 408. The housing 408, and accordingly the pad 400 through the housing 408, can be connected through a securing mechanism to a mandrel. The securing mechanism can be a movable mechanism that moves the housing 408 and the contained pad 400 to substantially maintain contact with the formation. For example, the securing mechanism can include an arm that opens and/or swivels to move the housing 408 and the contained pad 400. By moving the housing 408 and the contained pad to maintain a good contact with the formation, the mud effect can be minimized for wireline imager tools. [0048] Turning back to a discussion of the mud effect and its impact on electromagnetic imager tools, the mud effect, as described previously, refers to the contribution of the mud to the measured impedance. Further and as discussed previously, this effect is particularly severe if a formation exhibits low resistivity and the distance between the button electrode’s outer surface and the borehole wall, e.g. the formation, is high. In those instances, measured impedance may have very low sensitivity to the formation features. Maintaining good contact between the pad 400 and the formation can help wireline imager tools to ensure that the electromagnetic imager tool actually measures the formation and not just the mud when the formation has low resistivity. Since mud effect is a function of standoff, the term standoff effect may be used interchangeably with mud effect in what follows. As will be discussed in greater detail later, the mud effect can be minimized or removed using an applicable technique, such as the techniques described herein. Further, the mud effect can be minimized or removed based on a mud angle determined using an applicable technique, such as the techniques described herein.

[0049] FIG. 5 illustrates a circuit model of the example pad 400 illustrated in FIG. 4. Although the exact design of the tool is different for LWD tools, as described with respect to FlGs. 2A-3, the equations derived for the circuit model shown in FIG. 5 are applicable for LWD tools. In the model, H denotes the housing (including the mandrel), F denotes the formation, either B or G denotes the button and guard assembly, and R denotes the return signal from the formation and/or the mud. While most of the transmitted current can be returned to the return electrodes, some portions of the transmitted current can return through the housing and/or the mandrel. An impedance value for each button can be calculated by measuring the voltage between the buttons and the return electrodes and dividing the measured voltage by the current transmitted through each button of the button array. Specifically, this technique is represented in Equation 1 shown below. In Equation 1, Z is the button impedance of one of the buttons in the button array, VBR is the button to return voltage, and IB is the button current. With respect to the LWD tools described in FlGs. 2A-C and Fig. 3, VBR can be replaced with the probe to return voltage, and IB can be replaced with the current of the probe.

Equation 1

[0050] A calculated button impedance, e.g. calculated by Equation 1, can be equal to the impedances of the button and guard assembly and the formation ZBF and the impedances of the return and the formation ZRF, as shown in the circuit model in FIG. 5. While ZBF and ZRF are denoted with respect to the formation F, ZBF and ZRF can have contributions from both the mud and the formation. Thus, ZBF can equivalently be represented by Equation 2 shown below.

Equation 2 Z » Z BF = Z mud + Z F [0051] Accordingly, a measured button impedance, as shown in Equation 2, can have contributions from both the mud and the formation. If the imaginary parts of ZF and Zm Ud are mainly capacitive, and assuming this capacitance is in parallel with the resistive portion, ZBF can also be written as shown in Equation 3 below.

Equation 3

[0052] In Equation 3, R and C denote the resistance and capacitance and w is the angular frequency (e.g. w = 2pί where f is the frequency in Hz). In Equation 3, subscript M denotes the mud while F denotes the formation. Both the mud resistance and mud capacitance can increase with standoff and decrease with the effective areas of the buttons.

[0053] Equation 3 can provide just a basic approximation to the impedance measured by the electromagnetic imager tool. However, Equation 3 can be useful in illustrating the effects of mud and formation parameters on the measured impedance. Specifically, from Equation 3, it can be deduced that high frequencies are needed to reduce the mud contribution to the measured impedance.

[0054] FIG. 6 is a plot of real parts of the impedances measured by the electromagnetic imager tool versus formation resistivity R t . In the plot shown in FIG. 6, it is assumed that formation permittivity (ei ) is 15, mud permittivity (eni) is 6, and mud resistivity (P M ) is 8000 W-m. Results for three different frequencies (1 MHz, 7 MHz and 49MHz) at two different standoffs (1mm and 3mm) are shown. Standoff, as used herein, is the distance of the button electrode’s outer surface from the borehole wall. It can be seen from FIG. 6 that there is a separation between different standoffs at lower formation resistivities. This effect can be more pronounced if the frequency is lower. At higher formation resistivities, the dielectric effect in the formation becomes more important and causes a roll-off in measured impedance.

[0055] With respect to the mud effect, it can be desirable to operate in a linear region of the curves shown in FIG. 6. Specifically, operating in a linear region can lead to a more accurate correspondence between the real parts of impedance and the tme formation resistivity. Further, the mud effect at low formation resistivities can cause an ambiguity in the interpretation of impedance, e.g. through impedance images.

[0056] The description now turns to a discussion of the Z90 processing technique for reducing the mud effect. FIG. 7 is a plot 700 of impedances in the complex plane and corresponding Z90 processing of the impedances. While the Z90 processing technique is discussed throughout this paper, the techniques for identifying mud angle described herein, can be implemented in an applicable processing technique that utilizes a mud angle associated with the electromagnetic imager tool. [0057] Z90 processing is applied to reduce the mud effect and make the response of the mud imager tool, e.g. the impedance response, more linear. In the plot 700 shown in FIG. 7, measured impedance Z, mud impedance ZM, and formation impedance ZF are shown as vectors in the complex plane. Although the approximate direction of the mud impedance vector ZM can be known, the strength of the vector depends on a number of factors including standoff. However, an orthogonal projection of Z on ZM can be calculated accurately by measuring the phase angle of the measured impedance, f z , and the phase angle of the mud impedance, 4>M, also referred to as the mud angle. This is applicable to Z90 processing because Z90 processing functions by removing the orthogonal projection of the measured impedance Z on the mud impedance vector Z m from the measured impedance Z. In turn, this can reduce or remove the mud effect. The resultant impedance created through Z90 processing, Z90, can be represented as shown below in Equation 4.

Equation 4 Z90 = |Z| sin(p z — f M )

[0058] FIG. 8 is a plot of real parts of simulated impedances measured by the electromagnetic imager tool versus simulated formation resistivities R t after Z90 processing is applied. Specifically, FIG. 8 is a plot of the impedances shown in FIG. 6 after Z90 processing is performed. As shown in the plot in FIG. 8, the impedance response is more linear across a wider range of formation resistivities after Z90 processing, corresponding to removal of the mud effect from the impedance measurements.

[0059] As shown in Equation 4, Z90 processing is dependent on the mud angle, 4>M, associated with the electromagnetic imager tool. In an ideal scenario, the mud angle is assumed to be known, e.g. mud cell measurements or measurements in a cased section of a wellbore. If the mud angle is perfectly known, then Z90 will not have any mud contribution and thus, will be equal to a weighted sum of the real part of formation impedance and the imaginary part of the formation impedance. This is indicated in Equation 5 shown below.

Equation 5 Z 90 » uqRejZp} + w 2 Im{Z F }

[0060] If it is further assumed that the imaginary part of the formation impedance can be neglected, then Z90 will indeed be a very good approximation to the real formation impedance, as shown in Equation 5.

[0061] The plot shown in FIG. 8 was made by applying the Z90 processing technique with correct mud angles identified through simulation. Specifically, the mud angles were identified for a circuit representation of an applicable wireline or LWD electromagnetic imager tool, such as the circuit model for the pad 400 shown in FIG. 4. The correct mud angles identified for the different frequencies are shown in Table 1 below.

Table 1

Although the term “mud angle” is used in its singular form throughout this discussion, this is done for simplicity and it is appreciated that mud angle actually varies with frequency.

[0062] While the plot shown in FIG. 8 was made using accurate mud angles, as discussed previously, the correct mud angle is not actually known in most scenarios and an inaccurate candidate of the mud angle is often used. This can ultimately impact processes, e.g. the Z90 technique, that utilize the mud angle associated with the electromagnetic imager tools.

[0063] As discussed previously, one solution to using incorrect mud angle candidates is to directly measure the mud through the electromagnetic imager tool. This measurement can be made by closing the arms of a wireline tool such that contributions from formation resistivity in the tool response are minimized. However and as discussed previously, this is an inefficient usage of the electromagnetic imager tool. Furthermore, this technique is not applicable to LWD tools. Even for wireline tools, the direct measurements made by the tool will still include some formation contributions as well as measurement noise which can negatively impact Z90 processing results. Furthermore, tool calibration may not have been optimized for a case where the pad is close to the tool body causing further inaccuracies. Alternatively, a dedicated mud cell may be included in the tool but this brings forth additional design complexities in addition to the costs associated with incorporating this extra part to the tool. To illustrate the formation contribution and measured noise, the identified mud angle values are shifted 0.5° from their exact values, as shown in Table 2 below.

Table 2

[0064] FIG. 9, is a plot of real parts of simulated impedances measured by the electromagnetic imager tool versus simulated formation resistivities R t after Z90 processing is performed on the shifted mud angles. Specifically, the plot shown in FIG. 9 is meant to illustrate the effects of direct mud measurements and associated noise on Z90 processing. As shown in FIG. 9, even a deviation as small as 0.5° from the correct value of the mud angle can cause large errors in the processed results. Specifically, this plot shows that an incorrect mud angle, be it as a result of direct mud measurements, noise, and or an incorrect assumption of the mud angle, leads to large errors in the processed results.

[0065] FIG. 10 illustrates a flowchart for an example method of identifying a mud angle for an electromagnetic imager tool based measurements made by the electromagnetic imager tool. The method shown in FIG. 10 is provided by way of example, as there are a variety of ways to carry out the method. Additionally, while the example method is illustrated with a particular order of steps, those of ordinary skill in the art will appreciate that FIG. 10 and the modules shown therein can be executed in any order and can include fewer or more modules than illustrated. Each module shown in FIG. 10 represents one or more steps, processes, methods or routines in the method.

[0066] The example method shown in the flowchart of FIG. 10 can be used to overcome the previously described deficiencies in identifying mud angle for processing technique, e.g. the Z90 processing technique. Specifically and as will be discussed in greater detail later, an accurate estimation of mud angle associated with the electromagnetic imager tool can be identified from measurements made by the mud imager tool operating to log a wellbore, e.g. as part of imaging a formation. This is in contrast to current techniques that inaccurately identify mud angle of the electromagnetic imager tool. Further, the example method shown in FIG. 10 can be implemented without directly measuring the mud and instead can rely on measurements made in actually imaging the formation to identify the mud angle. This can solve for the previously described inaccuracies in mud angle estimation through direct mud measurements and corresponding noise.

[0067] At step 1000, tool measurements made by the electromagnetic imager tool operating to log a wellbore are gathered. Specifically, the tool measurements gathered at step 1000 can be made as the electromagnetic imager tool operates to image a surrounding formation of the wellbore. Tool measurements made by the electromagnetic imager tool can include applicable measurements made by the electromagnetic imager tool operating to log the wellbore.

[0068] The tool measurements made by the electromagnetic imager tool can be gathered from one or more images of the formation that are created based on measurements gathered by the electromagnetic imager tool. Specifically, the tool measurements can be gathered from one or more images of the formation that are generated by an electromagnetic imaging system associated with the electromagnetic imager tool. For example, impedance measurements made by the electromagnetic imager tool can be gathered from one or more images of the formation generated based on the impedance measurements.

[0069] At step 1002, the tool measurements are decomposed into two quantities along a plurality of mud angle candidates for the electromagnetic imager tool. Decomposition, as used herein, can include applying an applicable technique to change the measurements made by the electromagnetic imager tool into quantities in a measurable space. Specifically, decomposition can include projecting the measurements or components derived from the measurements, transforming the measurements or the components derived from the measurements, or applying one or more functions to the measurements or the components derived from the measurements to create two quantities in a measurable space. Quantities, as used herein, can include applicable quantities that are capable of being decomposed from the measurements into a measurable space. For example and as will be discussed in greater detail later, decomposing the measurements into two quantities can include generating magnitudes of two orthogonal components of measured impedance at the electromagnetic imager tool. Further in the example, one of the quantities can be in a direction normal to a mud angle candidate of a plurality of mud angle candidates for the electromagnetic imager tool. Additionally, another of the quantities can be in a direction parallel to a mud angle candidate of a plurality of mud angle candidates for the electromagnetic imager tool.

[0070] In decomposing the tool measurements into two quantities along a plurality of mud angle candidates for the electromagnetic imager tool, the tool measurements can be decomposed into the two quantities for each of the mud angle candidates. Specifically, the tool measurements can be decomposed into the same two quantities for each of the mud angle candidates. For example, magnitudes of two orthogonal components of measured impedance can be identified for each mud angle candidate for the electromagnetic imager tool. Values of the two quantities can vary between the different mud angle candidates. For example, a magnitude of an orthogonal component of measured impedance for a first mud angle candidate can be greater than a magnitude of the orthogonal component of the measured impedance for a second mud angle candidate. In another example, a projection of a measurement in a direction of a first mud angle candidate can differ from a projection of the measurement in a direction of a second mud angle candidate.

[0071] At step 1004, a mud angle associated with the electromagnetic imager tool is identified from the plurality of mud angle candidates based on an amount of correlation between the two quantities for the plurality of mud angle candidates. Specifically, a mud angle associated with the electromagnetic imager tool can be identified from the plurality of mud angle candidates based on an amount of correlation between the two quantities for each of the plurality of mud angle candidates. Correlation, as used herein, can be defined according to one or more applicable characteristics of the quantities that relate or otherwise associate the quantities with each other. For example, correlation can include comparing defined characteristics of projected impedance vectors that relate the projected impedance vectors in the complex space. An applicable technique for correlating quantities in a measurable space can be applied to measure an amount of correlation between the two quantities for the mud angle candidates. For example, the Pearson product- moment correlation coefficient can be used to measure an amount of correlation between the two quantities for each of the mud angle candidates. In another example, Spearman's rank correlation coefficient and distance correlation can be used to measure an amount of correlation between the two quantities for each of the mud angle candidates.

[0072] The amount of correlation between the two quantities along the plurality of mud angle candidates can be identified along a specific depth interval of the gathered tool measurements. For example, the amount of correlation between impedance vectors decomposed from gathered impedance measurements can be identified for the mud angle candidates along a specific depth interval of the corresponding impedance measurements. The depth interval used in determining correlation between the two quantities can have a length suitable to account for variations in either or both a resistivity profile of the formation and rugosity in one or more walls of the wellbore. For example, impedance measurements gathered over varying resistivity levels of the formation can be decomposed into the two quantities along the mud angle candidates. In turn, the amount of correlation between the two quantities along the mud angle candidates can be determined to ultimately identify one or more mud angles associated with the electromagnetic imager tool.

[0073] The mud angle can be identified from the plurality of mud angle candidates based on the mud angle having the smallest amount of correlation between the two quantities amongst each of the plurality of mud angle candidates. In a simplified example, a first mud angle candidate can have less correlation between impedance projections than a second mud angle candidate. In turn, the first mud angle candidate can be selected for the electromagnetic imager tool based on the amount of correlation between the two quantities.

[0074] In various embodiments, a plurality of mud angles can be identified from the plurality of mud angle candidates based on an amount of correlation between the two quantities for each of the plurality of mud angle candidates. In turn, the mud angle amongst the identified plurality of mud angles that that minimizes the correlation between the two quantities can ultimately be selected. In various embodiments, multiple candidate mud angles can minimize the correlation between the two quantities, e.g. depending on the mud angle candidates and/or the correlated quantities. In turn, multiple mud angles from the candidate mud angles can be identified and one or more of the identified mud angles can be chosen based on a rule. For example, a mud angle that is closest to -90° can be selected from a plurality of candidate mud angles that minimize the correlation between the two quantities. The plurality of mud angles identified from the plurality of mud angle candidates based on an amount of correlation between the two quantities can form a range of mud angles. Further the plurality of mud angles can include a subset of mud angle candidates that are physically reasonable, e.g. actually capable of being achieved in the mud. For example, the plurality of mud angles can be located in the fourth quadrant of the complex plane, e.g. -90° to 0°.

[0075] One or more mud angles identified from the plurality of mud angle candidates based on an amount of correlation between the two quantities can be processed using an applicable technique that utilizes mud angles associated with the electromagnetic imager tool. For example, a mud effect removal process, e.g. Z90 processing, can be applied to one or more images based on the identified mud angle to remove the mud effect from the one or more images. This can improve both quality and contrast in the images, particularly in areas of the image affected by the mud effect. Additionally, the one or more mud angles identified from the plurality of mud angle candidates can be returned to a user, e.g. along with one or more processed images. The user can use the returned mud angle(s) in applying further processing, such as application of an advanced inversion for other mud and formation parameters/properties. In turn, this can reduce amounts of time and computational resources used in applying the advanced inversion.

[0076] The description now turns to a discussion of the different quantities that can be decomposed from the tool measurements to identify the mud angle. For example, the tool measurements can be decomposed into magnitudes of two orthogonal components of measured impedance at the electromagnetic imager tool. As measurements gathered by the electromagnetic imager tool are gathered over a large amount of measurement points, e.g. in both the azimuthal direction and the depth direction, the measurements can be flattened into vectors as part of decomposing the tool measurements into the two quantities.

[0077] In various embodiments, the tool measurements can be decomposed into two quantities including magnitudes of the orthogonal components of measured impedance at the electromagnetic imager tool. In particular, one or more angles that minimize the correlation of the Z90 measurement with the projection of the measured impedance along a candidate mud angle direction, Zll, can be identified. Zll is shown in Equation 6 below.

Equation 6 Z = |Z| cos p z — f M

[0078] FIG. 11 is a plot 1100 of Z90 and Zll vectors in the complex plane for identifying the mud angle based on correlation of Z90 and Zll quantities. Projections of the measured impedance on the real and imaginary axes, where ZRE denotes the real part of the measured impedance and Zm denotes the imaginary part of the measured impedance, are also shown in the plot 1100. If the candidate mud angle is denoted as f M , where the tilde denotes that the value is an estimate, then Z 90 and Z II denote the projections corresponding to this candidate mud angle. As follows the mud angle can be selected according to Equation 7 shown below.

Equation7 arg f

[0079] In Equation 7, corr() denotes the correlation of quantities Z90 and Zll. The quantities can be correlated through an applicable correlation technique, such as using the Pearson product-moment correlation coefficient, as shown in Equation 8 below.

Equation 8

[0080] In Equation 8, Cov () denotes the covariance of the two vectors while s denotes the standard deviation of Z90 and Z II . Through application of the Pearson product-moment correlation coefficient, correlation can become negative. This can indicate a dependence of two vectors that behave in opposite ways, e.g. one decreases while the other increases. Since the techniques describe herein can use a minimized correlation dependence, an absolute value sign was included in Equation 7 to account for negative correlation.

[0081] In various embodiments, the tool measurements can be decomposed into a first quantity including a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle of the plurality of candidate mud angles. Further, the tool measurements can be decomposed into a second quantity including an imaginary component of the measured impedance. In turn, the magnitude of the component of the measured impedance normal to the candidate mud angles can be correlated with the imaginary component of the measured impedance to ultimately identify the mud angle for the electromagnetic imager tool. Specifically, correlation of the Z90 with Zm can be used instead of Zll to identify the mud angle. Since Z90 is a measure of the formation resistivity, Equation 9 can be used to obtain the mud angle that minimizes Z90 and Zm among a range of possible candidate mud angles.

Equation 9

[0082] In various embodiments, the tool measurements can be decomposed into a first quantity including a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on candidate mud angles. The Za projection of measured impedance can be a vector projection of Za processing in a complex plane. Specifically, the Za projection can be the projection of the vector starting from a measured impedance and ending on a vector parallel to a mud impedance. Further, the tool measurements can be decomposed into a second quantity including an imaginary component of the measured impedance. In turn, the magnitude of the Za projection for the candidate mud angles can be correlated with the imaginary component of the measured impedance to ultimately identify the mud angle for the electromagnetic imager tool. The mud angle candidate can be identified based on Equation 10. In Equation 10, the tilde over Za represents that the Za is calculated using the corresponding mud angle estimate ¾.

Equation 10

[0083] In various embodiments, the tool can be decomposed into a first quantity including a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle\ of the plurality of candidate mud angles. Further, the tool measurements can be decomposed into a second quantity including the component of the measured impedance normal to the candidate mud angle removed from a real component of the measured impedance. In turn, the magnitude of the component of the measured impedance at the electromagnetic imager tool normal to the candidate mud angles can be correlated with the component of the measured impedance normal to the candidate mud angle removed from the real component of the measured impedance to ultimately identify the mud angle for the electromagnetic imager tool. The candidate mud angle can be identified based on Equation 11.

Equation 11

[0084] In various embodiments, the tool can be decomposed into a first quantity including a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on a candidate mud angle of the plurality of candidate mud angles. Further, the tool measurements can be decomposed into a second quantity including the Za projection of the measured impedance generated based on the candidate mud angle removed from a real component of the measured impedance. In turn, the magnitude of the Za projection of the measured impedance at the electromagnetic imager tool generated based on the candidate mud angle can be correlated with the Za projection of the measured impedance generated based on the candidate mud angle removed from the real component of the measured impedance to ultimately identify the mud angle for the electromagnetic imager tool. The candidate mud angle can be made based on Equation 12.

Equation 12

[0085] Tool measurements that are decomposed and used to identify the one or more mud angles can be a subset of the total number of tool measurements made by the electromagnetic imager tool. In particular, specific tool measurements or groups of tool measurements can be selected from the total number of tool measurements made by the electromagnetic imager tool, e.g. in generating one or more images. In turn, the identified tool measurements can be used in identifying the mud angle of the electromagnetic imager tool.

[0086] Tool measurements can be selected from a plurality of tool measurements based on absolute values of the tool measurements. Further, the tool measurements can be selected from the plurality of tool measurements using a histogram. Specifically, the tool measurements can be selected based on a histogram of absolute values of the tool measurements. In turn, the measurements selected based on the histogram of absolute values can further be filtered to select measurements with relatively lower absolute impedance values. If exact cutoffs are irrelevant, e.g. where calibration is believed to be inadequate, a percentage based threshold may be applied rather than a predefined threshold for measurement selection. For example, the impedance measurements in the lowest 25% of impedances can be filtered out from the measurements selected using the histogram of absolute values. In order to further simplify calculations, these filtered measurements can be reduced even more by randomly/pseudo-randomly selecting measurements from these filtered measurements. In various embodiments, lowest impedances can be undesirable due to noise or other applicable effects, such as the tool body effect. Accordingly, the measurements can have very low sensitivities to the formation. As a result, a lower threshold of absolute impedances can be applied, e.g. a threshold between 5% and 25% may be used.

[0087] Further, tool measurements can be selected from a plurality of tool measurements based on either or both real values and imaginary values of the tool measurements. Real parts of the measurements can be scaled by a tool constant to give apparent resistivity values. However, using absolute value to select the tool measurements can be more beneficial than using the real part of the tool measurements since real part of the measurements does not monotonically increase with formation resistivity. Absolute value measurements may also be preferable to imaginary value measurements since they are more sensitive to formation resistivity if the formation resistivity is low.

[0088] Tool measurements can also be selected from a plurality of tool measurements manually by an operator. Specifically, an operator can manually select the tool measurements from the plurality of tool measurements by visually inspecting the plurality of tool measurements and/or one or more images generated from the plurality of tool measurements. For example, an operator can select regions in an image log that have low resistivities and show the mud effect. An operator can also use data from other applicable tools to select the tool measurements from the plurality of tool measurements. In particular, an operator can use data from other tools that logged the formation to select the tool measurements from the plurality of tool measurements. For example, an operator can use formation resistivity results created through a multi- component induction tool or an array laterolog tool to select the tool measurements from the plurality of tool measurements. Alternatively, an operator does not actually select the tool measurements using other tools, but instead the process of selecting the tool measurements based on measurements made by other tools is automated. For example, tool measurements can automatically be selected for formation regions that have low resistivities, as measured by other tools.

[0089] Thresholds for selecting tool measurements from a plurality of tool measurements, e.g. the previously described impedance thresholds, can change based on operating frequency of the electromagnetic imager tool. In turn, the tool measurements can be selected based on an operating frequency of the electromagnetic imager tool in making the tool measurements. Further, thresholds can be specific to different formation types. In turn, the thresholds can be selected and applied based on the type of formation that is imaged. Thresholds for selecting tool measurements can be determined and modified by an operator. Specifically, an operator can set thresholds based on a visualization of data. For example, a plot of the real parts of data against the absolute values of the data can be used by an operator to identify thresholds.

[0090] Additionally, tool measurements can be selected based on assigned quality indicators to the tool measurements or regions including the tool measurements. For example, a formation region can have high expected resistivities, e.g. as identified by other tools. As a result, the region can be assigned a low quality indicator and tool measurements in these regions can be excluded from the selected tool measurements, e.g. based on the low quality indicator. Further, tool measurements can be selected based on noise levels in the tool measurements. Specifically, the tool measurements can be assigned a quality indicator based on the noise levels in the tool measurements. Subsequently, the tool measurements can be selected if the noise levels are low in the measurements, e.g. as indicated by the quality indicator assigned to the measurements. Noise levels in the measurements can be determined using an applicable technique. For example, changes in a signal for measurements in proximity to each other can be used to determine noise levels in the measurements.

[0091] Additionally, tool measurements can be selected from a plurality of tool measurements made by the electromagnetic imager tool based on resistivity measurements made by a different tool from the electromagnetic imager tool, e.g. another tool configured to image a formation. For example, tool measurements can be selected from a plurality of tool measurements made by the electromagnetic imager tool based on resistivity measurements made by an induction type logging tool separate from the electromagnetic imager tool. In another example, tool measurements can be selected from a plurality of tool measurements made by the electromagnetic imager tool based on resistivity measurements made by a laterolog type logging tool separate from the electromagnetic imager tool.

[0092] The description now turns to a discussion of an example simulation of identifying mud angles of the electromagnetic imager tool according to the techniques described herein.

[0093] In Table 3 shows mud angle values generated using the techniques described herein.

Table 3

[0094] The mud angle values shown in Table 3 were generated used the same mud properties and formation permittivity used to generate the plots shown in FlGs. 8 and 9. To obtain a realistic simulation, a Monte Carlo type simulation was performed where the standoff and formation resistivities were chosen as random/pseudo-random variables with a uniform distribution. Standoff was varied between 1 mm and 5 mm, and formation resistivity was changed between 0.1 W-m and 20 W-m for 1MHz, 0.1 W-m and 6 W-m for 7 MHz, and 0.1 W-m and 1 W-m for 49 Mhz. These resistivity value ranges for different frequencies is in line with the aforementioned variation of thresholds in selecting resistivity ranges for different frequencies.

[0095] Then, using the impedances obtained from the Monte Carlo simulation and Equations 7 and 8, the mud angle that minimizes the correlation among the mud angle values in the fourth quadrant of the complex plane, e.g. between -90° and 0°, was found. A brute force search with a spacing of 0.01° was used in this calculation. Therefore, the results shown in Table 3 can be varied to an accuracy of 0.005°. More complicated techniques can be employed to calculate the mud angle that minimizes Equation 7, such as interpolating the results, fine tuning the results around the final result, or performing an inversion. The computed mud angles shown in Table 3 are very close to true values. The simulation was based on the approximate circuit model of the tool, as shown in FIG. 5, which does not contain noise. However, standoff and formation resistivity were varied.

[0096] FIG. 12 is a plot of real parts of impedances versus simulated formation resistivities R t after Z90 processing is applied based on mud angles identified using the techniques described herein. These results are very close to the case shown in the plot in FIG. 8. The largest discrepancies between the two plots occur for the lowest frequency and at very low resistivities. However, the error in mud angle is just 0.01° for this frequency. In practice, most electromagnetic imager tools employ multiple frequencies so for low resistivity range a higher frequency can be used to image.

[0097] FlGs. 13A-C are resistivity images, in the logarithmic scale, of another simulation. The resistivity images shown in FlGs. 13A-C are obtained synthetically, e.g. without any processing using a mud angle identified by the techniques described herein. Tme resistivity values in this scenario correspond to layers with 30° dip and low resistivities up to a depth of 15.3 inches and then higher resistivity layers above 15.3 inches, e.g. for the button with an azimuth angle of 180° as a reference. It is assumed that formation permittivity (ei ) is 15, mud permittivity ίeni) is 6, and mud resistivity (P M ) is 8000 W-m, which is the same as described previously with respect to the plot shown in FIG. 6. However, simulated frequencies in this case are 1, 10 and 50 MHz. Theoretical mud angles obtained for these frequencies using the circuit model are listed in Table 4.

[0098] Table 4Resistivities of layers in the formation are listed in Table 5.

Table 5 [0099] Image gray scale is based on the apparent resistivity obtained by dividing the impedances measured at the buttons by an appropriate tool constant. Pixels where there is no data is shown as solid vertical lines in these images.

[0100] As shown in FlGs. 13A-C, the low frequency case is especially insensitive to the low resistivity layers due to the mud effect. This is problematic and is correctable by processing corresponding measurements using a mud angle identified through the techniques described herein. Specifically, FIG. 14 is a plot of the variation of the absolute value of correlation as a function of candidate mud angles, identified using the techniques described herein, for the corresponding three different frequencies of the simulations represented in FlGs. 13A-C. A range of candidate mud angles between -90° and 0° was selected. Correlation shows a single minimum in the chosen range. Mud angles corresponding to this minimum decreases, e.g. gets closer to -90°, as the frequency increases. Table 6 lists the candidate mud angles that minimized the correlation curves shown in FIG. 14. It can be seen that the results, although imperfect for this multilayer case, e.g. due to shoulder bed and other higher order effects, are very close to the true values, e.g. the greatest error is less than 3° for 10 MHz.

Table 6

[0101] FIG. 15 illustrates an example computing device architecture 1500 which can be employed to perform various steps, methods, and techniques disclosed herein. Specifically, the computing device architecture can be integrated with the electromagnetic imager tools described herein. Further, the computing device can be configured to implement the techniques of controlling borehole image blending through machine learning described herein.

[0102] As noted above, FIG. 15 illustrates an example computing device architecture 1500 of a computing device which can implement the various technologies and techniques described herein. The components of the computing device architecture 1500 are shown in electrical communication with each other using a connection 1505, such as a bus. The example computing device architecture 1500 includes a processing unit (CPU or processor) 1510 and a computing device connection 1505 that couples various computing device components including the computing device memory 1515, such as read only memory (ROM) 1520 and random access memory (RAM) 1525, to the processor 1510.

[0103] The computing device architecture 1500 can include a cache of high-speed memory connected directly with, in close proximity to, or integrated as part of the processor 1510. The computing device architecture 1500 can copy data from the memory 1515 and/or the storage device 1530 to the cache 1512 for quick access by the processor 1510. In this way, the cache can provide a performance boost that avoids processor 1510 delays while waiting for data. These and other modules can control or be configured to control the processor 1510 to perform various actions. Other computing device memory 1515 may be available for use as weU. The memory 1515 can include multiple different types of memory with different performance characteristics. The processor 1510 can include any general purpose processor and a hardware or software service, such as service 1 1532, service 2 1534, and service 3 1536 stored in storage device 1530, configured to control the processor 1510 as well as a special-purpose processor where software instructions are incorporated into the processor design. The processor 1510 may be a self-contained system, containing multiple cores or processors, a bus, memory controller, cache, etc. A multi-core processor may be symmetric or asymmetric.

[0104] To enable user interaction with the computing device architecture 1500, an input device 1545 can represent any number of input mechanisms, such as a microphone for speech, a touch-sensitive screen for gesture or graphical input, keyboard, mouse, motion input, speech and so forth. An output device 1535 can also be one or more of a number of output mechanisms known to those of skill in the art, such as a display, projector, television, speaker device, etc. In some instances, multimodal computing devices can enable a user to provide multiple types of input to communicate with the computing device architecture 1500. The communications interface 1540 can generally govern and manage the user input and computing device output. There is no restriction on operating on any particular hardware arrangement and therefore the basic features here may easily be substituted for improved hardware or firmware arrangements as they are developed.

[0105] Storage device 1530 is a non-volatile memory and can be a hard disk or other types of computer readable media which can store data that are accessible by a computer, such as magnetic cassettes, flash memory cards, solid state memory devices, digital versatile disks, cartridges, random access memories (RAMs) 1525, read only memory (ROM) 1520, and hybrids thereof. The storage device 1530 can include services 1532, 1534, 1536 for controlling the processor 1510. Other hardware or software modules are contemplated. The storage device 1530 can be connected to the computing device connection 1505. In one aspect, a hardware module that performs a particular function can include the software component stored in a computer-readable medium in connection with the necessary hardware components, such as the processor 1510, connection 1505, output device 1535, and so forth, to carry out the function. [0106] For clarity of explanation, in some instances the present technology may be presented as including individual functional blocks including functional blocks comprising devices, device components, steps or routines in a method embodied in software, or combinations of hardware and software.

[0107] In some embodiments the computer-readable storage devices, mediums, and memories can include a cable or wireless signal containing a bit stream and the like. However, when mentioned, non-transitory computer-readable storage media expressly exclude media such as energy, carrier signals, electromagnetic waves, and signals per se.

[0108] Methods according to the above-described examples can be implemented using computer- executable instructions that are stored or otherwise available from computer readable media. Such instmctions can include, for example, instructions and data which cause or otherwise configure a general purpose computer, special purpose computer, or a processing device to perform a certain function or group of functions. Portions of computer resources used can be accessible over a network. The computer executable instructions may be, for example, binaries, intermediate format instmctions such as assembly language, firmware, source code, etc. Examples of computer-readable media that may be used to store instmctions, information used, and/or information created during methods according to described examples include magnetic or optical disks, flash memory, USB devices provided with non-volatile memory, networked storage devices, and so on.

[0109] Devices implementing methods according to these disclosures can include hardware, firmware and/or software, and can take any of a variety of form factors. Typical examples of such form factors include laptops, smart phones, small form factor personal computers, personal digital assistants, rackmount devices, standalone devices, and so on. Functionality described herein also can be embodied in peripherals or add in cards. Such functionality can also be implemented on a circuit board among different chips or different processes executing in a single device, by way of further example.

[0110] The instmctions, media for conveying such instmctions, computing resources for executing them, and other structures for supporting such computing resources are example means for providing the functions described in the disclosure.

[0111] In the foregoing description, aspects of the application are described with reference to specific embodiments thereof, but those skilled in the art will recognize that the application is not limited thereto. Thus, while illustrative embodiments of the application have been described in detail herein, it is to be understood that the disclosed concepts may be otherwise variously embodied and employed, and that the appended claims are intended to be construed to include such variations, except as limited by the prior art. Various features and aspects of the above-described subject matter may be used individually or jointly. Further, embodiments can be utilized in any number of environments and appbcations beyond those described herein without departing from the broader spirit and scope of the specification. The specification and drawings are, accordingly, to be regarded as illustrative rather than restrictive. For the purposes of illustration, methods were described in a particular order. It should be appreciated that in alternate embodiments, the methods may be performed in a different order than that described.

[0112] Where components are described as being “configured to” perform certain operations, such configuration can be accomplished, for example, by designing electronic circuits or other hardware to perform the operation, by programming programmable electronic circuits (e.g., microprocessors, or other suitable electronic circuits) to perform the operation, or any combination thereof.

[0113] The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the examples disclosed herein may be implemented as electronic hardware, computer software, firmware, or combinations thereof. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

[0114] The techniques described herein may also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such techniques may be implemented in any of a variety of devices such as general purposes computers, wireless communication device handsets, or integrated circuit devices having multiple uses including application in wireless communication device handsets and other devices. Any features described as modules or components may be implemented together in an integrated logic device or separately as discrete but interoperable logic devices. If implemented in software, the techniques may be realized at least in part by a computer-readable data storage medium comprising program code including instructions that, when executed, performs one or more of the method, algorithms, and/or operations described above. The computer-readable data storage medium may form part of a computer program product, which may include packaging materials.

[0115] The computer-readable medium may include memory or data storage media, such as random access memory (RAM) such as synchronous dynamic random access memory (SDRAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, magnetic or optical data storage media, and the like. The techniques additionally, or alternatively, may be realized at least in part by a computer-readable communication medium that carries or communicates program code in the form of instructions or data structures and that can be accessed, read, and/or executed by a computer, such as propagated signals or waves.

[0116] Other embodiments of the disclosure may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. Embodiments may also be practiced in distributed computing environments where tasks are performed by local and remote processing devices that are linked (either by hardwired links, wireless links, or by a combination thereof) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

[0117] In the above description, terms such as "upper," "upward," "lower," "downward," "above," "below," "downhole," "uphole," "longitudinal," "lateral," and the like, as used herein, shall mean in relation to the bottom or furthest extent of the surrounding wellbore even though the wellbore or portions of it may be deviated or horizontal. Correspondingly, the transverse, axial, lateral, longitudinal, radial, etc., orientations shall mean orientations relative to the orientation of the wellbore or tool. Additionally, the illustrate embodiments are illustrated such that the orientation is such that the right-hand side is downhole compared to the left-hand side.

[0118] The term "coupled" is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term "outside" refers to a region that is beyond the outermost confines of a physical object. The term "inside" indicates that at least a portion of a region is partially contained within a boundary formed by the object. The term "substantially" is defined to be essentially conforming to the particular dimension, shape or another word that substantially modifies, such that the component need not be exact. For example, substantially cylindrical means that the object resembles a cylinder, but can have one or more deviations from a true cylinder.

[0119] The term "radially" means substantially in a direction along a radius of the object, or having a directional component in a direction along a radius of the object, even if the object is not exactly circular or cylindrical. The term "axially" means substantially along a direction of the axis of the object. If not specified, the term axially is such that it refers to the longer axis of the object.

[0120] Although a variety of information was used to explain aspects within the scope of the appended claims, no limitation of the claims should be implied based on particular features or arrangements, as one of ordinary skill would be able to derive a wide variety of implementations. Further and although some subject matter may have been described in language specific to structural features and/or method steps, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to these described features or acts. Such functionality can be distributed differently or performed in components other than those identified herein. The described features and steps are disclosed as possible components of systems and methods within the scope of the appended claims.

[0121] Moreover, claim language reciting “at least one of’ a set indicates that one member of the set or multiple members of the set satisfy the claim. For example, claim language reciting “at least one of A and B” means A, B, or A and B.

[0122] Statements of the disclosure include:

[0123] A method comprising gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation. The method can also include decomposing the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. Further, the method can include identifying a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

[0124] A system comprising one or more processors and at least one computer-readable storage medium having stored therein instructions. The instructions which, when executed by the one or more processors, cause the one or more processors to perform operations comprising gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation. Further, the instructions can cause the one or more processors to decompose the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. Additionally, the instructions can cause the one or more processors to identify a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles. [0125] A non-transitory computer-readable storage medium having stored therein instmctions which, when executed by a processor, cause the processor to perform operations comprising gathering tool measurements made by an electromagnetic imager tool operating to log a wellbore in a formation. The instructions can cause the processor to decompose the tool measurements into two quantities along a plurality of candidate mud angles for the electromagnetic imager tool. Further, the instructions can cause the processor to identify a mud angle associated with the electromagnetic imager tool from the plurality of candidate mud angles based on an amount of correlation between the two quantities for each of the plurality of candidate mud angles.

[0126] The one or more images generated from the tool measurements can be processed by applying a mud effect removal process to the tool measurements based on the identified mud angle. The identified mud angle can have a smallest amount of correlation between the two quantities across the plurality of candidate mud angles. Further, values of the two quantities vary along the plurality of candidate mud angles. The two quantities can include magnitudes of two orthogonal components of measured impedance at the electromagnetic imager tool where one quantity of the two quantities is in a direction normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities is in the direction parallel to a candidate mud angle of the plurality of candidate mud angles. Further, a first quantity of the two quantities can include a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities can include an imaginary component of the measured impedance. Additionally, a first quantity of the two quantities can include a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities can include an imaginary component of the measured impedance. A first quantity of the two quantities can include a magnitude of a component of measured impedance at the electromagnetic imager tool normal to a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities can include the component of the measured impedance normal to the candidate mud angle removed from a real component of the measured impedance. Also, a first quantity of the two quantities can include a magnitude of a Za projection of measured impedance at the electromagnetic imager tool generated based on a candidate mud angle of the plurality of candidate mud angles and a second quantity of the two quantities can include the Za projection of the measured impedance generated based on the candidate mud angle removed from a real component of the measured impedance. [0127] The amount of correlation between the two quantities along the plurality of candidate mud angles can be identified along a depth interval of the tool measurements made by the electromagnetic imager tool. A length of the depth interval of the tool measurements can account for variations in either or both a resistivity profile of the formation and mgosity in one or more walls of the wellbore. The tool measurements decomposed into the two quantities can be a subset of a total number of tool measurements made by the electromagnetic imager tool operating to log the wellbore. The tool measurements can be selected from the total number of tool measurements made by the electromagnetic imager tool based on one or a combination of real values, imaginary values, and absolute values of the tool measurements. Further, the tool measurements can be selected from the total number of tool measurements made by the electromagnetic imager tool based on one or more operating frequencies of the electromagnetic imager tool in making the tool measurements. Additionally, the tool measurements can be selected from the total number of tool measurements made by the electromagnetic imager tool based on a histogram of absolute values of at least a portion of the total number of tool measurements. The tool measurements can also be selected from the total number of tool measurements made by the electromagnetic imager tool based on noise levels in the tool measurements.

[0128] The tool measurements can be selected from the total number of tool measurements made by the electromagnetic imager tool based on one or a combination of visual inspection of at least a portion of the total number of tool measurements, visual inspection of one or more images of the formation generated from the at least a portion of the total number of tool measurements, and the resistivity measurements made by a different tool from the electromagnetic imager tool.

[0129] The electromagnetic imager tool can be disposed in the wellbore. In turn, the electromagnetic imager tool can be operated in the wellbore to gather the tool measurements by logging the wellbore.