Derivation of the Filtered-x Least Mean Square (FxLMS) Algorithm Using Backpropagation
Introduction
Active Noise Control (ANC) aims to reduce unwanted noise by generating an anti-noise signal that destructively interferes with the noise signal. The FxLMS algorithm is a widely used adaptive filtering algorithm in ANC systems, particularly suited for environments where the secondary path (the path from the controller output to the error microphone) cannot be neglected. In this derivation, we will use the backpropagation algorithm—a method for computing gradients in layered systems—to derive the FxLMS update equations.
System Model
We consider a feedforward ANC system with the following components:
- Primary Noise Source: Generates the undesired noise signal ( d(n) ).
- Reference Sensor: Measures a reference signal ( x(n) ) that is correlated with ( d(n) ).
- Adaptive Filter: Has coefficients ( \mathbf{w}(n) ) and produces the output ( y(n) ).
- Secondary Path: Modeled by the impulse response ( s(n) ), representing the acoustical path from the controller output to the error microphone.
- Error Microphone: Measures the residual error signal ( e(n) ).
The objective is to adapt ( \mathbf{w}(n) ) to minimize the mean squared error ( E[e^2(n)] ).
Signal Definitions
-
Adaptive Filter Output:
[
y(n) = \mathbf{w}^T(n) \mathbf{x}(n) = \sum_{k=0}^{L-1} w_k(n) x(n - k)
]
where ( L ) is the length of the adaptive filter.
-
Filtered Output (after Secondary Path):
[
y'(n) = y(n) * s(n) = \sum_{m=0}^{M-1} s_m y(n - m)
]
where ( M ) is the length of the secondary path impulse response.
-
Error Signal:
[
e(n) = d(n) + y'(n)
]
Objective Function
The mean squared error (MSE) cost function is:
[
J(n) = e^2(n)
]
Our goal is to update ( \mathbf{w}(n) ) in the negative direction of the gradient of ( J(n) ) with respect to ( \mathbf{w}(n) ).
Derivation Using Backpropagation
Step 1: Compute the Gradient of the Cost Function
The gradient of ( J(n) ) with respect to ( \mathbf{w}(n) ) is:
[
\frac{\partial J(n)}{\partial \mathbf{w}(n)} = 2e(n) \frac{\partial e(n)}{\partial \mathbf{w}(n)}
]
Step 2: Compute the Gradient of the Error Signal
Since ( e(n) ) depends on ( \mathbf{w}(n) ) through ( y'(n) ), and ( y'(n) ) is a convolution of ( y(n) ) with ( s(n) ), we apply the chain rule to obtain:
[
\frac{\partial e(n)}{\partial \mathbf{w}(n)} = \frac{\partial y'(n)}{\partial \mathbf{w}(n)} = \sum_{m=0}^{M-1} s_m \frac{\partial y(n - m)}{\partial \mathbf{w}(n)}
]
But ( y(n - m) ) is:
[
y(n - m) = \mathbf{w}^T(n) \mathbf{x}(n - m)
]
Thus:
[
\frac{\partial y(n - m)}{\partial \mathbf{w}(n)} = \mathbf{x}(n - m)
]
Therefore:
[
\frac{\partial e(n)}{\partial \mathbf{w}(n)} = \sum_{m=0}^{M-1} s_m \mathbf{x}(n - m)
]
This summation is equivalent to the convolution of ( \mathbf{x}(n) ) with ( s(n) ), yielding the filtered reference signal:
[
\tilde{\mathbf{x}}(n) = \mathbf{x}(n) * s(n)
]
Step 3: Gradient Expression
Substituting back into the gradient of the cost function:
[
\frac{\partial J(n)}{\partial \mathbf{w}(n)} = 2e(n) \tilde{\mathbf{x}}(n)
]
Step 4: Update Equation
Applying the gradient descent update rule with step size ( \mu ):
[
\mathbf{w}(n+1) = \mathbf{w}(n) - \mu \frac{\partial J(n)}{\partial \mathbf{w}(n)} = \mathbf{w}(n) - 2\mu e(n) \tilde{\mathbf{x}}(n)
]
In practice, for simplicity and convergence considerations, the factor of 2 is often absorbed into ( \mu ), leading to the standard FxLMS update equation:
[
\mathbf{w}(n+1) = \mathbf{w}(n) - \mu e(n) \tilde{\mathbf{x}}(n)
]
Implementation Note
- Since the actual secondary path ( s(n) ) is generally unknown, an estimate ( \hat{s}(n) ) is used to compute the filtered reference signal:
[
\tilde{\mathbf{x}}(n) = \mathbf{x}(n) * \hat{s}(n)
]
Conclusion
By applying backpropagation, we derive the FxLMS algorithm's update equation, which accounts for the secondary path effect through the filtered reference signal ( \tilde{\mathbf{x}}(n) ). This derivation highlights the importance of modeling the secondary path and estimating it accurately for effective ANC performance.
Summary
The FxLMS algorithm update equation derived using backpropagation is:
[
\mathbf{w}(n+1) = \mathbf{w}(n) - \mu e(n) \tilde{\mathbf{x}}(n)
]
where ( \tilde{\mathbf{x}}(n) ) is the reference signal filtered by an estimate of the secondary path, capturing the necessary compensation for the ANC system.
References
- Elliott, S. J. (2001). Signal Processing for Active Control. Academic Press.
- Kuo, S. M., & Morgan, D. R. (1996). Active Noise Control Systems: Algorithms and DSP Implementations. Wiley.
Derivation:
By modeling the ANC system and applying backpropagation, we compute the gradient of the error with respect to the adaptive filter coefficients, accounting for the secondary path, leading to the FxLMS update rule: w(n + 1) = w(n) – μ e(n) · [x(n) filtered by the secondary path estimate].