A METHOD AND ECHO CANCELLER FOR ECHO CANCELLATION WITH A NUMBER OF CASCADE-CONNECTED ADAPTIVE FILTERS

Abstract: The invention relates to echocancellation with the aid of a number of cascade-connected adaptive filters (311-31N), wherein each filter forms an output signal for cancelling its respective part of an echo signal appearing on a line (12, 34) included in a four-wire loop. The filters will preferably be able to converge rapidly, at least for relatively short impulse responses, and to provide effective echocancellation for different kinds of impulse response. Those filters which are required for the echo cancellation at that moment in time are ascertained by calculating a special quality measurement for each filter. There is formed an echo-reduced signal (etot) which is equal to the difference between the original, echo-included signal and the sum of the output signals from those filters that are needed for the echo cancellation. These filters are updated with the echo-reduced signal (etot), whereas the remainder of the filters are updated with signals formed as the difference between the echo-reduced signal and the output signal of respective filters (e.g. y2).

Description: AMETHODANDECHOCANCELLERFORECHOCANCELLAΗONWITHANUMBEROFCASCADE-CONNECT ADAPTIVEFILTERS TECHNICAL FIELD The present invention relates to echo cancellation with the aid of a number of cascade-connected adaptive filters, each of which produces an individual output signal for cancellation of a respective part of an echo signal appearing on a line which is included in a four-wire loop. DESCRIPTION OF THE PRIOR ART Echo cancellers have recently obtained greater importance with the introduction of digital mobile telephony. Digital mobile telephones give rise to a long delay which causes any echo that may be generated to be highly disturbing. The time taken for an echo canceller to adjust itself to cancel-out an echo is called convergence time. The convergence time of an echo canceller is an important parameter for the subjective speech quality and is sometimes considered to be the most important measurement of the quality of an echo canceller. An echo canceller which converged rapidly at least in the majority of cases, for instance in the case of local calls, would be an attribute under all circumstances. Probably the adaptive algorithm most used for echo cancellers is the Normalized LeastMean Square algorithm, NLMS. Normally, a long FIR-filter is used so as to cover practically all occurrent impulse responses. A typical filter length is 512 taps, which provides a total possible impulse response of 64 ms. The filter output signal is subtracted from the signal which contains an echo in a known manner, whereafter the difference signal thus formed is used to update the filter. When applying the NLMS-method, the filter converges in about 300 ms. In the majority of cases in practice, however, only a part of the filter coefficients are distanced from zero when the filter has converged. This applies particularly to local calls, since practically the whole of the impulse response of the echo path will then lie in the first 10-30 taps. In certain cases, the impulse response is preceded by a long delay, a so-called flat delay. Gliding windows represent one method proposed to reduce complexity and to decrease conver¬ gence time. This method is based on attempting to estimate the magnitude of a flat delay and thereafter placing the filter where the impulse response of the echo path lies, with the aid of a variable delay. The advantages of this method are that a relatively short filter which is also able to converge rapidly will suffice. The drawbacks are that the delay cannot be readily estimated and that it is not possible to cancel multiple echoes, i.e. several echoes having delays ofmutually different values. IBM Technical Disclosure Bulletin, Vol. 31, No. 10, March 1989, describes on pages 157-158 a multiple echo canceller. This echo canceller includes a number of relatively short filters coupled in a cascade. Each such filter generates an output signal which is subtracted from the signal that contains an echo in a manner such that the echo will be reduced successively with each filter, depending on the impulse response. There is thus formed a number of difference signals which are each used to update the filter in which it is formed. However, the ability of the echo canceller to cancel the echoes is limited because the filters do not always converge satisfactorily. This is because a filter in the cascade-connected filter chain will sometimes be disturbed by the echo that cannot be cancelled by this filter but which instead shall be cancelled by one or more filters which lie further away in the filter chain. SUMMARY OF THE INVENTION The object of the present invention is to provide a method and an echo canceller with which echo cancellation is achieved with the aid of a number of cascade-connected filters. The filters shall be capable of converging rapidly, at least in the case of echo paths that have relatively short impulse responses, and shall also provide effective echo cancellation for different occurrent impulse responses, for instance impulse responses of mutually different lengths and impulse responses caused by multiple echoes. According to know principles, a rapid convergence can be replaced with a stable and secure convergence. Accordingly, when practicing the invention, it is also possible to obtain a stable and secure convergence which, is relatively rapid at the same time. The aforesaid object is achieved by calculating for each filter a special quality-measurement so as to ascertain which filters are required for echo cancellation at that moment in time, wherein solely the output signals from such filters are enabled or coupled so as to be used actively to reduce the echo concerned. There is thus formed an echo-reduced signal which is equal to the difference between the original, echo- including signal and the sum of the output signals of those filters which are used actively for echo cancellation at that moment in time. All of these filters are updated with the echo-reduced signal, whereas those filters which are not used actively at that time are updated with signals which are equal to the difference between the echo-reduced signal and the output signal of respective filters. The characteristic features of the invention are apparent from the following Claims. BRIEF DESCRIPTION OF THE DRAWINGS The invention will now be described in more detail with reference to the accompanying drawings, in which Figure 1 illustrates a conventional echo canceller for cancelling echoes in a four-wire loop; Figure 2 illustrates a known echo canceller which includes a number of cascade-connected filters; Figure 3 illustrates an exemplifying embodiment of an inventive echo canceller; and Figure 4 illustrates a device for providing control signals for one of a number of switches included in the inventive echo canceller. BEST MODE OF CARRYING OUT THE INVENTION Figure 1 illustrates a conventional echo canceller for cancelling echoes in a four-wire loop. Reference numerals 11 and 12 identify two lines included in a four-wire loop. The echo appears in an echo path represented by a block 13. A digital, adaptive filter 14 receives on its input a signal x which is also applied to the echo path 13. An echo estimation y is formed in the filter and is subtracted in a subtraction device 15 from an echo-including signal d on the line 12, therewith forming a difference signal e. The filter adjusts itself in a known manner, i.e. the filter coefficients are updated according to some appropriate adaptive algorithmwith the aid of the difference signal e. Figure 2 illustrates a known echo canceller which includes a number of cascade-connected filters. The echo canceller should coincide with the echo canceller described in the aforesaid IBM Technical Disclosure Bulletin. As in the case with the echo canceller illustrated in Figure 1, a signal x appears on an upper line 11 and an echo-included signal d appears on a lower line 12, the echo path being represented by a block 13 as in the earlier case. The filters are referenced 21-23 and their output signals yl-y3 are subtracted from the echo-included signal in subtraction means 24-26, whereby the echo is reduced successively with each filter in dependence on the impulse response of the echo path. There is formed therewith a number of difference signals, el-e3, which are used to update their respective filters. The difference signals obtain the following values: el = d-yl, e2 = d-yl-y2, and so on. As earlier mentioned, the filters are not always able to converge satisfactorily, however, because they are sometimes disturbed by echoes that shall actually be cancelled by one of the other filters. Figure 3 illustrates an example of an inventive echo can¬ celler. Those means that find correspondence in Figures 1 and 2 have been referenced in the same way as said means. The illustrated echo canceller includes a number of cascade- connected filters 31.,-3l N , which produce the output signals y,- y N . The filters will preferably be connected to the upper line, i.e. to line 11, principly in the same way as the filters in Figure 2, even though it may seem that they are connected in some other way. This is explained by the fact that the filters in Figure 2 should be connected to the line 11 via delays of mutually different lengths. Each of the filter output signals is applied to a respective controllable switch 32.,-32 N . There is provided for each of the switches a subtraction means 33,-33^ whose negative input is connected to its respective switch, and whose positive input is connected to a line 34. The output signal from a filter whose switch is in its right-hand switching position, see for instance the switch 32 2 , is not used actively to reduce the echo, but merely functions to produce a filter updating error signal. The error signals for filters whose associated switch is in its right-hand switching position are formed in the subtraction means 33 as the difference between the signal on the line 34 and the filter output signal. In the illustrated case, this applies to the error signals e 2 and e N . In an initial stage of a converging process, for instance at the beginning of a new telephone call, all switches occupy their right switching position. The following error signals are therewith obtained: e-, = d-y e 2 = d-y 2 , and so on, because the echo-included signal d on the line 12 also appears on the line 34 in the initial stage. The signal on this line is called e tot for reasons made apparent hereinafter. In the initial stage, i.e. before a filter is enabled for use actively to cancel an echo, each of the filters adjust in an endeavour to cancel the total echo. In this regard, each of the filters converge to a certain level, because one filter, any filter, in the filter cascade will be disturbed generally by some part of the total echo that should actually be cancelled by one or more of the other filters. A special quality measurement is calculated continuously for each filter, so as to be able to establish which filters perform useful work. In turn, the quality measurements, or values, are used to form switch control signals s-,-s N . A description of how the quality measurements and the control signals are formed will be described in more detail later on with reference to Figure 4. When the quality measurement of a filter exceeds a specific value, the filter concerned shall be coupled-in or enabled for use actively for echo cancellation, i.e. shall be activated for echo reduction, which in the illustrated case means that the switch shall be set to its left-hand switching position. If the quality measurement then falls beneath a second, lowervalue, the filter may optionally be disabled, i.e. the switch may optionally be reset to its right-hand switching position. It is also conceivable, however, to allow the enabled filter to remain enabled during the remainder of an ongoing call. The output signals from those filters which, at that time, are enabled to reduce the echo are added in a number of addition means 35 1 -35 N . 1 . The resultant summation signal is subtracted from the echo-included signal d in a subtraction means 36, wherein an echo-reduced signal, e tot , will appear on the line 34. In the illustrated example, the filters 31, and 31 N .., are enabled so as to reduce the echo appearing in the signal d. The sum of the output signals of the enabled filters is, in this case, y. | +y H -ι, meaning that the echo-reduced signal e tot becomes equal to: d-(y 1 +y N . 1 ) . It will be understood that the output signals of the enabled filters may, instead, be subtracted from the signal d in a number of series-connected subtraction means between the lines 12 and 34. Because the output signals of the enabled filters do not appear on the inputs of the subtraction means 33, all enabled filters will obtain equally as large error signals which coincide with the echo-reduced signal e tot on the line 34. This applies to the filters 31, and 31 N .- ! in the illustrated case. The error signal for each of the not-enabled filters 31 2 and 31 H is equal to the signal e tot decreased by the filter output signal. In the illustrated example, there is obtained: e ι = e N -ι = e t ot = d- Cy.+y,,.,) e 2 = e to -Y2 = d- (Yι + Y 2 + Y.M > Thus, when a filter is enabled, its output signal will also be used to update the remaining filters. The fact that all enabled filters receive equally as large error signals, e tot , all of the error signals of these filters can be caused to go down to zero or to the vicinity of zero, therewith providing effective echo cancellation. None of the filters will be disturbed by any part of the total echo that shall be can¬ celled by other filters. Figure 4 illustrates an example of an arrangement for forming control signals for one of the switches 32 illustrated in Figure 3. Thus, one such arrangement is required for each filter included in the echo canceller according to Figure 3. The echo-reduced signal e tot , the filter output signal y n and the filter error signal e n are applied to the arrangement illustrated in Figure 4. The absolute magnitude of some of the signals is formed in absolute magnitude forming means 41,-41 3 . Each of the signals is then filtered in its respective lowpass filtermeans 42,-42 3 . The signals deriving from the signals e tot and y n are multiplied together in a multiplier 43, therewith forming the signal |e tot |*y n | • The signal deriving from the signal e n is squared in a quadrating means 44, therewith to form the signal |e n |*|e n | . The signal from the multiplier 43 is divided by the signal from the quadrating means 44 in a division means 45. The aforesaid quality measurement is therewith formed, this measurement being referenced g^. When ignoring the absolute magnitude formations, the quality measurement will obtain the value q n = (e tot /e n )*(y r e ry ) . The quality measurement q„ is applied to an input of a com¬ parator 46, and to an input of a comparator 46 2 . The quality measurement is compared in the comparator 46, with a threshold value tr, for enabling the filter concerned, while the quality measurement is compared in the comparator 46 2 with a lower threshold value tr 2 for disenabling the filter. The output signals of the comparators are applied to a logic means 47 which generates a control signal s n and delivers the signal to the filter. For instance, a logic one is generated when the filter shall be enabled, and a logic zero is generated when the filter shall be disenabled. As before mentioned, however, it is not necessary to disenable an enabled filter during an ongoing call. The comparators 46 and the logic means 47 can therefore be modified accordingly, meaning that the comparator 46 2 can be omitted, among other things. The quality measurement of the filter which is able to cancel the greatest echo will be the first filter to exceed the threshold value tr,. This is because the filter in question, e.g. filter 31,, will have a relatively large output signal, y,, and a relatively small error signal, e, = d-y,. As a result of enabling or coupling-in the first filter, the error signals for the remaining filters will decrease by the value of the output signal y, of the enabled filter, since this output signal is subtracted from the echo-included signal d in the subtraction means 36. The quality measurements of the remai¬ ning filters will therewith increase. Correspondingly, the error signals of those filters that are not enabled will, of course, also decrease for each new filter that is enabled after the first enabled filter, wherewith the qualitymeasure¬ ment of the not-enabled filters will increase successively. Thus, it can be said that the smaller echo will be initially hidden by the larger echoes. Filters which are unable to performuseful work of any consequence, i.e. filters which are only able to cancel relatively small echoes receive, however, output signals which are so small that their quality measure¬ ments will never exceed the filter enabling threshold value tr,. Such filters will therefore never be enabled. When a filter is enabled, its quality measurement will decrease slightly, owing to the fact that the signal e tot on the line 34 is reduced by the filter output signal. However, disenablement of a filter as a result of a decreased quality measurement can be prevented by appropriate dimensioning of the filter enabling threshold value tr, and the filter disenabling threshold value tr 2 . However, the quality measurement can also be calculated in a way different to that proposed above. Conceivable methods in this regard are those in which only the output signal of the filter, e.g. y,, is divided by the filter error signal, e.g. e,, or in which solely the coefficient values of the filter are investigated. This latter can be effected, for instance, by forming the sum of the absolute magnitudes of the coefficient values or of the squares of said coefficient values. Natural¬ ly, suitable proportionality constants can also be inserted when calculating the quality measurements. It is also con¬ ceivable to calculate the quality measurements for enabled filters in a different way to that of calculating the quality measurements for not-enabled filters. However, irrespective of the manner in which the quality measurement is calculated, the quality measurement will always disclose the importance of the filter in question to the current echo cancellation, i.e. it constitutes a measure of the useful work that the filter is able to perform or perhaps has already performed in echo cancellation. Since only those filters which perform useful work in cancel¬ ling echoes are enabled to diminish the echo, there is obtained a rapid convergence, at least in most cases. However, echo cancellation will always be effective, since all enabled filters receive identical error signals. Consequently, the convergence of one individual filter will not be influenced by the echo that should actually be cancelled by another filter. This means that all error signals will be small. Furthermore, in practice, a sufficient number of filters will always be enabled, which means that echoes which have long impulse responses can also be cancelled. Naturally, the number of filters that are enabled will depend on the echo concerned. It can be mentioned that when all filters are enabled, this corresponds to the use of one single long filter. As will be apparent from the aforegoing, such a filter is unnecessary, other than in exceptional circumstances, since the conver¬ gence time would, in general, be unnecessarily long. It may be convenient to use 8 or 16 cascade-connected filters. If the maximum number of filter taps is to be 512, each of the filters will then be required to have 64 or 32 taps. As mentioned in the aforegoing, a rapid convergence can be replaced with a stable and secure convergence, and conse¬ quently it is possible with the present invention to obtain a stable and secure convergence which, at the same time, is at least relatively rapid. The invention is not restricted to the aforedescribed and illustrated exemplifying embodiment thereof, since modifi¬ cations can be made within the scope of the following Claims. In addition to the aforesaidmodifications, it is conceivable, for instance, to use a single arrangement according to Figure 4 in common with all filters. This arrangement could then be used in accordance with a time multiplex principle and form control signals for one switch at a time. When filters which have already been enabled shall constantly remain enabled during an ongoing call, it is, of course, unnecessary to calculate new quality measurements for those filters that are already enabled. Naturally, it may be convenient in practice to allow the aforedescribed functions to be performed in a digital signal processor instead of in the separate means illustrated in the Figures. Such digital signal processing is per se normal in conjunction with adaptive echo cancellation.

Claims: CLAIMS 1. A method for echo-cancellation with an echo canceller which includes a number of cascade-connected adaptive filters (31,-31 N ) which each form an individual output signal (y,-y N ) for cancelling a respective part of an echo signal appearing on a line (12, 34) which is included in a four-wire loop, wherein the filters are updated with the aid of updating signals (e,-e N ) which are formed in an initial stage of a converging process by subtracting the filter output signals from one and the same echo-included signal (d) which contains the echo signal and which appears on said line, characterized by calculating for each of the filters a quality measurement (q which forms a measurement of how much useful work the filter can perform or already performs for the echo cancel- lation concerned; using the filters selected in response to the quality measurements actively for echo cancellation in a manner such as to form on the line (34) an echo-reduced signal (e tot ) which is equal to the difference between the echo- included signal (d) and the sum of the output signals (y,, y N .,) from all of those filters that are used actively for echo cancellation at thatmoment; andusing the echo-reduced signal (e tot ) as an updating signal for all of those filters (31,, 31 N .,) which are used actively for echo cancellation at that moment, and by forming the updating signals for remaining filters (31 2 , 31 N ) by subtracting the output signal (y 2 , y H ) of respective filters from the echo-reduced signal. 2. A method according to Claim 1, characterized in that the quality measurement (q^) is a function of the filter output signal (e.g. y,) and the filter error signal (e.g. e,) . 3. A method according to Claim 2, characterized in that the quality measurement (q n ) is also a function of the echo- reduced signal (e tot ) . 4. A method according to Claim 1, characterized in that the quality measurement (q n ) is a function of the filter coef¬ ficient values. 5. A method according to any one of Claims 1-4, character- ized by comparing the quality measurement (q n ) of each of the filters with a predetermined value (tr,) ; and by using actively for echo cancellation the filters (31,, 31 N .,) whose quality measurements exceed this value (tr,) . 6. An echo canceller comprising a plurality of cascade- connected adaptive filters (31,-31,,) , each of which forms on its output a respective output signal (y,-y N ) for cancelling a respective part of an echo signal which appears on a line (12, 34) included in a four-wire loop, wherein the filters are updated with the aid of updating signals (e,-e N ) which are formed in an initial stage of a converging process by subtrac¬ ting the output signals of the filters from one and the same echo-included signal (d) which contains the echo signal and which appears on the same line, characterized in that the echo canceller includes means (41-45) for calculating for each of the filters a quality measurement (q n ) which forms a measure¬ ment of the useful work that the filter can perform or already performs for the current echo cancellation; in that each of the filters includes switching means (32,-32 N ) which function to connect the filter output with a specific first or a specific second point in accordance with the quality measure¬ ment; in that the echo canceller further includes means (35,- 35 N .,, 36) which function to form on said line (34) an echo- reduced signal (e tot ) which is equal to the difference between the echo-included signal (d) and the sum of the output signals (e.g. y, --1) from all of the filters whose outputs are connected with said first point; and in that the echo can¬ celler includes for each of the filters means (33,-33 N ) which function to form an updating signal which is equal to the echo-reduced signal (e tot ) when the output of the filter is connected to said first point and which is otherwise equal to the difference between the echo-reduced signal and the filter output signal (e.g. y 2 ) . 7. An echo canceller according to Claim 6, characterized in that saidupdating signal formingmeans includes a subtraction means (e.g. 33,) which has a positive input connected to the line (34) on which the echo-reduced signal (e tot ) appears, and which has a negative input connected to said second point. 8. An echo canceller according to any one of Claims 6-7, characterized in that said quality measurement calculating means (41-45) is constructed in a manner such that the quality measurement is a function of the filter output signal (e.g. y,) and the filter error signal (e.g. e,) . 9. An echo canceller according to Claim 8, characterized in that the quality measurement calculating means (41-45) is constructed in a manner such that said quality measurement is also a function of the echo-reduced signal. 10. An echo canceller according to any one of Claims 6-7, characterized in that said quality measurement calculating means (41-45) is constructed in a manner such that the quality measurement is a function of the coefficient values of the filter. 11. An echo canceller according to any one of Claims 6-10, characterized in that it includes means (46,-46 2 , 47) to which the quality measurement (q n ) of the filters is applied, said means being constructed to apply control signals (s,-s N ) to the switching means (32,-32 N ) , and includes threshold value detecting means (46,-46 2 ) and logic means (47) which are so constructed that each of the control signals will adopt a first control value when the filter quality measurement exceeds a predetermined value (tr,) ; and in that each of the switching means is constructed in a manner such that the output of the filter associated with the switching means is connected to said first point when the control signal assumes the first control value.

Inventors: ANDRE TORE MIKAEL, ANDRE, TORE, MIKAEL
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1994
Main classification: H04B3
IPC codes: H04B3