# Unified Fingerprinting/Ranging Localization in Harsh Environments

Authors: Javier Prieto; Juan F. De Paz; Gabriel Villarrubia; Fernando De la Prieta; Juan M. Corchado
Journal: International Journal of Distributed Sensor Networks
 (2015)

---

## Abstract

Context-awareness in wireless sensor networks (WSNs) relies mainly on the position of objects and humans. The provision of
this positional information becomes challenging in the harsh environmental conditions where WSNs are commonly deployed.
With an antagonistic philosophy of design, fingerprinting and ranging have emerged as the key technologies underpinning
wireless localization in harsh environments. Fingerprinting primarily focuses on accurate estimation at the expense of exhaustive
calibration. Ranging mainly pursues an easy-to-deploy solution at the expense of moderate performance. In this paper, we present
a resilient framework for sustained localization based on accurate fingerprinting in critical areas and light ranging in noncritical
spaces. Such framework is conceived from the Bayesian perspective that facilitates the specification of recursive algorithms for
real-time operation. In comparison to conventional implementations, we assessed the proposed framework in an indoor scenario
with measurements gathered by commercial devices. The presented techniques noticeably outperform current approaches, enabling
a flexible adaptation to the fluctuating conditions of harsh environments.


---

## Body

## 1. Introduction

The burgeoning demand for context-aware services and smarter environments has been largely motivated by the proliferation of the increasingly dense wireless sensor networks (WSNs) and intelligent embedded devices [1–5]. These services and environments accommodate applications in diverse fields such as healthcare [6–8], emergency [9–11], or industry [12–14]. In order to satisfy such a demand, the positional information plays a crucial role and has inevitably put indoor localization in the forefront of research [15–21]. Current positioning techniques that rely on global navigation satellite systems (GNSS) operate robustly in open areas and sparse environments [16, 22]. However, there is no alternative technique with analogous performance and affordable complexity in indoor areas or harsh environments [23, 24]. The proposed alternatives can be coarsely classified into fingerprinting and ranging localization techniques [25–35].Fingerprinting techniques determine the location of a mobile target from position-related information provided byoffline andonline measurements [25–28]. In theoffline phase, different features from the transmitted signals in the wireless network are stored at several positions to form a database of location fingerprints. In theonline phase, the position is estimated by comparison of the new received values with the database (i.e., with their fingerprint). Fingerprinting techniques involve two major drawbacks: they require an arduousoffline phase of calibration and are very sensitive to fast environmental changes [25].Ranging techniques determine the location of a mobile target from range-related information provided by time-of-arrival (TOA) [29–31] or received signal-strength (RSS) [32–34] measurements. In a first stage, the distance to a set of anchors with known positions is estimated from the signals transmitted to the target. In a second stage, the position is estimated by a process known as trilateration (i.e., intersection of circles). Ranging techniques suffer from two dominant limitations: their accuracy is far from fingerprinting methods and falls down under multipath and non-line-of-sight (NLOS) conditions [35].Strengths and weaknesses of fingerprinting and ranging localization have inevitably focused the challenge in developing unifying systems without substantially increasing complexity and cost. Such solutions will enable fine localization via fingerprinting in places where the accuracy is critical or when the database can be frequently updated and coarse localization via ranging in areas where there is no database or when it has become obsolete. In [36], fingerprint- and TOA-based methods are coupled to localize UWB devices from a maximum-likelihood (ML) perspective; in [37], fingerprint- and RSS-based techniques are fused by using RFID tags/readers and particle filtering; in [38], fingerprint-based localization and channel-estimation tracking are combined to localize UWB devices via extended Kalman filter (EKF); in [39], fingerprinting positioning and pyroelectric infrared sensors are joined to overcome error induced by RSS variation.In this paper, we propose framework and algorithms for unified fingerprinting/ranging in harsh environments based on Bayesian filtering. Such framework integrates position-related measurements from the first and range-related measurements from the second. Moreover, it further considers the dynamic nature of the wireless channel entailing more accurate ranging localization. Specifically, the main contributions of the paper are as follows:(i)
We define a unifying framework for target localization that accommodates fine estimates via fingerprinting and coarse estimates via ranging.(ii)
We provide realistic likelihood functions to model fingerprints and path-loss exponents based on kernel mixtures.(iii)
We derive algorithms to implement such framework by means of the unscented transformation that allows for efficient computation.(iv)
We assess the performance of the developed framework and algorithms in a real scenario over conventional light devices.The rest of the paper is organized as follows: Section2 outlines the multiagent architecture proposed in previous works for information fusion; Section 3 presents the framework for unified data fusion of fingerprinting/ranging measurements; Section 4 offers efficient algorithms to enable real-time operation under the proposed framework; Section 5 assesses the provided algorithms under an experimental case study with light devices; and Section 6 summarizes the conclusions drawn from the research.Notations.
x
1
:
k denotes the sequence of random vectors {x1,…,xk}; ·T denotes the transpose of its argument; In∈Rn×n denotes the n×n identity matrix; f(x) denotes the probability density function of a continuous random variable x; and φ(x;μ,Σ) denotes the probability density function of a Gaussian random vector x~N(μ,Σ).


## 2. Previous Work

This section provides a general overview of the multiagent architecture based on virtual organizations that we presented recently to accomplish the information fusion problem [40]. The virtual organization of agents manages the resources of the Cloud system in which it is deployed. It was created with the PANGEA platform that facilitates the development of agents in light devices and the integration of different hardware [41, 42]. The architecture is organized in 4 layers as can be seen in Figure 1 and that is what we briefly describe here for completeness [40].Figure 1
The architecture presented in previous works consists of a multiagent architecture based on virtual organizations that integrates with an information fusion model [40].Layer 0. It defines communication with sensor networks of different nature and gets the raw (encapsulated) data from them.Layer 1. It processes the contextual information obtained from layer 0 and provides a set of low-level services for this purpose.Layer 2. It incorporates agents specifically designed to interact with layer 1 and brings others specialized in information fusion.Layer 3. It allows the management and customization of services to end users and facilitates decision-making by the user.In the presented architecture, the fusion of different information flows is accomplished in layer 2. However, the low-level services that extract information from row data are implemented in layer 1. The greater the information extracted regarding a parameter in layer 1 the better the performance of the fusion model in layer 2 [43, 44]. In our previous work, we focused on layer 2, specifically on workflow and fusion organizations [40]. In this paper, we focus on layer 1 and layer 2, specifically on the processing of RSS data to extract position-related information.


## 3. Localization Framework

In this section, we formulate the problem of localization in harsh environments and provide a general framework for its solution based on optimal recursive Bayesian filtering [45, 46].


### 3.1. Problem Statement

In the following, we are going to assume a two-dimensional scenario where we estimate the position of a mobile target by fusing information provided by RSS measurements. In order to do that, we first accomplish anoffline phase in which we collect RSS measurements at a set of M fingerprint points, {fm}m=1M, covering only a selected area. In theonline phase, we collect again RSS measurements, {yk}k∈N, at discrete time instants, tk∈N, inside or outside the selected area (hereinafter, “fingerprinting area” or “ranging area,” resp.). From these measurements, we estimate the state vector, {xk}k∈N. Next, we determine the entries to state and measurement vectors.The state vector contains the position and its first derivatives so that{xk}k∈N is a Markov chain (i.e., the current state only depends on the previous one) [35, 45]. In this paper, such a vector is augmented to include the path-loss exponent with respect to every anchor used in the ranging area (see Section 3.2). Therefore, the state vector is xk=[pk,vk,ak,βk]∈R6+L, where pk∈R2 is the target’s position, vk∈R2 its velocity, ak∈R2 its acceleration, βk∈RL the vector of path-loss exponents, and L∈R the total number of anchors used for ranging.The measurement vector conveys any state-related information received at time instanttk (i.e., its dimension may be different from the previous one). We have to use different measurements vector depending on whether we are within the fingerprinting or the ranging area. In the former case, the state vector is yk=ykf∈RLk, where ykf∈RLk are the RSS measurements received at time tk. In the latter case, the state vector is yk=[yks,ykβ]∈R2Lk, where yks∈RLk are the RSS measurements received at time tk and ykβ∈RLk the path-loss exponents measured with respect to the visible anchors. In both cases, Lk∈R is the number of visible anchors at that particular moment.In addition to the information conveyed by the measurements, the fact that the sequence of positions is highly correlated in time can also be used as another source of information. With the defined measurements and state vectors, it can be assumed that, given the current state vector,xk, the measurement vector, yk, is independent of all previous and future states and measurements [35, 45]. Therefore, we can build the hidden Markov model (HMM) shown in Figure 2 that leads to two kinds of dependence between the random variables: the relationship between the state vector in time tk and the state vector in time tk-1, that is, fxk∣xk-1, calleddynamic model; and the relationship between the measurements and the state vector in each time, that is, fyk∣xk, calledmeasurements model [35, 45]. (Note that, in addition to different measurements vectors, we have to use different measurements models for fingerprinting and ranging areas since the unknown dependencies between them prevent us from utilizing a joint model.) Next subsection defines both models for fingerprinting/ranging localization in harsh environments. (The proposed framework accommodates other position-related information given by diverse devices such as GPS receivers or foot-mounted inertial measurement units [47].)Figure 2
HMM for states and measurements evolution. The relationship betweenxk and xk-1 and the relationship between yk and xk are the only two kinds of dependence.


### 3.2. Involved Models

In the following, we define realistic models for the fusion of time-evolution and measuring information.


#### 3.2.1. Dynamic Model

The dynamic model is characterized by the conditional densityfxk∣xk-1.Given the position, velocity, and acceleration at timetk-1, pk-1, vk-1, and ak-1, we can approximate their values in time tk, pk, vk, and ak, by means of their Taylor series expansion as [45](1)
p
k
v
k
a
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
I
2
Δ
k
I
2
0
0
I
2
p
k
-
1
v
k
-
1
a
k
-
1
+
n
k
d
,
1
, where Δk=(tk-tk-1)∈R is the sampling interval and nkd,1∈R6 is the error term. To model this error term as white Gaussian noise (i.e., as a discrete Wiener process) is the most common.The characteristics of the wireless channel are highly related in time [48–50]. However, this fact is rarely considered in the design of positioning filtering algorithms [51]. In this paper, given the vector of path-loss exponents at time tk-1, βk-1, the vector of path-loss exponents at time tk, βk, is modeled as(2)βk=βk-1+nkd,2, where the term nkd,2∈RL is white Gaussian noise.Therefore, the dynamic model,fxk∣xk-1, is given by(3)fxk∣xk-1=φxk;Fkxk-1,Σkd,where the transition matrix(4)
F
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
0
I
2
Δ
k
I
2
0
0
0
I
2
0
0
0
0
I
L and Σkd∈R(6+L)×(6+L) is the covariance matrix corresponding to the noise vector [nkd,1,nkd,2].


#### 3.2.2. Ranging Likelihood

The measurements model in ranging areas is characterized by the likelihoodfyks∣xk.The RSS values are attenuated, among other factors, by the distance between target and anchors. This attenuation is proportional to the inverse of the distance raised to a path-loss exponent [34, 35]. In logarithmic units, we have that, for the lth anchor, with position p(l)∈R2,(5)yks=α-10βklog10⁡pl-pk+nks, where α∈R is a constant that depends on several factors such as fast and slow fading, gains in transmitter and receiver antennas, and the transmitted power and βk∈R is the path-loss exponent that characterizes the wireless channel [49]. Finally, nks is a Gaussian noise term caused by shadowing [34, 35]. The value of α can be previously known, for example, by averaging measured values at the reference distance (in this case, 1 meter away from the anchor) or by self-calibration with measurements shared among anchors (with known positions) [18]. The path-loss exponent, βk, in turn, can be dynamically obtained or trained in each scenario [27, 34].Then, the RSS measurements in ranging areas are governed by the likelihood,(6)fyks∣pk=φyks;α-10βklog10⁡pl-pk,σks,where σks∈R is the standard deviation corresponding to nks.Figure3 represents the performance of the likelihood function defined in (6). Figure 3(a) depicts the position of the anchors with known positions (in orange) as well as the position of the target (in red). Figure 3(b) shows the likelihood values obtained in the area by means of (6) after receiving one RSS measurement from every anchor. Figure 3(c) shows the likelihood values in the fixed axis (indicated in Figure 3(b)) obtained by means of (6) for different numbers of RSS measurements received from anchor AP1. From Figure 3 we can point out that the greater the number of measurements the narrower the likelihood in the direction joining target and anchor. This result is in concordance with the known fact that each range measurement only provides information about the position in the direction joining target and anchor [17].Figure 3
The defined likelihood for ranging areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Anchors’ positions
(b)
2D ranging likelihood
(c)
1D ranging likelihoodIn order to generalize the localization framework, we here consider the most general case where path-loss exponents are dynamically estimated, for which a variety of algorithms can be found in the literature [34, 52–56]. Specifically, we adhere to the technique proposed in [34] based on maximizing the compatibility of the distances between the target and the anchors given a set of received RSS values and subject to a set of feasible solutions, Λ. (The set of constrains can come, e.g., from feasible distances between the target and the anchors based on transmission power and antenna gains [34].) That is,(7)β^k=argmaxβk⁡Cyks,α,βk,pk,pll=1,…,Lks.t.βk∈Λ, where C(·) is the compatibility function as defined in [34].Given the actual state, we can treat estimates of path-loss exponents as independent additional measurements,ykβ, related with the state by the model(8)ykβ=βk+nkβ, where nkβ∈RL is white Gaussian noise. (Note that this is a mild assumption since the main relationship between RSS measurements and path-loss exponents is given by the distance between target and anchor, and the remaining possible dependencies are unknown).Then, the measured path-loss exponents in ranging areas are governed by the likelihood(9)fykβ∣βk=φykβ;βk,Σkβ, where Σkβ∈RL×L is the covariance matrix corresponding to the noise vector nkβ.Therefore, the whole measurements model,fyks∣xk, for ranging areas is given by (6) and (9).


#### 3.2.3. Fingerprinting Likelihood

The measurements model in fingerprinting areas is characterized by the likelihoodfykf∣xk.During theoffline phase, for the mth fingerprint, fm, we receive a set of Sm(l) RSS measurements, ym(l), from each one of the visible anchors. We assume that the random variable associated with such a set of measurements follows a Gaussian distribution with mean its sample mean, y¯m(l), and standard deviation σm(l)/Sm(l), where σm(l) is the sample standard deviation. During theonline phase, given a set of received RSS measurements—ykf∈RLk—the likelihood function of the fingerprint fm is given by(10)fykf∣fm=∏l=1Lkφykl;y¯ml,σmlSml, where yk(l) is an RSS measurement received from the lth anchor in tk.By considering a Gaussian kernel to represent the region of the map corresponding to each fingerprint [26, 28], we can approximate the measurements model by a mixture of the individual likelihood at every point of the set {fm}m=1M as(11)fykf∣pk≈∑m=1Mfykf∣fmφpk;fm,h2I2≈∑m=1Mωkmφpk;fm,h2I2,where fm∈R2 includes the coordinates of the mth fingerprint and h∈R is a positive number called bandwidth [26, 35, 57]. (A practical choice for the bandwidth can be obtained as one-half the resolution of the involved data, in this case, the change in coordinates between two adjacent fingerprints [35].)Figure4 represents the performance of the likelihood function defined in (11). Figure 4(a) depicts the position of the fingerprints stored in theoffline phase (in grey) as well as the position of the target during theonline phase (in red). Figure 4(b) shows the likelihood values obtained in the area by means of (11) after receiving one RSS measurement in theonline phase. Figure 4(c) shows the likelihood values in the fixed axis (indicated in Figure 4(b)) obtained by means of (11) for different numbers of RSS measurements received during theonline phase. From Figure 4 we can conclude that the greater the number of measurements the more likely the position of the closest fingerprint to the actual position. Moreover, the use of a kernel mixture provides a continuous function that facilitates the information fusion under the Bayesian framework.Figure 4
The defined likelihood for fingerprinting areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Fingerprints
(b)
2D fingerprinting likelihood
(c)
1D fingerprinting likelihoodThe previous likelihood can be augmented to incorporate the information conveyed by the fingerprints with respect to the path-loss exponents. In such a case, the fingerprint vectorfm∈R2+L includes its positional coordinates as well as the path-loss exponents with respect to each anchor used for ranging localization. The path-loss exponent stored for the lth anchor and the mth fingerprint is obtained as [34, 35](12)β^ml=α-y¯ml10log10⁡pl-pm, where y¯m(l) is the sample mean of the set of measurements received in theoffline phase from the l-anchor at the mth fingerprint and p(l) and p(m) are the coordinates corresponding to such anchor and fingerprint, respectively.Therefore, the measurements model,fykf∣xk, for fingerprinting areas is given by(13)fykf∣pk,βk≈∑m=1Mωkmφpk,βm;fm,H,where fm∈R2 includes the coordinates and the path-loss exponents for the mth fingerprint and H∈R(2+L)×(2+L) is a diagonal bandwidth matrix with positive diagonal elements {hi2}i=1,…,2+L [26, 35, 57].


## 3.1. Problem Statement

In the following, we are going to assume a two-dimensional scenario where we estimate the position of a mobile target by fusing information provided by RSS measurements. In order to do that, we first accomplish anoffline phase in which we collect RSS measurements at a set of M fingerprint points, {fm}m=1M, covering only a selected area. In theonline phase, we collect again RSS measurements, {yk}k∈N, at discrete time instants, tk∈N, inside or outside the selected area (hereinafter, “fingerprinting area” or “ranging area,” resp.). From these measurements, we estimate the state vector, {xk}k∈N. Next, we determine the entries to state and measurement vectors.The state vector contains the position and its first derivatives so that{xk}k∈N is a Markov chain (i.e., the current state only depends on the previous one) [35, 45]. In this paper, such a vector is augmented to include the path-loss exponent with respect to every anchor used in the ranging area (see Section 3.2). Therefore, the state vector is xk=[pk,vk,ak,βk]∈R6+L, where pk∈R2 is the target’s position, vk∈R2 its velocity, ak∈R2 its acceleration, βk∈RL the vector of path-loss exponents, and L∈R the total number of anchors used for ranging.The measurement vector conveys any state-related information received at time instanttk (i.e., its dimension may be different from the previous one). We have to use different measurements vector depending on whether we are within the fingerprinting or the ranging area. In the former case, the state vector is yk=ykf∈RLk, where ykf∈RLk are the RSS measurements received at time tk. In the latter case, the state vector is yk=[yks,ykβ]∈R2Lk, where yks∈RLk are the RSS measurements received at time tk and ykβ∈RLk the path-loss exponents measured with respect to the visible anchors. In both cases, Lk∈R is the number of visible anchors at that particular moment.In addition to the information conveyed by the measurements, the fact that the sequence of positions is highly correlated in time can also be used as another source of information. With the defined measurements and state vectors, it can be assumed that, given the current state vector,xk, the measurement vector, yk, is independent of all previous and future states and measurements [35, 45]. Therefore, we can build the hidden Markov model (HMM) shown in Figure 2 that leads to two kinds of dependence between the random variables: the relationship between the state vector in time tk and the state vector in time tk-1, that is, fxk∣xk-1, calleddynamic model; and the relationship between the measurements and the state vector in each time, that is, fyk∣xk, calledmeasurements model [35, 45]. (Note that, in addition to different measurements vectors, we have to use different measurements models for fingerprinting and ranging areas since the unknown dependencies between them prevent us from utilizing a joint model.) Next subsection defines both models for fingerprinting/ranging localization in harsh environments. (The proposed framework accommodates other position-related information given by diverse devices such as GPS receivers or foot-mounted inertial measurement units [47].)Figure 2
HMM for states and measurements evolution. The relationship betweenxk and xk-1 and the relationship between yk and xk are the only two kinds of dependence.


## 3.2. Involved Models

In the following, we define realistic models for the fusion of time-evolution and measuring information.


### 3.2.1. Dynamic Model

The dynamic model is characterized by the conditional densityfxk∣xk-1.Given the position, velocity, and acceleration at timetk-1, pk-1, vk-1, and ak-1, we can approximate their values in time tk, pk, vk, and ak, by means of their Taylor series expansion as [45](1)
p
k
v
k
a
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
I
2
Δ
k
I
2
0
0
I
2
p
k
-
1
v
k
-
1
a
k
-
1
+
n
k
d
,
1
, where Δk=(tk-tk-1)∈R is the sampling interval and nkd,1∈R6 is the error term. To model this error term as white Gaussian noise (i.e., as a discrete Wiener process) is the most common.The characteristics of the wireless channel are highly related in time [48–50]. However, this fact is rarely considered in the design of positioning filtering algorithms [51]. In this paper, given the vector of path-loss exponents at time tk-1, βk-1, the vector of path-loss exponents at time tk, βk, is modeled as(2)βk=βk-1+nkd,2, where the term nkd,2∈RL is white Gaussian noise.Therefore, the dynamic model,fxk∣xk-1, is given by(3)fxk∣xk-1=φxk;Fkxk-1,Σkd,where the transition matrix(4)
F
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
0
I
2
Δ
k
I
2
0
0
0
I
2
0
0
0
0
I
L and Σkd∈R(6+L)×(6+L) is the covariance matrix corresponding to the noise vector [nkd,1,nkd,2].


### 3.2.2. Ranging Likelihood

The measurements model in ranging areas is characterized by the likelihoodfyks∣xk.The RSS values are attenuated, among other factors, by the distance between target and anchors. This attenuation is proportional to the inverse of the distance raised to a path-loss exponent [34, 35]. In logarithmic units, we have that, for the lth anchor, with position p(l)∈R2,(5)yks=α-10βklog10⁡pl-pk+nks, where α∈R is a constant that depends on several factors such as fast and slow fading, gains in transmitter and receiver antennas, and the transmitted power and βk∈R is the path-loss exponent that characterizes the wireless channel [49]. Finally, nks is a Gaussian noise term caused by shadowing [34, 35]. The value of α can be previously known, for example, by averaging measured values at the reference distance (in this case, 1 meter away from the anchor) or by self-calibration with measurements shared among anchors (with known positions) [18]. The path-loss exponent, βk, in turn, can be dynamically obtained or trained in each scenario [27, 34].Then, the RSS measurements in ranging areas are governed by the likelihood,(6)fyks∣pk=φyks;α-10βklog10⁡pl-pk,σks,where σks∈R is the standard deviation corresponding to nks.Figure3 represents the performance of the likelihood function defined in (6). Figure 3(a) depicts the position of the anchors with known positions (in orange) as well as the position of the target (in red). Figure 3(b) shows the likelihood values obtained in the area by means of (6) after receiving one RSS measurement from every anchor. Figure 3(c) shows the likelihood values in the fixed axis (indicated in Figure 3(b)) obtained by means of (6) for different numbers of RSS measurements received from anchor AP1. From Figure 3 we can point out that the greater the number of measurements the narrower the likelihood in the direction joining target and anchor. This result is in concordance with the known fact that each range measurement only provides information about the position in the direction joining target and anchor [17].Figure 3
The defined likelihood for ranging areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Anchors’ positions
(b)
2D ranging likelihood
(c)
1D ranging likelihoodIn order to generalize the localization framework, we here consider the most general case where path-loss exponents are dynamically estimated, for which a variety of algorithms can be found in the literature [34, 52–56]. Specifically, we adhere to the technique proposed in [34] based on maximizing the compatibility of the distances between the target and the anchors given a set of received RSS values and subject to a set of feasible solutions, Λ. (The set of constrains can come, e.g., from feasible distances between the target and the anchors based on transmission power and antenna gains [34].) That is,(7)β^k=argmaxβk⁡Cyks,α,βk,pk,pll=1,…,Lks.t.βk∈Λ, where C(·) is the compatibility function as defined in [34].Given the actual state, we can treat estimates of path-loss exponents as independent additional measurements,ykβ, related with the state by the model(8)ykβ=βk+nkβ, where nkβ∈RL is white Gaussian noise. (Note that this is a mild assumption since the main relationship between RSS measurements and path-loss exponents is given by the distance between target and anchor, and the remaining possible dependencies are unknown).Then, the measured path-loss exponents in ranging areas are governed by the likelihood(9)fykβ∣βk=φykβ;βk,Σkβ, where Σkβ∈RL×L is the covariance matrix corresponding to the noise vector nkβ.Therefore, the whole measurements model,fyks∣xk, for ranging areas is given by (6) and (9).


### 3.2.3. Fingerprinting Likelihood

The measurements model in fingerprinting areas is characterized by the likelihoodfykf∣xk.During theoffline phase, for the mth fingerprint, fm, we receive a set of Sm(l) RSS measurements, ym(l), from each one of the visible anchors. We assume that the random variable associated with such a set of measurements follows a Gaussian distribution with mean its sample mean, y¯m(l), and standard deviation σm(l)/Sm(l), where σm(l) is the sample standard deviation. During theonline phase, given a set of received RSS measurements—ykf∈RLk—the likelihood function of the fingerprint fm is given by(10)fykf∣fm=∏l=1Lkφykl;y¯ml,σmlSml, where yk(l) is an RSS measurement received from the lth anchor in tk.By considering a Gaussian kernel to represent the region of the map corresponding to each fingerprint [26, 28], we can approximate the measurements model by a mixture of the individual likelihood at every point of the set {fm}m=1M as(11)fykf∣pk≈∑m=1Mfykf∣fmφpk;fm,h2I2≈∑m=1Mωkmφpk;fm,h2I2,where fm∈R2 includes the coordinates of the mth fingerprint and h∈R is a positive number called bandwidth [26, 35, 57]. (A practical choice for the bandwidth can be obtained as one-half the resolution of the involved data, in this case, the change in coordinates between two adjacent fingerprints [35].)Figure4 represents the performance of the likelihood function defined in (11). Figure 4(a) depicts the position of the fingerprints stored in theoffline phase (in grey) as well as the position of the target during theonline phase (in red). Figure 4(b) shows the likelihood values obtained in the area by means of (11) after receiving one RSS measurement in theonline phase. Figure 4(c) shows the likelihood values in the fixed axis (indicated in Figure 4(b)) obtained by means of (11) for different numbers of RSS measurements received during theonline phase. From Figure 4 we can conclude that the greater the number of measurements the more likely the position of the closest fingerprint to the actual position. Moreover, the use of a kernel mixture provides a continuous function that facilitates the information fusion under the Bayesian framework.Figure 4
The defined likelihood for fingerprinting areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Fingerprints
(b)
2D fingerprinting likelihood
(c)
1D fingerprinting likelihoodThe previous likelihood can be augmented to incorporate the information conveyed by the fingerprints with respect to the path-loss exponents. In such a case, the fingerprint vectorfm∈R2+L includes its positional coordinates as well as the path-loss exponents with respect to each anchor used for ranging localization. The path-loss exponent stored for the lth anchor and the mth fingerprint is obtained as [34, 35](12)β^ml=α-y¯ml10log10⁡pl-pm, where y¯m(l) is the sample mean of the set of measurements received in theoffline phase from the l-anchor at the mth fingerprint and p(l) and p(m) are the coordinates corresponding to such anchor and fingerprint, respectively.Therefore, the measurements model,fykf∣xk, for fingerprinting areas is given by(13)fykf∣pk,βk≈∑m=1Mωkmφpk,βm;fm,H,where fm∈R2 includes the coordinates and the path-loss exponents for the mth fingerprint and H∈R(2+L)×(2+L) is a diagonal bandwidth matrix with positive diagonal elements {hi2}i=1,…,2+L [26, 35, 57].


## 3.2.1. Dynamic Model

The dynamic model is characterized by the conditional densityfxk∣xk-1.Given the position, velocity, and acceleration at timetk-1, pk-1, vk-1, and ak-1, we can approximate their values in time tk, pk, vk, and ak, by means of their Taylor series expansion as [45](1)
p
k
v
k
a
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
I
2
Δ
k
I
2
0
0
I
2
p
k
-
1
v
k
-
1
a
k
-
1
+
n
k
d
,
1
, where Δk=(tk-tk-1)∈R is the sampling interval and nkd,1∈R6 is the error term. To model this error term as white Gaussian noise (i.e., as a discrete Wiener process) is the most common.The characteristics of the wireless channel are highly related in time [48–50]. However, this fact is rarely considered in the design of positioning filtering algorithms [51]. In this paper, given the vector of path-loss exponents at time tk-1, βk-1, the vector of path-loss exponents at time tk, βk, is modeled as(2)βk=βk-1+nkd,2, where the term nkd,2∈RL is white Gaussian noise.Therefore, the dynamic model,fxk∣xk-1, is given by(3)fxk∣xk-1=φxk;Fkxk-1,Σkd,where the transition matrix(4)
F
k
=
I
2
Δ
k
I
2
Δ
k
2
2
I
2
0
0
I
2
Δ
k
I
2
0
0
0
I
2
0
0
0
0
I
L and Σkd∈R(6+L)×(6+L) is the covariance matrix corresponding to the noise vector [nkd,1,nkd,2].


## 3.2.2. Ranging Likelihood

The measurements model in ranging areas is characterized by the likelihoodfyks∣xk.The RSS values are attenuated, among other factors, by the distance between target and anchors. This attenuation is proportional to the inverse of the distance raised to a path-loss exponent [34, 35]. In logarithmic units, we have that, for the lth anchor, with position p(l)∈R2,(5)yks=α-10βklog10⁡pl-pk+nks, where α∈R is a constant that depends on several factors such as fast and slow fading, gains in transmitter and receiver antennas, and the transmitted power and βk∈R is the path-loss exponent that characterizes the wireless channel [49]. Finally, nks is a Gaussian noise term caused by shadowing [34, 35]. The value of α can be previously known, for example, by averaging measured values at the reference distance (in this case, 1 meter away from the anchor) or by self-calibration with measurements shared among anchors (with known positions) [18]. The path-loss exponent, βk, in turn, can be dynamically obtained or trained in each scenario [27, 34].Then, the RSS measurements in ranging areas are governed by the likelihood,(6)fyks∣pk=φyks;α-10βklog10⁡pl-pk,σks,where σks∈R is the standard deviation corresponding to nks.Figure3 represents the performance of the likelihood function defined in (6). Figure 3(a) depicts the position of the anchors with known positions (in orange) as well as the position of the target (in red). Figure 3(b) shows the likelihood values obtained in the area by means of (6) after receiving one RSS measurement from every anchor. Figure 3(c) shows the likelihood values in the fixed axis (indicated in Figure 3(b)) obtained by means of (6) for different numbers of RSS measurements received from anchor AP1. From Figure 3 we can point out that the greater the number of measurements the narrower the likelihood in the direction joining target and anchor. This result is in concordance with the known fact that each range measurement only provides information about the position in the direction joining target and anchor [17].Figure 3
The defined likelihood for ranging areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Anchors’ positions
(b)
2D ranging likelihood
(c)
1D ranging likelihoodIn order to generalize the localization framework, we here consider the most general case where path-loss exponents are dynamically estimated, for which a variety of algorithms can be found in the literature [34, 52–56]. Specifically, we adhere to the technique proposed in [34] based on maximizing the compatibility of the distances between the target and the anchors given a set of received RSS values and subject to a set of feasible solutions, Λ. (The set of constrains can come, e.g., from feasible distances between the target and the anchors based on transmission power and antenna gains [34].) That is,(7)β^k=argmaxβk⁡Cyks,α,βk,pk,pll=1,…,Lks.t.βk∈Λ, where C(·) is the compatibility function as defined in [34].Given the actual state, we can treat estimates of path-loss exponents as independent additional measurements,ykβ, related with the state by the model(8)ykβ=βk+nkβ, where nkβ∈RL is white Gaussian noise. (Note that this is a mild assumption since the main relationship between RSS measurements and path-loss exponents is given by the distance between target and anchor, and the remaining possible dependencies are unknown).Then, the measured path-loss exponents in ranging areas are governed by the likelihood(9)fykβ∣βk=φykβ;βk,Σkβ, where Σkβ∈RL×L is the covariance matrix corresponding to the noise vector nkβ.Therefore, the whole measurements model,fyks∣xk, for ranging areas is given by (6) and (9).


## 3.2.3. Fingerprinting Likelihood

The measurements model in fingerprinting areas is characterized by the likelihoodfykf∣xk.During theoffline phase, for the mth fingerprint, fm, we receive a set of Sm(l) RSS measurements, ym(l), from each one of the visible anchors. We assume that the random variable associated with such a set of measurements follows a Gaussian distribution with mean its sample mean, y¯m(l), and standard deviation σm(l)/Sm(l), where σm(l) is the sample standard deviation. During theonline phase, given a set of received RSS measurements—ykf∈RLk—the likelihood function of the fingerprint fm is given by(10)fykf∣fm=∏l=1Lkφykl;y¯ml,σmlSml, where yk(l) is an RSS measurement received from the lth anchor in tk.By considering a Gaussian kernel to represent the region of the map corresponding to each fingerprint [26, 28], we can approximate the measurements model by a mixture of the individual likelihood at every point of the set {fm}m=1M as(11)fykf∣pk≈∑m=1Mfykf∣fmφpk;fm,h2I2≈∑m=1Mωkmφpk;fm,h2I2,where fm∈R2 includes the coordinates of the mth fingerprint and h∈R is a positive number called bandwidth [26, 35, 57]. (A practical choice for the bandwidth can be obtained as one-half the resolution of the involved data, in this case, the change in coordinates between two adjacent fingerprints [35].)Figure4 represents the performance of the likelihood function defined in (11). Figure 4(a) depicts the position of the fingerprints stored in theoffline phase (in grey) as well as the position of the target during theonline phase (in red). Figure 4(b) shows the likelihood values obtained in the area by means of (11) after receiving one RSS measurement in theonline phase. Figure 4(c) shows the likelihood values in the fixed axis (indicated in Figure 4(b)) obtained by means of (11) for different numbers of RSS measurements received during theonline phase. From Figure 4 we can conclude that the greater the number of measurements the more likely the position of the closest fingerprint to the actual position. Moreover, the use of a kernel mixture provides a continuous function that facilitates the information fusion under the Bayesian framework.Figure 4
The defined likelihood for fingerprinting areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
(a)
Fingerprints
(b)
2D fingerprinting likelihood
(c)
1D fingerprinting likelihoodThe previous likelihood can be augmented to incorporate the information conveyed by the fingerprints with respect to the path-loss exponents. In such a case, the fingerprint vectorfm∈R2+L includes its positional coordinates as well as the path-loss exponents with respect to each anchor used for ranging localization. The path-loss exponent stored for the lth anchor and the mth fingerprint is obtained as [34, 35](12)β^ml=α-y¯ml10log10⁡pl-pm, where y¯m(l) is the sample mean of the set of measurements received in theoffline phase from the l-anchor at the mth fingerprint and p(l) and p(m) are the coordinates corresponding to such anchor and fingerprint, respectively.Therefore, the measurements model,fykf∣xk, for fingerprinting areas is given by(13)fykf∣pk,βk≈∑m=1Mωkmφpk,βm;fm,H,where fm∈R2 includes the coordinates and the path-loss exponents for the mth fingerprint and H∈R(2+L)×(2+L) is a diagonal bandwidth matrix with positive diagonal elements {hi2}i=1,…,2+L [26, 35, 57].


## 4. Efficient Algorithms

The graphical model depicted in Figure2 allows for optimal localization by means of the well-known Bayesian filtering process [45, 46]. In the following, we propose an efficient implementation for real-time localization systems in light devices.


### 4.1. Real-Time Filtering for Localization

Bayesian filtering acquires different expressions depending on the specific distributions of the dynamic model and the likelihood. The complexity constraints imposed by a real-time localization system and the tractability benefits of Gaussian family favor the selection of the latter for all the involved distributions [46]. Moreover, the lack of linearity in the models defined in Section 3 enforces the use of a suboptimal solution to the filtering problem. The most common is to linearize such models by Taylor series expansion (i.e., to use extended Kalman-like filters) [58]. In this paper, we select the unscented transformation since it better captures the higher order moments caused by the nonlinear transformation and avoids the computation of Jacobian and Hessian matrices [59, 60]. The complexity of both extended and unscented transformations is on the order of the cube of the dimension of the state, which cannot compromise their real-time operation [61]. Other approaches, such as particle filters or Gaussian mixture filters, are discarded since they suffer from the curse of dimensionality induced by the dimension of the state vector [61, 62]. (The number of filtered path-loss exponents, and consequently the dimension of the state, grows with the number of anchors used for ranging.)Algorithm1 shows the pseudocode of the unscented-based implementation for the proposed unified localization framework. (In Algorithm 1, fx1∣x0=f(x1).)Algorithm 1:Real-time filtering for unified localization.
(1) Initialization:
(2) Setπ equal to the prior distribution of x1.
μπ⟵Ex1
Σπ⟵Ex1x1T-μπμπT
(3)π←φ(x1;μπ,Σπ)
(4) RecursiveBayesian inference:
(5)for  k=1,2,…  do
(6)    (i) Prediction:
π⟵ ut_predictfxk∣xk-1,π
(7)if  μπ∈ “Fingerprinting area” then
(8)    (ii) Fingerprinting update:
π⟵ fp_updatefykf∣xk,π
(9)else
(10)(iii) Path-loss estimation:
βπ⟵ pl_estimateyks,p(l)l=1L
(11)    (iv) Ranging update:
π⟵ ut_updatefyks∣xk,π
(12)end if
(13)return  E{xk∣y1:k}←E{π}=μπ
(14)end forIn Algorithm1, we utilize conventional predict (ut_predict()) and update functions (ut_update()) based on the unscented transformation [60, 63]. In the fingerprinting case, we update with a Gaussian mixture and approximate the posterior mixture density to a single Gaussian. This process is condensed within the functionfp_update() that we described in the next section. In the ranging case, we dynamically estimate the path-loss exponents previously to the update. This process is addressed in the functionpl_estimate() for which different alternatives can be adopted [34, 51–56].


### 4.2. Fingerprinting Update

As we stated in previous section, the real-time constraints favor the selection of the Gaussian family in the filtering process. However, we defined a Gaussian mixture for the likelihood in fingerprinting areas (see Section3.2). The update step in Bayesian filtering consists of the product of the prediction and the likelihood (and a subsequent normalization), which leads to an exponential increase of the number of involved densities when using a likelihood mixture [45, 46]. In Algorithm 2 we address this issue by approximating the posterior mixture density to a single Gaussian density. This approximation is based on collapsing the M-component mixture arising after the update into one Gaussian with the same mean and covariance as the mixture.Algorithm 2:Function to update state from fingerprints.
(1)function  fp_update{ω(m),P,fm,H}m=1M,μ,Σ
(2)   Fingerprinting update:
(3)for  m=1,2,…,M  do
Sπ(m)⟵PΣPT+H
Kπ(m)⟵ΣPTSπ(m)-1
Σπ(m)⟵I-Kπ(m)PΣ
μπ(m)⟵μ+Kπ(m)fm-Pμ
ωπ(m)⟵ω(m)φfm;Pμ,Sπ(m)
(4)end for
(5)   Normalization:
ωπ(m)m=1M⟵ωπ(m)m=1M∑m=1Mωπ(m)
(6)   Gaussian approximation:
μπ⟵∑m=1Mωπ(m)μπ(m)
Σπ⟵∑m=1Mωπ(m)Σπ(m)+μπ(m)-μπμπ(m)-μπT
(7)return  μ←μπ;Σ←Σπ
(8)end functionAlgorithm2 shows the pseudocode of thefp_update() function, which takes as inputs the parameters that characterize the prediction, φ(xk;μ,Σ), and the likelihood, ∑m=1Mω(m)φ(Pxk;fm,H), where P is a matrix projecting the components of xk into the components stored in the fingerprints (position and path-loss exponents).


## 4.1. Real-Time Filtering for Localization

Bayesian filtering acquires different expressions depending on the specific distributions of the dynamic model and the likelihood. The complexity constraints imposed by a real-time localization system and the tractability benefits of Gaussian family favor the selection of the latter for all the involved distributions [46]. Moreover, the lack of linearity in the models defined in Section 3 enforces the use of a suboptimal solution to the filtering problem. The most common is to linearize such models by Taylor series expansion (i.e., to use extended Kalman-like filters) [58]. In this paper, we select the unscented transformation since it better captures the higher order moments caused by the nonlinear transformation and avoids the computation of Jacobian and Hessian matrices [59, 60]. The complexity of both extended and unscented transformations is on the order of the cube of the dimension of the state, which cannot compromise their real-time operation [61]. Other approaches, such as particle filters or Gaussian mixture filters, are discarded since they suffer from the curse of dimensionality induced by the dimension of the state vector [61, 62]. (The number of filtered path-loss exponents, and consequently the dimension of the state, grows with the number of anchors used for ranging.)Algorithm1 shows the pseudocode of the unscented-based implementation for the proposed unified localization framework. (In Algorithm 1, fx1∣x0=f(x1).)Algorithm 1:Real-time filtering for unified localization.
(1) Initialization:
(2) Setπ equal to the prior distribution of x1.
μπ⟵Ex1
Σπ⟵Ex1x1T-μπμπT
(3)π←φ(x1;μπ,Σπ)
(4) RecursiveBayesian inference:
(5)for  k=1,2,…  do
(6)    (i) Prediction:
π⟵ ut_predictfxk∣xk-1,π
(7)if  μπ∈ “Fingerprinting area” then
(8)    (ii) Fingerprinting update:
π⟵ fp_updatefykf∣xk,π
(9)else
(10)(iii) Path-loss estimation:
βπ⟵ pl_estimateyks,p(l)l=1L
(11)    (iv) Ranging update:
π⟵ ut_updatefyks∣xk,π
(12)end if
(13)return  E{xk∣y1:k}←E{π}=μπ
(14)end forIn Algorithm1, we utilize conventional predict (ut_predict()) and update functions (ut_update()) based on the unscented transformation [60, 63]. In the fingerprinting case, we update with a Gaussian mixture and approximate the posterior mixture density to a single Gaussian. This process is condensed within the functionfp_update() that we described in the next section. In the ranging case, we dynamically estimate the path-loss exponents previously to the update. This process is addressed in the functionpl_estimate() for which different alternatives can be adopted [34, 51–56].


## 4.2. Fingerprinting Update

As we stated in previous section, the real-time constraints favor the selection of the Gaussian family in the filtering process. However, we defined a Gaussian mixture for the likelihood in fingerprinting areas (see Section3.2). The update step in Bayesian filtering consists of the product of the prediction and the likelihood (and a subsequent normalization), which leads to an exponential increase of the number of involved densities when using a likelihood mixture [45, 46]. In Algorithm 2 we address this issue by approximating the posterior mixture density to a single Gaussian density. This approximation is based on collapsing the M-component mixture arising after the update into one Gaussian with the same mean and covariance as the mixture.Algorithm 2:Function to update state from fingerprints.
(1)function  fp_update{ω(m),P,fm,H}m=1M,μ,Σ
(2)   Fingerprinting update:
(3)for  m=1,2,…,M  do
Sπ(m)⟵PΣPT+H
Kπ(m)⟵ΣPTSπ(m)-1
Σπ(m)⟵I-Kπ(m)PΣ
μπ(m)⟵μ+Kπ(m)fm-Pμ
ωπ(m)⟵ω(m)φfm;Pμ,Sπ(m)
(4)end for
(5)   Normalization:
ωπ(m)m=1M⟵ωπ(m)m=1M∑m=1Mωπ(m)
(6)   Gaussian approximation:
μπ⟵∑m=1Mωπ(m)μπ(m)
Σπ⟵∑m=1Mωπ(m)Σπ(m)+μπ(m)-μπμπ(m)-μπT
(7)return  μ←μπ;Σ←Σπ
(8)end functionAlgorithm2 shows the pseudocode of thefp_update() function, which takes as inputs the parameters that characterize the prediction, φ(xk;μ,Σ), and the likelihood, ∑m=1Mω(m)φ(Pxk;fm,H), where P is a matrix projecting the components of xk into the components stored in the fingerprints (position and path-loss exponents).


## 5. Results and Discussion

The goal of this section is to quantify the performance of the localization framework described in Section3. The system is evaluated in the experimental case study of a human walking with a Smartphone that collects RSS measurements from the network. In the following, we describe the set-up for the experiments and present the performance results.


### 5.1. Experimental Set-Up

We selected WiFi as the underlying technology to provide indoor localization. WiFi technology is more accessible and less expensive than other alternative technologies such as RFID or UWB and has a longer range and larger bandwidth than ZigBee or Bluetooth. Moreover, from signals transmitted in the WiFi network, we can easily extract the RSS metric, while time- or angle-related measurements imply additional complexities and costs [35]. The anchors were Cisco Aironet 1600 Series Access Points (802.11a/g/n). The mobile target was a human with Smartphone LG Nexus 4 (802.11b/g/n) that covered the path shown in Figure 5(b). The total length of the path was approximately 120 meters, implying a total time of 2 minutes.Figure 5
The proposed unified framework provides accurate localization via fingerprinting for critical areas and ready-to-use localization via ranging for noncritical spaces.
(a)
Experimental set-up
(b)
Localization resultsFor fingerprinting localization, the database was created by storing at least10 RSS values from all the detectable access points (up to 25) in the fingerprints marked in Figure 5(a). In theonline phase, we employed 48 RSS values per point.For ranging localization, we employed16 RSS measurements per point from the 4 access points plotted in Figure 5(a). All the RSS measurements were considerably affected by NLOS and multipath propagation conditions.To obtain the localization results we utilized dynamic and measurements models described in Section3. We also added zero-mean Gaussian priors for velocity and acceleration. For the dynamic model, we selected a diagonal noise covariance matrix, Σkd, with main diagonal values roughly 50% of the maximum [35, 45]. For the measurements model, we utilized fixed distribution parameters learned from previous works [34, 35].


### 5.2. Experimental Results

Figure5(b) and Table 1 show the localization results in the mentioned path. For each implemented technique we provide the quartiles of the error in position estimates as well as the root mean square error (RMSE). We call(i)
kNN: the position estimates in the fingerprinting area with a conventional implementation based on k-Nearest Neighbor classification [15],(ii)
ML: the position estimates in the ranging area with a conventional implementation based on maximum likelihood by using (6) [64],(iii)
kNN + ML: the position estimates in the complete scenario with the conventional implementation based on k-Nearest Neighbor classification for fingerprinting and maximum likelihood for ranging [15, 64],(iv)
FL: the position estimates in the fingerprinting area with the proposed algorithm,(v)
RL: the position estimates in the ranging area with the proposed algorithm (as stated above, in order to dynamically estimate the path-loss exponents, we implemented the technique proposed in [34] based on maximizing the compatibility of the distances among anchors and target from a set of received RSS values and a set of constraints. However, other alternatives could have been implemented [52–56]),(vi)
FL + RL: the position estimates in the complete scenario with the proposed unifying fingerprinting/ranging algorithm.Table 1
Position estimation error quartiles and RMSE obtained with conventional and proposed algorithms.
Quartiles
RMSE
Conventional
kNN
0.00 m-0.00 m-0.00 m
0.61 m
ML
3.05 m-3.87 m-5.39 m
5.11 m
kNN + ML
0.00 m-0.38 m-3.12 m
3.17 m
Proposed
FL
0.05 m-0.06 m-0.15 m
0.57 m
RL
2.17 m-3.66 m-5.05 m
3.83 m
FL + RL
0.06 m-0.39 m-2.91 m
2.39 mFrom Figure5(b) and Table 1 we can point out that (1) the proposed framework facilitates the shift from accurate fingerprinting to coarse ranging; (2) fingerprinting outperforms ranging in harsh environments while requiring greater calibration effort; and (3) the proposed approach improves the RMSE in ranging and fingerprinting and unified localization approximately 6.6%, 25.0%, and 24.7% with respect to conventional techniques, respectively. It is worth to mention that the quartiles for kNN are all equal to 0.00 meters since we have selectedonline positions that matched those stored in the database.


## 5.1. Experimental Set-Up

We selected WiFi as the underlying technology to provide indoor localization. WiFi technology is more accessible and less expensive than other alternative technologies such as RFID or UWB and has a longer range and larger bandwidth than ZigBee or Bluetooth. Moreover, from signals transmitted in the WiFi network, we can easily extract the RSS metric, while time- or angle-related measurements imply additional complexities and costs [35]. The anchors were Cisco Aironet 1600 Series Access Points (802.11a/g/n). The mobile target was a human with Smartphone LG Nexus 4 (802.11b/g/n) that covered the path shown in Figure 5(b). The total length of the path was approximately 120 meters, implying a total time of 2 minutes.Figure 5
The proposed unified framework provides accurate localization via fingerprinting for critical areas and ready-to-use localization via ranging for noncritical spaces.
(a)
Experimental set-up
(b)
Localization resultsFor fingerprinting localization, the database was created by storing at least10 RSS values from all the detectable access points (up to 25) in the fingerprints marked in Figure 5(a). In theonline phase, we employed 48 RSS values per point.For ranging localization, we employed16 RSS measurements per point from the 4 access points plotted in Figure 5(a). All the RSS measurements were considerably affected by NLOS and multipath propagation conditions.To obtain the localization results we utilized dynamic and measurements models described in Section3. We also added zero-mean Gaussian priors for velocity and acceleration. For the dynamic model, we selected a diagonal noise covariance matrix, Σkd, with main diagonal values roughly 50% of the maximum [35, 45]. For the measurements model, we utilized fixed distribution parameters learned from previous works [34, 35].


## 5.2. Experimental Results

Figure5(b) and Table 1 show the localization results in the mentioned path. For each implemented technique we provide the quartiles of the error in position estimates as well as the root mean square error (RMSE). We call(i)
kNN: the position estimates in the fingerprinting area with a conventional implementation based on k-Nearest Neighbor classification [15],(ii)
ML: the position estimates in the ranging area with a conventional implementation based on maximum likelihood by using (6) [64],(iii)
kNN + ML: the position estimates in the complete scenario with the conventional implementation based on k-Nearest Neighbor classification for fingerprinting and maximum likelihood for ranging [15, 64],(iv)
FL: the position estimates in the fingerprinting area with the proposed algorithm,(v)
RL: the position estimates in the ranging area with the proposed algorithm (as stated above, in order to dynamically estimate the path-loss exponents, we implemented the technique proposed in [34] based on maximizing the compatibility of the distances among anchors and target from a set of received RSS values and a set of constraints. However, other alternatives could have been implemented [52–56]),(vi)
FL + RL: the position estimates in the complete scenario with the proposed unifying fingerprinting/ranging algorithm.Table 1
Position estimation error quartiles and RMSE obtained with conventional and proposed algorithms.
Quartiles
RMSE
Conventional
kNN
0.00 m-0.00 m-0.00 m
0.61 m
ML
3.05 m-3.87 m-5.39 m
5.11 m
kNN + ML
0.00 m-0.38 m-3.12 m
3.17 m
Proposed
FL
0.05 m-0.06 m-0.15 m
0.57 m
RL
2.17 m-3.66 m-5.05 m
3.83 m
FL + RL
0.06 m-0.39 m-2.91 m
2.39 mFrom Figure5(b) and Table 1 we can point out that (1) the proposed framework facilitates the shift from accurate fingerprinting to coarse ranging; (2) fingerprinting outperforms ranging in harsh environments while requiring greater calibration effort; and (3) the proposed approach improves the RMSE in ranging and fingerprinting and unified localization approximately 6.6%, 25.0%, and 24.7% with respect to conventional techniques, respectively. It is worth to mention that the quartiles for kNN are all equal to 0.00 meters since we have selectedonline positions that matched those stored in the database.


## 6. Conclusions

This paper has presented a principled framework and efficient algorithms for unified fingerprinting and ranging localization based on Bayesian filtering. We have defined realistic continuous likelihood functions that adapt to the changing propagation conditions of the wireless channel. We have implemented the proposed framework with efficient algorithms via unscented transform and Gaussian mixture collapse. Under severe NLOS and multipath conditions, the presented techniques have obtained an error in position estimation of2.39 meters along a 120-meter-long path covering fingerprinting-only and ranging-only areas, remarkably outperforming conventional implementations.



---

*Source: 479765-2015-11-03.xml*