Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2015 Oct 30;15(11):27692–27720. doi: 10.3390/s151127692

A Mixed Approach to Similarity Metric Selection in Affinity Propagation-Based WiFi Fingerprinting Indoor Positioning

Giuseppe Caso 1,*, Luca de Nardis 1, Maria-Gabriella di Benedetto 1
Editor: Sisi Zlatanova1
PMCID: PMC4701250  PMID: 26528984

Abstract

The weighted k-nearest neighbors (WkNN) algorithm is by far the most popular choice in the design of fingerprinting indoor positioning systems based on WiFi received signal strength (RSS). WkNN estimates the position of a target device by selecting k reference points (RPs) based on the similarity of their fingerprints with the measured RSS values. The position of the target device is then obtained as a weighted sum of the positions of the k RPs. Two-step WkNN positioning algorithms were recently proposed, in which RPs are divided into clusters using the affinity propagation clustering algorithm, and one representative for each cluster is selected. Only cluster representatives are then considered during the position estimation, leading to a significant computational complexity reduction compared to traditional, flat WkNN. Flat and two-step WkNN share the issue of properly selecting the similarity metric so as to guarantee good positioning accuracy: in two-step WkNN, in particular, the metric impacts three different steps in the position estimation, that is cluster formation, cluster selection and RP selection and weighting. So far, however, the only similarity metric considered in the literature was the one proposed in the original formulation of the affinity propagation algorithm. This paper fills this gap by comparing different metrics and, based on this comparison, proposes a novel mixed approach in which different metrics are adopted in the different steps of the position estimation procedure. The analysis is supported by an extensive experimental campaign carried out in a multi-floor 3D indoor positioning testbed. The impact of similarity metrics and their combinations on the structure and size of the resulting clusters, 3D positioning accuracy and computational complexity are investigated. Results show that the adoption of metrics different from the one proposed in the original affinity propagation algorithm and, in particular, the combination of different metrics can significantly improve the positioning accuracy while preserving the efficiency in computational complexity typical of two-step algorithms.

Keywords: WiFi fingerprinting indoor positioning, similarity metrics, WkNN, affinity propagation

1. Introduction

Indoor positioning is nowadays an important and interesting research topic, as it promises to enable the extension of outdoor location-based services to indoor environments [1]. Among many proposed and investigated approaches and systems [2], the fingerprinting technique, based on the collection of received signal strength (RSS) values from WiFi access points (APs) detected in the area of interest, is one of the most popular ones [3]. Fingerprinting operates in two phases: offline and online. During the offline phase, RSS values (fingerprints) are collected at previously-selected positions, referred to as reference points (RPs). During the online phase, the location of target devices in unknown positions is estimated as a function of the positions of the RPs that best match the RSS values measured by the devices (online readings), according to a specified similarity metric.

Among fingerprinting-based solutions, weighted k-nearest-neighbors (WkNN) algorithms, in which the estimated position is obtained as the weighted average of k selected RPs positions, are by far the most widely investigated. WkNN algorithms are usually divided into deterministic and probabilistic ones: the first ones are highly appealing, because, thanks to the use of deterministic similarity metrics computable by comparing the online reading and each RP fingerprint, they are relatively easy to implement [4,5,6,7]; on the other hand, WkNN probabilistic algorithms can improve the performance of deterministic ones, at the price of higher implementation complexity [2,3], since they are based on the estimation of the signal strength distribution for each (AP, RP) pair and on the computation of likelihood probabilities, derivable through the comparison between the online reading and the estimated RSS distributions [8,9,10,11].

The accuracy and complexity of fingerprinting algorithms depend on two main issues: (1) careful planning of the offline phase; and (2) the definition and implementation of algorithms adopted in the online phase. Focusing in particular on the online phase, which is also the main subject of this paper, the accuracy can be improved by implementing an optimal RP selection through a proper definition of both the similarity metric and the value of k; at the same time, system complexity can be decreased by reducing the number of online operations requested for obtaining a position estimation. Within this context, previous works proposed the adoption of two-step algorithms, which foresee a preliminary RP clustering step during which the RPs are divided into clusters. Clusters are then taken into account in the online phase by organizing it into two-step, referred to as coarse and fine localization [6,9,12]. During the coarse localization step, the online reading is compared to the fingerprints of each RP cluster according to the selected similarity metric; only the clusters passing a predefined similarity threshold are then selected. The main goal of the coarse localization step is to reduce the computational complexity of the following fine localization step, by reducing the RP space. In fact, while for a generic WkNN flat algorithm, all of the RPs are compared to the online reading in order to select the k most relevant RPs, in two-step algorithms, only the RPs belonging to the selected clusters are taken into account.

Several previous works proposed the use of the affinity propagation algorithm [13] for the creation of the clusters. The affinity propagation algorithm exploits the evaluation of mutual similarities between the RPs [12,14,15,16]. As a result, in two-step algorithms adopting the affinity propagation clustering, the impact of the similarity definition is two-fold, both in the RP clustering and cluster selection steps.

Moving from the previous observations, this work analyzes the performance of flat and two-step affinity propagation-based algorithms, focusing on WkNN deterministic solutions.

The positioning accuracy of two-step algorithms is evaluated by analyzing the impact of different similarity metrics at all steps of the position estimation procedure: RP clustering in the offline phase and coarse and fine localization steps in the online phase. The impact of the similarity metrics on flat algorithms is investigated, as well, in order to provide a benchmark for two-step algorithms. Moreover, flat and two-step algorithms are compared in terms of computational complexity, by evaluating the average number of online operations required to obtain a position estimate.

The choice of restricting the analysis to deterministic metrics is due to two main reasons: (1) to guarantee a clear analysis of the impact of the combination of different metrics by focusing on a homogeneous family of metrics; and (2) to verify the assumption that two-step algorithms can reduce computational complexity even for metrics that in origin already guarantee a low complexity. Extension of the analysis to probabilistic metrics will be addressed in future works.

Performance evaluation is carried out by means of experimental results obtained in the testbed implemented at the Department of Information Engineering, Electronics and Telecommunications (DIET) of Sapienza University of Rome.

The rest of the paper is organized as follows. Section 2 introduces a general model for WkNN fingerprinting-based indoor positioning systems, valid for both flat and two-step algorithms, and discusses next the role of k by introducing fixed and dynamic selection schemes. Then, Section 2 focuses on two-step algorithms using the affinity propagation clustering algorithm, by reviewing the algorithm and discussing its application to the RP clustering and coarse localization steps. Section 3 analyzes in detail the role of the similarity metric in fingerprinting-based algorithms: first, Section 3.1 and Section 3.2 introduce the similarity metrics considered in this work, distinguishing between metrics suitable for both offline and online phases and metrics only usable in the offline case. Section 3.3 completes the analysis by introducing a comparative framework for the online similarity metrics. Next, Section 4 describes the testbed implemented at DIET and presents experimental results focusing on the comparative analysis of the metrics and algorithms, in terms of topology, positioning accuracy and computational complexity. Finally, Section 5 concludes the paper and discusses future research lines.

2. System Model

2.1. A General Model for WkNN Deterministic Algorithms

Both flat and two-step deterministic WkNN algorithms, introduced in Section 1, can be described by the following general model.

Given an area of interest, denoting with L the total number of WiFi APs (APl with l=1,2,,L) that can be detected and with N the number of RPs (RPn with n=1,2,,N), during the fingerprinting offline phase N, L×1 vectors are defined, with the generic vector sn containing in its sl,n component the RSS measured for the (l,n) AP-RP pair.

In the general case of two-step algorithms, an offline clustering step takes place after the RSSs’ collection, during which the RPs are divided into Nc<N clusters and a particular RP is elected as the clusterhead for each cluster.

Once the offline phase is complete, the position estimation is obtained during the online phase, divided into coarse localization (cluster selection/matching) and fine localization (RP selection and weighting) steps. Denoting with si the RSS vector measured for the i-th online reading, the coarse localization step selects the Nc,iNc clusters that best match the online reading; this is obtained through the computation of Nc similarity values simi,ncC=simC(si,snc) (with nc=1,2,,Nc) between the online reading and a fingerprint selected as the nc-th cluster’s representative, where simi,nc is a properly-defined similarity metric and superscript C indicates that such similarity values are evaluated during the coarse localization step. Denoting with Ni the total number of RPs belonging to the Nc,i selected clusters, during the fine localization step, the first k out of Ni RPs are selected by computing Ni similarity values simi,nF=simF(si,sni) (with ni=1,2,,Ni) between the online reading and the RP fingerprints, where simi,n is a properly-defined similarity metric and superscript F indicates that such similarity values are evaluated during the fine localization step. Next, the k selected RPs are used in the WkNN-based position estimation formula:

p^i=n=1k(simi,nF)pnn=1ksimi,nF (1)

where pn=(xn,yn,zn) and p^i=(x^i,y^i,z^i) are the position of the n-th RP and the estimate of the unknown i-th position in the 3D coordinates system defined for the area of interest, respectively.

Flat algorithms are included in the above model by selecting Nc=Ni=N, that is assuming a clustering algorithm that leads to N one-dimensional clusters and a coarse localization step that selects all clusters. The k RPs to be considered in Equation (1) are then selected through the evaluation of N similarity values simi,nF=simF(si,sn) (with n=1,2,,N).

A few open points remain in the complete definition of the model, which are introduced in the following and will be analyzed in detail later on in the paper:

  • Selection of k: Previous works showed the impact of the methodology of selecting the set of k RPs and the value of k itself on the positioning performance of deterministic WkNN algorithms [5,6,7], but no univocal and general way to select the value of k was provided. Section 2.2 presents the two selection schemes considered in this work.

  • Clustering algorithm: Two-step algorithms considered in this work require the selection of a clustering algorithm to be used in the offline phase. Several works proposed the affinity propagation algorithm [13] as a viable solution to fulfill this task [12,14,15,16], and the algorithm was also adopted in this work. The affinity propagation algorithm and its application to RP clustering and coarse localization steps are discussed in Section 2.3.

  • Similarity metrics: Different similarity metrics can be adopted in two-step algorithms for coarse and fine localization steps, respectively, leading to simi,nCsimi,nF, and thus, introducing an additional degree of freedom in the algorithm design. This possibility, not yet explored in the literature, will be thoroughly addressed in Section 3.

2.2. k Selection Schemes

In [4,6,7], among many others, an a priori fixed k scheme was proposed, in which k is selected as a system parameter and does not change during the online estimation requests. It can be easily shown that the choice of a fixed k value is not optimal, since the value of k that minimizes the estimation error will in general depend on the target position. Even finding a fixed value of k that minimizes the average error on all possible target positions is not trivial. Experimental studies found, however, that a value of k between 2 and 10 leads to an average error close to its minimum achievable value [3,5,6,7,17,18].

This empirical result seems reasonable by considering that, on the one hand, if k=1 is selected, each positioning request is solved by assigning to the target device the position of the best matching RP, and this could lead to high positioning errors for some target positions. On the other hand, as k increases, more and more RPs are included in Equation (1), eventually including some with low similarity and, thus, decreasing the positioning accuracy. The impact of a fixed k selection scheme on the positioning accuracy of flat algorithms is investigated in Section 4.2.

In order to overcome the issues inherent to the fixed k scheme, several works proposed a dynamic k scheme, in which the value is adjusted at each positioning request [5,18,19]. In general, this scheme relies on the definition of a threshold λ taking values in the same domain of the similarity metric and on the selection of the RPs that show a value of the metric above the threshold. Additional flexibility can be achieved by introducing a variable threshold. In this case, given the i-th positioning request, λ is evaluated as a function of the RPs similarity values simi,nF, that is:

λ=λi(simi,nF)=f(simi,nF) (2)

where f(.) is a function of the observed similarity values and n=1,2,,Ni.

This scheme is investigated in conjunction with two-step algorithms in Section 4, where the reader can also find additional details on the implementation of Equation (2).

2.3. Affinity Propagation Clustering for Indoor Positioning

2.3.1. RP Clustering

The affinity propagation algorithm is a clustering algorithm that divides a set of elements into clusters and elects for each cluster a representative clusterhead, also dubbed the exemplar [13]. Differently from traditional k-center clustering algorithms that usually start the iterative procedure for clusters creation and exemplar election by choosing both the number of output clusters and a corresponding random set of initial exemplars, affinity propagation starts by granting each element the same chances to become an exemplar, thus removing the dependence from the initial conditions.

The algorithm follows a distributed and iterative approach: elements are seen as network nodes, which exchange messages containing computed values that measure the affinity that one element has for choosing another element as its exemplar, until it converges to a stable set of exemplars and corresponding clusters.

In the context of indoor positioning, since elements correspond to RPs, the algorithm can be implemented in a centralized way where no actual message transmission is required, and for each iteration, the requested values are evaluated by a central processing unit based on an initial measure of similarity simCL(sn1,sn2) (with n1,n2=1,2,,N and n1n2) between each RP pair, where the superscript CL indicates that such similarity values are evaluated during the clustering step, measuring how well the RPn2 is suited to be the exemplar for RPn1.

The self-similarity value simCL(sn,sn) (with n=1,2,,N), that is also dubbed the preference, indicates the possibility that RPn may become an exemplar. In order to give all RPs the same chance to become an exemplar, their preferences are initially set to a common finite value, typically defined as:

pref(sn)=simCL(sn,sn)=γ·median{simCL(sn1,sn2)},n1,n2{1,2,,N},n1n2 (3)

where γ is a tunable parameter [12,13].

The definition of exemplars relies on the evaluation of two values, ideally exchanged between RPs pairs and defined as follows:

  • Responsibility resp(sn1,sn2): This reflects the accumulated evidence for how well-suited RPn2 is to serve as the exemplar for RPn1, taking into account other potential exemplars for RPn1.

  • Availability avail(sn1,sn2): This reflects the accumulated evidence for how appropriate it would be for RPn1 to choose RPn2 as its exemplar, taking into account the support from other RPs that RPn2 should be an exemplar.

These values are iteratively updated according to the following equations:

resp(sn1,sn2)=simCL(sn1,sn2)-maxn3{avail(sn1,sn3)+simCL(sn1,sn3)} (4)
avail(sn1,sn2)=min0,resp(sn2,sn2)+n3max{0,resp(sn3,sn2)} (5)

n1,n2,n3{1,2,,N} and n1n2, n3n2 in Equation (4) and n3n1,n2 in Equation (5).

In order to facilitate the convergence of the iterative procedure and to avoid ringing oscillations, a damping factor (DF) [0.5,1) is typically introduced, leading to the following expressions for the new values of responsibility and availability:

respnew(sn1,sn2)=DF·respold(sn1,sn2)+(1-DF)·respnew(sn1,sn2)availnew(sn1,sn2)=DF·availold(sn1,sn2)+(1-DF)·availnew(sn1,sn2) (6)

n1,n2{1,2,,N}, n1n2, with respnew(sn1,sn2) and availnew(sn1,sn2) evaluated by using Equations (4) and (5), respectively.

Two main issues were identified in the application of the affinity propagation algorithm in [12,13]:

  • Degeneracies: Degeneracies can arise, for example, if the similarity metric is commutative and two elements (RPs) are isolated from all of the others. In this case, oscillations in deciding which of the two elements should be the exemplar might appear. The solution proposed in [13] is to add a small amount of random noise to similarities values to avoid such a deadlock situation.

  • Outliers: The algorithm might occasionally lead to an RP belonging to a cluster, but being physically far away from the cluster exemplar. In [12], taking advantage of the knowledge of the position of each RP, each outlier is forced to join the cluster characterized by the exemplar at the minimum distance from the outlier itself.

2.3.2. Cluster Selection

The main goal of the coarse localization or cluster selection step is to reduce the RP space, through the selection of a subset of clusters that match the online reading, according to a specified similarity metric. This reduces the computational complexity of the subsequent fine localization step and, furthermore, may lead to an improvement in positioning accuracy by discarding possible outliers [12].

In this paper, the criteria proposed in [12] for the coarse localization step are adopted. Such criteria are defined as follows:

  • Similarity to the exemplar fingerprints (Criterion I): the similarity simi,ncC between the i-th online reading and each nc-th exemplar fingerprint (with nc=1,2,,Nc) is evaluated, and clusters corresponding to exemplars with similarity values above a predefined threshold α are selected.

  • Similarity to the cluster average fingerprints (Criterion II): in this case, a cluster fingerprint is computed by averaging the RP fingerprints within the cluster. The similarity simi,ncC between the i-th online reading and each nc-th cluster fingerprint (with nc=1,2,,Nc) is then evaluated, and the clusters with similarity values above α are selected.

The value of α should be selected so as to avoid either the selection of too few or too many clusters that might lead to high positioning errors if wrong clusters are selected, on the one hand, and negligible reduction of the RP space, on the other. In this paper, the following definition of α, provided in [12], is adopted:

α=α1·maxeE{simC(si,e)}+α2·mineE{simC(si,e)} (7)

where E contains: (1) the set of exemplar fingerprints when Criterion I is adopted; or (2) the set of cluster fingerprints when Criterion II is adopted, respectively; and α1+α2=1. The values of α1 and α2 allow one to adjust the number of selected clusters: as an example, the smaller the number of desired selected clusters, the higher should be the value of α1 (and conversely, the lower the value of α2). The impact of adopting Criterion I vs. Criterion II during the coarse localization on the positioning accuracy will be analyzed in detail in Section 4.3.

2.3.3. Similarity Metric for RP Clustering and Cluster Selection Steps

All previous works applying affinity propagation to indoor positioning share the same definition of pairwise similarity simCL(sn1,sn2) [12,14,15,16]. This definition, inherited from [13], is as follows:

simCL(sn1,sn2)=-[D2(sn1,sn2)]2n1,n2{1,2,,N},n1n2, (8)

where D2(sn1,sn2) expresses the Euclidean distance between the RP fingerprints:

D2(sn1,sn2)=l=1L|sl,n1-sl,n2|212 (9)

However, the metric in Equation (8) was not proven to be optimal in the sense of both RP clustering quality and system positioning accuracy. Furthermore, to the authors best knowledge, all existing works adopt the above definition for both clustering and coarse localization steps, leading to the same metric definition for simCL(.,.) and simC(.,.). In this work, on the contrary, different definitions of similarity metrics are investigated, and combinations of the different metrics for clustering and coarse localization steps are proposed. Possible candidates for the role of similarity metrics are discussed in Section 3, and the results of the above analysis are presented in Section 4.3.

3. Similarity in the Context of WiFi Fingerprinting Indoor Positioning

This section reviews and defines suitable candidates for the role of similarity metrics in both flat and two-step algorithms, differentiating between metrics that are only applicable during the offline phase as simCL(.,.) and metrics that, oppositely, are applicable to both offline and online phases, as simC/F(.,.). The interested reader can refer to [17] for a comprehensive analysis of similarity metrics only focused, however, on a flat kNN algorithm with no weighting. For the analysis carried out in this work, a subset of such metrics was selected so as to ensure the inclusion of metrics with different characteristics in terms of expected impact on the different steps involved in a two-step algorithm (e.g., linearity vs. lack of it). The extension to additional metrics defined in [17] and elsewhere will be addressed in future works.

The section concludes with the definition of a comparative framework for the selected similarity metrics, used to identify the most suitable candidates for the role of the similarity metric in the experimental analysis later presented in Section 4.

3.1. Offline Phase Similarity Metrics

Metrics to be adopted during the offline phase can take advantage of two kinds of information regarding the RPs:

  • RP positions pn (with n=1,2,,N).

  • RP RSS fingerprints sn (with n=1,2,,N).

As a result, during the offline phase, both spatial distance-based and RSS-based similarity metrics, denoted with simCL(pn1,pn2) and simCL(sn1,sn2) (n1,n2{1,2,,N} and n1n2), respectively, can be defined. This constitutes the main difference between the offline and online phases, since in the latter one, only RSS-based similarity metrics can be adopted as simC/F(si,sn). In Subsection 3.1.1, a spatial distance-based metric is proposed leaving the analysis of RSS-based similarity metrics to Section 3.2, as they are common to both the offline phase (between vectors sn1 and sn2) and the online phase (between vectors si and sn).

3.1.1. A Spatial Distance-Based Similarity Metric

Moving from the assumption that the RPs in close physical proximity should exhibit a high similarity and taking advantage of the fact that the RP positions are known, a spatial distance-based similarity metric can be defined as follows:

simCL(pn1,pn2)=[d(pn1,pn2)]-1 (10)

where d(pn1,pn2) indicates the Euclidean distance between the coordinates vectors pn1 and pn2.

3.2. Offline/Online Phase Similarity Metrics

In this section, several RSS-based similarity metrics are presented as possible simC/F(si,sn) metrics, together with their application to the estimation formula reported in Equation (1). However, as already discussed in Section 3.1, they are applicable to RP clustering, as well as simCL(sn1,sn2) metrics.

3.2.1. Minkowski Distance-Based Metrics: Manhattan and Euclidean

A popular choice for defining a deterministic similarity metric is the evaluation of the Minkowski distance, with order p, between the online vector si and each RP fingerprint sn. Denoted as Dp(si,sn), it is defined as follows:

Dp(si,sn)=l=1L|sl,i-sl,n|p1pp1 (11)

Orders typically used are p=1, corresponding to the Manhattan distance (D1(si,sn)), and p=2, corresponding to the Euclidean distance (D2(si,sn)). Note that Minkowski distance is indeed a dissimilarity metric, and its reciprocal can be adopted as a similarity definition, as proposed, for example, in [5,6,7]. Introducing the shortened notation Di,np=Dp(si,sn) and selecting the k RPs with the lower distances, the estimated position is then obtained as follows:

p^i=n=1k(Di,np)-1pnn=1k(Di,np)-1 (12)

In Equation (12), the set of k RPs is weighted so that the RP at the minimum distance is the one with the highest impact on the position estimation.

3.2.2. Inner Product-Based Metrics: Cosine Similarity and Pearson Correlation

Metrics based on modified versions of the inner product between RSS vectors are quite popular, as well. The inner product is defined as follows:

si,sn=l=1Lsl,isl,n (13)

Moving from this definition, cosine similarity (in the following referred to as CS(si,sn)) was proposed in [20] and is defined as follows:

CS(si,sn)=si,sn||si||||sn||=l=1Lsl,isl,nl=1Lsl,i2l=1Lsl,n2 (14)

where ||·|| indicates the vector 2-norm. The name stems from the fact that cosine similarity can be seen as the cosine of the angle between the two vectors. Note that, although in general, CS takes values in [-1,+1], if both vectors have completely positive or negative values, it is limited between zero and one. This metric finds large application in research areas related to information retrieval, text mining and clustering schemes, and it has been proposed in the context of indoor positioning in [20,21,22,23]. According to this approach, once the Ni (or N) cosine similarities are evaluated, they are used for selecting the k RPs most relevant to the position estimation. This leads to the following position estimation formula:

p^i=n=1k(CSi,n)pnn=1kCSi,n (15)

where CSi,n=CS(si,sn).

When evaluated on the centered versions of the vectors, si-s¯i and sn-s¯n, respectively, CS(si,sn) turns into the widely-known Pearson correlation coefficient R(si,sn):

R(si,sn)=si-s¯i,sn-s¯n||si-s¯i||||sn-s¯n||=l=1L(sl,i-s¯i)(sl,n-s¯n)l=1L(sl,i-s¯i)2l=1L(sl,n-s¯n)2 (16)

Unlike cosine similarity, this index is invariant to vectors shifts [24]. It finds its main application in statistics when the evaluation of mutual dependencies between two variables is needed [25,26].

Denoting with Si and Sn two variables defined on an entire data population (for Si and Sn, vectors si and sn represent an observed L-dimensional population sample), the correlation coefficient between the variables, commonly represented with the Greek letter ρ (instead of R), can be expressed by using its more general formulation:

ρ(Si,Sn)=cov(Si,Sn)σSiσSn (17)

where cov(Si,Sn)=E[(Si-μSi)(Sn-μSn)] indicates the covariance, μSi, μSn indicate the mean and σSi, σSn indicate the standard deviations of the two variables, respectively. As for cosine similarity, the correlation coefficient takes values in the interval [-1,+1], where ±1 express total positive/negative correlation, respectively, while zero means no correlation.

Correlation-based metrics have been proposed for indoor positioning [27,28]. Specifically, in the context of fingerprinting-based indoor positioning, R(si,sn) was adopted in [18] as a similarity measure for implementing a WkNN algorithm. More accurately, in [18], the squared value of R(si,sn), typically known as the coefficient of determination, was adopted, since positive and negative correlation are equally relevant for determining the RPs to be included in the estimation. According to this approach, the evaluated R2(si,sn) values are used for selecting the k RPs most relevant to the position estimation. This leads to the following position estimation formula:

p^i=n=1k(Ri,n2)pnn=1kRi,n2 (18)

where, for the sake of simplicity, Ri,n=R(si,sn).

3.2.3. A Frequentist Approach: p-values from the Pearson Correlation

Moving from the Pearson correlation coefficient, an additional similarity metric was proposed in [18], as part of a new method rooted in the frequentist inference theory. The method uses a well-known frequentist hypothesis test that aims at computing the degree of significance of the correlation coefficient evaluated between two sample variables [26,29]. The significance is tested under standard assumptions, and the final result is the computation of the p-value, which indicates the probability of observing a data sample inconsistent with the hypothesis H0, that the correlation ρ(Si,Sn) between two variables is zero, given the R(si,sn) value computed on the sample variables. A p-value lower than a threshold significance level αSL indicates that H0 should be rejected and that the evaluated R(si,sn) has indeed a statistical significance, numerically associated with the p-value.

The p-value relative to the R(si,sn), referred to as the p-value(i,n), can be thus used as a dissimilarity metric, and RPs that are characterized by p-values lower than αSL can be selected and taken into account in the following position estimation formula [18]:

p^i=n=1kp-value(i,n)-1pnn=1kp-value(i,n)-1 (19)

Interestingly, it was shown in [18] that, even if the evaluation of the p-values leads to the same RPs selection as the Pearson correlation, the different RP weighting amplifies the gap between RPs, leading to significantly different results.

3.2.4. Exploring Interdisciplinary Metrics: Shepard Similarity

Additional similarity definitions can be found by exploring different fields of knowledge, and psychology is one the most interesting fields to look at, as it focuses on the perceived similarity, defined as the degree to which two different things similarly affect people’s rational thoughts and actions, such as recognition, identification and categorization.

In this context, the multi-dimensional scaling (MDS) technique is widely used to produce a psychological space in which similarity is inversely related to distance between different stimuli [30,31,32], and the two most popular distance measures used in MDS are the Euclidean and Manhattan distances, already defined in Equation (11). In [33], Shepard proposed a simple exponential function to relate distance to similarity. Denoted with Sp(si,sn), it can be generally expressed as follows:

Sp(si,sn)=e-Dp(si,sn)p1 (20)

This definition can be used for indoor positioning, for example by using Manhattan and Euclidean distances and evaluating both Shepard Manhattan-based similarity (S1(si,sn)) and Shepard Euclidean-based similarity (S2(si,sn)), leading to the following position estimation formula:

p^i=n=1k(Si,np)pnn=1kSi,np (21)

where, for the sake of simplicity, Si,np=Sp(si,sn).

Note that, similarly to the case of p-value vs. R, the adoption of Shepard similarity in place of Minkowski distance does not affect the RP sorting (from nearest to farthest), but it affects the RP weighting.

The use of p-value and Shepard similarities as RP weighting opens a further, still largely unexplored, possibility in the context of WkNN algorithms: a mixed approach in which the RP sorting is obtained through the use of a metric (in the presented cases, the correlation coefficient and the Minkowski distances, respectively), while different metrics, possibly obtained as a function of the previous ones, are used for the RP weighting. This possibility will be explored and investigated in Section 4.

3.3. A Comparative Framework for RSS-Based Similarity Metrics

The review in Section 3.2 highlighted that many different approaches exist for the definition of the similarity metric in a fingerprinting system: a natural question is then how to identify the best metric. A possibility is to measure the impact of the application of the metrics to the positioning accuracy of both flat and two-step algorithms; this approach will be followed in Section 4, with results presented and discussed in detail in Section 4.2 and Section 4.3, respectively.

In this section, however, the goal is to gain more insight into the role of the metric in identifying the most relevant RPs. Under the assumption that the goal of the positioning system is to minimize the physical distance between the actual position of a target device and its estimate, one can argue that the optimal metric is the one that sorts the RPs according to their distance from the position of the target device. This ideal metric is not obtainable in the real world, since the location of the target device is unknown by definition, but may provide a useful upper bound for the metrics defined in Section 3.2.

Given a positioning request i, if one defines as pi*=(xi*,yi*,zi*) the position to be estimated and with d(pi*,pn) (with n=1,2,,N) the spatial distances between it and each RP, such an ideal similarity metric is defined as [d(pi*,pn)]-1 and leads to a sorting of RPs inversely proportional to the distance from the target position. The goodness of the metrics in Section 3.2 can be then measured by comparing the sorting of the RPs they lead to with the one resulting from the ideal metric just defined. This analysis was carried out using the testbed implemented at the DIET Department of Sapienza University of Rome, described in detail in Section 4.1.

A set of P=70 test points (TPs) and N=134 RPs was used for the analysis. For each TP, given the exact position, the spatial distances from the RPs were measured, and the ideal metric was evaluated for each RP. Next, given the TP online reading and the RP fingerprints, the RSS-based similarity metrics were computed, as well. This allowed creating, for each TP, a set of histograms, or masks, one for each similarity metric, having on the x-axis the RPs sorted as a function of the decreasing similarity value according to the selected metric and on the y-axis the spatial distance between the selected RP and the TP.

As an example, Figure 1 reports the masks obtained, for a TP, for the ideal metric (Figure 1a) and for the metric defined in Equation (11) with p=2, corresponding to the Euclidean distance between the RSS vectors (Figure 1b). The histogram for the ideal metric is by definition monotonically increasing; on the other hand, the RSS-based Euclidean distance leads to a clearly different mask as a result of a different RP sorting. The difference between the masks was measured by evaluating the Euclidean distance between them element by element. By noting that, as already discussed in Section 2.2, in the application of the WkNN estimation formula of Equation (1) a number k<N is commonly adopted, the analysis of the masks’ difference as a function of k in the interval [1,N] was carried out.

Figure 1.

Figure 1

Example of reference point (RP) masks obtained for a specific test point (TP). (a) Mi,ideal, (b) Mi,(D2)-1.

Denoting with M i,ideal and Mi,j the masks for the i-th TP, obtained by sorting the RPs from nearest to farthest and from most to less similar (according to the j-th similarity metric), respectively, the k-th order difference between the masks is as follows:

δk(Mi,ideal,Mi,j)=n=1k(dideal(pi*,pn)-dj(pi*,pn))2 (22)

where dideal(pi*,pn) and dj(pi*,pn) indicate the spatial distance between the i-th TP and the RP occupying the n-th position in the masks Mi,ideal and Mi,j, respectively. By averaging the various δk on the set of TPs, one can obtain the following indicator, expressing the k-th order difference between the ideal metric and the j-th metric:

Δk(ideal,j)=i=1Pδk(Mi,ideal,Mi,j)P (23)

Figure 2 presents Δk(ideal,j) evaluated on the total set of test points, as a function of k, and for the similarity metrics introduced in Section 3.2 (Δk for p-value and Shepard similarities are not reported, since they provide, by definition, the same sorting as the correlation coefficient and the Minkowski distances, respectively, as already discussed at the end of Section 3.2). The results show that in general, the more the number of RPs (the value of k) taken into account in the computation of Δk(ideal,j), the higher the difference between the ideal metric and each RSS-based similarity metric. Within this general trend, different metrics lead to different performances in mimicking the sorting provided by the ideal metric. Moreover, in this particular case, the use of the coefficient of determination R2 minimizes the set of Δk, allowing one to obtain the average RPs sorting closest to the sorting provided by the use of the ideal metric. In turn, this means that the R2 metric will lead for any given value of k to the selection of the set of k RPs that is most similar to the one selected by the ideal metric, compared to all other metrics.

Figure 2.

Figure 2

Δk(ideal,j) vs. k for different similarity metrics.

Further comments on the meaningfulness of the result will be proposed in Section 4, after presenting results on positioning accuracy.

4. Experimental Results and Discussion

4.1. Testbed Implementation and Performance Indicators

A comparative analysis of metrics, schemes and algorithms was carried out within the experimental testbed implemented on the first two floors of the DIET Department. Each floor covers an area of 10×55 m2. N1=65 and N2=69 RPs were identified on the first and on the second floor, respectively, for a total number of N=134 RPs, resulting in an average distance between each RP and the set of its closest RPs of approximately 3 m. Figure 3 shows, as an example, the N1 RPs identified on the DIET first floor. In each RP, q=5 samples were taken, each sample consisting of the RSS values received from all detected APs, to counteract the impact of the channel variability on the fingerprinting database. For each AP, the values measured in the different q samples were then averaged. As a result, for each RP, a unique fingerprint, consisting of a list of averaged RSS values from the surrounding APs, was stored in the fingerprinting database.

Figure 3.

Figure 3

Positions of the N1 RPs on the Department of Information Engineering, Electronics and Telecommunications (DIET) first floor.

Once the offline stage was completed, the total number of detected APs was L=133. No AP filtering or selection was carried out: L includes all WiFi signals detected in the area, including physical and virtual APs, as well as temporary and mobile connection points.

Several algorithms using both fixed and dynamic k selection schemes, introduced in Section 2.2, were analyzed: in particular, the fixed scheme was applied in the flat algorithm analysis (Section 4.2), studying the impact of the value of k, while the dynamic scheme was used in the analysis of affinity propagation-based algorithms (Section 4.3), studying the impact of the RP selection threshold at the fine localization step. In the dynamic scheme considered in the analysis, the threshold was defined by generalizing the dynamic scheme investigated in [18]:

λi(simi,nF)=c·sim¯i,nF=c·n=1Nsimi,nFN (24)

where sim¯i,nF is the average of the metric values evaluated for the i-th positioning request and c is a tuning parameter taking values in [0.1,2].

In the case of affinity propagation-based algorithms, the parameters for the matching clusters’ threshold defined in Equation (7) and used in the coarse localization phase were set to α1=0.95 and α2=0.05, in order to keep as low as possible the number of selected clusters, as suggested in [12]. Moreover, for the clustering step, 100 iterations, a DF=0.6 and a preference parameter γ=1 were adopted.

Performance was then analyzed in terms of topology, positioning accuracy and online computational complexity. Topology analysis aimed at determining the impact of different similarity metrics used for the RPs clustering steps and performance indicators, and the results are presented in Section 4.3.1.

Regarding the positioning accuracy, the positioning error ϵi was evaluated for each TP as follows:

ϵi=(xi*-x^i)2+(yi*-y^i)2+(zi*-z^i)2 (25)

Moreover, assuming each ϵi as a sample of a random variable ϵ, the cumulative distribution function (CDF) of ϵ and the average error ϵ¯=i=1PϵiP were evaluated.

Finally, regarding the computational complexity, the selected performance indicator was the number of similarity values Nsim to be computed for obtaining the position estimate. In the case of two-step algorithms, this number for the generic i-th online reading can be expressed as follows:

Nsim=Nc+Ni (26)

where Nc is the number of RP clusters and Ni is the number of RPs passing the coarse localization step. Noting that in the case of flat algorithms Nsim=N for each positioning request, one can observe that, on average, the adoption of a two-step algorithm will lead to a reduction of computational complexity if N¯sim=Nc+N¯i<N, where N¯sim is the average number of similarity computations depending in turn on the average number of selected RPs N¯i=i=1PNiP.

4.2. Flat Algorithms

As discussed in the comparative framework in Section 3.3, in flat algorithms, the position estimate is obtained in two steps: first, the RPs are sorted according to their similarities to the TP, and the first k is selected; second, the estimate is obtained as a weighted average of the positions of the k selected RPs, as reported in Equation (1). In order to assess the role of the similarity metrics in both RP sorting and weighting, three cases were considered:

  • Ideal sorting/ideal weighting (ISIW): This case corresponds to an ideal upper bound benchmark where the spatial distances between each TP and the RPs are assumed to be known and then used for both RP sorting and weighting.

  • Ideal sorting/real weighting (ISRW): In this case, the spatial distances between each TP and the RPs are assumed to be known and used during the RP sorting phase. However, once the RPs are sorted, different RSS-based metrics are evaluated as RP weights, in order to isolate the impact of RSS-based metrics on the weighting phase.

  • Real sorting/real weighting (RSRW): This case represents the only feasible use case, where the spatial distances between each TP and the RPs are unknown. In this case, RSS-based metrics are evaluated and then used in both RP sorting and weighting phases.

The analysis focused on the four similarity metrics with the smallest Δk (see Section 3.3): R2, (p-value)-1, (D2)-1 and S2, respectively. Figure 4a shows the CDFs of ϵ for a WkNN scheme with k=3, for the ISRW case vs. the ISIW case. Results show that the metric used for weighting can have a significant impact on positioning accuracy, even under the ideal sorting condition, with (D2)-1 and R2 metrics achieving comparable results with respect to the ISIW case, while (p-value)-1 and S2 metrics cause a significant performance degradation.

Figure 4.

Figure 4

CDF of the 3D positioning error ϵ with k=3. ISIW, ideal sorting/ideal weighting; ISRW, ideal sorting/real weighting; RSRW, real sorting/real weighting. (a) ISIW (d-1) vs. ISRW (R2, (p-value)-1, (D2)-1 and S2); (b) ISIW (d-1) vs. RSRW (R2, (p-value)-1, (D2)-1 and S2).

Figure 4b shows the CDFs of ϵ for a WkNN scheme with k=3, considering the RSRW case for the four selected RSS-based metrics again vs. the ISIW case, used as a benchmark. Results show that all metrics lead to significant performance degradation when compared to the ISIW case, although some metrics, in particular (p-value)-1 and S2, seem to achieve slightly better performance. More insight can be obtained by analyzing the average 3D error as a function of the value of k, shown in Figure 5.

Figure 5.

Figure 5

Average 3D error ϵ¯ as a function of k. (a) ISIW (d-1) vs. ISRW (R2, (p-value)-1, (D2)-1 and S2); (b) ISIW (d-1) vs. RSRW (R2, (p-value)-1, (D2)-1 and S2).

Figure 5a presents in fact the average 3D error for the ISRW case vs. the ISIW case and confirms that R2 and (D2)-1 lead to an accuracy comparable to the ISIW case, at least for low values of k. On the other hand, Figure 5b shows that, in the RSRW case, the (p-value)-1 and S2 metrics lead, for all values of k, to lower average errors compared to all other metrics, confirming the results in Figure 4.

Figure 4 and Figure 5 present an apparently puzzling outcome where the metrics that perform poorly in the ISRW case ((p-value)-1 and S2) achieve the best results when used for both sorting and weighting. This results can be explained by observing that both (p-value)-1 and S2 lead to extremely variable similarity values for different RPs, in particular when compared to the Pearson correlation and the Minkowski distance from which they are derived, respectively. This in turn means that the first most relevant RPs are characterized by similarity values much higher than the following ones, making only the first few RPs important for the position estimation. While this is a negative feature when ideal sorting is used, oppositely, it becomes a valuable feature when sorting is good, but not ideal, because the impact of sorting errors beyond the first few RPs becomes negligible thanks to the high selectivity of the weighting metric. This observation, however, only holds for metrics that guarantee a sorting as close as possible to the ideal one and confirms the relevance and the importance of the analysis carried out in Section 3.3.

4.3. Affinity Propagation-Based Algorithms

This section presents the experimental results for two-step algorithms based on affinity propagation. Section 4.3.1 analyzes the impact of using different similarity metrics in the RP clustering step in terms of the resulting RP topology. Section 4.3.2 moves then to focus on positioning accuracy, and finally, Section 4.3.3 analyzes the computational complexity of the online phase.

4.3.1. Topology

This section compares the traditional affinity propagation metric of Equation (8), referred to in the following as gen (for generic) with the similarity metrics introduced in Section 3.1 and Section 3.2, by studying how they affect the definition of clusters, their number and their size.

Before moving to the discussion of the results, it is worth pointing out the following details about the implementation of the affinity propagation algorithm:

  • Clustering was performed separately for the two floors composing the testbed, assuming the knowledge of the floor for each RP.

  • With reference to the degeneracy issue identified in Section 2.3.1, the solution proposed in [13] of adding random noise to similarity values was not implemented, since different similarities are characterized by significantly different ranges of values, making it impossible to add noise with the same power to all similarity metrics.

  • On the other hand, the outlier issue, also identified in Section 2.3.1, was addressed by actually implementing the solution proposed in [12] to eliminate such outliers. This leads in all cases to clusters occupying convex regions on each floor. Figure 6 shows as an example the clusters obtained on the DIET first floor, using the gen metric.

Figure 6.

Figure 6

RP clusters and exemplars obtained on the DIET first floor with gen as the similarity metric (areas represented in different colors indicate different clusters; larger dots indicate exemplars).

The following indicators where considered in the comparison: the number of formed clusters Nc, the average number of RPs within a cluster (|C|¯), the maximum and minimum cluster cardinalities (max{|C|} and min{|C|}) and the variance of the cluster cardinality (var{|C|}). Results for all metrics are presented in Table 1.

Table 1.

RP clustering via affinity propagation.

Metric Nc |C|¯ max{|C|} min{|C|} var{|C|}
d-1 37 3.62 6 2 1.07
gen 13 10.31 15 5 9.06
R2 13 10.31 19 4 27.73
(p-value)-1 43 3.11 6 2 1.10
CS 13 10.31 15 5 7.90
(D1)-1 29 4.62 8 2 3.17
(D2)-1 27 4.96 8 2 4.19
S1 34 3.94 7 2 2.54
S2 20 67 69 2 216.01

Results show that metrics can be approximately divided into two groups:

  • The first group including gen, R2 and CS metrics, leading to the creation of relatively few, large clusters, although with different variances.

  • The second group, including d-1, (p-value)-1, (D1)-1, (D2)-1 and S1 metrics, leading to small clusters with low variances. (p-value)-1 in particular leads to the largest number of clusters with the lowest variance among all metrics.

It is worth pointing out that results for S2 highlight that this similarity metric did not converge on the second floor after one hundred iterations, showing an example of the impact of degeneracies in the application of different similarity metrics to clustering based on affinity propagation.

Results shown in Table 1 raise the natural question of what is the best metric for RP clustering. In order to answer this question, one could resort to adopting a clustering goodness indicator, such as net similarity, widely used for clustering scheme comparisons [13]. When applied to Table 1, net similarity would indicate that the first group of metrics (gen, R2 and CS) should be the preferred choice for clustering. It is, however, worth observing that a high net similarity value does not necessarily correspond to a good performance in terms of positioning accuracy, as will be further discussed in Section 4.3.2.

4.3.2. Positioning Accuracy: A Backward Approach

This section focuses on the positioning accuracy achievable by combining different metrics for clustering, coarse and fine localization steps, respectively.

In the following, for the ease of notation, a generic combination will be indicated with the triplet m1/m2/m3 where m1 indicates the similarity metric used in the clustering step and previously referred to as simCL(.,.), m2 indicates the coarse localization metric, previously referred to as simC(.,.), and, finally, m3 indicates the fine localization metric, previously referred to as simF(.,.).

For the sake of the clarity of exposition, not all of the different combinations obtainable by selecting different metrics for the three different steps will be presented in the following. Rather, the following backward approach was adopted:

  1. Cluster matching criterion selection: The first step in the backward approach was the selection of one of the cluster matching criteria introduced in Section 2.3.2 in order to focus on a single criterion in the following steps of the analysis. In order to do so, both m1 and m2 were set equal to the gen metric, while the four metrics characterized by the smallest Δk, already considered in the analysis of flat algorithms (see Section 3.3 and Section 4.2), were adopted as the m3 metric, in order to identify which of the two criteria performs better under different conditions.

  2. m2/m3 selection: Having selected the best cluster matching criterion, the second step focused on the analysis and possibly the selection of the best metrics to be used during both coarse and fine localization steps. To do so, the m1 metric was kept set to the gen metric, while m2 and m3 metrics were allowed to change. In particular, all of the RSS-based metrics introduced in Section 3.2 were considered as candidates for the role of the m2 metric, while, based on the analysis already carried out in Section 3.3 and Section 4.2, candidates for the role of the m3 metric were restricted to the four metrics with the smallest Δk. Based on the positioning errors achieved by the different gen/m2/m3 combinations, this phase concluded with a joint m2 and m3 selection.

  3. m1 selection: The last step was the analysis of the impact of different metrics on the RP clustering step, aiming at the selection of the best one. In this case, all metrics defined in both Section 3.1 and Section 3.2 were eligible for the role of the m1 metric, while keeping both m2 and m3 set to the metrics selected as a result of the m2/m3 selection step.

Throughout the section, the performance of the flat algorithm using the same similarity metrics adopted as m3 in the analysis of two-step algorithms will be presented as a reference benchmark.

Step 1: Cluster Matching Criterion Selection

Figure 7 presents the average error ϵ¯, obtained by varying the threshold parameter c (or the significance level αSL, in the case of the p-value algorithm [18]), for the gen/gen/m3 metrics’ combinations and the flat algorithm adopting the same m3 metric. Precision as measured by the standard error was in the worst case equal to ±0.05 m.

Figure 7.

Figure 7

Impact of the matching cluster Criteria I/II on the average 3D error ϵ¯. (a) flat vs. gen/gen/R2 combinations; (b) flat vs. gen/gen/(p-value)-1 combinations; (c) flat vs. gen/gen/(D2)-1 combinations; (d) flat vs. gen/gen/S2 combinations.

Results show that Criterion II performs slightly better than Criterion I for each gen/gen/m3 combination, suggesting that the adoption of an average cluster RSS fingerprint as representative of the cluster is the best option in order to maximize the positioning accuracy. As a result, Criterion II was selected and used in the following steps of the backward analysis. As an interesting side note, results also show that two-step algorithms achieved comparable or better performance than the flat ones for all considered metrics.

Step 2: m2/m3 Selection

Figure 8 shows the average error ϵ¯, for the flat algorithm vs. the gen/m2/m3 metrics’ combinations. Precision as measured by the standard error was in the worst case equal to ±0.04 m.

Figure 8.

Figure 8

Impact of the m2 and m3 metrics on the average 3D error ϵ¯. (a) flat vs. gen/m2/R2 combinations; (b) flat vs. gen/m2/(p-value)-1 combinations; (c) flat vs. gen/m2/(D2)-1 combinations; (d) flat vs. gen/m2/S2 combinations.

Firstly, one can observe that results again show that two-step algorithms always lead to comparable or better results with respect to the flat ones. The performance increase provided by the two-step algorithms is in particular significant when the selected value of c leads to a low selection threshold and, thus, to a large number of RPs being selected. Under these conditions, the RP space reduction provided by clustering leads to significant reduction in the value of ϵ¯.

Moving to the analysis of the impact of the different metrics on the performance of the two-step algorithms, results show that the (p-value)-1 and S2 metrics lead to a substantial independence of the performance from the value of the selection threshold, as shown in Figure 8b,d. This is due to the selective feature of these metrics, already discussed in Section 4.2, which leads to a small number of RPs being relevant in the position estimation.

The results shown in Figure 8 lead furthermore to the following conclusions:

  • Impact of the m3 metric: The use of different m3 metrics significantly affects the positioning accuracy. Among all metrics, (p-value)-1 emerged as the best candidate to play the role of m3, since at the same time, it minimizes the impact of the RP selection threshold and the positioning error, with a value around 2.76 m below any other metric.

  • Impact of the m2 metric: Different m2 metrics have a negligible effect on the positioning accuracy, with a difference in the evaluated average errors in a range of about twenty centimeters. The substantial independence of the performance from the selected m2 metric is confirmed by Figure 9, showing the impact of metrics on the value of N¯i (defined in Section 4.1 as the average number of RPs within the clusters selected after the coarse localization step).

Figure 9.

Figure 9

Impact of m1 and m2 metrics on N¯i.

Figure 9 focuses in fact on the impact of m1 and m2 on N¯i and shows that once the m1 metric is selected, the choice of m2 has a limited impact on N¯i.

As a results of this step of the backward analysis, the (p-value)-1 metric was selected as the m3 metric, while the gen metric was kept as m2, in accordance with previous literature, given the fundamental independence of the performance from this metric.

Step 3: m1 Selection

Figure 10 shows the average error ϵ¯ for the flat algorithm vs. the m1/gen/(p-value)-1 combinations. Precision as measured by the standard error was in the worst case equal to ±0.03 m.

Figure 10.

Figure 10

Impact of the m1 metric on the average 3D error ϵ¯: flat vs. m1/gen/(p-value)-1 combinations.

Figure 10 shows that among all possible combinations, the (p-value)-1/gen/(p-value)-1 one leads to the best positioning accuracy with an average 3D error of about 2.65 m. All metrics lead, however, to positioning errors in the order of 3 m. As a consequence of the results in Figure 10, the conclusion was to select (p-value)-1 as the m1 metric. This result is also confirmed by an exhaustive search over all possible m1/m2/m3 combinations, not shown here graphically for the sake of clarity. In order to confirm this conclusion, however, in Figure 11, results obtained for different m1 metrics with m2= gen and m3=(D2)-1 are presented (worst case precision: ±0.03 m) and confirm that a different m3 metric leads to worse positioning accuracy than the (p-value)-1, for all considered m1 metrics. Two additional observations can be derived from the results presented in this section:

Figure 11.

Figure 11

Impact of the m1 metric on the average 3D error ϵ¯: flat vs. m1/gen/(D2)-1 combinations.

  • Figure 11 shows that if a m3 metric different from (p-value)-1, characterized by a lower selectivity, is selected, the impact of m1 can be significantly larger, especially when many RPs are selected.

  • Both Figure 10 and Figure 11 highlight that the adoption of the only spatial distance-based metric d-1 as the m1 metric has no particular impact on performance.

4.3.3. Computational Complexity

It was previously stated in the paper that one of the main expected advantages of two-step algorithms is the reduction of the computational complexity of the online phase. In order to assess this aspect, the value of N¯sim defined in Section 4.1 was measured for both flat and two-step algorithms as a function of the m1 metric. It is worth noting that the m1 metric is the only relevant metric in this analysis, since m2 and m3 have no impact on the number of clusters.

Figure 12 shows the values of N¯sim for both flat and two-step algorithms as a function of the m1 metric. For two-step algorithms, Figure 12 also highlights the contributions of Nc and N¯i to N¯sim, for each m1 metric, respectively.

Figure 12.

Figure 12

N¯sim for both flat and two-step algorithms (with several m1 metrics).

The following observations can be made based on the results in Figure 12:

  • As expected, the number of computed similarity values is always equal to N for a flat algorithm.

  • Two-step algorithms significantly reduce the average computational complexity of the online phase. Moreover, m1 metrics can be divided into two different groups: (1) m1 metrics that minimize the number of formed clusters and conversely maximize the number of RPs selected after the coarse localization step; and (2) m1 metrics that maximize the number of formed clusters and conversely minimize the number of RPs remaining after the coarse localization step.

  • The first group of metrics shows a N¯sim value slightly lower than the second group. CS in particular obtained the lowest computational complexity; at the same time, both groups show a N¯sim value significantly lower than the flat algorithm.

  • As a final note, it can be observed that the m1=(p-value)-1 metric, which minimizes positioning error as found in Section 4.3.2, is not the metric minimizing N¯sim.

5. Conclusions

In this work, a comprehensive review of WkNN WiFi fingerprinting-based indoor positioning algorithms has been provided. The role of the similarity metric between the RP fingerprints and online readings was investigated, by considering both flat WkNN algorithms and two-step algorithms based on affinity propagation.

For two-step algorithms, the impact of the similarity metric in three different steps involved in determining the position estimate, that is clustering, coarse localization and fine localization, was analyzed, and a novel mixed approach combining different metrics at different steps was proposed and investigated.

The extensive experimental analysis carried out in this work highlighted that two-step algorithms provided an effective solutions for improving the performance of flat algorithms in terms of both positioning accuracy and computational complexity. The analysis also highlighted that combining different metrics for the different steps of the two-step algorithm is a viable and promising solution to improve the positioning accuracy. In particular, the best results were obtained by metrics that lead to a large number of small clusters of RPs in the clustering step and at the same time are highly selective in the fine localization step. Finally, a trade-off was identified between positioning accuracy and computational complexity in which a slight performance decrease must be accepted for one of the two performance indicators in order to optimize the system with respect to the other.

Future works will focus on extending the presented analysis by considering different environments, other clustering algorithms and an extended set of deterministic similarity metrics. A second interesting research direction is the extension of the work to the case of probabilistic similarity metrics. A third research line that was identified is related to the removal of the assumption of the knowledge of the floor of each RP during the clustering step, allowing the formation of 3D clusters. In parallel, a study of the reduction of complexity in the offline phase through the introduction of virtual RP fingerprints estimated by means of indoor channel modeling was recently initiated [34].

Acknowledgments

Part of this work was carried out in the framework of the project “Indoor Localization by Visible Light Communications” funded by Sapienza University of Rome.

Author Contributions

Giuseppe Caso conceived of and designed the system model, performed the experiments and was the main contributor in the writing of the manuscript. Luca De Nardis contributed to the system model, reviewed the experimental results and contributed to the writing of the manuscript. Maria-Gabriella Di Benedetto reviewed and contributed to the system model and contributed to the writing of the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

References

  • 1.Yuan S., Win M.Z. Fundamental Limits of Wideband Localization—Part I: A General Framework. IEEE Trans. Inf. Theory. 2010;56:4956–4980. [Google Scholar]
  • 2.Liu H., Darabi H., Banerjee P., Jing L. Survey of Wireless Indoor Positioning Techniques and Systems. IEEE Trans. Syst. Man Cybern. C Appl. Rev. 2007;37:1067–1080. doi: 10.1109/TSMCC.2007.905750. [DOI] [Google Scholar]
  • 3.Honkavirta V., Perälä T., Ali-Löytty S., Piché R. Comparative Survey of WLAN Location Fingerprinting Methods; Proceedings of the Workshop on Positioning, Navigation and Communication (WPNC’09); Hannover, Germany. 19 March 2009; pp. 243–251. [Google Scholar]
  • 4.Bahl P., Padmanabhan V.N. RADAR: An in-building RF-based user location and tracking system; Proceedings of the IEEE International Conference on Computer Communications (INFOCOM’00); Tel Aviv, Israel. 26–30 March 2000; pp. 775–784. [Google Scholar]
  • 5.Shin B., Lee J.H., Lee T., Kim H.S. Enhanced weighted K-nearest neighbor algorithm for indoor WiFi positioning systems; Proceedings of the International Conference on Computing Technology and Information Management (ICCM’12); Seoul, Korea. 24–26 April 2012; pp. 574–577. [Google Scholar]
  • 6.Yu F., Jiang M., Liang J., Qin X., Hu M., Peng T., Hu X. 5G WiFi Signal-Based Indoor Localization System Using Cluster k-Nearest Neighbor Algorithm. Int. J. Distrib. Sens. Netw. 2014;2014 doi: 10.1155/2014/247525. [DOI] [Google Scholar]
  • 7.Li B., Salter J., Dempster A.G., Rizos C. Indoor Positioning Techniques Based on Wireless LAN. School of Surveying and Spatial Information Systems, UNSW; Sydney, Australia: 2006. Technical Report. [Google Scholar]
  • 8.Roos T., Myllymäki P., Tirri H., Misikangas P., Sievänen J. A Probabilistic Approach to WLAN User Location Estimation. Int. J. Wirel. Inform. Netw. 2002;9:155–164. doi: 10.1023/A:1016003126882. [DOI] [Google Scholar]
  • 9.Youssef M., Agrawala A., Udaya Shankar A. WLAN location determination via clustering and probability distributions; Proceedings of the IEEE International Conference on Pervasive Computing and Communications (PerCom’03); Dallas-Fort Worth, TX, USA. 23–26 March 2003; pp. 143–151. [Google Scholar]
  • 10.Youssef M., Agrawala A. Handling samples correlation in the Horus system; Proceedings of the IEEE International Conference on Computer Communications (INFOCOM’04); Hong Kong, China. 7–11 March 2004; pp. 1023–1031. [Google Scholar]
  • 11.Le Dortz N., Gain F., Zetterberg P. WiFi fingerprint indoor positioning system using probability distribution comparison; Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP’12); Kyoto, Japan. 25–30 March 2012; pp. 2301–2304. [Google Scholar]
  • 12.Feng C., Au W.S.A., Valaee S., Tan Z. Received-Signal-Strength-Based Indoor Positioning Using Compressive Sensing. IEEE Trans. Mobile Comput. 2012;11:1983–1993. doi: 10.1109/TMC.2011.216. [DOI] [Google Scholar]
  • 13.Frey B.J., Dueck D. Clustering by Passing Messages Between Data Points. Science. 2007;315:972–976. doi: 10.1126/science.1136800. [DOI] [PubMed] [Google Scholar]
  • 14.Tian Z., Tang X., Zhou M., Tan Z. Fingerprint indoor positioning algorithm based on affinity propagation clustering. EURASIP J. Wirel. Commun. 2013;2013 doi: 10.1186/1687-1499-2013-272. [DOI] [Google Scholar]
  • 15.Ding G., Tan Z., Zhang J., Zhang L. Fingerprinting localization based on affinity propagation clustering and artificial neural networks; Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC’13); Shanghai, China. 7–10 April 2013; pp. 2317–2322. [Google Scholar]
  • 16.Hu X., Shang J., Gu F., Han Q. Improving Wi-Fi Indoor Positioning via AP Sets Similarity and Semi-Supervised Affinity Propagation Clustering. Int. J. Distrib. Sens. Netw. 2015;2015 doi: 10.1155/2015/109642. [DOI] [Google Scholar]
  • 17.Torres-Sospedra J., Montoliu R., Trilles S., Belmonte Ó., Huerta J. Comprehensive analysis of distance and similarity measures for Wi-Fi fingerprinting indoor positioning systems. Expert Syst. Appl. 2015;42:9263–9278. doi: 10.1016/j.eswa.2015.08.013. [DOI] [Google Scholar]
  • 18.Caso G., de Nardis L., di Benedetto M.-G. Frequentist Inference for WiFi Fingerprinting 3D Indoor Positioning; Proceedings of the International Conference on Communications (ICC’15), Workshop on Advances in Network Localization and Navigation (ANLN’15); London, UK. 8–12 June 2015. [Google Scholar]
  • 19.Philipp M., Kessel M., Werner M. Dynamic nearest neighbors and online error estimation for SMARTPOS. Int. J. Adv. Internet Tech. 2013;6:1–11. [Google Scholar]
  • 20.Salton G., McGill M.J. Introduction to Modern Information Retrieval. McGrw-Hill, Inc.; New York, NY, USA: 1986. [Google Scholar]
  • 21.Ali S.F.M., Hassan R. Local Positioning System Performance Evaluation with Cosine Correlation Similarity Measure; Proceedings of the International Conference on Bio-Inspired Computing: Theories and Applications (BIC-TA’11); Penang, Malaysia. 27–29 September 2011; pp. 151–156. [Google Scholar]
  • 22.Luo Y., Hoeber O., Chen Y. Enhancing Wi-Fi fingerprinting for indoor positioning using human-centric collaborative feedback. Hum. Cent. Comput. Inf. Sci. 2013;3 doi: 10.1186/2192-1962-3-2. [DOI] [Google Scholar]
  • 23.He S., Chan S.-H.G. Sectjunction: Wi-Fi indoor localization based on junction of signal sectors; Proceedings of the IEEE International Conference on Communications (ICC’14); Sydney, Australia. 10–14 June 2014; pp. 2605–2610. [Google Scholar]
  • 24.Egghe L., Leydesdorff L. The relation between Pearson’s correlation coefficient r and Salton’s cosine measure. J. Assoc. Inf. Sci. Technol. 2009;60:1027–1036. doi: 10.1002/asi.21009. [DOI] [Google Scholar]
  • 25.Stigler S.M. Francis Galton’s account of the invention of correlation. Stat. Sci. 1989;4:73–79. doi: 10.1214/ss/1177012580. [DOI] [Google Scholar]
  • 26.Fisher R.A. Frequency distribution of the values of the correlation coefficient in samples from an indefinitely large population. Biometrika. 1915;10:507–521. doi: 10.2307/2331838. [DOI] [Google Scholar]
  • 27.Tsui A.W., Chuang Y.-H., Chu H.-H. Unsupervised learning for solving RSS hardware variance problem in WiFi localization. Mob. Net. Appl. 2009;14:677–691. doi: 10.1007/s11036-008-0139-0. [DOI] [Google Scholar]
  • 28.Popleteev A., Osmani V., Mayora O. Investigation of indoor localization with ambient FM radio stations; Proceedings of the IEEE International Conference on Pervasive Computing and Communications (PerCom’12); Lugano, Switzerland. 19–23 March 2012; pp. 171–179. [Google Scholar]
  • 29.Neyman J., Pearson E.S. On the problems of the most efficient tests of statistical hypotheses. Philos. Trans. R. Soc. Lond. A. 1933;231:289–337. doi: 10.1098/rsta.1933.0009. [DOI] [Google Scholar]
  • 30.Ashby F.G., Perrin N.A. Toward a unified theory of similarity and recognition. Psychol. Rev. 1988;95:124–150. doi: 10.1037/0033-295X.95.1.124. [DOI] [Google Scholar]
  • 31.Shepard R.N. The analysis of proximities: Multidimensional scaling with an unknown distance function. Psychometrika. 1962;27:125–140. doi: 10.1007/BF02289630. [DOI] [Google Scholar]
  • 32.Young F.W., Hamer R.M. Theory and Applications of Multidimensional Scaling. Erlbaum; Hillsdale, NJ, USA: 1994. [Google Scholar]
  • 33.Shepard R.N. Toward a universal law of generalization for psychological science. Science. 1987;237:1317–1323. doi: 10.1126/science.3629243. [DOI] [PubMed] [Google Scholar]
  • 34.Caso G., de Nardis L. On the applicability of Multi-Wall Multi-Floor propagation models to WiFi Fingerprinting Indoor Positioning; Proceedings of the EAI International Conference on Future access enablers of ubiquitous and intelligent infrastructures (Fabulous’15); Ohrid, Republic of Macedonia. 23–25 September 2015. [Google Scholar]

Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES