FxLMS Active Noise Control

Simulation
Introduced by
Bernard Widrow, Samuel Stearns
Year
1975
Type
Adaptive noise cancellation algorithm
Family
Signal processing, Adaptive filtering

What does it do?

The Filtered-x Least Mean Squares (FxLMS) algorithm is an adaptive filter used in active noise control (ANC) systems.

It generates an anti-noise signal from a reference microphone signal so that the anti-noise cancels unwanted sound at a target point. Its filtered-reference structure accounts for the acoustic path between the loudspeaker and the error microphone, which distinguishes it from a plain LMS filter.

The intuition behind the method

Imagine a loudspeaker that emits an anti-sound with the opposite waveform to the incoming noise, so that the two cancel by destructive interference. FxLMS approximates this: a reference microphone picks up the noise before it reaches the listener, and the filter produces the anti-noise from that signal. The difficulty is that the anti-noise must travel through the loudspeaker-to-error-microphone path, which changes the signal the filter has to match, so the algorithm must account for that path. An error microphone at the target location supplies feedback, and the filter coefficients are updated continuously to reduce the measured residual noise.

History

FxLMS is a development of the least mean squares adaptive filter for active control. Its distinguishing feature is that the reference is filtered by a model of the secondary path before it enters the weight update, which the plain LMS algorithm does not include. Adaptive filters are now applied to active acoustic cancellation in headphones, aircraft and automotive cabins, and industrial plant, and the filtered-reference structure is a standard single-channel form for narrowband control.

When to use it

Choose FxLMS when the noise is largely tonal, periodic or narrowband and concentrated at low frequencies, such as engine components in aircraft or road cabins or hum from ventilation plant, and when passive absorption is bulky or ineffective in that range. The method needs a reference signal that is well correlated with the noise at the error microphone, an estimate of the secondary path and hardware with low processing latency. Do not choose it for broadband noise such as rain or wind, for noise that has no usable reference, where the acoustic path is strongly nonlinear or changes faster than the estimate can follow, or where the required latency cannot be met. In those cases, passive treatment or a multichannel or hybrid design should be considered.

Limitations and considerations

  • Causality: the controller must generate anti-noise from the reference before the noise reaches the error microphone. Long acoustic separation between the reference and error sensors reduces the time available and limits effectiveness; the allowable spacing depends on the hardware, the signal processing delay and the frequency range.
  • Secondary path dependence: the update uses a secondary path estimate, so a mismatch can cause instability or amplification of the noise instead of cancellation. A fixed estimate does not follow changes in the loudspeaker or microphone response.
  • Narrowband focus: a single-channel controller is effective mainly for narrowband or tonal noise. Broadband control requires multiple reference and error channels, which raises complexity.
  • Sensor requirements: reference and error microphones are both required, and their placement and spacing strongly affect the correlation between them and the stability of the loop.
  • Nonlinear behaviour, such as loudspeaker saturation at high sound pressure levels, and noise components that are absent from the reference signal are not handled by the linear FxLMS update.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Well suited to tonal and periodic low-frequency noise, where a reference signal can predict the disturbance and passive absorbers are inefficient.
  • The controller is a short adaptive FIR filter updated sample by sample with an LMS-type gradient step, so the per-sample computation is modest and the method can run on embedded DSP hardware.
  • The filtered-reference structure explicitly accounts for the secondary path, which a plain LMS filter does not do, and this is what makes practical loudspeaker-based control feasible.
  • The filter tracks slow changes in the noise or the acoustic environment without redesign, provided the secondary path estimate remains reasonably accurate.
  • The controller is compact, which suits small systems such as headphones and small enclosures where large passive absorbers would be impractical.

Applications

  • Noise-cancelling headphones and earbuds, reducing low-frequency ambient noise during travel or in offices.
  • Aircraft cabin and cockpit noise control, targeting low-frequency engine and airframe noise.
  • Automotive interior acoustics, targeting road and engine rumble, particularly below 500 Hz.
  • Industrial noise control near compressors and ventilation plant, where passive absorption is limited by available space.

How it works

How it works

1

Place a reference microphone close to the noise source so that it picks up the noise before it reaches the listener. Place an error microphone at the location where the noise should be reduced, such as near the ear, and connect a loudspeaker that emits the anti-noise. The reference must be well correlated with the noise at the error microphone, which is why sensor placement matters.

2

Calibrate the microphones and the loudspeaker, then measure the acoustic transfer path from the loudspeaker to the error microphone, usually called the secondary path. The update depends on an estimate of this path, so an inaccurate measurement affects both stability and performance.

3

Record the reference signal, which is the input to the adaptive filter, and the error signal from the error microphone. The filter output is a weighted sum of recent reference samples, and the error signal indicates the residual noise remaining at the target point.

4

Adapt the filter weights by gradient descent on the error power, but use the reference filtered through the secondary path estimate in place of the raw reference. Let w(n) be the vector of L adaptive filter coefficients, and let x(n) be the vector of the L most recent reference samples, so that the anti-noise is the weighted sum y(n) = w(n)^T x(n). Let e(n) be the error-microphone signal, which is the residual noise at the target point. Form the filtered reference x'(n) = s_hat * x(n), the convolution of the reference with the secondary path estimate s_hat. The weights are then updated as w(n+1) = w(n) - mu * x'(n) * e(n), where mu is the step size. This filtering is the 'x' in FxLMS. It compensates the gradient for the filtering the anti-noise undergoes before it is measured, which is needed for stable adaptation. The update is valid when the secondary path estimate is reasonably accurate, the path is approximately linear and time-invariant over the adaptation period, and the step size is small enough for the loop to remain stable.

5

Assess the noise reduction in decibels as a function of frequency, the convergence behaviour (how quickly the coefficients settle), the residual error power and the computational load of the implementation. Read the error power over time: a decrease that levels off indicates convergence, whereas growth or sustained oscillation indicates instability, often caused by an inaccurate secondary path or an excessive step size. Compute the reduction in each frequency band as 10 log10 of the error power divided by the uncontrolled noise power, which shows where cancellation occurs and whether amplification occurs at other frequencies. Confirm that the coefficients remain bounded. A reduction is successful when it meets the target for the application, such as the improvement in signal-to-noise ratio or speech intelligibility in the relevant environment. Results apply only to the measured conditions, because changes in geometry, temperature or the acoustic field alter the secondary path.

Common pitfalls

  • Inadequate reference placement: the reference must capture the noise before it reaches the error microphone. Poor placement reduces the correlation between the two signals and the attainable reduction.
  • Neglecting the secondary path: an inaccurate secondary path model can cause instability, so the path should be measured or estimated carefully for the actual hardware.
  • Poor step size choice: a large step size speeds convergence but can destabilise the loop, while a small one slows learning. The step size must stay below a stability bound that depends on the filter length and the power of the filtered reference, so it should be checked against the measured secondary path and the noise statistics rather than set by trial alone.
  • Ignoring latency: delay in the audio chain adds to the secondary path, and if the controller does not account for it, the loop may diverge.
  • Assuming the method works in all acoustic fields: diffuse or multipath environments reduce the coherence between the reference and error signals, so performance should be tested in representative conditions before deployment.

Frequently asked questions

Why is the secondary path so important in FxLMS?

The secondary path is the acoustic transfer function from the loudspeaker to the error microphone, and it determines how the anti-noise signal reaches the point where the error is measured. The update must account for this path to adjust the filter in the right direction. An inaccurate secondary path estimate can cause the algorithm to diverge or to amplify the noise instead of cancelling it.

What frequency range can FxLMS effectively control?

FxLMS is mainly applied to low-frequency and tonal noise, typically below 500 Hz. As frequency rises, wavelengths shorten and the causality and spacing constraints become tighter, so the control bandwidth is limited. There is no single fixed upper frequency limit; the practical bandwidth depends on the sensor geometry, the processing latency and the secondary path, and should be determined for each system.

How long does FxLMS take to converge and adapt to changing noise?

Convergence speed depends on the step size, the filter length and the statistics of the reference and error signals. A larger step size converges faster but can destabilise the loop. Slowly varying noise can be tracked if the adaptation rate is adequate for its rate of change. Fast transients, such as impacts, may not be cancelled, because the controller cannot respond before they arrive.

Can FxLMS cancel broadband noise like rain or wind?

FxLMS is less effective for broadband noise because a single reference signal cannot predict all the frequency components of wideband noise. Multichannel systems with multiple reference microphones and adaptive filters can improve broadband control, but the computational cost increases. For broadband noise, passive absorption or hybrid passive-active systems are often more practical.

What happens if the reference and error microphones are too far apart?

Greater spacing increases the acoustic propagation delay between the reference and error sensors. Because the controller cannot respond to noise before it arrives, the delay constrains causality and limits the control bandwidth. The acceptable spacing depends on the hardware, the processing latency and the frequency range of interest, so it should be checked for each system rather than taken from a fixed rule.

Related methods

Sources

  1. Widrow, B., & Stearns, S. D. (1975). Adaptive signal processing for active vibration and noise control. IEEE Transactions on Acoustics, Speech, and Signal Processing, 23(5), 440–453.

    Open DOI reference
  2. Eriksson, L. J., Allie, M. C., & Greiner, R. A. (1988). The selection and application of an IIR adaptive filter for use in active sound attenuation. IEEE Transactions on Acoustics, Speech, and Signal Processing, 36(11), 1879–1891.

    Open DOI reference
  3. Kuo, S. M., & Morgan, D. R. (2002). Active Noise Control Systems: Algorithms and DSP Implementations. John Wiley & Sons.

    ISBN: 978-0-471-49663-5