Docsity

Context Dependent Classification-Pattern Classification and Recognition-Lecture Slides, Slides of Pattern Classification and Recognition

Partial preview of the text

Download Context Dependent Classification-Pattern Classification and Recognition-Lecture Slides and more Slides Pattern Classification and Recognition in PDF only on Docsity!

1

CONTEXT DEPENDENT CLASSIFICATION ^ Remember:^ Bayes rule ^ Here:^ The^ class^ to

ijxPxP  ),()( ji which^ a^ feature^ vectorbelongs depends on:  Its own value.  The values of the other feature vectors.  An existing relation among the various classes.

2

^ This interrelation demands the classification to beperformed simultaneously for all available featurevectors. ^ Thus, we will assume that the training vectorsoccur^

in^ sequence,^ one^ after

the

other^ and^ we^ will

refer^ to^ them^

as

x,...,x,x N 21 observations.

4

^ NOW remember:or ^ Assume:^ ^ statistically mutually independent.^ ^ The pdf in one class is independent of the others.Then

),...,,( ).,...,(^ )()...,...,(

iii 21 iii^11 iiii^1121

PPiN PNN PPNN

 ^  ^ N  ^ k

PPiiii P^ kk^2

(^

^11

x^ i^ N ^ k

xpXp )()(^ iki k 1

5

^ According to^ the Bayes rule, and the previous relations we have, ^ The above is a product of local actions. To findits maximum value in brute-force task we need Ν^ Ο (NM)^ operations!!

)()())(( ,)())((XPXPji or )(XpPXpP^ ^ jjii ^ 

N k

iiiik iii

xpPkkk

xpPPX

p^

 111 

7

^ Thus, each^ Ω corresponds to one path through thei^ trellis diagram.^ One of them is the optimum (e.g.,black).^ The classes along the optimal path determinethe classes to which^ x

are assigned.i^ ^ To each transition corresponds a cost.

For our case

  • • •

)()() ˆ^ ,(^11

kkk xpPd^  ikiiii kk  (^) ˆ )()(),(xpPd  iiiii 1101

ˆˆ(^1

i

N PXpdD iii^ kk^ k

^  ^

8

  • Equivalentlywhere, • Define the cost up to a node NN ˆˆdDdD (.,.)(.,.)ln ^ ^ kk^1 1 ,k,

ln

ˆ),(ln),

(^ ^ dd^ iiii^11 ^ kkkk^ k dD^ iii^ rrk^ ^ r^1

),()(  1 docsity.com

10

^ Channel Equalization^ ^ The problem• • •

knkkk k^

nIIIf x^

 ),...,,(  11 Txxxlkkkk x^ ],...,,[^ ^11  ˆˆIIx^ ^ or^ rkkk^  ˆIx ^ equalizer^ rkk 

11

^ Example• • • In^ x^ three input symbols are involved:k^ I, I, Ikk-1k-

nII (^5). (^0) x  k (^1) kkk  xk (^2)  l,xkx (^1) k

13

^ Not all transitions are allowed• • Then •

) 1 , 0 , 0 (),,( III 21  kkk )^0 ,^0 ,^1 ( ),,( III 11  kkk )^0 ,^0 ,^0 (  5  2 )(^ P^ ^2 i  1

(^1) , (^5) , (^5). 0 i otherwise, 0 docsity.com

14

  • In^ this^ context,^ ω i^

are^ related^ to^ states.Given the current state and the transmittedbit, I, we determine the next state.^ Thek probabilities P( ω | ω )^ define^ the^ statei j dependence model.

^ The transition cost• for all allowable transitions

)(),( xdd  ii  1 ikk k^1 ^1 T^2  x   ))()(( xx^ kkk (^) iki^ iik^ kk^

16

^ Hidden Markov Models^ ^ In the channel equalization problem, the states areobservable^ and^

can^ be^ “learned”^ during

the training period  Now^ we^ shall^ assume

that^ states^ are^ not observable^ and^ can^ only

be^ inferred^ from^ the training data  Applications:• Speech and Music Recognition• OCR• Blind Equalization• Bioinformatics

17

^ An HMM is a stochastic finite state automaton, thatgenerates the observation sequence,

x^ , x^ ,…, x^12 N ^ We^ assume^ that:^

The^ observation^ sequence

is produced^ as^ a^ result^

of^ successive^ transitions between states, upon arrival at a state:

19

^ Examples of HMM:• The single coin case: Assume a coin that is tossedbehind^ a^ curtain.^

All^ it^ is^ available^ to^ us

is^ the outcome, i.e.,^ H^ or^ T. Assume the two states to be:^ S^ = 1

H S = 2T

This is also an example of a random experimentwith observable states. The model is characterizedby a single parameter, e.g.,

P(H).^ Note that P(1|1) = P(H) P(2|1) = P(T) = 1 –^ P(H)

20

  • The two-coins case: For this case, we observe asequence of^ H^ or^ T. However, we have no access toknow which coin was tossed. Identify one state foreach coin. This is an example where states are notobservable.^ H^ or^ T^

can be emitted from eitherstate. The model depends on four parameters. P(H),^ P(H), (^12) P(1|1),^ P(2|2)