Noise Cancellation Technology

How Adaptive Noise Control Algorithms Work

Adaptive ANC retunes itself from the leftover noise thousands of times a second. Here is the filtered-x LMS loop, the step size tradeoff, and its limits.

Adaptive noise control algorithms retune themselves continuously by comparing what they produced with what is left over. An error microphone measures the residual noise, and a filter adjusts its coefficients thousands of times a second to drive that residual toward zero. This is what lets one pair of headphones handle an aircraft cabin, a train and an office without any setting being changed.

A fixed filter can only cancel the exact noise it was designed for, in the exact acoustic conditions it was tuned in. Real environments change constantly, and so does the fit of a headphone on a head. Adaptation is what closes that gap.

The feedback loop at the center of it

Three signals define the system. The reference signal is the incoming noise, picked up before it reaches the ear. The control signal is what the system generates to cancel it. The error signal is what an internal microphone still hears after cancellation.

The algorithm’s only job is to make the error signal as small as possible. It does not need to know what the noise is, where it came from, or what it sounds like. It adjusts, measures the result, and adjusts again.

That structure is what makes the approach general. The same algorithm handles engine drone, ventilation rumble and road noise without being told which is which, because all it ever sees is a residual it is trying to reduce.

How the filter updates

The standard method is least mean squares, which adjusts each filter coefficient by a small amount in the direction that reduces the error, repeated at every sample. It is computationally cheap, which matters when the whole processing budget is measured in microseconds.

Noise control uses a variant called filtered-x LMS, and the reason is worth understanding. The control signal does not go straight into the error microphone. It passes through a digital to analog converter, an amplifier, the driver and a short acoustic path, all of which add delay and change its frequency response. That chain is called the secondary path.

If the algorithm ignores the secondary path, it computes corrections based on a signal that no longer resembles what actually arrived, and the loop becomes unstable and oscillates. Filtered-x LMS passes the reference through a model of the secondary path before using it to update the filter, which keeps the maths aligned with physical reality.

Building that model is a design task in itself. Many systems measure it once at the factory, and better ones estimate it continuously during use, which is how a headphone compensates when you put glasses on and break the seal.

The step size tradeoff

One parameter controls how far the filter moves on each update, and it decides the character of the whole system.

A large step size adapts quickly to changing noise but overshoots, leaving a persistent residual and risking instability. A small step size converges to a better final result and takes longer to get there, which shows up as cancellation that takes a second or two to settle after the environment changes.

Normalized LMS scales the step size against the current signal power, which stops loud noise causing wild swings and quiet noise causing sluggish adaptation. Most commercial implementations use some form of this, and the tuning of it is a large part of what separates good ANC from mediocre ANC at the same hardware cost.

What adaptation actually buys you

Changing environments, first. Walking from a street into a subway station changes the noise spectrum completely, and an adaptive system retunes within a second or two.

Fit variation, second, and this is bigger than most people realize. Ear shape, glasses, hair and how firmly a headphone sits all change the acoustic path by amounts that would ruin a fixed filter. Adaptive systems measure the result at your ear and correct for it, which is why current headphones perform more consistently across different people than earlier generations did.

Component drift, third. Drivers and microphones change slightly with temperature and age, and continuous adaptation absorbs that without recalibration.

What adaptation does not change

The frequency ceiling stays where it is. Cancellation requires generating an opposing wave within a fraction of a cycle, and above roughly 1 kHz there is not enough time in the processing chain regardless of how clever the algorithm is. Our explainer on phase shifting in noise cancellation covers that limit in detail.

Unpredictable noise stays hard. Adaptive filters work by finding structure in a signal, and a door slamming has none. By the time the system has adapted, the event is over.

And the physical constraints remain. A poor seal lets high frequency noise in that no algorithm can address, because the noise reaches the ear through a path the system is not measuring.

The same algorithms elsewhere

Car cabins use exactly this structure, with microphones in the headliner and the car’s own speakers as the control source, adapting to engine speed and road surface. Engine order information from the vehicle bus is often fed in as a reference, which gives the system advance knowledge of the dominant frequency and makes the adaptation far easier.

Industrial duct silencers, active headrests and vibration control on machinery all use the same loop. In every case the useful range is where the wavelength is long compared with the distance between the source, the control speaker and the point being protected.

Frequently asked questions

What is adaptive noise control?

A system that adjusts its own cancellation filter continuously based on how much noise is left over. An error microphone measures the residual, and an algorithm updates the filter thousands of times a second to reduce it. Because it works from the residual rather than from a stored model of the noise, the same system handles many different environments without being reconfigured.

What is the filtered-x LMS algorithm?

A version of the least mean squares algorithm adapted for acoustic control. The correction signal has to travel through a converter, an amplifier, a driver and a short air path before it reaches the error microphone, and that chain adds delay and changes the signal. Filtered-x LMS passes the reference through a model of that path before using it to update the filter, which keeps the system stable.

Why does noise cancellation take a moment to adapt?

Because the filter converges in small steps rather than jumping to the answer. A larger step size would adapt faster but overshoot and leave a worse final result, so designers choose a compromise that settles within a second or two. What you hear as ANC catching up after you enter a new environment is that convergence happening.

Does adaptive ANC work better than fixed ANC?

Yes, in real use. A fixed filter is tuned for one noise spectrum and one acoustic path, and any deviation from that, including a different ear shape or a broken seal, degrades it. An adaptive system measures the actual residual at your ear and corrects for whatever it finds. The frequency range it can address is unchanged, since that is set by physics rather than by the algorithm.

Related reading

More on Noise Cancellation Technology