METHOD AND SYSTEM FOR DETECTING AND CONTROLLING SEVERE ECHO

Abstract: A system and method for detecting and controlling severe echo implemented using a digital signal processor (DSP) (140) applicable to cellular telephone technology. The DSP includes an echo canceller (60) and a severe echo detector and controller (SEDC) (100). The echo canceller has an adaptive filter (130) and a center clipper (110). The adaptive filter is responsive to a set of coefficients. The DSP is accessible to a number of memories and resisters for storing the coefficients, and for controlling and executing the software modules of the system.

Description: METHOD AND SYSTEM FOR DETECTING AND CONTROLLING SEVERE ECHO BACKGROUND OF THE INVENTION The present invention relates to echo cancellation in telecommunications. In particular, this invention addresses the problems of severe acoustic echo in cellular telephone technology. An echo cancellation device is a necessary component in modern telecommunications. In situations of imperfect impedance matching, a signal broadcast over a telecommunications network may reflect back to the generator of the signal. Since the reflected signal must travel from the location of impedance mismatching and back to the generator, the generator of the signal receives the reflected signal with a delay. This return of a reflected signal with a delay is commonly known as echo. Without echo cancellation, a telephone user would not be able to effectively communicate because the reflected signal would return the speaker's voice to him or her after each uttered sound. In addition to echo created by impedance mismatches in the telecommunications network, the acoustics of using the phone may create echo. Acoustic echo is most commonly created by the use of a hands-free phone. In instances where the echo signal level is close to or greater than the generated signal, severe acoustic echo has been observed. In general, for echo cancellers to perform satisfactorily, the power of the echo generating signal must be greater than the echo signal by a predetermined set threshold. This threshold is commonly set at 6 dB. Thus, in situations when the echo signal power is closer to the echo generating signal power by less than the predetermined set threshold, the echo is referred to as severe echo. In cellular telephone technology, echo cancellation devices have the ability to cut or clip the signal heard by the generator to eliminate residual echo from the echo canceller. This is typically known as a center clipping function. While prior art echo cancellers have a center clipping function, the presence of high output residual echo power prevents the echo canceller from sufficiently combating severe echo, especially severe acoustic echo. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of the prior art. FIG. 2 is a block diagram of the present embodiment FIG. 3 is a flowchart of the present embodiment. DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENTS The present embodiment complements an existing echo canceller by detecting severe echo and directing the echo canceller to utilize its center clipping function. This is done by evaluating the coefficients from the existing echo canceller's adaptive filter. Typical echo cancellers are implemented using a time, frequency, or sub-band analysis of the input signals that yields coefficients for an adaptive filter. This adaptive filter manipulates a desired signal in an effort to produce an echo-free output signal. As one skilled in the art will recognize, the most common method of generating coefficients for the adaptive filter is a least mean squares (LMS) approach. The present embodiment utilizes the coefficients that drive the adaptive filter to analyze whether the echo canceller is properly functioning. Additionally, the present embodiment evaluates the power of signals and background noise. By analyzing the coefficients of the echo canceller, power measurements, and background noise assessments, the severe echo detector and controller detects severe echo and imposes the center clipping function on the echo canceller. The present embodiment, however, is not restricted to severe echo cancellation and detection. Analysis of the adaptive filter coefficients of the echo canceller can be useful for detecting and controlling other echo environments where echo is present. Moreover, the present embodiment improves upon the prior art by evaluating the performance of the echo canceller through frequency domain analysis of the adaptive filter coefficients. The present embodiment is directed to echo cancellation in cellular telephone technology. In particular, the preferred embodiment is implemented in the telecommunications infrastructure. Specifically, the preferred embodiment is embedded at the transcoder level of the infrastructure. In the alternative, the present embodiment may be implemented directly in a cellular phone or at a different location in the infrastructure. Figure 1 shows a typical prior art echo cancellation system. A reference signal 10, is inputted into an echo generating system 20. As an output from the echo generating system, an echo signal 30 is created. The reference signal 10, also referred as the far-end speech x(n), is one of two speech signals in the echo cancellation signal. The other speech signal is the near-end speech signal 40. The aggregate of the near-end speech signal 40 and the echo signal 30 creates a desired signal 50. The desired signal 50 is notated as s(n). The echo canceller 60 functions to transmit the desired signal 50 as echo-free as possible. The echo canceller 60 yields an output signal 70, notated as e(n). Figure 2 is a block diagram of the present embodiment. An echo canceller 60 is coupled with a severe echo detector and controller (SEDC) 100. Incorporated in the echo canceller 60 is a center clipper function 110 and an adaptive filter 130. The severe echo detector and controller 100 communicates with the echo canceller 60 in order to enable or disable the center clipper function 110. In the preferred embodiment, a status flag 120, referred to as "cclip," is the mode of communication between the echo canceller 60 and the SEDC 100. The SEDC 100 evaluates whether severe echo is present by examining a set of coefficients from the adaptive filter 130. In the preferred embodiment, both the echo canceller 60 and the severe echo controller and detector are stored in memory as software modules run by a digital signal processor 140. The preferred embodiment is implemented with a Motorola, Inc. 56301 digital signal processor running assembly language code. However, the present invention can also be implemented using other digital signal processors such as another processor in the Motorola 563x series or a processor from the Texas Instruments, Inc. TMS320C5x series. A general processor or hard-wired circuit can also be used without departing from the essential spirit and scope of the invention. Figure 3 is a flowchart of the method of the present embodiment. The present embodiment is based on an echo canceller 60 that utilizes a time domain mode of echo cancellation. In the alternative, those skilled in the art will appreciate that frequency or subband domain approaches may be used. In step 200, every 20 milliseconds, a fast Fourier transform (FFT) is performed on a set of coefficients from the adaptive filter 130. In the preferred embodiment, this set of coefficients comprise data values stored in a memory accessible by the digital signal processor 140. The preferred embodiment utilizes a set of 128 coefficients and performs a 128-point FFT with a peak echo canceller adaptive filter coefficient at the center. Step 200 converts the time domain coefficients into a frequency domain set of values. Those skilled in the art will appreciate that if the echo canceller 60 utilizes a frequency domain mode of analysis, step 200 is not necessary. After the coefficients are converted into the frequency domain, step 210 proceeds to identify the maximum power value, known as the "max bin power." The max bin power is identified by squaring the results of step 200 and isolating the largest value. After the max bin power has been identified, step 210 compares the max bin power with a threshold power value every 20 milliseconds. In the preferred embodiment, this threshold is -7 decibels (dB). A value of -7 dB is typically indicative of a strong echo presence. Step 210 concludes with a modification of a counter. If the max bin power is greater than the threshold power value, the counter is incremented. If, however, the max bin power is less than the threshold power value, the counter is decremented, provided the counter is greater than zero. Step 220 examines the counter every 20 milliseconds. The value of the counter determines whether conditions for severe echo are present. In the preferred embodiment, the counter threshold is set at 12. If the counter value is greater than a counter threshold, the system concludes that severe echo is present and continues on to step 400, the first step in the excision subroutine. Otherwise, the method returns to the main echo cancellation routine. The excision subroutine, which preferably runs every 4 milliseconds, controls the echo canceller. In order to reach this stage, the system first finds that severe echo exists. In the preferred embodiment, the echo canceller 60 is controlled by a status flag 120. If the system indicates that severe echo is not properly addressed by the echo canceller 60, it changes the status flag 120. In the preferred embodiment, several inputs are used to control the echo canceller 60. These inputs are the status flag 120, a reference signal power (Px) 310, a desired signal power (Ps) 330, a reference signal background noise floor (Bx), and a desired signal background noise floor (Bs). While there are numerous methods for determining each of these inputs, the preferred embodiment uses a specific method for determining the reference signal power 310. The reference signal power 310 is determined at step 300. In step 300, the reference signal 10 is inputted and the reference power signal 310 is computed every 4 milliseconds. The peak echo location assessed by step 210 is used to center the power measurement. Every four milliseconds, four average reference powers corresponding to four 4 millisecond reference segments are computed. These four 4 millisecond segments correspond to two segments in length before the peak echo location and two segments after the peak echo location, wherein each of the segments is four milliseconds in length. The desired signal power 330 is determined at step 320. This entails finding the average power every 4 milliseconds. Various methods of determining the signal power can be used. For example, the preferred embodiment uses a rectangular averaging scheme, where all the samples contained in the segment are squared, summed, and then divided by the number of samples in the segment as to obtain the averaged value. With the reference signal power 310 and the desired signal power 330 computed, the system proceeds to the excision subroutine 400. The excision subroutine 400 indicates that step 220 concluded that severe echo exists. Step 410 begins the controlling of the echo canceller 60 by evaluating whether the status flag 120 is OFF . In the preferred embodiment, the OFF setting of the status flag 120 indicates that the echo canceller 60 has not detected conditions for severe echo. In an alternative embodiment, the ON setting could be utilized to indicate that severe echo has not been detected. If the test in step 410 is false, the status flag 120 is ON and the echo canceller 60 has already handled the echo appropriately. The system then proceeds to step 420. In step 420, the method sets a past status flag register 430 to the current status flag 120 value and returns to the main echo cancellation routine. Step 420 indicates that the system does not need to modify the echo canceller. If the test in step 410 is true, the status flag 120 indicates that the echo canceller 60 has not detected severe echo. In this case, the system proceeds to step 440. In step 440, the reference signal power 310 is compared with a reference signal power threshold. In the preferred embodiment, the reference signal power threshold is -25 dB. If the reference signal power 310 is greater than the reference signal power threshold, the system proceeds to step 450 where the status flag 120 is also set to ON, thereby enabling the center clipper 110. The past status flag register 430 is set to ON. From step 450, the system proceeds to the nxt subroutine 500. If the reference signal power 310 does not exceed the reference signal power threshold, the system proceeds to step 460. In step 460, the system examines whether the echo canceller addressed severe echo in the previous cycle. If it did not address severe echo, the past status flag register 430 should be OFF and the system proceeds to the nxt subroutine 500. If, however, the system addressed severe echo in the previous cycle, the past status flag register 430 will be set to ON. If the past status flag register 430 is ON, the system analyzes whether the echo canceller prematurely turned off the center clipper 110. This is done by examining whether the reference signal power 310 exceeds a secondary reference signal power threshold, and if the reference signal power 310 is sufficiently above the reference signal noise floor. In the preferred embodiment, the secondary reference signal power is set at -57 dB and the reference signal power must exceed the reference signal background noise by 5 dB to maintain severe echo cancellation. If the reference signal power 310 exceeds the secondary reference signal power threshold, and is sufficiently above the reference signal noise floor while the past status flag register 430 is ON, the system moves to step 450, thereby enabling the center clipper 110. If the reference signal power 310 does not exceed the secondary reference signal power threshold, is not sufficiently above the reference signal noise floor, or the past status flag register 430 is not ON, then the system moves to the nxt subroutine 500 without changing the status flag 120 or the past status flag register 430. The nxt subroutine, running every 4 milliseconds, 500 serves to ensure that severe echo detection is, in fact, present in the system. In step 510, the system tests if the status flag 120 is set to ON. If it is not, the system proceeds to step 520 where the past status flag 430 is set to equal the status flag 120 setting of OFF, and the cycle returns to the main echo cancellation routine. In this scenario, the system has not verified the severe echo detection declaration in step 220 through step 440 nor found the echo canceller 60 to have prematurely turned off the center clipper 110 in step 460. Consequently, the system allows the echo canceller 60 to continue without engaging the center clipper 110. If, however, the status flag 120 is set to ON at step 510, the system has indicated that the echo canceller should be adjusted. The system then proceeds to step 530 to ensure that the signal identified is truly an echo. In step 530 the system examines whether the desired power signal is sufficiently above the desired power signal noise floor and whether the reference power signal is not sufficiently above the reference power signal noise floor. In the preferred embodiment, the desired power signal is at least 10 dB above the desired power signal noise floor and the reference power signal is less than 5 dB greater than the reference power signal noise floor. If both conditions are met, the system has not found severe echo and the method proceeds to step 540. In step 540, both the status flag 120 and the past status flag 430 are set to OFF and the method returns to the main echo cancellation routine. If either or both conditions fail, the system proceeds to step 550. Step 550 also ensures that the method properly identified severe echo by evaluating the reference signal power and desired signal power. If the desired signal power is above a desired signal power threshold and the reference signal power is below a third reference signal power threshold, the system goes to step 540. In the preferred embodiment, the desired signal power threshold is -37 dB and the third reference signal power threshold is - 60 dB. If either condition is not met, the system proceeds to step 560. In step 560, the past status flag 430 is set to the current status flag 120 setting of ON and the method returns to the main echo cancellation routine. If either condition of 550 fails, the system has correctly found severe echo where the echo canceller alone did not. The present invention provides the ability to detect and control severe echo. By controlling the center clipping function, the present embodiment enables the echo canceller to properly function where severe echo would otherwise remain prominent in the system. In addition, the present embodiment provides a method of analyzing the performance of the echo canceller by evaluating the coefficients of the echo canceller's adaptive filter. The present embodiment further provides a method of utilizing frequency domain methods of performing the coefficients analysis. It is to be understood that a wide range of changes and modifications to the embodiments described above will be apparent to those skilled in the art and are contemplated. It is therefore intended that the foregoing detailed description be regarded as illustrative, rather than limiting, and that it be understood that it is the following claims, including all equivalents, that are intended to define the spirit and scope of the invention.

Claims: CLAIMS 1. A system for supplementing echo detection and cancellation, comprising: an echo canceller having an adaptive filter responsive to a set of coefficients; a first memory storing a computer program operative to evaluate the degree of echo present by manipulating said set of coefficients; and a second memory storing said set of coefficients accessible by said echo canceller and said first memory. 2. The system in claim 1 wherein said echo canceller is implemented in a third memory storing a computer program. 3. The system in claim 1 wherein said first memory is operative to evaluate the degree of echo present by performing a fast Fourier transform on said set of coefficients. 4. The system in claim 1 wherein said first memory is operative to evaluate a power measurement of a reference signal. 5. The system in claim 1 wherein said first memory is operative to evaluate a power measurement of a reference signal, compares said power measurement of said reference signal with a background noise measurement of said reference signal, and evaluates said second register. 6. A method for detecting and controlling echo, comprising the steps of: monitoring a reference signal, a desired signal, and a set of coefficients utilized by an adaptive filter of an echo canceller; manipulating said set of coefficients to evaluate the degree of echo present in said desired signal; and communicating with said echo canceller to adjust echo cancellation functions based upon the manipulated coefficients. 7. The method of claim 6 wherein the step of manipulating said set of coefficients comprises the steps of performing a fast Fourier transform on the coefficients, squaring the result, and selecting the maximum resulting value. 8. The method of claim 7 further comprising the step of comparing said maximum resulting value with a threshold and utilizing the results to adjust a counter. 9. The method of claim 6 wherein the step of communicating with said echo canceller utilizes a status flag. 10. The method of claim 9 further comprising the step of storing at least one previous value of said status flag.

Inventors: TAHERNEZHAADI MANSOUR, TAHERNEZHAADI, MANSOUR
Applicants: MOTOROLA INC, MOTOROLA INC.
Application year: 2001
Main classification: H04M1
IPC codes: H04B3, H04M1