CodePaper
Particle Filter Speed Controller for a Closed-Loop Vehicle System

Particle filters provide an effective stochastic method for predicting an unknown distribution; this makes them suitable for predicting the underlying properties of dynamical systems. Utilizing these predicted properties in combination with Ackermann’s formula can provide the ideal control law for producing the desired system response. We present a particle filter speed controller for predicting the underlying properties of a vehicle system and then providing the appropriate control law to set the steady-state system response equal to the reference value.

The problem

Cruise control matters in modern vehicles, but a controller designed for one vehicle needs that vehicle's properties: its mass and its damping coefficient from friction and wind drag. With a particle filter, those values do not need to be known up front. They can be estimated and converged upon rapidly, and the same approach generalizes to similar classes of dynamical systems. It is also easy to verify, because we can run a closed-loop simulation with a plant whose true properties the filter never sees.

The vehicle model

Summing the horizontal forces on a vehicle on flat ground gives Newton's second law with an engine force u, a friction and drag term b·v, and the inertia m·v̇. That is a first-order state-space system with x = v:

m v̇ + b v = u
ẋ = −(b/m) x + (1/m) u
y = x

The controllability matrix of this one-state system is just 1/m, so Ackermann's formula reduces to a symbolic control law. We place the closed-loop pole at the stable value −1.5:

u = m · ( −b/m + 1.5 ) · e

Here e is the error between the reference and the measured speed. The control law is only as good as the m and b put into it, which is the job of the particle filter. A discretized form of the state equation, x(t+1) = x(t) + (−(b/m) x(t) + u/m)·Δt, lets each candidate (m, b) predict the speed it would have produced.

The particle filter

Each particle is a guess of the pair (m, b) together with a weight. The filter works as follows.

  1. Initialize N particles uniformly between bounds: 453.592 to 2267.962 kg (1,000 to 5,000 lb) for mass and 1 to 150 N·s/m for damping.
  2. For each particle, compute the control law from its m and b, predict the next speed with the discretized equation, and set its weight to the absolute difference between the predicted and the measured speed. A smaller weight means a more probable guess.
  3. Sort the particles by weight and keep the best K, a fixed keep percentage of N.
  4. Replace the other N − K by sampling a kept particle at random and drawing a new one from a Gaussian around it, with a per-property kernel sigma.
  5. Repeat.
Four steps in a row: initialize N particles uniformly, use each particle to set the control law and predict the speed, keep the best K by weight, and resample the rest from Gaussians around the kept particles. An arrow returns from resampling to the use step.
One resampling step of the filter. The weight is a prediction error, so selection pulls the particles toward the true mass and damping.

The key assumptions are that the true m and b lie inside the initial bounds, that the time step in the discretized model matches the simulation's fixed step, that the saturation bounds are reasonable, and that compared trials use the same random seed.

The simulation

The loop is built in Simulink with MATLAB function blocks. A reference of 60 (26.8224 m/s) minus the measured speed forms the error, the particle filter controller outputs a force, a saturation block limits it to between −4570 N and 4000 N, and the state-space plant produces the speed. The limits come from typical car acceleration of about 4 m/s² and a common safety figure for braking deceleration of 4.572 m/s², each multiplied by a 1,000 kg car. Uniform random sensor noise is added to the measured speed.

Block diagram: a reference of 60 minus the measured speed gives an error that feeds the particle filter controller, then a saturation block from -4570 to 4000 newtons, then the vehicle plant. Uniform sensor noise of plus or minus 0.1 is added to the speed, which is fed back.
The closed loop. The controller sees only the speed error; the plant's true values of 1,000 kg and 50 N·s/m are hidden from it.

The trials

Six trials all use the same plant, 1,000 kg and 50 N·s/m, a time step of 1 and a pole of −1.5. They vary the number of particles (50, 200, 1,000) and the keep percentage (10% or 5%). Each trial is run twice, once without sensor noise and once with uniform noise between −0.1 and 0.1.

TrialParticlesKeepMass accuracyDamping accuracyMass std. (kg), no noiseMass std. (kg), noise
15010%99.84%99.97%20.413.32
2505%99.82%100%24.9111.73
320010%99.98%100%20.62178.3
42005%99.98%100%23.4481.17
51,00010%99.98%100%36.2777.78
61,0005%99.96%100%56.89108.8

Results

After 10 resampling steps, the mass and damping estimates are accurate to about 99% or better in every trial, with or without noise, and the closed-loop speed settles at the reference of 26.8224 m/s. The accuracy table above shows the no-noise runs; with noise the accuracies are within a few hundredths of a percent (mass 99.82% to 99.97%, damping 99.97% to 100%).

The standard deviation of the converged particle set tells a subtler story. With noise, the 50-particle trials have a lower mass spread than without it, while the 200 and 1,000-particle trials have a higher one. The paper reasons that a smaller keep percentage leaves a tighter set of particles, and with noise that holds for trials 1 to 4 (13.32 to 11.73, and 178.3 to 81.17) but reverses at 1,000 particles (77.78 to 108.8).

Standard deviation of the converged mass particles per trial, without noise then with noise: trial 1 20.4 then 13.32; trial 2 24.91 then 11.73; trial 3 20.62 then 178.3; trial 4 23.44 then 81.17; trial 5 36.27 then 77.78; trial 6 56.89 then 108.8. Noise lowers the spread for the 50-particle trials and raises it for the others.
Spread of the converged mass particles. Accuracy is nearly the same everywhere, but the spread grows with sensor noise once there are 200 or more particles.

Conclusions

We built a particle filter cruise controller that finds a vehicle's mass and damping coefficient while it runs and uses them in a symbolic Ackermann control law to drive the speed to the reference. All six trials converged on the properties. Sensor noise widened the converged particle set once there were 200 or more particles, and the keep percentage changed the spread in ways that depend on the particle count and the noise. Future work includes models with more properties and non-linear dynamics, non-Gaussian sensor noise, and changing references such as steps at different times or a ramp, to test how quickly the filter responds.

A note from 2026

Treat the trial comparisons as single runs. Each trial was run once with one random seed, so differences in spread may not hold across seeds. The paper's text also says that without noise the 5% keep trials have the lower mass spread, but its own table shows the opposite (for example 20.4 at 10% against 24.91 at 5% in trials 1 and 2), and its conclusion says the estimates were accurate to above 99.9% when the tables show mass accuracy as low as 99.82%. The kernel sigma for mass is 2 in the parameter table and 10 in the text. I follow the tables where they disagree with the prose.

The paper is available as a PDF, and the Simulink and MATLAB code is in the GitHub repository.