Inferensys

Glossary

I/Q Resampling

The process of changing the sample rate of an IQ stream through decimation or interpolation to match the native input requirements of a downstream neural network classifier.
Enterprise console with connected nodes and monitoring panels for orchestrated systems.
SAMPLE RATE CONVERSION

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.

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.

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.

SAMPLE RATE CONVERSION

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.

01

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.
02

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.
03

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.
04

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.
05

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.
06

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.
I/Q RESAMPLING ESSENTIALS

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).

Prasad Kumkar

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.