The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero,...

34
The Benefits and Dangers of using Artificial Intelligence in Petrophysics Steve Cuddy The Benefits and Dangers of using Artificial Intelligence in Petrophysics Steve Cuddy

Transcript of The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero,...

Page 1: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

The Benefits and Dangers of using Artificial Intelligence

in Petrophysics

Steve Cuddy

The Benefits and Dangers of using

Artificial Intelligence in Petrophysics

Steve Cuddy

Page 2: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Outline

• What is AI?

• Case studies showing several successful applications

• Benefits of using AI

• The grave dangers of using AI

Page 3: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

What is Artificial Intelligence?

• A method of data analysis that learns from data, identify patterns and makes

predictions with minimal human intervention

– AI solves problems by writing its own software

• First generation AI: Rule based systems

– Simple petrophysics

– IBM’s Deep Blue, beat chess Grandmaster Garry Kasparov in 1997

• Second generation AI: Learning systems

– Evolution of water saturation equations, NMR pattern analysis, Log prediction

– Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI

• Third generation AI: The evolution of machine code

– using similar rules as used by life’s DNA code

Page 4: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Second Generation AI

• We define the problem - Fitness Function

• We give the program access to the data

• The computer guesses the answer and through successive iterations (generations)

‘evolves’ the best answer

Randomly change computer code

Does it solve the problem better ?

Is it fitter?

Computer

Code

Ignore

NoKeep

Yes

Page 5: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Middle East Carbonate Reservoir

• Case Study 1

• Client required a shaly sand equation to

derive water saturation from the resistivity

and gamma-ray logs

• Client wanted an independent check of the

Special Core Analysis parameters ‘m’ and ‘n’

• Core water saturation available

Oil WaterPorosity

ResistivityShale

Matrix AI Sw

Core Sw Core Porosity

Log Porosity

Water

Saturation

X10

X20

X30

X40

x50

Page 6: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

• Fitness Function – “determine an equation so that the resistivity predicted water saturations

are as close as possible to core derived water saturations”

• AI may ‘re-invent’ the Indonesia or Simandoux equations or create specific equation for the field

• Start by assuming Sw = Function (Porosity, Resistivity, Volume of shale)

Saturation Equation Determination

nmRt

aRwSw

=

Sw = Water saturation

= Porosity

Rt, Rsh, Rw = Resistivities

Vsh = Volume of shale

a, m, n = constants unknown

2/2/)2/1(1 n

w

w

m

sh

Vsh

sh

t

SaRR

V

R

+=

Page 7: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Middle East Carbonate Reservoir

• Core water saturation available

• Fitness Function

- “Find the best shaly sand equation so that the

resistivity derived Sw matches the core Sw”

• Result

• Special Core Analysis from AI:

- Cementation exponent (m) 2.214

- Saturation exponent (n) 1.751

cnm

bVshRw

Sw

Rt+=

1

Oil WaterWater

SaturationPorosity

ResistivityShale

Matrix AI Sw

Core Sw Core Porosity

Log Porosity

X10

X20

X30

X40

x50

Sw = water saturation

= porosity

Rt, Rw = resistivities

Vsh = shale volume

m,n,b,c = constants

Page 8: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

NMR Pattern Recognition

• Case Study 2

• UKCS gas field with an oil problem

• Data:

– Conventional logs

– NMR T1 and T2

– Gas Chromography

– Core derived oil and gas saturations

DT

NPHI

RHOB

WELL: 48/24-8 SCALE: 1/500

GR

GAPI0 200

CALI

IN6 16

BS

IN6 16

0

100

200

300

400

RE

FE

RE

NC

E.H

EIG

HT

FE

ET

RT

OHMM0.2 2000

RXO

OHMM0.2 2000

RHOB

G/C31.95 2.95

NPHI

V/V0.45 -0.15

DT

US/F250 50

TOTALGAS

%0 10

MRILARRAY.T1DT1 Spectrum

MRILARRAY.T2DAShort T2 Spectrum

MRILARRAY.T2DBLong T2 Spectrum

OIL

V/V0 0.1

OILB

V/V0 0.1

GAS

V/V0 0.1

GASAB

V/V0 0.1

PERF1

0 2

CORED

2 0

SHALE VOLUME0 1

POROSITY1 0

GAS WATER1 0

IMMOBILE HC1 0

COAL0 1

CALCITE0 1

GR

RXO

RT

TOTAL

GAS T1

T2

Short

T2

Long Oil Gas

Nuclear Magnetic Resonance

Core

Computer

Processed

Interpretation

Page 9: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Case Study 2 – NMR Pattern Recognition

• A gas field with an oil problem

• Residual oil pockets remain within the main gas reservoir

• This oil is highly viscous

• If produced could block up production tubing

• The client needs to identify oil and gas in order to only perforate gas zones

• Conventional petrophysical techniques like density / neutron porosity separation

can’t differentiate oil and gas due to thin beds and shaly formation

Page 10: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

• The solution lies with nuclear magnetic resonance (NMR)

• This measures how hydrogen atoms respond to a magnetic field

Nuclear Magnetic Resonance

Page 11: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

• Conventional NMR methods uses the Coates or Schlumberger-Doll-Research (SDR)

• These use very little of the wealth of information contained in the T2 distribution !

Oil and Gas identification using NMR

Page 12: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

• AI determines the NMR spectra (waveforms) associated with core derived oil and

gas analysis

• It then predicts the fluid content of all the reservoir beds

• Fitness Function: “Determine the wave-forms that give the best match between the

log and core derived oil and gas saturations in the reservoir”

Oil and Gas identification using the NMR and AI

Page 13: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Results – Real time identification of gas and oil zones

A

0 OIL 0.1 0 GAS 0.1

Interpreted as high

oil saturation, low

gas saturation

GR

GAPI0 200

CALI

IN6 16

BS

IN6 16

0

100

200

300

400

DE

PT

HF

EE

T

RT

OHMM0.2 2000

RXO

OHMM0.2 2000

RHOB

G/C31.95 2.95

NPHI

V/V0.45 -0.15

DT

US/F250 50

TOTALGAS

%0 10

MRILARRAY.T1DT1 Spectrum

MRILARRAY.T2DAShort T2 Spectrum

MRILARRAY.T2DBLong T2 Spectrum

OIL

V/V0 0.1

OILB

V/V0 0.1

GAS

V/V0 0.1

GASAB

V/V0 0.1

PERF1

0 2

CORED

2 0

SHALE VOLUME0 1

POROSITY1 0

GAS WATER1 0

IMMOBILE HC1 0

COAL0 1

CALCITE0 1

B

0 OIL 0.1 0 GAS 0.1

Interpreted as high

gas saturation, low

oil saturation

GR

GAPI0 200

CALI

IN6 16

BS

IN6 16

0

100

200

300

400

DE

PT

HF

EE

T

RT

OHMM0.2 2000

RXO

OHMM0.2 2000

RHOB

G/C31.95 2.95

NPHI

V/V0.45 -0.15

DT

US/F250 50

TOTALGAS

%0 10

MRILARRAY.T1DT1 Spectrum

MRILARRAY.T2DAShort T2 Spectrum

MRILARRAY.T2DBLong T2 Spectrum

OIL

V/V0 0.1

OILB

V/V0 0.1

GAS

V/V0 0.1

GASAB

V/V0 0.1

PERF1

0 2

CORED

2 0

SHALE VOLUME0 1

POROSITY1 0

GAS WATER1 0

IMMOBILE HC1 0

COAL0 1

CALCITE0 1

DT

NPHI

RHOB

WELL: 48/24-8 SCALE: 1/500

GR

GAPI0 200

CALI

IN6 16

BS

IN6 16

0

100

200

300

400

RE

FE

RE

NC

E.H

EIG

HT

FE

ET

RT

OHMM0.2 2000

RXO

OHMM0.2 2000

RHOB

G/C31.95 2.95

NPHI

V/V0.45 -0.15

DT

US/F250 50

TOTALGAS

%0 10

MRILARRAY.T1DT1 Spectrum

MRILARRAY.T2DAShort T2 Spectrum

MRILARRAY.T2DBLong T2 Spectrum

OIL

V/V0 0.1

OILB

V/V0 0.1

GAS

V/V0 0.1

GASAB

V/V0 0.1

PERF1

0 2

CORED

2 0

SHALE VOLUME0 1

POROSITY1 0

GAS WATER1 0

IMMOBILE HC1 0

COAL0 1

CALCITE0 1

GR

RXO

RTTOT GAS T1

T2

Short

T2

Long Oil Gas

NMR

Volume

SPWLA paper

2004_TTT

Page 14: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Case Study 3 Shear Velocity Prediction using AI

Water

Sand

Shale

Caliper

Gamma Ray

Compressional

Shear

Recorded Sonic

• North Sea Field

• Only four wells have recorded shear velocity data

• Shear velocity is required on all 30 wells

Page 15: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Shear Velocity Prediction using AI

Water

Sand

Shale

Caliper

Gamma Ray

Compressional

Shear Recorded

AI Shear

Recorded Sonic Predicted

Fitness Function – “Determine a relationship so

that the predicted shear velocities are as close as

possible to log derived shear velocities”

Shear velocity = Function of:

- Conventional logs

- Drilling data

- Gas chromography data

The AI gives the relationship

The AI predictions are better than the raw logs !

Page 16: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Permeability Prediction

• Case Study 4 - North Sea Field

• AI first predicts facies type

• Permeability then predicted based on

facies type and other all logs

• Is the AI permeability any better than

from regression analysis?

AI

Prediction

Confidence

AI

Predicted

FaciesCore

Permeability

Caliper AI

HC Water

Matrix

Shale Coal

SPWLA paper

1997_S

Page 17: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

AI predicts permeability that upscales correctly

• Log and core permeabilities represent typically 2 feet

• To be used in a reservoir model the predicted permeabilities must upscale correctly

• They must have the same dynamic range as the core data

• Least square methods regresses toward the mean

• AI preserves the dynamic range

Core Permeability Predicted Permeability

0.01 (mD) 1000 0.01 (mD) 1000

Page 18: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Core Permeability Distributions

• Permeability frequency plots (mD - log scale)

- Colour represents data from 15 cored wells

• AI predicted permeability matches core distribution

• Regression permeability techniques are poor at the extremes

and therefore will be incorrect when upscaled

Core distribution AI prediction Linear Regression

Frequency Histogram of CORE.CKHL_NCWell: 15 Wells

Range: All of WellFilter: CKHL_NC>0.001

0.0

0.2

0.4

0.6

0.8

1.0

0.00

0.02

0.04

0.06

0.08

0.10

0.12

0.14

0.0

01

0.0

1

0.1 1

10

10

0

10

00

Wells:

1. 2/5-12. 2/5-12A3. 2/5-13Z4. 2/5-175. 2/5-26. 2/5-37. 2/5-48. 2/5-69. 2/5-8B10. 2/5-911. 2/5-H0112. 2/5-H0213. 2/5-H0414. 2/5-H1815. 2/5-H34

Statistics:

Possible values 1123Missing values 0Minimum value 0.00109Maximum value 2159.16626Range 2159.16517

Mean 59.71616Geometric Mean 2.78804Harmonic Mean 0.02935

Variance 15340.71661Standard Deviation 123.85765Skewness 6.10523Kurtosis 80.35227Median 5.14044Mode 100.00000

1123

1122

0 1

Frequency Histogram of PERM.KLINWell: 15 Wells

Range: All of WellFilter: CKHL_NC>.001

0.0

0.2

0.4

0.6

0.8

1.0

0.00

0.02

0.04

0.06

0.08

0.10

0.12

0.0

01

0.0

1

0.1 1

10

10

0

10

00

Wells:

1. 2/5-12. 2/5-12A3. 2/5-13Z4. 2/5-175. 2/5-26. 2/5-37. 2/5-48. 2/5-69. 2/5-8B10. 2/5-911. 2/5-H0112. 2/5-H0213. 2/5-H0414. 2/5-H1815. 2/5-H34

Statistics:

Possible values 1120Missing values 0Minimum value 0.00016Maximum value 3626.16382Range 3626.16366

Mean 45.29200Geometric Mean 0.96455Harmonic Mean 0.01464

Variance 44699.46287Standard Deviation 211.42247Skewness 9.67622Kurtosis 121.92938Median 1.20226Mode 6.30957

1120

1088

19

13

Frequency Histogram of PERM.KFLWell: 15 Wells

Range: All of WellFilter: CKHL_NC>.001

0.0

0.2

0.4

0.6

0.8

1.0

0.00

0.02

0.04

0.06

0.08

0.10

0.12

0.14

0.0

01

0.0

1

0.1 1

10

10

0

10

00

Wells:

1. 2/5-12. 2/5-12A3. 2/5-13Z4. 2/5-175. 2/5-26. 2/5-37. 2/5-48. 2/5-69. 2/5-8B10. 2/5-911. 2/5-H0112. 2/5-H0213. 2/5-H0414. 2/5-H1815. 2/5-H34

Statistics:

Possible values 1120Missing values 0Minimum value 0.00015Maximum value 926.65411Range 926.65397

Mean 64.44684Geometric Mean 3.08146Harmonic Mean 0.01087

Variance 14082.12021Standard Deviation 118.66811Skewness 2.73982Kurtosis 12.40389Median 7.58578Mode 100.00000

1120

1094

26 0

Page 19: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Case Study 5 – Quality Control and Repair of Electrical Logs

• It is essential to confirm log quality before they used by the petrophysicist

• AI automatically identifies and repairs poor logs

– Washouts

– Gaps

– Poor readings

• Doesn’t require a skilled user

Page 20: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Quality Control and Repair of Electrical Logs

Page 21: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Quality Control and Repair of Electrical Logs

Page 22: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Quality Control and Repair of Electrical Logs

Page 23: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Advantages of AI in Petrophysical Analysis

• AI doesn’t require prior knowledge of the petrophysical response equations

• AI is self-calibrating. Just give it the data

• AI avoids the problem of “rubbish in, rubbish out”,

– by ignoring noise and outliers

• There is very little user intervention

– There are no parameters to pick or cross-plots to make

• AI programs work with an unlimited number of electrical logs, core and gas

chromatography data; and don’t ‘fall-over’ if some of those inputs are missing

• It is not a Black Box as it provides insight into how it makes predictions

Page 24: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Third Generation AI

• AI programs currently being developed include ones where their machine

code evolves using similar rules used by life’s DNA code

Page 25: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Evolution in Nature

• Charles Darwin - The origin of species by means of natural selection

• DNA language code - 4 characters - A, T, C, G

DNA

Code

Mutation and mating

Survival of the fittest

Page 26: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Evolution in Nature

• Feedback loop – takes millions of years

DNA

Code

Mutation and mating

Survival of the fittest

Extinction

The fittest

Less fit

Page 27: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Third Generation AI

• Just define the problem to be solved – Fitness Function

Computer Code

Mutation and mating

Survival of the fittest

A language of 2

characters

Page 28: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Third Generation AI

• Let the machine code mutate and mate using the rules of Life

Computer Code

Change code

Is it better at solving the problem?

Delete

No

Keep

Yes

Page 29: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

• History matching

• Fitness Function – “get the best match as fast as possible”

Example of third generation AI

Page 30: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Example of Runaway AI

• By trial and error the computer will evolve a fast history match

• A human programmer / hacker may co-opt the resources of network computers

to achieve the faster speed

• There is no reason why Artificial Intelligence couldn’t also doing this

• Evolution takes millions of years

• The computer makes millions of iterations per second

Page 31: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Example of Runaway AI

• The AI may ‘accidently’ start improving exponentially

• A supercomputer isn’t required to do this

• An elaborate computer program isn’t required

– Only one that can update its own machine code

– Only one with an ill-judged Fitness Function

• This is known as the singularity where artificial intelligence becomes

uncontrollable and irreversible

• The chances of this happening may be as remote as life spontaneously occurring

• AI has only to do this once

• It is not known how to stop computers with run away evolution

Page 32: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

The Dangers of AI

• Professor Stephen Hawking (University of Cambridge Professor)

– “Efforts to create thinking machines pose a threat to our very existence"

• Bill Gates (Microsoft co-founder)

– “Humans should be worried about the threat posed by artificial Intelligence”

• Nick Bostrom (University of Oxford Professor, Future of Humanity Institute)

– “We’re like children playing with a bomb”

• Elon Musk (SpaceX founder)

– “AI needs safety measures before something terrible happens”

Page 33: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Solution to Runaway AI

• These AI programs pose considerable dangers far beyond the oil industry

• A ‘risk assessment’ is essential on all AI programs so that all hazards and

risk factors, that could cause harm, are identified and mitigated

• The possibility of a runway AI, in the near term, is remote

• But the risks are greater than climate change and nuclear proliferation

• A risk assessment need only take a few minutes

• These programs are potentially dangerous and may be the last thing

humans invent

Page 34: The Benefits and Dangers of using Artificial …...2019/12/10  · –Google’s AlphaZero, self-taught computer program, easily beats all first-generation AI • Third generation

Conclusions

• AI can make petrophysical analysis easy

• AI can be very dangerous

– All AI program development should include a risk assessment

• Questions?