Lecture 7 Sequence analysis. Hidden Markov Models

Size: px
Start display at page:

Download "Lecture 7 Sequence analysis. Hidden Markov Models"

Transcription

1 Lecture 7 Sequence analysis. Hidden Markov Models Nicolas Lartillot may 2012 Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

2 1 Motivation 2 Examples of Hidden Markov models 3 Hidden Markov Models Formal definition Most likely path: Viterbi algorithm Summing over paths Sampling paths Learning HMM parameters and structure 4 Examples 6 Hidden Markov models and sequence alignment Pairwise alignment Multiple alignment: profile HMMs 5 Sequence alignment 7 Summary Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

3 Motivation Models of gene structure!"#"$%"&"'()#$*#%$*+&),*('$*##)&*()#$ locally, detecting small signal sequences and signatures global arrangement (order) has to be meaningful Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

4 Motivation Promoters andstructure enhancers d!un promoteur!"#$!!!$!"$$$#!$!$"!#$!$$!"$!#$!##!$!$"!#$!$$!"$!#$!#% structure of enhancers small and degenerate binding sites clustered, and separated by intervals of variable length Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

5 Motivation Position Specific Scoring Matrix experimentally validated binding sites!!!"!#!$"#!!!#!$###"!#!#$!"#!##!$#!"#!"%!!!"!#!$"#!!!#!$###"!#!#$!"#!##!$#!"#!"%!!!"!#!$"#!!!#!$###"%!"!"!"!!!#!$###"!#!#$!"#!##!$#!"#!"% "#!!!#!$###"!#!#$!"#!##!$#!"#!"% binding site A C G T background A 0.4 C 0.3 G 0.2 T 0.2 q = (q ij ) i=1..5, j=a,c,g,t r = (r j ) j=a,c,g,t Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

6 Isochores G. Bernardi / Gene 241 (2000) Fig. 6. Ideogram of human chromosomes at a 850 band resolution (Francke, 1994) showing the H3+ bands as red bands (from Saccone et al., 1999). Black and grey bands are G(Giemsa) bands, white and red bands are R(Reverse) bands. isochores alternating GC rich and GC poor regions of several kb due to biased gene conversion dependent on local recombination rate

7 Examples of Hidden Markov models Isochores A 0.40 C 0.06 G 0.09 T 0.45 A 0.25 C 0.25 G 0.30 T 0.20 δ 1 δ P R 1 ɛ ɛ observed sequence (S) hidden sequence (H) ACTGCGA PPPRRRP p(s, H) = π P e P (A) (1 δ) e P (C) (1 δ) e P (T ) δ e R (G) (1 ɛ) e R (C) (1 ɛ) e R (G) ɛ e P (A) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

8 Examples of Hidden Markov models Isochores A 0.40 C 0.06 G 0.09 T 0.45 A 0.25 C 0.25 G 0.30 T 0.20 δ 1 δ P R 1 ɛ ɛ observed sequence (S) hidden sequence (H) ACTGCGA PPPRRRP mean length of P-tracks is 1 δ, and 1 ɛ geometric distributions for R-tracks. Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

9 Examples of Hidden Markov models Isochores with begin and end state A 0.40 A 0.25 C 0.06 C 0.25 G 0.09 G 0.30 T 0.45 T 0.20 Begin P R End transition probabilities B P R E B P R E Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

10 Examples of Hidden Markov models Secondary structure H L E 3 hidden states (L,H and E) in each state, 20 emission probabilities (amino-acids) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

11 Examples of Hidden Markov models Secondary structure H L E transition probabilities between hidden states L H E L H E q = (q kl ) k,l=l,h,e emission probabilities A C... Y L H E e = (e k (x)) k=l,h,e, x=a,c,...,y Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

12 Examples of Hidden Markov models Secondary structure H L E!!!!!!!""""""""""""!!!!!!!!!!!!"""""""""""""""!!!!!!!!!####!!"""""" p(s, H) = π L e L (G) q LH e H (L) q HH e H (L) q HH e H (E) q HH e H (L)... Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

13 Enhancers A 1 A 2 A 3 A 4 1 ɛ O E 1 δ B 1 B 2 B 3 ATGCAAACATCCCGACACTAGAACCATCAGCAGGACACTAGCA! OOOOEEEAAAAEEEBBBEEBBBEEEEAAAAEEEEOOOOOOOOO! states O and E emit bases according to background probabilities states A i and B i emit bases according to position specific scoring matrices of transcription factors 1 and 2.

14 Enhancers A 1 A 2 A 3 A 4 1 ɛ O E 1 δ B 1 B 2 B 3 ATGCAAACATCCCGACACTAGAACCATCAGCAGGACACTAGCA! OOOOEEEAAAAEEEBBBEEBBBEEEEAAAAEEEEOOOOOOOOO! δ < ɛ tracks of E are smaller than tracks of O a way of modelling clustering of transcriptions factors

15 Formal definition A Hidden Markov chain M characterized by an alphabet of hidden states s 1, s 2,..., s K an alphabet of observable symbols v 1, v 2,..., v P initial probabilities (over hidden states) π (vector of dim K ) transition probabilities (between hidden states) q kl (K K matrix) emission probabilities e k (v p ) (K vectors of dim P) A realization: 2 parallel series of random variables the hidden state path h = (h t ) t=1..t the observed sequence of emitted symbols: x = (x t ) t=1..t Probability of the joint (hidden and observed) sequence p(x, h M) = π(h 1 )e h1 (x 1 ) [ T 1 t=1 q ht h t+1 e ht+1 (x t+1 ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60 ]

16 Formal definition HMM with begin and end states by convention hidden state 0 will stand for begin and end state begin/end state does not emit symbols for k = 1... K : q 0k : probability of starting chain in state k (q 0k = π k ) q k0 : probability of ending chain after being in state k joint probability p(x, h M) = q 0h1 e h1 (x 1 ) [ T 1 t=1 q ht h t+1 e ht+1 (x t+1 ) ] q ht 0 Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

17 Formal definition The main algorithmic problems of HMM paths given an observed sequence x find the most likely hidden path integrate probability over all paths sample paths according to their probability learning HMMs estimating parameters (transition and emission probabilities) choosing structure (how many hidden states, etc) two types of learning supervised: given annotated examples (x, h pairs) unsupervised: given non annotated examples (x only) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

18 Most likely path: Viterbi algorithm Most likely path: Viterbi algorithm h = (h t ) t=1..t : the sequence of hidden state (hidden path) x = (x t ) t=1..t : the observed sequence of emitted symbols p(x, h M): the joint probability question Given x = (x t ) t=1..t, find ĥ = (ĥt) t=1..t such that: ĥ = max h p(x, h M) maximum is over P T possible paths cannot be computed by brute force searching but exhaustive search is possible using dynamic programming Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

19 Most likely path: Viterbi algorithm Viterbi algorithm example H L E!!!!!!!""""""""""""!!!!!!!!!!!!"""""""""""""""!!!!!!!!!####!!"""""" Given HMM (with emission and transition probabilities specified) and a protein sequence, find most likely secondary structure annotation Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

20 Most likely path: Viterbi algorithm Viterbi recursion Definition v k (t): probability of the most probable path ending in state k at time t. v k (t) = max h 1,...,h t 1 p(h 1,..., h t 1, h t = k, x M) ptr k (t): hidden state at time t 1 of this most probable path recursion v l (t + 1) = max v k (t)q kl e l (x t+1 ) k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

21 Most likely path: Viterbi algorithm Viterbi recursion M V K R L 1 ptr 2 (t) v 1 (t) 2 3 ptr 1 (t) ptr 3 (t) v 2 (t) v 3 (t)... Definition v k (t): probability of the most probable path ending in state k at time t. ptr k (t): hidden state at time t 1 of this most probable path Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

22 Most likely path: Viterbi algorithm Viterbi recursion M V K R L recursion v 1 (t) v 2 (t) v 3 (t) v 1 (t + 1)?... v 1 (t + 1)? = v 1 (t)q 11 e 1 (L) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

23 Most likely path: Viterbi algorithm Viterbi recursion M V K R L recursion v 1 (t) v 2 (t) v 3 (t) v 1 (t + 1)?... v 1 (t + 1)? = v 2 (t)q 21 e 1 (L) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

24 Most likely path: Viterbi algorithm Viterbi recursion M V K R L recursion v 1 (t) v 2 (t) v 3 (t) v 1 (t + 1)?... v 1 (t + 1)? = v 3 (t)q 31 e 1 (L) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

25 Most likely path: Viterbi algorithm Viterbi recursion M V K R L recursion v 1 (t) v 2 (t) v 3 (t) v 1 (t + 1)... v 1 (t + 1) = max k=1,2,3 v k(t)q k1 e 1 (x t+1 ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

26 Most likely path: Viterbi algorithm Viterbi recursion M V K R L 1 2 ptr 1 (t + 1) v 1 (t + 1)... 3 recursion ptr 1 (t + 1) = arg max k=1,2,3 v k(t)q k1 e 1 (x t+1 ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

27 Most likely path: Viterbi algorithm Viterbi recursion M V K R L 1 v 1 (t) v 1 (t + 1) 2 v 2 (t) v 2 (t + 1)... 3 v 3 (t) v 3 (t + 1) recursion v l (t + 1) = max v k (t)q kl e l (x t+1 ) k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

28 Most likely path: Viterbi algorithm Viterbi algorithm initialization v 0 (0) = 1, v k (0) = 0 for k < 0. recursion t = 0... T 1 v l (t + 1) = e l (x t+1 ) max k v k (t)q kl ptr l (t + 1) = argmax k v k (t)q kl termination p(x, ĥ M) = max k v k (T ) ĥ T = argmax k v k (T ) traceback t = T ĥ t = ptr t+1 (ĥt+1) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

29 Most likely path: Viterbi algorithm Complexity of Viterbi algorithm compute a product of probabilities at each time step t = 1..T for each state k = 1..K at time t and for each state l = 1..K at time t + 1 Complexity TK 2 linear in T : very efficient, even for long genomic sequences quadratic in K : should keep model simple (low number of hidden states) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

30 Most likely path: Viterbi algorithm Integrating over all paths. Baum Welsch algorithm h = (h t ) t=1..t : the sequence of hidden state (hidden path) x = (x t ) t=1..t : the observed sequence of emitted symbols p(x, h M): the joint probability question Given x = (x t ) t=1..t, compute p(x M) = h p(x, h M) sum is over P N possible paths again, exhaustive sum is possible using dynamic programming (forward and backward algorithms) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

31 Summing over paths Integrating over all paths. Baum Welsch algorithm question Given x = (x t ) t=1..t, compute p(x M) = h p(x, h M) sum is over P N possible paths again, exhaustive sum is possible using dynamic programming Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

32 Summing over paths Forward algorithm M V K R L 1 f 1 (t) definition f k (t) = p(x 1,..., x t, h t = k) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

33 Summing over paths Forward algorithm M V K R L recursion f 1 (t) f 2 (t) f 3 (t) f 1 (t + 1)... f l (t + 1) = e l (x t+1 ) k f k (t)q kl Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

34 Summing over paths Forward algorithm M V K R L 1 f 1 (t) f 1 (t + 1) 2 f 2 (t) f 2 (t + 1)... 3 f 3 (t) f 3 (t + 1) recursion f l (t + 1) = e l (x t+1 ) k f k (t)q kl Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

35 Summing over paths Forward algorithm initialization f 0 (0) = 1, f k (0) = 0 for k > 0. recursion t = 0... T 1 f l (t + 1) = e l (x t+1 ) k f k(t)q kl termination p(x M) = k f k(t ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

36 Summing over paths Backward algorithm D F Y M A 1 b 1 (t) definition b k (t) = p(x t+1,..., x T h t = k) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

37 Summing over paths Backward algorithm D F Y M A recursion b 1 (t 1) b 1 (t) b 2 (t) b 3 (t) b k (t 1) = l q kl e l (x t )b l (t) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

38 Summing over paths Backward algorithm D F Y M A recursion b 1 (t 1) b 2 (t 1) b 3 (t 1) b 1 (t) b 2 (t) b 3 (t) b k (t 1) = l q kl e l (x t )b l (t) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

39 Summing over paths Backward algorithm initialization b k (L) = q k0. recursion t = T... 2 b k (t 1) = l e l(x t )b l (t)q kl termination p(x M) = l q 0le l (x 1 )b l (1) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

40 Summing over paths Marginal posterior probabilities question Given x = (x t ) t=1..t, compute the pointwise marginal probability: p(h t = k x, M) = 1 p(x M) h h t =k p(x, h M) h h t =k p(x, h) = p(x 1,..., x t, h t = k) p(x t+1,..., x T h t = k) = f t (k) b t (k) p(h t = k x) = f t(k) b t (k) p(x) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

41 Summing over paths Marginal posterior probabilities question Given x = (x t ) t=1..t, compute the pointwise marginal probability: Posterior decoding p(h t = k x, M) = 1 p(x M) h h t =k for each t = 1..T, find h t that maximizes p(h t x) different from Viterbi path does not even necessarily represent a valid path more stable than Viterbi p(x, h M) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

42 Sampling paths Sampling paths question Given x = (x t ) t=1..t, sample a path h = (h t ) t=1..t probabilistically from h p(h x, M) viterbi path is the most likely outcome (by definition) but suboptimal paths may matter in particular, if total probability is spread over many paths sampling and averaging gives an idea of uncertainty about path Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

43 Sampling paths Sampling paths question Given x = (x t ) t=1..t, sample a path h = (h t ) t=1..t probabilistically from h p(h x, M) could in principle be done by Gibbs sampling but a more efficient dynamic programming method exists Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

44 Sampling paths D F Y M A b 1 (1) b 2 (1) b 3 (1) Bayes theorem p(h 1 = k) = q 0k p(x 1... x T h 1 = k) = b k (1) p 1k = p(h 1 = k x 1... x T ) q 0k b k (1)e k (x 1 ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

45 Sampling paths D F Y M A b 1 (1) b 2 (1) b 3 (1) Compute (p 1k ) k=1..k, and sample h 1 at random: h 1 p 1k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

46 Sampling paths D F Y M A 1 b 1 (1) 2 3 Compute (p 1k ) k=1..k, and sample h 1 at random: h 1 p 1k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

47 Sampling paths D F Y M A b 1 (t + 1) b 2 (t + 1) b 3 (t + 1) Suppose we have sampled h 1... h t p(h t+1 = l h t = k) = q kl p(x t+1... x T h t+1 = l) = b l (t + 1)e l (x t+1 ) p t+1 l = p(h t+1 = l x t+1... x T, h 1... h t ) q kl b l (t + 1)e l (x t+1 ) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

48 Sampling paths D F Y M A b 1 (t + 1) b 2 (t + 1) b 3 (t + 1) Compute (p t+1 k ) k=1..k, and sample h t+1 at random:... h t+1 p t+1 k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

49 Sampling paths D F Y M A 1 b 1 (t + 1) 2 3 Compute (p t+1 k ) k=1..k, and sample h t+1 at random:... h t+1 p t+1 k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

50 Sampling paths D F Y M A until the entire path has been sampled Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

51 Learning HMM parameters and structure Learning HMM parameters question Given a training database of (x, h) annotated pairs learn the parameters of the HMM. just compute N kl total number of transitions from k to l in database N k M kp M k total number of transitions from k: N k = l N kl total number of emissions of symbol p when in state k total number of emissions in state k: M k = p M kp ML estimate q kl = N kl N k, e k (s p ) = M kp M k Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

52 Learning HMM parameters and structure Learning HMM parameters question Given a training database of (x, h) annotated pairs learn the parameters of the HMM. just compute N kl total number of transitions from k to l in database N k M kp M k total number of transitions from k: N k = l N kl total number of emissions of symbol p when in state k total number of emissions in state k: M k = p M kp Bayes estimate (add pseudocounts) q kl = N kl+n l N k + n, e k(s p ) = M kp + m p M k + m Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

53 Learning HMM parameters and structure Unsupervised training Viterbi training (approximate) start from rough parameter estimates use Viterbi algorithm to infer paths compute N kl and M kp on viterbi paths estimate parameters based on N kl and M kp iterate Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

54 Learning HMM parameters and structure Unsupervised training Viterbi training (approximate) start from rough parameter estimates use Viterbi algorithm to infer paths compute N kl and M kp on viterbi paths estimate parameters based on N kl and M kp iterate Baum Welsch training (exact: EM) start from rough parameter estimates use Baum Welsch algorithm to compute expectations of N kl and M kp over all paths estimate parameters based on those expectations N kl and M kp iterate Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

55 Examples Predicting secondary structure Martin et al 2006 Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

56 Examples Modelling protein architecture Handcrafted HMMs. Stultz et al Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

57 Examples Automatic annotation of gene structure Burge and Karlin 1997 Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

58 Examples Automatic annotation of gene structure Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

59 Hidden Markov models and sequence alignment Using HMMs for aligning sequences rn to article PREVIOUS NEXT View Larger Image Download original TIFF Download PowerPoint Friendly Image Figure 5. The Java GUI allows users to visualize the estimated alignment accuracy under FSA's statistical model. FSA's alignment is colored according the expected accuracy under FSA's statistical model (top) as well as according to the true accuracy (bottom) given from a comparison between FSA's alignment and the reference structural alignment. It is Nicolas Lartillot clear (Universite from inspection de Montréal) that accuracies estimated BIN6009 under FSA's statistical model may / 60

60 Hidden Markov models and sequence alignment Pairwise alignment Pair HMM for pairwise alignment 1 2δ sequence X sequence Y hidden sequence X ɛ δ 1 ɛ M δ 1 ɛ Y ɛ HEAG--AW P-AGGHA-... MXMMYYMX gap opening with probability δ gap extension with probability ɛ Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

61 Hidden Markov models and sequence alignment Pairwise alignment Pair-HMM. pairwise alignment X B M E Y sequence X sequence Y hidden sequence HEAG--AW P-AGGHA-... MXMMYYMX Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

62 Assessing homology between 2 sequences model for homologous sequences (M 1 ) X B M E Y HEAG--AW P-AGGHAmodel for non homologous sequences (M 0 ) B X Y E HEAGAW PAGGHA L = p(s 1, s 2 M 1 ) p(s 1, s 2 M 0 ) L > 1: homologous L < 1: not homologous (but needs calibration).

63 rn to article Hidden Markov models and sequence alignment Pairwise alignment Posterior decoding (FSA) PREVIOUS NEXT View Larger Image Download original TIFF Download PowerPoint Friendly Image Figure 5. The Java GUI allows users to visualize the estimated alignment accuracy under FSA's statistical model. for each pair of positions, compute posterior probability of being aligned (i.e. jointly emitted by a match state) FSA's alignment is colored according the expected accuracy under FSA's statistical model (top) as well as according to the true accuracy (bottom) given from a comparison between FSA's alignment and the reference structural alignment. It is clear from inspection that accuracies estimated under FSA's statistical model correspond closely to the true accuracies. Sequences are from alignment BBS12030 in the RV12 dataset of BAliBASE 3 [24]. put in same colums positions that have high match probability Bradley et al PLOS Compute Biol Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

64 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Multiple alignment multiple HMM generalization of pair HMM with P > 2 sequences is possible however, number of hidden states exponential in P pair HMM merging pairwise alignments obtained using a pair HMM as in previous slide (posterior decoding) profile HMM Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

65 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs!!!!!!!""""""""""""!!!!!!!!!!!!"""""""""""""""!!!!!!!!!####!!"" gaps are not uniformly distributed along sequences conserved blocks, alternating with regions of more variable length corresponds to structured / loop regions of the conformation Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

66 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Profile HMM Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

67 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Profile HMM trained on seed alignment: FQDN-R FK-N-R FK-E-R FK-EVR Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

68 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Profile HMM trained on seed alignment: FQDN-R FK-N-R FK-E-R FK-EVR applied on new sequence AEFWQ-RAI... 0ii1i2d4ii5 Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

69 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Profile HMM overall procedure for each protein family make a seed alignment (based on superposition of 3D structures) train a profile HMM on seed alignment homologues should have higher p(s M): using Baum Welsch, search for homologues in databases. using Viterbi (or posterior decoding), align homologues with seed alignment Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

70 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs Profile HMM seed alignments are often small using mixture of priors to model match state emission probabilities (see TP) improves detection of distant homologues (Brown et al 1993) Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

71 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs exemple: globin family Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

72 Hidden Markov models and sequence alignment Multiple alignment: profile HMMs exemple: globin family Krogh et al 1994!"#$%&'(&)*+&,--.& Nicolas Lartillot (Universite de Montréal) BIN6009 may / 60

CISC 889 Bioinformatics (Spring 2004) Hidden Markov Models (II)

CISC 889 Bioinformatics (Spring 2004) Hidden Markov Models (II) CISC 889 Bioinformatics (Spring 24) Hidden Markov Models (II) a. Likelihood: forward algorithm b. Decoding: Viterbi algorithm c. Model building: Baum-Welch algorithm Viterbi training Hidden Markov models

More information

An Introduction to Bioinformatics Algorithms Hidden Markov Models

An Introduction to Bioinformatics Algorithms   Hidden Markov Models Hidden Markov Models Outline 1. CG-Islands 2. The Fair Bet Casino 3. Hidden Markov Model 4. Decoding Algorithm 5. Forward-Backward Algorithm 6. Profile HMMs 7. HMM Parameter Estimation 8. Viterbi Training

More information

O 3 O 4 O 5. q 3. q 4. Transition

O 3 O 4 O 5. q 3. q 4. Transition Hidden Markov Models Hidden Markov models (HMM) were developed in the early part of the 1970 s and at that time mostly applied in the area of computerized speech recognition. They are first described in

More information

Hidden Markov Models

Hidden Markov Models Hidden Markov Models Slides revised and adapted to Bioinformática 55 Engª Biomédica/IST 2005 Ana Teresa Freitas Forward Algorithm For Markov chains we calculate the probability of a sequence, P(x) How

More information

Hidden Markov Models

Hidden Markov Models Hidden Markov Models Outline 1. CG-Islands 2. The Fair Bet Casino 3. Hidden Markov Model 4. Decoding Algorithm 5. Forward-Backward Algorithm 6. Profile HMMs 7. HMM Parameter Estimation 8. Viterbi Training

More information

Computational Genomics and Molecular Biology, Fall

Computational Genomics and Molecular Biology, Fall Computational Genomics and Molecular Biology, Fall 2011 1 HMM Lecture Notes Dannie Durand and Rose Hoberman October 11th 1 Hidden Markov Models In the last few lectures, we have focussed on three problems

More information

Hidden Markov Models. Aarti Singh Slides courtesy: Eric Xing. Machine Learning / Nov 8, 2010

Hidden Markov Models. Aarti Singh Slides courtesy: Eric Xing. Machine Learning / Nov 8, 2010 Hidden Markov Models Aarti Singh Slides courtesy: Eric Xing Machine Learning 10-701/15-781 Nov 8, 2010 i.i.d to sequential data So far we assumed independent, identically distributed data Sequential data

More information

Example: The Dishonest Casino. Hidden Markov Models. Question # 1 Evaluation. The dishonest casino model. Question # 3 Learning. Question # 2 Decoding

Example: The Dishonest Casino. Hidden Markov Models. Question # 1 Evaluation. The dishonest casino model. Question # 3 Learning. Question # 2 Decoding Example: The Dishonest Casino Hidden Markov Models Durbin and Eddy, chapter 3 Game:. You bet $. You roll 3. Casino player rolls 4. Highest number wins $ The casino has two dice: Fair die P() = P() = P(3)

More information

Basic math for biology

Basic math for biology Basic math for biology Lei Li Florida State University, Feb 6, 2002 The EM algorithm: setup Parametric models: {P θ }. Data: full data (Y, X); partial data Y. Missing data: X. Likelihood and maximum likelihood

More information

Hidden Markov Models (I)

Hidden Markov Models (I) GLOBEX Bioinformatics (Summer 2015) Hidden Markov Models (I) a. The model b. The decoding: Viterbi algorithm Hidden Markov models A Markov chain of states At each state, there are a set of possible observables

More information

Hidden Markov Models for biological sequence analysis

Hidden Markov Models for biological sequence analysis Hidden Markov Models for biological sequence analysis Master in Bioinformatics UPF 2017-2018 http://comprna.upf.edu/courses/master_agb/ Eduardo Eyras Computational Genomics Pompeu Fabra University - ICREA

More information

Hidden Markov Models. By Parisa Abedi. Slides courtesy: Eric Xing

Hidden Markov Models. By Parisa Abedi. Slides courtesy: Eric Xing Hidden Markov Models By Parisa Abedi Slides courtesy: Eric Xing i.i.d to sequential data So far we assumed independent, identically distributed data Sequential (non i.i.d.) data Time-series data E.g. Speech

More information

Hidden Markov Models

Hidden Markov Models Hidden Markov Models Outline CG-islands The Fair Bet Casino Hidden Markov Model Decoding Algorithm Forward-Backward Algorithm Profile HMMs HMM Parameter Estimation Viterbi training Baum-Welch algorithm

More information

Hidden Markov Models for biological sequence analysis I

Hidden Markov Models for biological sequence analysis I Hidden Markov Models for biological sequence analysis I Master in Bioinformatics UPF 2014-2015 Eduardo Eyras Computational Genomics Pompeu Fabra University - ICREA Barcelona, Spain Example: CpG Islands

More information

STA 414/2104: Machine Learning

STA 414/2104: Machine Learning STA 414/2104: Machine Learning Russ Salakhutdinov Department of Computer Science! Department of Statistics! rsalakhu@cs.toronto.edu! http://www.cs.toronto.edu/~rsalakhu/ Lecture 9 Sequential Data So far

More information

6.047/6.878/HST.507 Computational Biology: Genomes, Networks, Evolution. Lecture 05. Hidden Markov Models Part II

6.047/6.878/HST.507 Computational Biology: Genomes, Networks, Evolution. Lecture 05. Hidden Markov Models Part II 6.047/6.878/HST.507 Computational Biology: Genomes, Networks, Evolution Lecture 05 Hidden Markov Models Part II 1 2 Module 1: Aligning and modeling genomes Module 1: Computational foundations Dynamic programming:

More information

Hidden Markov Models. Ivan Gesteira Costa Filho IZKF Research Group Bioinformatics RWTH Aachen Adapted from:

Hidden Markov Models. Ivan Gesteira Costa Filho IZKF Research Group Bioinformatics RWTH Aachen Adapted from: Hidden Markov Models Ivan Gesteira Costa Filho IZKF Research Group Bioinformatics RWTH Aachen Adapted from: www.ioalgorithms.info Outline CG-islands The Fair Bet Casino Hidden Markov Model Decoding Algorithm

More information

STA 4273H: Statistical Machine Learning

STA 4273H: Statistical Machine Learning STA 4273H: Statistical Machine Learning Russ Salakhutdinov Department of Statistics! rsalakhu@utstat.toronto.edu! http://www.utstat.utoronto.ca/~rsalakhu/ Sidney Smith Hall, Room 6002 Lecture 11 Project

More information

Hidden Markov Models. Three classic HMM problems

Hidden Markov Models. Three classic HMM problems An Introduction to Bioinformatics Algorithms www.bioalgorithms.info Hidden Markov Models Slides revised and adapted to Computational Biology IST 2015/2016 Ana Teresa Freitas Three classic HMM problems

More information

Markov Chains and Hidden Markov Models. COMP 571 Luay Nakhleh, Rice University

Markov Chains and Hidden Markov Models. COMP 571 Luay Nakhleh, Rice University Markov Chains and Hidden Markov Models COMP 571 Luay Nakhleh, Rice University Markov Chains and Hidden Markov Models Modeling the statistical properties of biological sequences and distinguishing regions

More information

Page 1. References. Hidden Markov models and multiple sequence alignment. Markov chains. Probability review. Example. Markovian sequence

Page 1. References. Hidden Markov models and multiple sequence alignment. Markov chains. Probability review. Example. Markovian sequence Page Hidden Markov models and multiple sequence alignment Russ B Altman BMI 4 CS 74 Some slides borrowed from Scott C Schmidler (BMI graduate student) References Bioinformatics Classic: Krogh et al (994)

More information

Hidden Markov Models The three basic HMM problems (note: change in notation) Mitch Marcus CSE 391

Hidden Markov Models The three basic HMM problems (note: change in notation) Mitch Marcus CSE 391 Hidden Markov Models The three basic HMM problems (note: change in notation) Mitch Marcus CSE 391 Parameters of an HMM States: A set of states S=s 1, s n Transition probabilities: A= a 1,1, a 1,2,, a n,n

More information

Introduction to Machine Learning CMU-10701

Introduction to Machine Learning CMU-10701 Introduction to Machine Learning CMU-10701 Hidden Markov Models Barnabás Póczos & Aarti Singh Slides courtesy: Eric Xing i.i.d to sequential data So far we assumed independent, identically distributed

More information

Today s Lecture: HMMs

Today s Lecture: HMMs Today s Lecture: HMMs Definitions Examples Probability calculations WDAG Dynamic programming algorithms: Forward Viterbi Parameter estimation Viterbi training 1 Hidden Markov Models Probability models

More information

Statistical Machine Learning Methods for Bioinformatics II. Hidden Markov Model for Biological Sequences

Statistical Machine Learning Methods for Bioinformatics II. Hidden Markov Model for Biological Sequences Statistical Machine Learning Methods for Bioinformatics II. Hidden Markov Model for Biological Sequences Jianlin Cheng, PhD Department of Computer Science University of Missouri 2008 Free for Academic

More information

HMM: Parameter Estimation

HMM: Parameter Estimation I529: Machine Learning in Bioinformatics (Spring 2017) HMM: Parameter Estimation Yuzhen Ye School of Informatics and Computing Indiana University, Bloomington Spring 2017 Content Review HMM: three problems

More information

Comparative Gene Finding. BMI/CS 776 Spring 2015 Colin Dewey

Comparative Gene Finding. BMI/CS 776  Spring 2015 Colin Dewey Comparative Gene Finding BMI/CS 776 www.biostat.wisc.edu/bmi776/ Spring 2015 Colin Dewey cdewey@biostat.wisc.edu Goals for Lecture the key concepts to understand are the following: using related genomes

More information

Stephen Scott.

Stephen Scott. 1 / 21 sscott@cse.unl.edu 2 / 21 Introduction Designed to model (profile) a multiple alignment of a protein family (e.g., Fig. 5.1) Gives a probabilistic model of the proteins in the family Useful for

More information

Dynamic Approaches: The Hidden Markov Model

Dynamic Approaches: The Hidden Markov Model Dynamic Approaches: The Hidden Markov Model Davide Bacciu Dipartimento di Informatica Università di Pisa bacciu@di.unipi.it Machine Learning: Neural Networks and Advanced Models (AA2) Inference as Message

More information

STATS 306B: Unsupervised Learning Spring Lecture 5 April 14

STATS 306B: Unsupervised Learning Spring Lecture 5 April 14 STATS 306B: Unsupervised Learning Spring 2014 Lecture 5 April 14 Lecturer: Lester Mackey Scribe: Brian Do and Robin Jia 5.1 Discrete Hidden Markov Models 5.1.1 Recap In the last lecture, we introduced

More information

Computational Genomics and Molecular Biology, Fall

Computational Genomics and Molecular Biology, Fall Computational Genomics and Molecular Biology, Fall 2014 1 HMM Lecture Notes Dannie Durand and Rose Hoberman November 6th Introduction In the last few lectures, we have focused on three problems related

More information

Hidden Markov Model. Ying Wu. Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208

Hidden Markov Model. Ying Wu. Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208 Hidden Markov Model Ying Wu Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208 http://www.eecs.northwestern.edu/~yingwu 1/19 Outline Example: Hidden Coin Tossing Hidden

More information

Hidden Markov Models and Gaussian Mixture Models

Hidden Markov Models and Gaussian Mixture Models Hidden Markov Models and Gaussian Mixture Models Hiroshi Shimodaira and Steve Renals Automatic Speech Recognition ASR Lectures 4&5 23&27 January 2014 ASR Lectures 4&5 Hidden Markov Models and Gaussian

More information

Hidden Markov Models. x 1 x 2 x 3 x K

Hidden Markov Models. x 1 x 2 x 3 x K Hidden Markov Models 1 1 1 1 2 2 2 2 K K K K x 1 x 2 x 3 x K HiSeq X & NextSeq Viterbi, Forward, Backward VITERBI FORWARD BACKWARD Initialization: V 0 (0) = 1 V k (0) = 0, for all k > 0 Initialization:

More information

Hidden Markov Models. Main source: Durbin et al., Biological Sequence Alignment (Cambridge, 98)

Hidden Markov Models. Main source: Durbin et al., Biological Sequence Alignment (Cambridge, 98) Hidden Markov Models Main source: Durbin et al., Biological Sequence Alignment (Cambridge, 98) 1 The occasionally dishonest casino A P A (1) = P A (2) = = 1/6 P A->B = P B->A = 1/10 B P B (1)=0.1... P

More information

CSCE 471/871 Lecture 3: Markov Chains and

CSCE 471/871 Lecture 3: Markov Chains and and and 1 / 26 sscott@cse.unl.edu 2 / 26 Outline and chains models (s) Formal definition Finding most probable state path (Viterbi algorithm) Forward and backward algorithms State sequence known State

More information

Data Mining in Bioinformatics HMM

Data Mining in Bioinformatics HMM Data Mining in Bioinformatics HMM Microarray Problem: Major Objective n Major Objective: Discover a comprehensive theory of life s organization at the molecular level 2 1 Data Mining in Bioinformatics

More information

Hidden Markov Models. x 1 x 2 x 3 x K

Hidden Markov Models. x 1 x 2 x 3 x K Hidden Markov Models 1 1 1 1 2 2 2 2 K K K K x 1 x 2 x 3 x K Viterbi, Forward, Backward VITERBI FORWARD BACKWARD Initialization: V 0 (0) = 1 V k (0) = 0, for all k > 0 Initialization: f 0 (0) = 1 f k (0)

More information

Lecture 9. Intro to Hidden Markov Models (finish up)

Lecture 9. Intro to Hidden Markov Models (finish up) Lecture 9 Intro to Hidden Markov Models (finish up) Review Structure Number of states Q 1.. Q N M output symbols Parameters: Transition probability matrix a ij Emission probabilities b i (a), which is

More information

Introduction to Hidden Markov Models for Gene Prediction ECE-S690

Introduction to Hidden Markov Models for Gene Prediction ECE-S690 Introduction to Hidden Markov Models for Gene Prediction ECE-S690 Outline Markov Models The Hidden Part How can we use this for gene prediction? Learning Models Want to recognize patterns (e.g. sequence

More information

Lecture 4: Hidden Markov Models: An Introduction to Dynamic Decision Making. November 11, 2010

Lecture 4: Hidden Markov Models: An Introduction to Dynamic Decision Making. November 11, 2010 Hidden Lecture 4: Hidden : An Introduction to Dynamic Decision Making November 11, 2010 Special Meeting 1/26 Markov Model Hidden When a dynamical system is probabilistic it may be determined by the transition

More information

Data-Intensive Computing with MapReduce

Data-Intensive Computing with MapReduce Data-Intensive Computing with MapReduce Session 8: Sequence Labeling Jimmy Lin University of Maryland Thursday, March 14, 2013 This work is licensed under a Creative Commons Attribution-Noncommercial-Share

More information

10. Hidden Markov Models (HMM) for Speech Processing. (some slides taken from Glass and Zue course)

10. Hidden Markov Models (HMM) for Speech Processing. (some slides taken from Glass and Zue course) 10. Hidden Markov Models (HMM) for Speech Processing (some slides taken from Glass and Zue course) Definition of an HMM The HMM are powerful statistical methods to characterize the observed samples of

More information

An Introduction to Bioinformatics Algorithms Hidden Markov Models

An Introduction to Bioinformatics Algorithms  Hidden Markov Models Hidden Markov Models Hidden Markov Models Outline CG-islands The Fair Bet Casino Hidden Markov Model Decoding Algorithm Forward-Backward Algorithm Profile HMMs HMM Parameter Estimation Viterbi training

More information

Statistical Machine Learning Methods for Biomedical Informatics II. Hidden Markov Model for Biological Sequences

Statistical Machine Learning Methods for Biomedical Informatics II. Hidden Markov Model for Biological Sequences Statistical Machine Learning Methods for Biomedical Informatics II. Hidden Markov Model for Biological Sequences Jianlin Cheng, PhD William and Nancy Thompson Missouri Distinguished Professor Department

More information

HMM applications. Applications of HMMs. Gene finding with HMMs. Using the gene finder

HMM applications. Applications of HMMs. Gene finding with HMMs. Using the gene finder HMM applications Applications of HMMs Gene finding Pairwise alignment (pair HMMs) Characterizing protein families (profile HMMs) Predicting membrane proteins, and membrane protein topology Gene finding

More information

Markov Chains and Hidden Markov Models. = stochastic, generative models

Markov Chains and Hidden Markov Models. = stochastic, generative models Markov Chains and Hidden Markov Models = stochastic, generative models (Drawing heavily from Durbin et al., Biological Sequence Analysis) BCH339N Systems Biology / Bioinformatics Spring 2016 Edward Marcotte,

More information

EECS730: Introduction to Bioinformatics

EECS730: Introduction to Bioinformatics EECS730: Introduction to Bioinformatics Lecture 07: profile Hidden Markov Model http://bibiserv.techfak.uni-bielefeld.de/sadr2/databasesearch/hmmer/profilehmm.gif Slides adapted from Dr. Shaojie Zhang

More information

Grundlagen der Bioinformatik, SS 09, D. Huson, June 16, S. Durbin, S. Eddy, A. Krogh and G. Mitchison, Biological Sequence

Grundlagen der Bioinformatik, SS 09, D. Huson, June 16, S. Durbin, S. Eddy, A. Krogh and G. Mitchison, Biological Sequence rundlagen der Bioinformatik, SS 09,. Huson, June 16, 2009 81 7 Markov chains and Hidden Markov Models We will discuss: Markov chains Hidden Markov Models (HMMs) Profile HMMs his chapter is based on: nalysis,

More information

CS711008Z Algorithm Design and Analysis

CS711008Z Algorithm Design and Analysis .. Lecture 6. Hidden Markov model and Viterbi s decoding algorithm Institute of Computing Technology Chinese Academy of Sciences, Beijing, China . Outline The occasionally dishonest casino: an example

More information

Linear Dynamical Systems

Linear Dynamical Systems Linear Dynamical Systems Sargur N. srihari@cedar.buffalo.edu Machine Learning Course: http://www.cedar.buffalo.edu/~srihari/cse574/index.html Two Models Described by Same Graph Latent variables Observations

More information

Sequence labeling. Taking collective a set of interrelated instances x 1,, x T and jointly labeling them

Sequence labeling. Taking collective a set of interrelated instances x 1,, x T and jointly labeling them HMM, MEMM and CRF 40-957 Special opics in Artificial Intelligence: Probabilistic Graphical Models Sharif University of echnology Soleymani Spring 2014 Sequence labeling aking collective a set of interrelated

More information

Hidden Markov Models

Hidden Markov Models Andrea Passerini passerini@disi.unitn.it Statistical relational learning The aim Modeling temporal sequences Model signals which vary over time (e.g. speech) Two alternatives: deterministic models directly

More information

HIDDEN MARKOV MODELS

HIDDEN MARKOV MODELS HIDDEN MARKOV MODELS Outline CG-islands The Fair Bet Casino Hidden Markov Model Decoding Algorithm Forward-Backward Algorithm Profile HMMs HMM Parameter Estimation Viterbi training Baum-Welch algorithm

More information

1/22/13. Example: CpG Island. Question 2: Finding CpG Islands

1/22/13. Example: CpG Island. Question 2: Finding CpG Islands I529: Machine Learning in Bioinformatics (Spring 203 Hidden Markov Models Yuzhen Ye School of Informatics and Computing Indiana Univerty, Bloomington Spring 203 Outline Review of Markov chain & CpG island

More information

HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM

HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM I529: Machine Learning in Bioinformatics (Spring 2017) HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM Yuzhen Ye School of Informatics and Computing Indiana University, Bloomington

More information

Stephen Scott.

Stephen Scott. 1 / 27 sscott@cse.unl.edu 2 / 27 Useful for modeling/making predictions on sequential data E.g., biological sequences, text, series of sounds/spoken words Will return to graphical models that are generative

More information

L23: hidden Markov models

L23: hidden Markov models L23: hidden Markov models Discrete Markov processes Hidden Markov models Forward and Backward procedures The Viterbi algorithm This lecture is based on [Rabiner and Juang, 1993] Introduction to Speech

More information

MACHINE LEARNING 2 UGM,HMMS Lecture 7

MACHINE LEARNING 2 UGM,HMMS Lecture 7 LOREM I P S U M Royal Institute of Technology MACHINE LEARNING 2 UGM,HMMS Lecture 7 THIS LECTURE DGM semantics UGM De-noising HMMs Applications (interesting probabilities) DP for generation probability

More information

Multiple Sequence Alignment using Profile HMM

Multiple Sequence Alignment using Profile HMM Multiple Sequence Alignment using Profile HMM. based on Chapter 5 and Section 6.5 from Biological Sequence Analysis by R. Durbin et al., 1998 Acknowledgements: M.Sc. students Beatrice Miron, Oana Răţoi,

More information

CSCE 478/878 Lecture 9: Hidden. Markov. Models. Stephen Scott. Introduction. Outline. Markov. Chains. Hidden Markov Models. CSCE 478/878 Lecture 9:

CSCE 478/878 Lecture 9: Hidden. Markov. Models. Stephen Scott. Introduction. Outline. Markov. Chains. Hidden Markov Models. CSCE 478/878 Lecture 9: Useful for modeling/making predictions on sequential data E.g., biological sequences, text, series of sounds/spoken words Will return to graphical models that are generative sscott@cse.unl.edu 1 / 27 2

More information

11.3 Decoding Algorithm

11.3 Decoding Algorithm 11.3 Decoding Algorithm 393 For convenience, we have introduced π 0 and π n+1 as the fictitious initial and terminal states begin and end. This model defines the probability P(x π) for a given sequence

More information

Hidden Markov Modelling

Hidden Markov Modelling Hidden Markov Modelling Introduction Problem formulation Forward-Backward algorithm Viterbi search Baum-Welch parameter estimation Other considerations Multiple observation sequences Phone-based models

More information

Hidden Markov Models Part 2: Algorithms

Hidden Markov Models Part 2: Algorithms Hidden Markov Models Part 2: Algorithms CSE 6363 Machine Learning Vassilis Athitsos Computer Science and Engineering Department University of Texas at Arlington 1 Hidden Markov Model An HMM consists of:

More information

6.864: Lecture 5 (September 22nd, 2005) The EM Algorithm

6.864: Lecture 5 (September 22nd, 2005) The EM Algorithm 6.864: Lecture 5 (September 22nd, 2005) The EM Algorithm Overview The EM algorithm in general form The EM algorithm for hidden markov models (brute force) The EM algorithm for hidden markov models (dynamic

More information

Grundlagen der Bioinformatik, SS 08, D. Huson, June 16, S. Durbin, S. Eddy, A. Krogh and G. Mitchison, Biological Sequence

Grundlagen der Bioinformatik, SS 08, D. Huson, June 16, S. Durbin, S. Eddy, A. Krogh and G. Mitchison, Biological Sequence rundlagen der Bioinformatik, SS 08,. Huson, June 16, 2008 89 8 Markov chains and Hidden Markov Models We will discuss: Markov chains Hidden Markov Models (HMMs) Profile HMMs his chapter is based on: nalysis,

More information

Statistical Methods for NLP

Statistical Methods for NLP Statistical Methods for NLP Sequence Models Joakim Nivre Uppsala University Department of Linguistics and Philology joakim.nivre@lingfil.uu.se Statistical Methods for NLP 1(21) Introduction Structured

More information

3/1/17. Content. TWINSCAN model. Example. TWINSCAN algorithm. HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM

3/1/17. Content. TWINSCAN model. Example. TWINSCAN algorithm. HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM I529: Machine Learning in Bioinformatics (Spring 2017) Content HMM for modeling aligned multiple sequences: phylo-hmm & multivariate HMM Yuzhen Ye School of Informatics and Computing Indiana University,

More information

VL Algorithmen und Datenstrukturen für Bioinformatik ( ) WS15/2016 Woche 16

VL Algorithmen und Datenstrukturen für Bioinformatik ( ) WS15/2016 Woche 16 VL Algorithmen und Datenstrukturen für Bioinformatik (19400001) WS15/2016 Woche 16 Tim Conrad AG Medical Bioinformatics Institut für Mathematik & Informatik, Freie Universität Berlin Based on slides by

More information

Linear Dynamical Systems (Kalman filter)

Linear Dynamical Systems (Kalman filter) Linear Dynamical Systems (Kalman filter) (a) Overview of HMMs (b) From HMMs to Linear Dynamical Systems (LDS) 1 Markov Chains with Discrete Random Variables x 1 x 2 x 3 x T Let s assume we have discrete

More information

Machine Learning for natural language processing

Machine Learning for natural language processing Machine Learning for natural language processing Hidden Markov Models Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2016 1 / 33 Introduction So far, we have classified texts/observations

More information

Markov Models & DNA Sequence Evolution

Markov Models & DNA Sequence Evolution 7.91 / 7.36 / BE.490 Lecture #5 Mar. 9, 2004 Markov Models & DNA Sequence Evolution Chris Burge Review of Markov & HMM Models for DNA Markov Models for splice sites Hidden Markov Models - looking under

More information

Bioinformatics 2 - Lecture 4

Bioinformatics 2 - Lecture 4 Bioinformatics 2 - Lecture 4 Guido Sanguinetti School of Informatics University of Edinburgh February 14, 2011 Sequences Many data types are ordered, i.e. you can naturally say what is before and what

More information

Pairwise alignment using HMMs

Pairwise alignment using HMMs Pairwise alignment using HMMs The states of an HMM fulfill the Markov property: probability of transition depends only on the last state. CpG islands and casino example: HMMs emit sequence of symbols (nucleotides

More information

Conditional Random Field

Conditional Random Field Introduction Linear-Chain General Specific Implementations Conclusions Corso di Elaborazione del Linguaggio Naturale Pisa, May, 2011 Introduction Linear-Chain General Specific Implementations Conclusions

More information

Bioinformatics 1--lectures 15, 16. Markov chains Hidden Markov models Profile HMMs

Bioinformatics 1--lectures 15, 16. Markov chains Hidden Markov models Profile HMMs Bioinformatics 1--lectures 15, 16 Markov chains Hidden Markov models Profile HMMs target sequence database input to database search results are sequence family pseudocounts or background-weighted pseudocounts

More information

Lecture 11: Hidden Markov Models

Lecture 11: Hidden Markov Models Lecture 11: Hidden Markov Models Cognitive Systems - Machine Learning Cognitive Systems, Applied Computer Science, Bamberg University slides by Dr. Philip Jackson Centre for Vision, Speech & Signal Processing

More information

Lecture 12: Algorithms for HMMs

Lecture 12: Algorithms for HMMs Lecture 12: Algorithms for HMMs Nathan Schneider (some slides from Sharon Goldwater; thanks to Jonathan May for bug fixes) ENLP 26 February 2018 Recap: tagging POS tagging is a sequence labelling task.

More information

Hidden Markov models in population genetics and evolutionary biology

Hidden Markov models in population genetics and evolutionary biology Hidden Markov models in population genetics and evolutionary biology Gerton Lunter Wellcome Trust Centre for Human Genetics Oxford, UK April 29, 2013 Topics for today Markov chains Hidden Markov models

More information

Computational Biology Lecture #3: Probability and Statistics. Bud Mishra Professor of Computer Science, Mathematics, & Cell Biology Sept

Computational Biology Lecture #3: Probability and Statistics. Bud Mishra Professor of Computer Science, Mathematics, & Cell Biology Sept Computational Biology Lecture #3: Probability and Statistics Bud Mishra Professor of Computer Science, Mathematics, & Cell Biology Sept 26 2005 L2-1 Basic Probabilities L2-2 1 Random Variables L2-3 Examples

More information

Recap: HMM. ANLP Lecture 9: Algorithms for HMMs. More general notation. Recap: HMM. Elements of HMM: Sharon Goldwater 4 Oct 2018.

Recap: HMM. ANLP Lecture 9: Algorithms for HMMs. More general notation. Recap: HMM. Elements of HMM: Sharon Goldwater 4 Oct 2018. Recap: HMM ANLP Lecture 9: Algorithms for HMMs Sharon Goldwater 4 Oct 2018 Elements of HMM: Set of states (tags) Output alphabet (word types) Start state (beginning of sentence) State transition probabilities

More information

Plan for today. ! Part 1: (Hidden) Markov models. ! Part 2: String matching and read mapping

Plan for today. ! Part 1: (Hidden) Markov models. ! Part 2: String matching and read mapping Plan for today! Part 1: (Hidden) Markov models! Part 2: String matching and read mapping! 2.1 Exact algorithms! 2.2 Heuristic methods for approximate search (Hidden) Markov models Why consider probabilistics

More information

Hidden Markov Models. based on chapters from the book Durbin, Eddy, Krogh and Mitchison Biological Sequence Analysis via Shamir s lecture notes

Hidden Markov Models. based on chapters from the book Durbin, Eddy, Krogh and Mitchison Biological Sequence Analysis via Shamir s lecture notes Hidden Markov Models based on chapters from the book Durbin, Eddy, Krogh and Mitchison Biological Sequence Analysis via Shamir s lecture notes music recognition deal with variations in - actual sound -

More information

HMMs and biological sequence analysis

HMMs and biological sequence analysis HMMs and biological sequence analysis Hidden Markov Model A Markov chain is a sequence of random variables X 1, X 2, X 3,... That has the property that the value of the current state depends only on the

More information

Lecture 3: Markov chains.

Lecture 3: Markov chains. 1 BIOINFORMATIK II PROBABILITY & STATISTICS Summer semester 2008 The University of Zürich and ETH Zürich Lecture 3: Markov chains. Prof. Andrew Barbour Dr. Nicolas Pétrélis Adapted from a course by Dr.

More information

Human Mobility Pattern Prediction Algorithm using Mobile Device Location and Time Data

Human Mobility Pattern Prediction Algorithm using Mobile Device Location and Time Data Human Mobility Pattern Prediction Algorithm using Mobile Device Location and Time Data 0. Notations Myungjun Choi, Yonghyun Ro, Han Lee N = number of states in the model T = length of observation sequence

More information

Hidden Markov Models

Hidden Markov Models Hidden Markov Models CI/CI(CS) UE, SS 2015 Christian Knoll Signal Processing and Speech Communication Laboratory Graz University of Technology June 23, 2015 CI/CI(CS) SS 2015 June 23, 2015 Slide 1/26 Content

More information

Lecture 12: Algorithms for HMMs

Lecture 12: Algorithms for HMMs Lecture 12: Algorithms for HMMs Nathan Schneider (some slides from Sharon Goldwater; thanks to Jonathan May for bug fixes) ENLP 17 October 2016 updated 9 September 2017 Recap: tagging POS tagging is a

More information

Hidden Markov Models. music recognition. deal with variations in - pitch - timing - timbre 2

Hidden Markov Models. music recognition. deal with variations in - pitch - timing - timbre 2 Hidden Markov Models based on chapters from the book Durbin, Eddy, Krogh and Mitchison Biological Sequence Analysis Shamir s lecture notes and Rabiner s tutorial on HMM 1 music recognition deal with variations

More information

Hidden Markov Models. Hosein Mohimani GHC7717

Hidden Markov Models. Hosein Mohimani GHC7717 Hidden Markov Models Hosein Mohimani GHC7717 hoseinm@andrew.cmu.edu Fair et Casino Problem Dealer flips a coin and player bets on outcome Dealer use either a fair coin (head and tail equally likely) or

More information

Genome 373: Hidden Markov Models II. Doug Fowler

Genome 373: Hidden Markov Models II. Doug Fowler Genome 373: Hidden Markov Models II Doug Fowler Review From Hidden Markov Models I What does a Markov model describe? Review From Hidden Markov Models I A T A Markov model describes a random process of

More information

Machine Learning for OR & FE

Machine Learning for OR & FE Machine Learning for OR & FE Hidden Markov Models Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com Additional References: David

More information

CS 7180: Behavioral Modeling and Decision- making in AI

CS 7180: Behavioral Modeling and Decision- making in AI CS 7180: Behavioral Modeling and Decision- making in AI Learning Probabilistic Graphical Models Prof. Amy Sliva October 31, 2012 Hidden Markov model Stochastic system represented by three matrices N =

More information

Brief Introduction of Machine Learning Techniques for Content Analysis

Brief Introduction of Machine Learning Techniques for Content Analysis 1 Brief Introduction of Machine Learning Techniques for Content Analysis Wei-Ta Chu 2008/11/20 Outline 2 Overview Gaussian Mixture Model (GMM) Hidden Markov Model (HMM) Support Vector Machine (SVM) Overview

More information

Hidden Markov Models and Their Applications in Biological Sequence Analysis

Hidden Markov Models and Their Applications in Biological Sequence Analysis Hidden Markov Models and Their Applications in Biological Sequence Analysis Byung-Jun Yoon Dept. of Electrical & Computer Engineering Texas A&M University, College Station, TX 77843-3128, USA Abstract

More information

Hidden Markov Models (HMMs) November 14, 2017

Hidden Markov Models (HMMs) November 14, 2017 Hidden Markov Models (HMMs) November 14, 2017 inferring a hidden truth 1) You hear a static-filled radio transmission. how can you determine what did the sender intended to say? 2) You know that genes

More information

More on HMMs and other sequence models. Intro to NLP - ETHZ - 18/03/2013

More on HMMs and other sequence models. Intro to NLP - ETHZ - 18/03/2013 More on HMMs and other sequence models Intro to NLP - ETHZ - 18/03/2013 Summary Parts of speech tagging HMMs: Unsupervised parameter estimation Forward Backward algorithm Bayesian variants Discriminative

More information

Part of Speech Tagging: Viterbi, Forward, Backward, Forward- Backward, Baum-Welch. COMP-599 Oct 1, 2015

Part of Speech Tagging: Viterbi, Forward, Backward, Forward- Backward, Baum-Welch. COMP-599 Oct 1, 2015 Part of Speech Tagging: Viterbi, Forward, Backward, Forward- Backward, Baum-Welch COMP-599 Oct 1, 2015 Announcements Research skills workshop today 3pm-4:30pm Schulich Library room 313 Start thinking about

More information

Hidden Markov Models. x 1 x 2 x 3 x N

Hidden Markov Models. x 1 x 2 x 3 x N Hidden Markov Models 1 1 1 1 K K K K x 1 x x 3 x N Example: The dishonest casino A casino has two dice: Fair die P(1) = P() = P(3) = P(4) = P(5) = P(6) = 1/6 Loaded die P(1) = P() = P(3) = P(4) = P(5)

More information

COMP90051 Statistical Machine Learning

COMP90051 Statistical Machine Learning COMP90051 Statistical Machine Learning Semester 2, 2017 Lecturer: Trevor Cohn 24. Hidden Markov Models & message passing Looking back Representation of joint distributions Conditional/marginal independence

More information