Generating Multiple History-Matched Reservoir-Model Realizations Using Wavelets
Generating Multiple History-Matched Reservoir-Model Realizations Using Wavelets
History-Matched Reservoir-Model
Realizations Using Wavelets
Isha Sahni and Roland N. Horne, SPE, Stanford U.
W= 兺 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (2)
i=1
i i
再兺 冎 兺
Fig. 1—(a) Reference permeability field; (b) history-matched
n n
model using streamline algorithm shows streamline artifacts
(from Wang 2001). E兵w其 = E iVi = iE兵Vi其. . . . . . . . . . . . . . . . . . . . . . (3)
i=1 i=1
iVi =
n
i=1 j=1
n
iVi =
n
i=1 j=1
n
兺兺 Cov兵V ,V 其 i j i j
Problem Formulation/Theory n n n n
Permeability exhibits numerical behavior akin to that of a Jeffrey’s Further, for two different sets of points denoted by V1 and V 2,
parameter (Tarantola 2003) because it can take values between we can calculate the covariance between their linear combina-
zero and infinity. The proper way of evaluating the contrasts and tions using
再兺 冎
averages of such parameters is to work with their logarithm. Tak-
n m n m
ing the logarithm of this set of Jeffrey’s parameter yields Cartesian
parameters that may range anywhere from –⬁ to ⬁. This formu- Cov
i=1
iV1i , 兺 V
j=1
j
2
j = 兺兺 Cov兵V ,V 其. . . . . . . . (10)
i=1 j=1
i j
1
i
2
j
lation, besides being appropriate for computations involving the
permeability parameter, also lends itself very well to the Haar These equations suggest that there exists a way of calculating
wavelet transformation. This is because if we use permeability the statistics of a linear combination of random variables given the
values directly for wavelet analysis, we find that it is possible that statistics of the random variables themselves. That is, we see that
some combinations of evaluated wavelet coefficients, upon inver- the mean of a linear combination of random variables is a linear
sion, may yield negative values. It is hard to condition the sets of combination of the means of the random variables; the variance
wavelet coefficients so that they would yield only positive values and covariance of the linear combination depend on the corre-
upon inversion. Using logarithms of permeabilities for wavelet sponding variance and covariance (or semivariogram) of the ran-
analysis ensures that the wavelet inversion yields values that are all dom variable. Also note that each set of wavelet coefficients is a
valid (being within the range of –⬁ to ⬁). linear combination of the reservoir parameters (log permeabilities)
Haar wavelets are mathematical functions that allow us to rep- that are random variables. The weights (i ) associated with each
resent the parameter distributions at different resolutions in terms linear combination are given by the wavelet function used (the
of linear combinations of the parameter itself (for a more detailed Haar wavelet function, in our case). Thus, if we are given the
description of wavelet functions, refer to Lu and Horne 2000; Lu mean, variance, and variogram of the reservoir parameter (log
2001; Sahni and Horne 2005; Sahni 2003; and Appendix A). Given permeability) we can, under the assumption of Gaussianity, com-
the fact that the Haar wavelet coefficients are linear combinations pute the mean, variance, and variogram for each of the sets of
of the log permeabilities, we can compute the statistical parameters wavelet coefficients separately.
describing these coefficient sets with the formulation shown in the With the problem formulation and these mathematical devel-
following section. The log-permeability distribution is represented opments, we can proceed to describe the data-integration/history-
by a random function V(x) such that each location xi of the distri- matching approach proposed in this paper.
bution is composed of a random variable V(xi ).
Proposed Approach
Gaussian Variables and the Haar Wavelet Transform. Suppose As can be seen from the formulation of the Haar wavelet coeffi-
that we have a random function, V(x) composed of a (stationary) cients (Sahni and Horne 2005; Sahni 2003) (and the formulas
spatial distribution of random variables. Assume that the random listed in Appendix A), different sets of wavelet coefficients are
inversions is not very high. However, the wavelet coefficients are Fig. 5—Binary wavelet mask. Probability of perturbation is 0 for
perturbed randomly, and at every iteration, the objective function the blue wavelet coefficients and 1 for the red wavelet coefficients.
(i.e., the variogram) needs to be computed to check if that particu-
lar perturbation was successful. This procedure was found to be Using different random seeds for the sequential Gaussian simu-
wasteful because more than half the perturbations turned out to be lation of wavelet coefficients will yield different permeability
unsuccessful. As such, a better way of constraining to geostatistical fields, all of which will be constrained to all sources of data for the
parameters was sought. Given the fact that the Haar wavelet co- reservoir. Interestingly, because the simulations are independent
efficients of a parameter distribution are mere linear combinations from one set of wavelet coefficients to another, a combination of
of the parameters themselves, a more efficient, noniterative tech- wavelet coefficients from across the cases with different random
nique for geostatistical data integration is proposed in this paper. seeds will yield yet more permeability-field models.
Using the fact that the sets of wavelet coefficients are linear Note also that sgsim visits each node using a random path based
combinations of Gaussian parameters (log permeability), we can on a random seed. This eliminates the chance of traversal-based
compute the statistical properties of each set (mean, variance, and artifacts appearing in the results as was a possibility in the previous
variogram). The analysis of the sensitivity coefficients yields the algorithm (Sahni and Horne 2005; Sahni 2003).
set of wavelet coefficients that need to be “fixed” in order to “fix”
the production history of the model. For each set of wavelet co- Probabilistic History Matching
efficients at each scale, we can then perform sequential Gaussian In the procedures of data integration described in the previous
simulation (sgsim) using the fixed wavelet coefficients as hard data section, the production data were the first to be integrated and
and constraining to the computed statistics for that particular scale. fixed deterministically before moving on to the integration of other
Thus, we perform sgsim in wavelet space to re-evaluate the free sources of data (e.g., geostatistical data). In other words, based on
coefficients with statistics that guarantee that wavelet inversion what is thought to be good history match, a threshold of sensitivi-
will yield a distribution that is constrained by the reference geo- ties was determined, and the corresponding wavelet coefficients
statistical data. The fact that we fix the wavelet coefficients cor- were fixed. This step ensures that for all the subsequent models
responding to production data as hard data in the simulations ensures generated by integrating geology, the history match is always al-
that the history of the field is also preserved upon wavelet inversion. most exactly as good as that fixed at the thresholding stage. Im-
The result of performing sgsim in wavelet space yields, upon wavelet plicitly, we are making an assumption of perfect history informa-
inversion, the log of a permeability distribution that is constrained tion and then integrating as much geology into the model as is
to both geological and production data. Fig. 4 describes the meth- consistent with that assumption.
odology in the form of a flow chart; the emphasized box shows the In realistic situations, we are never perfectly sure of the pro-
difference between the current approach and the algorithm used duction-history data. The data are susceptible to many types of
previously (Sahni and Horne 2005; Sahni 2003). errors from different sources, from equipment malfunction and
measurement uncertainty to random noise. That being the case,
deterministically fixing a particular set of wavelet coefficients cor-
responding to the fixed production data would be incorrect because
it also means that we are limiting the integrated geological infor-
mation to be consistent with this fixed set. This is equivalent to
giving too much weight to the available production data and con-
straining the model very strongly to match history.
For a more realistic picture of the uncertainty, it is important to
consider some degree of freedom in matching the production data
as well. This uncertainty in production data can be integrated
easily into the approach by modifying the sensitivity mask that sepa-
rates the sets of wavelet coefficients constraining production data
and geology. Fixing the wavelet mask constraining the history-
matching wavelet coefficients is equivalent to assigning all the
wavelet coefficients a probability of either 0 or 1 to be perturbed
to make the model geologically consistent (Fig. 5). This is the
approach we used previously (Sahni and Horne 2005; Sahni 2003).
Uncertainty in production data can be included in the model by
replacing this black and white probability mask with a grayscale
Fig. 6—Grayscale wavelet mask. Probability of keeping a wave- mask so that each wavelet coefficient has a probability between 0
let coefficient fixed for history match may lie between 0 and 1. and 1 to be perturbed in order to match geology (Fig. 6). As can
be seen from Fig. 6, most of the coefficients that earlier had a shows the random traversal of the simulated-annealing algorithm
probability of zero of being modified (Fig. 5) still have a very low and the number of times each node is visited. The actual reservoir-
probability, and most of the coefficients that had a probability of model results are depicted in Fig. 11 (log permeabilities) and
one of being modified still have a very high probability. In the Fig. 12. Fig. 13 shows the decrease of the objective function cor-
grayscale sensitivity mask, however, there exist wavelet coeffi- responding to the variogram match (Fig. 14). We see that the
cients that have intermediate probabilities of being perturbed to simulated production is still close to the original production-
match geology. Thus, using this methodology there is a chance of history data, and the geologic constraints are met. Being less con-
constraining different wavelet coefficients to history as well as strained than the previous models, these results are expected to
geology for each resulting reservoir model generated. show more variability in their prediction of future production. This
The grayscale approach to constraining wavelet coefficients is more realistic than assuming that the history data are perfect,
was applied to a log-permeability distribution, as shown in Fig. 7 which would give an unrealistically low value of uncertainty.
(Example 1 from Sahni and Horne 2005; Sahni 2003). Fig. 8
shows the a priori histogram for the permeabilities in the reservoir Results
model. Starting from the reference reservoir permeability model The noniterative algorithm proposed in this study was applied in
shown in Fig. 7, we calculate sensitivity coefficients in wavelet Example 1 from Sahni and Horne (2005) and Sahni (2003) for the
space and evaluate and fix those coefficients that the production purpose of comparison with the previous (iterative) algorithm (see
history is most dependent on (that is, probability of perturbation is Fig. 7 for the corresponding reference log-permeability distribu-
zero for these coefficients). Keeping the values of these coeffi- tion and Fig. 8 for the corresponding histogram). This example
cients fixed and setting the rest of the coefficients values to zero, consists of a reference 2D Gaussian permeability distribution that
we perform an inverse wavelet transform to get a permeability matches the production data of four wells. Starting with a history-
model, as depicted in Fig. 9. This permeability distribution, de- matched model that is not constrained to geological parameters
rived from the history-matched model, shows the parameters to (Fig. 9) and using an iterative algorithm (simulated annealing), it
which the production history is most sensitive—that is, permeabil- was shown in Sahni and Horne (2005) and Sahni (2003) that a
ity details are retained in the regions close to wells, whereas further number of history-matched, variogram-constrained algorithms can
away from the wells, we see that large block averages of the be generated.
parameter are constrained by production history. The nonzero We applied the new noniterative algorithm to the same example
wavelet coefficients corresponding to this reservoir model are the for comparison. Similar to the previous method, at the first stage,
input to our geostatistics integration algorithm, which modifies history-constraining wavelet coefficients were determined using a
these zero-valued coefficients to get a better representation of ge- sensitivity coefficient mask. The mean, variance, and variogram of
ology in our final reservoir models. The results from using a gray- the wavelet-coefficient sets were then computed using the property
scale sensitivity map are shown in Figs. 10 through 14. Fig. 10 that they are linear combinations of permeabilities at appropriate
the regions around the wells, the new result is similar to the his- Conclusions
tory-matched model, whereas far away from the wells, these real-
izations are quite different. This is a more accurate model of our A methodology for generating multiple history-matched, geologi-
uncertainty about the reservoir in the regions in which we have cally constrained reservoir models was developed. This method-
limited information. ology takes advantage of the fact that wavelet coefficients are
By changing the random seed used in sgsim, many different linear combinations of the actual reservoir parameter (log perme-
reservoir models can be obtained by inversion. All of these match ability). As a result, the statistics (mean, variance, and variogram)
both production data and geological constraints. Only a few sec- of the wavelet coefficients can be computed from the correspond-
onds of CPU time are required to generate each new model. ing statistics of the reference. Given the statistics for each wavelet
set and using history constraints as hard data, we can use sgsim in Fig. 20—Histogram of permeabilities in Result 1. Compare with
wavelet space to generate equiprobable reservoir models. This is a the distribution in Fig. 8.
more intuitive approach for reproducing the statistics of a distri-
bution than the iterative procedure of simulated annealing that we
used in an earlier paper. h ⳱ distance vector
Applying the proposed new approach, we generated a number h(n) ⳱ Haar wavelet scaling weights
of reservoir models using only approximately 5% of the CPU time j ⳱ scale for wavelet analysis
required for the simulated-annealing approach. This is because the k ⳱ displacement in time domain (integer value)
realizations are generated by drawing from the theoretically com- m ⳱ mean of random variable
puted statistics directly. The simulated-annealing approach was n ⳱ size of grid for wavelet decomposition
based on random perturbation, followed by wavelet inversion and p ⳱ spatial coordinates in permeability grid
checking the objective function to match the variogram. Using
u ⳱ location vector for geostatistical grid
grayscale sensitivity fields aids in better capturing the uncertainties
of production data and provides a more complete set of possible V ⳱ random variable
alternative reservoir models given the data. V(x) ⳱ random function
Var{V} ⳱ variance of random variable V
Nomenclature wi(t) ⳱ 1D Haar wavelet function
aj(p) ⳱ 2D scaling coefficient at scale j and spatial W ⳱ linear combination of random variables
location p x ⳱ location in space
C(h) ⳱ covariance for vectors separated by distance h ␥(h) ⳱ variogram as a function of distance
C(0) ⳱ variance 2 ⳱ variance
Cov{V1,V2} ⳱ covariance between random variables V1 and V2 (t) ⳱ scaling function for 1D Haar wavelets
dj(p) ⳱ two dimensional wavelet coefficient at scale j (t) ⳱ 1D Haar wavelet basis function
and spatial location p i ⳱ weight corresponding to ith random variable Vi
E{V} ⳱ expected value of random variable V
f (t) ⳱ continuous function of time Subscripts
fo(t) ⳱ piecewise continuous sampling of function f (t)
i,j ⳱ indices for matrix or vector
g(n) ⳱ Haar wavelet weights
Fig. 21—Difference between wavelet coefficients of reference perme- Fig. 22—Difference between history-matched permeability dis-
ability distribution and Result 1, also showing the wavelet mask. tribution and Result 1.
Chen, W.H., Gavalas, G.R., Seinfeld, J.H., and Wasserman, M.L. 1974.
A New Algorithm for Automatic History Matching. SPEJ 14 (6): 593– where the Haar scaling function (t) is given by
608; Trans., AIME, 257. SPE-4545-PA.
Chu, L., Reynolds, A.C., and Oliver, D.S. 1995. Computation of Sensitivity
Coefficients for Conditioning the Permeability Field to Well-Test Pres-
sure Data. In Situ 19 (2): 179–223.
共t兲 = 再 1
0
if
otherwise
0ⱕt⬍1
. . . . . . . . . . . . . . . . . . . . . . . . . . . (A-2)
Datta-Gupta, A., Vasco, D.W., and Long, J.C.S. 1997. On the Sensitivity The Haar wavelet basis function (t) is written in terms of the
and Spatial Resolution of Transient Pressure and Tracer Data For Het- scaling function as
erogeneity Characterization. SPEFE 12 (2): 137–144. SPE-30589-PA. 共t兲 = 共2t兲 − 共2t − 1兲. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (A-3)
Daubechies, I. 1988. Orthonormal Bases of Compactly Supported Wave-
lets. Comm. On Pure and Appl. Math. 41 (7): 909–996. For j ⳱ 1, f1(t) is the piecewise continuous approximation of f (t)
Daubechies, I. 1992. Ten Lectures on Wavelets. CBMS-NSF Regional defined by blocks of thickness 1⁄2. We would like to express
Conference Series in Applied Mathematics, Soc. for Industrial and
f1共t兲 = f0共t兲 + w0共t兲, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (A-4)
Applied Mathematics (SIAM) 61: 115–137.
de Marsily, G., Lavedan, G., Boucher, M., and Fasanino, G. 1984. Inter- where
兺a 共2 t − k兲 . . . a
pretation of Interference Tests in a Well Field Using Geostatistical
Techniques to Fit the Permeability Distribution in a Reservoir Model. wj共t兲 = k
j
k ∈ℜ. . . . . . . . . . . . . . . . . . . . . (A-5)
k⑀Z
In Geostatistics for Natural Resources Characterization, Part 2: 831–849.
Deutsch, C.V. and Journel, A.G. 1998. GSLIB: Geostatistical Software Li- In this way, the original sampled function f (t) can be successively
brary and Users Guide, second edition. New York City: Oxford U. Press. decomposed in terms of the unique sum
Gill, P.E., Murray W., and Wright, M.H. 1981. Practical Optimization.
New York City: Academic Press. fj共t兲 = wj−1共t兲 + wj−2共t兲 + . . . + w0共t兲 + f0共t兲. . . . . . . . . . . . . . . (A-6)
Isaaks, E. and Srivastava, M. 1989. An Introduction to Applied Geostatis- The process of expressing a function in this form is called wavelet
tics. New York City: Oxford U. Press. decomposition.
Jacquard, P. and Jain, C. 1965. Permeability Distribution From Field Pres- For a 2D matrix a, the Haar wavelet decomposition is carried
sure Data. SPEJ 5 (4): 281–294; Trans., AIME, 234. SPE-1307-PA. out similarly, as follows. The scaling coefficient at location p is
Jaffard, S. and Meyer, Y. 2001. Wavelets: Tools for Science and Technol- defined denoted by aj+1(p), and the wavelet coefficient is given by
ogy. Philadelphia, Pennsylvania: Soc. for Industrial and Applied Math- dj+1(p), where j denotes scale.
ematics (SIAM).
⬁
冦
1
ervoir Description. Paper SPE 38653 presented at the SPE Annual if n = 0,1
Technical Conference and Exhibition, San Antonio, Texas, 5–8 October. h共n兲 = 公2 . . . . . . . . . . . . . . . . . . . . . . . . . . (A-8)
Lu, P. 2001. Reservoir Parameter Estimation Using Wavelet Analysis. PhD 0 otherwise
dissertation, Stanford U., Stanford, California.
Lu, P. and Horne, R.N. 2000. A Multiresolution Approach to Reservoir Substituting these coefficients, we obtain
Parameter Estimation Using Wavelet Analysis. Paper SPE 62985 pre-
1
sented at the SPE Annual Technical Conference and Exhibition, Dallas, aj+1共p兲 = 关aj共2 p兲 + aj共2 p + 1兲兴, . . . . . . . . . . . . . . . . . . (A-9)
1–4 October. 公2
Mallat, S. 1987. An Efficient Image Representation for Multiscale Analy-
sis. Paper presented at the Machine Vision Conference, Lake Tahoe, or in general,
冉公 冊 冋兺 册
February. 2 j−1
1 j
Sahni, I. 2003. Multiresolution Wavelet Analysis for Improved Reservoir aj共p兲 = a0共2 j p + i兲 . . . . . . . . . . . . . . . . . . . (A-10)
Description. MS report, Stanford U., Stanford, California. 2 i=0
Sahni, I. and Horne, R.N. 2005. Multiresolution Wavelet Analysis for
Improved Reservoir Description. SPEREE 8 (1): 53–69. SPE-87820- The corresponding wavelet coefficients are given by the expression
PA. ⬁
Tarantola, A. 2003. Inverse Problem Theory and Methods for Model Pa-
rameter Estimation. Philadelphia, Pennsylvania: Soc. for Industrial and
dj+1共p兲 = 兺g共n − 2p兲a 共n兲 = g共0兲a 共2p兲 + g共1兲a 共2p + 1兲,
n=−⬁
j j j
冦
1
− if n=0
公2
g共n兲 = 共−1兲1−n h共1 − n兲 = 1 . . . . . . . (A-12)
if n=1
公2
0 otherwise
Substituting for g(n) in Eq. A-11, we obtain:
1
dj+1共p兲 = 关−aj共2p兲 + aj共2p + 1兲兴. . . . . . . . . . . . . . . . . . (A-13)
公2
Wavelet reconstruction is the inverse process of wavelet decom-
position. The Haar wavelet reconstruction equations are derived by
solving the decomposition equations A-9 and A-13 for aj and aj+1:
1
aj共2p兲 = h共0兲aj+1共p兲 + g共0兲dj+1共p兲 = 关aj+1共p兲 − dj+1共p兲兴 .
公2
. . . . . . . . . . . . . . . . . . . . . . . (A-14)
1
aj+1共2p + 1兲 = h共1兲aj+1共p兲 + g共1兲dj+1共p兲 = 关aj+1共p兲 + dj+1共p兲兴 .
公2
. . . . . . . . . . . . . . . . . . . . . . . (A-15)
Because the wavelet transform is linear, any wavelet coefficient
aj (p) is a linear combination of the original signal a0.
Isha Sahni is a PhD student in the Dept. of Petroleum Engineer-
ing at Stanford U. She completed her MS degree in petroleum
engineering, also from Stanford U., in 2003. Sahni currently
holds the Stanford Graduate Fellowship (SGF). She won the SPE
International Student Paper Contest at the 2003 SPE Annual
Technical Conference and Exhibition and the 2001 Miller
Award for academic performance in the Petroleum Engineer-
ing Dept. at Stanford. She holds a B.Tech. degree in chemical
engineering (computer science minor) from the Indian Inst. of
Technology, New Delhi, India. Roland N. Horne is Professor and
Chairman of Petroleum Engineering at Stanford U. He holds BE,
PhD, and DSc degrees from the U. of Auckland, New Zealand,
all in engineering science. Horne has been an SPE Distin-
guished Lecturer and has been awarded the SPE Distinguished
Achievement Award for Petroleum Engineering Faculty, the
Lester C. Uren Award, and the John Franklin Carll Award. Horne
is a member of the U.S. Natl. Academy of Engineering and is
also an SPE Distinguished Member.