Prediction Error Signal
1. Speech Production Model p sn()=−+ asn ( k ) Gun () ∑ k Gu(n) s(n) k =1 H(z) Digital Speech Processing— Sz() G Hz()== Uz() p 1− az−k Lecture 14 ∑ k k =1 2. LPC Model: p en()= sn ()−=− sn () sn ()α sn ( − k ) % ∑ k s(n) e(n) k =1 A(z) Ez() p Az()==−1 α z−k Linear Predictive ∑ k Sz() k =1 3. LPC Error Model: Coding (LPC)-Lattice 11Sz() == Az() Ez () p 1− α z−k e(n) s(n) ∑ k 1/A(z) Methods, Applications k =1 p sn()=+ en ()α sn ( − k ) ∑ k Perfect reconstruction even if 1 k =1 2 ak not equal to αk
Lattice Formulations of LP Lattice Formulations of LP
• define the system function of the i th order inverse filter • both covariance and autocorrelation methods use (prediction error filter) as two step solutions i Az()iik ( ) =−1 α () z− 1. computation of a matrix of correlation values ∑ k k =1 2. efficient solution of a set of linear equations • if the input to this filter is the input segment ˆ ()ii () ˆ • another class of LP methods, called lattice methods, smnˆ ()=+ snmwm ( )(), with output emnˆ ( )=+ enm ( ) i has evolved in which the two steps are combined into em()ii()=− sm ()α () smk ( − ) ∑ k a recursive algorithm for determining LP parameters k =1 ˆ th • where we have dropped subscript n - the absolute • begin with Durbin algorithm--at the i stage the set of location of the signal ()ith• the z-transform gives coefficients {α j ,ji= 12 , ,..., } are coefficients of the i order ⎛⎞i optimum LP Ez()ii ( )==− AzSz () ( ) ( ) ⎜⎟1 α ()ikzSz− () ⎜⎟∑ k ⎝⎠k =1 3 4
Lattice Formulations of LP Lattice Formulations of LP
• where we can interpret the first term as the z-transform • using the steps of the Durbin recursion of the forward prediction error for an (i −1 )st order predictor, ()ii (-)11 (-) i () i and the second term can be similarly interpreted based on (ααjj =−=kkii α ij- , and α i ) defining a backward prediction error ()i ()iii−− ()1111 −−− ii () () i − we can obtain a recurrence formula for Az ( ) Bz ()== zAzSzzA ( )() ( zSzkAzSz )() −i ()() −−11()ii () − 1 of the form =−zB() z kEi () z ()ii (−−−11 ) ii ( ) −1 • with inverse transform Az ( )=− A ( zkzA ) i ()z i bm()iii ( )=−− smi ( )α () smki ( +−= ) b (−1 ) ( m −1)()− ke()i −1 m • giving for the error transform the expression ∑ k i k =1 ()ii ()−−−−111 ii () •− with the interpretation that we are attempting to predict sm ( i ) from the EzAzSzkzAzSz ( )=− ( ) ( )i ( ) ( ) ismi samples of the input that follow (− ) => we are doing a backward ()ii ()−−11 () i ()i em()=− e () mkbmi ( −1 ) prediction and bm ( ) is called the backward prediction error sequence
5 6
1 Lattice Formulations of LP Lattice Formulations of LP
• the prediction error transform and sequence Ezem()ii ( ), () ( ) can now be expressed in terms of forward and backward errors, namely ()ii ()−−−111 () i Ez()=− E () zkzBi () z ()ii (−−11 ) ( i) em ( )=− e ( mkb ) i ()1m −∗1 • similarly we can derive an expression for the backward error transform and sequence at sample m of the form ()ii−−11 () () i − 1 Bz()=− zB () zkEzi () ()ii ()−−11 () i bm ( )=−−∗ b ( m1 ) kemi ( ) 2 • these two equations define the forward and backward prediction error for an i th order predictor in terms of the corresponding prediction errors of an (i −1 )th order predictor, with the reminder that a zeroth order predictor does no prediction, so embmsm()00 ( )== () ( ) ( ) 01 ≤≤− mL ∗ 3 same set of samples is used to forward predict s(m) Ez()== E()p () z Az ()/() Sz and backward predict s(m-i) 7 8
Lattice Formulations of LP Lattice Formulations of LP