TL;DR
An intrinsic mode function (IMF) is one piece of a signal that wiggles around zero, with one wave per cycle and no slow trend hidden under it. Two tests define it: the number of turning points and the number of zero crossings differ by at most one, and the average of the curves through the peaks and the troughs is zero at every moment. A piece that passes both tests has a frequency that means something at each instant.
Builds on: Instantaneous Frequency, Cubic Spline Interpolation · Leads to: Empirical Mode Decomposition
Where it's used
Vibration diagnosis of rotating machines. A gearbox or bearing rings at frequencies that follow its speed, and a crack adds short bursts. Splitting a recording into IMFs puts the speed-driven tone and the bursts into different pieces. Each piece is close to a single tone, so an engineer can read its frequency over time and see which part moves with speed.
Ocean, climate and river records. A sea-level or river-flow series mixes fast waves, a seasonal cycle and a slow multi-year trend. Decomposing it into IMFs gives one piece per time scale, and the slowest piece is the trend. Researchers compare the same piece across years to see whether a cycle has shifted.
Speech and music analysis research. A sung note with vibrato, or a voice whose pitch slides, contains a tone that changes all the time. Taking the IMF that holds that tone lets a researcher follow its pitch moment by moment, instead of getting one average frequency for the whole sound.
How it works
Follow one tiny record from a raw signal to a piece that passes both tests. The record is for : a one-cycle-per-second wave sitting on a constant height of 2.
- Start with a tone on an offset. Evaluate the signal at two times. At , . At , . Check: the wave swings between 1 and 3, centred on 2.
- Find the peaks and troughs. Count only what lies inside the record, including its two ends. Peaks are at with height 3. Troughs are at with height 1. Check: five turning points in total.
- Draw the envelopes. Pass a smooth curve through the peaks to get the upper envelope , and another through the troughs to get the lower envelope . Every peak is at height 3, so . Every trough is at height 1, so . Check: both envelopes are flat lines.
- Take the mean of the two envelopes. The mean is . Check: this is exactly the offset we saw in step 1.
- Subtract the mean. The candidate is . Check: now swings between and around zero.
- Test the two conditions. On , has five turning points (at 0, 0.5, 1, 1.5, 2). Its zero crossings are at 0.25, 0.75, 1.25 and 1.75, four in all. Five and four differ by one, so the first test passes. The envelopes of are the flat lines , whose mean is 0, so the second test passes. Check: is an IMF.
- Read its frequency. The phase of is , which gains per second, so the frequency is 1 cycle per second. Check: this is the tone we started with. The offset did not change it.
- y, the record
- h, the candidate
- mean
The seven steps are one pass of a loop that the Empirical Mode Decomposition lesson repeats until the candidate passes:
flowchart LR
A[Candidate signal] --> B[Find peaks and troughs]
B --> C[Upper and lower envelopes]
C --> D[Mean of the two envelopes]
D --> E[Subtract the mean]
E --> F{Both tests pass}
F -- no --> A
F -- yes --> G[Intrinsic mode function]
The math
A function on a record is an intrinsic mode function when two conditions hold. First, the number of extrema and the number of zero crossings differ by at most one. Second, the mean of its upper and lower envelopes is zero at every time. Together they say the function oscillates around zero with one wave per cycle, with no slow trend riding underneath.
Step 2 in symbols: counting the turning points
Let be the number of extrema (peaks and troughs) of on the record, and the number of times crosses zero. For the walkthrough candidate, and .
Step 3 in symbols: the envelopes and the mean
Let be the cubic spline through the points at the peaks, and the cubic spline through the troughs. The mean of the envelopes is
The candidate after one subtraction is .
Steps 5 and 6 in symbols: the two tests
For on , the first test gives . Both envelopes are , so everywhere.
Step 7 in symbols: why the frequency is well defined
For an IMF , form its analytic signal , where is the Hilbert transform (the Analytic Signal lesson builds this). Write it as , with amplitude and phase . The instantaneous frequency is
For , the Hilbert transform is , so and . The first test keeps the wave from hiding extra turns inside one cycle, and the second keeps a slow trend out of the phase. Together they make a single, readable possible. Without them the phase can jump around and the frequency reading is not meaningful.
Worked examples
- Take the signal on .
- Turning points: peaks at with height 3, and troughs at with height . That is 5 extrema.
- Envelopes: every peak is at 3, so . Every trough is at , so .
- Mean of the envelopes: at every time. The second test passes.
- Zero crossings: at , which is 4. Then , so the first test passes.
- Both tests hold, so is an IMF. Its amplitude of 3 does not matter. The test looks only at the shape and at the balance of the envelopes.
- Take on , which is two full cycles.
- Interior extrema are at . That is 4 extrema. The two ends are zeros of the sine, not turning points, so they do not count as extrema.
- Zero crossings in the record, ends included: . That is 5.
- Then , so the first test passes.
- Every peak is at and every trough is at , so the envelopes are the constant lines and their mean is 0. The second test passes.
- So is an IMF. Its phase is , so cycles per unit of .
A sensor on a motor records over one second, . The 2 is a sensor offset. The 0.5 cosine is a speed-driven tone with 3 cycles per second.
- Turning points. Peaks where are at , four peaks at height . Troughs where are at , three troughs at height .
- Envelopes: and , both flat.
- Mean of the envelopes: . That is the sensor offset.
- Subtract it: the candidate is .
- Turning points of on : . Zero crossings solve , so . The values inside the record are , giving 6 crossings. Then , so the first test passes, and the envelopes are with mean 0, so the second passes.
- Try it: what is the instantaneous frequency of , in cycles per second? Answer: 3. The phase is , so and .
Common mistakes and tradeoffs
It is tempting to think that an IMF is a band of frequencies, such as "the part between 2 and 5 cycles per second." In fact an IMF is defined by its shape and its envelopes, not by a frequency window, because the second test looks at the envelope mean at every moment. A wave can be strongly non-sinusoidal, with sharp peaks and flat troughs, and still be an IMF if both tests pass.
It is tempting to think that a record whose overall average is zero must be an IMF. In fact the second test is local. A trend that climbs from to over the record makes the local mean climb with it, so the record averages to zero overall yet has a local mean far from zero at most times.
It is tempting to think that the instantaneous frequency of any IMF is a real physical frequency. In fact it is trustworthy only when the wave is close to one tone. Messy waves in which two tones merge into one piece, a problem called mode mixing, can give a frequency that jumps.
Use the IMF idea when the signal is non-stationary (its frequency changes over time) and you do not want to fix the sine shapes in advance. Do not use it for steady tones that a Fourier transform handles cleanly, or for very short noisy records where the peaks and troughs are unreliable. In practice the second test is approximate, so the decomposition needs a stopping rule.
| Tool | Basis functions | Good at | Weak at |
|---|---|---|---|
| Fourier transform | Fixed sines and cosines | Steady tones | Frequency that changes over time |
| Wavelet transform | A fixed shape, scaled and shifted | Sudden changes | Choosing the shape in advance |
| IMF decomposition | Learned from the data | Changing frequency, no fixed basis | No exact uniqueness, mode mixing |
History
Before the late 1990s, most time-frequency tools used bases fixed in advance: sines and cosines in the Fourier transform, or a chosen wavelet shape. Those choices either spread a sudden change across the whole spectrum or assumed a structure the signal might not have. In 1998 Norden E. Huang and co-authors published the empirical mode decomposition in Proceedings of the Royal Society A, defining intrinsic mode functions and pairing them with a frequency measure from the Hilbert transform, which they called the Hilbert spectrum. The idea spread through geophysics, engineering and biomedical research. Later work addressed its weak points, especially mode mixing and the noise sensitivity of the repeated subtraction step.
Recap
- A candidate piece is an IMF when its turning points and zero crossings differ by at most one, and its envelope mean is zero at every time.
- The envelopes come from cubic splines through peaks and troughs. Subtracting their mean centres the candidate on zero.
- For an IMF, the phase of the Analytic Signal gives one instantaneous frequency that can be read at each time.
- Next, Empirical Mode Decomposition repeats the subtraction until a piece passes both tests, and then peels it off.
Check yourself
QuestionRecall: what are the two tests an intrinsic mode function must pass?Show answer
First, the number of extrema and the number of zero crossings differ by at most one. Second, the mean of the upper and lower envelopes is zero at every time. The first test limits the wiggles per cycle. The second removes any slow trend riding underneath.
QuestionCompute: the record on is passed through one sifting step. What is the mean of its envelopes?Show answer
The peaks are at height and the troughs at height . The envelopes are the flat lines 5 and 3, so their mean is .
QuestionWhy: the record on averages to zero over the whole record. Why is that not enough to make it an IMF?Show answer
The second test is local: the envelope mean must be zero at every moment. The added drift climbs from to , so the local mean follows it and is away from zero at most times. An overall average of zero does not make the local mean zero.
QuestionApplied: a seismometer record shows a steady sinusoid riding on a slow upward ramp, and you want the sinusoid's frequency. Should you read the frequency from the raw record, or first remove the ramp and test the candidate? Why?Show answer
Remove the ramp first, by taking the envelope mean and subtracting it, then run both tests. Only a candidate that passes can be read as one meaningful instantaneous frequency. Reading the raw record would let the ramp distort the phase, so the reading would not describe the sinusoid.
Sources
- Huang et al., "The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis," Proceedings of the Royal Society A, 1998: https://doi.org/10.1098/rspa.1998.0193
- "Hilbert–Huang transform" on Wikipedia: https://en.wikipedia.org/wiki/Hilbert%E2%80%93Huang_transform