Bayesian Changepoint Detection is a statistical method that identifies points in a sequential data stream where the underlying probability distribution of the data changes abruptly. Unlike frequentist approaches that provide a single point estimate, it computes a posterior probability distribution over the run-length—the time elapsed since the last changepoint—allowing the model to maintain and update multiple hypotheses about when a regime shift occurred.
Glossary
Bayesian Changepoint Detection

What is Bayesian Changepoint Detection?
A probabilistic framework for identifying abrupt shifts in the generative parameters of a time series, enabling real-time inference of regime changes in streaming data.
In spectrum sensing networks, this technique is critical for detecting the onset of burst transmissions or sudden interference in real time. By modeling the signal's statistical properties—such as mean power or variance—the algorithm recursively updates its belief state with each new IQ sample, triggering an alert when the probability of a changepoint exceeds a threshold, all while naturally quantifying the uncertainty of the detection.
Key Characteristics of Bayesian Changepoint Detection
Bayesian changepoint detection provides a mathematically rigorous framework for identifying abrupt transitions in the statistical properties of a signal stream, delivering not just a detection decision but a full posterior distribution over the timing and magnitude of changes.
Probabilistic Run-Length Formulation
The core mechanism tracks the run length—the time elapsed since the last changepoint—as a latent variable. At each time step, the algorithm computes a recursive posterior distribution over possible run lengths using Bayes' theorem. This creates a change point probability that spikes when the predictive likelihood of new data under the current model drops sharply, indicating a structural break. The formulation elegantly handles online, real-time detection without requiring a fixed window size.
Full Uncertainty Quantification
Unlike frequentist methods that yield a single point estimate, Bayesian changepoint detection produces a complete posterior distribution over changepoint locations. This allows practitioners to set credible intervals on when a change occurred and to compute the marginal probability of a change at each time step. For mission-critical RF applications, this uncertainty quantification enables risk-adjusted decision-making—a spectrum regulator can choose to act only when the posterior probability exceeds 0.99, minimizing false alarms.
Generative Model Flexibility
The framework accommodates arbitrary generative models for the data within each segment. Common choices include:
- Gaussian with changing mean: Detects shifts in signal power or DC offset
- Gaussian with changing variance: Identifies onset of noise-like jamming
- Poisson models: For discrete event streams like pulse trains
- Linear regression models: Detects changes in trend or slope This flexibility allows the same algorithmic core to address diverse RF detection tasks by simply swapping the observation model.
Hazard Rate and Prior Specification
The hazard rate—the prior probability of a changepoint at any given time step—encodes domain knowledge about expected event frequency. A constant hazard rate assumes changepoints occur at a fixed average interval, suitable for random burst transmissions. A time-varying hazard function can incorporate external context, such as known transmission schedules or geolocation-based threat levels. This explicit prior specification makes the detector's assumptions transparent and auditable.
Online Recursive Inference
The algorithm operates in constant time per observation using a recursive message-passing scheme. At each step t, it computes the posterior over run lengths using only the previous step's posterior and the current observation's predictive likelihood. This O(n) complexity makes it suitable for real-time streaming RF applications on edge hardware. The recursive structure also enables pruning of low-probability run lengths to maintain a bounded computational footprint over arbitrarily long sequences.
Retrospective Segmentation via Smoothing
While the online algorithm provides real-time detection, a backward smoothing pass can refine changepoint estimates after observing future data. This forward-backward algorithm computes the marginal posterior probability that a changepoint occurred at each historical time step, conditioned on the entire sequence. For forensic spectrum analysis, this yields the maximum a posteriori (MAP) segmentation—the single most probable partition of the signal into homogeneous segments.
Frequently Asked Questions
Clear, technical answers to the most common questions about identifying abrupt statistical transitions in signal streams using Bayesian inference.
Bayesian changepoint detection is a probabilistic framework for identifying points in a sequential data stream where the underlying statistical properties—such as mean, variance, or spectral characteristics—abruptly shift. Unlike frequentist methods that produce a single point estimate, this approach maintains a full posterior distribution over the run length (the time elapsed since the last changepoint). The core mechanism is recursive Bayesian estimation: at each time step, the algorithm computes the probability that the current observation belongs to the existing generative model versus a new, post-change model. This is often implemented via the Bayesian Online Changepoint Detection (BOCPD) algorithm, which uses a product of predictive probabilities and a hazard function to update beliefs in constant time per step, making it suitable for real-time spectrum monitoring applications.
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
Key concepts that form the statistical and architectural foundation for Bayesian changepoint detection in dynamic spectrum environments.
Sequential Probability Ratio Test (SPRT)
A fundamental sequential hypothesis testing framework that Bayesian changepoint detection generalizes. SPRT continuously evaluates the log-likelihood ratio of incoming observations against two competing hypotheses, making a decision as soon as sufficient evidence accumulates rather than waiting for a fixed sample size.
- Key advantage: Minimizes average sample number (ASN) for a given Type I and Type II error constraint
- Connection to changepoint detection: The CUSUM algorithm is a repeated SPRT, restarting whenever a decision boundary is crossed
- Bayesian extension: Replaces fixed thresholds with prior probabilities and cost functions for optimal decision-making under uncertainty
Cumulative Sum (CUSUM) Algorithm
A non-Bayesian changepoint detection algorithm that accumulates the log-likelihood ratio of observations relative to a pre-change distribution. When the cumulative sum exceeds a predefined threshold, a changepoint is declared.
- Core mechanism: Maintains a running statistic Sₖ = max(0, Sₖ₋₁ + log(p₁(xₖ)/p₀(xₖ)))
- Burst transmission detection: Rapidly identifies the onset of a sudden signal in previously vacant spectrum
- Limitation: Requires known pre-change and post-change distributions, unlike Bayesian methods that can maintain uncertainty over parameters
- Typical use case: Detecting the start of a radar pulse or frequency-hopping transmission in electronic warfare receivers
Bayesian Online Changepoint Detection (BOCPD)
The canonical Bayesian framework for real-time changepoint inference, introduced by Adams and MacKay (2007). BOCPD maintains a posterior distribution over the run length—the time since the most recent changepoint—and updates it recursively with each new observation.
- Recursive message-passing: Computes P(rₖ|x₁:ₖ) using the product of the predictive probability and the changepoint prior hazard function
- Key output: Produces both a point estimate of changepoint locations and a full posterior over run lengths, quantifying detection uncertainty
- Underlying predictive model (UPM): Can use any conjugate exponential family model (Gaussian, Poisson, etc.) for efficient closed-form updates
- Spectrum application: Detects the abrupt appearance of a burst transmission while simultaneously estimating its power spectral density parameters
Hazard Function and Changepoint Prior
The hazard function h(r) defines the prior probability that a changepoint occurs at run length r, given that no changepoint has occurred before. It is the critical design parameter that encodes domain knowledge about expected event frequencies.
- Constant hazard rate: Assumes memoryless, geometrically distributed segment lengths—appropriate when burst arrivals follow a Poisson process
- Periodic hazard functions: Encode expected transmission schedules or time-slotted protocol behavior
- Nonparametric priors: Dirichlet process or gamma process priors allow the data to infer the hazard structure when transmission patterns are unknown
- Impact on detection latency: Higher hazard rates produce faster detection but increase false alarm probability
Conjugate Prior Predictive Distributions
The mathematical engine enabling efficient closed-form Bayesian updates in changepoint detection. By selecting a conjugate prior for the observation model, the posterior distribution remains in the same parametric family, allowing recursive computation without numerical integration.
- Normal-inverse-gamma prior: For Gaussian observations with unknown mean and variance—models thermal noise floor with sudden signal power changes
- Beta-binomial conjugacy: For detecting changes in discrete spectrum occupancy states (occupied/vacant)
- Dirichlet-multinomial: For changepoints in categorical modulation type sequences
- Computational benefit: O(1) update per observation versus O(t) for particle filter methods, critical for real-time wideband spectrum monitoring
Changepoint vs. Anomaly Detection
A critical distinction in spectrum monitoring architectures. Changepoint detection identifies persistent regime shifts in the statistical properties of a signal stream, while anomaly detection flags transient outliers that deviate from a baseline but do not represent a sustained change.
- Changepoint example: A cognitive radio user begins transmitting, permanently altering the noise floor statistics in a band
- Anomaly example: A single lightning strike causing a brief wideband impulse that immediately returns to baseline
- Architectural integration: Changepoint detectors trigger spectrum reallocation; anomaly detectors trigger interference logging and forensic analysis
- Combined approach: Bayesian changepoint models with heavy-tailed observation likelihoods (Student-t) can simultaneously handle both persistent changes and outlier robustness

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