Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a...

28
Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada Annealing Techniques for Data Integration Discuss the Problem of Permeability Prediction Present Annealing Cosimulation More Details on Simulated Annealing Examples SASIM program Reservoir Modeling with GSLIB

Transcript of Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a...

Page 1: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Annealing Techniques for Data Integration

• Discuss the Problem of Permeability Prediction• Present Annealing Cosimulation• More Details on Simulated Annealing• Examples• SASIM program

Reservoir Modeling with GSLIB

Page 2: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

1000

10.0 30.0

Porosity (%)

Known Porosity Value

- 105 md

DeterministicAnswer

Calibration Data

Perm

eabi

lity

(md)

Regression-Type Deterministic Approaches

Approaches:• linear regression• quadratic, cubic, ... regression• porosity class average or conditional averagesCharacteristics:• smooth out low and high values• does not capture uncertainty• transformed permeability have incorrect spatial variabilityConsiderations:• extreme high and low values have the most impact on fluid flow• spatial correlation (connectivity) is very important fewer “hard” permeability

K data than porosity φ• K is correlated with porosity φ• build φmodel first then K model (exhaustive secondary variable)

Page 3: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Stochastic Approaches

Approaches:• stochastic simulation from porosity classes• Markov-Bayes (implemented as a sequential simulation algorithm)• collocated cosimulation (Gaussian)Characteristics:• can extract a single expected value (for looking at trends)• calculate probability intervals (90% interval: 44-210 md)• ⇒ DRAW SIMULATED VALUES

Conditional Distribution

1000

10.0 30.0

Porosity (%)

Known Porosity Value

- 105 md

DeterministicAnswer

Calibration DataPe

rmea

bilit

y (m

d)

Page 4: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Annealing Techniques to Account for a Secondary Variable

What is Annealing?Annealing, or more properly simulated annealing, is an optimization algorithm

based on ananalogy with the physical process of annealing.• Treat O as an energy function• Cool an initial realization:

– perturb system to simulate thermal agitation– always accept swaps that lower O– sometimes accept swaps that increase O– cool slowly ⇒ find a minimum energy solution

What is Cosimulation?Cosimulation is the act of generating a numerical model of one variable that is

conditional tothe results of another variable, for example,• model permeability conditional to porosity• model porosity conditional to log data• simulate multiple variables sequentially

Page 5: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Simulated Annealing• Simulated annealing is a solution method in the field of combinatorial

optimization based on an analogy with the physical process of annealing. Solving a combinatorial optimization problem amounts to finding the ‘best’ or ‘optimal’ solution among a finite or countable infinite number of alternative solutions.

• Introduced in the early 1980's by Kirkpatrick, Gelatt & Vecchi [1992;1983] and independently Cerny [1985]

• “Simulating the annealing process” dates back to 1953 and the work of Metropolis, Rosenbluth, Rosenbluth, Teller & Teller

• Applications in Spatial Statistics:– Geman and Geman, 1984– Farmer, 1989– Others, 1990-present

• In the application of annealing there is no explicit random function model, rather, the creation of a simulated realization is formulated as an optimization problem to be solved with a stochastic relaxation or “annealing” technique.

Page 6: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Application of Simulated Annealing

Prerequisites to apply simulated annealing as a numerical optimization technique:• description of the system• quantitative objective (energy) function• random generator of moves or rearrangements• an annealing schedule of the temperatures and the lengths of time to let the

system evolve at each temperatureSome example applications:• studying the behavior of materials such as crystals, magnetic alloys, and spin

glasses• travelling salesman-type problems• routing of garbage collection trucks• wiring layout of computers and circuit layout on computer chips• assisting with seismic inversion• geostatistics

Page 7: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Steps in Annealing-Based Simulation

1. Establish an initial guess that honors the well dataAssign a K value to each cell by drawing from the conditional distribution of Kgiven the cell’s φ

2. Calculate the initial objective function Numerical measure of mismatch between the desired variogram and the one of the initial guess

3. Consider a change to a cell’s permeabilityRandomly choose a non-data cell and then consider a new K from the conditional distribution of K given the cell’s φ

4. Evaluate new objective function• better? - accept change• worse? - reject change5. Is objective function close enough to zero?• yes - done• no - go to 3

Page 8: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

An Example∑∑∑∑

====−−−−====

hn

iiZiZ hhO

1

2* )]()([ γγγγγγγγ

Starting Image Half Way Final Distribution

Page 9: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

The Objective FunctionHonor the Porosity/Permeability Cross-plot:

∑∑∑∑∑∑∑∑==== ====

−−−−====φφφφ

φφφφφφφφn

i

n

jnrealizatiojincalibratiojic

k

KfKfO0 0

2]),(),([

2

1

mod ][ nrealizatioi

n

i

elicO γγγγγγγγ −−−−==== ∑∑∑∑

====

Honor the Variogram:Porosity

Perm

eabi

lity

0.0 0.20.01

10,000

Permeability Variogram Model

Var

iogr

am

Distance (m)0.0 40.0

2.0

0.0

Page 10: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

A Simple Example

• Generate corresponding permeability values• Need an objective function for ACS

Porosity Profile

Calibration Data

Var

iogr

am

Distance (m)0.0 40.0

2.0

0.0

Permeability Semivariogram Model

1.0

0 35

Log1

0 K

H

Porosity0.0 40.0

-2.0

3.0

Page 11: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

A Simple Example: ResultsPorosity Profile

Calibration Data

0 35

Log1

0 K

H

Porosity0.0

40.0

-2.0

3.0

Permeability Profile

-2.0

3.0

Down Well Semivariogram: model and simulated

Var

iogr

am

Distance (m)40.0

2.0

1.0

0.00.0

Page 12: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Weighting Different Constraints• The weights νc allow equalizing the contributions of each component in the

global objective function• Each weight νc is made inversely proportional to the average change in

absolute value of its component objective function:

• is numerically approximated by:

• The overall objective function may then be written as,

CcOc

c ,...,1,1 ====∆∆∆∆

====νννν

cO∆∆∆∆

∑∑∑∑====

====−−−−====∆∆∆∆M

mc

mcc CcOO

MO

1

)( ,...,1,||1

∑∑∑∑====

⋅⋅⋅⋅⋅⋅⋅⋅====C

ccc O

OO

1)0(

1 νννν

∑∑∑∑====

⋅⋅⋅⋅====n

ccc OO

1νννν

Obj

ect F

unct

ion

Val

ues

Number of Perturbance50,000

1.0

0.00.0

meanvariancesmoothnessquantiles

Page 13: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Scale and Precision of Seismic Data

• Geological models have greater vertical resolution than that provided by seismic data (areal resolution is comparable)

• Seismic attribute (impedance, integrated energy, ...) does not precisely inform the vertical average of porosity

• May also imprecisely inform the relative proportion of specific rock types• Very valuable information due to the near exhaustive coverage

30-70 ft.

75-150 ft.

Seismic Attributes

Φ

Page 14: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Annealing Approach• Consider the annealing procedure:

1. Establish an initial realization that honors the well data2. Calculate the initial objective function3. Consider a change to a cell's permeability4. Evaluate new objective function (better? - accept change; worse? - reject

change)5. Is objective function close enough to zero? (yes - done; no - go to 3)

• Add component objective function(s) that capture the correlation with between vertical averages of the porosity (rock type proportion) and the seismic attribute

• Where ρ is defined between the vertically averaged porosity and the seismic attribute, S is the seismic average, and P is the vertically averaged porosity

∑∑∑∑∑∑∑∑==== ====

−−−−====φφφφ

φφφφφφφφn

i

n

jnrealizatiojincalibratiojic

k

KfKfO0 0

2]),(),([

2][ nrealizationcalibratiocO ρρρρρρρρ −−−−====

Page 15: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Application from West Texas

• West Texas Permian Basin (data provided to SCRF for technique development)• 74 wells in the area (50 within the area covered by the 3-D seismic survey)

Page 16: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Seismic Attribute Data

• 130 by 130 - 80 foot square areal pixels• Significant areal variation

Seismic Attribute130

0.00.0 130

Nor

th

East

25000

15000

0.0

20000

10000

5000

Page 17: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Seismic Attribute Data

• spike of zero values• relatively low coefficient of variation

0.Seismic Attribute

0.06

0.00

25000

Freq

uenc

y

Page 18: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Calibration Data

• Positive correlation between the vertically averaged porosity and seismic attribute

• Linear correlation coefficient of 0.54 is typical• Calibration covers the range of seismic values (this can be a significant

problem when there are few wells)

Seismic Attribute

Poro

sity

13.0

3.00 25000

ρ = 0.54

Page 19: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Porosity Histogram

• Greater variance than 2-D vertical average (as expected)• Declustering and perhaps smoothing should be considered to get representative

histogram• 3-D models will, within ergodic fluctuations, replicate this histogram.

Consider a resampling procedure to assess uncertainty in porosity histogram

0.0 25.0Porosity

Freq

uenc

y

0.0

0.10Porosity

Page 20: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Porosity Variogram

Distance 20.0

Var

iogr

am

typesphericalspherical

Vertical Variogram

sill0.40.6

range1.115

1.0

0.00.0

Distance 20.0V

ario

gram

typesphericalspherical

Horizontal Variogram

sill0.40.6

range5004000

1.0

0.00.0

Page 21: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

3-D Porosity Modeling• Annealing-based simulation constrained to:

– local well data– 99 evenly spaced quantiles of the porosity histogram– 50 variogram lags– correlation coefficient of 0.54 between the vertically averaged porosity

and the seismic attribute• Can create multiple realizations• Show one for illustration• Cross plot from model

Seismic Energy

Ver

tical

Ave

rage

of

Poro

sity

from

Mod

el

Page 22: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Horizontal Slices

20.0Slice 10 (near bottom)

15.0

10.0

5.00

0.0

Slice 30 (near top)130 130

130 130

Nor

th

Nor

th

EastEast 0.00.00.0 0.0

Page 23: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Vertical Average

25000

20000

15000

10000

5000

0.0

20.0

16.0

10.0

6.0

0.0

Vertical Average130

Nor

th

East0.00.0

130

Seismic Attribute130

Nor

th

East0.00.0

130

Page 24: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Cross Sections

20.0

5.010.015.0

0.0

J-Slice 2540.0

East0.00.0

130

Ver

tical

J-Slice 6040.0

East0.00.0

130

Ver

tical

J-Slice 10040.0

East0.00.0

130

Ver

tical

J-Slice 7540.0

East0.00.0

130

Ver

tical

Page 25: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Permeability Modeling / Annealing

• Simulated annealing:– honors local data– accounts for histogram, variogram, and cross plot– allows the integration of other types of data, e.g., seismic, welltests,

production history, ...– solves problems that are intractable with alternative better– understood methodologies– easy to explain – not multiGaussian– requires some tradecraft in its implementation to achieve acceptable CPU

times and to avoid artifacts– not as elegant as other methodologies

• SASIM program in GSLIB 2.0• Covariate, continuity of extremes, non-linear averaging, ...

Page 26: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Parameter File (1)Simulated Annealing Based Simulation

************************************START OF PARAMETERS:1 1 1 0 0 \ components: hist,varg,ivar,corr,cpdf1 1 1 1 1 \ weight: hist,varg,ivar,corr,cpdf1 \ 0=no transform, 1=log transform1 \ number of realizations50 0.5 1.0 \ grid definition: nx,xmn,xsiz50 0.5 1.0 \ ny,ymn,ysiz1 0.5 1.0 \ nz,zmn,zsiz69069 \ random number seed4 \ debugging levelsasim.dbg \ file for debugging outputsasim.out \ file for simulation output1 \ schedule (0=automatic,1=set below) ...

GSLIB

Geostatistical Software LIBrary

Available at www.GLSIB.com

Page 27: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Parameter File (2)0.0 0.05 10 3 5 0.001 \ schedule: t0,redfac,ka,k,num,Omin10.0 \ maximum number of perturbations0.1 \ reporting interval0 \ conditioning data:(0=no, 1=yes)../data/cluster.dat \ file with data1 2 0 3 \ columns: x,y,z,attribute-1.0e21 1.0e21 \ trimming limits1 \ file with histogram:(0=no, 1=yes)../data/cluster.dat \ file with histogram3 5 \ column for value and weight99 \ number of quantiles for obj. func.1 \ number of indicator variograms2.78 \ indicator thresholds../data/seisdat.dat \ file with gridded secondary data1 \ column number ...

GSLIB

Geostatistical Software LIBrary

Available at www.GLSIB.com

Page 28: Annealing Techniques for Data Integration · Simulated Annealing • Simulated annealing is a solution method in the field of combinatorial optimization based on an analogy with the

Centre for Computational Geostatistics - University of Alberta - Edmonton, Alberta - Canada

Parameter File (3)1 \ vertical average (0=no, 1=yes)0.60 \ correlation coefficient../data/cal.dat \ file with paired data2 1 0 \ columns for primary, secondary, wt-0.5 100.0 \ minimum and maximum5 \ number of primary thresholds5 \ number of secondary thresholds51 \ Variograms: number of lags1 \ standardize sill (0=no,1=yes)1 0.1 \ nst, nugget effect1 0.9 0.0 0.0 0.0 \ it,cc,ang1,ang2,ang3

10.0 10.0 10.0 \ a_hmax, a_hmin, a_vert1 0.1 \ nst, nugget effect1 0.9 0.0 0.0 0.0 \ it,cc,ang1,ang2,ang3

10.0 10.0 10.0 \ a_hmax, a_hmin, a_vert

GSLIB

Geostatistical Software LIBrary

Available at www.GLSIB.com