seminar presentation u10ec107

41
8/13/2019 Seminar Presentation U10EC107 http://slidepdf.com/reader/full/seminar-presentation-u10ec107 1/41 A SEMINAR ON ACOUSTIC ECHO CANCELLATION Presented By: Guided By: Amrendra Kumar Mishra Prof. P.K.Shah B.Tech-IV Associate professor U10EC107 ECED,SVNIT

Upload: amrendra-kumar-mishra

Post on 04-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 1/41

A

SEMINAR ONACOUSTIC ECHO CANCELLATION

Presented By: Guided By:

Amrendra Kumar Mishra Prof. P.K.Shah

B.Tech-IV Associate professorU10EC107 ECED,SVNIT

Page 2: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 2/41

OUTLINE

• Introduction

• Acoustic Echo Modeling

• Components of AEC• Algorithms for AEC

• MATLAB Simulation

• Uses & Features• Conclusion

Page 3: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 3/41

WHAT IS ACOUSTIC ECHO ?

Acoustic echo is a time delayed andattenuated version of original speechproduced by a sound source.

Echo is produced due to reflection oforiginal sound from nearby objects ofsound source.

In order to be sensed by human minimum

additional pressure level must be greater

than 20μ pascal at the vicinity of ear ofunderlying person.

Page 4: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 4/41

Continued..

If a person perceives a original sound andit’s echo with an interval of less than 100ms it go unnoticed due to limited capacityof human hearing.

considering above condition if at roomtemperature speed of sound is 340 m/s andthe reflecting object is d distance apartfrom original sound source ,for detection ofecho by a typical human being

(2*d)/velocity of sound > 100 ms.Placingthe proper values distance calculates out tobe 17 m.

Page 5: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 5/41

Acoustic echo in voice communication

Consider the given situation. A mobileuser in handset mode.

Page 6: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 6/41

Mobile user in handsfree mode

Acoustic coupling

Page 7: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 7/41

How to combat this echo?

As, echoes are attenuated and time delayed version of originalsignal voice of far end talker can be processed and a duplicatecopy of the echo based on estimation of echo path can beproduced and be subtracted from overall speech signal toobtain the desired signal for transmission and at the sametime echoes can be prevented from propagating further incommunication network.

Page 8: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 8/41

How should adaptive filter be designed ?

In order to design adaptive filter we will have to modelthe echo mathematically to produce an almost exactreplica of the original sound.

Mathematically if x(t) is the original signal then it’s

one of the components of echo can be represented asa1x(t-t1) where a is the attenuation factor and t1 is thedelay encountered by the sound after reflecting froma surface. In case of multiple path available forreflection the composite signal at the input of

microphone can be written.C(t) = x(t) + a1 x(t-t1) + a2 x(t-t2) + a3 x(t-t3) + ……......an x(t-tn)

Page 9: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 9/41

Acoustic Echo Path Modeling

The acoustic echo path of the near end talkercan be modeled as a linear system having timevarying impulse response h j[n], where j depicts

the coefficient index of h at time n. Given the speech sequence x[n], the resultant

acoustic echo y[n] is:

y[n]=Σ hi[n]x[n-i]Where hi[n] models the impulse response ofthe acoustic path (i.e. from microphone tospeaker at time n).

Page 10: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 10/41

Room Impulse Response and it’sEstimation

Acoustic modeling of room as a system.

Page 11: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 11/41

Impulse response of a room.

If a person produces acoustic impulse in front ofmicrophone microphone won’t receive that impulsedirectly it would rather receive the signal coming fromdifferent paths having reflected off different surfaces. So

the signal sensed by microphone would be as that ofshown

Page 12: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 12/41

Page 13: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 13/41

Block diagram

Complete block diagram for AEC

Page 14: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 14/41

Adaptive filter

This is the backbone of entire AEC system. In case ofacoustic echo cancellation we use FIR filter due to it’sstability. Adaptive filter employed in AEC estimates echopath based on a raw signal and with it’s comparison withthe received signal in a closed room environment.

let x be the far end signal vector. H is the room impulseresponse, y be the near end signal that consists ofacoustic echo along with voice of near end talker. H, thetransfer function of adaptive filter which has n number of

coefficients depending upon the order of the filter used.Coefficients of the filters keep on changing based on theecho estimation by the adaptive filter.

Page 15: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 15/41

Filter structure

Page 16: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 16/41

How to update coefficients ofadaptive filter ?

There are 6 algorithms used forupdating coefficients of the filter:

Least mean square algorithm

Normalized mean square algorithm

Affine projection algorithm

Fast affine projection algorithm

Recursive least square algorithm Variable step size FAP algorithm

Page 17: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 17/41

Least mean square algorithm

In 1959 Widrow and Hoff introduced the LMS algorithm.During the years this has been the by far most usedadaptive filtering algorithm for several reasons; it wasthe first, it requires relatively little computation and it

works well, at least for slow changes in the filter.

C(n) = E ( e(n)2 )Where c(n) is called as cost function.

C(n) is minimized to estimate impulse response of room

Page 18: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 18/41

Implementation of LMS algorithm

Each iteration of LMS algorithm willcarry out following procedure:

1. The output of the FIR filter, y(n) iscalculated using equation:

Page 19: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 19/41

Continued..

2. The value of the error estimation iscalculated using equation

e(n)=c(n)-y(n) For entire input vector square of e(n) is

calculated and added. Thereafteriteration keeps on happening and when

the mean square error is achieved acertain value adaption stops.

Page 20: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 20/41

Continued..

3. Lastly, the filter coefficients for nextiteration is calculated using followingformula:

Where μ is called step size and isfixed for LMS algorithm

Page 21: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 21/41

Page 22: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 22/41

NLMS algorithm & it’s implementation

NLMS algorithm is just anadvancement of LMS algorithm.

Steps for performing iteration: Output of the filter is calculated

according to following equation:

Page 23: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 23/41

Continued..

An error signal is calculated as thedifference between the desired signaland the filter output.

Where d(n) and y(n) hold same logical meaning

as in case of LMS algorithm.

Page 24: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 24/41

Continued..

The step size value for the inputvector is calculated.

Where x(n) is input vector and

superscript T denotes transpose ofmatrix X.

Page 25: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 25/41

Continued..

Filter tap weights are updatedaccording to the following equation

Page 26: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 26/41

Comparison between LMS & NLMS

For 1025 order and 7500 iteration below isthe quantitative comparison between bothalgorithms.

Courtesy:S.Haykin, “Adaptive Filter Theory”, PrenticeHall, 1996

Page 27: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 27/41

Double talk detector

AEC should be able to perform it’s task that whencommunication is in fully duplex nature that implies thatboth the ends are allowed to talk at the same instant,and therefore the name DT- Double Talk. The signalreceived by the microphone will not only comprise echo,

but it will also contain the NET speech signal, if doubletalk exists. The near end signal acts as an uncorrelatednoise as to the adaptive algorithm and so it could allgive rise to the divergence of the adaptive filter. It istherefore necessary to find the existence of double talkin order to seize the process of adaption.

Page 28: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 28/41

How to decide DT ?

There are two main algorithm:

Geigel algorithm

Variance impulse response algorithm.

Page 29: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 29/41

Geigel algorithm

when the consented microphoneestimation tear by the maximum ofthe previous far-end samples is

greater than precise threshold, theDT is declared.

ξ > T, Double talk exist

ξ ≤ T ,Double talk doesn’t exist

Page 30: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 30/41

Variance Impulse Response Algorithm

A newly used method that employs the highest value of theadaptive filter coefficients is VIRE DTD. The adaptive filter’svariance is what designs the VIRE (Variance impulse responsealgorithm) of recent times. Random variations are produced in thetaps of the adaptive filter because the near end speech signal actslike a degrading noise. The adaptive filter’s optimal coefficient areused so as to calculate the fluctuations along with the exponentialforgetting parameter:

By defining certain threshold for the fluctuations ofthe adaptive filter taps, the DT decisionis made as following:

ξ > T Double Talk exist

ξ ≤ T Double Talk doesn’t existDT detection is always frame based. At the end ofeach frame it will be computed.

Therefore the frame length is generally small

Page 31: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 31/41

Non Linear processor

Due to quantization of analog speechthere exist some residual echo whichis afterwards removed by Non Linear

processor.

Although it is not a part of acousticecho canceller, it is often inbuilt in

AEC.

Page 32: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 32/41

Simulation in MATLAB

Random room impulse response

Page 33: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 33/41

Continuted..

Near end talker speech sample

Page 34: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 34/41

Continued..

Far end echoed signal

Page 35: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 35/41

Micro phone signal

Page 36: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 36/41

Output of echo canceller

Page 37: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 37/41

Industry perspective of AEC

Adaptive digital technologies haspatented the AEC & manufactures

AEC-GEN 2 in software codec.

Texas instrument too has developedan AEC kit TMS320C6711 which canprovide echo return loss upto 50

decibel.

Page 38: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 38/41

Typical Feature of an AEC

Courtesy:http://www.adaptivedigital.com/pdfspecs/adt_aec-g2.pdf 

Page 39: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 39/41

Applications:

Hands free telephony

Teleconferencing

Howling rejector VOIP

Audio tone Data transfer

Page 40: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 40/41

Conclusion

In the era of frequent use of hands free acoustic couplingof mc-phone and speaker is quite natural so AECavailability in relevant devices is must.

Along with AEC efficient noise suppression must also becarried out by AEC.

Presently 128 ms tail length echo can be nullified whichis expected to increase a bit further.

Advent of more robust DSP processor and efficientalgorithms are likely to enhance speech quality to agreat extent.

Employing sophisticated techniques echo return loss of90 decibel is quite likely to be achieved in upcoming fewyears.

Page 41: Seminar Presentation U10EC107

8/13/2019 Seminar Presentation U10EC107

http://slidepdf.com/reader/full/seminar-presentation-u10ec107 41/41

THANK YOUHOPE YOU ENJOYED