We have a position sensor that under some conditions receives some high frequency noise. We can eliminate that very well with a simple mean filtering.
Unfortunately this causes too much lag when there is not any noise (at the beginning of the graph at s=90 to 95). Thus we have been experimenting with Savitzky-Golay filtering:
However, the results are not that great. The filtering under heavy noise is worse than mean filtering (Or the latency reduction is not that good). What else can we do?
Some more background:
- The problem is an online problem, so we cannot retrospectively analyze the data and for instance shift the mean by half a period.
- The 'regular' movement is performed by a human moving an object, the 'noise' is from a high frequency vibration.