Back to contents pageHow to configure filters using Location Engine Config

How to configure filters using Location Engine Config

Summary

This article shows how to configure filters to reject outliers and provide robust location tracking without introducing latency:





Prerequisites

You should know the information in the following articles:



Guide

Cosmetic issues for stationary tags

Jitter on a stationary tag is reduced by a "static filter". When a location event is less than the static distance from the last one it is damped by blending it with the last event and damping it by a factor specified by static alpha.

But if the tag moves more than the static distance away from the last event its location is accepted immediately. If static distance is made too big (e.g. more than about 30cm) it will interfere with tracking in confusing ways.



Static distance and static alpha can be used as a cosmetic measure to reduce jitter on stationary tags, but a large static distance value should never be used.

Filters explained

Terminology

In order to understand how to optimise the filter settings for your application, you need to be aware of the following:



Tracking the tag over time

In the stateful filter, the following happens:



Losing track of the tag

There are 2 ways in which the stateful filter can lose track of the tag:

  1. Variance is so big that no outliers are rejected.
  2. Variance is too small and grows too slowly over time so that all good data is rejected as outlier data.
There are a couple of terms used to describe the filter state: After several events with low support we conclude that we have lost track of the tag.



Transitioning between modes





Stateless mode

There are 2 cases in which the stateless filter is required:

  1. The tag is seen for the first time so there is no filter state.
  2. Stateful mode has lost track of the tag.
The stateless filter uses a least-squares method to find the tag position that fits the given data with a residual standard error.

You can specify the acceptable maximum standard error for each cell:



Configuring the location algorithms

The stateful filter parameters and some of the stateless parameters are configured in the Location Engine Config "Filters" tab:



There are further stateless mode parameters in an individual cell's properties...



...and in the properties of the cell master sensor. This tab is only available by typing Ctrl-Shift-A in the main LEC window. From 2.1.6, the max standard error text box is repeated next to the "2.1.5 error mode" check box to remind you to that if you change the error mode, you need to change the max standard error as well:





Table 1: The stateful algorithms

Choose the model with the fewest dimensions that still accurately describes your tracking scenario. This pushes knowledge of the world into the filter, making outlier rejection better.





Table 2: Parameters describing object motion





Table 3: Filter state management parameters





Table 4: Stateless mode parameters





Step-by-step configuration process

  1. Optimize tracking using stateless mode: Make sure orientations and cable offsets are correct, use 2.1.5 error mode and choose an acceptable max standard error.
  2. Choose a filtering algorithm: If possible, use "static fixed height information filtering". Refer to table 1 to check which one is suitable for your application.
  3. Set static distance to zero: It can make results confusing when tuning.
  4. Set parameters describing object motion: Refer to table 2.
  5. Set the required update rate of the tag: Remember that a low update rate means more filter decay between updates.
  6. Specify state reinitialization behaviour: Refer to table 3.
        - Set both variance parameters low.
        - Set low support reset count to 1.
        - Increase min reset measurements to just below the value where you stop getting location events.
        - Set low support reset count back to its default value.
  7. Specify thresholds for acceptable uncertainty: Refer to table 3.
        - Set the sighting trace flag on the cell master.
        - Set both variance parameters high.
        - Track the tag in normal motion and reduce max position variance to just above the value where the trace (LEC log) shows frequent low support and filter resets (i.e. calls to the stateless filter).
        - Set max valid position variance less than or equal to max position variance and such that the quality of asserted location events looks good.
  8. Specify stateless mode sanity check parameters: Refer to table 4.
  9. Set static distance to some small value.



Alternative configuration process

The default settings have been chosen to support a wide range of sensible real-world situations, so it is always worth trying them first:

  1. Optimize tracking using stateless mode: Make sure orientations and cable offsets are correct, use 2.1.5 error mode and choose an acceptable max standard error.
  2. Choose a filtering algorithm: If possible, use "static fixed height information filtering". Refer to table 1 to check which one is suitable for your application.
  3. Keep all the default parameters.
  4. Set the required update rate of the tag.







Back to top