ADAPTIVE FILTERING METHOD AND RELATED DEVICE

Abstract: An input signal is filtered for creating an output signal using an adaptive filter. An error signal is derived from the output signal. The adaptive filter has coefficient whose value can be modified. A value of a coefficient is modified using a derived updating amount. The updating amount is obtained from the product of a value of the input signal, a value of the polarity of the error signal, and a step gain. The step gain has the form 2<K> with K being an integer and being dependent on a magnitude of the value of the error signal and on a step gain parameter. The updating amount is dependent on both the magnitude and the polarity of the error signal, therefore allowing a precise update of the coefficient. The specific form of the step gain allows a fast derivation of the product.

Description: Adaptive filtering method and related device The invention relates to a method of processing an input signal. It also relates to a corresponding data processing device for carrying out such a method. The invention is particularly relevant to the processing of video or audio data that are subjected to distortion during transmission over a communication channel. In the following paragraphs, when a reference "A" designates a signal A, "A(n)" designates the digitized value of the signal A at a discrete time n. The input signal Sin may represent any type of digital video, audio or communication data. The signal Sin represents, for example, video or audio data. The input signal Sin may be, for example, an intermediate frequency modulated by the compressed video data originated from a base station. It is transmitted from a base station to a receiver over terrestrial broadcast, cable or satellite channel. During transmission, the signal Sin may have been subjected to various forms of distortions. The transmitted input signal Sin may comprise a training sequence. The received training sequence may be corrupted. In order to compensate for certain types of distortions, the possibly corrupted input signal Sin is filtered using an adaptive filter F. The filter F is adapted so that the received training sequence after filtering approximates the original training sequence that is known in advance by the receiver. The filter F has a set C of m adjustable coefficients having values C0(n), Cl(n),..., Cm-l(n) at discrete time n. The filter F creates an output signal Sout and the value Sout(n) is obtained from the values of the filter coefficients at time n and values of the input signal Sin buffered in the filter F at time n as shown in the equation of Fig.1 A. To adapt the filter F, an error signal E is derived as a difference between a reference signal Sref and the signal Sout as shown in Equation of Fig. IB. The reference signal is the training sequence known in advance by the receiver. This method of adaptive filtering or equalization relies on the training sequence to adapt the coefficients, and is often called a "trained equalization". An adaptation of the coefficients may also be performed by a so-called blind equalization. A blind equalization does not require transmission of a training sequence. The derivation of the error signal E and the adaptation of the coefficients rely on statistical properties of the adaptive filter's output signal Sout. A possible adaptation method consists of updating the set C so as to minimize the error signal E. Updating the set C is usually carried out by a method which updates each coefficient as the time increments from time n to time n+1. A form of an update equation for a coefficient Cj at time n is given by Fig.lC where g is a mathematical scalar function of the time n, f 1 is a mathematical scalar function of the value of the error signal at time n, and f2 is a mathematical scalar function of the value of the input signal Sin(n-j that is, at time n, buffered in the filter F and associated with the coefficient Cj. A well-known adaptation equation having a form shown in Fig. ID relates to the Least Mean Square (LMS) algorithm, which is intended to adjust a coefficient of the filter F so as to minimize a discrepancy between the output signal of the filter F and a reference signal. The coefficient Cj(n) is updated using an adaptation step parameter μ that controls the rate of convergence of the algorithm. The US patent 5,568,411, herein incorporated by reference, discloses a method of updating the coefficients of an adaptive filter. The method closely resembles the well- known LMS update algorithm. The known method addresses a coefficient update relationship based on a polarity-coincidence correlator that is based on a sum of products of the sign of the error signal and the signs of consecutive N time samples of the input signal. It is an object of the invention to provide an efficient method of filtering that can be easily implemented in a data processing device. Other objects of the invention are providing a data processing device capable of high-speed data processing and providing a low-cost implementation for such a device. To this end, the invention provides a method of processing an input signal. The method comprises the following steps. The input signal is filtered for creating an output signal using a filter having adjustable filter coefficients. An error signal is derived from the output signal. For at least a specific one of the filter coefficients, an updating amount is created from a product of a first value of the input signal, a second value of a binary signal dependent on a polarity of a third value of the error signal, and a fourth value of a step gain. The step gain has the form 2 K with K being an integer and being dependent on a magnitude of the third value and on a step gain parameter. The specific filter coefficient is then adjusted using the updating amount thus derived. A method of processing of the invention aims at obtaining an output signal that minimizes the error signal by means of adaptation of at least a specific one of the coefficients. The adaptation of a coefficient is performed on the basis of a value of the input signal, the polarity of the error signal and a given step gain of the form 2 K , the integer K being a function of the magnitude of a value of the error signal. Compared to a known method of signal processing using filtering with an update of coefficients based on a theoretical LMS equation, the method of the invention is less complicated since fewer multiplications are needed. Besides, in comparison with a method of filtering as disclosed in the background art section, the method of the invention involves not only the polarity of the error signal but also the magnitude of the error signal. Therefore, the method of the invention allows a more precise adaptation of the filter coefficients. Besides, the step gain involved is of the form 2 K ,which is easily implemented by means of, for example, a barrel shifter or a look-up-table prepared in advance. Thus, an advantage of a method of the invention is that the method is a fast and efficient update mechanism for the filter coefficients avoiding multiple multiplications. A method of the invention is a good compromise between the accuracy of a method based on a theoretical algorithm and low-computational method described in the background art section. The invention also relates to a data processing device for processing a digital input signal. The device of the invention comprises a filtering circuit having adjustable filter coefficients for filtering the input signal and creating an output signal. The device further has an error calculator for deriving an error signal from the output signal. The device also comprises a step gain calculator for deriving a first value of a step gain of a form 2 K , wherein K is an integer based on a magnitude of a second value of the error signal and on a step gain parameter. The device also has a sign unit for providing a binary signal dependent on a polarity of the second value of the error signal, and an updating circuit. The updating circuit derives, for at least a specific one of the filter coefficients, an updating amount and adjusts the specific coefficient using the updating amount. The updating amount is formed from a product of a third value of the input signal, the first value and a fourth value of the binary signal. A device of the invention performs simple multiplications. Generally, multiplications are costly in terms of processing resources, so a device of the invention makes efficient use of the processing resources and compute time available. The invention is explained in further detail, by way of example, and with reference to the accompanying drawing wherein: Fig.lA-lK are mathematical equations; Fig.2 is a block diagram of a data processing device in accordance with the invention; Fig.3 is a flow diagram illustrating certain aspects of the invention; Fig.4 is a block diagram of an adaptive filtering circuit in accordance with the invention, and Fig.5 is an updating circuit in accordance with the invention. Elements within the drawing having similar or corresponding features are identified by like reference numerals. Fig.2 is a block diagram of an embodiment of a data processing device 200 according to the invention. The device 200 comprises a filtering circuit F for filtering a digital input signal Sin for creating a digital output signal Sout. The filtering circuit F has a set C of m adjustable filtering coefficients having the values C0(n), Cl(n)..., Cm-l(n) at a discrete time n. The coefficients are said to be adjustable with the meaning that their values can be modified. For example, as shown in the following examples, the coefficients can be adaptive coefficients and therefore the filter F is an adaptive filter. The device 200 may be part of a receiver that receives the input signal Sin transmitted by an emitter over a communication channel. The device 200 performs equalization of the signal Sin. In a trained equalization, transmission of the input signal Sin, on the emitter side, comprises transmission of a reference signal Sref as a part of the input signal Sin. On the receiver side, a distorted version of the signal Sref is received. This signal Sref is often referred to as a training sequence. The distorted version of the reference signal Sref is filtered by the filter F and results in a filtered distorted version of the reference signal Sref. The filtered distorted version of the reference signal Sref is a part of the output signal Sout. One skilled in the art can partly remove channel distortions by deriving an error signal E from the signal Sref and the filtered distorted version of the reference signal Sref, by minimizing the error signal and by using that result to create the output signal Sout. In a blind equalization, transmission of the input signal Sin does not include transmission of the reference signal Sref. In that case, the error signal E is derived from statistical properties of the output signal Sout. In this embodiment, a trained equalization is performed. The device 200 further comprises an error calculator 202 for deriving the error signal E from the output signal Sout and from the reference signal Sref. The reference signal Sref is known a priori by the device 200. In this embodiment, the calculator 202 has a comparator that calculates the difference between the reference signal Sref and the output signal Sout, as shown in Fig. IE. The quantity i is a positive integer that represents a delay required by the calculator 202 to perform the calculation of the error signal E. Thus, the value E(n) of the error signal currently available at the output of the calculator 202, at a discrete time n, is the error value associated with the value of the output signal Sout and the value of the reference signal Sref, both at time n-i. In an ideal embodiment of the invention, this delay i may effectively be zero and the value E(n) of the error signal at time n is associated with the current values Sout(n) and Sref(n) at time n. The calculation of the error signal E given in Fig. IE is by no means a limitation of the invention and one skilled in the art could derive any suitable mathematical correspondence for representing a measure of the discrepancy between the initially transmitted and received versions of the reference signal Sref. In another embodiment of the invention, the error signal E may be derived following an equation of Fig. IF. Herein, the error signal E is the product of a first function Gl of the difference of the respective squared values of the output and reference signals and a second function G2 of the difference between the values of the output and reference signals. The derived error signal E is then supplied to a sign unit 204 that provides a binary sign signal SGN representing the polarity of the error signal E. The value of the signal SGN at time n is 0 when the signal E at time n is positive or null. The value of the signal SGN at time n is 1 when the signal E at time n is negative. The signal E and the signal SGN are then provided to an updating circuit 206. The circuit 206 allows to update at least a specific one Cj of the filter coefficients from the value Cj(n) at time n to a new value Cj(n+1) at time n+1. To this end, the circuit 206 derives a corresponding coefficient updating amount DCj(n) as the product of the value Sin(n-j-i) of the input signal Sin, the value SGN(n) obtained from the value E(n) and a step gain M of the form 2 K with K being a negative integer. The value of the input signal Sin(n-j-i) is associated with the coefficient Cj at the time n-i leading to the value E(n) at time n. The quantity K depends on both a magnitude of the value E(n) and a step gain parameter μ. The integer K may be the sum of a negative integer quantity Kl and of a positive integer quantity K2. The quantity Kl is possibly the logarithm in base 2 of μ, with μ being preferably of the form 2 l wherein t is a negative integer. The quantity K2 is obtained from the magnitude of the current value of the error signal E and preferably increases when the magnitude of the error signal increases. Thus, when updating a coefficient Cj, the updating amount DCj(n) is larger in magnitude when the magnitude of the error signal E(n) increases. Thus, the step gain M decreases when the magnitude of the error signal decreases. In an embodiment of the invention, K2 can be calculated, at time n, as the logarithm in base 2 of the magnitude of the error signal E rounded to the nearest integer value. K2 may be retrieved from a look-up table storing values of K2 for various magnitudes of the error signal E. Possibly, the new value Cj(n+1) of the coefficient Cj is then obtained by adding the derived updating amount DCj(n) to the value Cj(n) shown in the updating equations of Fig.1G and of Fig.1H. In the embodiment of the invention of Fig.2, the delay i in the derivation of the error signal E is, for example, 2 discrete time periods. Thus, the value E(n) of the error signal at time n corresponds to the value Sout(n-2) of the output signal and to the value Sref(n-2) of the reference signal Sref taken 2 discrete time units earlier. In this embodiment of the invention, the updating equation of Fig.lH becomes the equation of Fig. II. When updating the coefficient Cj at time n, the circuit 206 may provide the filter F with the corresponding amount DCj(n) so that the filter F internally updates the coefficient Cj from the value Cj(n) to the value Cj(n+1). In another embodiment, the circuit 206 may also retrieve said value Cj(n) from the filter F, modifies the value Cj(n) on the basis of the derived amount DCj(n) and then loads the new value Cj(n+1) into the filter F replacing the value Cj(n). In a method of the invention, the whole set C is not necessarily updated all at once when time increments from time n to n+1. When a given coefficient Cj is not updated the value Cj(n+1) at time n+1 is the value Cj(n) at time n. Fig.3 is a flow diagram 300 showing various steps of a method of filtering in the invention. A step 302 consists of filtering the input signal Sin for obtaining the output signal Sout using a filter having adjustable coefficients CO,..., Cm-1 such as the filtering circuit F of Fig.2. A step 304 consists of deriving the error signal E from the output signal Sout. In a trained equalization, the error signal E is derived from the output signal Sout and the reference signal Sref. In a blind equalization, the error signal E is derived from statistical properties of the output signal Sout. A next step 306 consists of deriving, for at least a specific one of the filter coefficient Cj, the updating amount DCj, associated with the specific filter coefficient Cj, as the product of a value of the input signal Sin, the sign of the error signal E and the step gain M of the form 2 Kl+K2 . The quantity K2 is a function of the magnitude of a value of the error signal. Then, on the basis of the derived amount DCj, a step 308 consists of modifying the value Cj(n) of the coefficient Cj using the derived updating amount DCj(n). The functioning of the filter F is now explained in details. A possible functional embodiment of the filter F is given in Fig.4. The filter F is, for example, a four-tap filter, which means that the filtering circuit F has four coefficients CO, Cl, C2 and C3, whose values C0(n), Cl(n), C2(n) and C3(n) are stored at time n in four tap registers 400, 402, 404 and 406, respectively. The filtering circuit F also comprises four data registers Dl, D2, D3, D4 for storing values of the input signal Sin. At time n, Sin(n), Sin(n-l) Sin(n-2) and Sin(n-3) are stored in the registers Dl, D2, D3 and D4, respectively. The registers Dl, D2, D3 and D4 form a FIFO ("first-in-first-out"). The filter F further comprises four multipliers 408, 410, 412 and 414. At time n, the multiplier 408 receives the value Sin(n) of the input signal stored in the register Dl and the value C0(n) stored in the register 400. The multiplier 408 then provides an adder 416 with the product of the value Sin(n) and the value C0(n). At time n, the multiplier 410 receives the value Sin(n-l) stored in the register D2 and the value Cl(n) stored in the register 402. The multiplier 410 then provides the adder 416 with the product of the value Sin(n-l) and the value Cl(n). At time n, the multiplier 412 receives the value Sin(n- 2) stored in the register D3 and the value C2(n) stored in the register 404. The multiplier 412 then provides the adder 416 with the product of the value Sin(n-2) and the value C2(n). Similarly, at time n, the multiplier 414 receives the value Sin(n-3) stored in the register D4 and the value C3(n) stored in the register 406. The multiplier 414 then provides the adder 416 with the product of the value Sin(n-3) and the value C3(n). The adder 416, then, derives the value Sout(n) of the output signal at time n as the sum of the products as shown in the equation of Fig.U. The values C0(n), Cl(n), C2(n), C3(n) of the coefficients at time n may be adjusted by loading new values C0(n+1), Cl(n+1), C2(n+1), C3(n+1) into the registers 400, 402, 404 and 406, respectively, when time increments from time n to time n+1. The set C is not necessarily updated in its entirety when the time increments from time n to time n+1 and a single coefficient may be updated between time n and time n+1. For example, in this embodiment the coefficient Cl is updated following an equation of Fig. IK, where SGN(n) is the polarity of the value E(n)=Sout(n-2)-Sref(n-2). Fig.5 is a block diagram of a possible embodiment of the circuit 206 of the invention. The updating circuit 206 first comprises an inverting unit 500 for deriving a signal having a same magnitude as the signal Sin but of an opposite polarity. In this embodiment of the invention, the unit 500 multiplies the input signal Sin by -1. The circuit 206 further comprises a multiplexer 502. At time n, when updating a given coefficient Cj, the multiplexer 502 receives the value Sin(n-j-i) at time n and the output of the unit 500, which is -Sin(n-j-i). The multiplexer 502 also receives the value of the signal SGN at time n. Regarding to the value of the signal SGN, the multiplexer 502 provides a signed signal SSin having at time n the value Sin(n-j-i) or the negative of the value Sin(n-j-i). When, at time n, the value SGN(n) is 0, the value SSin(n) is Sin(n-j-i). When the value SGN(n) is 1, the value SSin(n) is -Sin(n- J- - The signal SSin is then provided to a barrel shifter 504 for providing the updating amount DCj(n) as the product of the value SSin(n) and the value of the step gain M. The step gain M at time n is obtained from the magnitude of the error signal at time n. Since the step gain M is of the form 2 (K,+K2) the product is created by means of the barrel shifter 504. The barrel shifter 504 comprises, for example, five shift units 506, 508, 510, 512 and 514 for performing different right binary shifts of the signal SSin(n) at time n for different values of K1+K2. For example, the shift units 506, 508, 510, 512, 514 may be implemented as bus connectors and perform bit reordering. In this embodiment, the unit 506 allows to right-shift the signal SSin of one position, the unit 508 allows to right-shift the signal SSin of two positions. The barrel shifter 504 also comprises a multiplexer 516 for providing the updating amount DCj(n) as the output of one of the shift units 506, 508, 510, 512, 514 depending on the provided value of K=K1+K2. In this embodiment of the invention, the updating circuit comprises a look-up table MEM for storing values of the integer K for different combinations of the values of the magnitude of the error signal E and of the step gain parameter μ. In another embodiment of the invention, the look-up table MEM may be implemented outside the circuit 206 and there may be several look-up tables MEM. For example, different look-up tables may correspond to different values of the step gain parameter μ, various channel conditions for the transmission of the input signal Sin, trained or blind mode of the coefficients updating, error rate, etc...Thus, regarding to the value of K, the barrel shifter 504 provides the correct amount DCj(n) at time n. The circuit 206 comprises an adder 518 for updating the coefficient Cj with the derived amount DCj(n), thus providing a new value Cj(n+1). It is to be noted that, with respect to the described method, modifications or improvements may be proposed without departing from the scope of the invention. For instance, it is clear that this processing method may be implemented in several manners, such as by means of wired electronic circuits or, alternatively, by means of a set of instructions stored in a computer-readable medium, said instructions replacing at least a part of said circuits and being executable under the control of a computer or a digital processor in order to carry out the same functions as fulfilled in said replaced circuits.

Claims: CLAIMS: 1. A method of processing an input signal, the method comprising: filtering the input signal for creating an output signal using a filter having adjustable filter coefficients; • deriving an error signal from the output signal; • deriving, for at least a specific one of the filter coefficients, an updating amount from a product of a first value of the input signal, a second value of a binary signal dependent on a polarity of a third value of the error signal, and a fourth value of a step gain being of a form 2 K with K an integer and K dependent on a magnitude of the third value and on a step gain parameter; • adjusting the specific filter coefficient using the updating amount. 2. A data processing device for processing an input signal comprising: • a filtering circuit having adjustable filter coefficients for filtering the input signal and creating an output signal; • an error calculator for deriving an error signal from the output signal; • a step gain calculator for deriving a first value of a step gain of a form 2 K with K being integer and K being based on a magnitude of a second value of the error signal and on a step gain parameter; • a sign unit for providing a binary signal dependent on a polarity of the second value of the error signal; • an updating circuit for deriving, for at least a specific one of the filter coefficients, an updating amount from a product of a third value of the input signal, the first value and a fourth value of the binary signal, and for adjusting the specific coefficient using the updating amount. 3. The device of Claim 2, further comprising a digital component comprising at least a barrel shifter for performing a multiplication by a specific value of the step gain. 4. device of Claim 2, wherein K is of a form K1+K2 with Kl and K2 being integers and the device comprising a memory circuit for storing values of K2 for different values of the magnitude of the error signal. 5. The device of Claim 2, wherein K is of a form K1+K2 with Kl and K2 being integers and the device comprising a memory circuit for storing values of Kl for different values of the step gain parameter. 6. The device of Claim 2, wherein an updating amount is obtained at discrete time n from a value of the error signal at time n-m and a value of the input signal at time n-m, where m is representative of a processing delay. 7. The device of Claim 2, wherein the filter comprises a digital filter having adaptive coefficients. 8. The device of Claim 2, wherein the input signal is digitized. 9. A storage medium comprising a software module for storing a set of instructions executable under control of a processor and provided for performing at least one of the steps of a method of processing a digital input signal, the method comprising: • filtering the input signal for creating an output signal using a filter having adjustable filter coefficients; • deriving an error signal from the output signal; • deriving, for at least a specific one of the filter coefficients, an updating amount from a product of a first value based on the input signal, a second value based on a binary signal dependent on a polarity of a third value of the error signal, and a fourth value based on a step gain being of a form 2 K , with K an integer and K dependent on a magnitude of the third value and on a step gain parameter; and • adjusting the specific filter coefficient using the updating amount. 10. A set of instructions executable under control of a processor and provided for performing at least one of the steps of a method of processing a digital input signal, the method comprising: > filtering the input signal for creating an output signal using a filter having adjustable filter coefficients; 1 deriving an error signal from the output signal; 1 deriving, for at least a specific one of the filter coefficients, an updating amount from a product of a first value based on the input signal, a second value based on a binary signal dependent on a polarity of a third value based on the error signal, and a fourth value based on a step gain being of a form 2 K with K an integer and K dependent on a magnitude of the third value and on a step gain parameter; and 1 adjusting the specific filter coefficient using the updating amount. 11. An electronic document allowing a download of a set of instructions executable under control of a processor and provided for performing at least one of the steps of a method of processing a digital input signal, the method comprising: • filtering the input signal for creating an output signal using a filter having adjustable filter coefficients; • deriving an error signal from the output signal; • deriving, for at least a specific one of the filter coefficients, an updating amount from a product of a first value based on the input signal, a second value based on a binary signal dependent on a polarity of a third value based on the error signal, and a fourth value based on a step gain being of a form 2 K , with K an integer and K dependent on a magnitude of the third value and on a step gain parameter; and • adjusting the specific filter coefficient using the updating amount.

Inventors: GORNSTEIN VIKTOR L, TURKENICH GENNADY, GORNSTEIN, VIKTOR, L., TURKENICH, GENNADY
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 2001
Main classification: H03H21
IPC codes: H03H21