System and method for estimating material density

10192007 ยท 2019-01-29

Assignee

Inventors

Cpc classification

International classification

Abstract

A method implemented using one or more computer processors for estimating the density of a material in an annular space includes receiving detector data representative of scattered photons resulting from interaction of a material in an annular space with radiation from a radiation source and detected by a plurality of radiation detectors. The technique further includes performing a set of Monte Carlo simulations. The method further includes performing a principal component analysis on the set of Monte Carlo simulations to generate a principal component analysis model of the detector data. The method also includes estimating the density of the material at one or more locations within the annular space based upon the principal component analysis model and the detector data.

Claims

1. A system for estimating the density of a material in an annular space, the system comprising: (a) a physical tool configured to be accommodated within and move within a channel of an inner conduit disposed within an outer conduit, the inner conduit and the outer conduit together defining an annular space containing a material characterized by one or more densities, the physical tool comprising a radiation source and a plurality of radiation detectors, the radiation detectors being configured to detect scattered photons resulting from interaction of the material in the annular space with radiation from the radiation source; (b) a data transmission device coupled to the plurality of radiation detectors and configured to transmit detector data; and (c) one or more computer processors linked to the data transmission device and configured to receive the detector data, the one or more computer processors generating a set of Monte Carlo simulations based on the geometry of the inner and outer conduits, the composition of the inner and outer conduits, the relative location of the physical tool with respect to the inner and outer conduits, the geometry of the physical tool and a set of hypothetical materials of different densities, the one or more computer processors being configured to perform a principal component analysis on the set of Monte Carlo simulations to generate a principal component analysis model of the detector data, the one or more computer processors being configured to apply the principal component analysis model to the detector data to estimate the density of the material in the annular space at one or more locations within the annular space based upon the principal component analysis model and the detector data using an optimization technique.

2. The system according to claim 1, wherein the plurality of radiation detectors is characterized by a plurality of energy windows.

3. The system according to claim 2, wherein the plurality of radiation detectors is configured to detect count rate data in multiple energy windows simultaneously.

4. The system according to claim 1, wherein the well parameters comprise inner and outer diameters of the inner and outer conduits and the radius of the physical tool.

5. The system according to claim 1, wherein the principal component analysis is performed by computing a singular value decomposition of the Monte Carlo simulation data and detector data.

6. The system according to claim 1, wherein the principal component analysis identifies a subspace defined by at least one principal component.

7. The system according to claim 6, wherein the one or more computer processors are configured to project the Monte Carlo simulation data onto a subspace determined by the principal components.

8. The system according to claim 7, wherein the one or more computer processors are configured to determine a polynomial fit of the projected Monte Carlo simulation data where the polynomial is a function of the density of the material in the annulus.

9. The system according to claim 8, wherein the one or more computer processors are configured to determine an inverse image of the polynomial function based on the detector data, wherein the inverse image is an estimate of the density.

10. The system according to claim 6, wherein the one or more computer processors are configured to project the detector data onto a subspace determined by the principal components.

11. A method for estimating the density of a material in an annular space, the method comprising: (a) receiving detector data, from a plurality of radiation detectors, representative of scattered photons resulting from interaction of a material in an annular space with radiation from a radiation source and detected by the plurality of radiation detectors, wherein the radiation source and the plurality of radiation detectors is part of a physical tool configured to be accommodated within and move within a channel of an inner conduit disposed within an outer conduit, the inner conduit and the outer conduit together defining the annual space; (b) transmitting, by a data transmission device coupled to the plurality of radiation detectors, the detector data to one or more computer processors; the one or more computer processors being configured for: (i) performing a set of Monte Carlo simulations based on the geometry of the inner and outer conduits, the composition of the inner and outer conduits, the relative location of the physical tool with respect to the inner and outer conduits, the geometry of the physical tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit; (ii) performing a principal component analysis on the set of Monte Carlo simulations to generate a principal component analysis model of the detector data; (iii) applying the principal component analysis model to the detector data; and (iv) estimating the density of the material in the annular space at one or more locations within the annular space based upon the principal component analysis model and the detector data using an optimization technique; (c) receiving, by the one or more computer processors, one or more estimated densities of the material in the annular space.

12. The method according to claim 11, wherein the plurality of radiation detectors operates in a plurality of energy windows.

13. The method according to claim 12, wherein the detector data comprises count rate data generated in multiple energy windows simultaneously.

14. The method according to claim 11, wherein the well parameters comprise inner and outer diameters of the inner and outer conduits and the radius of the physical tool.

15. The method according to claim 11, wherein the principal component analysis is performed by computing a singular value decomposition of the detector data.

16. The method according to claim 11, wherein the principal component analysis identifies a subspace defined by at least one principal component.

17. The method according to claim 16, wherein the applying comprises projecting the Monte Carlo simulation data onto a subspace determined by the principal components.

18. The method according to claim 17, wherein the estimating comprises determining a polynomial fit of the projected Monte Carlo simulation data where the polynomial is a function of the density of the material in the annulus.

19. The method according to claim 18, wherein the estimating comprises determining an inverse image of the polynomial function given detector data.

20. A non-transitory computer readable medium having instructions to enable one or more computer processors to: (a) receive detector data, from a plurality of radiation detectors, representative of scattered photons resulting from interaction of a material in an annular space with radiation from a radiation source and detected by the plurality of radiation detectors, wherein the radiation source and the plurality of radiation detectors is part of a physical tool configured to be accommodated within and move within a channel of an inner conduit disposed within an outer conduit, the inner conduit and the outer conduit together defining the annual space; (b) transmit, by a data transmission device coupled to the plurality of radiation detectors, the detector data to the one or more computer processors; the one or more computer processors being configured for: (i) performing a set of Monte Carlo simulations based on the geometry of the inner and outer conduits, the composition of the inner and outer conduits, the relative location of the physical tool with respect to the inner and outer conduits, the geometry of the physical tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit; (ii) performing a principal component analysis on the set of Monte Carlo simulations to generate a principal component analysis model of the detector data; (iii) applying the principal component analysis model to the detector data; (iv) estimating the density of the material in the annular space at one or more locations within the annular space based upon the principal component analysis model and the detector data using an optimization technique; and (c) receive, by the one or more computer processors, one or more estimated densities of the material in the annular space.

Description

DRAWINGS

(1) These and other features and aspects of embodiments of the present invention will become better understood when the following detailed description is read with reference to the accompanying drawings in which like characters represent like parts throughout the drawings, wherein:

(2) FIG. 1 illustrates a system for determining density of material in an annular space of the subterranean well in accordance with an exemplary embodiment;

(3) FIG. 2 illustrates a logging tool used for acquiring detector data in accordance with an exemplary embodiment;

(4) FIG. 3 is a schematic of a cross section of a borehole illustrating an angular tool position and a minimum gap between the outer conduit and inner conduit in accordance with an exemplary embodiment;

(5) FIG. 4 is a schematic of a cross section of a borehole illustrating the model variables in accordance with an exemplary embodiment;

(6) FIG. 5 is a schematic of a cross section of a borehole illustrating positions of a plurality of detectors in accordance with an exemplary embodiment;

(7) FIG. 6 is a flow chart of a method for estimating the density of the material using a polynomial model in accordance with an exemplary embodiment;

(8) FIG. 7 is a flow chart of a method for estimating the density of the material using a principal component analysis model in accordance with an exemplary embodiment; and

(9) FIG. 8 is a graph illustrating relationship between the density of the material in the annular space of the well and the principal component of the detector data in accordance with an exemplary embodiment.

DETAILED DESCRIPTION

(10) Embodiments discussed herein disclose a system and a method for estimating density of a material in an annular space using a logging tool. The annular space formed by an inner conduit and an outer conduit of the wellbore. Disclosed embodiments include receiving detector data representative of scattering events resulting from interactions of a material in the annular space with radiation from a radiation source and detected by a plurality of radiation detectors. The embodiments also include transmitting the detector data to one or more computer processors for determining the density of the annular material in specific locations. The embodiments also disclose techniques for determining one or more geometric variables associated with the annular space such as the angular location and the minimum gap of the logging tool. The one or more processors are configured for performing a set of Monte Carlo simulations based on the dimensions of the conduits, the composition of the conduits, the relative location of the tool with respect to the conduits, the geometry of the tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit. The one or more processors are also configured for generating polynomial models of the detector data based on the set of Monte Carlo simulations and estimating the density of the material in the annular space at one or more locations within the annular space based upon the polynomial models and the detector data.

(11) The term tool used herein refers to a logging tool in a borehole of a subterranean well such as an oil well. The tool is designed and configured to acquire data related to the material in the annular space of the well. The term material refers to drilling fluid and other particulates that precipitate out of the drilling fluid and other such substances encountered in the borehole environment. The term scattering events refers to the inelastic scattering such as Compton scattering. The terms detector data and count rate refer to photon measurements acquired by the detectors of the scattering events in units of counts per unit time. The term well parameters refers to dimensions of the borehole geometry and the radius of the tool. Specifically, the term well parameters also include the dimensions of the conduits, the composition of the conduits, the relative location of the tool with respect to the conduits, the geometry of the tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit. The term angular location refers to the location of the tool relative to the inner conduit and is specified by angle 308 in FIG. 8. The term energy window refers to a range of values of the energies of the detected photons.

(12) FIG. 1 illustrates a subterranean well site 100 using a system 108 for determining density of material 136 within a borehole 102 in accordance with an exemplary embodiment. The well site 100 includes a tool 104 disposed in an annular space 134 of the borehole 102. The tool 104 for generating detector data 132 is explained in detail in a subsequent paragraph with reference to a subsequent figure. The annular space 134 has an inner conduit and an outer conduit containing materials 136 characterized by one or more densities. The tool 104 is configured to be accommodated within and move within a channel of the inner conduit disposed within the outer conduit. The tool comprises a radiation source 110 and a plurality of radiation detectors 112. The radiation source 110 in one embodiment is a gamma-ray source. The photons emitted by the radiation source 110 are directed to the material 136 and scattering events are generated from interaction of the material 136 in the annular space with radiation from the radiation source. The plurality of radiation detectors 112 are configured to detect the scattered photons and generate detector data 132.

(13) A data transmission device 106 is coupled to the plurality of radiation detectors by electric cable 116 and configured to transmit detector data to the system 108. In an exemplary embodiment, the system 108 includes a preprocessor module 118, an estimator module 124, a Monte Carlo Simulator 120, a model generator 122, one or more computer processors 126, and a memory module 128. Embodiments of the disclosed technique store at least one of the modules 118, 120, 122, 124 in the memory module 128 and executed by the one or more computer processors 126. In some embodiments, at least one of the modules 118, 120, 122, 124 is a standalone hardware module co-operatively interacting with the other modules. The modules may be co-located in a same physical location or may be disposed in different locations interconnected by a communication link. In the illustrated embodiment, the communication bus 138 is a communications link establishing bi-lateral data transmission among modules, one or more processors 126, and the memory module 128. In other embodiments, the communication bus 138 may be a wired communication link or a wireless link.

(14) The preprocessor module 118 is communicatively coupled to the transmission device 106 and configured to receive detector data 132 representative of density of the material in the annular space. The preprocessor module 118 is further configured to perform tool face correction. In one embodiment, the detector data is processed based on the tool face offset. In some embodiments, the preprocessor module 118 is configured to perform a low pass filtering of the detector data to reduce transient noise effects. The preprocessor module 118 may also perform various other signal conditioning operations on the detector data such as normalization, and rejection of outlier values.

(15) The Monte Carlo Simulator 120 is communicatively coupled to the memory module 128 and is configured to retrieve the dimensions of the conduits, the composition of the conduits, the relative location of the tool with respect to the conduits, the geometry of the tool and a plurality of density values corresponding to a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit from the memory locations. The Monte Carlo Simulator 120 is further configured to generate a set of Monte Carlo simulations based on the information retrieved from memory. In exemplary embodiment the simulations are performed by using Monte Carlo N-Particle (MCNP) transport code to simulate the response of the tool. The MCNP code uses a plurality of parameters and a set of hypothetical material of different densities to generate a coarse response surface representative of the count response of the tool. The data generated by the Monte Carlo simulations is referred herein as Monte Carlo simulations data.

(16) The model generator 122 is communicatively coupled to the Monte Carlo Simulator 120 and configured to generate a model for estimation of the density of the material in the annular space, the angular location, and the minimum gap. In one embodiment, the model generator is configured to approximate the coarse response surface by fitting a multivariate polynomial function. Specifically, the model generator 122 is configured to select a polynomial model and then solve for a plurality of coefficients of the polynomial model. The polynomial model is selected as a function of the density parameter, the angular location, and the minimum gap. In another embodiment, the model generator is configured to determine a projection operator based on the simulation data. The projection operator projects the detector data into a subspace having a model as a function of the density parameter of the material in the annular space. In one embodiment, the projection operator is determined based on the singular value decomposition of a matrix generated using the detector data. In alternative embodiments, other methods such as QR decomposition and linear regression techniques are used to determine the projection operator.

(17) The estimator module 124 is communicatively coupled to the preprocessor module 118 and the model generator 122 and configured to generate an estimate of density value 130 for the material 136 in the annular space 134. In one embodiment, the estimator module 124 performs an optimization technique to generate an estimate of the density value 130. An objective function based on the polynomial model for the detector data is used in the optimization technique. In another embodiment, the estimator module 124 determines the density value based on a polynomial inversion operation. In one embodiment, the polynomial inversion operation is performed using a look up table stored in the memory module 128. The projected detector data is used to retrieve a density value using the look up table. The look up table stores pairs of values corresponding to the projected detector data and the density values.

(18) The one or more processors 126 includes at least one arithmetic logic unit, a microprocessor, a general purpose controller or a processor array to perform the desired computations or run the computer program. In one embodiment, the functionality of the one or more processors 126 may be limited to acquire the detector data. In another embodiment, the functionality of the one or more processors 126 may be limited to perform Monte Carlo simulations. In another embodiment, the functionality of the one or more processors 126 is limited to model generation. In one embodiment, the functionality of the one or more processors 126 is limited to estimating the density value of the material. In some exemplary embodiments, functionality of the one or more processors 126 include one or more of the functions of the preprocessor module 118, the Monte Carlo Simulator module 120, model generator 122 and the estimator module 124. While the one or more processors 126 is shown as a separate unit, there can be a processor co-located or integrated in one or more of the modules 118, 120, 122, 124. Alternatively, the one or more processors 126 can be local or remote, such as a central server or cloud based, with the communications bus 138 can be wired, wireless or a combination thereof.

(19) The memory module 128 may be a non-transitory storage medium. For example, the memory module 128 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, flash memory or other memory devices. In one embodiment, the memory module 128 may include a non-volatile memory or similar permanent storage device, media such as a hard disk drive, a floppy disk drive, a compact disc read only memory (CD-ROM) device, a digital versatile disc read only memory (DVD-ROM) device, a digital versatile disc random access memory (DVD-RAM) device, a digital versatile disc rewritable (DVD-RW) device, a flash memory device, or other non-volatile storage devices. In one specific embodiment, a non-transitory computer readable medium may be encoded with a program to instruct the one or more processors 126 to generate a density value.

(20) FIG. 2 illustrates the logging tool 104 used for acquiring detector data in accordance with an exemplary embodiment. The tool includes an inclinometer 202, a plurality of collimators 204, 216 a source holder 206, a power system 208, detector electronics 210, a detector array 212, and tool electronics 214. The inclinometer 202 is used to orient the measurements within the borehole and is configured to operate with other completion logging measurements including multi-finger caliper, collar locator, and a basic production logging tool string. The collimator 204 provides azimuthal collimation so that detected data at each detector is independent of other detector outputs. The collimator 216 along with the source to detector spacing determines where the single Compton scattering events occur. The source holder 206 positions the radiation source 110. The detector array 212, and the tool electronics 214 are powered by the power system 208. The tool electronics 214 is configured to communicate with the up hole telemetry based logging system. The temperature rating of the tool electronics 214 and the detector array 212 operating in the down hole is set at a high value suitable for subterranean operation. In one embodiment, the temperature rating of the tool electronics 214 and the detector array 212 is one seventy five degree centigrade. The radiation source 110 provides gamma rays. The imaging tool 104 uses a well collimated, short-spaced source to detector array. Each of the plurality of detectors in the detector array 212 is capable of acquiring count rates of 400 kHz. The imaging tool 104 is configured to operate at a logging speed of 5 to 10 feet/minute with a vertical resolution of 2 inches. In one embodiment, the detector array includes six detectors in a 2.5 inch diameter pressure housing. The tool detects Compton-scattered gamma rays in an energy range of about 100 keV to about 662 keV. In one embodiment, the plurality of detectors in the detector array 212 are configured to detect gamma rays in three energy ranges. In one embodiment, spacing between the source to detector array and aperture of the plurality of collimators 204, 216 is adjusted to optimize void sensitivity of the tool for a variety of inner conduit diameters. For example, a shorter spacing is used for smaller diameter conduits and a longer spacing is used for larger diameter conduits.

(21) FIG. 3 is a schematic 300 of a cross section of a borehole illustrating tool position and the minimum gap between the outer conduit and inner conduit in accordance with an exemplary embodiment. The schematic 300 illustrates an outer conduit 302, an inner conduit 304 and the logging tool 306. Each of the outer conduit 302 and the inner conduit 304 has a corresponding inner surface and an outer surface. The dimensions of the borehole include dimensions of the outer conduit 302, dimensions of the inner conduit 304 and dimensions of the tool 306. The dimensions of the outer conduit include inner diameter and an outer diameter corresponding to inner surface and outer surface of the outer conduit 302. The dimensions of the inner conduit include an inner diameter and an outer diameter corresponding to the inner surface and outer surface of the inner conduit 304. The schematic 300 illustrates a minimum distance 310 between the outer conduit 302 and the inner conduit 304, which is referred herein as minimum gap. Specifically, the minimum gap 310 is the distance between the outer surface of the inner conduit 304 and the inner surface of the outer conduit 302. The schematic 300 also illustrates an angular position 308 of the tool. The minimum distance 310 is denoted by symbol g and the angular position 308 is denoted by the symbol in the subsequent paragraphs. The plurality of dots 312 in the schematic 300 are representative of the plurality of detectors in the detector array 212 of FIG. 2.

(22) FIG. 4 is a schematic 400 of a cross section of a borehole illustrating the independent variables of the polynomial model in accordance with an exemplary embodiment. The schematic 400 illustrates an outer conduit 402, an inner conduit 404 and the tool 406 disposed within the inner conduit 404. The annular space between the inner conduit 404 and the outer conduit 402 has a material density represented by a symbol .sub.d. A plurality of dots inside the tool 406 are representative of six detectors. The schematic 400 illustrates the two radial distance variables of the polynomial model for one of the detectors. The first radial distance 410 is the distance from the detector 412 to the inner surface of the inner conduit 404. The second radial distance 408 is the distance from the outer surface of the inner conduit 404 to the inner surface of the outer conduit. The first radial distance 410 and the second radial distance 408 are specified with reference to the detector 412. In a similar way, the first radial distance and the second radial distance may be specified for each of the detector of the detector array of the tool 406. The distance 410 is represented herein by a symbol .sub.d and the distance 408 is represented by a symbol v.sub.d. Here, the subscript d is an index representative of the one of the six detectors. The distance v.sub.d is along the same radial line as the distance .sub.d. It should be noted herein that the first radial distance and the second radial distance are a function of the angular position of the tool in the borehole and the minimum gap g between the outer conduit 402 and the inner conduit 404.

(23) FIG. 5 is a schematic 500 of a cross section of a borehole illustrating positions of a plurality of detectors in accordance with an exemplary embodiment. The plurality of detectors 508 are disposed symmetrically in the logging tool 506 within an inner conduit 502. The outer conduit 504 is also illustrated in the schematic 500. The plurality of detectors 508 are configured to detect gamma rays in three energy windows. In one exemplary embodiment, each of the plurality of detectors 508 detect gamma rays in a first energy window having a range of 73 keV to 183 keV, a second energy window having a range of 207 keV to 250 keV, and a third energy window having a range of 250 keV to 637 keV. The plurality of detectors are configured to detect count rate data in multiple energy windows simultaneously. The plurality of density of the material in the annular space corresponding to the plurality of detectors are denoted as .sub.1, .sub.2, .sub.3, .sub.4, and .sub.6.

(24) FIG. 6 illustrates a flowchart 600 of a method for estimating the density of the material using a polynomial model in accordance with an exemplary embodiment. The method includes directing radiation to a material in an annular space of the borehole of a subterranean well as illustrated in step 602. In an exemplary embodiment, the radiation is a gamma radiation. Scattering events are generated from interaction of the material in the annular space with radiation from the radiation source. The detector array having a plurality of detectors acquires the scattering events. The detector data is transmitted from the detector array to one or more computer processors 604. A set of Monte Carlo simulations are performed by the one or more processors to generate Monte Carlo simulation data 610. The set of Monte Carlo simulations are based on the dimensions of the conduits, the composition of the conduits, the relative location of the tool with respect to the conduits, the geometry of the tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit. In one exemplary embodiment, the set of Monte Carlo simulations simulate the detector data corresponding to the geometry of the simulation and a set of hypothetical materials of different densities.

(25) The method further includes modeling the detector data by a mathematical function. A polynomial function is selected as the mathematical object for modeling the detector data 612. In particular, the detected data is modeled by:

(26) f i , d ( d , d , v d ) = .Math. k = 1 p .Math. l = 0 k .Math. m = 0 k - 1 a lmn d l d m d n ( 1 )
where, the detector data f.sub.i,d corresponds to detector d operating in an energy window i and n=klm. The order of the polynomial is given by p, {.sub.lmn} are the coefficients of the polynomial and the independent variables are .sub.d, .sub.d and .sub.d. The symbols .sub.d and .sub.d are radial distances and .sub.d is the density of the material in the annular space in the field of view of detector d. The distance .sub.d is a function of two variables representing the minimum gap between the inner and outer conduits g and an angle representative of location of the tool inside the inner conduit. Thus the model can either be described as f.sub.i,d(.sub.d, .sub.d, .sub.d), or as f.sub.i,d(.sub.d, , g).

(27) Given a set of Monte Carlo simulation data for various values of .sub.d, , and g, the model forms a linear system of equations. The matrix equation is given by:
r.sub.i,d=H.sub.da.sub.i,d(2)
where,
r.sub.i,d=[r.sub.i,d.sup.(1),r.sub.i,d.sup.(2), . . . ,r.sub.i,d.sup.(N)].sup.T(3)
a.sub.i,d=[a.sub.000,a.sub.100,a.sub.010, . . . ,a.sub.0p0,a.sub.00p].sup.T, and(4)

(28) H d = [ 1 d , 1 d d ( 1 , g 1 ) d , 1 d d , 1 d ( 1 , g 1 ) .Math. d , 1 p d p d p ( 1 , g 1 ) 1 d , 2 d d ( 2 , g 2 ) d , 2 d d , 2 d ( 2 , g 2 ) .Math. d , 2 p d p d p ( 1 , g 1 ) .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. .Math. 1 d , N d d ( N , g N ) d , N d d , N d ( N , g N ) .Math. d , N p d p d p ( 1 , g 1 ) ] ( 5 )
with r.sub.i,d is a real number denoting a Monte Carlo simulated response of detector d in energy window i. The symbol T denotes transposition operator and N is the dimension of the vector r.sub.i,d. It should be noted herein that the vector r.sub.i,d is acquired for a fixed set of N triplets {(.sub.d, , g).sub.n, for n=1 to N}. The dimension of a.sub.i,d is 1K and the dimension of H.sub.d is NK.

(29) The polynomial coefficients are determined by solving the linear system of equations given by Equation (2). In one embodiment, a singular value decomposition of the matrix H.sub.d representing the well parameters is used to determine the least squares solution for the polynomial coefficients a.sub.i,d. Alternate embodiments employ other techniques for determining the polynomial coefficients

(30) The method of determining the density values and , and g includes selecting an objective function based on the detector data and the polynomial model 606. In one embodiment, the objective function is the squared error between the detector data and the polynomial function:
J(.sub.d,,g)=(x.sub.i,df.sub.i,d(.sub.d,,g)).sup.2(6)
where, x.sub.i,d is an observed detector response and f.sub.i,d is the modeled response. An optimization technique is used to minimize the objective function to provide estimates of .sub.d, , and g 608. It should be noted herein that other objective functions may also be used in the optimization technique. In one embodiment, the minimization of the objective function is performed by a gradient descent method. The optimization problem is given by:

(31) ( ^ d , ^ , g ^ ) = arg .Math. min ( d , , g ) .Math. J ( d , , g ) ( 7 )
where, circumflex accent (^) represents estimate of an associated parameter obtained by the optimization technique. Other minimization methods such as recursive least squares and least mean square algorithm may be used in other exemplary embodiments.

(32) In another exemplary embodiment, detector data from a plurality of detectors is used to determine the density of the material. In this embodiment, the matrix equation (2) is given by:
r.sub.i=Ha.sub.i(8)
where,
r.sub.i=[r.sub.i,1r.sub.i,2. . . r.sub.i,6].sup.T,a.sub.i=[a.sub.i,1a.sub.i,2. . . a.sub.i,6].sup.T and H=[H.sub.1H.sub.2. . . H.sub.6].sup.T with
r.sub.i,k representing response of kth detector for the ith energy window, a.sub.i,k representing the coefficients of the polynomial model f.sub.i,k. In one embodiment, the objective function for optimization is selected as:

(33) J ( 1 , .Math. 6 , , g ) = .Math. d = 1 6 ( x i , d - f i , d ( d , , g ) ) 2 ( 9 )
where, x.sub.i,d is the detector data from detector d in energy window i and f.sub.i,d is the modeled detector data. The optimization minimizes the objective function of Equation (9) and determines six density values corresponding to the detector response from six detectors of the tool.

(34) FIG. 7 is a flow chart 700 of a method for estimating the density of the material using a principal component analysis (PCA) model in accordance with an exemplary embodiment. The method includes directing radiation to a material in an annular space in a borehole of a subterranean fluid well as illustrated in step 702. In an exemplary embodiment, the radiation is a gamma radiation. Scattering events are generated from the interaction of the material in the annular space with radiation from the radiation source. The detector array having a plurality of detectors detect the scattered photons in multiple energy windows. The detector data is transmitted from the detector array to one or more computer processors 704. A set of Monte Carlo simulations are performed by the one or more processors. The set of Monte Carlo simulations are modeled based on the dimensions of the conduits, the composition of the conduits, the relative location of the tool with respect to the conduits, the geometry of the tool and a set of hypothetical materials of different densities filling the annular space and the space inside the inner conduit. In one exemplary embodiment, the set of Monte Carlo simulations generate Monte Carlo simulation data simulating the detector data corresponding to the well parameters of the tool and a set of hypothetical materials of different densities 710.

(35) A subspace of the detector data is determined based on the Monte Carlo simulation data as described herein. A data matrix M having a dimension of N3 is constructed using Monte Carlo simulation data corresponding to one of the plurality of detectors. The columns of the matrix M are simulated response values from the three energy windows and the rows represent responses for different combinations of parameter values (.sub.d, , g). The subspace is determined by using principal component analysis of the data matrix M. In one embodiment, the principal component analysis is performed using a singular value decomposition of the matrix M as:
M=Q.sub.1Q.sub.2(10)
where, columns of Q.sub.2 form a basis for the row space of M and the columns of Q.sub.1 for a basis for the column space of M. The matrix representing a diagonal matrix having singular values as diagonal elements. The dimension of the matrices Q.sub.1, Q.sub.2, and are NN, 33 and N3 respectively. The matrix Q.sub.2 has three column vectors corresponding to the three singular values. In other embodiments, the principal component analysis is performed using other techniques such as covariance method and spectral analysis methods. A subset of the plurality of singular vectors of the matrix Q.sub.2 determines the subspace.

(36) In one exemplary embodiment, the subspace corresponds to a span of the singular vector corresponding to the largest singular value. In another embodiment, the subspace corresponds to a span of two singular vectors corresponding to the two largest singular values. A matrix P having selected singular vectors as columns is a projection operator corresponding to the subspace. As an example, when a singular vector q corresponding to the largest singular value is considered, the projection operator P is equal to column vector q. The Monte Carlo simulation data is projected on to the subspace P in the step 712. The projected simulation data is given by
Y(.sub.d)=Mq(11)
where, Y is the projected simulation data with each row representing a point. It should be noted herein that techniques such as principal component analysis (PCA), independent component analysis (ICA), wavelet analysis, and frequency spectrum analysis may be used to determine an appropriate subspace. The projected simulation data is considered as a function of the density. A polynomial of suitable order is selected and a plurality of coefficients of the polynomial is determined based on the projected data 714. As an example the polynomial is represented by:
y(.sub.d)=c1.sub.d.sup.3+c2.sub.d.sup.2+c3.sub.d.sup.1+c4(12)
where, the constants c.sub.1, c.sub.2, c.sub.3, and c.sub.4 are determined based on the Monte Carlo simulation data and y representing projected data for known values of density parameter .sub.d. The determination of the plurality of coefficients is based on fitting of the polynomial to the projected data.

(37) The detector data is projected on to the subspace 706 determined in the previous step 712. If the detector data is represented by a row vector f.sub.d, the projected detector data is denoted by the matrix f.sub.dq to generate a projected data value y. An inverse operation is performed using the Equation (12) based on the projected data value y to determine an inverse image of the polynomial function. The inverse operation using the polynomial of Equation (12) determines an estimate of the density value 708.

(38) In another embodiment, a plurality of detectors are used to estimate the density parameter of the material. The data matrix M is augmented by concatenating additional columns of detector data acquired by additional detectors. As an example, when two detectors are used, the dimension of the matrix M is N6. The first three columns contain data from first detector for the three energy windows. The last three columns contain data from the second detector for three energy windows. In an exemplary embodiment, when six detectors are used, the dimension of the matrix M is N18. In general, when D detectors are used, the dimension of the matrix is N3D. The augmented data matrix M is used to generate a suitable linear subspace based on the principal component analysis as explained in previous paragraphs. One or more density estimates are determined within the linear subspace by in inverse operation.

(39) FIG. 8 is a graph 800 illustrating the relationship between the density of the material in the annular space of the well and the principal component of the detector data in accordance with an exemplary embodiment. The graph includes an x-axis 802 representative of density of the material. The graph also has a y-axis 804 representative of the value of the projected detector data. A curve 806 is graphical representative of the polynomial model generated based on the Monte Carlo simulation data as explained in the previous paragraph with reference to the FIG. 7. The curve corresponds to Equation (12) with c.sub.1=0.010715, c.sub.2=0.1381, c.sub.3=0.63911, and c.sub.4=2.3764. The inverse operation of the step 708 of FIG. 7 includes selecting a point 808 on the y-axis 804 corresponding to the projected detector data and identifying a point 810 on the curve 806 corresponding to the point 808. A point 812 is identified on the x-axis 802 corresponding to the point 810. The density value corresponding to the point 812 determines the density of the material in the annular space.

(40) While only certain features of embodiments have been illustrated and described herein, many modifications and changes will occur to those skilled in the art. It is, therefore, to be understood that the appended embodiments are intended to cover all such modifications and changes as falling within the spirit of the invention.