input-output hmms dynamic bayesian networks …10701/slides/23_advanced_hmms.pdfcoupling of hidden...

26
Advanced HMMs Factorial HMM’s Input-output HMMs Dynamic Bayesian Networks (DBNs)

Upload: others

Post on 15-Aug-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Advanced HMMs

• Factorial HMM’s

• Input-output HMMs

• Dynamic Bayesian Networks (DBNs)

Page 2: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Coupling of hidden states

• A robot for tourists

• Location {K by K grid}

• Language {English, Spanish,

French}

• Talk {yes, no}

How do we design a HMM

for this robot?

Page 3: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

HMM for roboguide

• States: triplets {Loc, Lan, Tal}

• Emissions: based on location and

presence / absence of a person

• Transitions: From one triplet to

another

Example of transition:

P({Loc = (i,j), Lan = E, Tal = y} | ({Loc = (i,j-1), Lan = E, Tal = n})

Problems?

Page 4: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Decoupling of states

• In many cases each state needs to be represented by a

vector of attributes

• In these cases the transition between attributes may not

depend on all the other attributes

- For example, given a current location the next location is

independent of the language being used

• In such cases it is better to use a different representation

that is less complex and still captures the correct model

Page 5: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Factorial HMMs

Page 6: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Learning and inference in factorial

HMMs

• M step: Same as in HMMs:

- given expected state assignments compute initial,

transition and emission probabilities (could couple

states)

• E step: Harder, we cannot solve efficiently any more

- The observations couple the states and the E step can

be exponential in the number of different types of states

- In practice people usually use a sampling (Monte

Carlo) method for this task.

Page 7: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Factorial HMMs

Can also be used to

represent relationships

between different

types of states. Again,

inference is hard but if

the states are known

(estimated) we can

compute transition and

other probabilities (but

we need more data).

Page 8: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Advanced HMMs

• Factorial HMM’s

• Input-output HMMs

• Dynamic Bayesian Networks (DBNs)

Page 9: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Static input

• Assume we are building a robot tracker which

determines the location of a robot based on sensor

information

• The model is to be used for 3 different types of robots,

each has a slightly different speed and preference as

to the next location

50% 50% 30% 70%

Page 10: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Handling the robotype model

• We can always build separate models for the three

different robots

• But this is a waste

- All robots share the same output probabilities

- Perhaps they also share other properties (language,

etc.).

• Instead, it would be better if we can design one model

that will fit all of them

Page 11: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Input-output HMMs

Input layer: impacts only

the transition probabilities

)|(),|()|()()|,( 1111 tttt

t

qopRqqpqopqMOQp

R

Page 12: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Learning and inference in input-

output HMMs

• Depends on how the transition probability is modeled.

Since R is given we can just learn a new transition table

for each R value (note that the emission probabilities are

still the same regardless of R).

• In some cases the transition probability may take on a

different format (for example, logistic regression

classifier). For such transitions learning is harder.

Page 13: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

More general Input-output HMMs

R

Page 14: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

More general Input-output HMMs

R1 R2 R3

Page 15: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Advanced HMMs

• Factorial HMM’s

• Input-output HMMs

• Dynamic Bayesian Networks (DBNs)

Page 16: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Predicting stock prices

• If we knew the price for Microsoft, Yahoo and Ebay

today and the price of Google yesterday, could we

predict the new price for Google?

• In these and other cases there is no hidden states but

there is a strong dependency over time

Page 17: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Dynamic Bayesian networks

(DBNs)

G

E

Y

M

G

E

Y

M

• DBNs are an extension of

Bayesian networks

• They follow the same

semantics

• But they are repeated

over time and so loops

(between time units) are

allowed.

i

ii xPaxpXP ))(|()(

Page 18: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Dynamic Bayesian networks

(DBNs)

G

E

Y

M

G

E

Y

M

i

ii xPaxpXP ))(|()(

G

E

Y

M

G

E

Y

M

Page 19: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Learning and inference in DBNs

• This is really more similar to a Bayesian network (BN)

than to a HMM

• Like all BNs, learning and inference is NP hard

• Which leads to several approximation methods:

- Hill climbing

- Annealing

- Greedy algorithms

- etc.

Page 20: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

What you should know

• Why HMMs? Which applications are suitable?

• Learning HMMs: EM algorithm (Baum-Welch)

• Extensions of HMMs

Page 21: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

reconstructed networks are static …

Segal et al Nature Genetics 2003 Workman et al Science 2006

… but biological systems are dynamic

Bar-Joseph et al Nature

Biotechnology 2003

Cell cycle Circadian rhythm Immune response

Page 22: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Key problem: Most high-

throughput data is static

DNA

motif CHIP-chip

PPI microarray

Static data sources Time-series measurements

Time

Page 23: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

TF C

time

Expression

Level

Expression Data Static TF-DNA Binding Data

TF A

TF B

TF D

Page 24: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Things are a bit more complicated:

Real data

Page 25: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Final model and validations

AA vs. SCD Binding for Ino4 Bound Genes on

Response Path (Repeat 1)

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

0 1 2 3 4 5

SCD Repeat 1: -log base 10 p-value

AA

Rep

eat

1:

-lo

g b

ase 1

0

p-v

alu

e

Ino4 Occupancy in Gene Promoter Region at 0h and

4h

0

2

4

6

8

10

12

YDR497C YNL169C YGR196C YHR123W

Gene

Inte

ns

ity

SCD

AA Starvation

Page 26: Input-output HMMs Dynamic Bayesian Networks …10701/slides/23_Advanced_HMMs.pdfCoupling of hidden states • A robot for tourists • Location {K by K grid} • Language {English,

Continuous hidden process models

CHPM

G1/S transition of mitotic cell cycle