Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Sheet music for any sound
Sheet music shows which notes play when: time runs left to right, pitch goes up the page. A spectrogram draws the same picture for any signal: a jet engine spinning up, a bat’s call, a satellite’s vibration. It’s made by chopping the signal into short overlapping slices and finding the frequencies in each one. Short slices tell you exactly when; long slices tell you exactly which pitch. You can’t have both at once.
Machinery health monitoring, radar micro-Doppler (spotting drone propellers), speech recognition front ends, seismic and structural monitoring and RF spectrum monitoring all start from a spectrogram. Many neural networks for audio and vibration take spectrograms as their input images.
- 1. A spectrogram shows…
- 2. Short analysis windows are good at locating…
- 3. Can a spectrogram be perfectly sharp in both time and frequency?
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The STFT
Here w is a window of length N (Hann is the usual choice) and H is the hop. The spectrogram is , usually shown in dB.
Resolution
- Frequency bin spacing: .
- Window duration: .
- So : halving one doubles the other.
Overlap is typically 50–75% (H = N/2 to N/4).
- 1. Bin spacing for fs = 1000 Hz, N = 250:
- 2. Window duration for N = 256 at fs = 1024 Hz:
- 3. To separate tones 10 Hz apart you need Δf…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Perfect reconstruction: overlap-add
If the shifted analysis and synthesis windows satisfy , inverse-FFT each frame, multiply by the window, overlap-add, and normalize by . This recovers x exactly. A periodic Hann at 75% overlap works. This enables time–frequency editing: denoising, source separation and phase vocoders.
Ridges and instantaneous frequency
For a tone with slowly varying frequency, the spectrogram’s peak (ridge) follows . Parabolic interpolation of the log-magnitude around the peak gives sub-bin accuracy. Choosing N depends on the signal:
- a linear chirp smears symmetrically, so long windows still track its centre;
- curved frequency laws (FM, vibrato, run-ups with acceleration) are biased by long windows;
- transients need short windows.
Beyond the STFT
The STFT has fixed resolution at all frequencies. Wavelets (a10-7) and the constant-Q transform use long windows for low frequencies and short ones for high frequencies. Reassignment and synchrosqueezing sharpen ridges.
- 1. Overlap-add reconstruction requires…
- 2. Parabolic peak interpolation gives…
- 3. Which representation adapts resolution to frequency?
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.The uncertainty trade-off
A window of duration T has a main-lobe width of about in frequency (c ≈ 2 for Hann, between the first nulls). So events closer than about T in time, or frequencies closer than about c/T, merge. With Gaussian windows the bound is reached (the Gabor transform). ∎
Bias for curved frequency laws
Over a window centred at , . The linear term spreads energy symmetrically, so the peak stays at . The quadratic term shifts the energy centroid by about , which grows with window length. That’s why the FM signal favours medium windows. ∎
Overlap-add identity
wherever the denominator is positive. The inverse FFT of each unmodified frame returns exactly. ∎
Exercise 3.1: window needed to separate 800 and 830 Hz with Hann at fs = 4 kHz
The main-lobe half-width is . It needs to be about 30 Hz or less, so ; use 512 for a clear dip. The duration is then 128 ms, so clicks smear over ~0.1 s.
- 1. A linear chirp's ridge is unbiased because…
- 2. The ridge bias from frequency curvature grows like…
- 3. Hann main-lobe width (first null to first null) is about…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Reaction-wheel run-up and a bearing click
A reaction wheel accelerates from 10 to 90 Hz in 4 s, with harmonics and sensor noise. A spectrogram (N = 512 at 2 kHz, bins of 3.9 Hz) with parabolic peak interpolation tracks the fundamental with 0.07 Hz RMS error, about a fiftieth of a bin. A 3 ms bearing click at 2.5 s is located to within 1 ms with a 32-sample window. With 512 samples it smears over a quarter of a second. Ground vibration tests of spacecraft wheels use this run-up analysis (a waterfall plot) to find harmonics that excite structural modes.
Time–frequency analysis in AI, robotics and aerospace
- Machinery and wheel health: waterfall and run-up plots, order tracking, transient detection.
- Radar micro-Doppler: classifying drones, walkers and rotors from spectrogram signatures (Chen, 2011).
- Speech and audio ML: log-mel spectrograms feed networks for speech recognition and sound event detection.
- Space operations: RF interference monitoring, and detecting meteoroid or debris impacts in accelerometer data.
References
- J. Allen (1977). “Short term spectral analysis, synthesis, and modification by discrete Fourier transform.” IEEE Trans. ASSP, 25(3).
- D. Griffin, J. Lim (1984). “Signal estimation from modified short-time Fourier transform.” IEEE Trans. ASSP, 32(2).
- L. Cohen (1995). Time-Frequency Analysis. Prentice Hall.
- V. Chen (2011). The Micro-Doppler Effect in Radar. Artech House.
- J. Smith (2011). Spectral Audio Signal Processing. W3K Publishing (ccrma.stanford.edu/~jos/sasp).
- F. Auger, P. Flandrin (1995). “Improving the readability of time-frequency and time-scale representations by the reassignment method.” IEEE Trans. Signal Processing, 43(5).
- S. Davis, P. Mermelstein (1980). “Comparison of parametric representations for monosyllabic word recognition.” IEEE Trans. ASSP, 28(4).