The first time I wore noise-cancelling headphones on an aeroplane, I took them off again almost at once, to check that the engines were still running. They were. The roar I had stopped noticing an hour into the flight was enormous. I put the headphones back on and it folded away to a faint hiss.
What surprised me, as someone who works with sound, was that I could still hear the person beside me asking whether I wanted coffee. The headphones had removed a noise of over 80 decibels and left a quiet human voice. I wanted to understand why, and the answer turned out to involve some elegant engineering.
The principle
Sound is a variation in air pressure, slightly above normal and then slightly below, many times a second. Two sounds arriving at the same point simply add.
If one wave is at its peak just when another, equal in size, is at its trough, the sum is zero. The pressure does not change, and there is nothing to hear. This is destructive interference.
The idea of exploiting it is old. A German physicist, Paul Lueg, was granted a patent in 1936 describing how to cancel sound in a duct by using a microphone and a loudspeaker to produce the inverted wave. The electronics of the day could not do it.
The practical history begins on an aeroplane too. In 1978 Amar Bose, founder of the audio company that bears his name, was given a pair of airline headphones on a flight to Zurich and found he could hardly hear the music over the engines. He is said to have worked out the basic mathematics before landing. The company spent more than a decade on it, and its first products went to pilots. Consumer versions followed around 2000.
Why it is difficult
The anti-noise must be equal to the noise and exactly opposite. If its size is wrong by a tenth, a tenth of the noise remains. If its timing is wrong, the two no longer cancel, and with a large enough error they reinforce each other and the noise gets louder.
Timing is what limits the whole system. Consider a tone at 100 hertz. Each cycle lasts ten milliseconds. An error of a quarter of a millisecond is a small fraction of a cycle and the cancellation is still good.
Now a tone at 2,000 hertz. Each cycle lasts half a millisecond. The same quarter-millisecond error is half a cycle, which turns cancellation into doubling.
Measuring the sound, calculating the response and moving the loudspeaker cone all take time. That delay is fixed, so it matters little at low frequencies and is ruinous at high ones. This is the reason active cancellation works on low-pitched sound.
There is a second, geometric reason. A low-frequency wave is metres long, so the pressure is nearly the same everywhere inside an ear cup, and cancelling it at one point cancels it at the eardrum. A high-frequency wave is a few centimetres long. The pressure varies across the cup, and silence at the microphone may not be silence at the ear.
In practice, active cancellation is effective below about 1,000 hertz and best below a few hundred.
Two kinds of microphone
Headphones use two arrangements, and the good ones use both.
Feedforward. A microphone on the outside of the ear cup hears the noise before it gets in. The electronics predict what the noise will be when it arrives at the ear, a fraction of a millisecond later and altered by passing through the cup, and play the inverse.
The advantage is the head start. The drawback is that the system is acting on a prediction. It never hears the result. If the headphones fit differently today, the prediction is off and it has no way of knowing.
Feedback. A microphone inside the cup, beside the loudspeaker, hears what actually reaches the ear: the leftover noise. The electronics drive the speaker so as to push that signal towards zero.
The advantage is that it corrects for whatever is really happening. The drawback is that it has no head start, since it is reacting to sound that has already arrived, and a feedback loop with a delay in it can become unstable and howl.
Hybrid systems combine the two. The outer microphone does the bulk of the work, and the inner one cleans up the remainder and tells the system how well it is doing.
The adaptive filter
Here is the part I find most satisfying.
The noise picked up outside is not the noise that arrives inside. On the way it passes through the plastic of the cup and the foam of the cushion, round any gap where the seal is poor, and through the air inside. Each frequency is weakened and delayed by a different amount. This transformation depends on the shape of the wearer's head and ear, on spectacles, on hair, and on how the headphones were put on a moment ago.
To cancel properly, the electronics must apply the same transformation to the outside signal before inverting it. They need a model of the path, in the form of a digital filter. And since the path is different for every person and changes whenever the headphones move, the filter cannot be fixed at the factory.
The solution dates from 1960. Bernard Widrow and Ted Hoff, at Stanford, devised a simple procedure called the least mean squares algorithm. It adjusts the filter continuously using the error signal from the inside microphone.
In words: at every sample, look at the leftover noise. For each coefficient of the filter, ask whether nudging it up or down would have made that leftover smaller. Nudge it slightly in that direction. Repeat tens of thousands of times a second.
The filter never needs to be told what the path is. It finds out by trying to make the error small. If you shift the headphones, the error rises, and within a fraction of a second the filter has drifted to the new best setting.
This is learning by gradual correction, and it is the direct ancestor of the method by which neural networks are trained. Widrow and Hoff were working on an early neural network when they devised it. Hoff went on to co-invent the microprocessor.
Engines and voices
This now explains my observation on the aeroplane.
Engine and road noise is low-pitched, where cancellation works, and it is steady. A constant drone is perfectly predictable: the next cycle is like the last. The adaptive filter has all the time it needs to settle on a precise answer. Reductions of 20 to 30 decibels at low frequencies are typical, which is a hundredfold to a thousandfold reduction in sound power.
Speech has much of its energy between a few hundred and a few thousand hertz, largely above the range where cancellation is effective. It also changes constantly and unpredictably. A consonant is over before the filter can adapt to it.
So the headphones removed the part of the cabin noise that was low and regular, and passed what was higher and irregular.
Sudden sounds, such as a door slamming or a dropped plate, come through for the same reason.
The high frequencies are dealt with by other means: the mass of the ear cup and the seal of the cushion block them physically. This is passive isolation. It is good at high frequencies and poor at low ones, the exact reverse of the active system. The two complement each other, and an over-ear headphone with a good seal is really two noise-reduction systems covering different halves of the range. A poor seal lets in low frequencies and undoes much of the active system's work, which is why fit matters so much.
Side effects
Some people feel pressure in the ears with cancellation switched on, a sensation like descending in an aeroplane. No pressure is actually present. The likely explanation is that the brain interprets the sudden absence of low-frequency sound as a sign of a pressure change, which is what usually causes that particular muffling.
Wind causes trouble. It creates turbulence directly at the outer microphone that is not sound in the surrounding air, and the system tries to cancel something that is not there, producing a rumble. Good headphones detect wind and reduce the feedforward path.
With no noise to cancel, a faint hiss from the electronics can be heard.
The same system run backwards
Transparency mode uses the same microphones for the opposite purpose. The outside sound is picked up and played into the ear, with an adaptive correction so that it sounds natural and not like listening through a cupboard door. The headphones can then pass speech and suppress the drone, or allow sudden loud sounds through in softened form.
The latest designs add machine learning on top. A small neural network classifies what the microphones hear, such as speech, traffic, wind or a siren, and decides what to cancel and what to pass. Research systems have shown a listener choosing a particular class of sound to hear, or a particular person's voice to follow in a crowd.
Outside headphones
Active cancellation has been applied wherever the noise is low and regular. Aircraft with propellers use loudspeakers in the cabin trim to quieten the blade tone. Many cars now cancel engine drone and road rumble through the audio system. Ventilation ducts, the original setting of Lueg's patent, are a natural application.
Cancelling noise throughout an open room is far harder, for the geometric reason given earlier. Silence can be created at particular points, and elsewhere the sound is reinforced.
A caution
Cancellation lowers the background and so allows music to be played more quietly, which is a real benefit for hearing. It also removes awareness. Traffic is exactly the sort of low, steady noise these systems are best at removing, so they are a poor choice when walking or cycling near roads.
On the next flight I listened for the join between the two systems. Lift one cushion slightly, and the rumble floods back in while the hiss of the air vents stays the same. The foam was stopping the hiss, and the adaptive filter was dealing with the rumble by correcting itself several thousand times a second.



