The Kalman filter: helping chickens cross the road
mathvoices.ams.org
mathvoices.ams.org
[1] https://en.wikipedia.org/wiki/Kalman_filter#Estimation_of_th...
It remembers me a little of deep learning: just stack some layers. Except it's not just that easy.
Things clicked fairly fast for me when I tried this. It's just a weighted average between a prediction (which you can do easily using the error-propagation rules) and a new measurement.
It's still a work in progress, but we did dig up a couple other filter options to try out beyond the usual Extended Kalman (contributors very much welcome!) [1].
As another poster mentioned, finding the right parameters for the filters is essential, and involves a fair amount of testing and some trial and error to narrow them down to the right range for your application. There isn't a lot of info out there on that, either.
[1]: https://github.com/zephyrproject-rtos/zscilib/tree/master/sr...
I actually had to submit my thesis with - lets say not the best - results because I did not use the actual timesteps. My inertial navigation system for an autonomous rc model car would estimate paths that where kinda right, but always strongly distorted.
For weeks and months after the thesis defence it really bothered me and I regularly dived into the system to find the cause for it.
Some day I fiddled with the timesteps, rerun the evaluation and boom all the curves where perfectly aligned with the actual driving trajectory that we used to generate the data. I was amazed how good it now worked, and kinda sad that I could not present _these_ results for my thesis. Should have figured it out sooner. Too bad that all the literature, that I read so far, always only talked about fixed timesteps...
Kalman filters rock!
[1]: https://www.bzarg.com/p/how-a-kalman-filter-works-in-picture... [2]: https://news.ycombinator.com/item?id=29473271).
Does 'filter' (as it is used here) have a precise mathematical definition? The only other place where I've seen this word used is the 'bloom filter', which according to Wikipedia is not an algorithm like the Kalman filter but a data structure.
This is precisely the classic concept of an audio filter, which is, I believe, the inspiration for the term "filter" in other contexts. Bloom filters and selfie filters don't have much in common in a technical sense, but if you squint you can see the connection.
A common analogy is yo imagine it as an entity that can turn a block of stone to a sculpture, by removing material.