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.
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 by
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:
We define a unifying framework for target localization that accommodates fine estimates via fingerprinting and coarse estimates via ranging. We provide realistic likelihood functions to model fingerprints and path-loss exponents based on kernel mixtures. We derive algorithms to implement such framework by means of the unscented transformation that allows for efficient computation. 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: Section 2 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.
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

The architecture presented in previous works consists of a multiagent architecture based on virtual organizations that integrates with an information fusion model [40].
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 an
The state vector contains the position and its first derivatives so that
The measurement vector conveys any state-related information received at time instant
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,

HMM for states and measurements evolution. The relationship between
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 density
Given the position, velocity, and acceleration at time
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
Therefore, the dynamic model,
3.2.2. Ranging Likelihood
The measurements model in ranging areas is characterized by the likelihood
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
Then, the RSS measurements in ranging areas are governed by the likelihood,
Figure 3 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

The defined likelihood for ranging areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
In 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,
Given the actual state, we can treat estimates of path-loss exponents as independent additional measurements,
Then, the measured path-loss exponents in ranging areas are governed by the likelihood
Therefore, the whole measurements model,
3.2.3. Fingerprinting Likelihood
The measurements model in fingerprinting areas is characterized by the likelihood
During the
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
Figure 4 represents the performance of the likelihood function defined in (11). Figure 4(a) depicts the position of the fingerprints stored in the

The defined likelihood for fingerprinting areas provides a continuous function that facilitates the information fusion under the Bayesian framework.
The 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 vector
Therefore, the measurements model,
4. Efficient Algorithms
The graphical model depicted in Figure 2 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.)
Algorithm 1 shows the pseudocode of the unscented-based implementation for the proposed unified localization framework. (In Algorithm 1,
(1) I (2) Set (3) (4) R (5) (6) (i) P π (7) (8) (ii) F π (9) (10) (11) (iv) R π (12) (13) (14)
In Algorithm 1, we utilize conventional predict (
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 Section 3.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
(1) (2) F (3) (4) (5) N (6) G (7) (8)
Algorithm 2 shows the pseudocode of the
5. Results and Discussion
The goal of this section is to quantify the performance of the localization framework described in Section 3. 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

The proposed unified framework provides accurate localization via fingerprinting for critical areas and ready-to-use localization via ranging for noncritical spaces.
For fingerprinting localization, the database was created by storing at least
For ranging localization, we employed
To obtain the localization results we utilized dynamic and measurements models described in Section 3. We also added zero-mean Gaussian priors for velocity and acceleration. For the dynamic model, we selected a diagonal noise covariance matrix,
5.2. Experimental Results
Figure 5(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
ML: the position estimates in the ranging area with a conventional implementation based on maximum likelihood by using (6) [64], FL: the position estimates in the fingerprinting area with the proposed algorithm, 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]), FL + RL: the position estimates in the complete scenario with the proposed unifying fingerprinting/ranging algorithm.
Position estimation error quartiles and RMSE obtained with conventional and proposed algorithms.
From Figure 5(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. 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 of
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This work has been supported by the project Sociedades Humano-Agente en Entornos Cloud Computing (Soha+C) under Grant SA213U13. The project was cofinaced with Junta de Castilla y León funds.
