Spectrogram: Computation, Resolution, and Interpretation

груд. 01 2025
Source: DiGi-Electronics
Browse: 665

A spectrogram shows how a signal’s frequencies change over time using colors, making patterns, bursts, noise, and modulation easier to see. This article explains how spectrograms differ from other displays, how they are computed, how resolution and visual settings affect accuracy, and how to read patterns. It provides clear, detailed information about every part of the topic.

Figure 1. Spectrogram

Spectrogram Overview

A spectrogram is a picture that shows how the frequencies of a signal change over time. It looks like a colored map with time on the horizontal axis, frequency on the vertical axis, and color showing how strong the signal is. This view makes it easier to understand what is happening inside the signal at different moments. It helps reveal slow changes in frequency, sudden shifts, short bursts, and patterns created by different types of modulation. It also shows changes in background noise and makes weaker signals more noticeable, even when stronger tones are present.

Spectrograms vs. Spectrum and Waterfall Displays

Figure 2. Spectrograms vs. Spectrum and Waterfall Displays

Main Differences

While all three show frequency content, only spectrograms and waterfalls display time-varying behavior. A spectrum shows a single moment, while a waterfall stacks spectra but emphasizes long-term trends. A spectrogram uniquely offers a detailed, color-mapped time-frequency view.

Comparison Table

FeatureSpectrum (FFT Plot)SpectrogramWaterfall Display
Time-varying informationNoYesYes
Frequency informationYesYesYes
Amplitude shownYesYes (color-coded)Yes (height or color)
Best forInstant snapshotChanges over timeLong historical trends

Spectrogram Computation Basics

Step-by-Step Process

• Split the signal into short, overlapping frames.

• Apply a window function (e.g., Hann or Hamming) to each frame.

• Compute the FFT of each windowed frame to get its spectrum.

• Convert spectrum magnitudes to dB or linear intensity values.

• Map intensities to colors to show weak and strong components.

• Place spectra in time order to form the full spectrogram.

Factors That Affect Accuracy

ParameterRole in the Spectrogram
Window length (FFT size)Controls frequency detail. Longer windows show finer frequency resolution.
Window typeShapes how each slice is processed and reduces unwanted artifacts.
Overlap percentageHigher overlap gives smoother time resolution.
Sampling rateSets the highest frequency that can be displayed.

Time–Frequency Resolution in Spectrograms

Figure 3. Time–Frequency Resolution in Spectrograms

Longer Window (Better Frequency Resolution)

• Separates frequencies that are close to each other

• Shows slow changes in frequency more clearly

• Reduces the clarity of quick or short events

Shorter Window (Better Time Resolution)

• Shows sudden changes more clearly

• Captures fast shifts in frequency

• Produces wider or less detailed frequency bands

Discontinuous Spectrogram Tips for Long-Term Signal Monitoring

Strengths

Suitable for long-term signal monitoring. Uses less memory compared to continuous recording. Works well for slow or occasional changes. Helpful for long-duration compliance checks

Weaknesses

Not effective for fast or unpredictable bursts. Does not provide a fully continuous time view. Accuracy depends on how well each slice is triggered.

For signals with rapid behavior, a continuous approach offers clearer insight.

Continuous Spectrograms for Fast Event Analysis

Figure 4. Continuous Spectrograms for Fast Event Analysis

A continuous spectrogram uses a long recording with a sliding, overlapping window to provide a gap-free view. This method captures rapid events, aligns with the waveform, and supports detailed correlation of packets, pulses, and symbols.

AdvantagesDescription
No gaps in the timelineEvery moment of the signal is included.
Captures fast changesShows bursts, quick shifts, glitches, and other rapid events clearly.
Aligned with the waveformMatches the time-domain signal without breaks.
Supports detailed correlationHelps analyze packets, symbols, and other fine-level structures.

Spectrogram Color Maps and Scaling Settings

Color Maps

Figure 5. Color Maps

Color MapDescription
Inferno / ViridisSmooth and consistent, helping show changes clearly.
JetBright and colorful, but it can shift how data is perceived.
Heat (black - red - yellow)Highlights the strong parts of the signal more clearly.

Amplitude Scaling

Figure 6. Amplitude Scaling

Scaling TypeBest ForDescription
LinearLow dynamic-range signalsShows changes directly but may hide very weak details.
dBWide dynamic-range signalsCompresses the range so strong and weak parts are easier to compare.

Dynamic Range Management

Figure 7. Dynamic Range Management

Range SettingEffect
Too narrowColors become saturated, making the display hard to read.
Too wideWeak parts of the signal disappear on the plot.

How to Read a Spectrogram?

Common Spectrogram Patterns

• Horizontal line - continuous tone or carrier

• Vertical streak - short impulse or quick burst

• Diagonal trace - frequency sweep or chirp

• Clustered noise - broadband interference

• Symmetric sidebands - AM or PM modulation

• Periodic bursts - packet activity or pulsed signals

Simple Tips for Interpreting Spectrograms

• Notice repeating shapes to spot modulation or regular activity

• Check color intensity to see the difference between stronger and weaker signals

• Watch how frequency moves to detect drift or hopping

• Look at the width of the signal to understand FM, spreading, or jitter

Spectrogram Window Settings Guide

Analysis GoalWindow TypeFFT SizeOverlapNotes
Detect short burstsHannShort75–95%Good for fast events
Identify close frequenciesBlackmanLong50–75%Higher frequency detail
Get accurate amplitudeFlat-topMedium25–50%Helps with level accuracy
Reduce sidelobesBlackman-HarrisMedium50–75%Helps reveal low-level signals
Real-time monitoringHammingMedium50–80%Balanced clarity and speed

Spectrogram Applications 

RF & Wireless

Spectrograms help detect interference, check frequency-hopping activity, monitor unwanted emissions, and identify instability in RF power stages.

Audio & Speech

They make it easy to see phonemes, sibilance, and formants, while also spotting clipping, distortion, and other artifacts in audio signals.

Radar & Defense

In radar work, spectrograms reveal chirps, pulse trains, jamming activity, and details related to pulse-compression techniques.

Mechanical & Vibration

They help detect bearing frequencies, track gearbox resonance, and identify short impact events in rotating or moving machines.

Biomedical Signals

Spectrograms are useful for monitoring EEG and ECG time-frequency changes and detecting abnormal bursts or rhythm irregularities.

Conclusion 

Spectrograms reveal both time and frequency behavior, helping make sense of tones, bursts, noise, and modulation. By choosing the right window settings, overlap, color map, and scaling, the display becomes clearer and more reliable. With proper setup and careful reading, spectrograms give a complete view of signal activity without missing fast changes or long-term trends.

Frequently Asked Questions [FAQ]

What file formats can a spectrogram be saved in?

It can be saved as PNG, JPG, or TIFF for images, and as CSV, MAT, or HDF5 for raw data.

Does a spectrogram show phase information?

No. A standard spectrogram only shows magnitude. Phase requires a separate phase spectrogram.

How does the noise floor affect a spectrogram?

A high noise floor can hide weak signals, making them hard to see.

Why is pre-processing needed before making a spectrogram?

Pre-processing, such as filtering or DC removal, helps remove unwanted content and improves clarity.

Can spectrograms update in real time?

Yes. With fast FFT processing and short windows, they can run continuously as data arrives.

Do spectrograms work with complex I/Q signals?

Yes. The I/Q data is converted to magnitude or power before forming the spectrogram.