# A New Approach for Wi-Fi-Based People Localization in a Long Narrow Space

Authors: Longshi Gao; Shuangxia Tang; Yuntian Brian Bai
Journal: Wireless Communications and Mobile Computing
 (2019)

---

## Abstract

Wi-Fi-based positioning technology has been recognized as an effective technology for indoor positioning along with the rapid development and application of smartphones. One of its typical applications is localizing people in large public areas such as shopping malls, schools, and airports. A common and critical task from such applications is localizing people in long narrow spaces such as a long corridor which is considered as the most frequent place where people activities take place. Generally, the geographical distribution of Wi-Fi access points (APs) in long spaces is poor for localizing people since normally less than 3 APs are connected to a smartphone. In addition, all these APs are normally mounted along a straight line; hence, it is difficult to track people using traditional positioning algorithms such as trilateration and fingerprinting. To address this issue, a new approach called same-line-dual-connection (SLDC) was developed to estimate user locations with a good positioning accuracy, particularly for long narrow spaces where only limited Wi-Fi connections are available. The SLDC approach integrates geometry principle with positioning theories and machine learning ideas. The test outcome has shown that the SLDC approach produced a promising result, and a mean positioning accuracy of 1.60 m was achieved.


---

## Body

## 1. Introduction

Wi-Fi and smartphone technologies are becoming a growing and innovative ways of connecting people or moving objects with each other instead of using emails and other traditional social media methods running on laptop or desktop computers. Today, Wi-Fi has become a default feature for all smartphones. It is not only used in communications and entertainment but also location-based services (LBS). Unlike other built-in technologies (e.g., Bluetooth), the Wi-Fi function is usually switched on by the smartphone user while the phone is turned on; this feature has provided us with a convenient way for technology implementing and service providing. In recent years, Wi-Fi and smartphone technologies are experiencing a significant growth in both industrial application and academic research fields due to the unprecedented increase in demand from the smartphone industry [1–5]. Wi-Fi and smartphone-based tracking and positioning is therefore a key part of LBS products. However, there is still no optimal Wi-Fi-based localization solution available so far, and the low positioning accuracy is still an issue due to the poor geometrical distribution of Wi-Fi access points (APs), multipath effect, and signal fluctuation caused by various interferences.Traditionally, it is very common that the APs are deployed along a straight line or nearly straight line in a corridor or other long narrow spaces, which is difficult for current indoor positioning algorithms to effectively track people within the corridors. In practice, when a mobile customer walks through a corridor, the customer is most likely along the same line as the surrounding APs mounted. Both multilateration and fingerprinting methods do not work properly under such circumstances, and so does the Cell of Origin (CoO) method since the distance between any pair of adjacent APs is commonly 20m or longer. Therefore, tracking and localizing an end-user in a long narrow space is still a problem.A new approach named the same-line-dual-connection (SLDC) has been developed for solving this problem. Only two AP connections are required for SLDC approach to estimate the position of the end-user who walks through the long narrow space. An empirical error value, obtained from previous cases and with similar signal transmission conditions, was also employed for each distance estimation as an enhancement process.The rest of the paper is outlined as follows: the relevant measurement models will be discussed in Section2, and a real shopping mall tracking environment will be analyzed in Section 3; the methodology of the new approach will be introduced in Section 4, and Section 5 will present an evaluation test. Finally, the conclusion part will be addressed in Section 6.


## 2. Measurement Model

It is well known that a location can be estimated from various measurement models such as distance-based and orientation-based measurement models [6, 7]. Generally, there are four types of measurements used for Wi-Fi and smartphone-based indoor positioning: time of arrival (ToA) [8, 9], time difference of arrival (TDoA) [10, 11], angle of arrival (AoA) [12], and received signal strength indicator (RSSI) based models [13–15]. The RSSI-based model is more popular than the other three [16, 17] and therefore is employed for SLDC. The distance between a customer and an AP can be calculated by a commonly used path loss model [18, 19] as shown below.(1)d=10TXPWR-RXPWR-LOSSTX-LOSSRX+GAINTX+GAINRX-s-PL1m/10nwhered: distance between the transmitter and receiver in meters;RXPWR: detected RSSI in dBm;TXPWR: transmitter output power in dBm;LOSSTX: the sum of all cable and connector losses at the transmitter-side in dBm;GAINTX: transmitter-side antenna gain in dBi;LOSSRX: the sum of all cable and connector losses at the receiver-side in dBm;GAINRX: receiver-side antenna gain in dBi;PL1m: reference path loss in dBm for the desired frequency when the distance between the receiver and transmitter is 1 meter [20];n: path loss exponent related to the surrounding environment; ands: standard deviation in dBm, associated with the degree of shadow fading presented in the environment.Currently, the most commonly used location estimation methods for indoor positioning are CoO, multilateration (e.g., trilateration) and fingerprinting. Among them, CoO is used less and its accuracy really depends on the means of the AP distribution. Multilateration usually requires at least 3 AP connections and the target position estimate is derived from multiple distances (i.e., ≥ 3 distance values) between the mobile user and the connected APs. It should be aware that the observed RSSI values can be affected by a number of factors such as the output power of the transmitter, the sensitivity of the receiver, the antenna gains at both the transmitter and receiver sides, as well as the path loss of the signal as it travels through the air. These will result in significant errors in the calculated distance. Multilateration is also difficult to work for the case where the surrounding APs are mounted along a straight line. Fingerprinting method is a better option for more complex indoor environments because the effect from the environment is well dealt with in the training phase. However, the positioning accuracies of fingerprinting vary largely with the change of density of the AP distribution and irregular fluctuation of the signal strength.


## 3. Analyses of the Tracking Environment in Real Shopping Malls

The development of the SLDC approach was based on the investigation and analyses of many different floor layouts and other features in long narrow spaces (e.g., the shopping mall environments from our industrial research partner). Typical long narrow spaces can be easily seen in a real floor layout map of any large public building. A floor map as such from a local shopping mall is shown in Figure1 where the long corridors have been marked in Figure 1(a). A typical distribution of APs (the red points) in one level of the shopping mall can be seen in Figure 1(b). It should be noticed that a number of testing points (TPs, the blue points) were also marked on the floor along the customers’ walking path for the purpose of further testing. It is obvious that most of the APs in the corridors are located in a nearly straight line, although there are a few large free-space areas such as the area in front of the main entrance of a shopping center and/or other more complex and irregular layouts. In the latter cases, other methods such as trilateration or fingerprinting can be used instead of SLDC. For example, in the case of complex surrounding environments, fingerprinting method is the best choice for customer tracking.Figure 1
Characteristics of a typical floor layout, AP distribution, and main customer walking paths in a large shopping mall.
(a)
A floor layout example of the large shopping mall (b)
Typical AP distribution in a large shopping mall and TPs along the customer walking pathOne common feature of long corridors is that the customer usually walks along a straight line (or almost a straight line), which is similar to the line representing the mounted APs in the corridor without consideration of the height of the ceiling. Another common feature is that the space in a long corridor is relatively free. The APs are typically mounted on the ceiling and there are no other facilities occupied in a corridor normally, and the signals travel through a relatively free space between APs and end-user devices. Therefore, it is a good choice in this case to use the path loss model for distance calculation.When a customer is at a specific test point, e.g., pointTP3 in Figure 1(b), the customer may be detectable from both AP20 and AP22. The features discussed above, for example, almost all the APs are mounted along the corridors and the approximate 20m distance between any pair of adjacent Aps, etc., can be found from Figure 1(b). In fact, because the corridors are common passageways towards all business firms, they become the main focus for customer tracking in most shopping malls.A number of findings discovered from our previous tests have been used in this new approach development:(1)
stronger Wi-Fi signals presented more stability and consistency [21], so two stronger signals were selected in this research for the estimation of the customer position;(2)
a TP with a greater RSSI value observed from an AP is regarded closer to the AP than other TPs with less RSSI values received and vice versa;(3)
signals with RSSI values greater than -70 dBm were presumed for better positioning operation;(4)
an empirical RSSI threshold of -85 dBm was adopted for recording rejection of ineffective RSSI values in this approach.To summarize, the main features of a long corridor for indoor tracking and positioning are as follows.(i)
The space in a long corridor is relatively free except with walls or other partitions along the two sides of the corridor.(ii)
Line-of-sight (LOS) environments are commonly available in a corridor although disturbance may occur sometimes if there are too many customers around the end-user.(iii)
Most of the APs are mounted on the ceiling of the corridor along a straight line (or nearly a straight line).(iv)
The walking path of the customers can be assumed as a straight line along the corridor, which is similar to the straight line going through the APs on the ceiling of the corridor.Based on the above discussions, the path loss model (1) is selected for calculating the distance between a customer and connected APs in the corridor. The height (H) between the APs and end-user devices is a known constant in this project (also in most of similar cases).


## 4. Methodology

Assuming that the positions of the customer (P) and the two connectedAPs (AP1 andAP2) used to locate the customer are all in the same line, then five possible geometrical configurations of the three positions are shown in Figure 2, in which pointP is the estimated point of end-user, D12 is the true distance betweenAP1 andAP2, and d1i.e.,AP1A and d2(i.e.,AP2B) are the two estimated distances from pointP toAP1 andAP2, which are derived from (1), respectively.Figure 2
Five different cases for customer tracking and positioning using the SLDC approach.The following equations are given for determining point P in the above five casesCase 1. The precondition for this case is (d1+d2)>D12&d1≤D12&d2≤D12. Since pointsA andB are adjacent to each other, they are normally in the same surrounding environment and using the same path loss exponent (n) and standard deviation (s) values for the calculation of d1 and d2, so the errors from the path loss model for d1 and d2 (i.e., d1err and d2err) are assumed to be the same. Let d1TRUE and d2TRUE be the two true distances for AP1P and AP2P; then(2)d1=d1TRUE+d1err(3)d2=d2TRUE+d2errIn fact, it is hard to obtain a true distance, rather the optimum measurement. Then the above two equations can be rewritten as(4)d1=d1OPT+d1err(5)d2=d2OPT+d2errwhere d1OPT and d2OPT are the optimum measurements from P to AP1 and AP2, respectively; then pointP is geometrically determined by(6)d1OPT=d1-d1+d2-D122=d1-d2+D122As displayed in Figure2, the sum of the errors from d1 and d2 can be defined geometrically as [(d1+d2)-D12]. Based on the previous discussion, the environments between two adjacent APs in the same corridor are very similar, the same path loss exponent (n) and standard deviation associated with the degree of shadow fading (s) are used for both calculations of d1 and d2, and the distance errors produced are similar and therefore assumed the same to simplify the estimation process. In this case, both the errors for d1 and d2 are shown in (7)d1err=d2err=d1+d2-D122Similarly, based on the geometric properties, the determination of point P for Cases 2 and 3 is as follows.Case 2. The precondition for this case is d1+d2<D. PointP is determined by(8)d1OPT=d1+D12-d1+d22=d1-d2+D122Obviously, (8) is the same as (6).Case 3. The precondition for this case is d1+d2=D12, which is a special case ofCases 1 or2 where the total distance error is 0. In this case, the estimated distances betweenP andAP1 actually equals d1. However, it can still be calculated by (6).Cases 4 and 5. Geometrically the precondition forCase 4 is d2>D and d2≥d1 and is d1>D and d1>d2 forCase 5.It is noticeable that the methodology forCases 4 and5 should be different from the first 3 cases, since the fixed distance (D12) used for a distance rectification process in Cases 1, 2, and 3 is not applicable forCases 4 and5, and therefore, additional assessments are required. Inspired by the methodologies of machine learning, an empirical error value (i.e., d1err) “learnt” fromCases 1,2, and3 is used for the error rectification for each distance estimation process underCases 4 and5. The empirical value d1err can be either prerecorded from a calibration test or an average value of the accumulated errors fromCases 1,2,and3under a similar surrounding environment and signal transmitting conditions. The average error value for a specific area is often selected for this purpose due to the ease of implementation. Then, pointP inCases 4 and5 can be determined by (9)d1OPT=d1-d1errFurther analyses conducted after (6) through (9) are established( 1 ) As discussed in the above paragraph, the first three cases are essentially the same from a mathematical point of view, so (6) is the solution forCases 1,2, and3. The precondition for the first three cases is therefore adjusted accordingly as d1≤D12&d2≤D12.( 2 ) It should be noted that when d1=0 or d1=D12, then the customer is at either point AP1 or AP2, respectively.( 3 ) In Cases 4 and 5, a negative value of the estimate indicates that the end-user is out of the range of AP2→AP1, and a positive value of the estimate indicates that the end-user is out of the range of AP1→AP2. In practice, most of the cases belong to the first three cases rather thanCases 4 and5.( 4 ) The height of the APs (i.e., the vertical distance between the APs and end-user devices) needs to be taken into consideration during the estimation process. It has also been noticed that the height of the APs is usually a known constant corresponding to the height of the corridor. When dealing with the height (assumingH) of APs, (10) will be used instead of (6), where d1PL and d2PL are the distances obtained directly from (1). Only horizontal distances should be used for the geometrical comparison (see Figure 3). (10)d1OPT=d1PL2-H2-d2PL2-H2+D122Figure 3
Geometrical description for horizontal distance calculation.( 5 ) Another issue for implementing this approach is how to identify which direction the end-user is coming from. A backtracing method was used for this purpose. For each end-user, the system recorded and stored the information of the last linked AP with the strongest RSSI value, and later the recorded historical information can be traced back and help to identify where the current customer comes from. This is extremely useful when the end-user is passing through an intersection of two or more corridors.In addition to the above analyses, another issue for implementing this approach is how to identify if an end-user’s tracking belongs to SLDC. Firstly, the user needs to be identified when in a long corridor, which is achieved by checking the location of the strongest AP connected to the end-user. Secondly, using the backtracing process and also setting up a value of±5% angle tolerance is implemented to examine if the last AP is in the same line with the end-user and current two connected APs [22]. For example, if the last connected AP with the strongest RSSI value is within the tolerance of the two currently connected APs and the end-user, and also the three APs are all in the same corridor, then the above approach can be considered to use SLDC solution; otherwise, the tracking scenario would not belong to the case of SLDC, and other estimation methods will be employed in this case.The overall tracking procedure for SLDC is shown in the flowchart in Figure4; other estimation methods can also be employed for the tracking and positioning, which is beyond this topic and will not be discussed in this paper.Figure 4
Overall tracking procedure of the SLDC approach.


## 5. Test and Evaluation

The SLDC approach was evaluated using the experimental data collected from a testbed located in Building 100, RMIT University, as shown in Figure5, in which an HTC ONE smartphone and 5 Linksys WRT54GL Wireless-G Wi-Fi Routers were deployed in a roughly 56m×5m long corridor for this test. An Android APP for collecting the RSSI data was developed and installed on the HTC phone. To simplify the calculation, all the 5 APs (the red points in Figure 5) were put in the same height level with the smartphone carried by the mobile user, so the height between the APs and the smartphones was 0. The 26 TPs (blue points in Figure 5) were marked on the floor, and theX andY coordinates of all the TPs and APs were known constants. TheY coordinates of all the APs and TPs were also known constants. To simplify the testing process and to be consistent, only one frequency of signals (i.e., 2.4GHz) was used for the test. All parameters and data collected for the evaluation of the SLDC approach are recorded in Table 1, where(i)
XAP1,XAP2,…,XAPn:X coordinates ofAP1, AP2, …, APn, respectively;(ii)
dAP,dTP: distances between two adjacent APs and TPs, respectively (i.e., 13.9m and 2.07m, respectively);(iii)
YAP,YTP:Y coordinates of two adjacent APs and TPs;(iv)
RSSIAPn: RSSI value received from the nthAP;(v)
XTP_TRUE: trueX coordinate between two adjacent TPs;(vi)
dTP_AP1: estimated distance betweenTP andAP1;(vii)
dTP_AP2: estimated distance betweenTP andAP2;(viii)
XTP_EST: estimatedX coordinate between two adjacent TPs;(ix)
ABS_diff: absolute value of the difference between XTP_TRUE and XTP_EST.Table 1
Evaluation of the SLDC approach.
X A P 1 = 0.10  X A P 2 = 14.00  X A P 3 = 27.90  X A P 4 = 41.80  X A P 5 = 55.70  d A P (m) = 13.90 d T P (m) = 2.07 Y A P (m) = 2.90 Y T P (m) = 2.45  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  R S S I A P 1 - 31 - 31 - 35 - 42 - 58 - 61 - 59 -64 -63 -75 -74 -73 -70 -77 -77 -82  -84   -83 R S S I A P 2 - 56 - 57 - 50 - 39 - 37 - 32 - 30 - 31 - 35 - 37 - 53 - 52 - 55 -63 -61 -65 -66 -74  -82  -82 R S S I A P 3  -72 -76 -69 -70 -65 -66 - 59 - 48 - 49 - 41 - 36 - 32 - 29 - 35 - 35 - 34 - 40 - 44 - 50 -64 -69 -76 -77 -77 -83 R S S I A P 4  -83  -80   -79 -79 -73 -75 -65 -66 -59 - 58 - 41 - 39 - 33 - 34 - 33 - 31 -30 - 37 - 36 - 41 - 50 - 49 R S S I A P 5          -83 -84  -80 -81 -77 -79 -77 -70 -71 -59 - 57 - 50 - 43 - 41 - 40 - 32 X T P _ T R U E 2.07 4.14 6.21 8.28 10.35 12.42 14.49 16.56 18.63 20.70 22.77 24.84 26.91 28.98 31.05 33.12 35.19 37.26 39.33 41.40 43.47 45.54 47.61 49.68 51.75 53.82 d T P _ A P 1 1.91 1.91 2.59 4.43 15.14 19.05 16.34 1.91 2.59 3.02 10.31 9.55 12.02 1.63 2.59 2.59 2.40 3.80 5.17 8.19 1.76 3.02 2.80 4.11 8.19 7.59 d T P _ A P 2 12.98 14.02 8.19 3.52 3.02 2.06 1.76 16.34 7.03 7.59 4.11 2.80 2.06 15.14 4.11 3.52 2.22 2.40 2.22 1.91 14.02 8.19 4.79 4.11 3.80 2.06 X T P _ E S T 1.51 0.99 4.25 7.51 13.11 15.55 14.34 13.73 18.73 18.67 24.05 24.33 25.93 29.14 34.09 34.38 34.94 35.55 36.32 37.99 42.62 46.16 47.76 45.91 50.94 51.51 ABS_diff 0.56 3.15 1.96 0.77 2.76 3.13 0.15 2.83 0.10 2.03 1.28 0.51 0.98 0.16 3.04 1.26 0.25 1.71 3.01 3.41 0.85 0.62 0.15 3.77 0.81 2.31  Mean_diff 1.60 (m)Figure 5
The testbed for SLDC approach.A number of additional rules were applied for the RSSI signal evaluation. Firstly, RSSI thresholds were used for filtering out some unwanted signals from those connected APs, which has been discussed earlier in Section3. Secondly, the first two APs providing the two strongest RSSI values were selected as valid APs (as shown in italic font in Table 1) for the distance calculation, although there may be more AP connections available. In real shopping malls, the distances between two adjacent APs are usually around 20m, which is larger than the distance used in this test (i.e., 13.9 m); therefore, there should not be so many valid APs available in practice.Similar to the customer walking path in a real shopping mall, the users moved along a straight line when they walked in the corridor, so theY coordinate was a constant in this test, onlyX coordinates of the APs and TPs were required for distance calculation. Ten RSSI values for each valid AP connection were collected at each TP and the average of the 10 values was used for the distance calculation in order to partly reduce the signal fluctuation effect. Comparisons between theX coordinate of each true TP and that of the estimated TP are shown in Figure 6(a), the absolute variation values between the true TPs and their estimated results are presented in Figure 6(b), and it can be clearly seen that the variation value for the “worst” point is more than 3.5m but is approaching to 0 for 5 “good” points. It should be aware that the average error values from those points belonging to Cases 1, 2, and 3 were used for the estimation of other four points belonging toCases 4 and5 during the implementation in order to reduce estimation errors. A final promising result of 1.60m of the mean accuracy (i.e., the variations) was obtained successfully.Figure 6
The test result of the SLDC approach.
(a) (b)


## 6. Conclusion

This paper presents a new approach (SLDC) for customer tracking and positioning in long narrow spaces (e.g., a long corridor in a large shopping mall), where only limited APs are available and all APs are mounted on the ceiling along with a straight line or nearly a straight line. The test result has shown that the SLDC approach is effective and efficient for tracking and positioning in a long corridor. A mean accuracy of 1.60 m was achieved from the evaluation test. The test result is very promising and obviously ahead of other Wi-Fi-based indoor positioning methods.Further implementation of SLDC in a real commercial place (e.g., a large shopping mall or an airport) will become the next step of our research plan. An enhanced SLDC approach with a higher level of accuracy is also expected in the future.



---

*Source: 9581401-2019-04-23.xml*