probabilistic graphical models: applications in biomedicine · 2018-01-04 · probabilistic...

64

Upload: others

Post on 08-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May
Page 2: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models: Applications in Biomedicine

L. Enrique Sucar, INAOE Puebla, México

May 2012

Page 3: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

What do you see?

What we see depends on our previous knowledge (model) of

the world and the information (data) form the images

Bayesian framework

Page 4: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Outline

Endoscopy assistant

Predicting HIV mutations

User adaptation for rehabilitation

Page 5: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Bayesian Models

combine our previous knowledge (priors) with the evidence (likelihood)

P ( H | E) P ( H ) P (E | H )

independence relations among the variables in a domain

Page 6: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

X = X1, X2, …, XN

P(X1, X2, …, XN)

Page 7: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

It is generally much more compact (space)

It is generally much more efficient (time)

It is easier to understand and communicate

It is easier to build (from experts) or learn (from data)

Page 8: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

G(V,E),

f(Yi),Yi X

)f(Y )X , ,X ,P(Xn

1i

iN21

Page 9: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

Inference:Z Y

Learning: X

Page 10: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

Directed vs. Undirected

Static vs. Dynamic

Probability vs. Decision

Page 11: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

1

3 2

4 5

1

3 2

4 5

Page 12: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

St St+1 St+2 St+3

E E E E

C

H

E

Page 13: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Probabilistic Graphical Models

1

3 2

4 5

A

B C

D

U

D

Page 14: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Types of PGMs

Bayesian classifiers

Bayesian networks

Hidden Markov models

Dynamic Bayesian networks

Temporal Bayesian networks

Markov Random Fields

Influence diagramas

Markov decision processes

Page 15: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Bayesian Networks

Node: Propositional variable.

Arcs: Probabilistic dependencies

Page 16: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Drunk

Thirsty Headache

Wine

Represents (in a compact way) the joint probability distribution:

P(W,D,T,H) = P(W) P(D|W) P(T|D) P(H|D)

An example of a Bayesian Network

Page 17: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Structure

Page 18: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Parameters

• Root nodes

• Other nodes

Page 19: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Drunk

Thirsty Headache

Wine

P(T|D)

0.9 0.5

0.1 0.5

P(H|D)

0.7 0.4

0.3 0.6

P(D|W)

0.9 0.7

0.1 0.3

P(W)

0.8 0.2

Parameters for the example

Page 20: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

C

H

E

Given certain evidence, E,

estimate the posterior probaililty

of the other

variables, H, C

Inference

Page 21: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Inference

Variable elimination

Message passing (Pearl’s algorithm)

Junction Tree

Stochastic simulation

Page 22: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Learning

Drunk

Thirsty Headache

Wine P(W)

P(D|W)

P(H|D) P(T|D)

Page 23: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Structure Learning

Independence tests

Search and score

Page 24: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Structural Improvement

combine expert knowledge and data

Node elimination

Node combination

Node insertion

Page 25: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Structural improvement

Y X

Z

X

Z

XY

Z W

Z

Y X

Page 26: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Endoscopy

semi-automatic system that can assist an endoscopist

recognize the “objects” in endoscopy imageslumen diverticula

Bayesian network that combines the information and arrives to final decisions

Page 27: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Colon Image

Page 28: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Low level features – dark region

Page 29: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Low level features – shape from shading (pq histogram)

Page 30: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Model Construction

Page 31: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

BN for endoscopy (partial)

Page 32: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Semi-automatic Endoscope

Page 33: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Endoscope navigation system: example 1

Page 34: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Endoscope navigation system: example 2

Page 35: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Temporal Nodes Bayesian Networks (TNBN)

• An alternative to Dynamic Bayesian Networks to model dynamic processes with uncertainty

• Temporal information is within the nodes in the model, which represent the time of occurrance of certain events

• The links represent temporal-causal relation

• Adequate for applications in which there are few state changes in the temporal range

Page 36: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Example

Page 37: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

37

Page 38: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

1. Initial discretization of the temporal variables

2. Standard BN structural learning

3. Refines the intervals for each TN

38

Page 39: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

HIV

fastest evolving organisms

dynamics of the appearance chain of mutations

temporal occurrence of specific mutations in HIV that may lead to drug resistance

Page 40: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

drug-associated mutational pathways in the protease gene, revealing the co-occurrence of mutations and its temporal relationships

predict the most likely evolution of the virus

prevents the appearance of mutations, effectively increasing HIV control

Page 41: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Alma Ríos-Flores (INAOE) 41

http://us.viramune.com/consumer/hiv-treatment

Page 42: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Patient Initial Treatment List of Mutations Weeks

P1 LPV, FPV, RTV L63P, L10I,

V77I,

I62V

15

30

10

P2 NFV, RTV, SQV L10I

V77I

25

45

Page 43: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

43

Model 1: Assessment of

TNBN to capture known

relations. Uncovering more common

mutational networks

Page 44: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

44

Known relationships

are appropiately

captured

Role of RTV is often

used in conjunction

with other drugd

(boosting) Link between SQV

and L10I

DRV isolation: New

drug is hardly ever

given as a first

treatment

Page 45: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May
Page 46: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

The model was able

to capture some

mutational pathways

already known

(obtained by clinical

experimentation).

Page 47: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Markov decision processes (MDPs)

planning under uncertainty

Page 48: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

MDP

A finite set of states, S

A finite set of actions, A

A transition model, P (s’ | s, a)

A reward function for each state-action, r (s, a)

Page 49: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

POMDP

An observation probability distribution, P(O|S)

An initial probability distribution, P(S)

Page 50: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

St St+1 St+2 St+3

Dt-1 U

A POMDP as a Dynamic Decision Network

E E E E

Dt Dt+1 Dt+2

Page 51: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Basic solution techniques

Dynamic programming techniques

reinforcement learning

Page 52: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Factored MDPs

The state is decomposed in a set of

factors or state variable:

X = {x1, x2, x3, x4, x5}

So the transition function is represented

as a two-stage DBN per action

x2

x3

x4

x5

x1

x2’

x3’

x4’

x5’

x1’

t t+1

X’

Page 53: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Gesture Therapy

low-cost technology that allows stroke patients to practice intensive movement training at home without the need of an always present therapist

Page 54: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Gesture Therapy

• Simulated environment

• Monocular tracker

• Gripper

• Trunk compensation detection

• Adaptation to the patient

GAMES

Visual/Sensortracking

scripts

Shared memory

Torque Game Engine (C/C++)

Adaptation Tools (C++|Java)

Data Archival

Communication

Page 55: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Adptation to the patient

The system estimates the patient “state” based on observing its performance in the game (speed, control) and decides the game difficulty accordingly according to the policy dictated by the POMDP

Performance

Obs: duration

Obs: coordina

tion

difficulty

Performance

Actions

Obs: duration

Obs: coordina

tion

difficulty

Page 56: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Evaluation

Page 57: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Prototype of the system at the INNN rehabilitation unit

Page 58: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Policy adaptation

model could be wrong

best policy could depend on the patient

improves an initial policy based on the therapist feedback

Page 59: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Initial results

Page 60: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Conclusions

Bayesian approach

• Graphical models

Page 61: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Conclusions

set of techniques which can be applied to solve complex problems in biomedicine

interesting challenges that require novel developments in representation, inference and learning

Page 62: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

References

L. E. Sucar, D.F. Gillies, D. A. Gillies, “Objective probabilities in expert

systems”, Artificial Intelligence, 1993.

L. E. Sucar, D. F. Gillies, “Probabilistic reasoning in high-level vision”,

Image and Vision Computing, 1994.

L. E. Sucar, R. Luis, R. Leder, J. Hernández, I. Sánchez,“GESTURE

THERAPY: A Vision-Based System for Upper Extremity Stroke

Rehabilitation”, IEEE EMBC, 2010

P. Hernández, F. Orihuela, A. Rios, J. González, L.E. Sucar, “Unveiling HIV

mutational networks associated to pharmacological selective pressure: a

temporal Bayesian approach”, AIME, 2011.

Page 63: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Acknowedgements

• Collaborators

• Sponsors

Page 64: Probabilistic Graphical Models: Applications in Biomedicine · 2018-01-04 · Probabilistic Graphical Models: Applications in Biomedicine L. Enrique Sucar, INAOE Puebla, México May

Thanks!

Questions?

[email protected]

ccc.inaoep.mx/esucar