Inferensys

Glossary

Particle Filter

A particle filter is a sequential Monte Carlo method for Bayesian state estimation that represents a system's probable state using a set of random samples called particles.
Developer building agentic RAG system, retrieval pipeline diagram on laptop, technical workspace with notes.
SENSOR FUSION AND STATE ESTIMATION

What is a Particle Filter?

A particle filter is a sequential Monte Carlo method for Bayesian state estimation that represents the posterior probability distribution of the state using a set of random samples (particles), making it effective for highly nonlinear and non-Gaussian problems.

A particle filter is a sequential Monte Carlo algorithm used for Bayesian state estimation in nonlinear and non-Gaussian systems. It represents the system's posterior probability distribution using a set of discrete samples called particles, each with an associated weight. The algorithm operates recursively through prediction (propagating particles via a motion model) and update (adjusting weights based on sensor measurements) steps. This non-parametric approach avoids the linearization errors inherent in filters like the Extended Kalman Filter (EKF).

The core strength of particle filtering lies in its ability to handle multi-modal distributions, which are common when a robot's location is ambiguous. However, it suffers from particle degeneracy, where most weights become negligible. This is mitigated by resampling, which replicates high-weight particles and discards low-weight ones. Key variants include the Sampling Importance Resampling (SIR) filter and the Rao-Blackwellized particle filter, the latter of which is foundational for FastSLAM, a seminal algorithm in robotic mapping and localization.

CORE MECHANICS

Key Characteristics of Particle Filters

Particle filters, or Sequential Monte Carlo (SMC) methods, are distinguished from other Bayesian filters by their unique approach to representing and updating probability distributions. These characteristics define their applicability and performance.

01

Non-Parametric Representation

Unlike the Kalman Filter, which assumes a parametric (Gaussian) distribution, a particle filter uses a non-parametric representation. The posterior distribution is approximated by a set of discrete, weighted samples called particles. This allows it to model arbitrarily complex, multi-modal distributions (e.g., a robot's possible location split between two rooms), which is impossible for filters constrained to a single Gaussian.

02

Sequential Importance Sampling & Resampling

The algorithm operates in a predict-update cycle using two key Monte Carlo steps:

  • Importance Sampling: Each particle is propagated through the process model (prediction), then weighted based on the likelihood of the new sensor measurement (update).
  • Resampling: To avoid particle degeneracy (where most particles have negligible weight), particles are stochastically replicated based on their weight. High-weight particles are multiplied, low-weight particles are discarded. This focuses computational resources on the most probable state regions.
03

Applicability to Nonlinear & Non-Gaussian Systems

This is the primary engineering motivation for using a particle filter. It makes no linearity assumptions and imposes no Gaussian noise requirements on the process or measurement models. It can directly use:

  • Highly nonlinear motion models (e.g., skidding vehicles, agile drones).
  • Non-Gaussian sensor noise (e.g., heavy-tailed distributions, bounded errors).
  • Nonlinear measurement models (e.g., bearing-only sensors, landmark detection). This makes it a robust choice for complex, real-world robotic systems where linearization (as in an EKF) fails.
04

The Curse of Dimensionality

The primary computational limitation. The number of particles required to maintain a given approximation quality grows exponentially with the state space dimension. For a robot estimating its 2D (x,y) position, a few hundred particles may suffice. For a full 6D pose (x,y,z,roll,pitch,yaw) plus velocity, thousands are needed. For joint state and map estimation (as in FastSLAM), the requirement becomes prohibitive, leading to approximations like Rao-Blackwellized Particle Filters that partition the state.

05

Sample-Based Approximation of Distributions

All estimates are derived from the empirical distribution of particles. Key quantities are computed as sample statistics:

  • State Estimate: Often the weighted mean of particle states, or the state of the highest-weight particle.
  • Uncertainty: Estimated from the sample covariance of the particle cloud.
  • Probabilities: The probability of an event (e.g., "robot is in Room A") is approximated by the sum of weights of particles satisfying the condition. This provides immense flexibility for querying the belief state.
06

Comparison to Kalman Filter Variants

CriterionExtended/Unscented KFParticle Filter
Distribution ModelSingle GaussianArbitrary (sample-based)
LinearityApproximates nonlinearitiesHandles full nonlinearities
NoiseAssumes GaussianAny known distribution
Computational CostO(n²) to O(n³) in state dimO(N) in particle count, but N grows exponentially with dim
Multi-ModalityCannot representCan represent
The PF trades higher, configurable compute cost for modeling generality and robustness.
STATE ESTIMATION ALGORITHMS

Particle Filter vs. Kalman Filter: A Comparison

A feature-by-feature comparison of two fundamental Bayesian filtering techniques for state estimation in robotics and autonomous systems.

Feature / CharacteristicParticle Filter (Sequential Monte Carlo)Kalman Filter (and EKF/UKF variants)

Core Mathematical Representation

Set of weighted random samples (particles)

Parametric Gaussian distribution (mean & covariance)

Primary Assumption on State Distribution

Non-Gaussian, multi-modal, arbitrary

Unimodal Gaussian (or locally approximated as Gaussian)

Handling of System Nonlinearities

No linearization required; handles severe nonlinearities natively

Requires linearization (EKF) or deterministic sampling (UKF) for nonlinear models

Theoretical Optimality Guarantee

Asymptotically optimal (as particle count → ∞)

Optimal for linear Gaussian systems (KF); approximate for nonlinear (EKF/UKF)

Computational Complexity

O(N) where N is number of particles; can be high for accurate representation

O(m³) where m is state dimension; typically very efficient for moderate m

Memory Footprint

High (stores N full state vectors and weights)

Low (stores only mean vector and covariance matrix)

Typical Application Domains

Robust visual tracking, SLAM with multi-hypothesis, fault diagnosis, financial modeling

GPS/INS navigation, radar tracking, linear control systems, sensor calibration

Ease of Implementation

Conceptually straightforward but requires careful tuning (resampling, proposal distribution)

Well-defined equations but requires careful Jacobian derivation (EKF) or parameter tuning (UKF)

Degradation with Dimensionality

Severe (requires particle count exponential in state dimension: Curse of Dimensionality)

Graceful (scales polynomially with state dimension)

Data Association in Clutter

Natural multi-hypothesis support via particle weights

Typically single-hypothesis; requires probabilistic data association (PDA/JPDA) extensions

Resampling Requirement

Yes, to mitigate particle degeneracy

No

Inherent Parallelizability

High (particles are independent during prediction/update)

Low (matrix operations are inherently sequential)

FAQ

Frequently Asked Questions About Particle Filters

A particle filter is a powerful sequential Monte Carlo method for state estimation in nonlinear, non-Gaussian systems. These questions address its core mechanics, applications, and trade-offs compared to other filters.

A particle filter is a sequential Monte Carlo method for Bayesian state estimation that represents a system's posterior probability distribution using a set of random samples called particles. It works through a recursive prediction-update cycle: first, particles are propagated forward in time using a process model; then, each particle's likelihood is evaluated against new sensor data via a measurement model; finally, a resampling step discards low-weight particles and duplicates high-weight ones to focus computational resources on the most probable state hypotheses.

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.