Next Article in Journal
Study of a Compression-Molding Process for Ultraviolet Light-Emitting Diode Exposure Systems via Finite-Element Analysis
Next Article in Special Issue
A Sequential Optimization Calibration Algorithm for Near-Field Source Localization
Previous Article in Journal
Development of an Automatic Testing Platform for Aviator’s Night Vision Goggle Honeycomb Defect Inspection
Previous Article in Special Issue
An Empirical Study of the Transmission Power Setting for Bluetooth-Based Indoor Localization Mechanisms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

TrackCC: A Practical Wireless Indoor Localization System Based on Less-Expensive Chips

1
The School of Computer Science and Information Security, Guangxi Key Laboratory of Trusted Software, Guilin University of Electronic Technology, Guilin 541004, China
2
Mobile E-Business Collaborative Innovation Center of Hunan Province, Key Laboratory of Hunan Province for Mobile Business Intelligence, Hunan University of Commerce, Changsha 410205, China
3
The Department of Electrical and Computer Engineering, University of Manitoba, Winnipeg, MB R3T 5V6, Canada
4
The Department of Computer and Information Engineering, Hechi University, Hechi 546300, China
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(6), 1391; https://doi.org/10.3390/s17061391
Submission received: 26 April 2017 / Revised: 9 June 2017 / Accepted: 9 June 2017 / Published: 15 June 2017

Abstract

:
This paper aims at proposing a new wireless indoor localization system (ILS), called TrackCC, based on a commercial type of low-power system-on-chip (SoC), nRF24LE1. This type of chip has only l output power levels and acute fluctuation for a received minimum power level in operation, which give rise to many practical challenges for designing localization algorithms. In order to address these challenges, we exploit the Markov theory to construct a ( l + 1 ) × ( l + 1 ) -sized state transition matrix to remove the fluctuation, and then propose a priority-based pattern matching algorithm to search for the most similar match in the signal map to estimate the real position of unknown nodes. The experimental results show that, compared to two existing wireless ILSs, LANDMARC and SAIL, which have meter level positioning accuracy, the proposed TrackCC can achieve the decimeter level accuracy on average in both line-of-sight (LOS) and non-line-of-sight (NLOS) senarios.

1. Introduction

Localization plays a key role in various business scenarios. The most famous localization system is the Global Position System (GPS). It has been widely used for outdoor localization but performs poorly in indoor environments due to blocked satellite signals. During the last ten years, indoor localization has been an important technical support in many wireless distribution systems due to: (1) its ability to position objects in places where outdoor localization systems cannot cover; and (2) too large graininess of outdoor systems to serve indoor environments with high precision requirements. Recently, indoor localization systems (ILSs) based on wireless signals have attracted researchers’ interests in a wide range of real applications, such as emergency personnel localization in a disaster area, patient tracking in a hospital and location detection of assets in a warehouse. Compared to other ILSs, e.g., vision-based localization system, wireless ILSs can simultaneously achieve low cost and high accuracy. According to the wireless infrastructure, wireless ILSs are usually classified into the following categories: Radio Frequency IDentification (RFID) ILS, WiFi ILS, Bluetooth ILS, etc. RFID ILS is capable of working for a relatively long time due to low power consumption, but the main drawback that commercial off-the-shelf readers have is that only a small reading distance of around 10 m [1] seriously limits its application fields. Bluetooth ILS [2] suffers from similar limitations. WiFi ILS can achieve a centimeter level localization precision [3,4]. However, it is required to equip high-power and relatively expensive WiFi chips with continuous AC power supplies into mobile devices and deploy a number of wireless access points. In this paper, different from conventional wireless ILSs, we will explore the localization possibility of a wireless ILS built on a low-power low-cost wireless chip, nRF24LE1, which only provides several discrete power outputs, and is not capable of measuring received signal strengths.
Wireless ILS works mainly based on four metrics. They are time of arrival (ToA), time difference of arrival (TDoA), angle of arrival (AoA) and received signal strength indicator (RSSI). Wang et al. [5] proposed a ToA-based ILS. It used DBSCAN algorithm to divide potential positions into two parts, inliers and outliers. The algorithm deleted outliers through iterative clustering, voting and filtering. Consequently, the position of the inliers gradually converged to a calculated position. Although ToA-based solutions have high accuracy in LOS scenarios, they require expensive time synchronization devices to calibrate time between transmitters and receivers. Since the time of arrival can be disrupted under NLOS scenarios, which significantly degrades localization accuracy, Pak et al. [6] proposed a ToA-based hybrid particle finite impulse response filter algorithm to mitigate NLOS effects by identifying NLOS links. A TDoA based localization approach adopts multiple receivers to record arrival times of a same source signal and uses the time difference among multiple measuring receivers for localization. Xiong et al. [7] proposed a TDoA-based ILS, called ToneTrack, to address the challenging situation, where direct path signals were blocked. Based on ToA readings from pairs of access points (APs), techniques such as triangle inequality, clustering and rejecting outlier, were adopted to yield the location estimations of mobiles. However, similar to ToA, TDoA suffers from multipath propagation in an NLOS environment, complex time asynchronization, and expensive hardware cost. Xiong et al. [8] proposed an AoA-based ILS, called ArrayTrack, which used multiple APs to form antenna arrays. It computed AoA of direct path to achieve a high accuracy. However, the difficult large-scale antenna array deployment and the rare direct path make it hard to be used in complex indoor environments.
RSSI methods use signal strength to estimate distances between transmitters and receivers. It is based on the signal-fading model that, as the distance increases, the RSSI of radio signal decreases monotonically. Since changes in the RSSI value have a direct impact on the estimation of distance, the positioning accuracy has high sensitivity to the link quality. Thus, there are many existing algorithms in order to identify, smooth and even exclude impacts from poor link quality. Huang et al. [9] used the Kalman Filter and a traditional geometric method for location estimation. The tags used could continuously get accurate RSSI values in the range from 0 to 255. To achieve more precise localization, the basic linear Kalman filter smoothed the fluctuations of RSSI rather than removing them completely. However, different from conventional RSSI-based ILSs with an assumption that equipped chips can measure received signal strength, some practical chips, especially those with low prices, only output discrete power levels. As referred to LANDMARC in [10], the reader only supplied eight power levels. Since the physical distance cannot be computed by using power level directly, LANDMARC developed a fingerprint-based approach to identify a reference point with a uniquely marked vector of power levels that the readers detected from a reference tag on the same point. When a target tag goes into the communication range of readers, the system receives a power level vector between the target and these readers, and uses this vector by matching to calculate the current position of the target. Another ILS, called SAIL [11], utilized the feature that nearby reference nodes have similar signal strengths. By adopting the k-means clustering algorithm, the corresponding cluster of an unknown node was chosen. According to the similarity of signal strengths, the weight values of reference nodes within the cluster were further assigned. Finally, the position of the node was calculated using a linear-least-square algorithm. Different from both algorithms above, in this paper, we focus on addressing the fluctuation issue of power levels caused by inexpensive communication chips nRF24LE1 and developing a similarity match scheme of the received minimum power level vectors to improve the localization accuracy.
This paper proposes a new wireless indoor localization system, called TrackCC, which is built on a commercial type of low-power low-cost chip, nRF24LE1. This chip supports four distinct programmable power levels. They are −18 dBm , −12 dBm , −6 dBm, and 0 dBm, indicated as PL-1, PL-2, PL-3, and PL-4, respectively. Since the chip is not able to measure the RSSI value of the radio signal, traditional RSSI-based ILS solutions are not feasible in this case. In addition, during the practical operation of TrackCC, we notice that there are serious nonlinear fluctuations in received minimum power levels, which may be caused by environmental noise interference, unstable cheap hardware, dynamic movements of obstruction, etc. All of them impose big challenges in achieving high localization accuracy. Since the received minimum power level may not be necessarily proportional to the distance in NLOS situations, we construct a signal map with grid center points as the fingerprints of the whole area. Each fingerprint consists of a vector of received minimum power levels. The proposed TrackCC consists of two phases. The offline phase is used to remove the fluctuations in power levels and form the radio map, and the online phase exploits the proposed priority-based pattern matching algorithm to find the nearest grid center point by selecting the most similar match on power level vectors between fingerprints and that sent by the unknown node. We conduct extensive experiments to demonstrate the effectiveness and superiority of the proposed TrackCC. The major contributions of our work are summarized as follows:
(1)
Based on a commercial low-cost low-power system-on-chip, nRF24LE1, the proposed system can achieve decimeter-level accuracy for indoor localization and outperform a classical power level based ILS, LANDMARC, and a recently proposed ILS, SAIL. In addition, in the aspect of hardware cost, for a medium or large localization area, unlike SpotFi [3] that needed to deploy multiple access points (APs) with continuous power supplies, and LANDMARC, including its variants VIRE [12] and SAIL[11], which needed to deploy very expensive RFID readers to receive the signal of tags with relatively long distances, the proposed system just needs to deploy the corresponding number of cheap wireless nodes according to actual site area.
(2)
This paper introduces the Markov theory to remove the fluctuation in power levels, which has not been addressed in the literature.
(3)
We propose a priority-based pattern matching technique to find the most similar power level vector with fingerprint based localization methods. We found a noteworthy phenomenon that, even if two power level vectors are similar in Euclidean distance, their corresponding nodes may still be located at two far-away points in the constructed radio map. Thus, the conventional sequence matching algorithm, such as k-Nearest-Neighbor (kNN), is unsuitable to our case.
The rest of this paper is organized as follows. Section 2 presents the framework of TrackCC. This is followed by the background and problem in Section 3. Then, the implementation processes of the offline stage and online stage are presented in Section 4 and in Section 5, respectively. Section 6 illustrates the system implementation and shows experimental results. Section 7 concludes our work.

2. System Framework

The proposed system consists of multiple wireless nodes and a server. According to requiring location information, nodes are classified into two kinds, target nodes and reference nodes. The network hardware infrastructure and logical communication links between these devices are illustrated in Figure 1.
In this figure, a target node needs to be localized and has the ability to receive reference nodes’ signals in real time and periodically forwards them to the sink node. All reference nodes have known locations. They do not communicate with each other, but broadcast data packets to the target. Because the target may receive data packets from multiple reference nodes, a reference node only sends essential data, such as its ID and current signal power level, to alleviate the traffic load at the target. The sink only receives data packets from the target, integrates data into a frame, and sends it to the server for further processing. The server is a workstation that is used as a center for data storing, frame processing and location estimation. Once a target is required to locate its position, the server will process its frame to calculate a position and give feedback on the localization result to specified users.

3. Background and Problem

The proposed system adopts reference nodes embedded with nRF24LE1 chips. It only supports four programmable signal propagation power levels (PL-1∼PL-4), where its maximum communication range under power level 0 dBm reaches 100 m if an external antenna is equipped [13]. It is noticed that the communication distance is comparable to that of a Wifi chip. We make a preliminary measurement about minimum power levels from reference nodes at multiple randomly selected testing points. According to measurement results, we observe that, for most of the testing points, the values of minimum power levels from the same reference node on the same position at different times may be rather different. This fact that received minimum power levels are variable over time is called “fluctuation”. Due to the impacts of electromagnetic interference (EMI) or internal multipath echoes [9], for a particular reference node, it is observed that the fluctuation phenomenas in received minimum power levels are very serious sometimes. It may derive more reliable and location-specific signal features from post-processing these measured data [14]. How to deal with such acute fluctuation has not been addressed in the literature.
Since reference nodes are required to periodically transmit four power level signals, the server only can provide one location estimation at every time slot. How to efficiently and correctly use a target vector of received minimum power levels and remove its fluctuation is a challenge for TrackCC to achieve high localization accuracy.
It is worth noticing that we found two candidates with the same Euclidean distance that may be located at two far-away positions on the constructed radio map. Thus, the conventional kNN-based sequence matching algorithm, which does not pre-build the classification model [15], becomes infeasible.
In summary, the acute fluctuation, the simple low-dimensional data and different positions with the same similarity challenge the fingerprint construction and affect the localization accuracy. The next few sections elaborate the solutions for the above problems.

4. Offline Stage

The offline stage is mainly used to form the radio map of the coverage area. We first place reference nodes at the grid points of the area. Then, based on collected vectors of received minimum power levels, fingerprints of the area are constructed. Here, a vector of received minimum power levels is abbreviated as VReMipl for the remainder of the paper.

4.1. Deployment

Without the loss of generality, we let l denote the number of supported power levels. Each reference node transmits signals powered with PL-1, PL-2, …, PL-l. We divide the transmission area of the node into two parts, a circle of radius R 1 and an annular area of outer radius R 2 . For the former, because there is only one power level PL-1 available and its grain is coarse in terms of localization precision, this area is labeled as “invaluable location area” (ILA). Similarly, the latter is marked as a “valuable location area” (VLA). In VLAs, l signal power levels are distributed in the small distance from R 1 to R 2 , which makes more precise distance estimation possible. We consider a deployment strategy that reference nodes are successively located at all grid points with grid side length d = m a x { m i n { R 2 - R 1 , 2 R 1 } , R 1 } . Under this deployment strategy, we have the following theorem.
Theorem 1.
Suppose that reference nodes are placed at all grid points with grid area d × d in an approximately rectangle shaped target region with the length at least 3 d , where d = m a x { m i n { R 2 - R 1 , 2 R 1 } , R 1 } , and the ILA of any reference node can be covered by the VLAs of other reference nodes.
Proof: See Appendix A.
Suppose that the transmission range increment between two adjacent power levels are a 1 , a 2 , , a l - 1 , consecutively. Then, we have R 2 - R 1 = i = 1 l - 1 a i . If the minimum value in set { a 1 , a 2 , , a l - 1 } equals d, then d can be considered as the localization accuracy. It is because
(1)
for any reference node, if the target moves more than d in its VLA, even in the case of open space, the value of received power level will be changed; and
(2)
there may be d × d -sized square grids, where nodes’ movement will not result in changes in VReMipl value.

4.2. Remove Fluctuation

During the measurement process, we first locate one target node at each grid center point for a while to collect minimum power levels obtained from n different reference nodes. The detailed process is described as follows. Every reference node transmits signals periodically with a period of h 0 , by powering in the following order: PL-1, PL-2,…, and PL-l. When the target is closer to a reference node, it may receive signals at multiple power levels. However, the target only records the minimum one, denoted by P L m i n , and reports it to the sink. Since the communication chip used in this paper only supports several distinct programmable power levels, and it is not able to measure the RSSI value of the radio signal, traditional RSSI-based ILS solutions are not feasible in this case. Here, P L m i n is used to reflect the received signal strength at the grid point from the reference node. Supposing that P L m i n =PL-i, it is implied that the target node can receive the data packets sent by the reference node at the power from PL-i to PL-l. Therefore, the minimum power level actually represents all information involved in all power levels. Smaller i means that the received signal strength of the reference node at the location is stronger. For each time slot h 0 , a data frame is formed in the format as below:
< t i , g j , ( r e f 1 , P L 1 , m i n j , i ) , , ( r e f m , P L m , m i n j , i ) , , ( r e f n , P L n , m i n j , i ) >
where t i is the current time stamp ( i Z ), g j is the sequence number of grid center point, r e f m is the reference node’s ID and P L m , m i n j , i ( m { 1 , 2 , , n } ) is the received minimum power level from reference node m at t i . As mentioned earlier, even if in open space, not all frames formed during the period of collection may be identical. In order to facilitate the pattern matching in the online stage, removing fluctuation is required to obtain the fingerprint at grid point g j .
For a given reference node r e f m , the target node at grid center point g j continuously records the minimum power levels from r e f m along the time, denoted as P L m , m i n j , 0 , P L m , m i n j , 1 , ⋯, P L m , m i n j , i , ⋯. In order to represent the case that the target node does not receive P L m i n from a reference node at a certain time slot, a constant symbol Not-Receive (NR) is used. Such a recording process can be modeled as a discrete time discrete state stochastic process, denoted as X m j S = { s 1 , s 2 , , s l , s l + 1 } . Similar to [16], X m j can be modeled as a Markov chain with a state space S, and the state transition matrix P = { P i j , i , j = 1 , 2 , , l , l + 1 } , where P i j represents the transition probability from power level s i to s j . P i j can be estimated by empirical measurements over a time period, which approximates the proportion of the number of transition n i j to the total number of all transitions starting from s i , where n i j denotes transition from state s i at one time slot to state s j at the next time slot. P i j can be written as
P i j = n i j k = 1 l + 1 n i k .
From [17], since the samples of X m j are along a discrete time, every state is accessible to other states, i.e., this chain is irreducible. In addition, this chain is not periodic due to the randomness of signal multipath fading and temporal dynamics. According to the theorem in [17], there always exists limiting probability in this chain. Define the state probabilities as Π = { π i , i = 1 , 2 , , l , l + 1 } . Then, the state with the maximum probability is defined as the stable state of X m j , i.e., the stable power level for the reference node r e f m at grid g j . Π can be obtained by solving the following set of equations:
π j = i = 1 l + 1 π i P i j j = { 1 , 2 , , l , l + 1 } , i = 1 l + 1 π i = 1 .
Once the stable states of n reference nodes are obtained at grid g j , this grid’s fingerprint will be constructed by them in series. Finally, the fingerprints of all grids will be stored in the database stamped with the position of corresponding grid center points.
For n deployed reference nodes, when the server receives f frames for time f × h 0 at grid g j , it starts to construct the fingerprint for this grid. f frames are stored by row in a matrix D j based on FCFS (First Come, First Serve). In order to get V m = { P L m , m i n j , 0 , P L m , m i n j , 1 , , P L m , m i n j , i , , P L m , m i n j , f } , every P L m i n in D j will be added into a corresponding vector V m if its reference tag’s ID is m. Then, n Markov chains are modeled on the vectors { V m , m = 1 , 2 , , n } . For a vector V m , the calculation of matrix P m is as follows.
At the beginning, define three ( l + 1 ) -order matrices, called frequency count matrix C, state transition matrix P and summation vector S, which are initialized to zero. Then, vector V m is traversed. During the traversing process, if V m ( i ) is in state a and V m ( i + 1 ) is in state b, C a b will increase by one. Then, the total number of all transitions starting from s i is summed as S i . Finally, based on (1), the value of P i j is the proportion of the value of C i j to the total frequency S i . Once P is derived, set Π will be calculated based on (2). The state that has the maximum limiting probability is recorded as the stable state f m and { f m , m = 1 , 2 , , n } represents the fingerprint F. The detailed fingerprint construction algorithm is summarized in Algorithm 1.
In order to know how many frames are sufficient for evaluating f, we need to obtain the fluctuation condition in real time. Therefore, TrackCC first receives a few frames to avoid the estimation error caused by the accidental errors. Then, the above fluctuation removal procedure is executed once before receiving a new frame, until the maximum value of Π can be obtained.
As stated in Section 3, fluctuations exist in the most of the grids. If the fluctuation is not severe in a grid, the VReMipl may be the same for multiple frames. Thus, to further relieve the transmission overhead, we define the empirical threshold T H . Denote the number of same received frames to be f . If f f T H , no more frames are required and the same frame is considered as the fingerprint.
We now use an example as shown in Figure 2 to illustrate the fingerprint construction procedure. The figure is plot based on 66 pieces of measurement data in the 7th grid of our location area as shown in the experiment section, where there are 10 reference nodes deployed. The black line represents the fingerprint of this grid and colorful lines represent different frames in D 7 . For example, for stable state of reference node 4 with four power levels, f 4 , its 5 × 5-sized frequency count matrix C, state transition matrix P and state limiting probability set Π have been calculated, respectively, as
C = 0 0 0 0 0 0 56 3 1 1 0 3 0 0 0 0 1 0 0 0 0 1 0 0 0 ,
P = 0 0 0 0 0 0 0 . 918 0 . 049 0 . 016 0 . 016 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 ,
Π = 0 0 . 924 0 . 045 0 . 015 0 . 015 .
Algorithm 1: The construction of fingerprint for grid g j
Sensors 17 01391 i001
From matrix C, we can observe that there are 56 (the value of C 22 ) times that received minimum power levels from reference node 4 is PL-2. There are also three (the value of C 23 ) times fluctuating from PL-2 to PL-3. Clearly, fluctuation exists between PL-2, PL-3, PL-4, and even NR. However, because π 2 is the maximum one, the stable state is PL-2 after removing fluctuations. Finally, 10 stable states can be derived to represent the fingerprint.

5. Online Stage

The main task of the online stage is to provide position estimation for the target. The process is briefly described as follows. When the target node goes into the grid of a location area, it receives power levels from reference nodes and records P L m i n for each of them. Then, when the server receives a frame forwarded from the target, it extracts all power levels P L m i n and integrates them into a target vector by the ascending order of corresponding reference node’s ID r e f n . After that, a sequence classification scheme is applied to choose a fingerprint with the highest similarity. This procedure includes the similarity calculation between fingerprints and target vector and priority-based pattern matching. Finally, the position of that selected fingerprint is considered the target’s estimated position.

5.1. Similarity Calculation

Xing et al. [15] have pointed out that the distance function, which measured the similarity between sequences, determined the quality of distance-based sequence classification significantly. The target vector extracted from each frame is highly valuable in the similarity calculation process. More specifically, those elements PL-2–4 in the vector mean that the target tag is located in the VLA of the corresponding reference nodes. The drift (the effect of Dynamic Time Wrapping (DTW)) on the whole vector will make characteristics lost so that the accuracy of further pattern matching degrades seriously. Therefore, Euclidean distance, which is sensitive to small distortions on both axes, is chosen in this case. If the Euclidean distance is smaller, the similarity will be higher. Note that Keogh et al. [18] have shown that, when applying the 1NN classifier, Euclidean distance is surprisingly competitive in terms of accuracy compared to other more complex similarity measures.
Suppose that n reference nodes are deployed in the location area that is split into G grids. In the ith grid, the target vector T i and the fingerprint F i are
T i = T i ( 1 ) T i ( 2 ) T i ( k ) T i ( n ) ,
F i = F i ( 1 ) F i ( 2 ) F i ( k ) F i ( n ) .
Then, their Euclidean distance is
d i s t ( T i , F i ) = k = 1 n ( T i ( k ) - F i ( k ) ) 2 .
In TrackCC, we calculate the Euclidean distances between T i and all { F i , 1 i G } and record the calculations in a candidate list C L by ascending order.

5.2. Priority-Base Pattern Matching

As stated above, the list C L contains position coordinates and their distances. If the Euclidean distance of the candidate with the highest similarity is zero, this candidate will be directly considered as the calculated position of the target. Otherwise, the priority-based 1NN technique will be adopted for the list C L to calculate elements’ priorities, and the candidate with the highest priority is then considered as the calculated position.
To facilitate the presentation, we only focus on multiple candidates with the same smallest Euclidean distance in list C L and ignore all others. Each candidate has an initial priority of 5. The lower the number, the higher the priority. The process of priority evaluation is described as follows:
(1)
In accordance with their existing order in list C L , a candidate is selected as a benchmark, denoted with C L B .
(2)
TrackCC records two power levels from the same reference node in the target vector and the benchmark, denoted as P L T and P L B , respectively.
(3)
The priority to C L B is changed based on a priority conversion rule from transition P L T to P L B . The details of the priority conversion rule will be provided later. Then, return to step 2 until two vectors have been traversed.
(4)
Return to step 1, pick another candidate as a new benchmark and go to step 2, until all candidates have been traversed.
During the above process, the priority conversion rule is a key. Before presenting its formulation, we first introduce the definition of Transformation as follows.
Definition 1.
Transformation is defined as an action that the value of P L T needs to be changed to P L B in operation to remove fluctuations for the target vector T.
When the target is located correctly, we investigate the transformation trend of power levels between a target vector and its true candidate. According to the records for specified transformation, the following hypotheses are verified correctly.
Hypothesis 1.
If a power level transforms to itself, the priority will not change.
Hypothesis 2.
The probability that a power level transforms from PL-1 to others is lower than transforming reversely and the probability of transformations from NR to PL-1–l is the minimum.
Hypothesis 3.
The probability that a power level transforms to the next strong level is greater than transforming to the previous weak level in the range of PL-2–l.
Based on the above hypotheses, we develop the priority conversion rules, as shown in the Table 1. From the table, based on Hypothesis 1, if PL- 1 T NR T transform to themselves, the priority to C L B will not change. Therefore, the numbers in the diagnoses are zeros. To implement Hypothesis 2, we set the rule in the PL- 1 T and NR T rows. In the PL- 1 T row, after transformation from PL- 1 T to {PL- i B , i = 2 , 3 , , l } , the priority will be lower than that after transformation from {PL- i T , i = 2 , 3 , , l } to PL- 1 B . In the NR T row, if NR transforms to {PL- i B , i = 1 , 2 , , l } , the priority will be reduced with the decrease of PL B . In addition, the priority after transformation from PL- i T to PL- ( i + 1 ) B will be 1 higher than that after transformation from PL- i T to PL- ( i - 1 ) B , i = 2 , 3 , , l . This takes Hypothesis 3 into account. The detailed priority-based 1NN pattern matching algorithm is given by Algorithm 2.
Algorithm 2: The priority-based 1NN pattern matching algorithm
Sensors 17 01391 i002

6. System Implementation and Experimental Results

We implemented a prototype system of TrackCC. In our implementation, every node integrates an nRF24LE01 SoC, which works normally on 3.3 V and equips a 4.2 V rechargeable Li-Battery. The corresponding key circuit diagram is shown in Figure 3. This diagram incorporates the usage of nRF24LE01’s pins and the design of critical peripheral circuits, such as FLASH programming interface and Peripheral board interface. Due to the gain effect of external antenna, the sink can receive a target’s signal within around 100 m. The server is a workstation equipped with Windows 7 operating system. A localization software encoded by C# runs on the server to implement the algorithm, as shown in Figure 4. For the convenience of coding and the chip’s configuration, we let the values of PL-1–4 correspond to 8, 10, 12, 14, respectively. We also let NR correspond to 16, instead of zero, to avoid sudden increment of Euclidean distance between two sequences.
We deployed 10 reference nodes around a 6 m × 4 m space area for LOS and a 6 m × 4 m common office with some obstacles (include desks, chairs and computers) for NLOS, as shown in Figure 5. There are 2 m spacing between reference nodes. Under the condition that reference nodes and target nodes do not equip external antennas, the maximum transmission distance of PL-1 and PL-4 are measured as R 1 = 4 m and R 2 = 6 m, respectively, and the minimum localization accuracy is d = 0.5 m. Thus, the deployment area is divided into 96 grids in both LOS and NLOS.
According to the observation, receiving at least 10 frames in each grid can avoid estimation errors caused by accidental errors, and setting the threshold T H = 0.6 enables a few more grids in which almost no fluctuations exist to accelerate fingerprint construction. For other grids, up to 60 frames are adequate to obtain state transition probability matrices and a grid’s fingerprint. All frames received at two stages are recorded for further detailed performance evaluation. Every experiment is repeated 20 times to avoid statistical errors. The initial position of any target node is randomly selected and the target can move along any of eight directions for requiring consecutive location services. We define straight-line distance e between the true coordinate ( x t , y t ) and the calculated coordinate ( x c , y c ) as the position error as
e = ( x c - x t ) 2 + ( y c - y t ) 2 .
Benchmarks: Both LANDMARC [10] and SAIL [11] have been implemented as the comparison benchmarks, where the numbers of reference tags and readers used in LANDMARC and SAIL are the same as the number of grid center points and reference nodes in the TrackCC prototype system, respectively.

6.1. The Performance in the LOS Scenario

Figure 6a shows the cumulative distribution function (CDF) of position estimation errors for three ILSs, LANDMARC, SAIL and TrackCC. The performance is evaluated in the LOS scenario through three experiments. In the first experiment, we apply the fluctuation removal and the priority-based 1NN pattern matching techniques. From this figure, we can observe that the performance of TrackCC in terms of localization accuracy is much more superior, where 68% localization errors are lower than 0.5 m and 80% errors are lower than 1 m. In contrast, for SAIL, 5% of localization errors are lower than 0.5 m and the value for LANDMARC is less than 2.5%. The poor localization precision of LANDMARC and SAIL mainly owns to acute fluctuations of VReMipls. In addition, it is worth noticing that we found that two candidates with the same Euclidean distance may be located at two far-away positions in the constructed radio map. Thus, the conventional kNN based sequence matching algorithm, integrating LANDMARC and SAIL, is unsuitable for our situation.

6.2. The Effect of Fluctuation Removal

The fluctuation removal at the offline stage is a key step to constructing fingerprints with higher state possibility values. In the experiment in which the fluctuation removal is disabled, a grid’s fingerprint is constructed by randomly selecting a frame that was previously collected in that grid.
Figure 6b shows the cumulative distribution function (CDF) of position estimation errors with/without fluctuation removal. We can observe that the accuracy of correct localization with fluctuation removal is about 17% higher than that without fluctuation removal, and 63% higher than LANDMARC. For TrackCC without the fluctuation removal, we found that the probability of fingerprints in different grids being the same is 2–13% based on 20 groups of experiments with each containing 96 random samples. If the target vector is the same as multiple fingerprints, TrackCC will not provide a correct location estimation, and the accuracy will decrease almost 13% along with the increase in the number of location requisitions. On the contrary, through removing signal fluctuations, we observed that none of the fingerprints in the LOS or NLOS scenarios are identical. Namely, each fingerprint of the grid is unique. Therefore, even if the number of fingerprints becomes larger, their uniqueness is greatly enhanced after the fluctuation removal. In addition, these fingerprints can better reflect the real situation of signal strength in corresponding grids.

6.3. Euclidean Distance and DTW

As mentioned earlier, some distance function, such as DTW, is likely to distort, drift, stretch, or filter two series during the similarity calculation. This makes characteristics of sequences become lost. The goal of DTW is aligning two similar series and calculating the best distance by dynamic programming. It has a parameter w i n d o w ( w ) , which constrains the boundary of wrapping path. We implement the DTW algorithm for comparison and evaluate the effect of distortion as shown in Figure 6c. Note that Euclidean distance is replaced by DTW, while w is 1–4, respectively, in four experiments. We can observe that the precision using Euclidean distance is the best and much better than DTW. The effect of fluctuation removal disappears once the distortion is allowed. In addition, if w 3 , the precision will change very little. It means that only a few characteristics, which are used by Euclidean distance to obtain the real similarity, have been wrapping.

6.4. The Performance of Priority Conversion Rule

The proposed priority conversion rule is an empirical one. The priority-based 1NN pattern matching technique can improve 2% in terms of accuracy, as shown in Figure 6d. Note that, since Hypothesis 3 is proposed based on the observation of correct location, this rule including Hypothesis 3 is beneficial to the improvement of the accuracy.

6.5. The Localization Effect for Different Sizes of Grids

In Section 4, it has been shown that the side length of grid d is the same as the localization accuracy. Thus, enlarging the grid will reduce the sampling time, but it will impact the resolution of the radio map, resulting in sparse radio map data. When the length of the grid is increased to 1 m, the CDF of position errors is shown in Figure 6e. We can observe that, when the grid becomes larger, the ability to correctly localize target nodes in their located grid cells can be improved. This is because decreasing the number of grids results in the reduction in the number of fingerprints, which directly leads to a drop in the probability of fingerprint matching errors. Therefore, in our experiment, 72% positioning errors are less than 1 m. However, once the positioning fails, the localization error will be greater than the length of grid (1 m), and the gradient of the increase in error becomes larger.

6.6. The Performance in the NLOS Scenario

We also evaluate the performance of TrackCC in the NLOS scenario. The experiment process is the same as that in the LOS scenario. The CDF curves of overall performance and detailed evaluation are shown in Figure 7a,b, respectively. It is obvious that the accuracy is similar to that in the LOS scenario. This is beneficial from the whole area’s radio map that has taken the interference from obstacles into account at the offline stage. Imagining that if a target node receives PL-2 from a reference node on the side of a table, it may suddenly change to PL-4 due to a multipath effect after moving to the other side. Thus, LANDMARC may choose multiple far-away locations as the input of kNN, so that its accuracy is much lower than that in the case of LOS. While SAIL utilizes the fact that adjacent tags have high similarity in received signal strengths, the clustering result may not change greatly, although there may be changes in received minimum power level of tags. Hence, compared to the LOS scenario, its localization accuracy does not decline obviously in the case of NLOS.

7. Conclusions

This paper exploits a type of low-power and widely used commercial chip, nRF24LE1, for indoor localization, and proposes a novel estimation approach package, called TrackCC. Compared to RSSI based radio chips, the sensing node has obvious superiority in terms of cost, but has two inherent main drawbacks: (1) it has only four available power outputs so that directly applying existing distance estimation based strategies results in tremendously poor localization accuracy, and (2) it is extremely sensitive to environmental noise. To address these challenges, this paper adopts the fingerprint-based technique, which can perform well in both LOS and NLOS scenarios. In order to address the fluctuation issue, we exploit the Markov theory to construct a state transition matrix to remove the fluctuation. Then, by adopting the 1-nearest-neighbor (1NN) technique, we propose a priority-based pattern matching algorithm to search for the most similar match in the radio map to estimate the real position of unknown tags. Experimental results show that in both LOS and NLOS cases, TrackCC can guarantee that 68% localization errors are lower than 0.5 m.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant No. 61462021), the Opening Project of Guangxi Key Laboratory of Trusted Software (Grant No. PF130549), the Guangxi Scientific Research and Technology Development Project (Grant No. 2016AD02010), and the Nature Science and Engineering Research Council of Canada (NSERC) Discovery Grant (Grant No. 341548).

Author Contributions

Xiaolong Li and Yan Zheng conceived and designed the experiments; Yan Zheng performed the experiments; Jun Cai and Yunfei Yi analyzed the data; Xiaolong Li and Jun Cai provided hardware device and analysis tools; Yan Zheng, Xiaolong Li and Jun Cai wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Proof of Theorem 1:
For the purpose of explanation, we consider a diagram as shown in Figure A1. We let O 1 A denote reference tag A’s ILA, O 1 A , L and O 1 A , R denote the left and the right half-circle of O 1 A , respectively. Let O ´ 2 B denote the VLA of reference tag B, and O 2 B denote its ILA. Similarly, define O ´ 2 B , L ( O 2 B , L ) and O ´ 2 B , R ( O 2 B , R ) as the left and the right half circle of O ´ 2 B ( O 2 B ) , respectively. Two different cases are discussed as follows.
(1)
When 2 R 1 R 2 - R 1 , we have R 2 3 R 1 . Since d = m a x { m i n { R 2 - R 1 , 2 R 1 } , R 1 } , we have d = 2 R 1 , and the radius of O 1 A and O 1 B are R 1 . It is easy to get that O 1 A and O 1 B are two circumscribed circles. Define that the overlapping area of O 1 A and O 1 B , denoted with O A , B , equals ϕ . For O 2 B of radius R 2 centered at B, even in the case R 2 = 3 R 1 , it also contains O 1 A and O 1 B . Since O ´ 2 B = O 2 B - O 1 B and O 1 A O 1 B = O A , B = ϕ , we can derive O 1 A O ´ 2 B . Similar with the above derivation, reference tag B’s ILA can also be covered by A’s VLA. In the case of 2 R 1 R 2 - R 1 , the theorem holds as long as there exist at least two tags in a row in the target region.
(2)
When 2 R 1 > R 2 - R 1 , from d = m a x { m i n { R 2 - R 1 , 2 R 1 } , R 1 } , it is easy to derive that d = R 2 - R 1 < 2 R 1 . Since the radius of O 1 A and O 1 B are R 1 , and d < 2 R 1 , O 1 A and O 1 B overlap, i.e., O A , B ϕ . For the two circles O 1 A and O 2 B with d = R 2 - R 1 meters away from their centers, because the radius of O 2 B and O 1 A are R 2 and R 1 , respectively, we can obtain that O 1 A is contained in O 2 B , i.e., O 1 A O 2 B . Furthermore, O 1 A - O 1 B O 2 B - O 1 B . It is equivalent to ( O 1 A - O 1 A O 1 B ) ( O 2 B - O 1 B ) . Thus, O 1 A - O A , B O ´ 2 B . Similar to the above derivation, we have O 1 B - O B , C O ´ 2 C . Since the minimum value of d is R 1 , according to the geometry theory, when d belongs to the interval [ R 1 , 2 R 1 ) , it is not hard to derive that O A , B O 1 B , L , and O B , C O 1 B , R . It means that O A , B O B , C = ϕ . Thus, O A , B ( O 1 B - O B , C ) O 1 A - ( O 1 B - O B , C ) O 1 A - O A , B O 1 A = { ( O 1 A - ( O 1 B - O B , C ) ) ( O 1 B - O B , C ) } { ( O 1 A - O A , B ) ( O 1 B - O B , C ) } ( O ´ 2 B O ´ 2 C ) . Finally, we get that A’s ILA is covered by the union set of the VLAs of both tags B and C, which are two consecutive tags located on the right side of A as shown in Figure A1. Likewise, the claim holds true for the case on the left side. In the case of 2 R 1 > R 2 - R 1 , it can be summarized that the theorem holds as long as there exist at least two continuous adjacent tags either on the left side or the right side.
Because the length of the rectangular target region is no less than 3 d , there are four deployed tags in a row. Therefore, for any tag, there must exist at least two tags deployed on the left or right side of it. Therefore, the theorem holds in both cases.   ☐

References

  1. Yang, L.; Chen, Y.; Li, X.; Xiao, C.; Li, M.; Liu, Y. Tagoram: Real-Time Tracking of Mobile RFID Tags to High Precision Using COTS Devices. In Proceedings of the IEEE MOBICOM, Maui, HI, USA, 7–11 September 2014. [Google Scholar]
  2. Chen, Z.; Zhu, Q.; Soh, Y.C. Smartphone Inertial Sensor-Based Indoor Localization and Tracking with iBeacon Corrections. IEEE Trans. Ind. Inform. 2016, 12, 1540–1549. [Google Scholar] [CrossRef]
  3. Kotaru, M.; Joshi, K.; Bharadia, D.; Katti, S. SpotFi: Decimeter level localization using wifi. ACM SIGCOMM Comput. Commun. Rev. 2015, 45, 269–282. [Google Scholar] [CrossRef]
  4. Tung, Y.C.; Shin, K.G. EchoTag: Accurate infrastructure-free indoor location tagging with smartphones. In Proceedings of the 21st Annual International Conference on Mobile Computing and Networking ACM, Paris, France, 7–11 September 2015; pp. 525–536. [Google Scholar]
  5. Wang, Y.; Song, L. An algorithmic and systematic approach for improving robustness of ToA-based localization. In Proceedings of the 2013 IEEE 10 th International Conference on Embedded and Ubiquitous Computing (HPCC-EUC), Zhangjiajie, China, 13–15 November 2013; pp. 2066–2073. [Google Scholar]
  6. Pak, J.M.; Ahn, C.K.; Shmaliy, Y.S.; Lim, M.T. Improving reliability of particle filter-based localization in wireless sensor networks via hybrid particle/FIR filtering. IEEE Trans. Ind. Inform. 2015, 11, 1089–1098. [Google Scholar] [CrossRef]
  7. Xiong, J.; Sundaresan, K.; Jamieson, K. ToneTrack: Leveraging frequency-agile radios for time-based indoor wireless localization. In Proceedings of the 21st Annual International Conference on Mobile Computing and Networking ACM, Paris, France, 7–11 September 2015; pp. 537–549. [Google Scholar]
  8. Xiong, J.; Jamieson, K. ArrayTrack: A Fine-Grained Indoor Location System. In Proceedings of the NSDI 2013, Lombard, IL, USA, 2–5 April 2013; pp. 71–84. [Google Scholar]
  9. Huang, C.H.; Lee, L.H.; Ho, C.C.; Wu, L.L.; Lai, Z.H. Real-time RFID indoor positioning system based on Kalman-filter drift removal and Heron-bilateration location estimation. IEEE Trans. Instrum. Meas. 2015, 64, 728–739. [Google Scholar] [CrossRef]
  10. Ni, L.M.; Liu, Y.; Lau, Y.C.; Patil, A.P. LANDMARC: Indoor location sensing using active RFID. Wirel. Netw. 2004, 10, 701–710. [Google Scholar] [CrossRef]
  11. Zhao, Y.; Liu, K.; Ma, Y.; Gao, Z.; Zang, Y.; Teng, J. Similarity Analysis-Based Indoor Localization Algorithm With Backscatter Information of Passive UHF RFID Tags. IEEE Sens. J. 2017, 17, 185–193. [Google Scholar] [CrossRef]
  12. Zhao, Y.; Liu, Y.; Ni, L.M. VIRE: Active RFID-based localization using virtual reference elimination. In Proceedings of the IEEE International Conference on Parallel Processing (ICPP 2007), Xi’an, China, 10–14 September 2007; p. 56. [Google Scholar]
  13. Nordic Semiconductor. nRF24L01+ Single Chip 2.4 GHz Transceiver Product Specification v1.0. September 2008. Available online: http://www.nordicsemi.com/eng/Products/2.4GHz-RF/ nRF24L01P (accessed on 23 February 2017).
  14. Yang, Z.; Zhou, Z.; Liu, Y. From RSSI to CSI: Indoor localization via channel response. ACM Comput. Surv. (CSUR) 2013, 46, 25. [Google Scholar] [CrossRef]
  15. Xing, Z.; Pei, J.; Keogh, E. A brief survey on sequence classification. ACM SIGKDD Explor. Newsl. 2010, 12, 40–48. [Google Scholar] [CrossRef]
  16. Zhang, J.; Firooz, M.H.; Patwari, N.; Kasera, S.K. Advancing wireless link signatures for location distinction. In Proceedings of the 14th ACM International Conference on Mobile Computing and Networking ACM, San Francisco, CA, USA, 14–19 September 2008; pp. 26–37. [Google Scholar]
  17. Ross, S.M. Introduction to Probability Models; Academic Press: Cambridge, MA, USA, 2014. [Google Scholar]
  18. Keogh, E.; Kasetty, S. On the need for time series data mining benchmarks: A survey and empirical demonstration. Data Min. knowl. Discov. 2003, 7, 349–371. [Google Scholar] [CrossRef]
Figure 1. The network hardware infrastructure and logical communication links of TrackCC.
Figure 1. The network hardware infrastructure and logical communication links of TrackCC.
Sensors 17 01391 g001
Figure 2. The resulting demonstration of removing fluctuation using Markov chain.
Figure 2. The resulting demonstration of removing fluctuation using Markov chain.
Sensors 17 01391 g002
Figure 3. The key circuit diagram of the TrackCC hardware.
Figure 3. The key circuit diagram of the TrackCC hardware.
Sensors 17 01391 g003
Figure 4. The software of the TrackCC running on the server.
Figure 4. The software of the TrackCC running on the server.
Sensors 17 01391 g004
Figure 5. The experimental environment.
Figure 5. The experimental environment.
Sensors 17 01391 g005
Figure 6. The performance evaluation of TrackCC in the case of line-of-sight (LOS). (a) the performance in the case of LOS; (b) fluctuation removal; (c) similarity calculation; (d) priority conversion rule; (e) expand grid to the size of 1 m × 1 m.
Figure 6. The performance evaluation of TrackCC in the case of line-of-sight (LOS). (a) the performance in the case of LOS; (b) fluctuation removal; (c) similarity calculation; (d) priority conversion rule; (e) expand grid to the size of 1 m × 1 m.
Sensors 17 01391 g006
Figure 7. The performance evaluation of TrackCC in the case of non-line-of-sight (NLOS). (a) the performance in the case of NLOS ; (b) the detailed evaluation of NLOS scenario.
Figure 7. The performance evaluation of TrackCC in the case of non-line-of-sight (NLOS). (a) the performance in the case of NLOS ; (b) the detailed evaluation of NLOS scenario.
Sensors 17 01391 g007
Figure A1. The illustration of proof of the second case
Figure A1. The illustration of proof of the second case
Sensors 17 01391 g008
Table 1. The priority conversion rule.
Table 1. The priority conversion rule.
Benchmark Candidate
PL-1PL-2PL-3PL-4PL- l NR
TargetPL-10+2+3+4+l+(l+1)
PL-2-10-2+1+(l-3)+(l-2)
PL-3+1-10-2+(l-4)+(l-3)
PL-4+2+1-10+(l-5)+(l-4)
PL-l+(l-2)+(l-3)+(l-4)+(l-5)0−2
NR+(l-1)+(l-2)+(l-3)+(l-4)−10

Share and Cite

MDPI and ACS Style

Li, X.; Zheng, Y.; Cai, J.; Yi, Y. TrackCC: A Practical Wireless Indoor Localization System Based on Less-Expensive Chips. Sensors 2017, 17, 1391. https://doi.org/10.3390/s17061391

AMA Style

Li X, Zheng Y, Cai J, Yi Y. TrackCC: A Practical Wireless Indoor Localization System Based on Less-Expensive Chips. Sensors. 2017; 17(6):1391. https://doi.org/10.3390/s17061391

Chicago/Turabian Style

Li, Xiaolong, Yan Zheng, Jun Cai, and Yunfei Yi. 2017. "TrackCC: A Practical Wireless Indoor Localization System Based on Less-Expensive Chips" Sensors 17, no. 6: 1391. https://doi.org/10.3390/s17061391

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop