An adaptive filter and a method of preventing divergent behavior of the adaptive filter

Abstract: A method of preventing divergent behavior of a recursively adjusted adaptive filter and an adaptive filter to which the method is applied are disclosed. The adaptive filter is adjusted by alternately carrying out two kinds of corrections during respective correction terms. In the first correction term, each tap gain in the adaptive filter is corrected through a recursive correction algorithm. In the second correction term, a new tap gain is produced by multiplying the current tap gain by a constant which is predetermined so as to suppress divergent tendency in recursively corrected values of each tap gain. Therefore, operations to make recursively corrected values of each tap gain converge and operations to suppress divergent tendencies in the recursively corrected values of each tap gain are executed alternately.

Description: The present invention relates to an adaptive filter, in particular a method of preventing divergent behavior of the adaptive filter. Adaptive filters have been widely used in the field of communication, for example in adaptive equalizers in transmission lines and adaptive echo cancellers as well as in the field of signal processing, for example in adaptive noise cancellers, adaptive notch filters and adaptive predictors in voice coding. A problem encountered in an ordinary adaptive digital filter whose tap gains are adjusted through a recursive correction algorithm has been that convergence of a tap gain is not guaranteed under unstable conditions and a tap gain which has once converged to a certain value tends to diverge again due to noise or other interference. In order to solve this problem, it has been proposed that "a leak" is imposed on the tap gain in every step of the recursive correction so as to suppress such divergent behavior. In EP-A-0 106 229, an application of an adaptive filter to an adaptive echo canceler is described. The updating process of the adaptive filter has two modes. A first mode is effected during the period that neither the polarities of the most recently modified tap gain adjustment signal H(K) and the raw tap gain adjustment signal D(K) are opposite nor the narrow-band energy exceeds the whole band energy, where K denotes the K th sampling period. In this update mode, the tap gain adjustment signal is updated so that H(K+1) = H(K)+D(K),i.e., leak compensation component L(K) is not "effective" for compensating for an excess of the tap gain adjustment signal H(K)+D(K). A second mode is effected during the period that either when the polarities of the most recently modified gain adjustment signal H(K) and the raw tap gain adjustment signal D(K) are opposite or when the narrow-band energy exceeds the whole band energy. In this update mode, the tap gain adjustment signal is updated so that H(K+1) = H(K)+D(K)+L(K),i.e., leak compensation component L(K) is "effective" to update the tap gain additively. In WO 84/00260, an adaptive filter in which a normalization factor of a tap gain is controlled is described. In comparison to the additive leak described above, the normalization factor is regarded as a multiplicative leak. The normalization factor, which is referred to as a normalization control signal in WO 84/00260, is supplied from the power estimator which selects, as the normalization control signal, one of long-term mean power and maximum power of received signals in accordance with prescribed criteria, in order to produce a lower tap gain and realize a more stable and higher quality convergence of the adaptive filter. However, in the divergence-suppressing adaptive filters described above, there is a problem that, since tap gain has to be added by the leakage compensation component in the second mode of the operation or multiplied by a leak coefficient corresponding to the leak at every recursive correction for each tap, the amount of operation necessary for correcting all tap gains markedly increases due to the multiplication. It is an object of the present invention to provide a method of suppressing divergent behavior in the tap gain of an adaptive filter and allowing the tap gain to converge at an optimum value with fewer operations, thereby solving the problems encountered in prior adaptive filters. It is another object of the present invention to provide an adaptive filter of recursive correction type capable of suppressing divergent tendencies in the recursively corrected values of each tap gain and allowing the tap gain of the adaptive filter to converge at an optimum value with fewer operations. In order to achieve the first object, the present invention includes the steps of carrying out a first kind of correction for correcting each tap gain through a recursive correction algorithm during a first correction term; carrying out a second kind of correction during a second correction term by multiplying the tap gain corrected during the preceding first correction term by a constant predetermined so as to suppress divergent tendencies in recursively corrected values of each tap gain; and repeating the first and second kind of corrections successively. The constant is the leak coefficient described above. By the first kind of correction (hereafter, referred to as the first correction), each tap gain is corrected or adjusted toward the optimum value through a recursive correction algorithm and by the second kind of correction (hereafter, referred to as the second correction), the divergent behavior of each tap gain is suppressed. In this way, the tap gain can be corrected toward the optimum value while the divergent behavior is suppressed. Since the first correction is a correction through a recursive correction algorithm, it is preferable to make the duration of the first correction term long enough to allow each tap gain to converge at a value substantially close to the optimum value, but short enough to permit the adaptive filter to undergo the second correction before or as soon as the divergent behavior starts. Since the second correction is intended only to impede the start of the divergent behavior of the tap gains, it is preferable to make the duration of the second correction term short, preferably one sampling period. Further, taking into account the purpose of the second correction, the value of the constant or the leak coefficient is a positive value less than 1. Finally, the recursive correction algorithm preferably includes the LMS (Least Mean Square) adaptive algorithm because it is well known in the art. In the LMS adaptive algorithm, since the step size controls the rate of convergence of the mean square error, the duration of the first correction term is preferably determined depending on the step size. In order to attain the above second object, the adaptive filter according to the present invention includes a correcting circuit for calculating the correcting value of each of the tap gains in accordance with a recursive correction algorithm, an adder for adding each correcting value calculated by the correcting circuit to a corresponding tap gain, a coefficient multiplier for multiplying the tap gain by a constant predetermined so as to suppress divergent tendencies in recursively corrected values of each tap gain, a selector for selectively outputting one of the signals supplied from both the adder and the coefficient multiplier in response to a selecting signal, and a timer counter for supplying the selecting signal to the selector, wherein the correcting circuit, the adder, the coefficient multiplier and the selector are provided for each of the tap outputs, and a single timer counter is provided for all tap outputs. The adder outputs a corrected tap gain. The coefficient multiplier outputs a tap gain multiplied by a constant, i.e. the leak coefficient. During the period that the selector is selecting the output of the adder (hereafter, this period is referred to as the first correction term), each tap gain is corrected or adjusted toward the optimum value through a recursive correction algorithm. During the period that the selector is selecting the output of the coefficient multiplier (hereafter this period is referred to as a second correction term), the divergent behavior of the tap gain is suppressed. In this way, even under unstable conditions the tap gain can be corrected toward the optimum value while divergent behavior is suppressed. Hereafter we refer to the corrections made during the first and second correction terms as the first correction and the second correction, respectively. Since the first correction is a correction through the recursive correction algorithm, it is preferable to determine the duration of the first correction term to be long enough to allow each tap gain to converge at a value substantially close to the optimum value, but short enough to permit the adaptive filter to undergo the second correction before or as soon as the diverging behavior starts. Since the second correction is intended only to impede the start of the divergent behavior of the tap gains, it is preferable to make the duration of the second correction term short, preferably one sampling period. Further, taking into account the purpose of the second correction, the value of the constant is preferably positive and less than 1. Finally, the recursive correction algorithm preferably includes the LMS adaptive algorithm because the algorithm is well known in the art. In the LMS adaptive algorithm, since the step size controls the rate of convergence of the mean square error, the duration of the first correction term is preferably determined depending on the step size. Brief Description of the Drawings Fig. 1 is a block diagram of a conventional adaptive filter. Fig. 2 is a block diagram of a tap gain multiplying unit in the adaptive filter shown in Fig. 1. Fig. 3 is a flowchart of a signal processing procedure in one sampling period of the adaptive filter shown in Fig. 1. Fig. 4 is a block diagram of an adaptive filter of the recursive correction type to which the method according to the present invention is applied. Fig. 5 is a block diagram of a tap gain multiplying unit in the adaptive filter shown in Fig. 4. Fig. 6 is a time chart of a selecting signal shown in Fig. 5. Fig. 7 is a flowchart of a signal processing procedure in one sampling period of the adaptive filter shown in Fig. 4. Detailed Description of the Preferred Embodiment In order to facilitate the understanding of this invention, a conventional adaptive filter will first be described with reference to drawings. Fig. 1 is a block diagram of a conventional adaptive filter which has the faculty of suppressing divergent behavior, Fig. 2 is a block diagram of the tap gain multiplying unit 2j shown in Fig. 1, and Fig. 3 is a flowchart which represents procedures to correct tap gains during one sampling period in the adaptive filter in Fig. 1. The adaptive filter in Fig. 1 has the same constitution as the ordinary FIR transversal adaptive filter except for the structure in the tap gain multiplying unit shown in Fig. 2. The adaptive filter includes an M-bit shift register 1 which is equivalent to a delay line with M taps, tap gain multiplying circuit 2 which outputs so-called weighted tap outputs C j x j (j = 1, 2, ---, M) by multiplying tap outputs of the delay line x j (j = 1, 2, ---, M) by corresponding tap gains C j (j = 1, 2, ---, M), respectively, and an adder 3 for adding the weighted tap outputs C j x j over j = 1 through M to produce a filter output y. Recursive correction of the tap gain C j is carried out through the LMS adaptive algorithm by comparing the output y of the filter with a reference signal d to generate an error signal e, multiplying the error signal e by a step size µ to generate eµ through a coefficient multiplier 5, and multiplying eµ by tap output x j through multiplier 12 in tap gain multiplying unit 2j shown in Fig. 2, thereby producing a correcting value ΔC j = eµx j according to the LMS algorithm. In this divergence-suppressing adaptive filter, the present tap gain C j stored in a latch circuit 15 is multiplied by leak coefficient α by means of coefficient multiplier 13 in tap gain multiplying unit 2j shown in Fig. 2, and the resultant product αC j is added to the correcting value ΔC j by adder 14, thus resulting in a new tap gain C j (n+1) = αC j (n) + ΔC j (n), wherein j stands for a tap number, ΔC j denotes a correcting value and α is a positive constant less than 1 which corresponds to the leak. Using this new tap gain, a corrected filter output y is constructed. For comparison, in the ordinary adaptive filter the corrected tap gain or new tap gain C j (n+1) for tap number j is represented to be C j (n+1) = C j (n) + ΔC j (n) Referring to Fig. 3, operation of the divergence-suppressing adaptive filter during one sampling period or one clock period is executed as follows: successively adding weighted tap gains C j x j (j = 1, 2, ---, M) delivered from tap gain multiplying circuit 2 to generate filter output y (step 1); comparing filter output y with reference signal d to generate error signal e (step 2); making tap number j = 1 (step 3); generating correcting value ΔC j from tap output x j and the output µe of multiplier 5 (step 4); multiplying α by tap gain C j stored currently in the latch circuit 15 (step 5); adding αC j and ΔC j and storing the sum in the latch circuit 15 as a new tap coefficient C j (step 6); making j = j+1 (step 7); judging whether or not new j is equal to or less than M (step 8); and if j is equal to or less than M, the process returns to step 4 and thereafter step 4 through 7 are repeated until j becomes more than M, at which time the processing for correcting tap gains for the sampling period ends. Now, we will estimate the amount of operation of the steps shown in Fig. 3. Assuming that a DSP (Digital Signal Processor) is used for the recursive correction of the tap gains and that the amount of operation is proportional to the number of instructions for executing the operation, the amount of operation during one sampling period is estimated as follows (in terms of units of one instruction): Since each addition as well as each multiplication can generally be executed with one instruction in the DSP, the amount of operation (hereafter referred to as A.O.) in step 2 is 1. Further, since A.O. in each of steps 4, 5 and 6 for each tap number j is 1 and since the three steps 4-6 are repeated over j = 1 through M, the total A.O. of the three steps during one sampling period is 3M. In almost any DSP, one multiplication-addition operation (a combination of multiplying two numbers and subsequently adding the resultant product to another number) can be executed according to one instruction. Therefore, the total A.O. expressed in a polynomial of M terms in step 1 is M. In Fig. 3, the number in parentheses near each step represents the A.O. in the corresponding step. Steps 3, 7 and 8 are represented explicitly in the flowchart in order to indicate the software in accordance with normal practice in flowcharts. These steps, however, are not always necessary and accordingly they can be omitted by expressing steps 4, 5 and 6 for all taps (j = 1, 2, ---, M) in 3M consecutive steps. Thus, the total A.O. executed by the adaptive filter during one sampling period is M+1+3M = 4M+1. In ordinary cases M is sufficiently large to render 1 negligible, and consequently the total A.O. is virtually equal to 4M. It is to be noted that in the conventional adaptive filter described above, the leak coefficient α is multiplied in every recursive step, thus allowing the A.O. to increase. An adaptive filter and the method according to the present invention will be described below with reference to Figs. 4 through 7. The adaptive filter shown in Fig. 4 is an FIR transversal adaptive filter. The adaptive filter comprises a delay line 1 provided with M tap outputs composed of an M-bit shift register, a tap gain multiplying circuit 7 for multiplying tap output signals x 1 , x 2 , ..., x M of the delay line 1 by tap gains to produce weighted tap output signals, and an adder 3 for adding the weighted tap output signals to produce a filter output signal y. Since the tap gains are corrected according to the LMS adaptive algorithm, the adaptive filter also includes a subtracter 4 for generating an error signal e which shows a difference d-y, and a coefficient multiplier 5 for multiplying the error signal e by the step size µ. The structure described so far is basically identical with that of the conventional adaptive filter shown in Fig. 1 except for the detailed structure in the tap gain multiplying unit shown in Fig. 5. The adaptive filter according to the present invention is additionally provided with a timer counter 6 for generating a selecting signal (see Fig. 6), and supplies the selecting signal to each tap gain multiplying unit 7j (j = 1, 2, ---, M) of the tap gain multiplying circuit 7. The tap gain multiplying unit 7j comprises multipliers 11, 12, a coefficient multiplier 13, an adder 14, a latch circuit 15, and a selector 16. The latch circuit 15 stores a present tap gain C j , and the multiplier 11 multiplies a tap output signal x j by the tap gain C j . The coefficient multiplier 13 multiplies the tap gain C j by the leak coefficient α, thereby producing an output signal αC j . The multiplier 12 multiplies a signal µe supplied from the coefficient multiplier 5 by the tap output signal x j , thereby producing a correcting value ΔC j = µex j according to the LMS adaptive algorithm. The adder 14 adds the present tap gain C j and the correcting value ΔC j , thereby generating a corrected tap gain C j + ΔC j . The selector 16 is supplied with both the output signal αC j supplied from the coefficient multiplier 13 and the corrected tap gain C j + ΔC j supplied from the adder 14, and selects the latter during a first correction term which corresponds to a low level period in the selecting signal S shown in Fig. 6, and selects the former during a second correction term which corresponds to a high level period in the select signal S shown in Fig. 6. The selector 16 delivers the selected output signal to the latch circuit 15. The latch circuit 15 stores the signal supplied from the selector 16 as the new tap gain. The multiplier 11 multiplies the tap output signal x j from the delay line 1 by the new tap gain C j from the latch circuit 15. The adder 3 adds the weighted tap output signals supplied from the tap gain multiplying units 7j (j = 1, 2, ---, M), and outputs the sum as a corrected filter output signal y. The first correction term, i.e., the low-level period of the selecting signal S, is determined to be long enough to allow each recursively corrected tap gain to converge to an optimum expected value in the sense of the least mean square error. As is well known in the art, according to the LMS adaptive algorithm, the rate at which the mean square error converges to a minimum is controlled by the step size µ, the rate becoming higher as the step size µ increases. If the step size µ is too large, however, the recursive correction process will oscillate and become unstable. Therefore, the low-level period of the selecting signal S is determined depending on the optimum value of the step size µ. The second correction term, i.e., the high-level period of the selecting signal S, is selected to be one sampling period in the illustrated embodiment. Since the duty cycle of the high-level period of the selecting signal S is relatively small, the value of the leak coefficient is determined to be small compared with that in the divergence-suppressing adaptive filter shown in Fig. 1 in order to effectively prevent the tap gain from diverging. Operation of the adaptive filter according to the present invention will be described below with reference to Fig. 7. A filter output signal y is produced (step 1), and then subtracted from a reference signal d to produce an error signal e (step 2). Next, it is judged whether or not the present sampling period kT (represented in terms of one sampling period T and a serial number of the present sampling period k) corresponds with the start of the selecting signal period T s , i.e. T s = kT (step 3). If kT is not equal to T s , the present sampling period kT belongs to the low-level period of the selecting signal S, i.e. the first correction term. The tap number j is then set to 1 (step 4), and a correcting value ΔC 1 = µex 1 is produced (step 5). The correcting value ΔC 1 is added to the present tap gain C 1 , thereby generating a corrected tap gain C 1 + ΔC 1 (step 6). Subsequently, the tap number j is set to j + 1 = 2 (step 7). Next, it is judged whether or not the present tap number 2 is equal to or smaller than M. If the present tap number j is not larger than M, the program returns to step 5 and a correcting value ΔC 2 = µex 2 is produced. Then, a corrected tap gain C 2 + ΔC 2 is produced (step 6), followed by step 7 in which the tap number j is set to j + 1 = 3. In step 8, it is judged whether or not the present tap number 3 is not larger than M. The process of steps 5, 6, 7, 8 is repeated until the tap number j equals M. When the tap number j exceeds M, the first correction for the tap gains in the sampling period is finished. If the sampling period kT is equal to the selecting signal period T s in step 3, the tap number j is set to 1 (step 9), and a new tap gain αC 1 is generated (step 10). Subsequently, tap number j is set to j + 1 = 2 (step 11). Next, it is judged whether or not the present tap number 2 is equal to or smaller than M (step 12). Steps 10, 11, 12 are repeated until the tap number j equals M. When the tap number j exceeds M, the second corrections for the tap gains in the sampling period are finished. Steps 3, 8, 12 for judgment and steps 4, 7, 9, 11 for setting the tap number j are explicitly expressed in the flowchart shown in Fig. 7. However, steps 4, 7, 8, 9, 11 and 12 may be dispensed with for the same reason given with regard to the flowchart in Fig. 3. Step 3 may also be dispensed with by expressing consecutively steps 5 and 6 for all taps over all sampling periods in the first correction term and step 10 for all taps over all sampling periods in the second correction term. Estimating the A.O. executed in the adaptive filter in the same way as in the flowchart shown in Fig. 3, we find that the A.O. in the first correction term is 3M + 1 per sampling period, which is about 25% smaller than the A.O. 4M + 1 required for the flowchart shown in Fig. 3. The A.O. executed in the second correction term is 2M + 1 per sampling period, which is about half the A.O. for the flowchart shown in Fig. 3. Since the duty cycle of the second correction term with respect to the selecting signal period T s is markedly small, the A.O. executed in the second correction term is negligible compared with the entire A.O. Comparing the tap gain correcting step (step 6) in Fig. 3 with step 6 in Fig. 7, it can be seen that in Fig. 3, since the sum of the tap gains multiplied by the leak coefficient α and the correcting value is substituted as a new tap gain for the preceding tap gain, the resultant filter output signal y should depend on the leak coefficient α and will not fit the reference signal d. In the present embodiment, in contrast, in the major term of a selecting signal period (i.e. during the period when kT differs from T s ), the tap gain is recursively corrected using a known recursive correction algorithm so that the filter output signal y converges with the reference signal d, while in the minor term of the selecting signal period (i.e. during the period when kT is equal to T s ), the correction to suppress the divergent behavior of tap gain C j is made in step 10, thereby producing an optimum filter output signal and preventing recursively corrected values of each tap gain from diverging. The present invention should not be interpreted as limited to the illustrated embodiment. While the method of precluding divergent behavior in a recursively corrected adaptive filter is applied to an FIR transversal filter in the above embodiment, the principles of the present invention may be applied to a filter which is not an FIR transversal filter insofar as the filter has impulse responses h 0 , h 1 , h 2 , ... and their transfer function is expressed by Σ h j z -j . In such a modification, the impulse responses h j s serve as tap gains in a wider sense. The recursive correction algorithm may not necessarily be the LMS adaptive algorithm, but may be any desired adaptive algorithm. Although a certain preferred embodiment of the present invention has been shown and described in detail, it should be understood that various changes and modifications may be made therein without departing from the scope of the appended claims.

Claims: A method for preventing divergent behavior in the tap gain of an adaptive filter by suppressing divergent tendencies in the recursively corrected values of each tap gain thereof through a recursive correction algorithm, characterized by the steps of carrying out correction processes by correcting each tap gain in accordance with a conventional recursive correction algorithm during a first term, carrying out suppression processes for suppressing divergent tendencies in recursively corrected values of each tap gain during a second term of one sampling period by multiplying the tap gain corrected during the preceding first term by a positive constant less than 1 empirically determined so as to suppress said divergent tendencies, and repeating the correction and suppression processes successively. A method as claimed in claim 1, wherein the conventional recursive correction algorithm includes the Least Mean Square adaptive algorithm. An adaptive filter, each of whose tap gains is recursively adjusted so as to make the output of the adaptive filter fit a reference signal, characterized by a correcting circuit (4,5,12 ) for calculating the correcting value (ΔC j ) of each of the tap gains in accordance with a conventional recursive correction algorithm, an adder (14) for adding each correcting value (ΔC j ) calculated by the correcting circuit (4,5,12) to the corresponding tap gain (C j ), a coefficient multiplier (13) for multiplying the tap gain (C j ) by a positive constant (α) less than 1 empirically determined so as to suppress divergent tendencies in the recursively corrected values of each tap gain, a selector (16) for selectively outputting one of the signals supplied from the adder (14) and the coefficient multiplier (13) in response to a selecting signal (S), and a timer counter (6) for supplying the selecting signal (S) to the selector, the selecting signal being established so that the selector (16) selects a signal supplied from the coefficient multiplier (13) for one sampling period of an input signal supplied to the adaptive filter, wherein the correcting circuit (4,5,12), the adder (14), the coefficient multiplier (13) and the selector (16) are provided for each of the tap outputs, and a single timer counter (6) is provided for all tap outputs. An adaptive filter as claimed in claim 3, wherein the conventional recursive correction algorithm includes the Least Mean Square algorithm.

Inventors: IWASAKI MOTOYA, IWASAKI, MOTOYA, IWASAKI, MOTOYA, C/O NEC CORPORATION
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1991
Main classification: H03H21
IPC codes: H03H21, H04L25, H03H17