Learning from Sequential and Time-Series Data

Size: px
Start display at page:

Download "Learning from Sequential and Time-Series Data"

Transcription

1 Learning from Sequential and Time-Series Data Sridhar Mahadevan University of Massachusetts Sridhar Mahadevan: CMPSCI 689 p. 1/?

2 Sequential and Time-Series Data Many real-world applications involve sequential or time-series data: Gene and protein sequences in bioinformatics Natural language text Modeling human and robot behavior GPS tracking of cars, missiles, satellites etc. Sensor networks, weather prediction Examples: Markov chains, Markov decision processes, hidden Markov models, partially observable MDPs, conditional random fields, observable operator models, predictive state representations etc. Sridhar Mahadevan: CMPSCI 689 p. 2/?

3 Sequence Models Model M = O, S, A, P o,p t,r O is a set of continuous or discrete observations S is a set of states A is a set of actions or decisions P o is an observation model where P (y s) is the probability of observing y in state s. P t is a transition model where Pss a is the transition probability of moving from state s to s under action a. R is a reward or cost function Sridhar Mahadevan: CMPSCI 689 p. 3/?

4 Markov Chains The most widely studied sequential model developed by Markov to study text (Pushkin). A Markov chain M =< S,P t,π o > is specified by: A set of discrete or continuous states S A transition probability P t (s s) of moving from s to s An initial distribution π o (s) of starting in state s. Maximum likelihood estimation of a markov chain is theoretically trivial, but can be practically challenging. Example: bigram model of English text (where states are words). Sridhar Mahadevan: CMPSCI 689 p. 4/?

5 Hidden Markov Models A finite set of states Q where Q = M qt i is a multinomial random variable =1for some particular value of i, and 0 otherwise. An initial distribution π on Q where π i = P (q0 i =1). An observation model Ω=P (y t q t ), where the space of observations is discrete or continuous (real-valued). Denote η ij as the probability that state i produces observation j. A transition matrix a ij = P (q j t+1 qt) i Sridhar Mahadevan: CMPSCI 689 p. 5/?

6 HMM Applications Perception: face recognition, gesture recognition, handwriting, speech recognition Robot navigation Biology: DNA sequence prediction Language analysis: part of speech tagging Smart rooms, wearable devices Sridhar Mahadevan: CMPSCI 689 p. 6/?

7 Hidden Markov Models: References Model developed by Baum in the 1960s. HMMs are instances of dynamic Bayesian networks (DBNs) [Dean et al, 1989; Murphy, 2002]. L. R. Rabiner, A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition, Proceedings of the IEEE, 77, no. 2, , February Fred Jellinek, Statistical Methods in Speech Recognition, MIT Press, Sridhar Mahadevan: CMPSCI 689 p. 7/?

8 HMM Graphical Model q0 q1 q2 qt Π y0 y1 y2 yt Conditioning on a state q t d-separates the observation sequence into three categories: current observation y t, the past y 0,...,y t 1, and the future y t+1,...,y T. Sridhar Mahadevan: CMPSCI 689 p. 8/?

9 Markov Properties of HMMs The future is independent of the past given the present. P (q t+1 q t,q t 1,...,q 0 )=P(q t+1 q t ) P (y 0,...,y T q t )=P(y 0,...,y t q t )P (y t+1,...,y T q t ) HMMs are more powerful than any finite memory device P (y t+1 y t,y t 1,...,y t k ) P (y t+1 y t,y t 1,...,y t k+1 ) Sridhar Mahadevan: CMPSCI 689 p. 9/?

10 Basic Problems in HMMs Likelihood: Given an observation sequence Y = y 0 y 1...y T and a model θ =(A, Ω,π), determine the likelihood P (Y θ) Filtering: Given an observation sequence Y t = y 0 y 1...y t and a model θ =(A, Ω,π), determine the belief state P (q t Y t,θ) Prediction: Given an observation sequence Y t = y 0 y 1...y t and a model θ =(A, Ω,π), determine the posterior over a future state P (q s Y t,θ),s>t. Sridhar Mahadevan: CMPSCI 689 p. 10/?

11 Basic Problems in HMMs Smoothing: Given an observation sequence Y t = y 0 y 1...y t and a model θ =(A, Ω,π), determine the posterior over a previous state P (q s Y t,θ),s<t Most likely explanation: Given an observation sequence Y = y 0 y 1...y T and a model Ω=(A, Ω,π), find the most likely sequence of states q 0 q 1...q T given y, that is compute argmax q0,...,q T P (q 0,...,q T y) Learning: Find the model parameters θ such that i P (Y i θ) is maximized, over multiple independent (IID) sequences Y i. Sridhar Mahadevan: CMPSCI 689 p. 11/?

12 Example: Robot Navigation O = Wall Wall Opening Wall P(Wall 1) 1 a_12 2 P(Opening 3) 1 1 a_23 P(Wall 2) a_ P(Wall 4) Sridhar Mahadevan: CMPSCI 689 p. 12/?

13 Inference in HMMs The complete data for an HMM is the output sequence y produced, along with the (hidden) state sequence traversed. P (q, y) = P (q 0 ) = M i=1 T 1 (π i ) qi 0 T 1 = π q0 P (q t+1 q t ) T 1 a qt,q t+1 M i,j=1 T T (a ij ) qi t qj t+1 P (y t q t ) P (y t q t ) T M i=1 N j=1 (η ij ) qi t yj t Sridhar Mahadevan: CMPSCI 689 p. 13/?

14 Maximizing Observed Likelihood The inference problem is computing the probability of a state sequence P (q y) = P (q,y) P (y) To get the probability of the output y, wehavetosum over all possible state sequences (which is intractable!): p(y θ) = q 0 q 1... q T π q0 T 1 a qt,q t+1 T P (y t q t ) We cannot easily maximize the observed data s likelihood by analytically solving argmax θ l(θ y) =argmax θ log p(y θ) Sridhar Mahadevan: CMPSCI 689 p. 14/?

15 Structuring Inference in HMMs We can condition on a particular state q t to decompose the inference: P (q t y) = P (y q t)p (q t ) P (y) = P (y 0,...,y t q t )P (y t+1,...,y T q t )P (q t ) P (y) = P (y 0,...,y t,q t )P (y t+1,...,y T q t ) P (y) = α(q t)β(q t ) P (y) Note that P (y) = q t α(q t )β(q t ). Sridhar Mahadevan: CMPSCI 689 p. 15/?

16 Forward Step α(q t+1 ) = P (y 0,...,y t+1,q t+1 ) = P (y 0,...,y t+1 q t+1 )P (q t+1 ) = P (y 0,...y t q t+1 )P (y t+1 q t+1 )P (q t+1 ) = P (y 0,...y t,q t+1 )P (y t+1 q t+1 ) = P (y 0,...y t,q t,q t+1 )P (y t+1 q t+1 ) q t = P (y 0,...y t,q t+1 q t )P (q t )P (y t+1 q t+1 ) q t = P (y 0,...y t q t )P (q t+1 q t )P (q t )P (y t+1 q t+1 ) q t = q t α(q t )a qt,q t+1 P (y t+1 q t+1 ) Sridhar Mahadevan: CMPSCI 689 p. 16/?

17 The Forward Algorithm Initialization: α(q 0 )=P(y 0,q 0 )=π q0 P (y 0 q 0 ) where 1 q 0 M Induction: α(q t+1 )= q t α(q t )a qt,q t+1 P (y t+1 q t+1 ) where 0 t T 1 and 1 q t,q t+1 M Time complexity: Each α(q t ) computation takes O(M 2 ), since we have to iterate over all M values of q t and q t+1. Totally, the forward algorithm takes O(M 2 T ) since we have to iterate over each time step (from t =1,...,T). Sridhar Mahadevan: CMPSCI 689 p. 17/?

18 Backward Phase β(q t ) = P (y t+1,...,y T q t ) = P (y t+1,...,y T,q t+1 q t ) q t+1 = P (y t+1,...,y T q t+1,q t )P (q t+1 q t ) q t+1 = P (y t+2,...,y T q t+1,q t )P (y t+1 q t+1 )P (q t+1 q t ) q t+1 = q t+1 β(q t+1 )P (y t+1 q t+1 )a qt,q t+1 Sridhar Mahadevan: CMPSCI 689 p. 18/?

19 The Backward Algorithm The β variables can be calculated recursively also, except we proceed backwards: Initialization: Define β(q T )=1 Induction: β(q t )= q t+1 β(q t+1 )P (y t+1 q t+1 )a qt,q t+1 where 1 t T 1 and 1 q t,q t+1 M. Time complexity: Each β(q t ) computation takes O(M 2 ), since we have to iterate over all M values of q t and q t+1. Totally, the backwards algorithm takes O(M 2 T ) since we have to iterate over each time step (from t =1,...,T). Sridhar Mahadevan: CMPSCI 689 p. 19/?

20 Most Likely State The most likely state at any time t can be readily calculated from the α and β variables. We can then define the most likely state as q MLS t = argmax 1 i M γ(q i t) where the variable γ(q i t) can be easily calculated as γ(q i t)= α(qi t )β(qi t ) j α(q j t )β(q j t ) Sridhar Mahadevan: CMPSCI 689 p. 20/?

21 Most Likely State Sequence Let us define the probability of the most likely sequence that accounts for all observations upto time t and ends in state qt i as δ t (i) = max P (q 0,...,...q t = i, y 0,...,y t θ) q 1,q 2,...,q t 1 We can define this probability by induction as δ t+1 (i) = ( ) max δ t (j)a j q j P (y t qi t+1 qt+1) i t+1 Sridhar Mahadevan: CMPSCI 689 p. 21/?

22 The Viterbi Algorithm Initialize: δ 0 (i) =π i P (y 0 q i 0)1 i M ψ 0 (i) =0 Recursion: δ t (i) = ( ) max δ t 1 (j)a j q j P (y t,qi t qt) i t+1 ) ψ t (i) =argmax 1 j M (δ t 1 (j)a q j t 1 qi t Sridhar Mahadevan: CMPSCI 689 p. 22/?

23 The Viterbi Algorithm Termination: P = max 1 i M (δ T (i)) Path computation: q T = argmax 1 i M δ T (i) qt = ψ t+1(qt+1 ), t = T 1,T 2,...,0 Sridhar Mahadevan: CMPSCI 689 p. 23/?

24 Learning the HMM Parameters The α and β variables enable estimation of observation model. To estimate the transition matrix, we introduce a new variable ξ(q t,q t+1 ) = P (q t,q t+1 y) = P (y q t,q t+1 )P (q t+1 q t )P (q t ) P (y) = α(q t)p (y t+1 q t+1 )β(q t+1 )a qt,q t+1 P (y) Sridhar Mahadevan: CMPSCI 689 p. 24/?

25 Maximum Likelihood for HMMs Generally, we want to find the parameters θ that maximizes the (log) likelihood log P (y θ), where log p(y θ) =log q 0 q 1... q T π q0 T 1 a qt,q t+1 T P (y t q t ) As before, we note that this involves taking the log of a bunch of summations, and it is pretty difficult to optimize it. Sridhar Mahadevan: CMPSCI 689 p. 25/?

26 Complete Log-likelihood To simplify the maximum log-likelihood computation, we postulate a complete dataset y, q, where l c (θ; q, y) = =log M i=1 = (π i ) qi 0 M i=1 T 1 M i,j=1 q i 0 log π i + (a ij ) qi t qj t+1 T 1 M i,j=1 + T T M N i=1 j=1 (η ij ) qt t yj t q i tq j t+1 log a ij +... M i=1 N j=1 q i ty j t log η ij Sridhar Mahadevan: CMPSCI 689 p. 26/?

27 M-Step of EM for HMMs l c (θ; y, q) a ij = a ij = â ij = â ij = T 1 T 1 M i,j=1 q i tq j t+1 a ij + λ i =0 T 1 qtq i j t+1 λ i T 1 qtq i j t+1 Mj=1 T 1 qtq i j t+1 q i tq j t+1 log a ij + M i=1 exploiting that λ i ( M j=1 M j=1 a ij 1) a ij =1 Sridhar Mahadevan: CMPSCI 689 p. 27/?

28 M-Step of EM for HMMs ˆη ij = T 1 q i ty j t Nk=1 T q i ty k t exploiting that N j=1 η ij =1 ˆπ i = q i 0 Sridhar Mahadevan: CMPSCI 689 p. 28/?

29 E-step for HMMs E(η ij y, θ p ) = T E(q i t y, θ k )y j t = T P (q i t =1 y, θk )y j t T γ i t yj t T 1 E( qtq i t+1 y, j θ k ) = T 1 E(q i tq j t+1 y, θ k )= T 1 P (q i tq j t+1 y, θ k ) T 1 ξ i,j t,t+1 Sridhar Mahadevan: CMPSCI 689 p. 29/?

30 M-Step in HMMs ˆη (p+1) ij = T γ i ty j t Nk=1 T γ i ty k t = T γ i ty j t T γ i t â (p+1) ij = ˆπ (p+1) i = γ i 0 T 1 ξ i,j t,t+1 Mj=1 T 1 ξ i,j t,t+1 = T 1 ξ i,j t,t+1 T γ t i Sridhar Mahadevan: CMPSCI 689 p. 30/?

31 Extensions of HMMs Observer Operator Models: observable representations of hidden states Semi-Markov HMMs: state durations are not exponential, but arbitrary. Hierarchical HMMs: multi-level tree-structured models, which are a special case of probabilistic context-free grammars. Abstract Hidden Markov Models: AHMMs with state-mediated transitions. Sridhar Mahadevan: CMPSCI 689 p. 31/?

32 Hierarchical HMMs Fine, Singer, Tishby, The Hierarchical Hidden Markov Model, Machine Learning, s s s3 0.3 e s s5 e OBSERVATION MODEL FOR S6 s6 0.6 s7 0.8 s8 1.0 e4 FRONT(W:0.1, O:0.9) LEFT(W:0.9, O:0.1) BACK(W:0.1, O:0.9) RIGHT(W:0.9, O:0.1) Sridhar Mahadevan: CMPSCI 689 p. 32/?

33 Using Hierarchical HMMs in Robot Navigation Actual model used extends hierarchical HMM to include temporally extended actions like exit corridor (hierarchical POMDP) Observation vectors: Front, Left, Right, Back: Wall, Opening; Door on Right; Stripe on Right Wall. See [Theocharous, Rohanimanesh, and Mahadevan, ICRA 2001], [Theocharous, Murphy, Kaelbling, IJCAI 03] for details. S2 S3 B S4 S1 A Sridhar Mahadevan: CMPSCI 689 p. 33/?

34 Foveal Face Recognition using HMMs Minut, Mahadevan, Henderson, and Dyer, "Face Recognition using Foveal Vision", in Lecture Notes in Computer Science: Biologically Motivated Computer Vision, Seong-Whan Lee, Heinrich H. Bulthoff, Tomasio Poggio (editors), vol. 1811, pp , Springer-Verlag, Sridhar Mahadevan: CMPSCI 689 p. 34/?

35 Comparing Sliding Windows with Foveation Competing approach: slide a window down of fixed size [Samaria, PhD, Cambridge] AVERAGE RECOGNITION RATE PERFORMANCE OF SUBSAMPLED VS FOVEAL HMM CLASSIFIERS 100 WOMEN-FOVEAL WOMEN-SUBSAMPLED NUMBER OF STATES Sridhar Mahadevan: CMPSCI 689 p. 35/?

36 Abstract Hidden Markov Model [Bui, Venkatesh, West: JAIR, IJCAI 03] Level 2 Π2 Π2 E2 E2 Level 1 Π1 Π1 E1 E1 Level 0 A A S S S Ο O O Sridhar Mahadevan: CMPSCI 689 p. 36/?

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

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

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

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 10 Oct, 13, 2011 CPSC 502, Lecture 10 Slide 1 Today Oct 13 Inference in HMMs More on Robot Localization CPSC 502, Lecture

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

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

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 Hidden Markov Models Prof. Amy Sliva October 26, 2012 Par?ally observable temporal domains POMDPs represented uncertainty about the state Belief

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

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

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

Introduction to Artificial Intelligence (AI)

Introduction to Artificial Intelligence (AI) Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 9 Oct, 11, 2011 Slide credit Approx. Inference : S. Thrun, P, Norvig, D. Klein CPSC 502, Lecture 9 Slide 1 Today Oct 11 Bayesian

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

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

A Bayesian Perspective on Residential Demand Response Using Smart Meter Data

A Bayesian Perspective on Residential Demand Response Using Smart Meter Data A Bayesian Perspective on Residential Demand Response Using Smart Meter Data Datong-Paul Zhou, Maximilian Balandat, and Claire Tomlin University of California, Berkeley [datong.zhou, balandat, tomlin]@eecs.berkeley.edu

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

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

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

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

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

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

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

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

A Higher-Order Interactive Hidden Markov Model and Its Applications Wai-Ki Ching Department of Mathematics The University of Hong Kong

A Higher-Order Interactive Hidden Markov Model and Its Applications Wai-Ki Ching Department of Mathematics The University of Hong Kong A Higher-Order Interactive Hidden Markov Model and Its Applications Wai-Ki Ching Department of Mathematics The University of Hong Kong Abstract: In this talk, a higher-order Interactive Hidden Markov Model

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

15-381: Artificial Intelligence. Hidden Markov Models (HMMs)

15-381: Artificial Intelligence. Hidden Markov Models (HMMs) 15-381: Artificial Intelligence Hidden Markov Models (HMMs) What s wrong with Bayesian networks Bayesian networks are very useful for modeling joint distributions But they have their limitations: - Cannot

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,99,100! Markov, here I come!

Hidden Markov Models,99,100! Markov, here I come! Hidden Markov Models,99,100! Markov, here I come! 16.410/413 Principles of Autonomy and Decision-Making Pedro Santana (psantana@mit.edu) October 7 th, 2015. Based on material by Brian Williams and Emilio

More information

A Probabilistic Relational Model for Characterizing Situations in Dynamic Multi-Agent Systems

A Probabilistic Relational Model for Characterizing Situations in Dynamic Multi-Agent Systems A Probabilistic Relational Model for Characterizing Situations in Dynamic Multi-Agent Systems Daniel Meyer-Delius 1, Christian Plagemann 1, Georg von Wichert 2, Wendelin Feiten 2, Gisbert Lawitzky 2, and

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

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 24, 2016 Slide Sources Raymond J. Mooney University of Texas at Austin D. Koller, Stanford CS - Probabilistic Graphical Models D. Page,

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

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

CS 188: Artificial Intelligence Fall 2011

CS 188: Artificial Intelligence Fall 2011 CS 188: Artificial Intelligence Fall 2011 Lecture 20: HMMs / Speech / ML 11/8/2011 Dan Klein UC Berkeley Today HMMs Demo bonanza! Most likely explanation queries Speech recognition A massive HMM! Details

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

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 19 Oct, 23, 2015 Slide Sources Raymond J. Mooney University of Texas at Austin D. Koller, Stanford CS - Probabilistic Graphical Models D. Page,

More information

Probabilistic Graphical Models

Probabilistic Graphical Models Probabilistic Graphical Models Lecture 12 Dynamical Models CS/CNS/EE 155 Andreas Krause Homework 3 out tonight Start early!! Announcements Project milestones due today Please email to TAs 2 Parameter learning

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

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

Hidden Markov Models

Hidden Markov Models Hidden Markov Models Slides mostly from Mitch Marcus and Eric Fosler (with lots of modifications). Have you seen HMMs? Have you seen Kalman filters? Have you seen dynamic programming? HMMs are dynamic

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

Planning by Probabilistic Inference

Planning by Probabilistic Inference Planning by Probabilistic Inference Hagai Attias Microsoft Research 1 Microsoft Way Redmond, WA 98052 Abstract This paper presents and demonstrates a new approach to the problem of planning under uncertainty.

More information

Probability and Time: Hidden Markov Models (HMMs)

Probability and Time: Hidden Markov Models (HMMs) Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5.2) Nov, 25, 2013 CPSC 322, Lecture 32 Slide 1 Lecture Overview Recap Markov Models Markov Chain

More information

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

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

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

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

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

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

Course 495: Advanced Statistical Machine Learning/Pattern Recognition

Course 495: Advanced Statistical Machine Learning/Pattern Recognition Course 495: Advanced Statistical Machine Learning/Pattern Recognition Lecturer: Stefanos Zafeiriou Goal (Lectures): To present discrete and continuous valued probabilistic linear dynamical systems (HMMs

More information

Hidden Markov Models in Language Processing

Hidden Markov Models in Language Processing Hidden Markov Models in Language Processing Dustin Hillard Lecture notes courtesy of Prof. Mari Ostendorf Outline Review of Markov models What is an HMM? Examples General idea of hidden variables: implications

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

Machine Learning Summer School

Machine Learning Summer School Machine Learning Summer School Lecture 3: Learning parameters and structure Zoubin Ghahramani zoubin@eng.cam.ac.uk http://learning.eng.cam.ac.uk/zoubin/ Department of Engineering University of Cambridge,

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

LEARNING DYNAMIC SYSTEMS: MARKOV MODELS

LEARNING DYNAMIC SYSTEMS: MARKOV MODELS LEARNING DYNAMIC SYSTEMS: MARKOV MODELS Markov Process and Markov Chains Hidden Markov Models Kalman Filters Types of dynamic systems Problem of future state prediction Predictability Observability Easily

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

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

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

Lecture 6: Graphical Models: Learning

Lecture 6: Graphical Models: Learning Lecture 6: Graphical Models: Learning 4F13: Machine Learning Zoubin Ghahramani and Carl Edward Rasmussen Department of Engineering, University of Cambridge February 3rd, 2010 Ghahramani & Rasmussen (CUED)

More information

Graphical Models Seminar

Graphical Models Seminar Graphical Models Seminar Forward-Backward and Viterbi Algorithm for HMMs Bishop, PRML, Chapters 13.2.2, 13.2.3, 13.2.5 Dinu Kaufmann Departement Mathematik und Informatik Universität Basel April 8, 2013

More information

Sequential Supervised Learning

Sequential Supervised Learning Sequential Supervised Learning Many Application Problems Require Sequential Learning Part-of of-speech Tagging Information Extraction from the Web Text-to to-speech Mapping Part-of of-speech Tagging Given

More information

Speech Recognition Lecture 8: Expectation-Maximization Algorithm, Hidden Markov Models.

Speech Recognition Lecture 8: Expectation-Maximization Algorithm, Hidden Markov Models. Speech Recognition Lecture 8: Expectation-Maximization Algorithm, Hidden Markov Models. Mehryar Mohri Courant Institute and Google Research mohri@cims.nyu.com This Lecture Expectation-Maximization (EM)

More information

Hidden Markov models

Hidden Markov models Hidden Markov models Charles Elkan November 26, 2012 Important: These lecture notes are based on notes written by Lawrence Saul. Also, these typeset notes lack illustrations. See the classroom lectures

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

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

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

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

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

Hidden Markov Models

Hidden Markov Models CS769 Spring 2010 Advanced Natural Language Processing Hidden Markov Models Lecturer: Xiaojin Zhu jerryzhu@cs.wisc.edu 1 Part-of-Speech Tagging The goal of Part-of-Speech (POS) tagging is to label each

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

Switching-state Dynamical Modeling of Daily Behavioral Data

Switching-state Dynamical Modeling of Daily Behavioral Data Switching-state Dynamical Modeling of Daily Behavioral Data Randy Ardywibowo Shuai Huang Cao Xiao Shupeng Gui Yu Cheng Ji Liu Xiaoning Qian Texas A&M University University of Washington IBM T.J. Watson

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

Supervised Learning Hidden Markov Models. Some of these slides were inspired by the tutorials of Andrew Moore

Supervised Learning Hidden Markov Models. Some of these slides were inspired by the tutorials of Andrew Moore Supervised Learning Hidden Markov Models Some of these slides were inspired by the tutorials of Andrew Moore A Markov System S 2 Has N states, called s 1, s 2.. s N There are discrete timesteps, t=0, t=1,.

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

COMS 4771 Probabilistic Reasoning via Graphical Models. Nakul Verma

COMS 4771 Probabilistic Reasoning via Graphical Models. Nakul Verma COMS 4771 Probabilistic Reasoning via Graphical Models Nakul Verma Last time Dimensionality Reduction Linear vs non-linear Dimensionality Reduction Principal Component Analysis (PCA) Non-linear methods

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

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

Partially Observable Markov Decision Processes (POMDPs) Pieter Abbeel UC Berkeley EECS

Partially Observable Markov Decision Processes (POMDPs) Pieter Abbeel UC Berkeley EECS Partially Observable Markov Decision Processes (POMDPs) Pieter Abbeel UC Berkeley EECS Many slides adapted from Jur van den Berg Outline POMDPs Separation Principle / Certainty Equivalence Locally Optimal

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

10/17/04. Today s Main Points

10/17/04. Today s Main Points Part-of-speech Tagging & Hidden Markov Model Intro Lecture #10 Introduction to Natural Language Processing CMPSCI 585, Fall 2004 University of Massachusetts Amherst Andrew McCallum Today s Main Points

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

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

Weighted Finite-State Transducers in Computational Biology

Weighted Finite-State Transducers in Computational Biology Weighted Finite-State Transducers in Computational Biology Mehryar Mohri Courant Institute of Mathematical Sciences mohri@cims.nyu.edu Joint work with Corinna Cortes (Google Research). 1 This Tutorial

More information

arxiv: v1 [stat.ml] 6 Aug 2014

arxiv: v1 [stat.ml] 6 Aug 2014 MCMC for Hierarchical Semi-Markov Conditional Random Fields arxiv:8.6v [stat.ml] 6 Aug Tran The Truyen, Dinh Q. Phung, Svetha Venkatesh Department of Computing, Curtin University of Technology, Australia

More information

Dynamic Data Modeling, Recognition, and Synthesis. Rui Zhao Thesis Defense Advisor: Professor Qiang Ji

Dynamic Data Modeling, Recognition, and Synthesis. Rui Zhao Thesis Defense Advisor: Professor Qiang Ji Dynamic Data Modeling, Recognition, and Synthesis Rui Zhao Thesis Defense Advisor: Professor Qiang Ji Contents Introduction Related Work Dynamic Data Modeling & Analysis Temporal localization Insufficient

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

CSEP 573: Artificial Intelligence

CSEP 573: Artificial Intelligence CSEP 573: Artificial Intelligence Hidden Markov Models Luke Zettlemoyer Many slides over the course adapted from either Dan Klein, Stuart Russell, Andrew Moore, Ali Farhadi, or Dan Weld 1 Outline Probabilistic

More information

1/30/2012. Reasoning with uncertainty III

1/30/2012. Reasoning with uncertainty III Reasoning with uncertainty III 1 Temporal Models Assumptions 2 Example First-order: From d-separation, X t+1 is conditionally independent of X t-1 given X t No independence of measurements Yt Alternate

More information

CSC401/2511 Spring CSC401/2511 Natural Language Computing Spring 2019 Lecture 5 Frank Rudzicz and Chloé Pou-Prom University of Toronto

CSC401/2511 Spring CSC401/2511 Natural Language Computing Spring 2019 Lecture 5 Frank Rudzicz and Chloé Pou-Prom University of Toronto CSC401/2511 Natural Language Computing Spring 2019 Lecture 5 Frank Rudzicz and Chloé Pou-Prom University of Toronto Revisiting PoS tagging Will/MD the/dt chair/nn chair/?? the/dt meeting/nn from/in that/dt

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

Inference in Explicit Duration Hidden Markov Models

Inference in Explicit Duration Hidden Markov Models Inference in Explicit Duration Hidden Markov Models Frank Wood Joint work with Chris Wiggins, Mike Dewar Columbia University November, 2011 Wood (Columbia University) EDHMM Inference November, 2011 1 /

More information

Statistical Machine Learning from Data

Statistical Machine Learning from Data Samy Bengio Statistical Machine Learning from Data Statistical Machine Learning from Data Samy Bengio IDIAP Research Institute, Martigny, Switzerland, and Ecole Polytechnique Fédérale de Lausanne (EPFL),

More information

Chapter 05: Hidden Markov Models

Chapter 05: Hidden Markov Models LEARNING AND INFERENCE IN GRAPHICAL MODELS Chapter 05: Hidden Markov Models Dr. Martin Lauer University of Freiburg Machine Learning Lab Karlsruhe Institute of Technology Institute of Measurement and Control

More information

1 What is a hidden Markov model?

1 What is a hidden Markov model? 1 What is a hidden Markov model? Consider a Markov chain {X k }, where k is a non-negative integer. Suppose {X k } embedded in signals corrupted by some noise. Indeed, {X k } is hidden due to noise and

More information

CS532, Winter 2010 Hidden Markov Models

CS532, Winter 2010 Hidden Markov Models CS532, Winter 2010 Hidden Markov Models Dr. Alan Fern, afern@eecs.oregonstate.edu March 8, 2010 1 Hidden Markov Models The world is dynamic and evolves over time. An intelligent agent in such a world needs

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

PROBABILISTIC REASONING OVER TIME

PROBABILISTIC REASONING OVER TIME PROBABILISTIC REASONING OVER TIME In which we try to interpret the present, understand the past, and perhaps predict the future, even when very little is crystal clear. Outline Time and uncertainty Inference:

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

Inference and estimation in probabilistic time series models

Inference and estimation in probabilistic time series models 1 Inference and estimation in probabilistic time series models David Barber, A Taylan Cemgil and Silvia Chiappa 11 Time series The term time series refers to data that can be represented as a sequence

More information