Abstract:
An adaptive transversal filter is characterized by a first adaptive filter for generating a plurality of estimated impulse response coefficients representing an impulse response of a transmission path. An averaging circuit is coupled with the first adaptive filter, and generates a plurality of average estimated impulse response coefficients having values in accordance with the average values over a most recent time interval of associated ones of the estimated impulse response coefficients, and a second adaptive filter receives the average estimated coefficients. The average estimated impulse response coefficients more closely represent and have less variance with respect to the actual impulse response of the transmission path than do the estimated coefficients, and the second filter generates an estimate of an echo signal through a process including convolution of the average estimated coefficients and an input signal. The adaptive transversal filter is particularly suited for use in an adaptive hybrid circuit.

Description:
This is a continuation of co-pending application Ser. No. 07/170,008 filed on Mar. 18, 1988 now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     The present invention relates to a novel adaptive filter and to operation of the same. 
     In a typical telephone connection, at each end of the network a four wire (4W) segment is joined with a two wire (2W) segment by a hybrid circuit. Impedance mismatch in a hybrid circuit may cause the 4W receive path signal, e.g., a far end speaker&#39;s voice signal, to be reflected onto the 4W transmit path as an echo signal. The hybrid circuits and two pairs of wires in the 4W segment form a loop around which echo signals propagate. Normally, at the ends of the network the 4W receive path signal is at a higher level than its echo on the transmit path, since there is loss across the hybrid circuit. This loss, which varies from one hybrid circuit to another, is a function of frequency and called transhybrid loss (THL). 
     It often is desirable to insert gain in the 4W paths to compensate for losses in the 2W segments, in which case the hybrid circuits provide loss and the gain stages provide gain. If, at any frequency, the inserted gain is greater than the sum of the losses in the two hybrid circuits, an unstable condition will exist. Once such a passband frequency is excited by a signal in either 2W path, it will continue to grow as it propagates around the loop, until it saturates at some level. This unstable condition is known as singing, and is an undesired self-sustaining oscillation at a frequency in the passband of the system. To avoid singing, either the gain must be decreased or the hybrid circut losses increased. Decreasing the gain may result in an unacceptable quality of service, so increasing the THL is the more desirable alternative of the two. 
     A common technique for increasing the THL of a hybrid circuit is to use an adaptive transversal filter with the circuit, resulting in a so-called adaptive hybrid. The adaptive filter operates much like an echo canceller, in that it generates an estimate of an impulse response of the end path coupling the 4W receive and transmit segments, and through a process including convolution of the estimated impulse response and receive path signal, develops an estimate of the echo on the transmit path. The echo estimate is subtracted from the transmit path signal, resulting in a residual signal that is used to update the estimate of the impulse response in a manner to reduce the power or absolute value of the residual signal. However, because of noise on the end path, which includes any near end speech signals, it often happens that the adaptive filter does not converge sufficiently to prevent singing on the network at desired gain levels. 
     OBJECTS OF THE INVENTION 
     An object of the present invention is to provide an improved adaptive filter for a telephone network. 
     Another object is to provide such an adaptive filter, for use in an adaptive hybrid circuit, that operates much like an echo canceller to effectively increase transhybrid loss. 
     A further object is to provide such an adaptive filter that, in increasing transhybrid loss, prevents occurrence of singing on the network. 
     SUMMARY OF THE INVENTION 
     In accordance with the present invention, an adaptive filter includes first signal processing means adapted to be supplied with an input signal and being responsive to an error signal for generating and periodically adjusting the values of a plurality of estimated impulse response coefficients, and averaging circuit means coupled with the first signal processing means for generating a plurality of average estimated impulse response coefficients having values in accordance with the average values over a most recent time interval of associated ones of the estimated coefficients. The adaptive filter also includes second signal processing means, adapted to be supplied with the input signal and coupled with the averaging circuit means, for receiving the average estimated impulse response coefficients and for generating an estimate of a signal correlated to the input signal. 
     In a preferred embodiment, the adaptive filter is used in an adaptive hybrid circuit that includes means adapted to be coupled to first, second and third transmission paths for coupling an input signal on the first path to the third path and an output signal on the third path to the transmit in path. In this case, the adaptive filter separates the second transmission path into transmit in and transmit out paths, the correlated signal is an echo signal on the transmit in path that is correlated to and occurs in response to the input signal on the first path, the second signal processing means generates an estimate of the echo signal on the transmit in path, and included are means coupled with the second signal processing means, and adapted to be coupled with the second path, for subtracting the estimate of the echo signal on the transmit in path from the signal on the path and for coupling the resulting signal to the transmit out path. 
     The invention also contemplates a method of generating an estimate of a signal on a second transmission path, that is correlated to and occurs in response to an input signal on a first transmission path. The method comprises the steps of generating a plurality of estimated impulse response coefficients that form an estimate of the impulse response exhibited by an end path of the first and second transmission paths, and periodically adjusting the values of the coefficients in accordance with the value of an error signal. Also included are the steps of generating a plurality of average estimated impulse response coefficients having values in accordance with the average values over a most revent time interval of associated ones of the estimated coefficients, and generating an estimate of the correlation signal on the second path through a process including convolution of the input signal and the average estimated impulse response coefficients. 
     In a contemplated practice of the method, signals are converted between first, second and third transmission paths, the second transmission path is separated into transmit in and transmit out paths, and included is the step of coupling an input signal on the first path to the third path and an output signal on the third path to the transmit in path. The step of algebraically combining reduces the value of the signal on the transmit in path by the value of the estimate of the correlation signal on the path, and also included are the steps of generating an initial estimate of the correlation signal through a process including convolution of the input signal and the estimated inpulse response coefficients, and algebraically combining the initial correlation signal estimate with the signal on the transmit in path to generate the error signal. 
     In both the apparatus and method, as compared with the estimated impulse response coefficients, the average estimated impulse response coefficients have a decreased variance with respect to the actual impulse response. 
     The foregoing and other objects, advantages and features of the invention will become apparent upon a consideration of the following detailed description, when taken in conjunction with the accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 illustrates a conventional telephone network in which 4:2 hybrid circuits join four wire and two wire segments at each end of the network; 
     FIG. 2 shows a conventional 4:2 adaptive hybrid circuit at one end of a telephone network, and 
     FIG. 3 illustrates a 4:2 adaptive hybrid circuit at one end of a telephone network, having an adaptive filter according to the teachings of the invention. 
    
    
     DETAILED DESCRIPTION 
     Referring to FIG. 1, in a typical telephone connection, a pair of 4:2 hybrid circuits join a four wire (4W) segment with two wire (2W) segments at each end of the network. The hybrid circuits and the two pairs of wires in the 4W segment form a loop around which echo signals can propagate. Normally, a 4W receive signal is at a higher level than its echo on the 4W transmit path, i.e., there is loss across the hybrid circuit, which is a function of frequency and called transhybrid loss (THL). 
     It often is desirable to insert gain in the 4W paths to compensate for losses in the 2W segments, in which case the hybrid circuits provide loss and gain stages provide gain. If at any frequency, the net gain in the loop is greater than unity, an unstable condition exists. Once such a passband frequency is excited by a signal in either 2W segment, it will continue to grow as it propagates around the 4W loop, until it saturates at some level. To avoid this unstable condition, known as singing, the net gain in the loop must be less than unity at the frequencies of excitation. This may be accomplished by reducing the inserted gain or by increasing the loss across the hybrids. Reducing the gain may result in an unacceptable quality of service, so it is desirable to increase the THL. 
     By attenuating echo energy, echo cancellers used in long distance telephone networks effectively increase THL. However, echo cancellers are normally used only in networks of sufficient length that echo of a speaker&#39;s voice signal perceptibly degrades the quality of the connection. To increase THL in shorter networks, the art therefore contemplates using adaptive hybrid circuits, which operate much like echo cancellers. 
     FIG. 2 illustrates a typical adaptive hybrid circuit, that includes a 4:2 hybrid for transferring input signals on the 4W receive path to the 2W path and output signals on the 2W path to a transmit in path portion of the 4W transmit path. Because of impedance mismatch, some of the 4W receive path energy is reflected onto the 4W transmit in path as an echo signal that is correlated to the receive path signal. To decrease echo energy transmitted over the 4W transmit out path, the adaptive hybrid circuit includes an adaptive transversal filter and a subtractor circuit. The adaptive filter develops estimated end path impulse response coefficients, and through a convolution process multiplies the coefficients and 4W receive path signal samples to generate an estimate of echo that will appear on the 4W transmit side of the 4:2 hybrid in response to signals on the 4W receive side. The echo estimate is then subtracted from the transmit in path signal in the subtractor circuit. The result of the subtraction process is referred to as a residual or error signal, and is sensed by the adaptive filter to update the estimated impulse response coefficients in a manner to decrease the power or absolute value of the residual signal. 
     The adaptive filter of FIG. 2 is used, in part, in the adaptive filter of the invention. The algorithm used in the adaptive filter of FIG. 2 is a variation of the Least Mean Squares (LMS), and is similar to that used in most echo cancellers. Let x and y be the 4W receive and 4W transmit path signals, respectively. The signal y is the sum of echo e, which is correlated to the receive path signal x, and some other signal v. Let the samples of the signals x, y, e and v at time n be denoted x[n], y[n], e[n] and v[n], respectively. Thus 
     
         y[n]=e[n]+v[n]                                             (1) 
    
     The algorithm establishes a set of adjustable impulse response coefficients, or taps, having values at time n denoted h i  [n], where i=0, 1, . . . , N-1. The taps are estimates of the actual end path impulse response samples. An estimate of the echo at time n, y[n], is generated by means of a convolution process as 
     
         y[n]=x[n]h.sub.0 [n]+x[n-1]h.sub.1 [n]+ . . . +x[n-N+1]h.sub.N-1 [n].(2) 
    
     The estimate of the echo, y[n], is then subtracted from the 4W transmit path signal y[n] to form an error or residual signal r[n], where 
     
         r[n]=y[n]-y[n].                                            (3) 
    
     The residual signal r[n] then becomes the 4W transmit path signal. 
     The algorithm updates the estimated end path impulse response coefficient, h i  [n], i=0, 1, . . . , N-1, at every time interval n in an attempt to minimize the power of the residual signal r[n]. The update process is characterized by 
     
         h.sub.i [n+1]=h.sub.i [n]+μ[n]r[n]x[n-i],               (4) 
    
     where the adaptive gain μ[n] is a positive value that affects stability, convergence time and steady state performance. 
     Whenever there is a component of the signal y that is statistically uncorrelated with the signal x, for example the signal v or part of the signal v, there will in steady state be variance in the adaptive filter taps which prevents the filter from minimizing the energy of the residual signal. A logical approach to decreasing coefficient or tap variance is to lower the adaptive gain, and this strategy represents the standard approach to improving performance through reduced coefficient variance. However, the technique has two disadvantages. First, convergence time of the adaptive filter is linearly related to adaptive gain, so halving the gain doubles convergence time as average estimated impulse response coefficients which are separate and distinct from the estimated impulse response coefficients. Secondly, as the adaptive gain gets smaller, the number of data bits required to represent the estimated impulse response coefficients h i  increases, which leads to an increase in storage requirements of the adaptive filter and an increased computational burden on the convolution and update processors. If not enough bits are allocated to represent estimated impulse response coefficients, performance will degrade. 
     In overcoming problems associated with the prior practice of decreasing impulse response coefficient variance by decreasing adaptive gain, according to the invention, and with reference to FIG. 3, coefficient variance is reduced by a novel technique that may be termed &#34;coefficient averaging&#34;. As the name implies, the technique contemplates computing an average value over a most recent time interval for each estimated impulse response coefficient h i . Similar to the conventional adaptive transversal filter, in the one of the invention an adaptive filter develops estimates of the end path impulse response coefficents, h i , i=0, 1, . . . , N-1, and through a convolution process according to equation (2) generates an initial estimate y[n] of echo on the 4W transmit in path side of the 4:2  hybrid. The echo estimate is subtracted from the transmit in path signal y[n] to form a residual or error signal r[n], but in this case the residual signal does not become the transmit out path signal. Instead, the error signal is used only to update the estimated impulse response coefficients h i , each of which are passed individually through an averaging circuit to a second adaptive filter. The second adaptive filter is therefore supplied with an average value over a most recent time interval for each estimated impulse response coefficient h i , and through a convolution process multiplies the average estimated impulse response coefficients and 4W receive path signal samples x[n] to generate a second echo estimate y&#39;[n] that more accurately represents actual echo than does the initial echo estimate y[n]. The echo estimate y&#39;[n] is then subtracted from the signal on the 4W transmit in path to yield a transmit out path signal r&#39;[n]. 
     Considering operation of the adaptive filter of the invention, let h&#39; i  [n] be the average of the corresponding estimated impulse response coefficient h i . i=0, 1, . . . , N-1, computed through time n. In steady state, h&#39; i  [n] and h i  [n] have about the same mean, i.e., the value of the actual impulse response coefficient h i  [n]. However, the variances of the average estimated coefficents with respect to the actual coefficients will be less than that of the estimated coefficients, since the signal v adds to the error signal r[n] and prevents perfect convergence during updating, and averaging of the coefficients decreases their variance due to random noise. 
     Just as the estimated impulse response coefficients h i  [n] are used to generate the echo estimate y[n] and the error signal r[n], so are the average estimated impulse response coefficients h&#39; i  [n] used to generate the echo estimate y&#39;[n] and residual signal r&#39;[n] as follows: 
     
         y&#39;[n]=x[n]h&#39;.sub.0 [n]+x[n-1]h&#39;.sub.1 [n]+ . . . +x[n-N+1]h&#39;.sub.N-1 [n](5) 
    
     
         r&#39;[n]=y[n]-y&#39;[n]                                           (6) 
    
     The actual averaging operation may be carried out in various ways, e.g., by means of a low pass filter or by sample averaging. If accomplished by means of a low pass filter, it is contemplated that each estimated impulse response coefficient h i  be passed through a first order low pass filter according to the following equation: 
     
         h&#39;.sub.i [n]=ah&#39;.sub.i [n-1]+(1-a)h.sub.i [n],             (7) 
    
     where &#34;a&#34; is between 0.9 and 1. If sample averaging is used, then each average estimated impulse response coefficient h&#39; i  is computed as the average of the last several estimates of the impulse response coefficient h i  [m], m=n, n-1, . . . , n-M, where M is some positive integer. 
     The decreased variance of the average estimated impulse response coefficients h&#39; i , as compared to the estimated coefficients h i , makes the echo estimate y&#39;[n] a generally better estimate of the 4W transmit in path signal y[n] than the echo estimate y[n]. In consequence, there is less distortion in the residual signal r&#39;[n] than in the residual signal r[n]. As seen in FIG. 3, the estimated impulse response parameters h i  [n] are updated as before, according to equation (4), based upon the value of the error signal r[n], but the 4W transmit out signal is now r&#39;[n], the difference between the signal y[n] and second echo estimate y&#39;[n]. 
     As compared with decreasing impulse response coefficient variation by means of reducing adaptive gain, coefficient averaging requires slightly less storage and computation resources than does reducing adaptive gain. More significantly, while decreasing adaptive gain substantially increases the time required for convergence of the adaptive filter, coefficient averaging increases convergence time only by the length of the averaging process. 
     For telephone networks of a length sufficiently short that echo is not a problem and echo cancellers are not required, the coefficient averaging technique enables the adaptive hybrid circuit to converge to a point that the transhybrid loss of the circuit is sufficiently great to prevent singing on the network in the presence of signals in the passband of the system. Should the telephone network be sufficiently long that echo cancellers are used, then hybrid circuits at opposite ends of the network need not be of the adaptive type, since the echo cancellers will, in effect, provide enough THL to prevent singing. In the latter case, the coefficient averaging technique may advantageously be used in the echo cancellers to enhance attenuation of echo energy. 
     While embodiments of the invention have been described in detail, various modifications and other embodiments thereof may be devised by one skilled in the art without departing from the spirit and scope of the invention, as defined in the appended claims.