Cognitive Computer Vision 3R400 Kingsley Sage Room 5C16, Pevensey III

Slides:



Advertisements
Similar presentations
HMM II: Parameter Estimation. Reminder: Hidden Markov Model Markov Chain transition probabilities: p(S i+1 = t|S i = s) = a st Emission probabilities:
Advertisements

Lecture 8: Hidden Markov Models (HMMs) Michael Gutkin Shlomi Haba Prepared by Originally presented at Yaakov Stein’s DSPCSP Seminar, spring 2002 Modified.
Introduction to Hidden Markov Models
Hidden Markov Models Eine Einführung.
Hidden Markov Models Bonnie Dorr Christof Monz CMSC 723: Introduction to Computational Linguistics Lecture 5 October 6, 2004.
Patterns, Profiles, and Multiple Alignment.
Cognitive Computer Vision
Page 1 Hidden Markov Models for Automatic Speech Recognition Dr. Mike Johnson Marquette University, EECE Dept.
Statistical NLP: Lecture 11
Ch-9: Markov Models Prepared by Qaiser Abbas ( )
Hidden Markov Models Theory By Johan Walters (SR 2003)
Statistical NLP: Hidden Markov Models Updated 8/12/2005.
1 Hidden Markov Models (HMMs) Probabilistic Automata Ubiquitous in Speech/Speaker Recognition/Verification Suitable for modelling phenomena which are dynamic.
Hidden Markov Models Fundamentals and applications to bioinformatics.
Lecture 15 Hidden Markov Models Dr. Jianjun Hu mleg.cse.sc.edu/edu/csce833 CSCE833 Machine Learning University of South Carolina Department of Computer.
Apaydin slides with a several modifications and additions by Christoph Eick.
INTRODUCTION TO Machine Learning 3rd Edition
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
HMM-BASED PATTERN DETECTION. Outline  Markov Process  Hidden Markov Models Elements Basic Problems Evaluation Optimization Training Implementation 2-D.
Hidden Markov Model 11/28/07. Bayes Rule The posterior distribution Select k with the largest posterior distribution. Minimizes the average misclassification.
Hidden Markov Models I Biology 162 Computational Genetics Todd Vision 14 Sep 2004.
Part 4 b Forward-Backward Algorithm & Viterbi Algorithm CSE717, SPRING 2008 CUBS, Univ at Buffalo.
. Hidden Markov Model Lecture #6 Background Readings: Chapters 3.1, 3.2 in the text book, Biological Sequence Analysis, Durbin et al., 2001.
S. Maarschalkerweerd & A. Tjhang1 Parameter estimation for HMMs, Baum-Welch algorithm, Model topology, Numerical stability Chapter
Learning, Uncertainty, and Information Big Ideas November 8, 2004.
Hidden Markov Models K 1 … 2. Outline Hidden Markov Models – Formalism The Three Basic Problems of HMMs Solutions Applications of HMMs for Automatic Speech.
Elze de Groot1 Parameter estimation for HMMs, Baum-Welch algorithm, Model topology, Numerical stability Chapter
Hidden Markov Models.
Hidden Markov Models. Hidden Markov Model In some Markov processes, we may not be able to observe the states directly.
Learning HMM parameters Sushmita Roy BMI/CS 576 Oct 21 st, 2014.
INTRODUCTION TO Machine Learning ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
Hidden Markov Model Continues …. Finite State Markov Chain A discrete time stochastic process, consisting of a domain D of m states {1,…,m} and 1.An m.
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
Class 5 Hidden Markov models. Markov chains Read Durbin, chapters 1 and 3 Time is divided into discrete intervals, t i At time t, system is in one of.
Cognitive Computer Vision 3R400 Kingsley Sage Room 5C16, Pevensey III
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
Combined Lecture CS621: Artificial Intelligence (lecture 25) CS626/449: Speech-NLP-Web/Topics-in- AI (lecture 26) Pushpak Bhattacharyya Computer Science.
Ch10 HMM Model 10.1 Discrete-Time Markov Process 10.2 Hidden Markov Models 10.3 The three Basic Problems for HMMS and the solutions 10.4 Types of HMMS.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21- Forward Probabilities and Robotic Action Sequences.
Fundamentals of Hidden Markov Model Mehmet Yunus Dönmez.
Hidden Markov Models Yves Moreau Katholieke Universiteit Leuven.
Hidden Markov Models Usman Roshan CS 675 Machine Learning.
Cognitive Computer Vision Kingsley Sage and Hilary Buxton Prepared under ECVision Specific Action 8-3
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: ML and Simple Regression Bias of the ML Estimate Variance of the ML Estimate.
Hidden Markov Models & POS Tagging Corpora and Statistical Methods Lecture 9.
PGM 2003/04 Tirgul 2 Hidden Markov Models. Introduction Hidden Markov Models (HMM) are one of the most common form of probabilistic graphical models,
1 CSE 552/652 Hidden Markov Models for Speech Recognition Spring, 2005 Oregon Health & Science University OGI School of Science & Engineering John-Paul.
CS Statistical Machine learning Lecture 24
CSC321: Neural Networks Lecture 16: Hidden Markov Models
Hidden Markovian Model. Some Definitions Finite automation is defined by a set of states, and a set of transitions between states that are taken based.
1 CS 552/652 Speech Recognition with Hidden Markov Models Winter 2011 Oregon Health & Science University Center for Spoken Language Understanding John-Paul.
1 CSE 552/652 Hidden Markov Models for Speech Recognition Spring, 2006 Oregon Health & Science University OGI School of Science & Engineering John-Paul.
1 Hidden Markov Model Observation : O1,O2,... States in time : q1, q2,... All states : s1, s2,... Si Sj.
1 Hidden Markov Models Hsin-min Wang References: 1.L. R. Rabiner and B. H. Juang, (1993) Fundamentals of Speech Recognition, Chapter.
1 Hidden Markov Model Observation : O1,O2,... States in time : q1, q2,... All states : s1, s2,..., sN Si Sj.
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition Objectives: Reestimation Equations Continuous Distributions.
Cognitive Computer Vision Kingsley Sage and Hilary Buxton Prepared under ECVision Specific Action 8-3
Hidden Markov Model Parameter Estimation BMI/CS 576 Colin Dewey Fall 2015.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
Hidden Markov Models HMM Hassanin M. Al-Barhamtoshy
MACHINE LEARNING 16. HMM. Introduction Lecture Notes for E Alpaydın 2004 Introduction to Machine Learning © The MIT Press (V1.1) 2  Modeling dependencies.
Hidden Markov Models BMI/CS 576
CHAPTER 15: Hidden Markov Models
Hidden Markov Models - Training
Hidden Markov Models Part 2: Algorithms
1.
Hidden Markov Model LR Rabiner
Algorithms of POS Tagging
Hidden Markov Models By Manish Shrivastava.
Presentation transcript:

Cognitive Computer Vision 3R400 Kingsley Sage Room 5C16, Pevensey III

Markov Models - Seminar Practical issues in computing a forward evaluation matrix – The prior state assumption – Scaling Evaluating the fit between a model and observed data Backwards evaluation – What is it ? – Why do we need it ?

Forward evaluation From the previous lecture SunnyRainWet Sunny Rain Wet RedGreenBlue Sunny Rain Wet N hidden states M observable states Here O = {o 1 = red, o 2 = green}  t=1t=2 Sunny 10.80{(0.80*0.6) + (0.00*0.1) + (0.00*0.2)} * 0.1 = Rain 00.00{(0.80*0.3) + (0.00*0.6) + (0.00*0.2)} * 0.8 = Wet 00.00{(0.80*0.1) + (0.00*0.3) + (0.00*0.6)} * 0.2 = 0.016

The prior state of the model  Sunny1.0 Rain0.0 Wet0.0 That’s OK if we know the hidden structure of our model and what state it was in at t = 0, but this is not always the case. If we have no other prior knowledge we assume a uniform prior at t = 0 …  = {1/N,1/N,1/N} where N is # of hidden states Here  = {1,0,0}.

Scaling (1) : Arithmetic underflow  t=1t=2t=3t=4t=5 Sunny 1/ Rain 1/ Wet 1/ O = {o 1 = red, o 2 = green, o 3 = green, o 4 = blue, o 5 = red} Problem: co-efficients  0 geometrically as t increases. For long sequences this can give rise to arithmetic underflow

Scaling (2)  t=1t=2t=3t=4t=5 Sunny 1/ Rain 1/ Wet 1/ Scaling Factor Solution: Normalise each column so that it sums to 1 before continuing onto the next column of the forward evaluation. Each column then has a scaling factor SF t Need to think about what this means for the probability values!

Evaluating the fit between a model and observed data (1) Given any HMM = ( , A, B), we want to be able to measure how well describes an arbitrary observation sequence O. Forward evaluation is the mechanism, but what is the quantative measure?  Likelihood per symbol

Evaluating the fit between a model and observed data (2) i.e. the probability associated with any discrete observation symbol o t is the sum of the trellis column at time t p(o t ) gives us a measure of how the model fits on account of o t

Evaluating the fit between a model and observed data (3)  t=1t=2t=3t=4t=5 Scaling Factor Likelihood L t = 1 / SF t gives us a measure of fit between o t and the model assuming normalisation at step t-1, I.e. that all steps have equal importance: L t = 1  Best possible fit L t  0  No fit

Evaluating the fit between a model and observed data (4)  t=1t=2t=3t=4t=5 Scaling Factor / SF Average value over all T gives us the measure of the fit between the model and an observation sequence Av/symbol = ( / 5 =

Evaluating the fit between a model and observed data (5) Often expressed as a log value (log likelihood /symbol): LLPS = ln (Av/symbol) = ln(L t ) = 0  Best possible fit ln(L t )  -  No fit

Evaluating the fit between a model and observed data (6) So we can use the LLPS measure to “score” observations sequences. The workings are left as a practical exercise. OAv / SymLLPS {red,red,red} {red,blue,green} {blue, green, blue, red} NB: The sequences do not need to be the same length

Backwards evaluation (1) Similar process to forward evaluation except that instead of  relating to state of model at time t = 0, it refers to the state of the model at time t = T, and we work our trellis calculations in the other direction Let’s see this in action …

Backwards evaluation (2) SunnyRainWet Sunny Rain Wet RedGreenBlue Sunny Rain Wet N hidden states M observable states Assume and O = {o 1,o 2, …, o T-1,o T } are given …

Backwards evaluation (3) t=T Sunny1.0 Rain1.0 Wet1.0 SunnyRainWet Sunny Rain Wet RedGreenBlue Sunny Rain Wet N hidden states M observable states time t = T is a special case We don’t know the terminal state …

Backwards evaluation (4) SunnyRainWet Sunny Rain Wet RedGreenBlue Sunny Rain Wet N hidden states M observable states Here O = {…, o T = green} t = T-1t=T Sunny (1.00*0.6*0.1)+(1.00*0.3*0.8)+(1.00*0.1*0.2) = Rain (1.00*0.1*0.1)+(1.00*0.6*0.8)+(1.00*0.3*0.2) = Wet (1.00*0.2*0.1)+(1.00*0.2*0.8)+(1.00*0.6*0.2) =

Backwards evaluation (5) Can calculate p(O| ) just like forward evaluation Same scaling tricks apply Why do we need it then? – Combine with forward evaluation to create a technique for learning model parameters – The forward-backwards algorithm / Baum Welch learning (next lecture)

Coursework Investigating forwards and backwards evaluation and measures of model fit Need to write code or perform manual calculations, carry out specified experiments and write up a short report Due