I/Q resampling is the process of converting an In-Phase and Quadrature (IQ) data stream from one sample rate to another through decimation (rate reduction) or interpolation (rate increase). This operation is critical when the analog-to-digital converter (ADC) hardware captures signals at a rate that differs from the native input dimension of a machine learning model, ensuring the classifier receives a consistent number of samples per inference frame.
Glossary
I/Q Resampling

What is I/Q Resampling?
I/Q resampling is the digital signal processing operation that changes the sample rate of a complex baseband stream to match the specific input requirements of a downstream neural network classifier or analysis block.
The process typically involves a rational resampling architecture combining an upsampler, a low-pass interpolation filter, and a downsampler. For decimation, an anti-aliasing filter is applied before discarding samples to prevent spectral folding. In automatic modulation classification pipelines, resampling standardizes variable-rate IQ streams to a fixed sample_rate hyperparameter, enabling batch processing across heterogeneous signal captures.
Key Characteristics of I/Q Resampling
I/Q resampling is the fundamental digital signal processing operation that changes the sample rate of a complex baseband stream through rational factor interpolation and decimation, ensuring the data rate matches the native input requirements of downstream neural network classifiers.
Rational Factor Rate Conversion
Resampling is achieved by a rational factor L/M, where L is the interpolation factor and M is the decimation factor. The process typically involves:
- Upsampling by L: Inserting L-1 zeros between original samples
- Anti-imaging filtering: Applying a low-pass filter to remove spectral images created by zero-insertion
- Downsampling by M: Keeping every M-th sample from the filtered output
- Anti-aliasing filtering: Ensuring the signal bandwidth does not exceed the new Nyquist frequency before decimation This cascaded operation allows conversion between arbitrary sample rates, such as adapting a 30.72 MHz LTE capture to a 20 MHz classifier input requirement.
Polyphase Filter Bank Implementation
Efficient resampling is implemented using polyphase decomposition, which restructures the interpolation/decimation filter into parallel sub-filters operating at the lower input rate. Key advantages include:
- Computational efficiency: Filtering occurs at the lower of the two sample rates, not the upsampled rate
- No wasted multiply-adds: Zero-valued inserted samples are never explicitly processed
- Parallel architecture: Naturally maps to FPGA and GPU hardware for real-time streaming
- Commutation structure: A rotating switch model distributes samples across filter phases This technique is essential for high-throughput IQ pipelines where resampling must occur at line rate without buffering bottlenecks.
Arbitrary Resampling via Farrow Structure
When the conversion factor is not a simple rational ratio, a Farrow structure provides continuously variable delay and sample rate conversion using polynomial interpolation. The architecture consists of:
- Fixed FIR sub-filters: Computing polynomial coefficients from the input samples
- Fractional delay parameter μ: Controlling the exact interpolation point between samples
- Cubic or Lagrange interpolation: Typically 3rd or 5th order polynomials for sufficient accuracy
- Continuous adaptation: Enables symbol timing recovery loops and Doppler compensation This method is critical for software-defined radios where the ADC clock and the desired output rate are derived from independent, non-synchronized oscillators.
Spectral Preservation and Anti-Alias Filtering
The primary design constraint in resampling is Nyquist compliance—ensuring no aliasing occurs during decimation. Critical specifications include:
- Passband ripple: Typically < 0.1 dB to preserve modulation fidelity
- Stopband attenuation: > 80 dB to suppress adjacent channel interference
- Transition bandwidth: The guard band between the signal of interest and the decimated Nyquist boundary
- Filter order: Determined by the sharpness of the transition band, often requiring hundreds of taps Improper filter design introduces spectral inversion or foldover artifacts that distort the IQ constellation and catastrophically degrade classifier accuracy.
Resampling for Neural Network Input Standardization
Deep learning classifiers require fixed-size input tensors, making resampling a mandatory preprocessing step. The operation ensures:
- Fixed sample count per inference window: e.g., 1024 or 2048 IQ samples regardless of source bandwidth
- Consistent symbol rate representation: Normalizing the number of samples per symbol across different modulation types
- Bandwidth decimation: Reducing wideband captures to the specific sub-band containing the signal of interest
- Dataset homogenization: Enabling mixed-source training data to share identical dimensionalities Without resampling, a classifier trained on 20 MHz captures cannot process a 40 MHz or 15.36 MHz IQ stream without architectural modification.
Integer Decimation for Computational Load Reduction
Simple integer-factor decimation (M) is used to reduce the sample rate when the signal of interest occupies only a fraction of the captured bandwidth. Benefits include:
- Reduced inference latency: Fewer samples per classification window
- Lower memory footprint: Smaller input tensors require less GPU VRAM
- Power savings on edge devices: Directly proportional to the reduction in multiply-accumulate operations
- Simplified anti-alias design: Integer decimation allows efficient half-band and CIC filter structures The trade-off is the processing gain lost from the narrower noise bandwidth, which can be mitigated by ensuring the decimation filter's passband fully encompasses the target signal.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about changing the sample rate of IQ data streams for machine learning and digital signal processing applications.
I/Q resampling is the digital signal processing operation that changes the sample rate of a complex baseband signal stream by a rational factor. It is necessary because neural network classifiers are designed with fixed input dimensions and expect data at a specific sample rate; resampling bridges the gap between the arbitrary rate of a receiver's analog-to-digital converter (ADC) and the native input rate required by a downstream model. Without resampling, a classifier trained on 1 MSPS IQ streams cannot process signals captured at 1.2288 MSPS. The operation preserves the underlying modulation information while adapting the temporal density of samples through mathematically rigorous interpolation (increasing the rate) or decimation (decreasing the rate).
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.
Related Terms
Core concepts and preprocessing stages that interact with sample rate conversion in a modulation recognition pipeline.
I/Q Segmentation
The division of a continuous IQ stream into fixed-length, non-overlapping or overlapping segments to form individual inference examples. Resampling often precedes segmentation to ensure each segment contains a consistent number of samples per symbol, standardizing the temporal information density before the stream is sliced into input tensors for the classifier.
Sample Synchronization
The process of recovering the optimal sampling instant from a continuous waveform to align discrete IQ samples precisely with transmitted symbol centers. Symbol timing recovery is a prerequisite for resampling; you must first lock onto the symbol clock before decimating or interpolating to the target rate, otherwise the resampled points will not represent valid symbol decisions.
I/Q Filtering
The use of digital filters to isolate the signal of interest by rejecting out-of-band interference and adjacent channel noise. A critical companion to resampling, anti-aliasing low-pass filtering must be applied before decimation to satisfy the Nyquist criterion and prevent spectral folding that would corrupt the downsampled IQ stream.
I/Q Normalization
The process of scaling the amplitude of an IQ sample stream to a standard range using Z-score or min-max scaling. Resampling changes the number of samples but not their statistical distribution; normalization is typically applied after resampling to ensure the final input tensor has zero mean and unit variance, preventing numerical instability during neural network training.
I/Q Augmentation
A data regularization technique that applies realistic channel impairments to synthetic or collected IQ samples. Randomized resampling can serve as an augmentation strategy itself—slightly varying the sample rate during training teaches the classifier to be robust to clock drift and sample rate mismatches encountered in real-world receivers.
Complex Baseband
A signal representation centered at zero frequency where the modulating information is expressed as a complex-valued stream. Resampling operates directly on this complex baseband representation; understanding the mathematical equivalence between the IQ pair and the analytic signal is essential for implementing polyphase filter banks and fractional interpolation structures correctly.

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