Inferensys

Glossary

Time-Frequency Coherence

A statistical measure that quantifies the linear correlation between two non-stationary signals as a function of both time and frequency, extending the concept of ordinary coherence to the joint time-frequency domain.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
JOINT-DOMAIN CORRELATION METRIC

What is Time-Frequency Coherence?

Time-frequency coherence is a bivariate statistic that quantifies the linear correlation between two non-stationary signals as a function of both time and frequency, extending classical magnitude-squared coherence into the joint domain.

Time-frequency coherence measures the normalized cross-spectral density between two signals within a localized time-frequency region, typically computed using the Short-Time Fourier Transform or Continuous Wavelet Transform. Unlike ordinary coherence, which assumes stationarity and provides only a frequency-dependent scalar, this metric produces a two-dimensional map revealing when and at what frequencies two processes exhibit synchronized oscillatory behavior.

The estimate is bounded between 0 and 1, where values near 1 indicate a strong, noise-free linear relationship in that specific time-frequency tile. It is a foundational tool in cyclostationary feature extraction for RF fingerprinting, enabling the isolation of transient coupling phenomena and modulation-induced correlations that distinguish individual emitters under varying channel conditions.

Joint-Domain Correlation Analysis

Key Properties of Time-Frequency Coherence

Time-frequency coherence extends the concept of ordinary spectral coherence to non-stationary signals, quantifying the linear correlation between two signals as a function of both time and frequency. This enables the identification of transient coupling events that are invisible to traditional Fourier-based coherence analysis.

01

Definition and Mathematical Basis

Time-frequency coherence is a normalized, bounded measure that quantifies the strength of linear coupling between two non-stationary processes in the joint time-frequency plane. It is computed as the ratio of the cross time-frequency spectrum to the product of the auto time-frequency spectra of the individual signals. The resulting coherence function takes values between 0 (no linear relationship) and 1 (perfect linear coupling) at each time-frequency point. This is a direct extension of ordinary magnitude-squared coherence, replacing stationary spectral estimates with time-frequency distributions such as the Short-Time Fourier Transform or Continuous Wavelet Transform.

02

Estimation Using Wavelet Transforms

Wavelet-based coherence is a widely adopted method that uses the Continuous Wavelet Transform (CWT) to decompose signals into time-scale space before computing coherence. The Morlet wavelet is the preferred mother wavelet due to its optimal joint time-frequency localization. The estimation process involves:

  • Computing the CWT for each signal individually.
  • Calculating the cross-wavelet transform to identify regions of high common power.
  • Smoothing the wavelet spectra in both time and scale to produce a consistent estimator.
  • Normalizing the smoothed cross-wavelet spectrum by the smoothed auto-wavelet spectra. This approach naturally provides multi-resolution analysis, offering high frequency resolution at low frequencies and high time resolution at high frequencies.
03

Phase Difference and Lead-Lag Relationships

A critical output of time-frequency coherence analysis is the local phase difference between the two signals. The phase angle of the complex-valued cross time-frequency spectrum reveals the instantaneous lead-lag relationship. This is typically visualized as arrows overlaid on a coherence magnitude plot:

  • Right-pointing arrows indicate the signals are in-phase (positively correlated).
  • Left-pointing arrows indicate anti-phase (negatively correlated).
  • Down-pointing arrows indicate the first signal leads the second by 90 degrees.
  • Up-pointing arrows indicate the second signal leads the first by 90 degrees. This directional information is essential for inferring causal coupling dynamics in physiological and physical systems.
04

Statistical Significance Testing

Coherence estimates are inherently biased and must be tested against a null hypothesis of no linear correlation. The standard approach uses Monte Carlo simulations to generate surrogate data pairs with identical spectral properties but no coherence. Specifically:

  • A large ensemble of red noise processes (AR(1) models) is simulated, matching the autocorrelation structure of the original signals.
  • Coherence is computed for each surrogate pair.
  • The 95th percentile of the surrogate coherence distribution defines the significance threshold at each time-frequency point.
  • Only coherence values exceeding this threshold are considered statistically significant, protecting against spurious correlations caused by spectral leakage or finite sample effects.
05

Applications in Neural Signal Coupling

Time-frequency coherence is a foundational tool in neuroscience for analyzing the dynamic coupling between brain regions. Key applications include:

  • Event-Related Coherence: Quantifying transient synchronization between EEG or MEG channels time-locked to a stimulus or cognitive event.
  • Corticomuscular Coherence: Measuring the linear coupling between brain activity (EEG/MEG) and muscle activity (EMG) to study motor control pathways.
  • Cross-Frequency Coupling Analysis: Detecting interactions where the phase of a low-frequency oscillation modulates the amplitude of a high-frequency oscillation, a phenomenon linked to neural communication and memory consolidation. These analyses reveal how functional brain networks form and dissolve on millisecond timescales.
06

Distinction from Cross-Spectral Density

While ordinary coherence is derived from the cross-spectral density (CSD) — a purely frequency-domain measure — time-frequency coherence captures transient, non-stationary coupling. The CSD assumes signal statistics are stationary over the analysis window, averaging out time-varying dynamics. Time-frequency coherence, by contrast, preserves temporal localization. This is critical for analyzing signals with abrupt state changes, such as epileptic seizure onset in EEG, fault transients in machinery vibration, or burst-mode communication signals. The trade-off is governed by the Heisenberg-Gabor uncertainty principle, where improved time resolution necessarily degrades frequency resolution.

TIME-FREQUENCY COHERENCE

Frequently Asked Questions

Clear, technically precise answers to the most common questions about measuring the statistical relationship between non-stationary signals in the joint time-frequency domain.

Time-frequency coherence is a bivariate statistic that quantifies the linear correlation between two non-stationary signals as a function of both time and frequency. It extends the classical magnitude-squared coherence function—which assumes signal stationarity—into the joint time-frequency plane. The computation typically involves first generating a time-frequency representation (such as a spectrogram via the Short-Time Fourier Transform or a scalogram via the Continuous Wavelet Transform) for each signal. The cross time-frequency spectrum between the two signals is then normalized by the product of their individual auto time-frequency spectra. The resulting coherence value, bounded between 0 and 1, indicates the degree of linear coupling at a specific time instant and frequency bin. A value of 1 signifies perfect linear relationship, while 0 indicates no correlation. To reduce estimator variance, ensemble averaging over multiple trials or smoothing kernels from Cohen's Class are applied, trading off resolution for statistical reliability.

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.