Beyond Discovery

From the archive

Wavelets Explained: The Math Behind JPEG 2000, Fingerprint Files and More

How a mathematical idea rediscovered in many fields became wavelets, the tool behind FBI fingerprint compression, JPEG 2000, digital cinema and signal cleanup.

By Beyond Discovery 7 min read

A close-up of a digital photograph broken into blocks of pixels at different levels of detail
Image: geralt, Pixabay Content License

A photograph of a forest holds two very different kinds of information. There is the big picture: a dark band of trees, a pale sky, a hillside. And there are the fine details: individual leaves, the sharp edge of a trunk against the light. A good way of describing images, sounds or any other signal ought to capture both at once, without wasting effort.

Wavelets do exactly that. They are a mathematical toolkit for breaking a signal into pieces at several scales, from coarse to fine, while keeping track of where each piece belongs. Since the late 1980s they have been used to shrink the FBI's fingerprint files, to build the JPEG 2000 image standard used in digital cinema, to clean noise from data and to hunt for faint signals in physics experiments.

What makes the story unusual is that the core idea was invented over and over again, in mathematics, physics, engineering and geophysics, by people who did not know about each other's work. Only in the 1980s did a handful of mathematicians realize all these threads were the same idea and weave them into a single theory.

The trouble with sine waves

In 1807 the French mathematician Joseph Fourier claimed that any repeating signal could be built by adding together simple sine and cosine waves of different frequencies. The idea was controversial at first; his full treatment, The Analytical Theory of Heat, appeared in 1822. Fourier analysis went on to become one of the most useful tools in science, underlying everything from radio to MRI scans (see our archive article on the physics behind MRI).

But sine waves have a weakness. Each one stretches on forever, with the same strength everywhere. That is fine for a steady musical note, but awkward for a signal that changes suddenly, like a drum hit, an edge in a photo or a spike in an earthquake record. To represent one brief event with endless waves you need a huge number of them, all carefully arranged so that they cancel out everywhere except where the event happened. The information about when something happened gets smeared across the whole description. Our explainer on the science of sound and music shows how frequency describes pitch; wavelets add the missing "when."

An idea rediscovered many times

A wavelet is, quite literally, a little wave: a short wiggle that rises and falls and then dies away. Instead of using endless waves of different frequencies, wavelet analysis uses one basic wiggle, stretched to different widths and slid to different positions. Wide wavelets capture slow, broad features; narrow wavelets capture sharp, local ones.

Versions of this idea appeared repeatedly during the twentieth century:

  • 1909: Hungarian mathematician Alfred Haar described a set of simple step-shaped functions, now recognized as the first wavelets.
  • 1930s: John Littlewood and Raymond Paley grouped Fourier frequencies into bands an octave wide to study where a function's energy sits.
  • 1946: Dennis Gabor, later a Nobel laureate for holography, analyzed signals with short bursts of waves to capture time and frequency together.
  • 1970s–early 1980s: Engineers developed subband coding for telephone speech, splitting a signal into frequency bands with special "mirror" filters; computer-vision researchers built image "pyramids" at successively coarser resolutions.
  • Early 1980s: Jean Morlet, a geophysicist at the French oil company Elf-Aquitaine, analyzed seismic echoes using short waveforms of constant shape, stretched or squeezed as needed. With the physicist Alex Grossmann in Marseille he put the method on a mathematical footing, and their 1984 paper popularized the name "wavelet."

Our companion page, Before Wavelets Had a Name, looks at these precursors in more detail.

The great synthesis

The French mathematician Yves Meyer heard about Morlet and Grossmann's work in the mid-1980s and recognized that it connected to deep results in pure mathematics. In 1985–86 he constructed smooth wavelets that formed an orthogonal basis, meaning a signal could be broken into wavelet pieces with no redundancy and rebuilt exactly. Meyer received the 2017 Abel Prize, one of mathematics' highest honors, "for his pivotal role in the development of the mathematical theory of wavelets."

Then Stéphane Mallat, working in computer vision, showed with Meyer that wavelets fit naturally into multiresolution analysis: you can split a signal into a coarse version plus details, split the coarse version again, and so on. Crucially, this can be done with simple, fast filtering steps, the same kind engineers had used in subband coding.

The last major piece came from the Belgian-born physicist and mathematician Ingrid Daubechies. In 1987–88 she constructed families of wavelets that are smooth, orthogonal and compactly supported, meaning each wavelet is exactly zero outside a short interval. That combination made wavelets practical to compute. Daubechies received the 2023 Wolf Prize in Mathematics, the first woman to win it in that field.

How wavelets work: a worked example

The simplest wavelet, Haar's, needs nothing more than averages and differences. Take four numbers, perhaps the brightness of four neighboring pixels in a row:

9, 7, 3, 5

  1. Pair them up and average: (9 + 7) ÷ 2 = 8 and (3 + 5) ÷ 2 = 4. This is a half-size, blurrier version of the row.
  2. Record the details: how far each pair is from its average: 9 − 8 = 1 and 3 − 4 = −1.
  3. Repeat on the averages: (8 + 4) ÷ 2 = 6, with detail 8 − 6 = 2.

The row is now stored as 6, 2, 1, −1: one overall average, one coarse detail and two fine details. Nothing is lost; you can rebuild the original by adding and subtracting: 6 + 2 = 8 and 6 − 2 = 4; then 8 ± 1 gives 9 and 7, and 4 ∓ 1 gives 3 and 5.

Here is where compression comes in. In real images, most neighboring pixels are similar, so most detail numbers are close to zero. Suppose we decide that details of size 1 or less are too small to notice and set them to zero: 6, 2, 0, 0. Rebuilding gives 8, 8, 4, 4, close to the original, but now half the stored numbers are zero, and long runs of zeros can be stored very compactly. Big, important details (like edges) survive; tiny ones are dropped.

9 7 3 5 8 4 1 −1 6 2 fine details coarse detail average
A Haar wavelet transform of four numbers. Blue boxes are averages at each scale; orange boxes are the details needed to rebuild the level above.

Real systems use smoother wavelets than Haar's, work in two dimensions and repeat the process over many levels, but the principle is the same: separate the picture into "forest" and "trees," then keep only the trees that matter.

Fingerprints, film and cleaner data

Fingerprints. By the early 1990s the FBI held paper fingerprint cards for many millions of people and wanted to digitize them. Standard JPEG compression of the time broke images into small blocks, producing artifacts that could obscure the fine ridge detail examiners rely on. In 1993 the FBI adopted the Wavelet/Scalar Quantization (WSQ) standard, developed with the Los Alamos National Laboratory and the National Institute of Standards and Technology. It typically compresses fingerprint images by around 15 to 1 while preserving the details that matter for identification.

JPEG 2000. The international image standard JPEG 2000, whose core part was published in 2000, is built on wavelets, including a family of smooth wavelets related to Daubechies's work. It supports both lossless and lossy compression and lets a single file be decoded at many resolutions. JPEG 2000 has not replaced ordinary JPEG for everyday photos, but it is widely used where quality matters: the Digital Cinema Initiatives specification uses it to deliver feature films to cinemas, and it is common in medical imaging and digital archives.

Cleaning noisy data. In the early 1990s statisticians David Donoho and Iain Johnstone at Stanford showed that "shrinking" small wavelet coefficients is a powerful, theoretically sound way to remove noise from signals and images while keeping sharp edges.

Where wavelets are used today

Wavelet methods are now standard tools in signal processing, statistics, geophysics and medical imaging. When the LIGO detectors first observed gravitational waves in 2015, one of the analysis pipelines used to spot short bursts in the data was based on wavelets, a link highlighted in Meyer's Abel Prize citation. Researchers also use wavelets to study climate records, heartbeats and brain signals, anywhere that both slow trends and sudden events matter.

The deeper lesson concerns how ideas travel. Haar's functions, Gabor's wave packets, telephone engineers' filters and Morlet's seismic wiggles were all pieces of the same puzzle. It took mathematicians willing to look across disciplines to see the connection, and once they did, the unified theory was more powerful than any of the pieces. Computers made the payoff possible; our article on how computers evolved traces that side of the story.

Key ideas

  • Fourier analysis describes signals by frequency but loses track of when things happen; wavelets capture both scale and position.
  • The idea was rediscovered many times before Morlet and Grossmann's 1984 paper made "wavelet" the standard name.
  • Meyer, Mallat and Daubechies turned scattered techniques into a unified theory with fast algorithms in the late 1980s.
  • Wavelets compress fingerprints (FBI WSQ, 1993) and images (JPEG 2000), remove noise and help find faint signals.

Try it yourself: Write down eight numbers, such as daily temperatures for a week and a day, and apply the averaging and differencing steps three times. Which detail numbers are small enough to drop? Rebuild the list and see how close you get.

Sources and further reading