rlabbe / filterpy

Python Kalman filtering and optimal estimation library. Implements Kalman filter, particle filter, Extended Kalman filter, Unscented Kalman filter, g-h (alpha-beta), least squares, H Infinity, smoothers, and more. Has companion book 'Kalman and Bayesian Filters in Python'.
MIT License
3.22k stars 612 forks source link

Does only the noise ratio matter in Kalman filters? #291

Open davidpagnon opened 10 months ago

davidpagnon commented 10 months ago

I am working on the capture of sports movements, and in particular on X, Y, Z positions of a set of key points. Since measurements are somewhat noisy, I would like to implement a Kalman smoother with a constant acceleration process model, leveraging filterpy.

  1. To my great surprise, it seems like it does not matter what the values of measurement noise and process noise are, as long as the ratio does not change. I can multiply both noises by a thousand, test it with different data, it does not make any difference. I'm sure I must be missing something, but what? 🤔

  2. Another question: results are best when my process noise is a 100 times higher than my measurement noise. This seems quite odd, as in most if not all examples I found online, the measurement noise is much higher than the process noise.

Any input would be much appreciated, thanks in advance! Here is my code if you need it.