Development of Real-Time Adaptive Noise Canceller and Echo Canceller

Similar documents
AC : TEACHING ADAPTIVE FILTERS AND APPLICATIONS IN ELECTRICAL AND COMPUTER ENGINEERING TECHNOLOGY PRO- GRAM

Acoustic Echo Cancellation using LMS Algorithm

Real-time Data Collections and Processing in Open-loop and Closed-loop Systems

Real-Time Frequency Tracking Using Novel Adaptive Harmonic IIR Notch Filter

GSM Interference Cancellation For Forensic Audio

AC : INTERACTIVE LEARNING DISCRETE TIME SIGNALS AND SYSTEMS WITH MATLAB AND TI DSK6713 DSP KIT

A Bi-level Block Coding Technique for Encoding Data Sequences with Sparse Distribution

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

Performance Analysis of gradient decent adaptive filters for noise cancellation in Signal Processing

Study of Different Adaptive Filter Algorithms for Noise Cancellation in Real-Time Environment

Multirate Algorithm for Acoustic Echo Cancellation

Design and Implementation on a Sub-band based Acoustic Echo Cancellation Approach

MATLAB SIMULATOR FOR ADAPTIVE FILTERS

Implementation of Adaptive Filters on TMS320C6713 using LabVIEW A Case Study

Hardware Implementation of Adaptive Algorithms for Noise Cancellation

Audio Restoration Based on DSP Tools

A Three-Microphone Adaptive Noise Canceller for Minimizing Reverberation and Signal Distortion

Impulsive Noise Reduction Method Based on Clipping and Adaptive Filters in AWGN Channel

Keywords: Adaptive filtering, LMS algorithm, Noise cancellation, VHDL Design, Signal to noise ratio (SNR), Convergence Speed.

Analysis on Extraction of Modulated Signal Using Adaptive Filtering Algorithms against Ambient Noises in Underwater Communication

Lecture 4 Biosignal Processing. Digital Signal Processing and Analysis in Biomedical Systems

Active Noise Cancellation in Audio Signal Processing

Speech Enhancement in Presence of Noise using Spectral Subtraction and Wiener Filter

Fixed Point Lms Adaptive Filter Using Partial Product Generator

Cancellation of Unwanted Audio to Support Interactive Computer Music

Advanced Functions of Java-DSP for use in Electrical and Computer Engineering Senior Level Courses

Analysis of LMS Algorithm in Wavelet Domain

Application of Affine Projection Algorithm in Adaptive Noise Cancellation

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10

Active Noise Cancellation System Using DSP Prosessor

A Comparison of the Convolutive Model and Real Recording for Using in Acoustic Echo Cancellation

Speech Enhancement: Reduction of Additive Noise in the Digital Processing of Speech

Noise Cancellation using Least Mean Square Algorithm

Real-time adaptive filtering of dental drill noise using a digital signal processor

Digital Signal Processing of Speech for the Hearing Impaired

NOISE ESTIMATION IN A SINGLE CHANNEL

FOURIER analysis is a well-known method for nonparametric

Modeling and Analysis of an Adaptive Filter for a DSP Based Programmable Hearing Aid Using Normalize Least Mean Square Algorithm

THE USE OF THE ADAPTIVE NOISE CANCELLATION FOR VOICE COMMUNICATION WITH THE CONTROL SYSTEM

Computer exercise 3: Normalized Least Mean Square

An Effective Implementation of Noise Cancellation for Audio Enhancement using Adaptive Filtering Algorithm

Report 3. Kalman or Wiener Filters

Discrete-Time Signal Processing (DTSP) v14

Performance Comparison of ZF, LMS and RLS Algorithms for Linear Adaptive Equalizer

Index Terms. Adaptive filters, Reconfigurable filter, circuit optimization, fixed-point arithmetic, least mean square (LMS) algorithms. 1.

SGN Advanced Signal Processing

IMPLEMENTATION CONSIDERATIONS FOR FPGA-BASED ADAPTIVE TRANSVERSAL FILTER DESIGNS

A REVIEW OF ACTIVE NOISE CONTROL ALGORITHMS TOWARDS A USER-IMPLEMENTABLE AFTERMARKET ANC SYSTEM. Marko Stamenovic

A FEEDFORWARD ACTIVE NOISE CONTROL SYSTEM FOR DUCTS USING A PASSIVE SILENCER TO REDUCE ACOUSTIC FEEDBACK

x ( Primary Path d( P (z) - e ( y ( Adaptive Filter W (z) y( S (z) Figure 1 Spectrum of motorcycle noise at 40 mph. modeling of the secondary path to

Acoustic Echo Cancellation: Dual Architecture Implementation

Comparative Study of Different Algorithms for the Design of Adaptive Filter for Noise Cancellation

Acoustic Echo Cancellation for Noisy Signals

Faculty of science, Ibn Tofail Kenitra University, Morocco Faculty of Science, Moulay Ismail University, Meknès, Morocco

Noise Reduction Technique for ECG Signals Using Adaptive Filters

Adaptive Noise Cancellation using Multirate Technique

Adaptive Systems Homework Assignment 3

Speech Enhancement Based On Noise Reduction

ROBUST echo cancellation requires a method for adjusting

Performance Analysis of Feedforward Adaptive Noise Canceller Using Nfxlms Algorithm

Project due. Final exam: two hours, close book/notes. Office hours. Mainly cover Part-2 and Part-3 May involve basic multirate concepts from Part-1

AN INSIGHT INTO ADAPTIVE NOISE CANCELLATION AND COMPARISON OF ALGORITHMS

Noise Reduction using Adaptive Filter Design with Power Optimization for DSP Applications

Architecture design for Adaptive Noise Cancellation

Chapter 4 SPEECH ENHANCEMENT

SUPERVISED SIGNAL PROCESSING FOR SEPARATION AND INDEPENDENT GAIN CONTROL OF DIFFERENT PERCUSSION INSTRUMENTS USING A LIMITED NUMBER OF MICROPHONES

FPGA Implementation Of LMS Algorithm For Audio Applications

2.161 Signal Processing: Continuous and Discrete Fall 2008

Presentation Outline. Advisors: Dr. In Soo Ahn Dr. Thomas L. Stewart. Team Members: Luke Vercimak Karl Weyeneth. Karl. Luke

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

LMS and RLS based Adaptive Filter Design for Different Signals

VLSI Implementation of Separating Fetal ECG Using Adaptive Line Enhancer

Speech Enhancement Based On Spectral Subtraction For Speech Recognition System With Dpcm

AC : FIR FILTERS FOR TECHNOLOGISTS, SCIENTISTS, AND OTHER NON-PH.D.S

University Ibn Tofail, B.P. 133, Kenitra, Morocco. University Moulay Ismail, B.P Meknes, Morocco

A Novel Adaptive Algorithm for

ESE531 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Signal Processing

Acoustic echo cancellers for mobile devices

EE 6422 Adaptive Signal Processing

Research of an improved variable step size and forgetting echo cancellation algorithm 1

Adaptive Noise Reduction Algorithm for Speech Enhancement

Experiment # 4. Frequency Modulation

Analysis of LMS and NLMS Adaptive Beamforming Algorithms

DESIGN AND IMPLEMENTATION OF ADAPTIVE ECHO CANCELLER BASED LMS & NLMS ALGORITHM

DIGITAL SIGNAL PROCESSING LABORATORY

Teaching Digital Signal Processing with MatLab and DSP Kits

Beam Forming Algorithm Implementation using FPGA

Performance Analysis of Acoustic Echo Cancellation Techniques

Blind Equalization using Constant Modulus Algorithm and Multi-Modulus Algorithm in Wireless Communication Systems

An Improved Pre-Distortion Algorithm Based On Indirect Learning Architecture for Nonlinear Power Amplifiers Wei You, Daoxing Guo, Yi Xu, Ziping Zhang

Global Journal of Advance Engineering Technologies and Sciences

Modified Least Mean Square Adaptive Noise Reduction algorithm for Tamil Speech Signal under Noisy Environments

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

IN357: ADAPTIVE FILTERS

MITIGATING INTERFERENCE TO GPS OPERATION USING VARIABLE FORGETTING FACTOR BASED RECURSIVE LEAST SQUARES ESTIMATION

ADAPTIVE ACTIVE NOISE CONTROL SYSTEM FOR SECONDARY PATH FLUCTUATION PROBLEM

Active Noise Cancellation Headsets

An Echo Canceller with Frequency Dependent NLP Attenuation

Blind Equalization Using Constant Modulus Algorithm and Multi-Modulus Algorithm in Wireless Communication Systems

Transcription:

GSTF International Journal of Engineering Technology (JET) Vol.2 No.4, pril 24 Development of Real-Time daptive Canceller and Echo Canceller Jean Jiang, Member, IEEE bstract In this paper, the adaptive cancellation structure is first developed based on the LMS algorithm and FIR adaptive filtering. Then the novel practical noise and echo cancellation systems are built using the proposed adaptive technique and implemented using TX32TMS67C3 DSKs, which are Texas Instruments Digital Signal Processing (TI DSP) boards. lthough adaptive filtering is an exciting topic in which many real-life applications can be explored []-[6], [9], building such a real-time system is often challenging due to the use of theoretical math, advanced DSP knowledge and practical industrial hands-on experience [],[4]-[6],[9]. Therefore, this paper indicates that it is possible to apply traditional mathematics in adaptive filtering theory to real-time practical DSP systems. With the MTL software tool, we can simulate and verify various adaptive filtering designs first. Then, development and implementation of different noise or echo cancellation systems with adaptive filtering techniques can be successfully performed using the floating-point digital signal processor, TX32TMS67C3 DSK. Furthermore, it can be shown that TX32TMS67C3 DSKs with their stereo channels offer more effective and flexible tools for various noise cancellation applications. Index Terms daptive finite impulse response filter, DSP board, echo cancellation, LMS algorithm, noise cancellation. T I. INTRODUCTION he adaptive filter techniques play an important role in modern digital processing (DSP) products in areas such as noise cancellation, telephone echo cancellation, equalization of communications channels, biomedical signal enhancement, active noise control, and adaptive control systems.[]-[3],[9]. daptive filters work generally for the adaptation of signalchanging environments, for spectral overlap between noise and the signal, and for unknown or time-varying noise. daptive filtering has existed for more than two decades in the research community and is still active. lthough great progress has been made, there are still some limits for practical application. One challenging problem is applying theoretical math and advanced DSP knowledge to a practical system using a floating-point TI DSP board so that a more accurate iterated and adaptive solution can be obtained in real-time. In this paper, Section II gives the derivations of the proposed least mean square (LMS) algorithm and finite impulse response (FIR) adaptive filtering, and verifies them using a real speech waveform. In Section III, the real-time system set-up is presented first using a TI DSP board and applications of noise cancellation and echo cancellation are demonstrated using the adaptive technique and TI DSP boards. Finally, conclusions are given in Section IV. II. WIENER FILTERS ND DPTIVE FILTERS n adaptive filter is a digital filter that has self-adjusting characteristics. It is capable of adjusting its filter coefficients automatically to adapt to the input signal via an adaptive algorithm. Therefore, adaptive filters have many real applications in system modeling, noise cancellation, adaptive differential PCM (DPCM), echo cancellation and so on. Let us start from a Wiener filter solution with the steepest descent algorithm, then develop the least mean square (LMS) algorithm, and finally extend a single coefficient LMS adaptive FIR filter to the standard LMS adaptive FIR filter. In addition, MTL simulations can be performed to verify the theoretical development. Fig. shows a Wiener filter for noise cancellation, where a single coefficient filter is used for illustration; that is, wx. w is the adaptive coefficient and yn ( ) is the Wiener filter output, which approximates noise nn ( ) in the corrupted signal. Signal and noise d s n x Wiener filter Fig. Wiener filter for noise cancellation. Output e The enhanced (restored) signal en ( ) is given by e d wx () Taking statistical expectation of the square of error leads to a quadratic function 2 2 J 2wP w R (2) R where is the mean square error (MSE) function or output power. When it is minimized, the noise power is maximally 2 2 reduced. Since E d (auto-correlation or power of Manuscript received. Jean Jiang is with the College of Engineering and Technology, Purdue University North Central, 4 South U.S. Highway 42, Westville, IN 4639, US (e-mail: jjiang@pnc.edu). DOI:.576/225-37_2.4.96 28 24 GSTF

GSTF International Journal of Engineering Technology (JET) Vol.2 No.4, pril 24 the corrupted signal), P Ed x (cross-correlation), 2 and R E x are constants, J is a quadratic function of w which may be shown in Fig. 2: J J min w * w Fig. 2 MSE quadratic function. * The best coefficient (optimal) w is unique and at the location corresponding to the minimum MSE error J. y taking min derivative of J and setting it to zero leads the solution as * w R P (3) Our goal is to develop an adaptive filter that seeks to minimize the MSE function (i.e. objective function) by iteratively adjusting its parameters (such as its impulse response coefficients) to achieve the design specifications. However, solving the Wiener solution requires a lot of computations, including matrix inversion (R - ) for a multipletap FIR structure. Next, the steepest descent algorithm that is capable of minimizing the MSE sample by sample to locate the filter coefficient(s) is introduced as follows: w w dj constant controlling speed of convergence or convergence (4) n n factor and dj / is the gradient of the MSE function. The steepest descent method is effective since it can be used to avoid taking the matrix inverse of R (for N filter coefficients), which may become to be ill-conditioned. gain, it can be proven [] that the optimal coefficient can be approached using iterations. To develop the LMS (Least Mean Square) algorithm [] in terms of the data samples in processing, the gradient dj / can be approximated by its instantaneous value, that is, dj ( ) ( ) 2 ( ) ( ) d d n wx n d n wx n 2 e x (5) Substituting the instantaneous gradient dj / to the steepest descent algorithm, the LMS algorithm for updating a single coefficient is achieved as w n w n 2 e x (6) Finally, by omitting iteration time index n and extending one coefficient filter to an- N coefficient filter, the standard LMS algorithm is obtained and listed in Table I. Table I. LMS adaptive FIR filter with N filter coefficients. () Initialize w (), w (), wn ( ) to arbitrary values (2) Read dn ( ), xn ( ), and perform digital filtering w() x w() x( n ) w( N ) x( n N ) (3) Compute the output error e d (4) Update each filter coefficient using the LMS algorithm for i,, N w( i) w( i) 2 e x( n i) To illustrate functionality of the developed adaptive filter, a MTL implementation for noise cancellation is provided. The principle of noise cancellation is shown in Fig. 3, in which DC and DC stand for nalog-to-digital Converter and Digital-to-nalog Converter, respectively. Signal and noise DC DC x d s n daptive filter LMS algorithm Fig. 3 canceller using an adaptive filter. Error signal e d ~ s ( n ) The noise cancellation system in Fig. 3 is assumed to have the following specifications: the sampling rate is 8, Hz and the speech is corrupted by Gaussian noise with a power of and delayed by 5 samples from the noise reference. The noise reference contains Gaussian noise with a power of ; an adaptive finite impulse response (FIR) filter is used to remove the noise; the number of FIR filter coefficients is 2, and the convergence factor for the LMS algorithm is chosen to be.. The speech waveforms and speech spectral plots for original speech, corrupted speech, reference noise, and clean speech are plotted in Figure 4, respectively. It is observed that the enhanced speech waveform and spectrum are very close to the original ones. The LMS algorithm converges after approximately 4 iterations. Particularly, in time domain, the waveforms of the original speech s(n) and the clean speech (error signal e(n)) are almost identical after 4 samples when the LMS algorithm converges. The corrupted signal d(n) and the noise x(n) are also plotted to show the speech signal has been severely polluted. However, the speech has been well DC 29 24 GSTF

GSTF International Journal of Engineering Technology (JET) Vol.2 No.4, pril 24 restored and the mixed noise has been successfully removed after adaptive filtering. The same conclusion can be reached in the frequency domain, where the original speech spectrum and the recovered (clean) spectrum are almost identical. In summary, the adaptive method is a very effective approach for noise canceling. Signal Generator Mic Input Computer TI TMS32C673 DSP oard Speaker Orig. speech Corrupt. speech Ref. noise Clean speech - 2 4 6 8 2 4 6 8 2 5-5 2 4 6 8 2 4 6 8 2 5-5 2 4 6 8 2 4 6 8 2-2 4 6 8 2 4 6 8 2 Number of samples Fig. 4 (a) Original speech, corrupted speech, reference noise and clean speech. Orig. spectrum Corrupt. spectrum Clean spectrum..5.5.5 5 5 2 25 3 35 4..5.5 5 5 2 25 3 35 4. 5 5 2 25 3 35 4 Frequency (Hz) Fig. 4(b) Spectra of Original, corrupted, and clean speech. III. REL-TIME DPTIVE SYSTEMS. System Set-up For real-time adaptive realizations, a TI TMS32C673 floating-point processor [8]-[9] is selected instead of a fixedpoint digital signal processor (DSP) to avoid the implementation challenges, so that the adaptive filtering solutions can be easily and accurately obtained using C. single DSP board setup and program segment for verifying input and output signals are shown in Fig. 5a and 5b, respectively, where the sampling rate used is 8, samples per second. Fig. 5(a) Real-time DSP system setup. float xl[]={.}; float xr[]={}; float yl[]={.}; float yr[]={,}; interrupt void c_int() { float lc; /*left channel input */ float rc; /*right channel input */ float lcnew; /*left channel output */ float rcnew; /*right channel output */ int i; //Left channel and right channel inputs IC23_data.combo=input_sample(); lc=(float) (IC23_data.channel[LEFT]); rc= (float) (IC23_data.channel[RIGHT]); // Insert DSP algorithm below xl[]=lc; /* Input from the left channel */ xr[]=rc; /* Input from the right channel */ yl[]=xl[]; /* simplest DSP equation for the left channel*/ yr[]=xr[]; /* simplest DSP equation for the right channel*/ // End of the DSP algorithm lcnew=yl[]; rcnew=yr[]; IC23_data.channel[LEFT]=(short) lcnew; IC23_data.channel[RIGHT]=(short) rcnew; output_sample(ic23_data.combo); } Fig. 5(b) Program segment for verifying input and output.. Real-time pplications configuration for adaptive noise cancellation is shown in Fig. 6, where the primary signal is a generated sinusoid and corrupted internally by the sensed reference noise from the DC. The reference noise can be set as a tonal noise fed via a function generator or another noise source using the microphone and amplifier. The output signal e(n) (difference between the corrupted signal and the adaptive filter output) retains a desired frequency as the one from the internal digital oscillator; i.e. the output signal is the recovered sine wave when compared with the original sinusoid and verified from oscilloscope display. 3 24 GSTF

GSTF International Journal of Engineering Technology (JET) Vol.2 No.4, pril 24 Sinewave generator x DC from line in Channel ( simulated) xn y sinusoid daptive FIR filter n noise d DF output corrupted signal e Output DC Fig. 6(a) lock diagram of canceller using the adaptive FIR filtering. source (from generator) xn (LCI) (RCI) TI TMS32C673 DSP oard en ( ) (LCO) (RCO) Fig. 6(b) Real-time noise canceller using the adaptive technique and DSP board. nother interesting and challenging application is the acoustic echo cancellation. The basic telephone echo cancellation is described in Fig. 7. s depicted in Fig. 7, the incoming signal is x ( n ) from speaker, which maybe leaked to the outgoing signal x ( n ) from speaker ; that is, d x x. If the leakage x ( n ) returns back to the speaker, it becomes an annoying echo. To prevent the echo, the adaptive filter at speaker site uses the incoming signal from speaker as inputs and makes its output approximate to the leaked speaker signal by adjusting its filter coefficients; the estimated echo y x is then subtracted from the outgoing signal, thus producing a signal that only represents speech ; that is, e x. s a result, the echo from speaker is removed. Echo of speaker x Local 2-wire Transmitting site customer loop d x x e x Receiving site Channel y ( n ) x x Hybrid DF DF Hybrid Receiving site Local 2-wire customer loop Channel e x 4-wire trunck Fig. 7 daptive echo cancellers. y ( n ) d x x Transmitting site x ( n ) Echo of speaker The system implementation is shown in Fig. 8, where the objective is to cancel the acoustic feedback instead of a telephone echo. The principle of using adaptive filters remains the same. For comparative purposes, an adaptive filter at the speaker site (DSP board ) is used, which cancels the acoustic feedback from speaker. The second DSP board does not use an adaptive filter in order to show the existence of the acoustic feedback (echo), which can be monitored from (LCO2) via an oscilloscope. The acoustic feedback cancellation effect can be verified at the speaker site from (RCO), and the cancellation result is satisfactory. Notice that two additional audio sources (speakers) for microphone and microphone are required. Mic and mplifier mplifier and speaker Transmission channel ( to ) LCI RCI LCI2 RCI2 coustic feedback cancellation with FIR adaptive filtering TI TMS32C673 DSP oard TI TMS32C673 DSP oard 2 No acoustic feedback cancellation LCO RCO LCO2 Fig. 8 coustic feedback noise cancellation. IV. CONCLUSION Transmission channel ( to mplifier and speaker Mic and mplifier In this paper, the novel adaptive real-time noise canceller and echo canceller are presented and implemented, where the proposed adaptive cancellation structure is developed based on the LMS algorithm and FIR adaptive filtering and tested via a real speech waveform. The noise cancellation results are very satisfactory. The challenging adaptive cancellers are also realized in real-time implementations with TI TMS32C673 DSP boards, in which the floating-point DSP boards demonstrate the accurate iterated and adaptive solutions using C. REFERENCES [] L. Tan, J. Jiang. Digital Signal Processing: Fundamentals and pplications, 2 nd edition, Elsevier/cademic Press, New York, 23. [2] E. Ifeachor and. Jervis. Digital Signal Processing, Practical pproach, Prentice-Hall Publishing, 22. [3] Joyce Van de Vegte. Fundamentals of Digital Signal Processing, Prentice-Hall Publishing, 22. [4] L. Tan, J. Jiang, Teaching dvanced Digital Signal Processing with Multimedia pplications in Engineering Technology Programs, 2 Proceedings of the merican Society for Engineering Education, June 29. [5] H.Wu, S. Kuo, Teaching Challenge in Hands-on DSP Experiments for Night-School Students, EURSIP Journal on dvances in Signal Processing, Vol. 28, rticle ID 57896, June 28. 3 24 GSTF

GSTF International Journal of Engineering Technology (JET) Vol.2 No.4, pril 24 [6] C. Wicks, Lessons Learned: Teaching Real-Time Signal Processing, IEEE Signal Processing Magazine, pp. 8-85, November 29. [7] Texas Instruments, TMS32C6x CPU and Instruction Set Reference Guide, Literature ID# SPRU 89C, Texas Instruments, Dallas, Texas, 998. [8] Texas Instruments, Code Composer Studio: Getting Started Guide, Texas Instruments, Dallas, Texas, 2. [9] L. Tan, J. Jiang, nalog Signal Processing and Filter Design, Linus Publications, 29. Jean Jiang (M 92) received the.s. and M.S. degrees in electrical engineering from the Southeast University, Nanjing, China, in 982 and 985, respectively, and the Ph.D. degree in electrical engineering from the University of New Mexico, lbuquerque, in 992. She was a Full Professor with DeVry University, Decatur, Georgia. She is currently with the College of Engineering and Technology, Purdue University North Central, Westville, Indiana. Her research interests include the areas of digital signal processing, active noise control and control systems. She coauthored two textbooks: Digital Signal Processing: Fundamentals and pplications, Second Edition (Elsevier, 23) and nalog Signal Processing and Filter Design (Linus Publications, 29). 32 24 GSTF