28
The Model-based Approach to Computer-aided Medical Decision Support Lecture 3: Building Bayesian Networks Peter Lucas [email protected] Institute for Computing and Information Sciences Radboud University Nijmegen The Netherlands ACAI’09 – p. 1/28

The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

The Model-based Approach toComputer-aided Medical Decision

SupportLecture 3: Building Bayesian Networks

Peter [email protected]

Institute for Computing and Information Sciences

Radboud University Nijmegen

The Netherlands

ACAI’09 – p. 1/28

Page 2: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Suitability Bayesian NetworksModelling objective, e.g.,

uncertain does or does not play a signicantrole;white or black box approach: is theresufficient knowledge about the domain?

Availability of domain experts and data

Sufficient time available?

Complexity of the problem: is it decomposable?

ACAI’09 – p. 2/28

Page 3: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Problem SolvingBayesian networks: adeclarativeknowledge-representation formalism, i.e.:

mathematical basis

problem to be solved determined by (1) enteredevidencee (including potential decisions); (2)given hypothesish: P (h | e)

Examples:

Description of population (i.e., distributions)

Classification and diagnosis hypothesish withmaximumP (h | e)

Prediction (time dimension)

Decision making based onwhat-if scenario’sACAI’09 – p. 3/28

Page 4: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Prior Information

Marginal probabilitiesP (V ) for every vertexV ,e.g.,P (WILSON’S DISEASE= yes)

Gives description of the population on which theassessed probabilities are based

ACAI’09 – p. 4/28

Page 5: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Diagnostic Problem Solving

Marginal probabilitiesP ∗(V ) = P (V | E) forevery vertexV , e.g.,P (WILSON’S DISEASE= yes | E) for enteredevidenceE (red vertices)

Gives description of thesubpopulation of theoriginal population or individual cases

ACAI’09 – p. 5/28

Page 6: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Prediction Associated Findings

Marginal probabilitiesP ∗(V ) = P (V | E), e.g.,P (Kayer-Fleischer Rings= yes | E) with Eevidence

Gives description of the findings associated witha given class or category, such as Wilson’s disease

ACAI’09 – p. 6/28

Page 7: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Design of Bayesian NetworkPrinciple: start modellingqualitatively

causal

graph

qualitative

probabilistic network

quantitative

network

Bayesian

network

refinement

variables/

relationships

domains of

variables/

qualitative

probabilistic

information

numerical

assessment

experts/dataset

evaluation

ACAI’09 – p. 7/28

Page 8: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

TerminologyNO

YES

FLU

noyes

FEVER

noyes

SARS

noyes

VisitToChina

noyes

DYSPNOEA

<=37.5>37.5

TEMP

ParentSARSof child FEVER

SARS is ancestorof TEMP

DYSPNOEA is descendantof V ISITTOCHINA

Query node, e.g.,FEVER

Evidence, e.g., VISITTOCHINA andTEMP

Markov blanket, e.g.,for SARS:{V ISITTOCHINA ,DYSPNOEA,FEVER,FLU}

ACAI’09 – p. 8/28

Page 9: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal graph: Topologycause1

causen

... effect

Identify factors that are relevant

Determine how those factors are causally relatedto each other

The arccause→ effect does mean thatcause is afactor involved in causingeffect

ACAI’09 – p. 9/28

Page 10: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal graph: Common Effectscause1

causen

... effect

An effect that has two or more ingoing arcs fromother vertices is acommon effectof those causes

Kinds of causal interactionSynergy:POLUTION −→ CANCER←− SMOKING

Prevention:VACCINE −→ DEATH←− SMALLPOX

XOR: ALKALI −→ DEATH←− ACID

ACAI’09 – p. 10/28

Page 11: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal graph: Common Causes

cause

effect1

effectn

...

A cause that has two or more outgoing arcs toother vertices is acommon cause (factor)of thoseeffects

The effects of a common cause are usuallyobservables (e.g. manifestations of failure of adevice or symptoms in a disease)

ACAI’09 – p. 11/28

Page 12: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal Graph: Example

FLU

PNEUMONIA

FEVER

MYALGIA

TEMP

FEVER andPNEUMONIA are two alternativecauses of fever (but may enhance each other)

FLU has two common effects:MYALGIA andFEVER

High bodyTEMPerature is anindirect effectofFLU andPNEUMONIA, caused byFEVER

ACAI’09 – p. 12/28

Page 13: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Check Independences

FLU

PNEUMONIA

FEVER

MYALGIA

TEMP

Conditional independence:X ⊥⊥ Y | Z

FLU ⊥⊥ TEMP | FEVER

FEVER⊥⊥ MYALGIA | FLU

PNEUMONIA ⊥⊥ FLU | ∅

PNEUMONIA 6⊥⊥ FLU | FEVERACAI’09 – p. 13/28

Page 14: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Choose VariablesFactors aremutually exclusive(cannot occurtogether with absolute certainty): put as values inthe same variable, or

Factors may co-occur: multiple variables

DISEASE

pneu/flu

FEVER

MYALGIA

(a) Single variable

FLU

yes/no

FEVER

PNEUMONIA

yes/no

MYALGIA

(b) Multiple variables

ACAI’09 – p. 14/28

Page 15: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Choose Value DomainsDiscrete values

Mutually exclusive and exhaustiveTypes:

binary, e.g.,FLU = yes/no, true/false, 0/1ordinal, e.g.,INCOME = low, medium, highnominal, e.g.,COLOR = brown, green, redintegral, e.g.,AGE = {1, . . . , 120}

Continuous values

Discretisation (of continuous and integral values)Example forTEMP:[−50,+5)→ cold[+5,+20)→ mild[+20,+50]→ hot

ACAI’09 – p. 15/28

Page 16: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Probability Assessmentqualitative

orders and

equalities

indegree

of vertex

divorcing/causal

independence

quantitative

assessment

experts/dataset

probability

distribution

compare

prediction with

literature

compare with

test dataset

check

consistency

> 4

≤ 4

EVALUATION

8

>

>

>

>

>

>

>

>

>

>

>

>

>

<

>

>

>

>

>

>

>

>

>

>

>

>

>

:

ACAI’09 – p. 16/28

Page 17: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Expert JudgementsQualitative probabilities:

Qualitative orders:

AGE P (General Health Status| AGE)

10-69 good> average> poor70-79 average> good> poor80-89 average> poor> good≥ 90 poor> average> good

Equalities:

P (CANCER = T1|AGE = 15− 29) =P (CANCER = T2|AGE = 15− 29)

ACAI’09 – p. 17/28

Page 18: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Expert Judgements (cont.)Quantitative, subjective probabilities:

P (GHS | AGE)

AGE good average poor

10-69 0.99 0.008 0.00270-79 0.3 0.5 0.280-89 0.1 0.5 0.4≥ 90 0.1 0.3 0.6

ACAI’09 – p. 18/28

Page 19: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

A Bottleneck

FEV ER

FLU

RABIES EARINF

BRONCH

The number of parameters for the effect givenncauses grows exponentially:2n for binary causes

Unlikely evidence combination:P (FEVER|FLU, RABIES, EAR INFECTION) =?

Problem:for many BNstoo manyprobabilities haveto be assessed

ACAI’09 – p. 19/28

Page 20: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Special Form BNSolution:use simpler probabilistic model, such thateither

thestructure becomes simpler, e.g.,

naive (independent) form BNTree-Augmented BayesianNetwork (TAN)

or,

theassessment of the conditional probabilitiesbecomes simpler(even though the structure isstill complex), e.g.,

parent divorcingcausal independence BN

ACAI’09 – p. 20/28

Page 21: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Independent (Naive) Form

C

E1

· · ·E2

Em

C is aclass variableEi areevidence variablesandE ⊆ {E1, . . . , Em}.We haveEi ⊥⊥ Ej | C, for i 6= j. Hence, usingBayes’ rule:

P (C | E) =P (E | C)P (C)

P (E)with:

P (E | C) =∏

E∈E

P (E | C) by cond. ind.

P (E) =∑

C

P (E | C)P (C) marg. & cond.

ACAI’09 – p. 21/28

Page 22: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Tree-Augmented BN (TAN)

C

E1

E3E2

E5

E4

Extension of Naive Bayes: reduce the number ofindependent assumptions

Each node has at most two parents (one is theclass node)

ACAI’09 – p. 22/28

Page 23: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Divorcing Multiple ParentsSurgery

Drug

Treatment

General

Health

Survival

(a) Original network

Surgery

Drug

Treatment

General

Health

Post-therapy

Survival

Survival

(b) Divorced network

Reduction in number of probabilities to assess:

Identify a potential common effect of two ormore parent vertices of a vertex

Introduce a new variable into the network,representing the common effect

ACAI’09 – p. 23/28

Page 24: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal IndependenceC1 C2 . . . Cn

I1 I2 . . . In

Ef

with:

causevariablesCj, intermediatevariablesIj, andtheeffectvariableE

P (E | I1, . . . , In) ∈ {0, 1}

interaction functionf , defined such that

f(I1, . . . , In) =

{

e if P (e | I1, . . . , In) = 1

¬e if P (e | I1, . . . , In) = 0

ACAI’09 – p. 24/28

Page 25: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Causal IndependenceC1 C2 . . . Cn

I1 I2 . . . In

Ef

P (e | C1, . . . , Cn) =∑

I1,...,In

P (e | I1, . . . , In)P (I1, . . . , In | C1, . . . , Cn)

=∑

f(I1,...,In)=e

P (e | I1, . . . , In)P (I1, . . . , In | C1, . . . , Cn)

Note that asIi ⊥⊥ Ij | ∅, andIi ⊥⊥ Cj | Ci, for i 6= j,it holds that:

P (I1, . . . , In | C1, . . . , Cn) =n

k=1

P (Ik | Ck)

ACAI’09 – p. 25/28

Page 26: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Noisy ORC1 C2

I1 I2

EOR

Interactions among causes, as represented by thefunctionf andP (E | I1, I2), is a logical OR

Meaning: presence of any one of the causesCi

with absolute certainty will cause the effecte(i.e.,E = true)P (e|C1, C2) =

I1∨I2=e

P (e|I1, I2)∏

k=1,2

P (Ik|Ck)

= P (i1|C1)P (i2|C2) + P (¬i1|C1)P (i2|C2)

+P (i1|C1)P (¬i2|C2)ACAI’09 – p. 26/28

Page 27: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Noisy ANDC1 C2

I1 I2

EAND

Interactions among causes, as represented by thefunctionf andP (E | I1, I2), is a logical AND

Meaning: presence of all causesCi with absolutecertainty will cause the effecte (i.e.E = true);otherwise,¬e

P (e|C1, C2) = · · ·

ACAI’09 – p. 27/28

Page 28: The Model-based Approach to Computer-aided Medical ... · Causal Graph: Example FLU PNEUMONIA FEVER MYALGIA TEMP FEVER and PNEUMONIA are two alternative causes of fever (but may enhance

Model RefinementModel refinement is necessary:

How:ManualAutomatic:sensitivity analysis

What:Probability adjustmentRemoving irrelevant factorsAdding previously hidden, unknown factorsCausal relationships adjustment, e.g.,including, removing independence relations

ACAI’09 – p. 28/28