An I/Q Spectrogram is a time-frequency representation generated by applying the Short-Time Fourier Transform (STFT) to a complex baseband IQ stream. This process segments the time-domain samples into overlapping windows, computes the frequency spectrum for each, and stacks them chronologically to form a 2D image where the x-axis represents time, the y-axis represents frequency, and pixel intensity encodes spectral magnitude.
Glossary
I/Q Spectrogram

What is I/Q Spectrogram?
An I/Q spectrogram is a 2D visual representation of a signal's frequency content over time, generated by applying the Short-Time Fourier Transform (STFT) to a stream of complex In-Phase and Quadrature (I/Q) samples.
This transformation converts a 1D temporal signal into a format natively suited for Convolutional Neural Networks (CNNs), which excel at extracting spatial patterns. Distinct modulation schemes produce characteristic visual signatures—such as transient spectral lines or frequency hops—making the spectrogram a powerful intermediate representation for automatic modulation classification and signal intelligence applications.
Key Characteristics of I/Q Spectrograms
An I/Q spectrogram transforms raw complex baseband samples into a 2D image by applying the Short-Time Fourier Transform (STFT), revealing how spectral content evolves over time. This representation makes modulation patterns visually distinct and directly exploitable by Convolutional Neural Networks (CNNs).
Time-Frequency Localization
Unlike a single power spectrum which averages frequency content over an entire recording, the spectrogram resolves when specific frequencies occur. This is critical for classifying modulation schemes with time-varying elements.
- Transient Capture: Visualizes short-duration events like frequency hops, preamble sequences, or symbol transitions that a global FFT would obscure.
- Resolution Trade-off: The STFT window size dictates the balance between time resolution and frequency resolution, a fundamental parameter that directly impacts downstream CNN classification accuracy.
- Overlap Processing: Successive FFT frames are typically overlapped (e.g., 50%) to ensure no signal transition is lost at the frame boundary, creating a smooth temporal representation.
Spectral Signature Visualization
Each modulation format produces a distinct visual fingerprint in the spectrogram domain, governed by its symbol rate, pulse shaping filter, and frequency deviation.
- Continuous Wave (CW): Appears as a single, constant horizontal line.
- Frequency Shift Keying (FSK): Manifests as discrete horizontal lines that switch abruptly between frequencies, creating a 'piano roll' pattern.
- Linear Frequency Modulation (LFM): Produces a characteristic diagonal 'chirp' line sweeping across the frequency band.
- Phase Shift Keying (PSK): Exhibits a constant frequency carrier with spectral broadening occurring at symbol transitions, visible as vertical 'bursts' of bandwidth.
CNN-Compatible Image Format
The spectrogram converts a 1D time-series signal processing problem into a 2D image recognition task, unlocking the powerful spatial feature extraction capabilities of Convolutional Neural Networks.
- Spatial Hierarchies: CNNs can learn low-level features (edges, lines corresponding to tones) and compose them into high-level concepts (shapes corresponding to modulation patterns).
- Translation Invariance: Pooling layers provide robustness to slight shifts in time or frequency, accommodating minor synchronization errors.
- Transfer Learning: Pre-trained weights from massive image datasets (e.g., ImageNet) can be fine-tuned on spectrogram data, dramatically reducing the number of required labeled RF examples.
Channel Impairment Artifacts
Real-world propagation effects leave distinct, visible artifacts in the spectrogram that a robust classifier must learn to see through or exploit.
- Multipath Fading: Appears as frequency-selective nulls—horizontal dark bands where destructive interference cancels the signal at specific frequencies.
- Co-Channel Interference: Manifests as a superimposed, structurally different spectral pattern overlapping the signal of interest.
- Impulsive Noise: Visible as short-duration, broadband vertical streaks that saturate the spectrum across all frequencies simultaneously.
- Carrier Frequency Offset (CFO): Shifts the entire spectral signature up or down by a constant frequency, requiring the CNN to learn frequency invariance.
Power Spectral Density Estimation
The spectrogram's magnitude squared values represent the Power Spectral Density (PSD) within each time-frequency bin, providing a visual map of energy distribution.
- Dynamic Range: Spectrograms are typically displayed in decibels (dB) using a logarithmic scale to compress the large dynamic range of RF signals, making weak spectral components visible alongside strong carriers.
- Colormap Engineering: The choice of colormap (e.g., 'turbo', 'magma') for rendering is a critical preprocessing step, as it defines the input pixel intensity distribution the CNN learns from.
- Noise Floor Estimation: The granular texture of the background noise floor provides implicit SNR information that the network can use to gauge classification confidence.
Multi-Resolution Analysis
A single spectrogram with a fixed STFT window may not optimally represent all signal features. Multi-resolution techniques combine information from multiple window sizes.
- Constant-Q Transform (CQT): Uses logarithmically spaced frequency bins, providing higher frequency resolution at low frequencies and higher time resolution at high frequencies, mimicking human auditory perception.
- Wavelet Scalograms: An alternative to the STFT that provides a multi-scale time-frequency tiling, often yielding sharper transient localization than fixed-window spectrograms.
- Multi-Channel Input: Stacking spectrograms computed with different window lengths as separate input channels to a CNN allows the network to jointly learn from coarse and fine time-frequency representations.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear answers to common questions about transforming raw IQ streams into time-frequency images for deep learning-based modulation classification.
An I/Q spectrogram is a 2D time-frequency representation generated by applying the Short-Time Fourier Transform (STFT) to a complex-valued IQ sample stream. The process divides the IQ segment into overlapping windows, computes the Discrete Fourier Transform (DFT) of each window, and stacks the resulting magnitude spectra chronologically. This converts the raw 1D time-domain complex samples into a 2D image where the x-axis represents time, the y-axis represents frequency, and pixel intensity encodes spectral power. This image format is directly compatible with Convolutional Neural Networks (CNNs) designed for computer vision tasks, allowing transfer learning from architectures like ResNet or EfficientNet to be applied to modulation recognition.
Related Terms
Explore the core signal processing and machine learning concepts that surround the generation and utilization of I/Q spectrograms for deep learning-based modulation recognition.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us