Relational Uncertainty

 

Problem Description:

Input:

 

A network of sensors s(i) at pre-fixed locations.  Three targets t(j)

Output:

 

The probability that the three targets are counter clockwise oriented.

 

Algorithm

Initial State:

The belief state of each target t,  (B(t)), represented by a uniform grid G(t).  The grid has two fields, a bounding box and a double array of float P(x,y) that represents the probability that target t is located at the grid (x, y)

 

The initial belief state of target t is computed by combining the measurement from a few sensors. (In our simulations, 2 measurements are used for each target)

Relation Determination:

 

Data structure:

 

Hierarchical Belief State for each target

 

Hierarchical Belief State is a pyramid computed from bottom up from the grid representation of the belief state.

Each level of the pyramid is a sub-sample of its lower level, i.e. the cell located at (x, y) in level 2 of the pyramid contains the cells (x, y), (x+1, y), (x, y+1) and (x+1, y+1) in level 1.  (in both spatial dimensions and mass of distribution)

 

The hierarchical belief state is computed for each target after its initial belief state is established. When a target’s belief state is updated with new measurement, the mass distribution of the hierarchical belief state needs to be adjusted but not the physical dimension.  This saves the need for reclassification of the boxes, which is a central cost in computing the relation of the three distributions.

 

 

Four bins. CCW (counter clock wise) CW(clock wise)  CL(collinear) and UP(unprocessed)

 

Each bin contains:

  1. a stack of triplets of boxes.
  2. the summed mass of the triplets.

 

Algorithm:

Overview:

 

Step 1:

For each target t

                        Estimate initial belief state B(t) and compute hierarchical belief state HB(t)

Step 2:

            Start with 4 empty bins, CCW, CW, CL and UP.

            Add the triplet formed by the top level boxes of the 3 HB(t) into UP

            While (relation (CCW.mass, CW.mass, CL.mass, UP.mass) == unresolved)

                        Compute_Relation(CCW, CW, CL, UP)

                        If (relation_resolved(CCW.mass, CW.mass, CL.mass, UP.mass) ==unresolved)

                                    Select a new sensor (s)-target (t) measurement

                                    Update B(t) using new measurement

                                    Update mass distribution in HB(t) using new B(t)

(**note spatially B(t) is entirely contained in HB(t))

For each bin in (CCW, CW, CL, UP)

            Update_Mass_Distribution(bin, HB(t))

End

                        End

            End

 

Compute_Relation(CCW, CW, CL, UP)

 

While relation (CCW, CW, CL, UP) may be resolved by more computation

and total number of triplet classified < maximum number of triplet budgeted

            Take the triplet with the most mass out of UP bin,

            UP.mass -= mass_of(triplet)

            Result = counter clock wise test on the boxes

            If result ccw

                        Put triplet into CCW bin

                        CCW.mass += mass_of(triplet)

            If result cw

                        Put triplet into CW bin

                        CW.mass += mass_of(triplet)

            If result cl

                        Put triplet into CL bin

                        CL.mass += mass_of(triplet)

            If result is more processing needed

                        Select the largest (in space size not mass) box in the triplet

                        Split the box into 4 boxes,

                        Form 4 triplets with the two old boxes and the 4 new ones, add the 4 new triplets to UP bin

                        UP.mass += mass_of(triplet)

   End

 

Relation (CCW.mass, CW.mass. UD.mass, UP.mass)

 

Given a certainty threshold CT, the following cases means relation is resolved to the certainty desired:

  1. CCW.mass > CT => targets’ relation in counter clock wise
  2. CW.mass > CT =>targets’ relation in clock wise
  3. CL.mass > CT => targets’ relation is collinear

 

The following two cases means the relation is still unresolved

  1. UP.mass + max(CCW.mass, CW.mass, CL.mass) < CT ==> targets’ relation using current belief state is not resolvable when the mass distribution among the classified bins are too similar, which means more computation won’t be able to resolve the relation. In this case we should definitely stop computing and do more sensing, as more knowledge about the belief state of some target may help
  2. Either more classification (computation) with the existing distributions or more sensing can improve our knowledge of the relationship

 

 

 

Termination:

 

Compute_Relation can terminate the relation is resolved or can’t be resolved with any more computation, or computation budget in terms of total number of triplets processed has reached.

 

The whole algorithm can terminate if the relation is resolved with certainty above threshold CT and no more sensing or computing is needed. 

 

Classification of boxes:

The ccw test of 3 boxes can be done by a number of ways:

 

  1. brute force, just go through all triplet of point (64 of them) formed by the vertices of the boxes and perform ccw test on the vertices until all triplet have the same orientation, in which case return the orientation. If some triplets disagree with each other, if the size of all three boxes are 1(can no longer be split), return CL(collinear at the resolution of measurement), else return mp(more processing needed)
  2. we can improve the efficiency of this test by sorting the boxes but we are not going to expound on that here.

 

 

 

Sensor –Target selection

Simulated Ideal:

Given the simulated measurement of each sensor for each target in advance, we select the measurement that gives the best improvement in resolving relational uncertainty.  Theoretically, this would be optimal.

 

Expected Ideal

Knowing the current belief state of a target and the new sensor location, we can compute the expected new belief state and select the sensor-target pair whose expected belief state gives the best improvement in resolving relation uncertainty.   .

 

 

*****In the current implementation, to estimate the best improvement, we just compute the change in the distribution of mass in the current bins, we do not classify any more triplets, this can lead to misleading estimation of improvement as not all triplets are being considered

Geometric Heuristic

Given the center of mass (CM(t)) for each belief state B(t).  Take two CM(t) to form a line, draw a perpendicular line from the third CM(t), select the sensor that is closest to the perpendicular line and to the third target . (we want to select a sensor that is close to the target we are trying to localize while also minimize the ‘collinearity ‘ of this sensor with the other two targets)  Given the three CM(t), we have 3 permutations of this kind of arrangement, select the best one (the one with the shorted distance to the perpendicular line and third target)

 

Round Robin

Take the target with the most spread out distribution, select the sensor that best reduce location uncertainty of that target. (in the case of degeneracy, cycle through the targets)

 

 

Problems or Possibility for future improvement:

 

Better heuristic that simply the heaviest may be used to select the next triplet to process from the unprocessed bin.  Ideally we would like to have classified triplets whose distribution gives a good representation of all the triplets to be classified. In which case, the improvements computed using the new belief state in the first two algorithms would be better approximation to the actual improvement after all triplets are classified.

 

If the three targets are almost collinear, it might take a long time to terminate. Maybe we should measure the improvement of the relation certainty after each sensor-target measurement is incorporated, if  after going through several new measurement, and the quality of the relation resolution doesn’t change much, may be then the relation is indeed unresolvable  or collinear and it is time to terminate or select a better set of target to resolve

 

 

Experiment

 

All data are simulated using the same sensor -noise model

 

region dimension is 150x150 distance unit squares

amplitude is 30

sigma is .5

 

Forr each target,  two sensors placed about 14~16 units away are used to  generate the initial belief state.  There are 6 initial sensors.

 

The rest sensor map is generated has 50x50 sensors that are almost  uniformly placed with small jitter, so the distance between sensors is around 3-5 units.

 

 

The result directory store the results of different test runs, the top level directory names are formed by certainty threshold-computation budget

 

75-200 store the test runs where the certainty threshold is set at 75% and the maximum triplet processed for each computation iteration is 200

90-400 store the test runs where the certainty threshold is set at 90% and maximum triplet processed for each computation iteration is 400

 

Each of them contain sub directory labeled tri#.  Each sub directory contains the run with the same initial target locations and belief states.  Each tri# directory contain the belief state and terminating relation using different sensor-target selection algorithm : geom(geometric heuristics), target(round robin), ideal (simulated ideal) (absent in the 90-400 run)