Every time you put on noise-cancelling headphones, a small algorithm is running dozens of thousands of times per second with one goal: subtract the hum before it reaches your ears. It does not have a recording of the noise. It does not know the signal it is protecting. It learns on the fly.
The key idea is correlation. Engine rumble, electrical hum, and ventilation roar share a crucial property: a microphone placed near the noise source picks up almost the same interference that will contaminate the signal microphone a moment later. If you can model how the noise travels from one point to the other — the so-called noise path — you can generate a near-perfect copy and subtract it.
The LMS (Least Mean Squares) algorithm, introduced by Bernard Widrow and Marcian Hoff in 1960, does exactly this. It maintains a short filter whose weights it nudges a tiny step in the direction that reduces the error between the combined signal and zero. Step by step, iteration by iteration, the filter converges — and the hum disappears. This is adaptive filtering: a solved problem with a clean algorithm that works in real time.
Comments
Loading comments...