Inferensys

Glossary

Particle Filter

A particle filter is a sequential Monte Carlo method for state estimation that represents a probability distribution using a set of random samples, or particles, with associated weights.
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.
FLEET STATE ESTIMATION

What is a Particle Filter?

A particle filter is a sequential Monte Carlo method used for state estimation that represents the probability distribution of the system state using a set of random samples, or particles, with associated weights.

A particle filter is a sequential Monte Carlo algorithm for estimating the state of a dynamic system, such as a robot's pose, from noisy sensor data. It represents the system's probability distribution using a set of discrete samples called particles, each with an associated weight. This approach excels in non-linear and non-Gaussian scenarios where traditional filters like the Kalman filter struggle. The algorithm operates through a recursive cycle of prediction, update, and resampling.

During the prediction step, particles are propagated forward using a motion model. In the update step, each particle's weight is adjusted based on the likelihood of the latest sensor observation given the particle's hypothesized state. Resampling then discards low-weight particles and replicates high-weight ones, focusing computational resources on the most probable state hypotheses. This makes it robust for localization in known maps, a technique known as Adaptive Monte Carlo Localization (AMCL).

FLEET STATE ESTIMATION

Key Components of a Particle Filter

A particle filter is a sequential Monte Carlo method for state estimation. It represents a probability distribution using a set of random samples, or particles, each with an associated weight. This card grid breaks down its core algorithmic components.

01

Particle Set

The particle set is the core data structure, representing the estimated posterior probability distribution of the system's state. It consists of N discrete samples, or particles.

  • Each particle is a complete hypothesis of the system's state (e.g., a robot's x, y, and yaw).
  • The distribution of particles across the state space approximates the true probability density function.
  • A larger number of particles provides a more accurate approximation but increases computational cost.
02

Motion Model (Prediction Step)

The motion model, also called the process model or transition model, predicts how each particle's state evolves over time based on control inputs.

  • It accounts for the system's dynamics and inherent uncertainty.
  • For a mobile robot, this often involves propagating a particle's pose using odometry data from wheel encoders or an IMU.
  • The model adds process noise to each particle, which causes the particle cloud to disperse, representing increased uncertainty after movement.
03

Observation Model & Likelihood (Update Step)

The observation model predicts what sensor readings should be expected given a particle's hypothesized state. It is used to compute the particle's importance weight.

  • The weight is proportional to the likelihood of the actual sensor measurement, given the particle's state.
  • Particles whose predicted observations closely match the real sensor data receive high weights.
  • This step focuses the particle distribution on regions of the state space that are consistent with the latest evidence.
04

Resampling

Resampling is the critical step that mitigates particle degeneracy, where most particles have negligible weight.

  • It creates a new particle set by drawing (with replacement) from the current set, with a probability proportional to each particle's weight.
  • High-weight particles are likely to be duplicated; low-weight particles are discarded.
  • The new set has uniform weights, concentrating computational resources on the most probable state hypotheses. Over-resampling can lead to particle impoverishment, where diversity is lost.
05

State Estimation Output

The final estimated state is derived from the weighted particle set. Common methods include:

  • Weighted Mean: The most common estimate, calculated as the sum of each particle's state multiplied by its weight.
  • Maximum A Posteriori (MAP): Using the state of the single particle with the highest weight.
  • Robust Estimates: Using statistical measures like the weighted median to reduce the influence of outlier particles. This output provides the unified pose estimate for a single agent within the fleet.
FLEET STATE ESTIMATION

How a Particle Filter Works: The SIR Algorithm

The Sequential Importance Resampling (SIR) particle filter is a foundational algorithm for estimating the state of a dynamic system, such as a robot's position, using a set of weighted random samples.

A particle filter is a sequential Monte Carlo method that approximates the posterior probability distribution of a system's hidden state using a set of random samples called particles. Each particle represents a hypothesis about the system's state (e.g., a robot's pose) and carries a weight representing its likelihood given sensor data. The algorithm operates in a predict-update-resample cycle: it first propagates particles forward using a motion model, then updates their weights using an observation model, and finally resamples to focus computational resources on the most probable hypotheses.

The SIR (Sequential Importance Resampling) variant explicitly performs resampling at every time step to mitigate particle degeneracy, where most particles carry negligible weight. This resampling step duplicates high-weight particles and discards low-weight ones, creating a new set of unweighted particles. While effective for non-Gaussian and non-linear systems where the Kalman filter fails, the particle filter's accuracy and computational cost scale with the number of particles, requiring careful tuning for real-time applications like robot localization and multi-target tracking.

FLEET STATE ESTIMATION

Particle Filter Use Cases in AI & Robotics

Particle filters are a cornerstone of probabilistic state estimation, enabling systems to track complex, non-Gaussian states in dynamic, real-world environments. Their versatility makes them critical for robust autonomy.

01

Robot Localization in Known Maps

The classic application, known as Monte Carlo Localization (MCL) or Adaptive Monte Carlo Localization (AMCL). A robot uses a particle filter to estimate its pose (position and orientation) within a known map.

  • Particles represent hypotheses of the robot's location.
  • Each particle is weighted by how well its predicted sensor observations (e.g., LiDAR scans) match the actual map.
  • The filter naturally handles global localization (the 'kidnapped robot' problem) and position tracking.
  • It is robust to multi-modal distributions, meaning it can represent multiple possible locations before converging.
02

Simultaneous Localization and Mapping (SLAM)

Known as FastSLAM, this approach uses a Rao-Blackwellized particle filter to solve the SLAM problem.

  • Each particle carries its own hypothesis of the robot's trajectory and the resulting map.
  • The map for each particle is typically represented as a set of landmarks with associated Gaussian uncertainties, which are updated analytically.
  • This elegantly handles the data association problem (matching observations to landmarks) within each particle's hypothesis.
  • It is particularly effective for feature-based maps in environments with distinct landmarks.
03

Tracking Dynamic Objects

Particle filters excel at tracking the state of other dynamic agents, a critical capability for collision avoidance and multi-agent coordination.

  • The state vector for each tracked object can include position, velocity, acceleration, and even intent.
  • The multi-modal nature of the filter allows it to represent multiple plausible future trajectories (e.g., at an intersection).
  • This is used in autonomous vehicles to track pedestrians and other cars, and in robotics to track human collaborators.
  • The observation model often fuses data from cameras, LiDAR, and radar.
04

Sensor Fusion for Non-Linear Systems

When sensor fusion involves highly non-linear models where the Extended Kalman Filter (EKF) may fail, particle filters provide a robust alternative.

  • They can seamlessly integrate heterogeneous sensors like visual-inertial odometry (VIO), wheel odometry, and GPS.
  • The filter does not require linearization of the motion or observation models, avoiding linearization errors.
  • This is crucial for systems with complex dynamics or bearing-only sensors (e.g., a camera observing angles to landmarks).
  • It provides a full probability distribution, not just a mean and covariance, revealing uncertainty structure.
05

Fault Diagnosis and System Health Monitoring

Particle filters can be used for model-based fault detection by estimating hidden parameters of a system.

  • Particles can represent hypotheses about the internal state and parameters like sensor bias, actuator wear, or battery degradation.
  • Significant deviations in estimated parameters from nominal values can signal a fault.
  • This is applied in fleet health monitoring to predict maintenance needs for robots by tracking changes in their motion or power models.
  • It enables predictive maintenance by identifying gradual performance degradation.
06

Planning Under Uncertainty (POMDPs)

In Partially Observable Markov Decision Processes (POMDPs), the agent must plan actions without full knowledge of the state. Particle filters are the standard tool for maintaining the belief state.

  • The set of weighted particles is the belief state, representing the distribution over possible true states.
  • This belief is updated after each action and observation.
  • Planning algorithms then reason over this particle-based belief to choose optimal actions.
  • This framework is fundamental for robust robotic decision-making in unpredictable environments.
STATE ESTIMATION ALGORITHM COMPARISON

Particle Filter vs. Kalman Filter Variants

A feature comparison of sequential Monte Carlo and recursive Bayesian filtering approaches for state estimation in heterogeneous fleets.

Feature / CharacteristicParticle Filter (PF)Extended Kalman Filter (EKF)Unscented Kalman Filter (UKF)

Core Methodology

Sequential Monte Carlo sampling

First-order Taylor series linearization

Deterministic sigma-point sampling

State Distribution Representation

Set of weighted particles (empirical)

Single Gaussian (parametric)

Single Gaussian (parametric)

Inherently Handles Nonlinear Systems

Inherently Handles Non-Gaussian Noise

Computational Complexity

O(N) where N = number of particles

O(n³) where n = state dimension

O(n³) where n = state dimension

Typical Memory Footprint

High (stores thousands of particles)

Low (stores mean & covariance)

Low (stores mean & covariance)

Optimality Guarantee

Asymptotically optimal (as N → ∞)

Optimal for linear Gaussian systems

Optimal to 3rd order for nonlinearities

Primary Failure Mode

Particle degeneracy / impoverishment

Divergence due to linearization error

Divergence due to poor sigma-point spread

Ease of Implementation

Moderate (requires resampling logic)

Moderate (requires Jacobian derivation)

Moderate (requires tuning of scaling parameters)

Real-Time Performance on Edge Hardware

Variable (scales with particle count)

Consistently fast for low-dimensional states

Consistently fast for low-dimensional states

Multi-Modal Distribution Handling

Common Use Case in Fleet Orchestration

Global localization in known maps (AMCL), sensor fusion with highly non-Gaussian noise

Fusing GPS/IMU for vehicle tracking, linearized visual-inertial odometry

Fusing LiDAR/IMU for ground vehicle state estimation, radar tracking

FLEET STATE ESTIMATION

Frequently Asked Questions

A particle filter is a sequential Monte Carlo method used for state estimation that represents the probability distribution of the system state using a set of random samples, or particles, with associated weights. This FAQ addresses common technical questions about its operation, applications, and trade-offs in heterogeneous fleet orchestration.

A particle filter is a sequential Monte Carlo method for estimating the state of a dynamic system by representing its probability distribution with a set of discrete, weighted samples called particles. It operates in a recursive predict-update cycle. First, in the prediction step, each particle is propagated forward in time using a motion model, which predicts the next state based on the previous state and control inputs, while adding process noise to account for uncertainty. Second, in the update step, the importance weight of each particle is computed by comparing its predicted sensor readings (via an observation model) against actual sensor data; particles whose predictions better match the real measurements receive higher weights. Finally, a resampling step is performed to prevent particle degeneracy, where low-weight particles are discarded and high-weight particles are duplicated, concentrating 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.