CH03 - 1algorithms Used in Positioning Systems
CH03 - 1algorithms Used in Positioning Systems
CH03 - 1algorithms Used in Positioning Systems
Scene Analysis
The observed features are usually specific and unique. The scene could be
radio frequency waves, acoustic sound, visual images or any other
measurable physical phenomena which usually exist near to the object.
Algorithms Used in Positioning Systems
The particular characteristic about the surrounding at each location can be, for
instance, a thermal image or a set of sensed APs, which is so-called a “fingerprint”
of the location.
The latter phase of estimating locations is known as the on-line phase, positioning
phase, or recognition phase.
To keep it consistent, we use the expression of the learning phase and the
positioning phase. Figure 3.3 demonstrates the fundamental principle of
fingerprinting.
Algorithms Used in Positioning Systems
Figure 3.3: the fundamental principle of fingerprinting (the learning phase and
the positioning phase).
Figure 3.4: the collection phase, learning phase and positioning phase of Wi-Fi
fingerprinting
Algorithms Used in Positioning Systems
Assume a Wi-Fi enabled device always receives the same signal strength in
the same location (i.e., the RSSs and coordinates), such RSSs and
coordinates would be served as a unique ‘fingerprint’ of this location.
We can collect a ‘fingerprint’ in each location and store them in a database.
Every time we come to a new location, we detect the Wi-Fi signal and
estimate the location by measuring the similarity between current and
stored fingerprints.
RF–fingerprinting consists of two phases; the offline phase and the online
phase.
In the offline phase (Training phase) the area of interest is divided into
grids, in each grid, many RSS are collected from surrounding APs and
averaged to remove the fast fading effect, averaged RSS with
corresponding location (also called reference points RP) are stored in a
database known as Radio map.
𝑛
2
𝑑 = √∑(𝑅𝑆𝑆𝐼𝑜𝑓𝑙𝑖𝑛𝑒𝑖 − 𝑅𝑆𝑆𝐼𝑜𝑛𝑙𝑖𝑛𝑒𝑖 )
𝑖=1
where:
𝑅𝑆𝑆𝐼𝑜𝑓𝑙𝑖𝑛𝑒𝑖 : RSSI value from 𝑖 𝑡ℎ reference nodes during offline phase;
𝑅𝑆𝑆𝐼𝑜𝑛𝑙𝑖𝑛𝑒𝑖 : RSSI value from i𝑖 𝑡ℎ reference nodes during online phase;
𝑛: Number of received reference nodes;
𝑖: The identity of the reference node
The level of achieved accuracy depends heavily on how many APs and RPs
used. Adding more APs will reduce the possibility of having ambiguous
results and tend to enhance the localization process.
Adding more RPs will enhance resolution; however, this will cost more
labour work. Another disadvantage of this approach is the need for regular
updates for the radio map as the building layout or the number of operating
APs may be changed.
This basic Euclidean Distance algorithm can be used for location estimation
assuming indoor environment is static and small. For dynamically, changing
environments the basic Euclidean Distance algorithm has to be modified by
normalization. This normalization takes into account number of reference
nodes received at a specific point within the calibration phase and
positioning phase. The resulting modified equation is
𝑚
1 2
𝑑 = √ ∑(𝑅𝑆𝑆𝐼𝑜𝑓𝑙𝑖𝑛𝑒𝑖 − 𝑅𝑆𝑆𝐼𝑜𝑛𝑙𝑖𝑛𝑒𝑖 )
𝑚
𝑖=1
The K-Nearest Neighbor algorithm requires the online RSS to search for K
closest matches of known locations in signal space from the previously-built
database according to root mean square errors principle.
By averaging these K location candidates with or without adopting the
distances in signal space as weights, an estimated location is obtained via
weighted K-NN or unweighted K-NN.
K-NN classifies a new data point based on the majority of its K-nearest
neighbors. For different applications, different distance functions are
defined to quantify the ‘similarity’ between the training and testing points
In the simplest case (K = 1), the algorithm finds the single closest match
and uses that fingerprint’s location as prediction. In this algorithm, K is the
parameters adapted for better performance
More specifically, the first set of data is the offline samples of RSS from N
APs in the area. Each element in a vector is an independent RSS (in dBm)
collected from APs in the location.
𝑆 = {𝑠1 … 𝑆𝑛 ∈ ℛ 𝑛 }
Algorithms Used in Positioning Systems
The K-NN algorithm requires the collection of data {(𝑠𝑖 , 𝑣𝑞 , 𝑖, 𝑞 ∈ 𝑁)} for n
locations in the site, where 𝑣𝑞 is the known location of the 𝑞 𝑡ℎ measurement
and the vector 𝑠𝑖 is the ‘fingerprint’ of the location 𝑣𝑖 .
When a receiver in unknown location A becomes aware of a new fingerprint
r, it searches for the fingerprint 𝑠𝑖 that is closest to r and then estimates
the location.
The unknown location for r is decided by a majority vote from the K shortest
distance fingerprints.