DeliveryOpenSourceModelBasedBayesian Gunning 030203

Embed Size (px)

Citation preview

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    1/46

    Delivery: an opensource modelbased

    Bayesian seismic inversion program

    James Gunning a,, Michael E. Glinsky baAustralian Petroleum Cooperative Research Centre, CSIRO Division of Petroleum

    Resources, Glen Waverley, Victoria, 3150, Australia, ph. +61 3 9259 6896, fax

    +61 3 9259 6900

    bBHP Billiton Petroleum, 1360 Post Oak Boulevard Suite 150, Houston, Texas

    77056, USA

    Abstract

    We introduce a new open-source toolkit for model-based Bayesian seismic inversioncalled Delivery. The prior model in Delivery is a tracelocal layer stack, withrock physics information taken from log analysis and layer times initialised frompicks. We allow for uncertainty in both the fluid type and saturation in reservoirlayers: variation in seismic responses due to fluid effects are taken into account viaGassmans equation. Multiple stacks are supported, so the software implicitly per-forms a full AVO inversion using approximate Zoeppritz equations. The likelihood

    function is formed from a convolutional model with specified wavelet(s) and noiselevel(s). Uncertainties and irresolvabilities in the inverted models are captured bythe generation of multiple stochastic models from the Bayesian posterior, all ofwhich acceptably match the seismic data, log data, and rough initial picks of thehorizons. Post-inversion analysis of the inverted stochastic models then facilitatesthe answering of commercially useful questions, e.g. the probability of hydrocar-bons, the expected reservoir volume and its uncertainty, and the distribution of netsand.Deliveryis written in java, and thus platform independent, but the SU databackbone makes the inversion particularly suited to Unix/Linux environments andcluster systems.

    Key words: seismic, inversion, AVO, Bayesian, stochastic, geostatistics, MarkovChain Monte Carlo, opensource,

    Corresponding author.Email address: [email protected] (James Gunning).

    Preprint submitted to Computers & Geosciences 3 February 2003

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    2/46

    1 Introduction

    The basic purpose of the seismic experiment in the oil exploration businesshas always been the extraction of information regarding the location, size and

    nature of hydrocarbon reserves in the subsurface. To say this is to also grantthat that the analysis of seismic data is necessarily and always an inversionproblem: we do not measure reservoir locations and sizes; we measure reflectedwaveforms at the surface, from which information about potential reservoirzones is extracted by a sequence of processing steps (stacking, migration etc)that are fundamentally inversion calculations designed to put reflection re-sponses at their correct positions in time and space.

    Such inversion calculations invariably depend on assumptions about the char-acter of the geological heterogeneity that are usually described informally(gentle dips, weak impedance contrasts etc), but could equally well be

    couched in formal probabilistic language. Further, such assumptions often holdwell across a range of geological environments, and are of a nature that leadsto generic processing formulae (e.g. Kirchoff migration) that may be appliedby the practitioner with merely formal assent to the assumptions underlyingtheir validity. From this point of view, we can say that traditional inversionis fundamentally based on a modelof the subsurface, but no particular detailsof that model appear explicitly in the resulting formulae. These inversions canalso be claimed to have integrated certain portions of our geological knowledge,in that the empowering assumptions have been made plausible by observationand experience of typical geological structures.

    By this line of argument, traditional inversion can be seen as an attempt toexplain the observed surface data by appeal to a broad (but definite) model ofthe subsurface, which yields congenial formulae when we incorporate certaingeological or rock-physics facts (weak reflections etc). It is then no great stepof faith to assert that inversion techniques ought to incorporate more definiteforms of knowledge about the subsurface structure, such as explicit surfaces orbodies comprised of certain known rock types whose loading behaviour maybe well characterised.

    Such a step is in fact no longer contentious: it has long been agreed in the geo-

    physical community that seismic inversion tools ought to use whatever rockphysics knowledge is regionally available in order to constrain the considerablenonuniqueness encountered in traditional inversion methodologies. Further,in an exploration or earlyappraisal context, some limited log or core data areusually available, from which additional constraints on likely fluid types, timeand depth horizons etc can be constructed.

    In practice, such knowledge is difficult to incorporate into modelfree meth-

    2

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    3/46

    ods like sparsespike inversion, even though these methods have a sound geo-physical basis. Conversely, detailed multiproperty models of the reservoir such as geostatistical earth models are often weak in their connection togeophysical principles: the relationship to seismic data is often embodied inarbitrary regression or neuralnetwork mappings that implicitly hope that the

    correct rock physics has been divined in the calibration process.

    Another longsettled consensus is that the inversion process is incurably nonunique: the question of interest is no longer what is such and such a quantity,but what is the multicomponent distribution of the quantities of interest(fluids, pay zone rock volume etc) and the implications of this distribution fordevelopment decisions. The development of this distribution by the integrationof information from disparate sources and disciplines with the seismic data isnow the central problem of seismic inversion. An interesting aspect of thisconsensus is that most workers in seismic inversion (and closely related prob-lems like reservoir history matching) now concede that the most satisfactory

    way to approach the nonuniqueness and dataintegration problems is via aBayesian formalism 1 . Examples of such work are Omre (1997), Eide (2002),Buland (2000), Eidsvik (2002), Leguijt (2001) and Gunning (2000) in the con-text of seismic problems and the many papers of Oliver and his school in thecontext of reservoir dynamics problems, e.g. Chu et al. (1995), Oliver (1997),Oliver (1996). It is recognised also that the posterior distribution of interestis usually quite complicated and impossible to extract analytically; its impacton decisions will have to be made from Monte Carlo type studies based onsamples drawn from the posterior.

    Nevertheless, the use of modelbased Bayesian techniques in seismic inversionat this point in time is still novel or unusual, for a mixture of reasons. Themain reason is undoubtedly the lack of accessible software for performing suchinversions, and the associated lack of fine control of such systems even whenthey are available as commercial products. Bayesian inversion methodologiesare unlikely to ever become blackbox routines which practitioners can applyblindly, and successful inversions will usually be the result of some iterativeprocess involving some adjustment of the modelprior parameters and choiceof algorithms. Such flexibility is hard to achieve in blackbox algorithms.A second reason is that the amount of effort required to construct a suitableprior model of the rock physics and geological surfaces of interest will always

    be nontrivial, though repeated experience of such an exercise will reduce therequired effort with time. This effort is justified by the fact that a Bayesianinversion constructed around an appropriate prior will always produce morereliable predictions than an inversion technique which does not integrate the

    1 other approaches to stabilising the inverse problem via regularisation or parameterelimination are perhaps best seen as varieties of Bayesian priors, perhaps augmentedwith parsimonyinducing devices like the Bayes information criterion.

    3

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    4/46

    regional rock physics or geological knowledge. This fact will be obvious if wedo the thought experiment of asking what happens when the seismic datahas poor signal to noise ratio. We assert that the use of Bayesian modelbased inversion techniques should become far more widespread once the firstmentioned obstacle above is overcome.

    We do not presume in this paper to offer even a partial critique of nonmodelbased inversion techniques from a Bayesian point of view: the reader will beable to do this for themselves after consideration of the methods and principlesoutlined below. The aim of this paper is rather to introduce a new opensourcesoftware tool Delivery for Bayesian seismic inversion, and demonstrate howthis code implements a modelbased Bayesian approach to the inversion prob-lem. The software described in this paper is a tracebased inversion routine,and is designed to draw stochastic samples from the posterior distribution ofa set of reservoir parameters that are salient for both reservoir volumetricsand geophysical modelling. The exposition will cover the choice of the model

    parameters, construction of the prior model, the development of the forwardseismic model and the associated likelihood functions, discuss the mappingof the posterior density, and sketch the methods used for sampling stochasticrealisations from the posterior density. The latter involves use of sophisticatedMarkov Chain Monte Carlo (MCMC) techniques for multiple models that arerelatively new in the petroleum industry.

    The main content of the paper is laid out as follows; in section 2 the overallframework and design of the inversion problem is outlined. Section 2.1 describesthe basic model and suitable notation, section 2.2 outlines the construction ofthe prior model, and section 3 describes the forward model and associatedlikelihood. Section 4 covers the problems of mode mapping and sampling fromthe posterior. An outline of the software is provided in section 5, and discussionof a suite of example/test cases is given in section 6. Conclusions are offeredin section 7.

    2 Outline of the model

    The inversion routine described in this paper is a tracebasedalgorithm, de-

    signed to operate in a computing environment where a local seismic trace(usually post-stack, post-migration) in Seismic Unix(SU) format (Cohen andStockwell, 1998) is piped to the routine in conjunction with a set of parametersdescribing the local prior model, also in SU format. Stochastic realisations arethen drawn from the posterior and written out, also in SU format. The detailsof these formats are discussed in section 5. Inverting on a trace-bytrace ba-sis amounts to an assumption that the traces are independent, and this canbe guaranteed by decimating the seismic data to a transverse sampling scale

    4

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    5/46

    equal to the longest transverse correlation appropriate for the local geology.Spacings of a few hundred metres may be appropriate. Working with indepen-dent traces has the great advantage that the inversion calculation is massivelyparallelizable, and the computation may be farmed out by scattergather op-erations on cluster systems. Finer scale models may then be reconstructed by

    interpolation if desired.

    Inversion calculations on systems with intertrace correlations are very dif-ficult to sample from rigorously. Sketches of a suitable theory are containedin Eide (1997), Eide et al. (2002), Abrahamsen et al. (1997), Huage et al.(1998) and Gunning (2000), from which we offer the following potted sum-mary. If the variables to be inverted are jointly multivariate Gaussian, someanalytical work can be done which yields a sequential tracebased algorithm,but the matrix sizes required to account for correlations from adjacent tracesare very large. Models which use nonGaussian models for distributing facies(e.g. the indicator model used in Gunning (2000)) require methods that involve

    multiple inversions over the whole field in order to develop certain necessarymarginal distributions. These calculations are very demanding, even for purelymultiGaussian models.

    From another point of view, the sheer difficulty of rigorously sampling fromintertrace correlated inversion problems is the price of modelling at a scalefiner than the transverse correlation length of the sediments of interest, whichis commonly several hundred metres or more. We know from the Nyquisttheorem that any random signal can be largely reconstructed by samplingat the Nyquist rate corresponding to this correlation length, and intermediate

    values can be recovered by smooth interpolation. This is a strong argument forperforming inversion studies at a coarser scale than the fine scale (say 10-30m)associated with the acquisition geometry.

    By assuming the intertrace correlation is negligible, the inversion can proceedon an independent trace basis, and the incorporation of nonlinear effects likefluid substitution, and discrete components of the parameter space (what typeof fluid, presence or absence of a layer etc) become computationally feasible.In short, the correct sampling from systems with intertrace correlations isprobably only possible in systems with fully multiGaussian distributions ofproperties, but such a restriction is too great when we wish to study systems

    with strong nonlinear effect like fluid substitution and discrete components likelayer pinchouts or uncertain fluids. The latter, more interesting problems onlybecome possible if we reduce the transverse sampling rate.

    The model used in this inversion is somewhat coarser than that commonlyused in geocellular models. At each trace location, the timeregion of interestis regarded as a stack of layers, typically a a metre to several tens of metresin size. Each layer is generically a mixture of two end-member rock types:

    5

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    6/46

    a permeable reservoir member, and an impermeable nonreservoir member.the balance of these two is determined by a layer nettogross (NG), and theinternal structure of mixed layers (0 < NG

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    7/46

    rock properties are in general controlled by a loading curve which dependsprimarily on depth but also possibly a lowfrequency interval velocity (LFIV)(derived perhaps from the migration), as explained in section 2.2.3.

    Permeable members that are susceptible of fluid substitution will also require

    knowledge of the dry matrix grain properties, and saturations, densities and pwave velocities of the fluids undergoing substitution. For a particular rock type,the grain properties are taken as known, but the fluid saturations, densitiesand velocities can form part of the stochastic model.

    The set of parameters describing the full acoustic properties for layer i, boundedby times ti1, ti, with hydrocarbon h present, is then

    m= {d, LFIV, NG, s, vp,s, vs,s, m, vp,m, vs,m, b, vp,b, h, vp,h, Sh}, f= s,m,(1)

    at each trace. A isubscript is implicit for all quantities. If the layer is a pureimpermeable rock (NG= 0), this simplifies to

    m= {d, LFIV, NG, m, vp,m, vs,m}. (2)

    The union of these parameters with the layer times ti (and the final bottom-layer base time tbase) then forms the full model vector of interest. Since thetimes are the dominant variables, it is convenient to arrange them to occur

    first in the full model vector, so this is assembled as

    m= {t1, t2, . . . , tNl, tNl,base, mlayer1, mlayer2, . . . mlayerNl, A , B}. (3)

    The extra stochastic factorsA, Baffect the synthetic seismic and are explainedin section 3.1.4.

    An additional feature is that some parameters may be common to severallayers (e.g. in many cases the LFIV is an average across many layers), so theunderlying model vector will map all duplicate instances to the one variable

    (so, e.g. there may be only one LFIV in the overall model vector).

    Also, it is sometimes useful to synchronise the rockmatrix properties be-tween two layers, so that if they have the same endmembers, acoustic con-trasts at the interface must be entirely due to fluid effects. In this case theunderlying parametrisation will map all rock-matrix affecting parameters inthe lower layer to those of the layer above, and remove all redundancies in themodel vector.

    7

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    8/46

    2.2 Construction of the prior

    2.2.1 Layer times

    Before inversion, the times ti are not known precisely, but are modelled asstochastic variables with prior distributionsN(ti, 2ti

    ). The mean and standarddeviation are estimated from horizon picking and approximate uncertainty es-timates (e.g. a halfloop or so may be chosen for the ti). The prior distributionon layer times is supplemented by an ordering criterion which says that layerscannot swap:

    ti ti1, (4)

    so the prior for the layer times is actually a product of truncated Gaussians

    with delta functions at the endpoints absorbing the misordered configurations.A typical scenario is that the top and bottom of a large packet of layers havebeen picked reasonably accurately, but the timelocation of the intermediatesurfaces is not well known.

    The truncation rules allow the useful possibility of pinchouts. For example,layer 2 may disappear if we have t3 = t2, in which case the interface at thistime comprises a contrast between layer 1 properties and layer 3 properties,providing t3 > t1. Modelling pinchouts in this way then requires a specificalgorithm for determining where the pinchouts occur from a given set of (un-truncated) layer times ti. We have used this scheme:

    (1) Form a sort order based on the layer prior time distributions uncertain-ties ti (sorting in increasing order), and from the top layer down as asecondary sort order if some tis are identical.

    (2) From the set of candidate time samples{ti} (which will not in generalsatisfy (4)), proceed to fix the times in the sort order above, truncatingvalues to preserve the ordering criterion (4) as we proceed. For example,if the sort order is {1,4,2,3}, and we have a set t1< t4< t3< t2, this willend up truncated at t1, (t2 = t4), (t3 = t4), t4.

    This recipe is designed to allow the better picked horizons higher priority in

    setting the layer boundary sequence.

    2.2.2 Prior beliefs about hydrocarbons

    The modeller will have formed beliefs about the probability of certain kindsof hydrocarbons in each layer, informed by non-seismic sources such as pres-sure data or resistivity logs. A relative prior probability is assigned to each

    8

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    9/46

    hydrocarbon type in each layer on this basis. Specifically, each layer i maybear fluids; oil (o), gas (g), brine (b), or lowsaturation gas (l). The priormodel gives the probabilities of these as Fio, Fig, Fib for oil, brine and gas,with 1 (Fio+ Fig+ Fib) the probability of lowsaturation gas. We must haveFio+ Fig+ Fib 1.

    Supplementing this fluid categorisation, it is desirable also to model the fluidsaturations Six, x = o, g,b, l for each fluid type. The two phases present aretaken as brine (b) & hydrocarbon (o,g,l). The petrophysicist can assign Gaus-sian stochastic priors Six N(Six, Six), truncated 2 outside [0, 1] to thesesaturation parameters, based on regional knowledge.

    Depending on the likely hydraulic communication between layers, the hydro-carbons allowed to be present in the permeable layers may be subjected to adensityordering criterion, e.g. oil is not permitted above gas in two adjacent

    permeable layers. At least three kinds of density ordering can be envisaged.

    (1) None. Any fluids are allowed in any permeable layer.(2) Partial. Fluids are density ordered for all adjacent permeable layers not

    separated by an impermeable layer.(3) Full. Fluids are density ordered across the entire reservoir model, regard-

    less of whether there are impermeable layers separating permeable ones.

    The set of possible fluids in each layer (as implied by the prior probabilities)are combined with a rule for density ordering to produce a discrete set ofpossible fluid combinations. E.g. a two layer system with bounding shales mayhave the set{(brine, brine) : (oil, brine) : (oil, oil)}. Note that in multilayersystems, this makes the marginal prior probability of obtaining a certain fluidin a given layer quite different to the prior probability specified on a layerbasis, simply because of the ordering criterion. For example, in the twolayerproblem just described, if the prior probability of oil in each layer had beenspecified as, say, 0.6, the 3 combinations would have probabilities proportionalto 0.42, 0.6 0.4, 0.62 respectively, or 0.21, 0.316, 0.474 after normalisation, sothe postorderingprior probability of oil in layer 2 is 0.474, and in layer 1 is0.316 + 0.474 = 0.79. In subsequent discussions, the priorprobability of eachdistinct fluid combinationk enumerated in this way is denoted pk.

    2 The algorithms in this code treat truncated Gaussian distributions as a mixtureof a true truncated Gaussian plus delta functions at the trunction points, of weightequal to the truncated probability. This has the advantage of giving nonvanishingprobability to certain physically reasonable scenarios, like NG = 0, or a layer pin-chout.

    9

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    10/46

    2.2.3 Prior information about rock properties

    Nettogross

    The nettogross prior distribution is taken as N(NG, 2NG), truncated within[0, 1]. The mean and standard deviation of this distribution can be determinedby consultation with the geologist. A broad prior may be used to reflect un-certain knowledge.

    Trend curves

    From logging information in wells drilled through intervals deemed to be repre-sentative of the rock behaviour in the region to be inverted, a set of regressionrelationships for useful acoustic properties in all the facies is developed. Thepoints used in these local trend curves are computed using a known reference

    fluid (typically, a brine) in place of the insitu fluid, and the basic acousticproperties (, vp, vs) of these reference fluids have to be established (the refer-ence fluid may vary with facies for various reasons). These referencefluidproperties may also be slightly uncertain, with Normal distributions modellingtheir variation about a mean.

    The trend curves are a set of rock-matrix velocities (pwave, swave) vpf,vsf, and density f(or porosity f) regressions for all end-member rocks. Forreservoirmembers, the porosity is used in preference to the density 3 , and theset of regressions is

    f= (A+ Bvpf) fvsf= (Avs+ Bvsvpf) sf (6)vpf= (Avp+ Bvpd + CvpLFIV) pf,

    where d=depth. The last equation models vp as linear in d = depth (com-paction etc) and linear in the lowfrequency interval velocity (LFIV); a lo-cal mean vertical p-wave velocity obtained from pure seismic data like VSP,moveout or stacking considerations. Such a regression can capture most strati-graphic, compaction and overpressure effects.

    For impermeable rocks, the porosity is of no direct interest, and the density isregressed directly on vpfusing a GardnerGarderGregory (GGG) type rela-tionship:

    3 Density is computed from

    sat= (1 )g+ fluid (5)

    for permeable members.

    10

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    11/46

    log f= (log A+ Blog vpf) f or: f=AvBpf fvsf= (Avs+ Bvsvpf) sf (7)vpf= (Avp+ Bvp depth + Cvp LFIV) pf.

    Typically, B

    0.25. Since the range of densities and velocities in a singlerock type is not large, this GGG type regression can also be cast as a linearregression over a suitable range.

    The regression errors (pf,sf, . . .) used in these relationships are the predic-tion errors formed from linear regression studies, which yield tdistributionsfor the predictive distribution. We approximate this result by taking the priorto be of Normal form, with variance set to the regression variance. For exam-ple, the prior forvp,f isN(Avp+ Bvpd + CvpLFIV,

    2pf). This approximation is

    exact in the limit of large data.

    2.2.4 Fluid properties

    We have also, from measurements or prior information, Gaussian prior distri-butions for the fluid pwave velocities N(vp, vp) and densitiesN(, ) (fromwhich the bulk moduli distribution can be computed) for the reference brinesand any possible hydrocarbons.

    3 The forward model

    The Bayesian paradigm requires a likelihood function which specifies how prob-able the data are,givena particular model. This requires calculation of a syn-thetic seismic trace from the suite of layers and their properties, and formingthe likelihood by comparing the seismic data and the synthetic seismic. Theforward seismic model is a simple convolutional model, which treats layers asisotropic homogeneous entities with effective properties computed from thesuccessive application of Gassman fluid substitution in the permeable rocks

    and Backus averaging with the impermeable rocks.

    There may be additional constraints in the form of isopach specifications, wherea particular layerthickness is known to within some error by direct observa-tion, or other source of knowledge. The isopach constraint, being independentfrom the seismic, forms its own likelihood, and the product of the syntheticseismic likelihood and the isopach likelihood form the overall likelihood for theproblem.

    11

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    12/46

    3.1 Computing the synthetic seismic

    3.1.1 Rock mixtures

    When two different isotropic rocks are mixed at a fine (subseismic resolution)scale with strong horizontal layering, it is well known that the effective acousticproperties of the mixture can be computed using the Backus average (p.92,Mavko (1998)). This assumes that the wavelengths are long compared to thefinescale laminations represented by the nettogross measure. The standardformulae are

    1

    Meff=

    NGMpermeable

    + 1 NG

    Mimpermeable, (8)

    where M can stand for either the p-wave (M) or shear () modulus (eff =effv2s,eff,Meff= Keff+

    43

    eff= effv2p,eff), and the effective density is

    eff= NGpermeable+ (1 NG)impermeable. (9)

    3.1.2 Fluid substitution in permeable rocks

    When the saturation of a particular hydrocarbon is not trivially 0 or 1, wetake the hydrocarbon and brine phases to be well mixed on the finest scale,so the fluid can be treated as an an effective fluid (see p. 205, Mavko (1998))

    whose properties are computed using the Reuss average

    K1fluid= SixKix

    +1 Six

    Kib. (10)

    When the effective fluid replaces brine in the pore space, the saturated rock haseffective elastic parameters that are computed from the usual low-frequencyGassman rules (Mavko et al., 1998): viz

    KsatKg

    Ksat

    = Kdry

    Kg

    Kdry+

    Kfluids(Kg

    Kfluid)

    . (11)

    The Mpermeablein the Backus relation (8) will be the pwave modulus for perme-able rock after fluid substution via Gassman (only the permeable endmemberwill undergo fluid substitution). Here Kdryis the dry rock bulk modulus, Kg isthe bulk modulus of rock mineral grains,Kfluidthe bulk modulus of the substi-tuted fluid (gas/oil/brine/low-sat. gas), andKsatthe effective bulk modulus ofthe saturated rock. The shear modulus is unchanged by fluid substitution.

    12

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    13/46

    Under replacement of the reference fluid b by a fluid fl (a twophase mix ofbrine and hydrocarbonh), the Gassman law can be written 4

    Ksat,flKg Ksat,fl

    Ksat,bKg Ksat,b =

    Kfls(Kg Kfl)

    Kbs(Kg Kb) . (12)

    3.1.3 Typical computation sequence

    A typical computation sequence for computing the set of effective properties fora laminated, fluidsubstituted rock layer would run as described in electronicAppendix 1 (Gunning and Glinsky). Prior to computing the synthetic seismic,the effective properties of all the layers must be computed following this recipe.

    3.1.4 The synthetic seismic and seismiclikelihood

    Given a waveletw, an observed seismicS, and an estimate of the seismic noisepower 2s , we can use the reflectivities R associated with effectivepropertycontrasts across layers to construct the synthetic seismic appropriate to anyparticular stack. The synthetic is taken to be

    Ssyn w R, (13)

    where we use an FFT for the convolution, and wandRwill be discretised atthe same sampling rate t as the seismic data set S for the trace. The set of

    delta functions in R are interpolated onto the discretised timegrid using a 4point Lagrange interpolation scheme (Abramowitz and Stegun, 1965) based onthe nearest 4 samples to the time of a spike. This ensures the synthetic seismichas smooth derivatives with respect to the layer times, a crucial property inthe minimisation routines that are described in section 4.1.

    Available data tracesS may be near or far-offset (or both), and an appropriatewavelet w will be provided for each. The PP reflection coefficient for smalllayer constrasts and incident angles is 5

    Rpp=1

    2

    +vp

    vp

    + 2 vp

    2 vp 2 vs2 + 2 vsvs

    vp2

    , (14)

    with

    4 Assuming no pressure effects on the dry modulus Kdry.5 From the smallcontrast Zoeppritz equation for Rpp(), expanded to O(

    2) (topof p.63, Mavko (1998))

    13

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    14/46

    = (1+ 2)/2 (15)

    vp= (vp,1+ vp,2)/2 (16)

    vs= (vs,1+ vs,2)/2 (17)

    = 2 1 (18)vp= vp,2

    vp,1 (19)

    vs= vs,2 vs,1 (20)

    and layer 2 below layer 1. All properties in these formulae are effective prop-erties obtained as per electronic Appendix 1 (Gunning and Glinsky). The co-efficient of2 is usually called the AVO gradient.

    Due to anisotropy and other effects related to background AVO rota-tion (Castagna and Backus, 1993), some corrections to this expression maybe required, so the reflection coefficient will take the form

    Rpp(A, B) = A2

    +vp

    vp

    + B2

    vp2 vp 2 vs

    2

    + 2 vsvs

    vp2 , (21)

    where the factors AandB may be stochastic, typically Gaussian with meansclose to unity and small variances: A N(A, A),B N(B, B).

    Explicitly, 2 for a given stack is obtained from the Dix equation. The stackhas average stack velocity Vst, eventtimeTst and meansquare stack offset

    X2st

    =

    (X3st,max X3st,min)

    3(Xst,max Xst,min), (22)

    from which the 2 at a given interface is computed as

    2 = vp,1

    V3stT2

    st/X2st. (23)

    The likelihood function associated with the synthetic seismic mismatch is con-structed as

    Lseis= exp(ferror errorsampling points(Ssyn S)2

    /22

    s )), (24)

    where therangeof the errorsampling points is computed from the prior meanlayer time range and the wavelet characteristics as per figure 2. Within thisrange, the points used in the error sum are spaced at the maximum multiple ofthe seismic sampling timeptwhich is smaller than the optimal error samplingtime Ts derived in electronic Appendix 2 (Gunning and Glinsky) (i.e.pt

    14

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    15/46

    Ts). The correction factor ferror pt/Ts, is designed to recovery theerror that would obtain if the error trace were discretised at exactly Ts. Thesignaltonoise ratio SNis implied by the noise level s supplied by the user,with typicallySN 3.

    [Fig. 2 about here.]

    If both normalincidence (small ) and faroffset seismic data are available(large ), we model the overall likelihood as a product of likelihoods fornormalincidence and faroffset angles.

    The stack information required by the likelihood model thus comprises the pa-rametersVst (stack velocity to event),Xst,max (far offset),Xst,min (near offset),and Tst (event time), a wavelet appropriate for the stack, and the noise levels.

    3.2 Isopach constraints

    For certain layers there may be a constraint on the thickness which is obtainedfrom well data, or kriged maps of layer thicknesses constrained to well data.Let j = 1, . . . N t label the layers on which such a constraint is imposed. Thethickness of the layer must match a known thickness Zj, within an errorZjspecified. This can be represented in a likelihood function

    Liso = exp(j(vj,p,eff(tj

    tj1)

    Zj)

    2

    22Zj ) (25)

    Similarly, constraints on the nettogross may be imposed by kriging nettogross estimates from well data. These will then be used to populate thepriormodel traces with a spatiallyvariable nettogross.

    4 Sampling from the posterior

    The posterior distribution for the inversion problem is a simultaneous modelselection and model sampling problem. The selection problem is primarilythat of choosing a model from the suite of models associated with the fluidcombinations described in section 2.2.2. For a particular combination k offluids in the permeable layers, the model vector mk can be constructed fromthe union of all relevent parameters in equation (3). Hydrocarbon terms areomitted if the layer contains brine. Any fixed or irrelevant parameters are

    15

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    16/46

    discarded. Different possible fluid combination will then yield model vectorsmk of different dimension.

    A further modelselection problem can also emerge from strong multimodalitythat may appear in the posterior for any particular fluid combination. If, for a

    fixed fluid combination, the posterior contains strongly isolated modes, sam-pling from this density is best approached by regarding the modes as separatemodels and incorporating them into the modelselection problem.

    Modelselection problems can proceed in two ways. The first is to seek themarginal probability of the kth modelP(k|d) by integrating out all the conti-nous variablesmkin the problem and then drawing samples via the decomposi-tionP(k, mk|d) =P(mk|k, d)P(k|d). The problem is to find reliable estimatesofP(k|d) when the necessary integrals cannot be done analytically. Methodsto form such estimates using MCMC methods are described in Raftery (1996),and tend to focus on harmonic means of the likelihood computed with MCMC

    samples drawn from the conditionalP(mk|k, d). Preliminary experiments haveshown some difficulty in stabilising the various estimators described by Raftery.The best estimator we have found is the full Laplace estimator, based on theposterior covariance matrix obtained by Newton updates at the mode. Thisforms the basis of an independence sampler, whose implementation detailsare described in electronic Appendix 4 (Gunning and Glinsky).

    The second method samples for the full posterior P(k, mk|d) by constructing ahybrid MCMC scheme that make jumps between the various models as well as

    jumps within the continuous parameter space of each model. Such methods arevariously described as jump diffusion methods (Andrieu et al., 2001) (Phillipsand Smith, 1996); we implement the methods described by Adrieu.

    For a fixed fluid combination k (of prior probabilitypk), the posterior distribu-tion of the model parameters mk should clearly be proportional to the productof the prior distributions with all the applicable likelihoods:

    (mk|S) Lseis(mk|S)Liso(mk)P(mk), (26)

    where the full prior is

    P(mk) = pk

    (2)dk/2|Ck| exp(12

    (mk mk)TC1k (mk mk)) (27)

    Note that the likelihood functions are evaluated for the model mk obtainedfrom mk after applying time ordering (section 2.2.1) and truncation of anyvalues to their appropriate physical range of validity (e.g. 0NG 1). In agreat majority of cases in realistic models, mk = mk. The prior mean vector

    16

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    17/46

    mk and inverse covariance C1k can be built directly from the description of

    the prior in section 2.2.

    Efficient sampling from the posterior will require location of all the feasiblemodes for a particular fluid combination, plus an estimate of the dispersion at

    each mode. The latter is usually taken as the local covariance associated witha Gaussian approximation to the local density.

    4.1 Mode location and local covariance

    Location of the modes is usually performed by searching for minima of thenegative logposterior starting from strategic points. For each fluid combina-tion, the full model vector m can easily have dimension ofd = O(50) or more,so this minimisation is quite demanding. The logposterior surface is smooth

    for all parameters except where a layer pinches out, since the disappearinglayer causes an abrupt discontuity in the reflection coefficient. Such problemscan be tackled with variable metric methods like BFGS minimizers 6 speciallyadapted to detect solutions that lie along the lines of dicontinuity (typically atsometi+1= ti). Still, very best-caseddimension minimisation usually requiresO(d2) function evaluations, with the coefficient being in the order of 10-100.Observe also that the function evaluation is a synthetic seismic (over Nt sam-ples), plus prior, plus isopach, so the work count for this is isO(d2+Ntlog(Nt)),which is typically O(103) flops.

    This accounting shows that the overall minimisation, performed over all d pa-

    rameters will be quite slow. In practice, some of the parameters affect theposterior much more strongly than others. Layer times, pvelocities and den-sities have strong effects, whereas, e.g. hydrocarbon saturations have ratherweak ones. This observation leads to a scheme wherein the minimisation iscarried out over a subset of important parameters (say 2 or three per layer),and the remainder are estimated after the minimisation terminates using asequence of Newton iterates as follows.

    4.1.1 Newton updates

    If the prior distribution for mk is multiGaussian, with negative loglikelihood log(P(mk)) (mk m)C1m (mk m), and the likelihood function is of form

    log(L(m|D)) 12

    (f(mk) y)T.diag(2i ).(f(mk) y), (28)

    6 The code actually uses an adaptation of Verrills java UNCMIN routines (Koontzand Weiss, 1982), which implement both BFGS and Hessianbased Newton methods.

    17

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    18/46

    then the posterior mode m can be estimated by linearising f(m) about aninitial guess m0 using the standard inverse theory result (Tarantola, 1987)

    X=f(m0) (29)

    Cm= (XT

    C1

    D X+ C1

    m )1

    (30)m =Cm(X

    TC1D (y+ Xm0 f(m0)) + C1m m) (31)

    whereCD = diag(2i ).

    The updates encountered in the code are all cases where the error covarianceis diagonal, so the formulae are more simply stated in terms of the scaledresidualse:

    e(m0) = C1/2D (f(m0) y) (32)

    Xe(m0) (33)d = Xm0 e(m0) (34)

    Cm= (XTX+ C1m )

    1 (35)

    m =Cm(XTd + C1m m) (36)

    The gradient X is evaluated by finite differences, and the scheme can be it-erated by replacing m0 m at the end. It converges quadratically to thetrue mode if the path crosses no layer-pinchouts. Typically, after minimisationusing, say, BFGS methods over the dominant parameters in m, only a few New-

    ton iterates are required to get decent estimates of the remaining parameters,and the posterior covariance matrix Cm comes along for free.

    4.2 Mode enumeration

    Incorporation of the isopach likelihood alone will likely yield an approximatelyquadratic logposterior function, which has a single mode. This mode mayalso be quite tight, especially at the wells. Conversely, the synthetic seismiclikelihood is likely to be strongly multimodal, especially in the time parameters.

    For this reason, we always perform a small set of Newton updates (say 5) tothe prior based on the isopach likelihood before commencing a minimisationstep for the entire posterior. The partialposterior formed from the productof the prior and isopach constraint will be approximately multiGaussian, andthe mode and covariance of this distribution are then used to choose startingpoints for a set of subsequent minimisation calls. The subset of parametersused in the modified BFGS minimisation routines are typically the layer times

    18

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    19/46

    ti, the impermeable layer pvelocitiesvp and the nettogrossNG. Other com-binations are conceivable and perhaps better. The initial starting values ofthe nontime parameters are taken from the partialposterior mean, and aset of starting times are assembled as per the description in electronic Ap-pendix 3 (Gunning and Glinsky)). A run of subspace minimisations looping

    over this set of starting configurations will yield a set of points hopefully inthe vicinity of global modes. Duplicates are eliminated. Figure 3 indicates howthe sequence of dispersed starting points, subspace minimisation, and globalNewton methods converge to the desired separate modes.

    [Fig. 3 about here.]

    The remaining candidate points then undergo a set of Newton updates (about10) for the full model. Subsequently, any modes that look wildly implausi-ble are eliminated 7 . If a mode is acceptable, the Newton-updated mean andcovariance are stored, along with a measure of the mode weight such as the

    likelihood at the peak of the mode, and the Laplaceestimator weight (56) de-scribed in electronic Appendix 4 (Gunning and Glinsky). Diagnostic routinescapable of drawing graphs of the log posterior centered at the mode are use-ful in checking the character of the mode and the adequacy of the Gaussianapproximation.

    In cases where the seismic likelihood value obtained after these local optimi-sations looks poor (or for other reasons), a global optimisation step may beinitiated operating on the subvector of layer times, with non-time propertiesfixed at their prior+isopach means. The initiation conditions for this step aredesigned to detect trapping of the BFGS/Newton optimisers in poor local so-

    lutions. The globally optimal t values are then used as starting points for theNewton optimiser. The global optimiser uses the Differential Evolution geneticalgorithm of Storn and Price (1997).

    4.3 Sampling

    The overall Markov Chain for the sampling is generated by a kernel that flipsrapidly between two kinds of proposals: (a) jumps to different models, and (b)

    jumps within the current model. Currently the scheme chooses one of thesemoves with a 50% probability at each step, and performs a withinmodel jumpor modeljump according to the schemes described below. This is the mixturehybridkernel of section 2.3 in Brooks (1998). Special moves for unusualsituations can also be devised, and are generally safe to use providing they aredrawn independently of the current state of the chain.

    7 the remaining freedom in the frozen parameters is unlikely to redeem a bad loopskip

    19

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    20/46

    Withinmodel jumps

    For singlemodelddimensional problems that have smooth densities, a Metro-polisHastings sampler that is both efficient and robust is the scaled reversible

    jump randomwalk sampler (RWM) described by Gelman (1995) in Ch. 11.In this sampler, the jumps are drawn from the distribution q(mnew|mold) =N(mold, s

    2C), where C is the estimated covariance at the mode, and s is ascale factor set to s = 2.4/

    d. For multiGaussian distributions, this scale

    factor leads to optimal sampling efficiency for this class of samplers, and thesampling efficiency is then about 0.3/d.

    If the posterior were perfectly multiGaussian, samples could be drawn froman independence sampler (Brooks, 1998) using a Gaussian proposal density,which would be 100% efficient since successive samples are independent, butthe assumption of a compact Gaussian distribution for the proposal density

    in a Metropolis technique will force undersampling of regions of the posteriorthat may have thick tails. Such regions appear reasonably likely when crosssections of the logposterior are plotted as diagnostic output: significant nonparabolicity is usually evident in the timeparameters (see figure 4).

    [Fig. 4 about here.]

    More efficient Metropolisadjusted Langevin (MALA) samplers have been de-vised (Roberts, 2001), which have scale factors of order 1/d1/3 (i.e. fastermixing), but these require computation of the local gradient at each step (extrawork of orderd) and their convergence properties are less robust.

    Hence, for random walks within a fixed model, we use the RWM sampler wherethe covariance used is that produced by the sequence on Newton updates atthe mode. The initial state is taken at the mode peak. Jumps that produce anunphysical state are treated as having zero likelihood. The acceptance proba-bility for a jump mold mnew is the usual rule

    = min(1,Lseis(m

    new)Liso(m

    new)P(mnew)

    Lseis(mold)Liso(m

    old)P(mold) ). (37)

    Model jumping

    Jumps between models have to be made with care so as to preserve reversibility.A notable feature of the set of models to be sampled from is that a great manyparameters are common to all models (times, rock parameters etc), and onlythe fluid characteristics distinguish the models corresponding to different fluidstates. For example, if a jump involves introducing gas into a layer, the modelvector is augmented by the gas velocity, saturation, and density (if they are not

    20

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    21/46

    fixed). The models are thus good examples of the nested structures discussed byAndrieu (2001), and the algorithms below are simple instances of the methodsdiscussed in section 3 of that paper.

    Suppose the models m1 and m2 are partitioned into components as m1 =

    {m

    12, m

    12}, m2 ={m

    21, m

    21}, the asterisk denoting common elements andthe prime noncommon parameters (so m12 =m21 is the same set). We haveestimates of the maximum likelihood model values m1 = {m12, m12} andm2 ={m21, m21} from the sequence of minimisation steps for each mode,and it is invariably the case that the shared parameters will have differentvalues at each of these maximumlikelihood points. A jump from model 1 to2 is then performed by the mapping

    m21 = {m12+ (m21 m12), m21} (38)

    wherem

    21 is drawn from a suitable proposal distribution q12(m

    21), which weusually take to be the prior for those components, since the fluid parametersare uncorrelated with the rest of the model in the prior. A reverse jump, from 2to 1, would have invoked the proposal probability q21(m

    12) for the componentsof model 1 not present in model 2. The jump from model 1 to 2 is then acceptedwith probability

    = min(1,(m21)q21(m

    12)

    (m12)q12(m21)). (39)

    where () is the full posterior density of equation (26), including the dimensionvarying terms in the prior.

    In the thoughtexperiment limit that the likelihood functions are trivially unity(we switch them off) this jumping scheme will result in certain acceptance,as theqij () densities will cancel exactly with corresponding terms in the prior.The likelihoods are expected to be moderately weak functions of the fluid prop-erties, so this seems a reasonable choice. Further, in many practical scenarios,the fluid constants may be sufficiently well known that they are fixed for theinversion, in which case the models share all the parameters, and the qtermsdisappear from equation (39).

    The linear translation embodied in equation (38) is based on an plausible as-sumption that the shape of the posterior density for the common parametersremains roughly the same across all the models, but the position may vary.Corrections to this assumption can be attempted by rescaling the mappingusing scalefactors estimated from covariance estimates which introduces aconstant Jacobian term into equation (39) but numerical experiments havenot shown that this embellishment significantly improves the acceptance rates.

    21

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    22/46

    5 The software

    The Delivery inversion software is written in java, a design decision ratherunusual in the context of numerically intensive scientific software. It should run

    on java implementations from 1.2 on. The advent of hotspot and justintime(JIT) compiler technology has made java a very much more efficient languagethan in its early days as a purely interpreted language (see the Java Numericswebsite as an entry point (Boisvert and Pozo)). The core cpu demands in thecode are (a) linear algebra calls, for which we use the efficient CERN coltlibrary (Hoschek), and (b) FFTs, for which we provide a library operating onprimitive double[] or colt DenseDoubleMatrix1D arrays, and the former havebeen demonstrated to be as fast as C on the platforms we use.

    On platforms with modern hotspot or JIT compilers, the code is estimatedto run somewhere within a factor of 2-5 of the speed of a C++ implementa-

    tion, and has the advantage of being platform independent, free of memorymanagement bugs, and has been simpler to develop using the large suite oflibraries now standard in java 1.2 and its successors.

    In practice, the inversion code will likely be run in an operating system thatallows piping of input and output data in the form of SU streams, and theattractive possibility of clustering the calculation means that it will likely berun on some flavour of unix or Linux.

    Some explanation of the files required for input/output and usage is given inelectronic Appendix 7 (Gunning and Glinsky). The inversion is chiefly driven

    by an XML file that specifies the necessary rockphysics, layer descriptions, andinformation about the seismic. A quality schemadriven GUI editor expresslydeveloped for the construction of this XML file is also available at the website:further details are in the Appendix.

    The code is available for download (Gunning), under a generic opensourceagreement. Improvements to the code are welcome to be submitted to theauthor. A set of simple examples is available in the distribution.

    22

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    23/46

    6 Examples

    6.1 Sand Wedge

    A simple but useful test problem is one where a wedge of sand is pinched out bysurrounding shale layers. This is modelled as a three layer problem, where weexpect the inversion to force pinchingout in the region where no sand exists,if the signaltonoise ratio is favourable and the sandshale acoustic contrastis adequate.

    In this example, the prior time parameters are independent of the trace, sothere is no information in the prior to help detect the wedge shape. The inter-nal layer times have considerable prior uncertainty (20ms, 50ms respectively).Figure 5 illustrates pre and post inversion stochastic samples of the layers,

    displayed with many realisations per trace. Here the noise strength is about1/4 of the peak reflection response when the wedge is thick (i.e. away fromtuning effects).

    [Fig. 5 about here.]

    This test problem shows how the inverter can readily unscramble tuning effectsfrom rockphysics to produce an unbiased inversion of a layer pinchout.

    6.2 Nettogross wedge

    Another useful test problem is where a slab of shaly sand is gradually madecleaner from left to right across a seismic section, and embedded in the mixingshale. As the nettogross increases, the reflection strength improves, and theposterior distribution of the nettogross and layer thickness is of interest.

    In this example, the only parameters that varies areally is the mean nettogross: this is fixed to be the same as the truthcase model, but has a (verybroad) prior standard deviation ofNG= 0.3. Figure 6 illustrates pre and post

    inversion estimates of the nettogross distribution parameters, superposed onthe truth case.

    [Fig. 6 about here.]

    This test problem shows that the inverter produces a relatively unbiased inver-sion for the nettogross, but subject to increasing uncertainty as the reflectinglayer dims out.

    23

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    24/46

    6.3 Simple singletrace fluid detection problem

    In this simple test a slab of soft sand surrounded by shale layers has oil present,and the prior model is set to be uninformative with respect to fluid type (so

    the reservoir has 50% prior chance of brine, 50% oil). The rest of the storyis told in the caption of figure 7. In summary, the inverter will detect fluidcontrasts reliably if the signal quality is sufficient, the rocks sufficiently softand porous, and the wavelet well calibrated.

    [Fig. 7 about here.]

    6.4 Field Example

    A simple test for an actual field is shown in figure 8. This is a test inversionat the well location. An 8layer model for a set of stacked turbidite sands hasbeen built with proven hydrocarbons in the secondbottom layer. The priorfor fluid type (brine:oil) is set as 50:50, as in the previous example.

    [Fig. 8 about here.]

    The inversion at the well location not only confirms the presence of oil ( >80% probability) but also demonstrates that the posterior distribution of layerthickness for the reservoir is consistent with the well observation.

    7 Conclusions

    We have introduced a new opensource tool for modelbased Bayesian seis-mic inversion called Delivery. The inverter combines prior knowledge of thereservoir model with information from the seismic data to yield a posterioruncertainty distribution for the reservoir model, which is sampled to producea suite of stochastic inversions. The Monte Carlo samples produced by theinverter summarise the full state of knowledge about the reservoir model afterincorporating the seismic data, and can be used to generate predictive dis-

    tributions of most commercial or engineering quantities of interest (netpay,columnthickness etc).

    The inverter is driven from a combination of XML files and SU/BHP SU data,and outputs are in SU/BHP SU form. The SU backbone means the inverterinterfaces nicely with other free seismic software, such as the INT viewer (INT)and BHPs SU extensions (Miller and Glinsky). We believe the smallisbeautiful philosophy associated with backbone designs improves the flexibility

    24

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    25/46

    and maintainability of the software.

    The authors hope that this tool will prove useful to reservoir modellers workingwith the problem of seismic data integration, and encourage users to helpimprove the software or submit suggestions for improvements. We hope that

    the newer ideas on probabilistic modelcomparison and sampling (visavisthe petroleum community) prove useful and applicable to related problems inuncertainty and risk management.

    Acknowledgement

    This work has been supported by the BHP Billiton Technology Program.

    References

    Abrahamsen, P. et al. Seismic impedance and porosity: support effects. InGeostatistics Wollongong 96. Kluwer Academic, 1997.

    Abramowitz, M. and Stegun, I. A. Handbook of Mathematical Functions.Dover, 1965.

    Andrieu, C. A., Djuric, P. M., and Doucet, A. Model selection by MCMCcomputation. Signal Processing, 81:1937, 2001.

    Boisvert, R. and Pozo, R. The Java Numerics website. http://math.nist.

    gov/javanumerics/.Brooks, S. P. Markov chain Monte Carlo and its application. The Statistician,47:69100, 1998.

    Buland, A. and Omre, H. Bayesian AVO inversion. Abstracts, 62nd EAGEConference and Technical Exhibition, pages 1828, 2000. See extended paperat http://www.math.ntnu.no/~omre/BuOmre00Bpaper.ps.

    Castagna, J. P. and Backus, M. M., editors. Offset-dependent reflectivity Theory and practice of AVO Analysis. Society of Exploration Geophysicists,1993.

    Chu, L., Reynolds, A. C., and Oliver, D. S. Reservoir Description from Staticand WellTest Data using Efficient Gradient Methods. In Proceedings of the

    international meeting on Petroleum Engineering, Beijing, China, Richard-son, Texas, November 1995. Society of Petroleum Engineers. Paper SPE29999.

    Cohen, J. K. and Stockwell, Jr., J. CWP/SU: Seismic Unix Release 35: a freepackage for seismic research and processing,. Center for Wave Phenomena,Colorado School of Mines, 1998. http://timna.mines.edu/cwpcodes.

    Eide, A. L. Stochastic reservoir characterization conditioned on seismic data.In Geostatistics Wollongong 96. Kluwer Academic, 1997.

    25

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    26/46

    Eide, A. L., Omre, H., and Ursin, B. Prediction of reservoir variables basedon seismic data and well observations. Journal of the American StatisticalAssociation, 97(457):1828, 2002.

    Eidsvik, J. et al. Seismic reservoir prediction using Bayesian integration ofrock physics and Markov random fields: A North Sea example. The Leading

    Edge, 21(3):290294, 2002.Gelman, A. et al. Bayesian Data Analysis. Chapman and Hall, 1995.Gunning, J. Delivery website: follow links from http://www.petroleum.csiro.au.

    Gunning, J. Constraining random field models to seismic data: getting thescale and the physics right. In ECMOR VII: Proceedings, 7th Europeanconference on the mathematics of oil recovery, Baveno, Italy, 2000.

    Gunning, J. and Glinsky, M. E. Electronic appendix to Delivery: anopensource modelbased Bayesian seismic inversion program. See journalarchives.

    Hoschek, W. The CERN colt java library. http://tilde-hoschek.home.

    cern.ch/~hoschek/colt/index.htm .Huage, R., Skorstad, A., and Holden, L. Conditioning a fluvial reservoir on

    stacked seismic amplitudes. In Proc. 4th annual conference of the IAMG.1998. http://www.nr.no/research/sand/articles.html.

    INT. BHP viewer from INT. http://www.int.com/products/java_toolkit_info/BHPViewer.htm .

    Koontz, R. S. J. and Weiss, B. A modular system of algorithms for un-constrained minimization. Technical report, Comp. Sci. Dept., Univer-sity of Colorado at Boulder, 1982. Steve Verrills Java translation athttp://www1.fpl.fs.fed.us/optimization.html .

    Leguijt, J. A promising approach to subsurface information integration. InExtended abstracts, 63rd EAGE Conference and Technical Exhibition, 2001.Mavko, G., Mukerji, T., and Dvorkin, J. The Rock Physics Handbook. Cam-

    bridge University Press, 1998.Miller, R. and Glinsky, M. BHP_SU: BHP extensions to seismic unix. http://timna.mines.edu/cwpcodes .

    Oliver, D. S. On conditional simulation to inaccurate data. MathematicalGeology, 28:811817, 1996.

    Oliver, D. S. Markov Chain Monte Carlo Methods for Conditioning a Perme-ability Field to Pressure Data. Mathematical Geology, 29:6191, 1997.

    Omre, H. and Tjelmeland, H. Petroleum Geostatistics. In Geostatistics Wol-

    longong 96. Kluwer Academic, 1997.Phillips, D. B. and Smith, A. F. M. Bayesian model comparison via jump

    diffusions. In Markov Chain Monte Carlo in Practice. Chapman and Hall,1996.

    Raftery, A. E. Hypothesis testing and model selection. In Markov Chain MonteCarlo in Practice. Chapman and Hall, 1996.

    Roberts, G. O. Optimal scaling for various Metropolis-Hastings algorithms.Stat. Sci., 16(4):351367, 2001.

    26

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    27/46

    Storn, R. and Price, K. Differential evolution a simple and efficient heuristicfor global optimisation over continuous spaces. Journal of Global Optimiza-tion, 11:341359, 1997.

    Tarantola, A. Inverse Problem Theory, Methods for Data Fitting and ModelParameter Estimation. Elsevier Science Publishers, Amsterdam, 1987.

    27

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    28/46

    Electronic Appendices: to appear as supplementary material on jour-

    nal archive

    Appendix 1: Typical computation of effective rock properties

    Here we illustrate how the effective rock properties for a single layer might becomputed from a a full suite of fundamental model parameters (equation (1))for the layer.

    Compute the brine+matrix densitysat,b = sb+ (1 s)g. (40)

    Compute the associated moduli

    sat,b= sat,bv2s,s (41)

    Msat,b= sat,bv2

    p,s (42)

    Ksat,b= Msat,b 43

    sat,b (43)

    sat,fl= sat,b (44)

    Use the fluid properties to compute Kb= bv2p,b and Kh= hv2p,h, and then

    Kfl= (ShKh

    +1 Sh

    Kb)1

    Using literature values ofKg, computeKsat,flusing equation (12). This comesout to be

    Ksat,fl= Kg/

    1 +

    1

    s

    1

    Kg/Kfl 1 1

    Kg/Kb 1

    +

    1

    Kg/Ksat,b 1

    1

    (45)

    This equation has regions of parameter space with no positive solution (of-ten associated with, say, small ). The forward model must flag any set ofparameters that yield a negativeKsat,fland furnish a means of coping sanelywith such exceptions. The same remark applies to equations (43) and (48)

    below. Compute the new effective density

    sat,fl = (1 s)g+ s(Shh+ (1 Sh)b), Compute also the new effective pwave modulus from

    Msat,fl = Ksat,fl+4

    3sat,fl

    28

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    29/46

    Compute the impermeablerock moduli

    m= mv2s,m (46)

    Mm= mv2

    p,m (47)

    Km= Mm 4

    3m (48)

    Mix the flsubstituted permeable rock with the shale properties using therockmixing Backus averaging formula (8). Compute also the mixed densityfrom (9).

    From the mixed rock, back out the velocities vp,eff = (Meff/eff)1/2, andvs,eff= (eff/eff)

    1/2.

    Appendix 2: Error sampling rates

    When comparing synthetic seismic traces to colocated actual seismic, it is aquestion of some nicety as to what rate of sampling of the difference trace mustbe applied to quantify the error between the two. It is trivial to show that if arandom process has, eg. a Ricker-2 power spectrum (i.e. f2 exp((f /fpeak)2)),then 95% of the spectral energy in the process can be captured by samplingat times

    Ts= 0.173/fpeak, (49)

    where fpeak is the peak energy in the spectrum (and often about half of thebandwidth). Most practical seismic spectra will yield similar results.

    The sampling rate in equation (49) is about 3 times the Nyquist rate associatedwith the peak frequency. If the error is acquired with a faster sampling ratethan this, adjacent error samples will be strongly correlated and the errorterm will become large. Since the error covariance is unknown, and bearingin mind that we seek an error measure corresponding to a maximum numberof independent data points, we use the rate given by equation (49) andmodel the error points as i.i.d. values. The peak frequency fpeak is estimated

    at initialisation from the FFT spectrum of the wavelet.

    Appendix 3: Modelocation starting points

    The location, characterisation, and enumeration of local modes in the posteriordistribution is performed by a loop over a set of strategically chosen starting

    29

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    30/46

    points in the model parameter space. Since one of the major functions of theprior distribution is to exclude improbable posterior modes, it makes sense tobase the choice of starting points on the prior distribution.

    The fundamental variables associated with multimodality are the layer times,

    in that the posterior likelihood surface is frequently oscillatory in the layertimes. Convergence to a secondary or minor solution is usually called loopskipping, and may or may not be desirable. In situations where loop skippingmay be permissible or even desirable, the prior uncertainty on the layer timesis usually set to be quite broad, as these secondary solutions may be feasible.Convergence to these solutions can then be prompted by setting the initial layertimes fed to the minimisation routine at values likely to be within the basinof attraction of the desired solution. The hueristic method used for definingthese starting points is as follows:

    Form a set of starting configurations, for each fluid state, by:

    (1) Forming an approximate multiGaussian posterior distribution for theproperties by updating the prior to account for any isopach constraintsand the depth consistency requirement. This posterior is characterised bythe mean m and covariance C. Recall that the layer times are the firsti = 1 . . . (n+ 1) elements in the vector m. Fix all non-time parametersi= n + 2 . . . at the values in m.

    (2) From this posterior, compute the expected layer time thickness ti, layertime uncertaintiesti and layer time thickness uncertainty ti, from

    ti=mi+1

    mi (50)

    2ti= Ci,i (51)

    2ti+1 =Ci+1,i+1 (52)

    2ti=Ci,i+ Ci+1,i+1 2Ci,i+1. (53)

    (3) Now, if ti/ti > 0.5, this amounts to a 5% chance of the layerpinching out (ti

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    31/46

    Appendix 4: An Independence Sampler

    For each fixed fluid combination k, a successful location of a mode in thefull parameter space will produce a maximum likelihood vector mkj and

    local covariance Ckj , by successive Newton iterates (equations (32)(36)). Herethe index j runs over the set of distinct modes we have found for each fluidcombination by starting from separated starting points, as per Appendix 3 (inmany cases there will be only one). To save notational baggage, we will use khenceforth to mean kj - the context makes the meaning clear.

    The Laplace approximation to the mode posterior marginal likelihood is formedby assuming the posterior surface is fully Gaussian, centred at the maximumlikelihood point, and characterised by the covariance Ck. Integrating over allthe model parameters then gives the marginal probability to be proportionalto

    qk (2)dk |Ck|1/2(mk|S), (56)

    where the posterior is evaluated as per (26,27), and the determinant anddimensionvarying terms in (27) are carefully retained.

    A full independence sampler can then be implemented using a Metropolis Hast-ings method. With the chain in mode k, with model vector mk, we propose anew modek with probability pk, whose new model vectormk is drawn fromq(mk) =N(m

    k

    |mk, Ck). We accept this candidate with the usual probability

    = min(1,(mk|S)pkq(mk)(mk|S)pkq(mk)

    , (57)

    or leave the state of the chain unchanged. This method has have somewhatmixed success - it is perfect when drawing from the prior (since the prior ismultiGaussian), but is susceptible of being trapped in particularly favourablestates for long periods when the posterior departs sharply from Gaussianity.Further, any thick tails in the posterior density are not likely to be exploredby the proposal density, since it has compact Gaussian tails. The proposal

    overdispersion recommended by Gelman (Gelman et al., 1995, Ch. 11) doesnot work well, since the dimensionality is so high that even mildly overdisperedtdistributions dramatically reduce the acceptance rates, even when samplingfrom the prior.

    It has proven useful to implement an approximate sampler where the modesare proposed from the posterior marginal ( qk) with normal approximationsat each mode (q(mk) =N(m

    k |mk, Ck), and mandatory acceptance (= 1).

    31

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    32/46

    Such candidates appear to very rarely produce unlikely 2 values for the seismicand isopach likelihoods.

    Appendix 5: Modified SU trace formats for properties

    5.1 Modelprior trace formats

    The local prior information for the inversion at each trace is communicatedto the inversion code by a SU data set with a set of traces on a pattern andordering that matches the SU seismic data set exactly. The xml Modelparame-ters.xmlfile which sets up the inversion will specify which prior quantities varyon a trace-bytrace basis, and the block indices k at which they are located.

    Suppose there areNp properties which vary, and there areNl layers. The valuefor propertyk in layerl is then the (l + (k 1)Nl)th float value in the currenttrace of prior data. There are some special rules as well

    A special rule holds for the layer times: they must always be present in theprior trace, and they must always be the last block (k = Nk). Further, oneadditional float value is appended for the base time of the last layer tbase).

    All values are expected to be positive, or converted to positive numbers ifnot. The value -999.0 signifies a bad value, and will be ignored (the defaultprior will then apply)

    All times are in milliseconds.

    5.2 Stochastic trace outputs

    Delivery will write stochastic samples from the posterior to the requestedoutput file in a very similar format to the modelprior traces. A sequence ofblocks is written, each of size Nl, and the last block ofNl+ 1 floats is eithertime or depth, as specified by the obvious entry in the ModelDescription.xmlfile. The names of the properties can be written to a singleline ascii file by

    supplying -BHPcommand filename to the deliverycommand line.

    Similarly, thedeliveryAnalyser programcan collate the large statistical ensem-ble produced by the deliveryoutput into a compact set of traces representingeither means, standard deviations or quantiles of all the salient quantities ofinterest. The set of property names of the blocks in these summary traces isobtained by adding -BHPcommand filename to the deliveryAnalysercom-mand line.

    32

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    33/46

    Appendix 6: Wavelet format

    Wavelets are expected to be single trace SU files, with the fields ns, dt andf1 set to reflect the number of samples, sampling interval, and starting time

    of the first sample (beginning of precursor). The ns and f1 fields are set so asto make the wavelet as compact as possible with respect to the tapering, soexcessive samples are discouraged, but the tapering must also be smooth tothe first and last sample.

    Appendix 7: Usage of the code

    7.1 Inputs

    Typical usage of the delivery inversion code demands 3 input files:

    An XML fileModelDescription.xmlspecifying the disposition of the lay-ers, the rock and fluid physics, and so metainformation about the su tracescontaining the variable prior information.

    One or two SU files for the seismic data. These will represent near (andpossibly far) offset data.

    An SU file containing the variable prior information.

    In distributed systems, the latter two items may refer to named pipes on a

    unix/Linux system.

    A typical inversion would be run with the command% delivery ModelDescription.xml -m prior traces.su -v 3 -PD -o re-

    alisations.su -N 1000

    which will generate (-N) 1000 realisations per trace and write them (-o) tothe file realisations.su, using the pinchout detection (-PD) BFGS meth-ods described in section 4.1. The prior model (-m) is read from the SU fileprior traces.su. Many other commandline options are available, and can beperused in the codes SUstyle self documentaion.

    7.1.1 TheModelDescription.xml file

    The inversion is chiefly driven by an XML file that specifies the necessary rockphysics, layer descriptions, and information about the seismic. A well formedXML file is crucial to this end, so the file can be created using a schemadriven GUI editor expressly built for the purpose, which is also available at thewebsite. Help documentation for the inverter is available through standard

    33

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    34/46

    menus. The editor is also capable of creating, running and controlling complexscripts on distributed systems, using a schema for common unix, SU, BHP SUand delivery commands.

    The structure of the XML document is controlled by the schema, and the

    meaning of the various entries is readily inferred by reference to the examplesin the distribution.

    Some particular entries in the XML file are worth further explanation

    The attribute varies areally may be set to true or false for a certain prop-erty. If true, the quantity in question will vary on a tracebytrace basis, andis expected to be read in from the SU model file. The block then will contain an entry property link which defines the block ofthe SU model file containing the property (see Appendix 5).

    Various properties may contain the attribute same as layer above. Thisis set to true when the property in question should be a replica of thesame property in the layer above. For example, the lowfrequencyintervalvelocity (LFIV) is usually a coarse scale measure representing an averageacross many layers, so it is best fixed at the same value (or mapped to thesame stochastic variable) for all of the relevant layers. Likewise, the depthinput is an approximation used to sample from the trend curves, and maysafely be set to the same value for many adjacent thin layers. Prudent useof this attribute helps to reduce the dimensionality of the final model.

    Each entry may have the attribute synchronise rock matrix setto true. This is a flag to indicate that any stochastic rock properties of a givenrock type in this layer must be matched to those of the matching rock typein the layer above (for example, the vp, vs ands of the permeable memberin the two layers is mapped to the same underlying stochastic variable Bythis means, two adjacent layers with matching endmember rocks are madeacoustically indistinguishable but for fluid property differences. Any internalreflections are then due to fluid contrasts, and this feature can then be usedto make the layer boundaries track a fluid interface.

    Linear trend curves are of form vs = slope vp + intercept sigma. TheGardner-Gardner-Gregory regression curves for impermeable rocks are of

    form = factor vexponentP sigma. The block has the following useful flags. is set to one of full/partial/none, with the meanings

    as described in section 2.2.2. denoted the SU header word used to

    store the realisation number. denotes the layer number from which

    depths of the other layers will be computed using summations of layerthicknesses (vp,eff oneway time thickness). The actual depth of the mas-ter layer is the depth variable din the model vector m.

    34

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    35/46

    7.2 Outputs

    The inversion code dumps stochastic realisation of the posterior model to aseries of SU traces, so the fastest scan direction in the resulting (large) SU file

    is that of the realisation number, which defaults to the mark header word.Posterior analysis of the simulations is performed with a second program de-liveryAnalyser, which can form various statistical quantities of interest, syn-thetic seismic traces, and blocked layer maps of the simulations. Some of thesalient quantities of interest include

    All the basic model variables in mof equation (3). Fluid type. Effective layer properties such as vp,eff,eff,Zeff(impedance). Effective reflection coefficients for each stack at the layer top.

    A normalised 2 variable indicating the degree of match with the seismic

    ( log(Lseis)/Nerror-sampling-points from equation (24)). Thickness (oneway timethicknessvp,eff. Net sand (net sand = thicknessNG). Net hydrocarbon (Net sandporositysaturation).

    Like delivery and SU programs, the program has self documentation, butsome typical analysis of a suite of realisations realisation.su might be

    (1) deliveryAnalyser -i realisations.su -p-ascii t 6| asciigraphingprogram

    Print the time of layer 6 from succesive realisations out as an ascii streamand graph it.(2) cat realisations.su|deliveryAnalyser mean NG 6

    Print a series of realisation averages ofNG in layer 6, one for each tracelocation.

    (3) cat realisations.su|deliveryAnalyser --filter fluid type = 1 4 --tracefilter fldr>1234 --mean NG 6Print a series of realisation averages ofNG in layer 6, one for each tracelocation, but only for realisation with oil (fluid type=1) in layer 4, andfor the traces with fldr>1234 (note the shell protection).

    (4) deliveryAnalyser -i realisations.su --histogram net-sand 6 --trace

    filter fldr=34,tracf=12| asciigraphingprogramPrint a histogram of net-sand (NGthickness) in layer 6 at the specifiedlocation.

    (5) deliveryAnalyser -i realisations.su -s 4 5 R near wavelet.su |suswapbytes| suximageProduce a synthetic nearstack seismic from the model realisations overthe time interval 4-5 seconds from the wavelet wavelet.su and displaythis on a little endian machine (all the java codes wrote bigendian SU

    35

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    36/46

    files).

    End of electronic appendices

    36

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    37/46

    List of Figures

    1 Schematic of the local layerbased model and its notation. Fordescription of the model parameters see the main text. The

    reflection coefficient sequence and synthetic seismic are part ofthe forward model of section 3. 39

    2 Diagram indicating range over which the error samples arecomputed. In general Tabove,below are free parameters, but wetake Tabove= waveletcoda and Tbelow = waveletprecursor asa sensible choice, since this allows the full reflection energyfrom the top and bottom reflections to enter the error countfor models not too different to the mean prior model. The erroris usually acquired by a sum over a subsampled range (circled

    samples), the subsampling rate computed as per the maintext. 40

    3 Minimisation scheme consisting of subspace minimisations (thesubspace represented by t) starting from dispersed points,followed by global Newton steps, yielding a set of local minimain the full parameter space. 41

    4 Series of logposterior crosssections taken through themaximumlikelihood point found from the optimisationstep and the sequence of Newton updates. Crosssectionsare shown for the parameters shown, in all relevant layers,over a range of 2 standard deviations as computed from thelocal covariance matrix. NearGaussian parameters will showsymmetric parabolas with a rise of +2 at the endpoints,but nonGaussianity is evidenced by skewed or a-symmetricprofiles, most obvious in the case of the time parameters inthis instance. 42

    5 (a) Truth case wedge model, (b) truth case seismic, (d)pre-inversion stochastic samples (i.e. drawn from prior

    distribution only, (e) post inversion samples (100 per trace),(c)p10, p50, p90 quantiles for the layer times of the wedge, and(f) p10, p50, p90 quantiles of the wedge thickness. Note how thewedge layer time uncertainty increases to the prior when thewedge pinches out, as there is no longer a significant reflectionevent to facilitate the detection of this horizon: the inverterdoes not care where the horizon is, as long as it pinches out.The wedge thickness (zero) is still well constrained though. 43

    37

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    38/46

    6 (a) Truth case seismic for nettogross (NG) wedge model,(b) preinversion (prior) spread ofNG as show by p10, p50,p90 quantiles; truthcase shown dashed, (c) as per (b), butpostinversion. Inset (d) shows the nearstack reflectioncoefficient variations, and (e) the associated samples of NG.

    The signaltonoise ratio here is very favourable, with noise1/10th of the peak seismic response. The residual uncertaintyin the NG is due to the fact that there is also uncertainty inthe layer velocity variations. The seismic constrains primarilythe reflection coefficient, but the system indeterminacy willstill allow appreciable variation in the NG. 44

    7 Three spaghetti graphs showing synthetic seismic tracesdrawn from (a) the prior models with brine in the reservoir (b)prior models with oil, and (c) the posterior distribution, whichputs the oil probability at

    97%. the noise level is 0.01. The

    truth case trace is shown in gray. 45

    8 Synthetic seismic traces overlaid by the observed seismic traceat a particular location in the survey. (a) Sample modelsdrawn from the prior with brine filling the reservoir layer.(b) The same, but with oil in the reservoir layer. (c) Tracescomputed from models drawn from the posterior distribution,conditional on oil present in the reservoir layer. (d) Histogramof reservoir thickness drawn from prior model and after seismicinversion (posterior). Pinchouts and very thin reserves areobviously precluded. The posterior distribution of thickness isalso consistent with the observed thickness. 46

    38

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    39/46

    tt

    Reflection coefficients Synthetic seismic

    m = {ttop, NG, R, vp,R, vs,R, NR, vp,NR, vs,NR, b,vp,b,h,vp,h,Sh}Model parameters per layer:

    R = reservoir rocks

    NR = impermeable rocks

    b = brine

    h = hydrocarbon

    Full suite of model parameters:

    M = {m1,m2,m3,...}

    shale

    shale

    shale

    oil-filled laminated sand

    brine-filled laminated sand

    brine-filled laminated sand

    Fig. 1. Schematic of the local layerbased model and its notation. For descriptionof the model parameters see the main text. The reflection coefficient sequence andsynthetic seismic are part of the forward model of section 3.

    39

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    40/46

    Tabove

    Tbelow

    Rangeoferror-samplingpoints

    modelinter

    val(tofromp

    rior)

    =top reflector (prior)

    Region above model in which

    assumption of no reflectors is implied

    Region below model in whichassumption of no reflectors is implied

    wavelet coda

    wavelet precursor

    t=0

    t=0

    =bottom reflector (prior)

    Error trace

    Fig. 2. Diagram indicating range over which the error samples are computed. Ingeneral Tabove,below are free parameters, but we take Tabove = waveletcoda andTbelow = waveletprecursor as a sensible choice, since this allows the full reflectionenergy from the top and bottom reflections to enter the error count for models nottoo different to the mean prior model. The error is usually acquired by a sum overa subsampled range (circled samples), the subsampling rate computed as per themain text.

    40

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    41/46

    t

    subspace minima

    full-space local minima

    Newton steps

    Newton steps

    vs

    start

    start

    Fig. 3. Minimisation scheme consisting of subspace minimisations (the subspacerepresented by t) starting from dispersed points, followed by global Newton steps,yielding a set of local minima in the full parameter space.

    41

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    42/46

    vs_s

    3200 3400 3600 3800 4000 42004

    5

    6

    7

    8

    9

    vs_m

    3200 3400 3600 3800 4000 42004

    5

    6

    7

    8

    9

    vp_s

    8400 8600 8800 9000 9200 94004

    5

    6

    7

    8

    9

    vp_m

    8600 8800 9000 9200 9400 9600 98004

    5

    6

    7

    8

    9

    t

    4.30 4.35 4.40 4.45 4.50 4.55 4.60 4.654

    5

    6

    7

    8

    9

    rho_m

    2.30 2.32 2.34 2.36 2.38 2.40 2.424

    5

    6

    7

    8

    9

    phi_s

    0.26 0.28 0.30 0.32 0.34 0.364

    5

    6

    7

    8

    9

    NG

    0.2 0.4 0.6 0.8 1.0 1.24

    5

    6

    7

    8

    9

    Fig. 4. Series of logposterior crosssections taken through the maximumlikelihoodpoint found from the optimisation step and the sequence of Newton updates.Crosssections are shown for the parameters shown, in all relevant layers, overa range of 2 standard deviations as computed from the local covariance matrix.NearGaussian parameters will show symmetric parabolas with a rise of +2 at theendpoints, but nonGaussianity is evidenced by skewed or a-symmetric profiles, most

    obvious in the case of the time parameters in this instance.

    42

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    43/46

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    44/46

    1.80

    1.85

    1.90

    1.95

    2.00

    0.0

    0.2

    0.4

    0.6

    0.8

    1.0

    0.0

    0.2

    0.4

    0.6

    0.8

    1.0

    (b)

    (a)

    (c)

    (d) (e)

    p10p10

    p90

    p90

    p50p50

    t

    ime(secs)

    Net-to-gross

    Nearre

    flectioncoefficient

    Net-to-gross

    Net-to-gross

    0.1

    0.0

    0.1

    0.2

    0.3

    0.4

    0.5

    0.6

    0.0

    0.2

    0.4

    0.6

    0.8

    1.0

    PRIOR POSTERIOR

    POSTERIORPOSTERIOR

    Fig. 6. (a) Truth case seismic for nettogross (NG) wedge model, (b) preinversion(prior) spread ofNGas show by p10, p50, p90 quantiles; truthcase shown dashed, (c)as per (b), but postinversion. Inset (d) shows the nearstack reflection coefficientvariations, and (e) the associated samples of NG. The signaltonoise ratio hereis very favourable, with noise 1/10th of the peak seismic response. The residualuncertainty in the NG is due to the fact that there is also uncertainty in the layer

    velocity variations. The seismic constrains primarily the reflection coefficient, butthe system indeterminacy will still allow appreciable variation in the NG.

    44

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    45/46

    1.86

    1.88

    1.90

    1.92

    1.94

    1.96

    1.98

    2.00

    -0.10 -0.05 0 0.05 0.10 -0.05 0 0.05 0.10

    1.86

    1.88

    1.90

    1.92

    1.94

    1.96

    1.98

    2.00

    1.86

    1.88

    1.90

    1.92

    1.94

    1.96

    1.98

    2.00

    -0.10 -0.05 0 0.05 0.10

    (a) brine prior samples (b) oil prior samples (c) synthetics of posterior

    samples

    Fig. 7. Three spaghetti graphs showing synthetic seismic traces drawn from (a)the prior models with brine in the reservoir (b) prior models with oil, and (c) theposterior distribution, which puts the oil probability at 97%. the noise level is0.01. The truth case trace is shown in gray.

    45

  • 8/10/2019 DeliveryOpenSourceModelBasedBayesian Gunning 030203

    46/46

    Well Result

    Fig. 8. Synthetic seismic traces overlaid by the observed seismic trace at a particularlocation in the survey. (a) Sample models drawn from the prior with brine fillingthe reservoir layer. (b) The same, but with oil in the reservoir layer. (c) Tracescomputed from models drawn from the posterior distribution, conditional on oilpresent in the reservoir layer. (d) Histogram of reservoir thickness drawn from priormodel and after seismic inversion (posterior). Pinchouts and very thin reserves are

    obviously precluded. The posterior distribution of thickness is also consistent withthe observed thickness.