Next Article in Journal
Flight State Identification of a Self-Sensing Wing via an Improved Feature Selection Method and Machine Learning Approaches
Next Article in Special Issue
An Indoor Positioning System Based on Static Objects in Large Indoor Scenes by Using Smartphone Cameras
Previous Article in Journal
Damage Detection of a Concrete Column Subject to Blast Loads Using Embedded Piezoceramic Transducers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi

1
Jiangnan University, School of Internet of Thing Engineering, Wuxi 214122, China
2
Engineering Research Center of Internet of Things Technology Applications, Ministry of Education, Wuxi 214122, China
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(5), 1378; https://doi.org/10.3390/s18051378
Submission received: 29 March 2018 / Revised: 23 April 2018 / Accepted: 24 April 2018 / Published: 28 April 2018
(This article belongs to the Special Issue Selected Papers from UPINLBS 2018)

Abstract

:
In this paper, we propose UILoc, an unsupervised indoor localization scheme that uses a combination of smartphone sensors, iBeacons and Wi-Fi fingerprints for reliable and accurate indoor localization with zero labor cost. Firstly, compared with the fingerprint-based method, the UILoc system can build a fingerprint database automatically without any site survey and the database will be applied in the fingerprint localization algorithm. Secondly, since the initial position is vital to the system, UILoc will provide the basic location estimation through the pedestrian dead reckoning (PDR) method. To provide accurate initial localization, this paper proposes an initial localization module, a weighted fusion algorithm combined with a k-nearest neighbors (KNN) algorithm and a least squares algorithm. In UILoc, we have also designed a reliable model to reduce the landmark correction error. Experimental results show that the UILoc can provide accurate positioning, the average localization error is about 1.1 m in the steady state, and the maximum error is 2.77 m.

1. Introduction

Indoor localization has gained a lot of attention for its wide application since the development of various methods for localization such as Wi-Fi [1,2], Radio Frequency Identification (RFID) [3], and so on. However, Wi-Fi is restricted by its fixed power and indoor environment and RFID needs corresponding equipment. Bluetooth low energy (BLE) has risen to prominence suddenly in the last two years for its low energy consumption and low cost [4,5,6]. iBeacon, a kind of equipment based on BLE, inherits the advantages of BLE which makes it much better than Wi-Fi in terms of energy consumption and cost. Furthermore, the deployment of iBeacon is much easier than RFID and Wi-Fi. Thus, iBeacon can set up a network for indoor localization easily.
The received signal strength (RSS) of Wi-Fi is frequently used for localization nowadays. Fingerprinting is a RSS-based localization and has been the most accurate approach to indoor localization among other RSS-based techniques [7], since it can help solve the problem of multipath and the non-line-of-sight (NLOS) propagation. However, the fingerprinting approach is labour intensive, and requires significant work to collect the RSS.
Given the shortcoming of the fingerprinting approach above, many papers [8,9,10,11] have recently put forward the idea of constructing the fingerprint by crowdsourcing. The database is updated by accepting the feedback from the user. However, this idea needs large quantities of feedback information to ensure its accuracy, so cooperation is important. The feedback from users may also contain mistakes. Therefore, the stability of crowdsourcing is low.
Another widely adopted localization technique is pedestrian dead reckoning (PDR) [12]. This includes the following modules: step detection, step length and walking direction. However, PDR has the problem of accumulative error and cannot estimate the initial point.
Some research and papers [5,13,14,15,16] use landmarks to correct a user’s location, but these landmarks cannot ensure whether the user is in the landmarks, they can only guess that the user is close to the landmarks. So the system always tries to haul back to the location of the landmarks at an unnecessary time.
In this paper, we propose UILoc, a new framework of combining PDR, iBeacon and Wi-Fi. In the PDR approach, since relative information is employed, this will drift with walking distance. Therefore, this paper intends to employ iBeacon measurements to correct the drift of the PDR approach occasionally. A fusion algorithm is applied to estimate the initial position, and the fingerprint database auto-building module is designed to improve the accuracy of the fusion algorithm. The reliable model is designed to provide a reliable location estimation and reduce the scope for error during the landmark rectification phase.
The rest of the paper is organized as follows. Section 2 introduces some related work about different localization methods. A system overview is presented in Section 3. Section 4 shows the detail of the UILoc. The prototype for implementation and experiments are discussed in Section 5. We conclude the work in Section 6.

2. Related Works

2.1. Trilateration Method

In the outdoor environment, trilateration is a common method for calculating the position of an unknown node. In the field of indoor localization, the trilateration method is often used to calculate the approximate position of the target node, which may be at room-level localization accuracy. This method requires at least three source nodes with known locations. In addition, the distances between these source nodes and target nodes also need to be known. According to [4,17], in the wireless network environment distance relationships can be converted from the corresponding signal strength values. Theoretically, each source node forms a circle around itself with the radius of the distance to the target node, and the point of intersection M is the target node. However, due to the fluctuation of wireless signals, the three circles cannot intersect at one point. In general, the optimal solution can be found by the least square method [18].

2.2. Fingerprinting-Based Localization

Since the early 20th century, fingerprint localization technology has been a common positioning method. In 2000, Microsoft proposed the RADAR system [1,19], and used the nearest neighbor algorithm and K-nearest neighbor algorithm for indoor localization first. The Nibble [20] system proposed by the University of California, Los Angeles, used a Bayesian probability model. In 2005, Youssef et al. of the University of Maryland proposed a Horus [21] algorithm based on a signal histogram probability model, which stores the probability distribution of the received signal strength indicator (RSSI) signals in a fingerprint database. Later, Youssef et al. made some improvements on the basis of the original Horus [22]. This algorithm mainly added a cluster partitioning module, signal compensation mechanisms, and an incremental triangle algorithm. Moghtadaiee et al. improved the K nearest neighbor algorithm and proposed the k-weighted nearest neighbors (KWNN) [23,24], that combined the weighted K nearest neighbors and Bayesian probability methods, making the positioning results significantly improved.

2.3. Pedestrian Dead Reckoning (PDR)

In recent years, with the popularization of smart phones, an increasing number of sensors have been integrated into smart phones. The smartphone can sense more environmental data, which further promotes the development of indoor-positioning technology. The PDR method utilizes inertial sensory data (including acceleration data and direction data) to estimate the relative instead of the absolute position. In the paper [25], Jin et al. showed that the main concerns of PDR technology are: the step detection algorithm, the walking length estimation, and the walking direction estimation. Wang et al. proposed the AD-FSM [26] algorithm, which improved the multi-state finite state machine. This algorithm can accurately count steps in a noisy environment. In UPTIME [27], the step-size estimation and walking direction estimation are described in detail. Kang et al. proposed SmartPDR [12] after combining gyroscope data and magnetometer data. The PDR method has good reliability over a short period. However, if there is no other reference, the PDR method may have serious cumulative error problems [9].

2.4. Hybrid Localization Method

In order to improve the accuracy and stability of the positioning algorithm, it is necessary to exploit the advantages of each positioning method while avoiding possible disadvantages. Many hybrid positioning algorithms have been proposed recently. Wang et al. proposed UnLoc [28], which uses the Wi-Fi fingerprint data of a specific location, the acceleration characteristics of stairs or elevators, and the magnetic characteristics of special locations in the environment as landmark points. The problem of cumulative error in PDR can be corrected at these landmark locations. In 2015, Yang Fan et al. of Shanghai Jiaotong University proposed a positioning method [29] combining PDR and Wi-Fi, in which the estimated position of the PDR can be used to reduce the fingerprint database matching range of the fingerprint method.
At the 2013 Apple Developers Conference, Apple Inc. proposed iBeacon technology based on BLE 4.0. Because of its small size, easy deployment and low power consumption, it has been widely used in indoor positioning in recent years. In [30,31], iBeacon-based indoor positioning methods are proposed. Specifically, in 2015, Chen et al. [5] combined the trilateration positioning and PDR methods, using a particle filter (PF) to fuse these algorithms. The particle propagation model in this algorithm is based on the PDR method. Then, in the correction phase, the results of the trilateration method are used as observations. In 2017, Jenny et al. also proposed a hybrid positioning method based on the Kalman method [32], and results show that this hybrid method can provide highly stable localization accuracy of less than one meter.

3. Summary of UILoc System

The system architecture of the UILoc is shown in Figure 1, which mainly consists of a PDR module, particle filter module, reliable model (RM) module, fingerprint database auto-building module and initial localization module. Compared to fingerprint approaches, the UILoc builds the fingerprint database automatically in the online phase, which is similar to Zee [9], instead of sampling through considerable labour in the offline phase. In UILoc, the location is calculated by PDR. A particle filter module is used in PDR to correct the walking length and walking direction. Because the PDR method needs the initial position, the UILoc uses an initial localization module to provide the initial position. The UILoc uses the reliable model module to provide an accurate correction service to solve the problem of accumulated error. Then, the UILoc combines position information and fingerprint information to establish the fingerprint database which serves for the initial localization module to improve the initial positioning accuracy.

3.1. PDR Module

In the PDR approach, the current position is calculated from the previous position and can be expressed as follows:
X t + 1 = X t + L t [ s i n θ t c o s θ t ] ,
where X t is the 2D location of the pedestrian, L t is the walking length, and θ t is the walking direction at the time of step t . Some critical issues need to be addressed, including walking length estimation and walking direction estimation.
In this paper, we used the AD-FSM algorithm [26] to detect the step, because the AD-FSM algorithm can restrain noise interference effectively and provide stable and accurate step detection. The walking direction and walking length are corrected by a particle filter which will be introduced in the following section.

3.2. Particle Filter Module

In this paper, a particle filter [33,34] is used in walking length and walking direction estimation. As every particle has attributes of step length and walking direction deviation, the UILoc can correct the step length and walking direction.
Step length and walking direction deviation corrected by practical filtering are shown in Figure 2. In the initial phase, all particles are initialized at the initial position as a Gaussian distribution. Every particle has the attribute of step length bias and walking direction bias. With the user’s movement, the positions of the particles will be different, and many erroneous particles will die because they hit the wall. The mean of step length deviation and walking direction deviation of the remaining particles are the user’s real walk state.

3.3. Reliable Model Module

The reliable model is proposed to provide reliable location estimation and reduce the error scope during the landmark rectification phase. This model will be described in the next section.

3.4. Fingerprint Database Auto-building Module

The fingerprint database auto-building module combines the position after fusion localization and the fingerprint to update the fingerprint database. This module is designed to serve for the initial localization module.

3.5. Initial Localization Module

The initial position is very important for the whole localization because it influences the position error. The initial localization module combines the fingerprint approach and propagation model localization. It can provide the accurate initial position.
The details for each individual subsystem are introduced in the following sections.

4. Proposed Method

4.1. Fingerprint Database Auto-Building Module

The fingerprint database auto-building module builds and updates the Wi-Fi fingerprint database automatically in an unsupervised state. The position information is mainly provided by the fusion algorithm module. The UILoc adopts this module for a more accurate initial position.
The fingerprint database has no data in the initial phase. At the beginning, the positioning of the system depends mainly on the propagation model of iBeacon. Then, UILoc can estimate the position of the user by PDR combined with the particle filter. Also, the UILoc deploys some iBeacons as landmark points in the indoor environment for correcting the cumulative error caused by PDR. With the continuous construction of the fingerprint database, the initial location provided by the initial localization module that fuses the fingerprint and propagation model method will become increasingly accurate.
The main process of building the fingerprint database is as follows:
  • Firstly, since we can get the location ( loc online ) and Wi-Fi information through this system at the online phase, we need to find the fingerprint in the fingerprint database whose location can be expressed as loc db , and the distance between these two points need to be less than 1 m. Otherwise, we insert the information into the fingerprint database directly.
  • Since we can find the fingerprint in the database, then the position and value of RSSI in the fingerprint will be averaged, and update the database.

4.2. Initial Localization Module

This paper proposes an initial localization module to reduce the error of the initial position. Because there is no fingerprint database in the initial phase, the approach commonly used in iBeacon-based position is the propagation model method. Most users focus on the location of the first localization when they use the positioning service, and initial localization is very important to the localization system. Although the deviation of the initial localization is large when the fingerprint database in the initial phase is not complete, with the completion of the fingerprint database the localization system based on the fingerprint can provide a more accurate initial position. A new method which combines the propagation and fingerprint methods is proposed to improve accuracy. This algorithm is briefly explained in the following subsections.
As shown in Figure 3, when a user requests localization at the point O, the UILoc system will scan all signals in the environment first. Then, the signal strength of each iBeacon will be transformed into distance. The relationship between RSS value and distance is obtained by polynomial fitting [4].
The mapping relations between RSS data and distance in our environment is defined as follows:
D i s t a n c e = 0.568 r s s i + 0.0079 r s s i 2 + 10.2
Since a smartphone has the data of the user’s orientation and the system has all the positions of landmarks (iBeacons), we can find the landmark that has the strongest RSS. Then, the initial localization module uses the landmark position and orientation to infer the possible position of the user.
According to the KNN calculation formula, we calculate the position of A. The formula is defined as follows:
D j = i = 1 n ( R S S o n l i n e ( i ) R S S j ( i ) ) 2 ,
where D j represent the Euclidean distance of the jth reference point (RP), and i is the number of the access point (AP).
In the nearest neighbors(NN) algorithm, the device is estimated at the most similar measuring point (i.e., with the minimal Euclidean distance). The KNN computes the center of k’s closest neighbors and uses Euclidean distance as the weight of each neighbor. The formula is defined as follows:
L o c K N N = 1 K i = 1 k l o c i
Of course, through the least squares method we can also estimate the position. The specific formula is as follows: we assume that the user’s location is O ( x , y ) and iBeacons that can be detected by the user are located at ( x i , y i ) , so the distances between user and iBeacons can be expressed as:
r i 2 = ( x i x ) 2 + ( y i y ) 2 ,
r i 2 = K i 2 x i x 2 y i y + x 2 + y 2 ( i = 1 , 2 , , N ) ,
where K i = x i 2 + y i 2 .
We define r i , 1 as follows:
r i , 1 = r i r 1
r 1 = r i | i = 1 = ( x 1 x ) 2 + ( y 1 y ) 2
So we can get:
r i 2 = r i , 1 2 + 2 r i , 1 r 1 + r 1 2
Combining Equation (6) with Equation (9), we can get:
r i , 1 2 + 2 r i , 1 r 1 = 2 x i , 1 x 2 y i , 1 y + K i K 1 ,
where x i , 1 and y i , 1 represent x i x 1 and y i y 1 . Note that the unknowns r 1 , x and y have a linear relation. So this can be expressed as a matrix form:
1 2 [ r i , 1 2 ( K i K 1 ) ] = ( r i , 1 r 1 + x i , 1 x + y i , 1 y )
[ x 2 , 1 y 2 , 1 r 2 , 1 x 3 , 1 y 3 , 1 r 3 , 1 x N , 1 y N , 1 r N , 1 ] [ x y r 1 ] = 1 2 [ r 2 , 1 2 ( K i K 1 ) r 3 , 1 2 ( K i K 1 ) r N , 1 2 ( K i K 1 ) ]
This can be expressed as:
G Z = H
So the location of user is calculated as:
L o c L S = Z = ( G T G ) 1 G T H
Then, the fusion algorithm is expressed as follows:
D f p = 1 e d i s K N N ,
D l s = 1 e d i s L S ,
where d i s K N N represents the distance of | OA | , and d i s L S represents the distance of | OB | . Since the larger distance indicates the greater error, we use the exponent of e to amplify the deviation, and then get the reciprocal of it because the greater of the error, the smaller the weight to be given. Then, the weights need to be normalized as follows:
W f p = D f p D f p + D l s
W l s = D l s D f p + D l s
The final position after normalizing the weight is estimated as follows:
L o c o u t = W f p L o c K N N + W l s L o c L S

4.3. Reliable Model

The reliable model module can shrink the error produced by the landmarks’ correction and provide stable and accurate localization. We propose the reliable model to provide a reliable location estimation and reduce the scope of error during the landmark rectification phase.
Figure 4 depicts the scenario using landmarks in the indoor environment. There are many landmarks which can correct users’ locations in the inner area of a building, but the identify-boundary of a landmark may be a rough scope whose position cannot be measured precisely. The landmark cannot make corrections efficiently when the user is keeping close to the landmark because of the fluctuation of the BLE signal. Landmarks may correct the error caused by PDR, but the error from itself still remains. So our aim is to minimize the error from landmarks.
Most papers [5,14] use this method to detect the strongest signal. When the algorithm finds that the value of RSS is greater than the threshold, the user’s location will pull back to the center point of a landmark, but at that time the user may just come close to the landmark area or has left the landmark area.
To smooth the signal and restrain noise, we designed a reliable model that can improve the location accuracy. As Figure 5 shows, the algorithm consists of the boundary access identification module, L1 and L2 filter, and the PDR module. Firstly, the L1 level filter is utilized to eliminate the outliers. Then, the L2 level filter is used to restrain noise and smooth the signal. Next, the boundary access identification module judges the states of the users about specific landmarks; if a user has not entered the landmark area, the user’s location will be corrected by the landmark and the location will be produced by PDR. Lastly, once the user has accessed the reliable model, the PDR module will provide the output of localization.
Figure 6a shows the process whereby the user comes close to the landmark then goes away from it. Because of the fluctuation of BLE RSS, shown as the red circle labeled in the figure, at that time the user has already gone away from the landmark, but the value of RSS is larger than the threshold again, so the algorithm will correct the user’s position. In this case, the raw data will enhance the volatility and lower the robustness in the process of localization.
Firstly, we considered the sampling frequency is 10 Hz, so the length of the window for the dynamic filter was set to 10. The L1 level filter is designed as below:
{ R S S = w ( r s s i 9 , r s s i 8 , , r s s i ) R S S = f i l t e r ( R S S ) r s s i = 1 n j = 1 n r s s j ,
where R S S is a dynamic vector about the value of r s s . We used Tukey’s test method to remove the outliers for R S S and get R S S . Finally, the mean value of R S S which will be given to r s s i is calculated, where r s s i represents the r s s at the moment i . The Tukey’s test method is expressed as follows:
{ m i n = Q 1 1.5 ( Q 3 Q 1 ) m a x = Q 3 + 1.5 ( Q 3 Q 1 ) m i n < r s s k < m a x ,
where Q 1 and Q 3 are expressed in Equation (22), and each reasonable r s s k in R S S must be between the   m i n and the m a x .
{ Q 1 = s o r t e d ( R S S ) 1 4 l e n g t h ( R S S ) Q 3 = s o r t e d ( R S S ) 3 4 l e n g t h ( R S S )
After the L1 level filter, the signal curve is shown in Figure 6b. It is clear that there is a lot of Gaussian noise which will influence the localization, so we proposed to use the Kalman filter to eliminate the Gaussian noise. The algorithm contains two processes: predicting and updating.
Firstly, the Kalman filter has some parameters that have to be determined. As the value of RSSI changes randomly, therefore, the transition matrix F and the measurement matrix H are set to one. Furthermore, there is no external control input, so B u t 1 is also set to zero.
Predicting:
{ r s s t | t 1 = F r s s t 1 | t 1 + B u t 1 P t | t 1 = P t 1 | t 1 + Q t 1
Updating:
{ K t = P t | t 1 H t T ( H t P t | t 1 H t T + R t ) 1 r s s t | t = r s s t | t 1 + K t ( r s s i t H t r s s t | t 1 ) P t | t = ( 1 K t H t ) P t | t 1
In Equation (24), P is the estimate covariance. In UILoc, the initial value of P is set to   P t 1 | t 1 = 1.0 . K is the Kalman gain. The values Q = 0.015 and R = 1.5 are determined experimentally.
After the L1 and L2 level filter, the signal curve is shown in Figure 6c.
The basic principles of the reliable model are described in detail above. Algorithm 1 is the pseudo-code form of the reliable model.
 Algorithm 1 Reliable Model
  • Input:ble_data, ori
  • Output:location
  • Loop:
  • ble_data_L1 = filteredByL1(ble_data)
  • ble_data_L2 = filteredByL2(ble_data_L1)
  • //boundary access identification module start
  • beacon_i = find the beacon whose state is IN
  • ifbeacon_i_stateisINandbeacon_i_rssi < −65:
  • beacon_i_state = OUT
  • beacon_max = find the beacon which has max rssi
  • ifbeacon_max_stateisOUTandbeacon_max_rssi > −52:
  • distance = map beacon_max_rssi to diatance
  • X = beacon_max_postion_x − distance * sin(ori)
  • Y = beacon_max_postion_y − distance * cos(ori)
  • beacon_max_state = IN
  • return X,Y
  • End Loop
The input data of the reliable model are the BLE signal { U U I D i : R S S I i } and the direction data in the environment. The output is the location of the user. Once the reliable model gets the data, the BLE data will be filtered by L1 and L2. We then need to set the states of users about specific landmarks from I N to O U T when the RSSI from a specific beacon is less than −65 dBm (about 6 m by Equation (2)). At that moment, we can think that the user has gone out of the landmark area completely. Next, we need to find the beacon as b e a c o n _ i which has the strongest signal. If the state of b e a c o n _ i is O U T and the strength of b e a c o n _ i is greater than −52 dBm (about 2 m by Equation (2)), we then need to update the user’s location as follows. We also need to set the state of b e a c o n _ i to I N , so even if the user walks into the landmark area, the reliable model can prevent the problem of repeated positioning. In the landmark area, the location will be calculated by PDR.

4.4. UILoc Algorithm Explanation

All the sub modules have been described in detail above. Next, we will describe the details of the module integration. Algorithm 2 is the pseudo-code form of the UILoc.
 Algorithm 2 UILoc
  • Input:data
  • Output:location
  • Loop:
  • use data to update acc, ori, wifi_entry, ble_entry and ble_queue_window by data’s
  • type
  • iftypeisACC:
  • acc_filtered = use kalman filter to filter acc
  • if AD-FSM.countStep(acc_filtered) and location is not null:
  •   location = use particle filter to estimate the location
  • else iftypeisBLE:
  • if location is not null:
  •   location = ReliableFilter.process(ble_queue_window,ori)
  • else iftypeisWIFI
  • if location is null:
  •   location = InitLocalization(wifi_entry,ble_entry)
  •   initialize the particle filter module
  • else:
  •   update fingerprint database by location and wifi_entry
  • returnlocation
  • End Loop
The input of the UILoc is data { t y p e : s e n o r _ d a t a } , including acceleration data, orientation data, BLE data and Wi-Fi data. The output of the algorithm is the location of the user.
Firstly, the parameter b l e _ e n t r y is the data like { U U I D i : R S S I i } . The parameter w i f i _ e n t r y is a fingerprint data like { M A C i : R S S I i } and the parameter b l e _ q u e u e _ w i n d o w is an array that contains 10 historical b l e data.
If the type of data are   A C C , we do a Kalman filter for a c c data, then we use AD-FSM to determine whether a step is formed. If the l o c a t i o n has been initialized and the a c c data formed a step, then the location will be calculated by the particle filter which has fused the PDR module. If the data are a type of   B L E , we use the reliable model to provide a stable localization. Lastly, if the data are a type of   W I F I , we use initial localization module to estimate the user’s initial location. We can also create and update the fingerprint database.

5. Experimental Work and Results

In this section, we introduce the experimental setup, which was used to perform the proposed model in a real building (i.e., other people may walk through this area during the experiments), and then present and discuss the experimental results.

5.1. Experimental Setup

To evaluate the performance of the UILoc model, we conducted an experiment on one floor of a typical office building at the campus of JNU (Jiangnan University). The size of the target area is about 3000 m 2 (60   m by 50   m ). Figure 7 shows the layout of the research lab. We deployed 18 beacons (average: 1 beacon per 10   m ) in the experiment. All of these beacons were installed on the wall at a height of approximately 1.5   m . To balance the power consumption and accuracy, each beacon was set to a 10 Hz sample rate with 0 dBm transmit power. The device involved in the experiment is a HUAWEI P9 smartphone running an Android 6.0 operation system. In order to compare the fingerprint localization algorithm, we performed our experiment with 184 RPs. The average distance between 2 RPs is 1   m .

5.2. Performance Evaluation

Figure 8 depicts the process of the fingerprint database construction. In this experiment, there are some users who moved randomly with a smartphone in the indoor environment. The location and fingerprint data will be continuously collected to our server. From Figure 8 we can find that the number of RP points in the fingerprint database are very few at the beginning. During the initial phase of the UILoc system, the number of reference points increases rapidly, as shown in (a), (b) and (c), until the environment is evenly distributed with reference points. At last, as shown in (g) and (h), the fingerprint database reaches a steady state.
Figure 9 shows the average localization error and the standard deviation of our initial localization model under 8 different phases corresponding to the 8 graphs in Figure 8. As expected, the accuracy of the initial localization model is very low in phase 1 and phase 2, because the location at this phase is mainly provided by the least squares method. From phase 3 to phase 5, the number of RPs in the database was growing rapidly, so the localization error and the standard deviation are rapidly decreased. At last, the positioning error converges at around 2.15 m.
Figure 10 is based on the localization error of each initial localization algorithm. It can be seen that the error interval of the least squares (LS) algorithm is the largest because of the signal fluctuations. Compared to other algorithms, the number of outliers in our algorithm is the least because the weighted fusion algorithm can suppress the impact of signal fluctuation. In UILoc, our initial localization model can provide a more accurate initial positioning.
In order to analyze the localization error of UILoc, we evaluated UILoc algorithm in a real experimental environment. In the experiment, the user walked in the experimental area with a fixed step length, then we used the PDR; PDR and BLE; PDR, BLE and PF; PDR, BLE and RM (reliable model); and our method (ie UILoc) for trajectory estimation; all of these algorithms are briefly described as PDR, PB, PBP, PBR and UILoc.
Figure 11 shows the intuitive trajectory estimations by some algorithms in our experimental area. In the experiment, we compared the PDR, PBR and UILoc. It can be seen that the cumulative error of the PDR is very serious in the absence of the landmarks’ correction, but it is shown that the PDR provides continuous position estimation. As the green track shown, we can use landmarks to restrain the cumulative error of PDR. As shown in the bottom right corner of the Figure 11, the PBR algorithm has the phenomenon of repeated correction. But in UILoc, the reliable model prevents the error caused by repeated correction.
Figure 12 describes the real-time localization errors of indoor trajectories using PDR, PB (landmark with PDR), PBR and UILoc. As can be seen from the figure, without the aid of the reliable model PB’s localization error is significantly larger than the PBR algorithm. As the red line shows, in the initial positioning phase the initial localization error of PBR is much larger than UILoc. So the UILoc system can provide a more stable position estimation.
Table 1 is a summary of localization errors of different algorithms, we also compared the root mean square errors (RMSE) of different algorithms. UILoc’s positioning accuracy has been greatly improved compared to the fingerprint positioning algorithms, e.g., KNN [24], UnLoc [28], Zee [9]. In the KNN algorithm, the mean of the positioning error is 2.36 m; in UnLoc [28], the mean of the positioning error is 2.0 m; in the Zee [9] algorithm, the mean error is about 5 m. Without the reliable model, the positioning error of the PB algorithm is 3.06 m, and after adding the reliable model module, the localization error is reduced to 1.77 m. After adapting the reliable model and the initial localization model to UILoc, the average positioning error is reduced to 1.11 m and the error of 50% samples is kept within 1 m. In this experiment, we also get a maximum positioning error of 2.77 m.
Figure 13 is the cumulative probability graph of each positioning algorithm. Due to the PDR cumulative error, the convergence rate of the PDR is very slow. The convergence rate of PBR is obviously improved after adding the RM module. We can see from the figure that the convergence rate of UILoc is faster than that of UILoc without the initial module. The UILoc can keep the positioning error within the range of 3 m steadily.
Finally, we implemented the UILoc on the Android platform and the reader can view experimental videos on our webpages [35,36].

6. Conclusions and Future Work

In this work, we have proposed the UILoc, which builds and updates the fingerprint database automatically. It provides accurate initial position estimation by an initial localization module and provides stable and accurate localization by a reliable model. Firstly, the popular PDR approach has the well-known drift problem. Since iBeacons can provide a high localization accuracy and can be easily deployed in real situations, we corrected the drift of the PDR approach by iBeacons. Since we used the PDR method to provide the basic position estimate, the accuracy of the initial position estimation is very important. We proposed the initial localization module (a weighted fusion algorithm that combined a fingerprint method and least squares method) to estimate a user’s initial location. Lastly, as the popular landmark approach just detects the strongest signal and corrects a user’s position, which may cause the problem of repeated corrections and result in extra localization errors or the instability of localization, we proposed the reliable model which can provide stable and accurate localization. Preliminary experimental results show that UILoc demonstrates low cost, rapid system deployment and high positioning accuracy. Results show that the UILoc achieved an average error of 1.11 m and can provide initial localization with an average error of 2.15 m.
Our ongoing research focuses on making UILoc feasible and pervasive in various applied environments and buildings.

Author Contributions

Conceptualization, Yi Zhang; Methodology, Jing Chen and Yi Zhang; Software, Yi Zhang; Validation, Jing Chen, Yi Zhang, and Wei Xue; Formal Analysis, Yi Zhang; Investigation, Yi Zhang; Resources, Jing Chen; Data Curation, Jing Chen; Writing-Original Draft Preparation, Yi Zhang; Writing-Review & Editing, Jing Chen and Wei Xue; Visualization, Wei Xue and Yi Zhang; Supervision, Jing Chen; Project Administration, Jing Chen; Funding Acquisition, Jing Chen.

Funding

This research was funded by [Jiangsu Province Science Foundation for Youths] grant number [BK20150159] and [Postgraduate Research & Practice Innovation Program of Jiangsu Province] grant number [SJCX17_0509].

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bahl, P.; Padmanabhan, V.N. RADAR: An in-building RF-based user location and tracking system. In Proceedings of the Nineteenth Annual Joint Conference of the IEEE Computer and Communications Societies, Tel Aviv, Israel, 26–30 March 2000; Volume 2, pp. 775–784. [Google Scholar]
  2. Yang, C.; Shao, H.R. WiFi-based indoor positioning. IEEE Commun. Mag. 2015, 53, 150–157. [Google Scholar] [CrossRef]
  3. Ni, L.; Liu, Y.; Lau, Y.; Patil, A. LANDMARC: Indoor location sensing using active rfid. Wirel. Netw. 2004, 10, 701–710. [Google Scholar] [CrossRef]
  4. Zhuang, Y.; Yang, J.; Li, Y.; Qi, L.; El-Sheimy, N. Smartphone-based indoor localization with bluetooth low energy beacons. Sensors 2016, 16, 596. [Google Scholar] [CrossRef] [PubMed]
  5. Chen, Z.; Zhu, Q.; Jiang, H.; Soh, Y.C. Indoor localization using smartphone sensors and iBeacons. In Proceedings of the 2015 IEEE 10th Conference on Industrial Electronics and Applications (ICIEA), Auckland, New Zealand, 15–17 June 2015; pp. 1723–1728. [Google Scholar]
  6. Zou, H.; Jiang, H.; Luo, Y.; Zhu, J.; Lu, X.; Xie, L. BlueDetect: An iBeacon-enabled scheme for accurate and energy-efficient indoor-outdoor detection and seamless location-based service. Sensors 2016, 16, 268. [Google Scholar] [CrossRef] [PubMed]
  7. Han, D.; Jung, S.; Lee, M.; Yoon, G. Building a practical Wi-Fi-based indoor navigation system. IEEE Pervasive Comput. 2014, 13, 72–79. [Google Scholar]
  8. Lim, J.S.; Jang, W.H.; Yoon, G.W.; Han, D.S. Radio map update automation for WiFi positioning systems. IEEE Commun. Lett. 2013, 17, 693–696. [Google Scholar] [CrossRef]
  9. Rai, A.; Chintalapudi, K.K.; Padmanabhan, V.N.; Sen, R. Zee: Zero-effort crowdsourcing for indoor localization. In Proceedings of the 18th Annual International Conference on Mobile Computing and Networking, Istanbul, Turkey, 22–26 August 2012; pp. 293–304. [Google Scholar]
  10. Yang, S.; Dessai, P.; Verma, M.; Gerla, M. Freeloc: Calibration-free crowdsourced indoor localization. In Proceedings of the 2013 IEEE INFOCOM, Turin, Italy, 14–19 April 2013; pp. 2481–2489. [Google Scholar]
  11. Wu, C.; Yang, Z.; Liu, Y. Smartphones based crowdsourcing for indoor localization. IEEE Trans. Mob. Comput. 2015, 14, 444–457. [Google Scholar] [CrossRef]
  12. Kang, W.; Han, Y. SmartPDR: Smartphone-based pedestrian dead reckoning for indoor localization. IEEE Sens. J. 2015, 15, 2906–2916. [Google Scholar] [CrossRef]
  13. Faragher, R.; Harle, R. Location fingerprinting with bluetooth low energy beacons. IEEE J. Sel. Areas Commun. 2015, 33, 2418–2428. [Google Scholar] [CrossRef]
  14. 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]
  15. Golestanian, M.; Poellabauer, C. Indoor localization using multi-range beaconing: Poster. In Proceedings of the 17th ACM International Symposium on Mobile Ad Hoc Networking and Computing, Paderborn, Germany, 5–8 July 2016; pp. 397–398. [Google Scholar]
  16. Lee, S.H.; Lim, I.K.; Lee, J.K. Method for improving indoor positioning accuracy using extended kalman filter. Mob. Inf. Syst. 2016, 2016, 2369103. [Google Scholar] [CrossRef]
  17. Botta, M.; Simek, M. Adaptive distance estimation based on RSSI in 802.15. 4 network. Radioengineering 2013, 22, 1162–1168. [Google Scholar]
  18. Boukerche, A.; Oliveira, H.A.; Nakamura, E.F.; Loureiro, A.A. Localization systems for wireless sensor networks. IEEE Wirel. Commun. 2007, 14. [Google Scholar] [CrossRef]
  19. Bahl, P.; Padmanabhan, V.N.; Balachandran, A. Enhancements to the RADAR User Location and Tracking System. Available online: https://www.microsoft.com/en-us/research/publication/enhancements-to-the-radar-user-location-and-tracking-system/ (accessed on 12 April 2018).
  20. Castro, P.; Chiu, P.; Kremenek, T.; Muntz, R. A probabilistic room location service for wireless networked environments. In Proceedings of the 3rd International Conference on Ubiquitous Computing, Atlanta, GA, USA, 30 September–2 October 2001; pp. 18–34. [Google Scholar]
  21. Youssef, M.; Agrawala, A. The Horus WLAN location determination system. In Proceedings of the 3rd International Conference on Mobile Systems, Applications, and Services, Seattle, WA, USA, 6–8 June 2005; pp. 205–218. [Google Scholar]
  22. Youssef, M.; Agrawala, A. The Horus WLAN Location Determination System. Wirel. Netw. 2008, 14, 357–374. [Google Scholar] [CrossRef]
  23. Moghtadaiee, V.; Dempster, A.G.; Lim, S. Indoor localization using fm radio signals: A fingerprinting approach. In Proceedings of the 2011 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Guimarães, Portugal, 21–23 September 2011; pp. 1–7. [Google Scholar]
  24. Moghtadaiee, V.; Dempster, A.G. Indoor location fingerprinting using FM radio signals. IEEE Trans. Broadcast. 2014, 60, 336–346. [Google Scholar] [CrossRef]
  25. Jin, Y.; Toh, H.S.; Soh, W.S.; Wong, W.C. A robust dead-reckoning pedestrian tracking system with low cost sensors. In Proceedings of the 2011 IEEE International Conference on Pervasive Computing and Communications (PerCom), Seattl, WA, USA, 21–25 March 2011; pp. 222–230. [Google Scholar]
  26. Wang, G.; Liang, J.; Chen, J.; Zhu, X. Step counting algorithm based on FSM using acceleration differential. J. Front. Comput. Sci. Technol. 2016, 10, 1133–1142. (In Chinese) [Google Scholar]
  27. Alzantot, M.; Youssef, M. UPTIME: Ubiquitous pedestrian tracking using mobile phones. In Proceedings of the 2012 IEEE theWireless Communications and Networking Conference (WCNC), Shanghai, China, 1–4 April 2012; pp. 3204–3209. [Google Scholar]
  28. Wang, H.; Sen, S.; Elgohary, A.; Farid, M.; Youssef, M.; Choudhury, R.R. No need to war-drive: Unsupervised indoor localization. In Proceedings of the 10th International Conference on Mobile Systems, Applications, and Services, Lake District, UK, 25–29 June 2012; pp. 197–210. [Google Scholar]
  29. Yang, F.; Lu, J.L.; Theoleyre, F.; Shu, W.; Wu, M.Y. Dynamic active area clustering with inertial information for fingerprinting based indoor localization systems. In Proceedings of the IFIP Networking Conference (IFIP Networking), Toulouse, France, 20–22 May 2015; pp. 1–9. [Google Scholar]
  30. Pelant, J.; Tlamsa, Z.; Benes, V.; Polak, L.; Kaller, O.; Bolecek, L.; Kufa, J.; Sebesta, J.; Kratochvil, T. BLE device indoor localization based on RSS fingerprinting mapped by propagation modes. In Proceedings of the 2017 27th International Conference on Radioelektronika (RADIOELEKTRONIKA), Brno, Czech Republic, 19–20 April 2017; pp. 1–5. [Google Scholar]
  31. Zhou, C.; Yuan, J.; Liu, H.; Qiu, J. Bluetooth Indoor Positioning Based on RSSI and Kalman Filter. Wirel. Pers. Commun. 2017, 96, 4115–4130. [Google Scholar] [CrossRef]
  32. Röbesaat, J.; Zhang, P.; Abdelaal, M.; Theel, O. An Improved BLE Indoor Localization with Kalman-Based Fusion: An Experimental Study. Sensors 2017, 17, 951. [Google Scholar] [CrossRef] [PubMed]
  33. Davidson, P.; Collin, J.; Takala, J. Application of particle filters for indoor positioning using floor plans. In Proceedings of the Ubiquitous Positioning Indoor Navigation and Location Based Service (UPINLBS), Kirkkonummi, Finland, 14–15 October 2010; pp. 1–4. [Google Scholar]
  34. Widyawan, K.M.; Beauregard, S. A backtracking particle filter for fusing building plans with PDR displacement estimates. In Proceedings of the 5th Workshop on Positioning, Navigation and Communication, Hannover, Germany, 27 March 2008; pp. 207–212. [Google Scholar]
  35. YouTube. UILoc Experiment. 2018. Available online: https://youtu.be/o6880f2uv9o (accessed on 12 April 2018).
  36. YouTube. Summary of Different Localization Algorithms. 2018. Available online: https://youtu.be/kLvYlNMLtww (accessed on 12 April 2018).
Figure 1. Overview of UILoc system.
Figure 1. Overview of UILoc system.
Sensors 18 01378 g001
Figure 2. The scenario using particle filter. (a) The mechanism to correct the step length. (b) The mechanism to correct the walking direction.
Figure 2. The scenario using particle filter. (a) The mechanism to correct the step length. (b) The mechanism to correct the walking direction.
Sensors 18 01378 g002
Figure 3. The principle of the initial localization module.
Figure 3. The principle of the initial localization module.
Sensors 18 01378 g003
Figure 4. The scenario using landmarks.
Figure 4. The scenario using landmarks.
Sensors 18 01378 g004
Figure 5. The design of the reliable model.
Figure 5. The design of the reliable model.
Sensors 18 01378 g005
Figure 6. The signal curves of the iBeacon when the user comes close to then goes away from the landmark. (a) Raw data of bluetooth low energy (BLE). (b) Data of BLE after L1 filter. (c) data of BLE after L2 filter.
Figure 6. The signal curves of the iBeacon when the user comes close to then goes away from the landmark. (a) Raw data of bluetooth low energy (BLE). (b) Data of BLE after L1 filter. (c) data of BLE after L2 filter.
Sensors 18 01378 g006
Figure 7. Layout of the experimental environment.
Figure 7. Layout of the experimental environment.
Sensors 18 01378 g007
Figure 8. The process of the fingerprint database construction.
Figure 8. The process of the fingerprint database construction.
Sensors 18 01378 g008
Figure 9. The average localization error and the standard deviation of the initial localization model under different phases.
Figure 9. The average localization error and the standard deviation of the initial localization model under different phases.
Sensors 18 01378 g009
Figure 10. The localization error of different initial localization algorithms.
Figure 10. The localization error of different initial localization algorithms.
Sensors 18 01378 g010
Figure 11. Estimated trajectories with different algorithms.
Figure 11. Estimated trajectories with different algorithms.
Sensors 18 01378 g011
Figure 12. Localization errors of indoor trajectories using different algorithms.
Figure 12. Localization errors of indoor trajectories using different algorithms.
Sensors 18 01378 g012
Figure 13. The cumulative probability of location error with different algorithms.
Figure 13. The cumulative probability of location error with different algorithms.
Sensors 18 01378 g013
Table 1. Summary of localization results.
Table 1. Summary of localization results.
Algorithm50%75%MeanRMSE
PDR16.5219.2915.5616.41
PB2.754.603.063.76
PBP2.754.503.043.74
PBR1.492.441.772.26
KNN2.03.52.362.97
UILoc0.961.471.111.26

Share and Cite

MDPI and ACS Style

Chen, J.; Zhang, Y.; Xue, W. Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi. Sensors 2018, 18, 1378. https://doi.org/10.3390/s18051378

AMA Style

Chen J, Zhang Y, Xue W. Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi. Sensors. 2018; 18(5):1378. https://doi.org/10.3390/s18051378

Chicago/Turabian Style

Chen, Jing, Yi Zhang, and Wei Xue. 2018. "Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi" Sensors 18, no. 5: 1378. https://doi.org/10.3390/s18051378

APA Style

Chen, J., Zhang, Y., & Xue, W. (2018). Unsupervised Indoor Localization Based on Smartphone Sensors, iBeacon and Wi-Fi. Sensors, 18(5), 1378. https://doi.org/10.3390/s18051378

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