International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September ISSN

Similar documents
ADAPTIVE ALGORITHMS FOR ACOUSTIC ECHO CANCELLATION IN SPEECH PROCESSING

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

LMS is a simple but powerful algorithm and can be implemented to take advantage of the Lattice FPGA architecture.

Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

The Filtered-x LMS Algorithm

A STUDY OF ECHO IN VOIP SYSTEMS AND SYNCHRONOUS CONVERGENCE OF

Echo Troubleshooting Guide How to identify, troubleshoot and remove echoes in installed-room AV systems

Boost Your Skills with On-Site Courses Tailored to Your Needs

LOW COST HARDWARE IMPLEMENTATION FOR DIGITAL HEARING AID USING

Adaptive Variable Step Size in LMS Algorithm Using Evolutionary Programming: VSSLMSEV

4F7 Adaptive Filters (and Spectrum Estimation) Least Mean Square (LMS) Algorithm Sumeetpal Singh Engineering Department sss40@eng.cam.ac.

Background 2. Lecture 2 1. The Least Mean Square (LMS) algorithm 4. The Least Mean Square (LMS) algorithm 3. br(n) = u(n)u H (n) bp(n) = u(n)d (n)

Implementing an In-Service, Non- Intrusive Measurement Device in Telecommunication Networks Using the TMS320C31

Log-Likelihood Ratio-based Relay Selection Algorithm in Wireless Network

Adaptive Equalization of binary encoded signals Using LMS Algorithm

Enhancing the SNR of the Fiber Optic Rotation Sensor using the LMS Algorithm

Application Notes. Contents. Overview. Introduction. Echo in Voice over IP Systems VoIP Performance Management

Introduction to acoustic imaging

Active Noise Cancellation Project

A Novel Approach For Voice Quality Enhancement For VoIP Applications Using DSP Processor

IMPLEMENTATION OF THE ADAPTIVE FILTER FOR VOICE COMMUNICATIONS WITH CONTROL SYSTEMS

(Refer Slide Time: 01:11-01:27)

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

Development and optimization of a hybrid passive/active liner for flow duct applications

Echo Cancellation. Definition. Overview. Topics

application note Directional Microphone Applications Introduction Directional Hearing Aids

INTER CARRIER INTERFERENCE CANCELLATION IN HIGH SPEED OFDM SYSTEM Y. Naveena *1, K. Upendra Chowdary 2

Luigi Piroddi Active Noise Control course notes (January 2015)

Lecture 5: Variants of the LMS algorithm

Adjusting Voice Quality

QoS issues in Voice over IP

CA Unified Communications Monitor

From Concept to Production in Secure Voice Communications

Time and Frequency Domain Equalization

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator.

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Load-Balanced Implementation of a Delayless Partitioned Block Frequency-Domain Adaptive Filter

Introduction 1.1 CONCEPT

EE289 Lab Fall LAB 4. Ambient Noise Reduction. 1 Introduction. 2 Simulation in Matlab Simulink

Implementation of Modified Booth Algorithm (Radix 4) and its Comparison with Booth Algorithm (Radix-2)

Analog Signal Conditioning

HD Radio FM Transmission System Specifications Rev. F August 24, 2011

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Experiment 7: Familiarization with the Network Analyzer

Tech Note. Introduction. Sources of Echo

ARTICLE. Sound in surveillance Adding audio to your IP video solution

Search keywords: Connect, Meeting, Collaboration, Voice over IP, VoIP, Acoustic Magic, audio, web conferencing, microphone, best practices

Overview of the Telecommunications Network

A Comparison of Speech Coding Algorithms ADPCM vs CELP. Shannon Wichman

TTT4120 Digital Signal Processing Suggested Solution to Exam Fall 2008

The continuous and discrete Fourier transforms

Enhanced In-house Voice Communication over Power- Line Network

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Title : Analog Circuit for Sound Localization Applications

System Identification for Acoustic Comms.:

Em bedded DSP : I ntroduction to Digital Filters

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Mission Critical Voice Communications Requirements for Public Safety National Public Safety Telecommunications Council Broadband Working Group

SGN-1158 Introduction to Signal Processing Test. Solutions

2005 Ameritec Corporation

WHITE PAPER VoIP Networks August Keys to Minimizing Echo in VoIP Networks

Frequency Response of FIR Filters

Adaptive Sampling Rate Correction for Acoustic Echo Control in Voice-Over-IP Matthias Pawig, Gerald Enzner, Member, IEEE, and Peter Vary, Fellow, IEEE

Impedance 50 (75 connectors via adapters)

Monitoring VoIP Call Quality Using Improved Simplified E-model

Vector Network Analyzer Techniques to Measure WR340 Waveguide Windows

Analog & Digital Electronics Course No: PH-218

Technical Information. Digital Signals. 1 bit. Part 1 Fundamentals

(Refer Slide Time: 00:01:16 min)

MUSC 1327 Audio Engineering I Syllabus Addendum McLennan Community College, Waco, TX

Automatic Detection of Emergency Vehicles for Hearing Impaired Drivers

White Paper Effective Audio For Video Conferencing. January S. Ann Earon, Ph.D. President, Telemanagement Resources International Inc.

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Transport Layer Protocols

2695 P a g e. IV Semester M.Tech (DCN) SJCIT Chickballapur Karnataka India

THE SIMULATION OF MOVING SOUND SOURCES. John M. Chowning

Module 5. Broadcast Communication Networks. Version 2 CSE IIT, Kharagpur

Voice Communication Package v7.0 of front-end voice processing software technologies General description and technical specification

A SIMULATION STUDY ON SPACE-TIME EQUALIZATION FOR MOBILE BROADBAND COMMUNICATION IN AN INDUSTRIAL INDOOR ENVIRONMENT

Voice over IP. Overview. What is VoIP and how it works. Reduction of voice quality. Quality of Service for VoIP

VoIP 101. E911-Enhanced 911- Used for providing emergency service on cellular and internet voice calls.

Figure1. Acoustic feedback in packet based video conferencing system

APPENDIX 1 USER LEVEL IMPLEMENTATION OF PPATPAN IN LINUX SYSTEM

Audio Engineering Society. Convention Paper. Presented at the 129th Convention 2010 November 4 7 San Francisco, CA, USA

Oscillations of the Sending Window in Compound TCP

By choosing to view this document, you agree to all provisions of the copyright laws protecting it.

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

New Pulse Width Modulation Technique for Three Phase Induction Motor Drive Umesha K L, Sri Harsha J, Capt. L. Sanjeev Kumar

Computer exercise 2: Least Mean Square (LMS)

Nexus Technology Review -- Exhibit A

Analog and Digital Filters Anthony Garvert November 13, 2015

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

C ellular telephones increasingly use digital

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

Lecture - 4 Diode Rectifier Circuits

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

Life is on. Interact freely. Communicate with confidence. Live without limit. Life is on.

Current-Transformer Phase-Shift Compensation and Calibration

Switch Mode Power Supply Topologies

Transcription:

International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September-2013 1485 A contingent adaptive echo cancellation method by actualizing different algorithms Achintaya Kumar, Kashish Yadav Abstract An Echo can be defined as the repetition of a waveform due to the reflection from points through which it propagates. In the process of Communication, it degrades the quality of service. Echo that result from a feedback path set up between the speaker and microphone in a mobile phone are known as Acoustic Echo. Echo that result from an impedance mismatch at telephone exchange hybrids between 2-line & 4-wire line are known as Hybrid Echo. This paper is an attempt at the cancellation of echo and comparison with various types of LMS Algorithms, which has shown positive outcome towards the process of Echo Cancellation Adaptive Filters. Index Terms Adaptive Filters, Discrete Time Signals, Echo Cancellation, LMS Algorithm, NLMS Algorithm, Transversal FIR Filters, VSLMS Algorithm, VSNLMS Algorithm. 1. Introduction In today s Telecommunication systems, Adaptive echo cancellation has a very common occurrence in the establishment of a communication link. It basically occurs when an audio source and sink has a full duplex operation mode, an example for which is a hands-free loudspeaker telephone. The signal interference caused by adaptive echo is distracting to both the users which are communicating and Fig.1 Illustration of echo in a mobile to landline system causes a mass reduction in the quality of the communication. This paper focuses on the use of various techniques and The problem stated above is faced by each and every person algorithms of adaptive filtering, employing discrete signal who uses a communication system in his/her daily life. processing in MATLAB, to reduce this unwanted echo and So, in order to reduce this problem to optimum minimal and thus increase communication quality. generating an Efficient Generalized Algorithm for the echo Adaptive filters are a class of filters that iteratively alter their parameters in order to minimize a function of the difference between a desired audio signal and their system output signal. In the case of adaptive echo in telecommunications, the optimal output is an echoed signal that accurately emulates the unwanted echo signal. This is then used to negate the echo in the return signal. An example of a hands-free telephone system: In this scenario the system has both an active loudspeaker and microphone input operating simultaneously. When a signal is received by the system, it is output through the loudspeaker into an acoustic environment. This signal is reverberated within the environment and returned to the system via the microphone input. These reverberated signals contain time delayed images of the original signal, which are then returned to the original sender. The occurrence of adaptive echo in speech transmission causes signal interference and reduced cancellation motivated us for cancellation of Echo with the help of basic Digital Signal Processing. In general, echoes with appreciable amplitude and a delay of more than 1 ms are noticeable. However, echoes become increasingly annoying and objectionable with the increasing round-trip delay and amplitude in particular for delays of more than 20 ms. Hence echo cancellation is an important aspect of the design of modern telecommunication systems such as conventional wire line telephones, hands-free phones, cellular mobile (wireless) phones, or teleconference systems. There are two types of echo in a telephone system: (a) Acoustic echo due to acoustic coupling between the speaker and the microphone. (b) Electrical line echo due to mismatch at the hybrid circuit connecting a 2-wire subscriber line to a 4-wire truck line in the public switched telephone network. The method used to cancel the echo signal is known as quality of communication. adaptive filtering. Adaptive filters are dynamic filters which iteratively alter their characteristics in order to achieve an optimal desired output. An adaptive filter algorithmically Achintaya Kumar is currently pursuing bachelors degree program in Electronics and Communication Engineering in Vellore Institute of alters its parameters in order to minimize a function of the Technology, India. E-mail:achintaya.kumar@gmail.com. difference between the desired output d(n) and its actual Kashish Yadav is currently pursuing bachelors degree program in output y(n). This function is known as the cost function of the Electronics and Communication Engineering in Vellore Institute of adaptive algorithm. Technology, India. E-mail: kashishyadav92@gmail.com 2013

International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September-2013 1486 Fig. 2 Block diagram of Adaptive Echo Cancellation System 2. Background Theory In order to understand the content presented in this paper, it is first necessary to provide some background information regarding digital signal theory. It will start out rather elementary and then progress to more complicated matters. Later chapters will build upon this theoretical basis in the derivation and implementation of the adaptive filtering techniques used in acoustic echo cancellation. 2.1 Discrete Time Signals Real world signals, such as speech are analog and continuous. In modern day communication systems these signals are represented electronically by discrete numeric sequences. In these sequences, each value represents an instantaneous value of the continuous signal. These values are taken at regular time periods, known as the sampling period, Ts. For example, consider a continuous waveform given by x(t). In order to process this waveform digitally we first must convert Fig. 3 Adaptive Filter Design this into a discrete time vector. Each value in the vector represents the instantaneous value of this waveform at integer multiples of the sampling period. The values of the sequence, x(t) corresponding to the value at n times the sampling period is denoted as x(n). x(n) = x(nnn) (1) 2.2 Transversal FIR Filters A filter can be defined as a piece of software or hardware that takes an input signal and processes it so as to extract and output certain desired elements of that signal. This paper shall be contained to adaptive filtering method. The characteristics of a transversal FIR filter can be expressed as a vector consisting of values known as tap weights. It is these tap weights which determine the performance of the filter. These values are expressed in column vector form as, corresponds to the order of the filter, denoted in this paper by the character N. The output of the FIR filter at time n is determined by the sum of the products between the tap weight vector, w(n) and N time delayed input values. If these time delayed inputs are expressed in vector form by the column vector x(n) = [x(n) x(n- 1) x(n-2).. x(n-n+1)]t, the output of the filter at time n is expressed by equation 2.2. Throughout paper the vector containing the time delayed input values at time n is referred to as the input vector, x(n). In adaptive filtering the tap weight values are time varying so for each at each time interval a new FIR tap weight vector must be calculated, this is denoted as the column vector w(n) = [w 0 (n)w 1 (n)w 2 (n) w (n)] T y(n) = i=1 w(n)x(n i) = w T x(n) 2.3 Adaptive Filters Figure 3 shows the block diagram for the adaptive filter method utilized where w represents the coefficients of the FIR filter tap weight vector, x(n) is the input vector samples, z-1 is a delay of one sample periods, y(n) is the adaptive filter output, d(n) is the desired echoed signal and e(n) is the estimation error at time n. The aim of an adaptive filter is to calculate the difference between the desired signal and the adaptive filter output, e(n). This error signal is fed back into the adaptive filter and its coefficients are changed algorithmically in order to minimize a function of this difference, known as the cost function. In the case of acoustic echo cancellation, the optimal output of the adaptive filter is equal in value to the unwanted echoed signal. When the adaptive filter output is equal to desired signal the error signal goes to zero. In this situation the echoed signal would be completely cancelled and the far user would not hear any of their original speech returned to them. 3. METHODOLOGY w(n) = [w 0 (n)w 1 (n)w 2 (n) w (n)] T (2) The number of elements on this impulse response vector 3.1 Least Mean Square (LMS) Algorithm It is well known algorithm and is widely used due to its 2013

International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September-2013 1487 computational simplicity. It has a low memory consumption and has an ease of implementation. For each iteration the LMS algorithm requires 2N additions and 2N+1 multiplications (N for calculating the output, y(n), one for 2μe(n) and an additional N for the scalar by vector multiplication). The LMS Algorithm is performed the following steps: i) The output of the FIR filter,y(n) is calculated w(n + 1) = w(n) + 2μe(n)x(n) (3) ii) The value of the errorestimation is calculated e(n) = d(n) y(n) (4) iii) The tap weights of the FIR vector are updated in the preparation for the next iteration w(n + 1) = w(n) + 2μe(n)x(n) (5) 3.2 Normalised Least Mean Square(NLMS) Algorithm The normalized least mean square algorithm (NLMS) is an extension of the LMS algorithm which bypasses this issue by selecting a different step size value, μ(n), for each iteration of the algorithm. This step size is proportional to the inverse of the total expected energy of the instantaneous values of the coefficients of the input vector x(n). Each iteration of the NLMS algorithm requires 3N+1 multiplications, this is only N more than the standard LMS algorithm and this is an acceptable increase considering the gains in stability and echo attenuation achieved. The NLMS Algorithm is performed the following steps: y(n) = i=1 w(n)x(n i) = w T x(n) (6) ii) The value of the error estimation is calculated e(n) = d(n) y(n) (7) iii) The step size value for the input vector is calculated μ(n) = 1 (8) x T x(n) iv) The tap weights of the FIR vector are updated in preparation for the next iteration w(n + 1) = w(n) + 2μe(n)x(n) (9) 3.3 Variable Step Size LMS (VSLMS) Algorithm In the Variable Step Size Least Mean Square (VSLMS) algorithm the step size for each iteration is expressed as a vector, μ(n). Each element of the vector μ(n) is a different step size value corresponding to an element of the filter tap weight vector, w(n). With ρ=1, each iteration of the VSLMS algorithm requires (4N+1) multiplication operations. The VSLMS Algorithm is performed the following steps: y(n) = i=1 w(n)x(n i) = w T x(n) (10) ii) iii) The value of the error estimation is calculated as the difference between the desired output and the filter output. e(n) = y(n) d(n) (11) The gradient, step size and filter tap weight vectors are updated the following equations in preparation for the next iteration, FFF i = 0,1, N 1 g i (n) = e(n)x(n i) g(n) = e(n)x(n) μ i (n) = μ i (n 1) + ρg i (n)g i (n 1) ii μ i (n) > μ max, μ i (n) = μ max ii μ i (n) < μ min, μ i (n) = μ min w i (n + 1) = w i (n) + 2μ i (n)g i (n) (12) 3.3 Variable Normalized Step Size LMS (VSNLMS) Algorithm The VSLMS algorithm still has the same drawback as the standard LMS algorithm in that to guarantee stability of the algorithm, a statistical knowledge of the input signal is required prior to the algorithms commencement. In the VSNLMS algorithm the upper bound available to each element of the step size vector, μ(n), is calculated for each iteration. As with the NLMS algorithm the step size value is inversely proportional to the instantaneous input signal energy. The VSNLMS Algorithm is performed the following steps: y(n) = i=1 w(n)x(n i) = w T x(n) (13) ii) The value of the error estimation is calculated as the difference between the desired output and the filter output. e(n) = y(n) d(n) (14) iii) The gradient, step size and filter tap weight vectors are updated the following equations in preparation for the next iteration, FFF i = 0,1, N 1 g i (n) = e(n)x(n i) g(n) = e(n)x(n) μ i (n) = μ i (n 1) + ρg i (n)g i (n 1) ii μ i (n) > μ max, μ i (n) = μ max ii μ i (n) < μ min, μ i (n) = μ min w i (n + 1) = w i (n) + 2μ i (n)g i (15) With ρ = 1, each iteration of the VSNLMS algorithm requires 5N+1 multiplication operations. 4. SOFTWARE SIMULATION Each of the adaptive filtering algorithms outlined in Section 3 2013

International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September-2013 1488 were implemented MATLAB. In each simulation the echoed signal was generated by defining an appropriate impulse response then convolving this with a vocal input wav file. 4.2 NLMS Algorithm The Normalized LMS algorithm was simulated MATLAB, it is also the algorithm used in the real time echo cancellation system. 4.1 LMS Algorithm The figure shows the desired signal, adaptive output signal, estimation error and cost function (MSE) for the LMS algorithm with vocal input, FIR filter order of 1000 and step size of 0.007 (determined empirically). The MSE shows that as the algorithm progresses the average value of the cost function decreases, this corresponds to the LMS filters impulse response converging to the actual impulse response, more accurately emulating the desired signal and thus more effectively cancelling the echoed signal. Fig. 5 NLMS algorithm outputs for vocal input, N=5000, µ=0.007. 4.3 VSLMS Algorithm The VSLMS algorithm was simulated MATLAB, it is also the algorithm used in the real time echo cancellation Fig. 4 LMS algorithm outputs for vocal input, N=7500, system. µ=0.007. The success of the echo cancellation can be determined by the ratio of the desired signal and the error signal. Fig. 4 Echo Cancellation LMS Algorithm 2013

International Journal of Scientific & Engineering Research, Volume 4, Issue 9, September-2013 1489 Fig. 6 VSLMS algorithm outputs for vocal input, N=500. 4.4 VSNLMS Algorithm The VSNLMS algorithm was simulated MATLAB, it is also the algorithm used in the real time echo cancellation system. [4] Application of Mod Wiei Least-Squares Algorithms to Adaptive Echo Cancellation: V. U. Reddy. T. J. Shan and T. Kailath [5] Conjugate Gradient Algorithm for Adaptive Echo Cancellation:G.K Boray and M.D. Srinath [6] Development and Implementation of Adaptive Echo Cancellation Techniques: Sen M. Kuo and Yung-Jeng Yan Fig. 7 VSNLMS algorithm outputs for vocal input, N=1500. 5. CONCLUSION By the results obtained by implementing the Algorithms with the help of MATLAB Software, we draw a conclusion that the best Algorithm for Real Time Implementation is Normalized Least Mean Squared Algorithm as it is able to show the maximum echo cancellation with the following most desirable iterations that are ranging up to 10000. REFERENCES [1] A novel adaptive acoustic echo cancellation for teleconferences systems: Xiao Hu,Ai-Qun Hu,Qiang Luo,Tian-You Cai (Proceedings of the First International Conference on Machine Learning and Cybernetics, Beijing, 4-5 November 2002) [2] Adaptive Echo Cancellation Using Genetic Algorithms: Luaie A. Al-BaBa, Steven L. Homer, William Holls, and Paul B. Crilly. [3] Adaptive Echo Cancellation with non linear digital filters, Giovanni L. Sicuranza,Andrea Bucconi, and Faolo Mitr. 2013