Proxy and Machine-Learning Models

Chapter 13, Frontier Topics in Reservoir Simulation

Learning objectives

  • Fit a quadratic response surface and a kriged proxy to the same full runs of a simulator and say what each needs
  • Judge a proxy on its training runs, each run left out, held-out runs and runs outside the box, and say why the tests can disagree
  • Explain why a quadratic in four parameters is refused below 15 runs and why the book's first design was refused
  • Run a Monte Carlo through a proxy with the draws kept inside the training box and set it against the full runs

Replacing the Simulator

A study that needs thousands of evaluations, a Monte Carlo, an optimisation or a history match, cannot afford them when each one is a full simulation. A proxy is a cheap function fitted to a few full runs, and it is worth exactly what the runs it was not fitted to say. This section builds two proxies of one number and tests them. The number is the 30-year oil of the base case of the history-match case (Section 12.5: the book's synthetic ten years, since the Ogbon field has no production) on the flow grid's 92.8 million stb of oil in place, in million stb of stock-tank oil, as a function of four parameters: the main sand's and the upper beds' permeability multipliers, the residual oil saturation and the oil exponent. They range over a box, the prior's mean plus or minus two standard deviations (Section 13.6): multipliers 0.44 to 2.25, residual oil 10 % to 30 %, oil exponent 1 to 3. The 160 field runs of this chapter's table took 737 seconds on the build machine, 4.6 seconds a run, so 4000 draws through the simulator would take about 5 hours.

Against the 6 held-out runs the quadratic proxy is off by 0.21 million stb and thekriged proxy by 0.09 million stb (root-mean-square, the proxy less the full run),where the prior ensemble's 24 full runs spread 5.2 million stb between P90 and P10.Fitted to the first 25 runs, the error on the 6 held-out runs is 0.21 million stbfor the quadratic and 0.09 million stb for the kriged proxy.(a) The proxy against the full run, 6 runs, held out1323.5341323.534Full run, 30-year oil (million stb)proxy(b) The error on each set of runs0.000.300.60Root-mean-square error (million stb)trainingleave one outheld outensembleoutside(c) The Monte Carlo through each proxy16243230-year oil (million stb)24 full runsquadratickriged(d) Fewer runs, a worse proxy101520250.000.400.80Runs fittedquadratic refusedKey: the quadratic proxy (teal), the kriged proxy (orange), the 24 full runs of the prior ensemble(dark, in c), the line where a proxy equals the full run (dashed, in a) and the runs fitted (dotted, ind). In (c) each bar is P90 to P10, the dot the P50 and the thin line the least and most.Quadratic, RMS error 0.21 million stb (held out, 6 runs). Kriged 0.09 million stb. Largest single error0.41 million stb (the quadratic proxy at one run; the other's largest is 0.13). Monte Carlo spread,quadratic 5.8 million stb (quadratic P90 to P10, 22.3 to 28.1; kriged 22.0 to 28.4; the 24 full runs22.9 to 28.1). Held-out error at the runs fitted 0.21 million stb (quadratic on the held-out runs,fitted to 25; kriged 0.09).

Two Proxies, One Design

Both proxies are fitted to the same 25 full runs, the face-centred composite form of design: the centre of the box, its 16 corners and its 8 face centres (the book's own; no design paper was read). A quadratic response surface has 15 coefficients, a constant, 4 linear, 4 square and 6 cross terms, so it needs at least 15 runs, and the kernel refuses a design whose terms are not independent: the rank of the term matrix must be 15. In pp parameters the count is (p+1)(p+2)/2(p + 1)(p + 2)/2, which is 15 for 4, 66 for 10 and 5151 for 100. The book's first design, the 24 mid-edge points of a Box-Behnken form and the centre, was refused: it determines the quadratic, but leaving out the centre run leaves rank 14 of 15, so the leave-one-out test below cannot be run. A kriged proxy (ordinary kriging, Section 7.1) is a weighted sum of the runs with a Gaussian variogram of range 6 coded units and no nugget, chosen from 70 variograms by the smallest leave-one-out error.

Judge Them on Runs They Have Not Seen

On its own 25 runs the quadratic is off by 0.16 million stb (root-mean-square, the proxy less the full run) and the kriged proxy by 0.00: kriging with no nugget reproduces every run it is given, so its training error says nothing. Leaving each run out in turn and predicting it from the other 24 gives 0.38 million stb for the quadratic and 0.54 for the kriged proxy, but 6 held-out Latin-hypercube runs inside the box give 0.21 and 0.09, the order reversed. The 20 runs of the prior ensemble that lie inside the box agree with the held-out ones, 0.20 and 0.12. The tests differ because of where the runs lie: 16 of the 25 design runs are corners, which lie outside the hull of the others when one is left out, and there the kriged proxy extrapolates, off by 0.65 million stb against the quadratic's 0.31; at the 8 face centres it interpolates, 0.23 against 0.50. Its variogram was chosen to make the leave-one-out error small, so that number flatters it, and the held-out runs were not used for any choice. Two runs outside the box are missed by 0.22 and 0.40 million stb, the largest miss 0.43, no worse than leave one out, though two runs cannot say how far that holds.

What the Proxy Buys

A Monte Carlo of 4000 draws from the prior, each kept inside the box (816 were redrawn), gives through the proxies a P50 of 25.48 million stb (quadratic) and 25.50 (kriged), against the 24 full runs' 25.49. That is a forecast before the history: the 24 full runs are Section 13.6's prior ensemble and the draws come from the same prior, so neither has seen the ten years of data. The history-matched forecast of the same oil (the flow grid's stock-tank oil produced by year 30 in the base case) is lower: a P50 of 23.50 million stb after Section 13.6's four updates, and 23.1 for Section 12.7's base case on the eight good matches of Section 12.6. This section tests the proxies over the prior because that is the box their design runs cover. The P90 to P10 are 22.3 to 28.1 and 22.0 to 28.4, against 22.9 to 28.1 for the full runs. The proxies' error is not what separates them: applied to the 20 ensemble runs inside the box, the proxies' P90 is 23.0 and 22.8 million stb against those runs' own 22.9. The difference is the sample, 24 runs (4 of them outside the box) against 4000 draws kept inside it, and a large sample is what the proxy buys. Fewer runs cost accuracy: fitted to 14 runs the quadratic is refused (rank 14 of 15) and the kriged proxy is off by 0.62 million stb on the held-out runs; at 15 runs the quadratic is determined and off by 0.32; with all 25 it is off by 0.21 and the kriged proxy by 0.09.

Machine Learning Is the Same Idea

A neural network or a random forest is a proxy with more parameters than the quadratic: it is fitted to full runs, judged on runs it was not fitted to, and trusted inside the region its runs cover. The quadratic's 15 coefficients already needed 15 runs, and a model with more parameters needs more runs or a form that constrains it, which is why the checks above matter more as a proxy grows. No network is fitted in this section.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.