Hidden Markov Models

Size: px
Start display at page:

Download "Hidden Markov Models"

Transcription

1 Hidden Markov Models Dr Philip Jackson Centre for Vision, Speech & Signal Processing University of Surrey, UK

2 Outline 1. Recognizing patterns 2. Markov and hidden-markov processes Likelihood calculation Decoding Training 3. Gaussian pdfs HMM-GMM 4. Practical issues 2

3 Recognizing patterns Pattern recognition is an important enabling technology in many machine intelligence applications, e.g., automatic speech recognition. A pattern is a structured sequence of observations. Various approaches have been employed: Rule-based heuristics Pattern matching dynamic time warping (deterministic) Hidden Markov models (stochastic) Classification artificial neural networks (discriminative) 3

4 Distance-from-template pattern matching Template the features of a typical example of the sequence to be recognized e.g., filterbank, linear prediction, PLP, cepstrum, MFCC Distance a measure of how well the features of a new test sequence match those of the reference template e.g., Euclidean distance, Mahalanobis distance, Itakura distance 4

5 Sequences of speech features Time-frequency representation of speech as observation sequences for a template and two test words: match, match, dummy 5

6 Dynamic time warping DTW is a method of pattern matching that allows for timescale variations in sequences of the same class. frames in template i d ( t, i) D( T, N) a b d c c t a a b c d frames in test utterance Two aligned instances of the same word (after Holmes & Holmes, 2001). Open circles mark permitted predecessors to the closed circle at (t, i). 6

7 Dynamic programming for time alignment Cumulative distance along the best path upto frame N in template and T th test frame is: D(T, N) = min t,i t 1..T i 1..N d(t, i) (1) where d(t, i) is distance between features from tth frame of test utterance and those from ith frame of template. Allowing transitions from current and previous frames only, we compute the cost recursively: D(t, i) = min [D(t, i 1), D(t 1, i 1), D(t 1, i)] + d(t, i) (2) 7

8 DTW algorithm 1. Initialise the cumulative distances for t = 1, D(1, i) = { d(1, i) for i = 1 D(1, i 1) + d(1, i) for i = 2,..., N (3) 2. Recur for t = 2,..., T, D(t, i) = D(t 1, i) + d(t, i) for i = 1 min [ D(t, i 1), D(t 1, i 1), D(t 1, i) ] + d(t, i) for i = 2,..., N (4) 3. Finalise, the cumulative distance up to the final point gives the total cost of the match: D(T, N) 8

9 Sequences of speech features Time-frequency representation of speech as observation sequences for a template and two test words: match, match, dummy 9

10 Inter-utterance distances Euclidean distances between template and test word features 10

11 Summary of Dynamic Time Warping The DTW approach allows efficient computation with limited flexibility in the alignment. It treats templates as deterministic with residual noise. Problems: 1. How much flexibility should we allow? 2. How should we penalise any warping? 3. How do we determine a fair distance metric? 4. How many templates should we register? 5. How do we select the best ones? Solution: Develop an inference framework to build templates based on the statistics of our data. 11

12 Characteristics of the desired model evolution of sequence should not be deterministic observations are coloured depending on class cannot directly observe class stochastic sequence + stochastic observations Applications: automatic speech recognition, optical character recognition, protein and DNA sequencing, speech synthesis, noise-robust data transmission, crytoanalsis, machine translation, image classification, etc. 12

13 Introduction to Markov models We can model stochastic sequences using a Markov chain, e.g., the state topology of an ergodic Markov model: For 1st-order Markov chains, probability of state occupation depends only on the previous step (Rabiner, 1989): P (x t = j x t 1 = i, x t 2 = h,...) P (x t = j x t 1 = i) (5) So, if we assume the RHS of eq. 5 is independent of time, we can write the state-transition probabilities with the properties a ij = P (x t = j x t 1 = i), 1 i, j N (6) a ij 0 and N j=1 a ij = 1 i, j 1..N 13

14 Weather prediction example Let us represent the state of the weather by a 1st-order, ergodic Markov model, M: state 1: state 2: state 3: raining cloudy sunny with state-transition probabilities expressed in matrix form: A = { a ij } = (7) 14

15 Weather predictor probability calculation Given today s weather, what is the probability of directly observing the sequence of weather states rain-sun-sun with model M? A = rain cloud sun rain cloud sun P (X M) = P (X = {1, 3, 3} M) = P (x 1 = rain today) P (x 2 = sun x 1 = rain) P (x 3 = sun x 2 = sun) = a 21 a 13 a 33 = =

16 Start and end of a stochastic state sequence Null states deal with the start and end of sequences, as in the state topology of this left-right Markov model: a 11 a 22 a 33 π 1 a 12 a 23 η Entry probabilities at t=1 for each state i are defined π i = P (x 1 = i) 1 i N (8) with the properties π i 0, and N i=1 π i = 1 for i 1..N Exit probabilities at t=t are similarly defined η i = P (x T = i) 1 i N (9) with properties η i 0, and η i + N j=1 a ij = 1 for i 1..N 16

17 Example: probability of MM state sequence Consider the state topology state transition probabilities A = The probability of state sequence X = {1, 2, 2} is P (X M) = π 1 a 12 a 22 η 2 = =

18 Summary of Markov models State topology diagram: Entry probabilities π = {π i } = [ ] and exit probabilities η = {η i } = [ ] T are combined with state transition probabilities in complete A matrix: A = Probability of a given state sequence X: P (X M) = π x1 T a xt 1 x t t=2 η xt (10) 18

19 Introduction to hidden Markov models Hidden Markov Models (HMMs) use a Markov chain to model stochastic state sequences which emit stochastic observations, e.g., the state topology of an ergodic HMM: b b 3 2 b2 Probability of state i generating a discrete observation o t, which has one of a finite set of values, k 1..K, is b i (o t ) = P (o t = k x t = i). (11) Probability distribution of a continuous observation o t, which can have one of an infinite set of values, is b i (o t ) = p(o t x t = i). (12) We begin by considering only discrete observations. 19

20 Observations in discretised feature space c 2 k =1 k =2 k =3 c 1 Discrete output probability histogram P(o) K k 20

21 Parameters of a discrete HMM, λ State transition probabilities, A = {π j, a ij, η i } = {P (x t = j x t 1 = i)} where N is the number of states for 1 i, j N Discrete output probabilities, B = {b i (k)} = {P (o t = k x t = i)} where K is the number of observation types for 1 i N 1 k K a 11 a 22 a 33 a 44 π 1 a 12 a 23 a b 1(o 1) b 1(o 2) b 2(o 3) b 3(o 4) b 3(o 5) η 4 b 4(o 6) generating a state sequence X = { 1, 1, 2, 3, 3, 4 } and observations O = {o 1, o 2,..., o 6 } o 1 o 2 o 3 o 4 o 5 o 6 21

22 HMM probability calculation The joint likelihood of state and observation sequences is P (O, X λ) = P (X λ) P (O X, λ) (13) a 11 a 22 a 33 a 44 π 1 a 12 a 23 a b 1(o 1) b 1(o 2) b 2(o 3) b 3(o 4) b 3(o 5) η 4 b 4(o 6) o 1 o 2 o 3 o 4 o 5 o 6 The state sequence X = {1, 1, 2, 3, 3, 4} produces the set of observations O = {o 1, o 2,..., o 6 }: P (X λ) = π 1 a 11 a 12 a 23 a 33 a 34 η 4 P (O X, λ) = b 1 (o 1 ) b 1 (o 2 ) b 2 (o 3 ) b 3 (o 4 ) b 3 (o 5 ) b 4 (o 6 ) P (O, X λ) = π x1 b x1 (o 1 ) T t=2 a xt 1 x t b xt (o t ) η xt (14) 22

23 Example: probability of HMM state sequence Consider state topology and state transition matrix: A = o1 o 2 o 3 Output probabilities: B = [ b1 b 2 ] = R G B [ ] Probability of observations with state sequence X = {1, 2, 2}: P (O, X λ) = P (X λ) P (O X, λ) = π 1 b 1 (o 1 ) a 12 b 2 (o 2 ) a 22 b 2 (o 3 ) η 2 = = given observations O = {R, G, G}. 23

24 HMM Recognition & Training Three tasks within HMM framework 1. Compute likelihood of a set of observations with a given model, P (O λ) 2. Decode a test sequence by calculating the most likely path, X 3. Optimise pattern templates by training parameters in the models, Λ = {λ} State Observations 24

25 Normalisation Probability fundamentals Discrete: probability of all possibilities sums to one: all X P (X) = 1. (15) Continuous: integral over entire probabilty density function (pdf) comes to one: p(x) dx = 1. (16) Joint probability The joint probability that two independent events occur is the product of their individual probabilities: P (A, B) = P (A) P (B). (17) 25

26 Conditional probability If two events are dependent, we need to determine their conditional probabilities. The joint probability is now P (A, B) = P (A) P (B A), (18) where P (B A) is the probability of event B given that A occurred; conversely, taking the events the other way P (A, B) = P (A B) P (B). (19) P (A, B) A Ā B B These expressions can be rearranged to yield the conditional probabilities. Also, we can combine them to obtain the theorem proposed by Rev. Thomas Bayes (C.18th). 26

27 Bayes theorem Equating the RHS of eqs. 18 and 19 gives P (B A) = P (A B) P (B). (20) P (A) For example, in a word recognition application we have P (w O) = which can be interpreted as p(o w) P (w), (21) p(o) posterior = likelihood prior evidence (22) posterior probability gives basis for Bayesian inference, likelihood describes how likely are data for given class, prior incorporates other knowledge (e.g., language model), evidence normalises and is often discarded (same for all classes). 27

28 Marginalisation Discrete: probability of event B, which depends on A, is the sum over A of all joint probabilities: P (B) = all A P (A, B) = all A P (B A) P (A). (23) Continuous: similarly, the nuisance factor x can be eliminated from its joint pdf with y: p(y) = p(x, y) dx = p(y x)p(x) dx. (24) 28

29 Task 1: Computing P (O λ) So far, we calculated the joint probability of observations and state sequence, for a given model λ, P (O, X λ) = P (X λ) P (O X, λ) For the total probability of the observations, we marginalise the state sequence by summing over all possible X: P (O λ) = P (O, X λ) = P (o T 1, xt 1 λ) (25) all X all x T 1 Now, we define forward likelihood for state j as α t (j) = P (o t 1, x t = j λ) = {x t 1 1, x t=j} P (o t 1, xt 1 λ) (26) and apply the HMM s simplifying assumptions to yield α t (j) = N i=1 α t 1 (i) P (x t = j x t 1 = i, λ) P (o t x t = j, λ) (27) as current state x t depends only on previous state x t 1, and observation o t on current state (Gold & Morgan, 2000). 29

30 Forward procedure To calculate forward likelihood, α t (i) = P (o t 1, x t = i λ): 1. Initialise at t = 1, α 1 (i) = π i b i (o 1 ) for 1 i N 2. Recur for t = {2, 3,..., T }, α t (j) = [ Ni=1 α t 1 (i) a ij ] bj (o t ) for 1 j N (28) 3. Finalise, P (O λ) = N i=1 α T (i) η i Thus, we can solve Task 1 efficiently by recursion. 30

31 Worked example of the forward procedure state transition matrix A = output matrix B = [ ] State Time α 1 (1) = = 0.5 α 1 (2) = 0 0 = 0 α 2 (1) = = 0.08 α 2 (2) = = 0.09 α 3 (1) = = α 3 (2) = ( ) 0.9 = P (O λ) = =

32 Backward procedure We define backward likelihood, β t (i) = P (o T t+1 x t = i, λ), and calculate: 1. Initialise at t = T, β T (i) = η i for 1 i N 2. Recur for t = {T 1, T 2,..., 1}, β t (i) = N j=1 a ij b j (o t+1 ) β t+1 (j) for 1 i N (29) 3. Finalise, P (O λ) = N i=1 π i b i (o 1 ) β 1 (i) This is an equivalent way of computing P (O λ) recursively. 32

33 Task 2: finding the best path Given observations O = {o 1,..., o T }, find the HMM state sequence X = {x 1,..., x T } that has greatest likelihood where X = arg max X P (O, X λ), (30) P (O, X λ) = P (O X, λ)p (X λ) = π x1 b x1 (o 1 ) T t=2 a xt 1 x t b xt (o t ) η xt (31) Viterbi algorithm is an inductive method to find optimal state sequence X efficiently, similar to forward procedure. It computes maximum cumulative likelihood δ t (i) up to current time t for each state i: δ t (i) = max P (o t {x t 1 1, x 1, xt 1 1, x t = i λ) (32) t=i} 33

34 Viterbi algorithm To compute the maximum cumulative likelihood, δ t (i): 1. Initialise at t = 1, δ 1 (i) = π i b i (o 1 ) ψ 1 (i) = 0 2. Recur for t = {2, 3,..., T }, δ t (j) = max i [ δt 1 (i)a ij ] bj (o t ) ψ t (j) = arg max i [ δt 1 (i)a ij ] for 1 i N for 1 j N 3. Finalise, P (O, X λ) = max i [δ T (i)η i ] x T = arg max i [δ T (i)η i ] 4. Trace back, for t = {T, T 1,..., 2}, x t 1 = ψ t ( x t ), and X = {x 1, x 2,..., x T } (33) 34

35 Illustration of the Viterbi algorithm 1. Initialise, δ 1 (i) = π i b i (o 1 ) ψ 1 (i) = 0 State Recur for t = 2, δ 2 (j) = max i [ δ1 (i)a ij ] bj (o 2 ) ψ 2 (j) = arg max i [ δ1 (i)a ij ] Recur for t = 3, δ 3 (j) = max i [ δ2 (i)a ij ] bj (o 3 ) ψ 3 (j) = arg max i [ δ2 (i)a ij ] State 1 2 State Time Time Time 3. Finalise, P (O, X λ) = max i [δ 3 (i)η i ] x 3 = arg max i [δ 3 (i)η i ] State Trace back for t={3..2}, x 2 =ψ ( ) 3 x 3 ( x 2 ) x 1 =ψ 2 X ={x 1, x 2, x 3 } State Time Time 35

36 Worked example of the Viterbi algorithm state transition matrix A = output matrix B = [ ] State Time δ 1 (1) = = 0.5 ψ 1 (1) = 0 δ 1 (2) = 0 0 = 0 ψ 1 (2) = 0 δ 2 (1) = = 0.08 ψ 2 (1) = 1 δ 2 (2) = = 0.09 ψ 2 (2) = 1 δ 3 (1) = = ψ 3 (1) = 1 δ 3 (2) = max( , ) 0.9 = ψ 3 (2) = 2 P (O, X λ) = =

37 Isolated word recognition application The problem is to find ŵ = arg max i where, according to Bayes, {P (w i O)}, (34) P (w i O) = P (O w i) P (w i ). (35) P (O) Concept: a single word w Speech Waveform Parameterise Speech Vectors Recognise Isolated word problem (Young et al., 2009) w 37

38 Isolated word recognition application In Viterbi decoding, P (O w i ) P (O λ i ) P (O, X λ i ) and the best path X identifies the recognition output. Task grammar: $word = ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE OH ZERO; ( SENT-START $word SENT-END ) one E.g.: five, oh, six one two two... zero Isolated word recognition trellis diagram 38

39 Task 3: training the models Motivation for the most likely model parameters Given two different probability density functions (pdfs), p(o) 1 2 o how would you classify observations in regions 1 and 2 by least-squares, and compare this to their relative likelihoods? 39

40 Maximum likelihood training In general, we want to find the value of some model parameter c that is most likely to give our set of training data O train This maximum likelihood (ML) estimate ĉ is obtained by setting the derivative of P (O train c) w.r.t. c equal to zero, which is equivalent to: ln P (O train ĉ) c = 0 (36) Solving this likelihood equation tells us how to optimise the model parameters in training. 40

41 Re-estimating the parameters of the model λ As a preliminary approach, let us use the optimal path X computed by the Viterbi algorithm with some initial model parameters λ = {A, B}. In so doing, we approximate the total likelihood of the observations: P (O λ) = all X P (O, X λ) P (O, X λ) (37) Using X, we make a hard binary decision about the state occupation, q t (i) {0, 1}, and train the parameters of our model accordingly. 41

42 Viterbi training (hard state assignment) Model parameters can be re-estimated using the Viterbi alignment to assign observations to states (a.k.a. segmental k-means training). State-transition probabilities, â ij = Tt=2 q t 1 (i) q t (j) Tt=1 q t (i) where state indicator q t (i) = Discrete output probabilities, ˆb j (k) = Tt=1 q t (j) ω t (k) Tt=1 q t (j) { 1 0 for 1 i, j N for i = x t otherwise for 1 j N and 1 k K where event indicator ω t (k) = { 1 0 for k = o t otherwise 42

43 Maximum likelihood training by EM Baum-Welch re-estimation (occupation) Yet, the hidden state occupation is not known with absolute certainty. So, the expectation maximisation (EM) method optimises the model parameters based on soft assignment of observations to states via the occupation likelihood, γ t (i) = P (x t = i O, λ) (38) relaxing the assumption previously made in eq. 37. We can rearrange, using Bayes theorem, to obtain γ t (i) = P (O, x t = i λ) P (O λ) = α t(i) β t (i) P (O λ) (39) where α t, β t and P (O λ) are computed by the forward and backward procedures, which also give P (O λ). 43

44 Baum-Welch re-estimation (transition) Similarly, we also define a transition likelihood, ξ t (i, j) = P ( x t 1 = i, x t = j O, λ ) = P ( O, x t 1 = i, x t = j λ ) P (O λ) = α t 1(i) a ij b j (o t ) β t (j) P (O λ) (40) α t ( i) β t ( i) ξ t ( i, j ) γ t ( i) α t 1 a ij b j ( o t ) ( i) β ( j) t Trellis depiction of (left) occupation and (right) transition likelihoods 44

45 Baum-Welch training (soft state assignment) State-transition probabilities, â ij = Tt=2 ξ t (i,j) Tt=1 γ t (i) for 1 i, j N Discrete output probabilities, ˆb j (k) = Tt=1 γ t (j) ω t (k) Tt=1 γ t (j) for 1 j N and 1 k K Re-estimation increases the likelihood over the training data for the new model ˆλ P (O train ˆλ) P (O train λ) although it does not guarantee a global maximum. 45

46 Use of HMMs with training and test data (a) Training Training Examples one two three Initial HMM Forward/Backward Algorithm Update HMM Parameters Estimate Models Converged? Yes No M 1 M 2 M 3 Estimated HMM (b) Recognition Unknown O = P( O M 1 ) P( O M 2 ) P( O M 3 ) Choose Max Isolated word training and recognition (Young et al., 2009) 46

47 HMMs for continuous feature spaces Parameters of a continuous HMM, λ State-transition probabilities, A = {π j, a ij, η i } = {P (x t = j x t 1 = i)} where N is the number of states for 1 i, j N Continuous output probability densities, B = {b i (o t )} = {p(o t x t = i)} for 1 i N where the output pdf for each state i can be Gaussian b i (o t ) = N (o t ; µ i, Σ i ) ( 1 (o µi ) 2 = exp 2πΣi 2Σ i ) (41) evaluated at o t with mean µ i and variance Σ i 47

48 Univariate Gaussian (scalar observations) For a given state i, b i (o t ) = [ 1 exp (o t µ i ) 2 ]. 2πΣi 2Σ i p(o) b (o) 1 b (o) 2 o Multivariate Gaussian (vector observations) b i (o t ) = 1 exp (2π) K Σ i [ 1 2 (o t µ i )Σ 1 i (o t µ i ) T ], where the dimensionality of the observation space is K. 48

49 Baum-Welch training of Gaussian state parameters For observations produced by an HMM with a continuous multivariate Gaussian distribution, i.e.: b i (o t ) = N (o t ; µ i, Σ i ) (42) we can again make a soft (i.e., probabilitistic) allocation of the observations to the states. Thus, if γ t (i) denotes the likelihood of occupying state i at time t then the ML estimates of the Gaussian output pdf parameters become weighted averages, ˆµ i = Tt=1 γ t (i)o t Tt=1 γ t (i) (43) ˆΣ i = Tt=1 γ t (i)(o t µ i )(o t µ i ) T Tt=1 γ t (i) (44) normalised by a denominator which is the total likelihood of all paths passing through state i. 49

50 Gaussian mixture pdfs Univariate Gaussian mixture b i (o t ) = M m=1 c im N (o t ; µ im, Σ im ) (45) where M is the number of mixture components (M-mix), and the mixture weights sum to one: M m=1 c im = 1. Multivariate Gaussian mixture b i (o t ) = M m=1 c im N (o t ; µ im, Σ im ), (46) where N ( ) is the multivariate normal distribution with vector mean µ im and covariance matrix Σ im, evaluated at o t. 50

51 Univariate mixture of Gaussians Probability density, p(o) Observation variable, o Mixture of two univariate Gaussian components 51

52 Multivariate mixtures of Gaussians Examples of two multivariate Gaussian pdfs (upper), and two Gaussian mixtures of them with different weights (lower) 52

53 Baum-Welch training with mixtures We define the mixture-occupation likelihood: where γ t (j, m) = α t(j, m) β t (j) p(o λ) γ t (j) = M m=1 γ t (j, m), (47) { πj b jm (o t ) for t=1 α t (j, m) = Ni=1 α t 1 (i) a ij b jm (o t ) otherwise b j,m (o t ) = c jm N ( ) o t ; µ jm, Σ jm a ij M-component Gaussian mixture j a ij c j1 a ij c j2 Single Gaussians j 1 j 2 a ij c jm... j M Occupations of a mixture (Young et al., 2009) 53

54 Baum-Welch re-estimation of mixture parameters Using soft assignment of observations to mixture components given by mixture-occupation likelihood γ t (j, m), we train our parameters with revised update equations. Mean vector: ˆµ jm = Tt=1 γ t (j, m)o t Tt=1 γ t (j, m) (48) Covariance matrix: Tt=1 γ t (j, m)(o t µ jm )(o t µ jm ) ˆΣ T jm = Tt=1 γ t (j, m) (49) Mixture weights: ĉ jm = Tt=1 γ t (j, m) Tt=1 γ t (j) (50) 54

55 Practical issues Decoding Probabilities stored as log probs to avoid underflow Paths propagated through trellis by token passing Search space kept tractable by beam pruning Model initialisation 1. Random 2. Flat start Proto HMM Definition HCompV Sample of Training Speech 3. Viterbi alignment (supervised/ unsupervised) Identical ih eh b d etc Flat start (Young et al., 2009) 55

56 Re-estimation and embedded re-estimation Labelled Utterances th ih s ih s p iy t sh sh t iy s z ih s ih th Transcriptions th ih s ih s p iy t sh sh t iy s z ih s ih th Unlabelled Utterances HInit HRest HCompV HERest HHEd Sub-Word HMMs HMM training with variously labelled data (Young et al., 2009) 56

57 Number of parameters & Regularisation Context sensitivity Size of database Parsimonious models Occam s razor variance floor parameter tying agglomerative clustering decision trees Related topics for further reading Discriminative training Language modeling Noise robustness factorial HMMs loosely-coupled HMMs Model adaptation MLLR/MAP Probabilistic modeling Graphical model Bayesian network Markov random field Markov decision process Markov chain Monte Carlo 57

58 Relationship of HMM to other estimation methods Discrete classifier Discrete HMM Key: Dependency Discrete hidden Discrete observed Continuous hidden Continuous observed Gaussian classifier Continuous HMM Kalman filter Mixture of Gaussians HMM GMM Probabilistic Data Association Filter Conditional dependencies for various probabilistic methods, drawn using graphical model notation 58

59 Summary Introduction to discrete and continuous HMMs Pattern recognition by DTW Probabilistic time series modeling by MM Probabilistic observations within HMM likelihood computation Viterbi decoding Baum-Welch training Discrete and continuous HMMs Mixtures of Gaussians Practical decoding, initialisation and regularisation 59

60 References B. Gold, N. Morgan & D. Ellis, Speech and Audio Signal Processing, New York: Wiley-Blackwell, 2nd ed., 2011 [ISBN-13: ]. J. N. Holmes & W. J. Holmes, Speech Synthesis and Recognition, CRC Press, 2nd ed., 2001 [ISBN-13: ]. F. Jelinek, Statistical Methods for Speech Recognition, MIT Press, 1998 [ISBN-13: ]. D. Jurafsky & J. H. Martin, Speech and Language Processing, Prentice Hall, 2nd ed., 2003 [ISBN-13: ] L. R. Rabiner. A tutorial on HMM and selected applications in speech recognition. In Proc. IEEE, Vol. 77, No. 2, pp , S. J. Young, et al., The HTK Book, Cambridge Univ. Eng. Dept. (v3.4), 2009 [ 60

HMM part 1. Dr Philip Jackson

HMM part 1. Dr Philip Jackson Centre for Vision Speech & Signal Processing University of Surrey, Guildford GU2 7XH. HMM part 1 Dr Philip Jackson Probability fundamentals Markov models State topology diagrams Hidden Markov models -

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

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 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 25&29 January 2018 ASR Lectures 4&5 Hidden Markov Models and Gaussian

More information

University of Cambridge. MPhil in Computer Speech Text & Internet Technology. Module: Speech Processing II. Lecture 2: Hidden Markov Models I

University of Cambridge. MPhil in Computer Speech Text & Internet Technology. Module: Speech Processing II. Lecture 2: Hidden Markov Models I University of Cambridge MPhil in Computer Speech Text & Internet Technology Module: Speech Processing II Lecture 2: Hidden Markov Models I o o o o o 1 2 3 4 T 1 b 2 () a 12 2 a 3 a 4 5 34 a 23 b () b ()

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

Hidden Markov Models Hidden Markov Models Lecture Notes Speech Communication 2, SS 2004 Erhard Rank/Franz Pernkopf Signal Processing and Speech Communication Laboratory Graz University of Technology Inffeldgasse 16c, A-8010

More information

Engineering Part IIB: Module 4F11 Speech and Language Processing Lectures 4/5 : Speech Recognition Basics

Engineering Part IIB: Module 4F11 Speech and Language Processing Lectures 4/5 : Speech Recognition Basics Engineering Part IIB: Module 4F11 Speech and Language Processing Lectures 4/5 : Speech Recognition Basics Phil Woodland: pcw@eng.cam.ac.uk Lent 2013 Engineering Part IIB: Module 4F11 What is Speech Recognition?

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

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

ASR using Hidden Markov Model : A tutorial

ASR using Hidden Markov Model : A tutorial ASR using Hidden Markov Model : A tutorial Samudravijaya K Workshop on ASR @BAMU; 14-OCT-11 samudravijaya@gmail.com Tata Institute of Fundamental Research Samudravijaya K Workshop on ASR @BAMU; 14-OCT-11

More information

Chapter 4 Dynamic Bayesian Networks Fall Jin Gu, Michael Zhang

Chapter 4 Dynamic Bayesian Networks Fall Jin Gu, Michael Zhang Chapter 4 Dynamic Bayesian Networks 2016 Fall Jin Gu, Michael Zhang Reviews: BN Representation Basic steps for BN representations Define variables Define the preliminary relations between variables Check

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

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 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

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

HIDDEN MARKOV MODELS IN SPEECH RECOGNITION

HIDDEN MARKOV MODELS IN SPEECH RECOGNITION HIDDEN MARKOV MODELS IN SPEECH RECOGNITION Wayne Ward Carnegie Mellon University Pittsburgh, PA 1 Acknowledgements Much of this talk is derived from the paper "An Introduction to Hidden Markov Models",

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

Design and Implementation of Speech Recognition Systems

Design and Implementation of Speech Recognition Systems Design and Implementation of Speech Recognition Systems Spring 2013 Class 7: Templates to HMMs 13 Feb 2013 1 Recap Thus far, we have looked at dynamic programming for string matching, And derived DTW from

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

Speech Recognition HMM

Speech Recognition HMM Speech Recognition HMM Jan Černocký, Valentina Hubeika {cernocky ihubeika}@fit.vutbr.cz FIT BUT Brno Speech Recognition HMM Jan Černocký, Valentina Hubeika, DCGM FIT BUT Brno 1/38 Agenda Recap variability

More information

Hidden Markov Model and Speech Recognition

Hidden Markov Model and Speech Recognition 1 Dec,2006 Outline Introduction 1 Introduction 2 3 4 5 Introduction What is Speech Recognition? Understanding what is being said Mapping speech data to textual information Speech Recognition is indeed

More information

Robert Collins CSE586 CSE 586, Spring 2015 Computer Vision II

Robert Collins CSE586 CSE 586, Spring 2015 Computer Vision II CSE 586, Spring 2015 Computer Vision II Hidden Markov Model and Kalman Filter Recall: Modeling Time Series State-Space Model: You have a Markov chain of latent (unobserved) states Each state generates

More information

Augmented Statistical Models for Speech Recognition

Augmented Statistical Models for Speech Recognition Augmented Statistical Models for Speech Recognition Mark Gales & Martin Layton 31 August 2005 Trajectory Models For Speech Processing Workshop Overview Dependency Modelling in Speech Recognition: latent

More information

Hidden Markov Models Hamid R. Rabiee

Hidden Markov Models Hamid R. Rabiee Hidden Markov Models Hamid R. Rabiee 1 Hidden Markov Models (HMMs) In the previous slides, we have seen that in many cases the underlying behavior of nature could be modeled as a Markov process. However

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

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

Lecture 3: Machine learning, classification, and generative models

Lecture 3: Machine learning, classification, and generative models EE E6820: Speech & Audio Processing & Recognition Lecture 3: Machine learning, classification, and generative models 1 Classification 2 Generative models 3 Gaussian models Michael Mandel

More information

Parametric Models Part III: Hidden Markov Models

Parametric Models Part III: Hidden Markov Models Parametric Models Part III: Hidden Markov Models Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr CS 551, Spring 2014 CS 551, Spring 2014 c 2014, Selim Aksoy (Bilkent

More information

Recall: Modeling Time Series. CSE 586, Spring 2015 Computer Vision II. Hidden Markov Model and Kalman Filter. Modeling Time Series

Recall: Modeling Time Series. CSE 586, Spring 2015 Computer Vision II. Hidden Markov Model and Kalman Filter. Modeling Time Series Recall: Modeling Time Series CSE 586, Spring 2015 Computer Vision II Hidden Markov Model and Kalman Filter State-Space Model: You have a Markov chain of latent (unobserved) states Each state generates

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

Cheng Soon Ong & Christian Walder. Canberra February June 2018

Cheng Soon Ong & Christian Walder. Canberra February June 2018 Cheng Soon Ong & Christian Walder Research Group and College of Engineering and Computer Science Canberra February June 218 Outlines Overview Introduction Linear Algebra Probability Linear Regression 1

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

Statistical Processing of Natural Language

Statistical Processing of Natural Language Statistical Processing of Natural Language and DMKM - Universitat Politècnica de Catalunya and 1 2 and 3 1. Observation Probability 2. Best State Sequence 3. Parameter Estimation 4 Graphical and Generative

More information

EEL 851: Biometrics. An Overview of Statistical Pattern Recognition EEL 851 1

EEL 851: Biometrics. An Overview of Statistical Pattern Recognition EEL 851 1 EEL 851: Biometrics An Overview of Statistical Pattern Recognition EEL 851 1 Outline Introduction Pattern Feature Noise Example Problem Analysis Segmentation Feature Extraction Classification Design Cycle

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

CS 136a Lecture 7 Speech Recognition Architecture: Training models with the Forward backward algorithm

CS 136a Lecture 7 Speech Recognition Architecture: Training models with the Forward backward algorithm + September13, 2016 Professor Meteer CS 136a Lecture 7 Speech Recognition Architecture: Training models with the Forward backward algorithm Thanks to Dan Jurafsky for these slides + ASR components n Feature

More information

Cheng Soon Ong & Christian Walder. Canberra February June 2018

Cheng Soon Ong & Christian Walder. Canberra February June 2018 Cheng Soon Ong & Christian Walder Research Group and College of Engineering and Computer Science Canberra February June 2018 Outlines Overview Introduction Linear Algebra Probability Linear Regression

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

L11: Pattern recognition principles

L11: Pattern recognition principles L11: Pattern recognition principles Bayesian decision theory Statistical classifiers Dimensionality reduction Clustering This lecture is partly based on [Huang, Acero and Hon, 2001, ch. 4] Introduction

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

COM336: Neural Computing

COM336: Neural Computing COM336: Neural Computing http://www.dcs.shef.ac.uk/ sjr/com336/ Lecture 2: Density Estimation Steve Renals Department of Computer Science University of Sheffield Sheffield S1 4DP UK email: s.renals@dcs.shef.ac.uk

More information

Hidden Markov Models. Dr. Naomi Harte

Hidden Markov Models. Dr. Naomi Harte Hidden Markov Models Dr. Naomi Harte The Talk Hidden Markov Models What are they? Why are they useful? The maths part Probability calculations Training optimising parameters Viterbi unseen sequences Real

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

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

Multiscale Systems Engineering Research Group

Multiscale Systems Engineering Research Group Hidden Markov Model Prof. Yan Wang Woodruff School of Mechanical Engineering Georgia Institute of echnology Atlanta, GA 30332, U.S.A. yan.wang@me.gatech.edu Learning Objectives o familiarize the hidden

More information

Machine Learning Techniques for Computer Vision

Machine Learning Techniques for Computer Vision Machine Learning Techniques for Computer Vision Part 2: Unsupervised Learning Microsoft Research Cambridge x 3 1 0.5 0.2 0 0.5 0.3 0 0.5 1 ECCV 2004, Prague x 2 x 1 Overview of Part 2 Mixture models EM

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

Speech and Language Processing. Chapter 9 of SLP Automatic Speech Recognition (II)

Speech and Language Processing. Chapter 9 of SLP Automatic Speech Recognition (II) Speech and Language Processing Chapter 9 of SLP Automatic Speech Recognition (II) Outline for ASR ASR Architecture The Noisy Channel Model Five easy pieces of an ASR system 1) Language Model 2) Lexicon/Pronunciation

More information

Shankar Shivappa University of California, San Diego April 26, CSE 254 Seminar in learning algorithms

Shankar Shivappa University of California, San Diego April 26, CSE 254 Seminar in learning algorithms Recognition of Visual Speech Elements Using Adaptively Boosted Hidden Markov Models. Say Wei Foo, Yong Lian, Liang Dong. IEEE Transactions on Circuits and Systems for Video Technology, May 2004. Shankar

More information

Lecture 5: GMM Acoustic Modeling and Feature Extraction

Lecture 5: GMM Acoustic Modeling and Feature Extraction CS 224S / LINGUIST 285 Spoken Language Processing Andrew Maas Stanford University Spring 2017 Lecture 5: GMM Acoustic Modeling and Feature Extraction Original slides by Dan Jurafsky Outline for Today Acoustic

More information

Statistical Sequence Recognition and Training: An Introduction to HMMs

Statistical Sequence Recognition and Training: An Introduction to HMMs Statistical Sequence Recognition and Training: An Introduction to HMMs EECS 225D Nikki Mirghafori nikki@icsi.berkeley.edu March 7, 2005 Credit: many of the HMM slides have been borrowed and adapted, with

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

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

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

order is number of previous outputs

order is number of previous outputs Markov Models Lecture : Markov and Hidden Markov Models PSfrag Use past replacements as state. Next output depends on previous output(s): y t = f[y t, y t,...] order is number of previous outputs y t y

More information

Temporal Modeling and Basic Speech Recognition

Temporal Modeling and Basic Speech Recognition UNIVERSITY ILLINOIS @ URBANA-CHAMPAIGN OF CS 498PS Audio Computing Lab Temporal Modeling and Basic Speech Recognition Paris Smaragdis paris@illinois.edu paris.cs.illinois.edu Today s lecture Recognizing

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 10-601 Introduction to Machine Learning Machine Learning Department School of Computer Science Carnegie Mellon University Hidden Markov Models Matt Gormley Lecture 22 April 2, 2018 1 Reminders Homework

More information

Connected-Word Speech

Connected-Word Speech Boğaziçi University Electrical & Electronic Engineering Fall 2003 EE 473 Digital Signal Processing Term Project Connected-Word Speech Recognition Application with HTK Submitted by: Can Işın Çağdaş Kayra

More information

1. Markov models. 1.1 Markov-chain

1. Markov models. 1.1 Markov-chain 1. Markov models 1.1 Markov-chain Let X be a random variable X = (X 1,..., X t ) taking values in some set S = {s 1,..., s N }. The sequence is Markov chain if it has the following properties: 1. Limited

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

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

Jorge Silva and Shrikanth Narayanan, Senior Member, IEEE. 1 is the probability measure induced by the probability density function

Jorge Silva and Shrikanth Narayanan, Senior Member, IEEE. 1 is the probability measure induced by the probability density function 890 IEEE TRANSACTIONS ON AUDIO, SPEECH, AND LANGUAGE PROCESSING, VOL. 14, NO. 3, MAY 2006 Average Divergence Distance as a Statistical Discrimination Measure for Hidden Markov Models Jorge Silva and Shrikanth

More information

Lecture 3: ASR: HMMs, Forward, Viterbi

Lecture 3: ASR: HMMs, Forward, Viterbi Original slides by Dan Jurafsky CS 224S / LINGUIST 285 Spoken Language Processing Andrew Maas Stanford University Spring 2017 Lecture 3: ASR: HMMs, Forward, Viterbi Fun informative read on phonetics The

More information

p(d θ ) l(θ ) 1.2 x x x

p(d θ ) l(θ ) 1.2 x x x p(d θ ).2 x 0-7 0.8 x 0-7 0.4 x 0-7 l(θ ) -20-40 -60-80 -00 2 3 4 5 6 7 θ ˆ 2 3 4 5 6 7 θ ˆ 2 3 4 5 6 7 θ θ x FIGURE 3.. The top graph shows several training points in one dimension, known or assumed to

More information

Note Set 5: Hidden Markov Models

Note Set 5: Hidden Markov Models Note Set 5: Hidden Markov Models Probabilistic Learning: Theory and Algorithms, CS 274A, Winter 2016 1 Hidden Markov Models (HMMs) 1.1 Introduction Consider observed data vectors x t that are d-dimensional

More information

Human-Oriented Robotics. Temporal Reasoning. Kai Arras Social Robotics Lab, University of Freiburg

Human-Oriented Robotics. Temporal Reasoning. Kai Arras Social Robotics Lab, University of Freiburg Temporal Reasoning Kai Arras, University of Freiburg 1 Temporal Reasoning Contents Introduction Temporal Reasoning Hidden Markov Models Linear Dynamical Systems (LDS) Kalman Filter 2 Temporal Reasoning

More information

Expectation Maximization (EM)

Expectation Maximization (EM) Expectation Maximization (EM) The Expectation Maximization (EM) algorithm is one approach to unsupervised, semi-supervised, or lightly supervised learning. In this kind of learning either no labels are

More information

Lecture 3: Pattern Classification

Lecture 3: Pattern Classification EE E6820: Speech & Audio Processing & Recognition Lecture 3: Pattern Classification 1 2 3 4 5 The problem of classification Linear and nonlinear classifiers Probabilistic classification Gaussians, mixtures

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

Upper Bound Kullback-Leibler Divergence for Hidden Markov Models with Application as Discrimination Measure for Speech Recognition

Upper Bound Kullback-Leibler Divergence for Hidden Markov Models with Application as Discrimination Measure for Speech Recognition Upper Bound Kullback-Leibler Divergence for Hidden Markov Models with Application as Discrimination Measure for Speech Recognition Jorge Silva and Shrikanth Narayanan Speech Analysis and Interpretation

More information

Expectation Maximization (EM)

Expectation Maximization (EM) Expectation Maximization (EM) The EM algorithm is used to train models involving latent variables using training data in which the latent variables are not observed (unlabeled data). This is to be contrasted

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

Bayesian Hidden Markov Models and Extensions

Bayesian Hidden Markov Models and Extensions Bayesian Hidden Markov Models and Extensions Zoubin Ghahramani Department of Engineering University of Cambridge joint work with Matt Beal, Jurgen van Gael, Yunus Saatci, Tom Stepleton, Yee Whye Teh Modeling

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

Design and Implementation of Speech Recognition Systems

Design and Implementation of Speech Recognition Systems Design and Implementation of Speech Recognition Systems Spring 2012 Class 9: Templates to HMMs 20 Feb 2012 1 Recap Thus far, we have looked at dynamic programming for string matching, And derived DTW from

More information

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named

We Live in Exciting Times. CSCI-567: Machine Learning (Spring 2019) Outline. Outline. ACM (an international computing research society) has named We Live in Exciting Times ACM (an international computing research society) has named CSCI-567: Machine Learning (Spring 2019) Prof. Victor Adamchik U of Southern California Apr. 2, 2019 Yoshua Bengio,

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

A Modified Baum Welch Algorithm for Hidden Markov Models with Multiple Observation Spaces

A Modified Baum Welch Algorithm for Hidden Markov Models with Multiple Observation Spaces IEEE TRANSACTIONS ON SPEECH AND AUDIO PROCESSING, VOL. 9, NO. 4, MAY 2001 411 A Modified Baum Welch Algorithm for Hidden Markov Models with Multiple Observation Spaces Paul M. Baggenstoss, Member, IEEE

More information

Conditional Random Fields and beyond DANIEL KHASHABI CS 546 UIUC, 2013

Conditional Random Fields and beyond DANIEL KHASHABI CS 546 UIUC, 2013 Conditional Random Fields and beyond DANIEL KHASHABI CS 546 UIUC, 2013 Outline Modeling Inference Training Applications Outline Modeling Problem definition Discriminative vs. Generative Chain CRF General

More information

Pattern Recognition and Machine Learning

Pattern Recognition and Machine Learning Christopher M. Bishop Pattern Recognition and Machine Learning ÖSpri inger Contents Preface Mathematical notation Contents vii xi xiii 1 Introduction 1 1.1 Example: Polynomial Curve Fitting 4 1.2 Probability

More information

Hidden Markov Models

Hidden Markov Models 10-601 Introduction to Machine Learning Machine Learning Department School of Computer Science Carnegie Mellon University Hidden Markov Models Matt Gormley Lecture 19 Nov. 5, 2018 1 Reminders Homework

More information

Master 2 Informatique Probabilistic Learning and Data Analysis

Master 2 Informatique Probabilistic Learning and Data Analysis Master 2 Informatique Probabilistic Learning and Data Analysis Faicel Chamroukhi Maître de Conférences USTV, LSIS UMR CNRS 7296 email: chamroukhi@univ-tln.fr web: chamroukhi.univ-tln.fr 2013/2014 Faicel

More information

Improving the Multi-Stack Decoding Algorithm in a Segment-based Speech Recognizer

Improving the Multi-Stack Decoding Algorithm in a Segment-based Speech Recognizer Improving the Multi-Stack Decoding Algorithm in a Segment-based Speech Recognizer Gábor Gosztolya, András Kocsor Research Group on Artificial Intelligence of the Hungarian Academy of Sciences and University

More information

Outline of Today s Lecture

Outline of Today s Lecture University of Washington Department of Electrical Engineering Computer Speech Processing EE516 Winter 2005 Jeff A. Bilmes Lecture 12 Slides Feb 23 rd, 2005 Outline of Today s

More information

Lecture 3. Gaussian Mixture Models and Introduction to HMM s. Michael Picheny, Bhuvana Ramabhadran, Stanley F. Chen, Markus Nussbaum-Thom

Lecture 3. Gaussian Mixture Models and Introduction to HMM s. Michael Picheny, Bhuvana Ramabhadran, Stanley F. Chen, Markus Nussbaum-Thom Lecture 3 Gaussian Mixture Models and Introduction to HMM s Michael Picheny, Bhuvana Ramabhadran, Stanley F. Chen, Markus Nussbaum-Thom Watson Group IBM T.J. Watson Research Center Yorktown Heights, New

More information

Advanced Data Science

Advanced Data Science Advanced Data Science Dr. Kira Radinsky Slides Adapted from Tom M. Mitchell Agenda Topics Covered: Time series data Markov Models Hidden Markov Models Dynamic Bayes Nets Additional Reading: Bishop: Chapter

More information

Hidden Markov Models (HMMs)

Hidden Markov Models (HMMs) Hidden Markov Models (HMMs) Reading Assignments R. Duda, P. Hart, and D. Stork, Pattern Classification, John-Wiley, 2nd edition, 2001 (section 3.10, hard-copy). L. Rabiner, "A tutorial on HMMs and selected

More information

The Minimum Message Length Principle for Inductive Inference

The Minimum Message Length Principle for Inductive Inference The Principle for Inductive Inference Centre for Molecular, Environmental, Genetic & Analytic (MEGA) Epidemiology School of Population Health University of Melbourne University of Helsinki, August 25,

More information

Bayesian Networks BY: MOHAMAD ALSABBAGH

Bayesian Networks BY: MOHAMAD ALSABBAGH Bayesian Networks BY: MOHAMAD ALSABBAGH Outlines Introduction Bayes Rule Bayesian Networks (BN) Representation Size of a Bayesian Network Inference via BN BN Learning Dynamic BN Introduction Conditional

More information

Unsupervised Learning

Unsupervised Learning Unsupervised Learning Bayesian Model Comparison Zoubin Ghahramani zoubin@gatsby.ucl.ac.uk Gatsby Computational Neuroscience Unit, and MSc in Intelligent Systems, Dept Computer Science University College

More information

Learning from Sequential and Time-Series Data

Learning from Sequential and Time-Series Data Learning from Sequential and Time-Series Data Sridhar Mahadevan mahadeva@cs.umass.edu University of Massachusetts Sridhar Mahadevan: CMPSCI 689 p. 1/? Sequential and Time-Series Data Many real-world applications

More information

CSCI-567: Machine Learning (Spring 2019)

CSCI-567: Machine Learning (Spring 2019) CSCI-567: Machine Learning (Spring 2019) Prof. Victor Adamchik U of Southern California Mar. 19, 2019 March 19, 2019 1 / 43 Administration March 19, 2019 2 / 43 Administration TA3 is due this week March

More information

An Evolutionary Programming Based Algorithm for HMM training

An Evolutionary Programming Based Algorithm for HMM training An Evolutionary Programming Based Algorithm for HMM training Ewa Figielska,Wlodzimierz Kasprzak Institute of Control and Computation Engineering, Warsaw University of Technology ul. Nowowiejska 15/19,

More information

Recent Advances in Bayesian Inference Techniques

Recent Advances in Bayesian Inference Techniques Recent Advances in Bayesian Inference Techniques Christopher M. Bishop Microsoft Research, Cambridge, U.K. research.microsoft.com/~cmbishop SIAM Conference on Data Mining, April 2004 Abstract Bayesian

More information

Introduction to Markov systems

Introduction to Markov systems 1. Introduction Up to now, we have talked a lot about building statistical models from data. However, throughout our discussion thus far, we have made the sometimes implicit, simplifying assumption that

More information

Mathematical Formulation of Our Example

Mathematical Formulation of Our Example Mathematical Formulation of Our Example We define two binary random variables: open and, where is light on or light off. Our question is: What is? Computer Vision 1 Combining Evidence Suppose our robot

More information

PATTERN CLASSIFICATION

PATTERN CLASSIFICATION PATTERN CLASSIFICATION Second Edition Richard O. Duda Peter E. Hart David G. Stork A Wiley-lnterscience Publication JOHN WILEY & SONS, INC. New York Chichester Weinheim Brisbane Singapore Toronto CONTENTS

More information

A Gentle Tutorial of the EM Algorithm and its Application to Parameter Estimation for Gaussian Mixture and Hidden Markov Models

A Gentle Tutorial of the EM Algorithm and its Application to Parameter Estimation for Gaussian Mixture and Hidden Markov Models A Gentle Tutorial of the EM Algorithm and its Application to Parameter Estimation for Gaussian Mixture and Hidden Markov Models Jeff A. Bilmes (bilmes@cs.berkeley.edu) International Computer Science Institute

More information