+ All Categories
Home > Documents > INTRODUCTION TO WELL LOGS And BAYES’ THEOREMpeople.ku.edu/~gbohling/EECS833/IntroProbLogs.pdf ·...

INTRODUCTION TO WELL LOGS And BAYES’ THEOREMpeople.ku.edu/~gbohling/EECS833/IntroProbLogs.pdf ·...

Date post: 04-Apr-2018
Category:
Upload: dinhminh
View: 216 times
Download: 3 times
Share this document with a friend
21
1 INTRODUCTION TO WELL LOGS And BAYES’ THEOREM EECS 833, 27 February 2006 Geoff Bohling Assistant Scientist Kansas Geological Survey [email protected] 864-2093 Overheads and resources available at http://people.ku.edu/~gbohling/EECS833
Transcript

1

INTRODUCTION TO WELL LOGS And

BAYES’ THEOREM

EECS 833, 27 February 2006

Geoff Bohling Assistant Scientist

Kansas Geological Survey [email protected]

864-2093

Overheads and resources available at

http://people.ku.edu/~gbohling/EECS833

2

Critical Petroleum Reservoir Properties Petroleum geologists and engineers are interested in the properties of the rocks constituting oil and gas reservoirs. In particular, they are interested in characterizing the distribution of the following properties in the subsurface: Porosity: The volumetric proportion of “void” space in a given volume of rock; includes a range of pore sizes from 0.01-2 mm (10-2000 microns) in sedimentary rocks. Pore size is generally a function of grain size (larger grains, larger pores) and occurs in a variety of ways, including spaces between grains and/or crystals, as molds of dissolved grains, or as vugs, which are large pores resulting from dissolution of a portion of the rock. The pore space is filled with fluids, including water, oil, and gas. Porosity is expressed as a percentage or a decimal ratio. Permeability: A property characterizing the ease with which fluids flow through the rock; dependent on both porosity and pore space geometry. Permeability is generally expressed in millidarcies (md). Relative Saturations: The proportion of pore space occupied by water, oil, and gas are also important, since these influence the overall volume of oil or gas in the reservoir and the relative permeability of the formation to each fluid. (Oil cannot flow through a water-filled pore.) Facies: Facies is a rather vague term that in general means “rock type”. It is vague because rocks can be categorized

3

in different ways depending on the goals of the analysis. Petroleum geologists are generally interested in categorizing rocks according to their ability to store and transmit fluids – that is, their porosity and permeability. For example, sandstones generally have relatively high porosity and permeability, while shales have high porosity but low permeability. The application that Marty Dubois will describe involves carbonate rocks (limestones and dolomites), which can display a wide range of porosities and permeabilities depending on how they were formed and their history subsequent to original deposition. The facies distribution is a first order control on the distribution of porosity and permeability in a reservoir. Geophysical (Wireline) Well Logs Many wells drilled for petroleum exploration are “logged”, meaning that a tool (or tools) containing various sensors is lowered into the borehole and then drawn back up while the sensors measure various properties of the surrounding rock. The measured properties generally include electrical, acoustic, and nuclear properties of the surrounding medium – the combined properties of both the rock matrix and the fluids in the pore space. The resulting records of measured properties versus depth are variously referred to as wireline logs (because the tools are lowered on a wireline), well logs, geophysical logs, or just plain logs. These logs give indirect information regarding the distribution of the critical reservoir properties discussed above and log analysts spend most of their time trying to infer reservoir properties from logs.

4

Some of the more common logs include: Gamma Ray: Measures natural radioactivity of the surrounding rock. The most abundant radioactive isotopes, those of Potassium, Thorium, and Uranium, occur in higher concentrations in the clay minerals that constitute shales, so the gamma ray log is particularly useful for distinguishing shales from other rocks. Density and Neutron Porosity: Two different sensors providing estimates of the porosity, the first based on the bulk density of the surrounding rock and the second based on neutron-absorbing capability of the medium. These two porosity estimates tend to have complementary biases, so they are often combined to get a more accurate estimate. Electrical Resistivity: Because of the large contrast in electrical resistivity between most rock-forming minerals (highly resistive) and any contained fluids (more conductive), variations in bulk electrical resistivity are dictated primarily by variations in porosity and in the relative saturations of the fluids in the pore space. Given a porosity estimate from one or both of the density logs described above, the resistivity log is generally used to estimate the relative saturations of water, oil, and gas. Photoelectric factor: Measures the photoelectric absorption capacity of the surrounding medium; sensitive to the mineralogical composition of the rocks and thus good for discriminating lithology (rock type sensu stricto).

5

In somewhat idealized form, a set of logs versus depth in the borehole (in feet – the numbers in the center “track”) might look like the following. This is actually a synthetic example, with logs computed from a perfectly known sequence of rock types (drawn in the depth track) and with no influence from fluid variations, but it is fairly realistic:

For more information on log analysis, see http://www.kgs.ku.edu/PRS/ReadRocks/portal.html http://www.kgs.ku.edu/PRS/Info/pdf/oilgas_log.html General reference on petroleum geology: Selley, Richard C., Elements of Petroleum Geology, Second Edition, 1998, Academic Press, San Diego.

6

Development of Bayes’ Theorem Terminology: P(A): Probability of occurrence of event A (marginal) P(B): Probability of occurrence of event B (marginal) P(A,B): Probability of simultaneous occurrence of events A

and B (joint) P(A|B): Probability of occurrence of A given that B has

occurred (conditional) P(B|A): Probability of occurrence of B given that A has

occurred (conditional) Relationship of joint probability to conditional and marginal probabilities:

( ) ( ) ( )BPBAPBAP =, or ( ) ( ) ( )APABPBAP =, So . . .

P(A|B)P(B) = P(B|A)P(A)

7

Rearranging gives simplest statement of Bayes’ theorem:

( ) ( ) ( )( )AP

BPBAPABP =

Often, B represents an underlying model or hypothesis and A represents observable consequences or data, so Bayes’ theorem can be written schematically as

( ) ( ) ( )modelPmodeldataPdatamodelP ∝ This lets us turn a statement about the forward problem: P(data|model): probability of obtaining observed data

given certain model into statements about the corresponding inverse problem: P(model|data): probability that certain model gave rise to

observed data as long as we are willing to make some guesses about the probability of occurrence of that model, P(model), prior to taking the data into account.

8

Or graphically, Bayes’ theorem lets us turn information about the probability of different effects from each possible cause:

into information about the probable cause given the observed effects:

(Illustration styled after Sivia, 1996, Figure 1.1)

9

Assume that Bi represents one of n possible mutually exclusive events and that the conditional probability for the occurrence of A given that Bi has occurred is P(A|Bi). In this case, the total probability for the occurrence of A is

( ) ( )∑==

n

iii BPBAPAP

1)(

and the conditional probability that event Bi has occurred given that event A has been observed to occur is given by

( ) ( ) ( )( ) ( )

( ) ( )( )AP

BPBAP

BPBAP

BPBAPABP ii

n

jjj

iii =

∑=

=1

.

That is, if we assume that event A arises with probability P(A|Bi), from each of the underlying “states” Bi, i=1,…,n, we can use our observation of the occurrence of A to update our a priori assessment of the probability of occurrence of each state, P(Bi), to an improved a posteriori estimate, P(Bi|A).

10

Discrete-Probability Example: Dolomite/Shale Discrimination Using Gamma Ray Log Threshold Reservoir with dolomite “pay” zones and shale “non-pay” zones. Gamma ray log: Measures natural radioactivity of rock; measured in API units Shales: Typically high gamma ray (~110 API units) due to abundance of radioactive isotopes in clay minerals; somewhat lower in this reservoir (~80 API units) due to high silt content Dolomite: Typically low gamma ray (~10-15 API units), but some “hot” intervals due to uranium Can characterize gamma ray distribution for each lithology based on core samples from wells in field:

Dolomite Shale Mean 25.8 85.2 Std. Dev. 18.6 14.9 Count 476 295

Cores are sections of rock extracted from the borehole during the drilling process. Cores provide the most direct information on many reservoir properties, but they are expensive. Their utility is often extended by calibrating log responses to core properties in cored wells and then using the derived relationships to predict those properties from logs in uncored wells.

11

0 20 40 60 80 100 120 140 160

Gamma Ray (API Units)

0.00

0.01

0.02

0.03

0.04

Pro

bab

ility

Den

sity

dolomite

shale

Gamma ray distributions for dolomite and shale

Will use these distributions to predict lithology from gamma ray in uncored wells, first using a simple rule: - if GammaRay > 60, call the logged interval a shale - if GammaRay < 60, call it a dolomite

12

Using Bayes’ rule we can determine the posterior probability of occurrence of dolomite and shale given that we have actually observed a gamma ray value greater than 60. Let’s define events & probabilities as follows: A: GammaRay > 60 B1: occurrence of dolomite B2: occurrence of shale P(B1): prior probability for dolomite based on overall

prevalence ≅ 60% (476 of 771 core samples) P(B2): prior probability for shale based on overall

prevalence ≅ 40% (295 of 771 core samples) P(A|B1): probability of GammaRay > 60 in a dolomite =

7% (34 of 476 dolomite samples) P(A|B2): probability of GammaRay > 60 in a shale = 95%

(280 of 295 shale samples) Then the denominator in Bayes’ theorem, the total probability of A, is given by

( ) ( ) ( ) ( ) ( )422.040.0*95.060.0*07.0

2211

=+=

+= BPBAPBPBAPAP

13

If we measure a gamma ray value greater than 60 at a certain depth in a well, then the probability that we are logging a dolomite interval is

( ) ( ) ( )( )

10.0422.0

60.0*07.0111 ===

APBPBAP

ABP

and the probability that we are logging a shale interval is

( ) ( ) ( )( )

90.0422.0

40.0*95.0222 ===

APBPBAP

ABP .

Thus, our observation of a high gamma ray value has changed our assessment of the probabilities of occurrence of dolomite and shale from 60% and 40%, based on our prior estimates of overall prevalence, to 10% and 90%. We can do simple sensitivity analysis with respect to prior probabilities. For example, if we take prior probability for shale to be 20% (meaning prior for dolomite is 80%), then get posterior probability of 77% for shale (23% for dolomite) if the gamma ray value is greater than 60 API units.

14

Continuous-Probability Example: Dolomite/Shale Discrimination Using Gamma Ray Density Functions It is also possible to formulate Bayes’ theorem using probability density functions in place of the discrete probabilities P(A|Bi). We could represent the probability density function that a continuous variable, X, follows in each case as f(x|Bi) or, more compactly, f i(x). Then

( ) ( ) ( )( ) ( )∑

=

=

n

jjj

iii

BPxf

BPxfxBP

1

.

That is, if we can characterize the distribution of X for each category, Bi, we can use the above equation to compute the probability that event Bi has occurred given that the observed value of X is x. For example, based on the observed distribution of gamma ray values for dolomites and shales, a gamma ray measurement of 110 API units almost certainly arises from a shale interval, because the probability density function for gamma ray in dolomites evaluated at 110 API units, f1(x=110), is essentially 0. This form of Bayes’ theorem lets us develop a continuous mapping from gamma ray value to posterior probability.

15

Shale/Dolomite Discrimination Using Normal Density Functions

Dolomite (1) Shale (2) Mean ( x ) 25.8 85.2 Std. Dev. (s) 18.6 14.9 Count 476 295

( ) ( )[ ]21

21

11 2exp

21

sxxs

xf −−=π

( ) ( )[ ]22

22

22 2exp

21

sxxs

xf −−=π

5 30 55 80 105 130 155

Gamma Ray (API Units)

0.00

0.01

0.02

0.03

0.04

Pro

bab

ility

Den

sity

Kernel density estimateNormal density estimate

dolomite shale

Normal Approximations for Gamma Ray Distributions

16

Let q2 = P(B2) represent prior probability for shale prior for dolomite is then P(B1) = 1 - q2 Let p2(x) = P(B2|x) represent posterior probability for shale posterior for dolomite is then P(B1|x) = 1 - p2(x) So, posterior probability for shale given that the observed gamma ray value = x is

( ) ( )( ) ( ) ( )xfqxfq

xfqxp

2212

222 1 +−

=

0 50 100 150

Gamma Ray (API Units)

0.0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1.0

1.1

Po

ster

ior

Pro

bab

ility

fo

r S

hal

e (s

olid

lin

es)

0.00

0.01

0.02

0.03

0.04

0.05

Pro

bab

ility

Den

sity

(d

ash

ed li

nes

)

normal pdf for shalenormal pdf fordolomite

0.2

0.60.4

prior probability for shale used

to compute posterior

Shale Occurrence Probability Using Normal Densities

59.6

17

Bayes’ rule allocation: Assign observation to class with highest posterior probability. For “base case” prior of 40% for shale, 50% posterior probability point occurs at gamma ray of 59.6 – so Bayes’ rule allocation leads to basically same results as thresholding at 60 API units. But now have means for converting gamma ray to continuous “shale probability” log.

18

Shale/Dolomite Discrimination Using Kernel Density Estimates No need to restrict approach to just normal densities. Could use any other form of probability density function for each category, including the kernel density estimates shown initially:

0 50 100 150

Gamma Ray (API Units)

0.0

0.2

0.4

0.6

0.8

1.0

Po

ster

ior

Pro

bab

ility

fo

r S

hal

e (s

olid

lin

es)

0.00

0.01

0.02

0.03

0.04

0.05

Pro

bab

ility

Den

sity

(d

ash

ed li

nes

)

kernel pdf for shale

kernel pdf forsandstone

0.2

0.6

0.4 prior probability for shale used

to compute posterior

Shale Occurrence Probability Using Kernel Densities

Kernel density estimates are essentially smoothed histograms, scaled to represent legitimate probability density functions (non-negative everywhere and integrating to 1). They can be computed using the ksdensity function in Matlab’s statistics package.

19

Relationship to Discriminant Analysis Could just as easily use multivariate density functions in Bayes’ theorem. For example, could be discriminating facies based on a vector of log measurements, x, rather than a single log. If use multivariate normal density functions for each class, Bayes’ rule allocation leads to classical discriminant analysis. Assuming covariance matrices all equal for different classes leads to linear discriminant analysis: Bayes’ rule allocation draws linear boundaries between classes in x space. Assuming unequal covariance matrices leads to quadratic discriminant analysis: Bayes’ rule allocation draws quadratic boundaries between classes. We will talk more about discriminant analysis next time.

20

An Excel workbook implementing the shale/dolomite discrimination example is available at http://people.ku.edu/~gbohling/EECS833

21


Recommended