Research Article  Open Access
Longshi Gao, Shuangxia Tang, Yuntian Brian Bai, "A New Approach for WiFiBased People Localization in a Long Narrow Space", Wireless Communications and Mobile Computing, vol. 2019, Article ID 9581401, 8 pages, 2019. https://doi.org/10.1155/2019/9581401
A New Approach for WiFiBased People Localization in a Long Narrow Space
Abstract
WiFibased 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 WiFi 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 samelinedualconnection (SLDC) was developed to estimate user locations with a good positioning accuracy, particularly for long narrow spaces where only limited WiFi 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.
1. Introduction
WiFi 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, WiFi has become a default feature for all smartphones. It is not only used in communications and entertainment but also locationbased services (LBS). Unlike other builtin technologies (e.g., Bluetooth), the WiFi 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, WiFi 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]. WiFi and smartphonebased tracking and positioning is therefore a key part of LBS products. However, there is still no optimal WiFibased localization solution available so far, and the low positioning accuracy is still an issue due to the poor geometrical distribution of WiFi 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 enduser in a long narrow space is still a problem.
A new approach named the samelinedualconnection (SLDC) has been developed for solving this problem. Only two AP connections are required for SLDC approach to estimate the position of the enduser 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 Section 2, 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 distancebased and orientationbased measurement models [6, 7]. Generally, there are four types of measurements used for WiFi and smartphonebased 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 RSSIbased 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.where d: distance between the transmitter and receiver in meters; RX_{PWR}: detected RSSI in dBm; TX_{PWR}: transmitter output power in dBm; LOSS_{TX}: the sum of all cable and connector losses at the transmitterside in dBm; GAIN_{TX}: transmitterside antenna gain in dBi; LOSS_{RX}: the sum of all cable and connector losses at the receiverside in dBm; GAIN_{RX}: receiverside antenna gain in dBi; PL_{1m}: 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; and s: 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 Figure 1 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 freespace 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.
(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 path
One 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 enduser 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., point in Figure 1(b), the customer may be detectable from both and . 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 WiFi 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)Lineofsight (LOS) environments are commonly available in a corridor although disturbance may occur sometimes if there are too many customers around the enduser.(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 enduser 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 connected APs (AP_{1} and AP_{2}) 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 point P is the estimated point of enduser, is the true distance between AP_{1} and AP_{2}, and and are the two estimated distances from point P to AP_{1} and AP_{2}, which are derived from (1), respectively.
The following equations are given for determining point P in the above five cases
Case 1. The precondition for this case is . Since points A and B 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 and , so the errors from the path loss model for and (i.e., and ) are assumed to be the same. Let and be the two true distances for and ; then
In fact, it is hard to obtain a true distance, rather the optimum measurement. Then the above two equations can be rewritten aswhere and are the optimum measurements from to and , respectively; then point P is geometrically determined by
As displayed in Figure 2, the sum of the errors from and can be defined geometrically as . 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 and , and the distance errors produced are similar and therefore assumed the same to simplify the estimation process. In this case, both the errors for and are shown in
Similarly, 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 . Point P is determined by
Obviously, (8) is the same as (6).
Case 3. The precondition for this case is , which is a special case of Cases 1 or 2 where the total distance error is 0. In this case, the estimated distances between P and AP_{1} actually equals . However, it can still be calculated by (6).
Cases 4 and 5. Geometrically the precondition for Case 4 is and and is and for Case 5.
It is noticeable that the methodology for Cases 4 and 5 should be different from the first 3 cases, since the fixed distance () used for a distance rectification process in Cases 1, 2, and 3 is not applicable for Cases 4 and 5, and therefore, additional assessments are required. Inspired by the methodologies of machine learning, an empirical error value (i.e., ) “learnt” from Cases 1, 2, and 3 is used for the error rectification for each distance estimation process under Cases 4 and 5. The empirical value can be either prerecorded from a calibration test or an average value of the accumulated errors from Cases 1, 2, and 3 under 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, point P in Cases 4 and 5 can be determined by
Further analyses conducted after (6) through (9) are established
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 for Cases 1, 2, and 3. The precondition for the first three cases is therefore adjusted accordingly as .
It should be noted that when or , then the customer is at either point or , respectively.
In Cases 4 and 5, a negative value of the estimate indicates that the enduser is out of the range of , and a positive value of the estimate indicates that the enduser is out of the range of . In practice, most of the cases belong to the first three cases rather than Cases 4 and 5.
The height of the APs (i.e., the vertical distance between the APs and enduser 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 (assuming H) of APs, (10) will be used instead of (6), where and are the distances obtained directly from (1). Only horizontal distances should be used for the geometrical comparison (see Figure 3).
Another issue for implementing this approach is how to identify which direction the enduser is coming from. A backtracing method was used for this purpose. For each enduser, 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 enduser 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 enduser’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 enduser. Secondly, using the backtracing process and also setting up a value of angle tolerance is implemented to examine if the last AP is in the same line with the enduser 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 enduser, 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 Figure 4; 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.
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 Figure 5, in which an HTC ONE smartphone and 5 Linksys WRT54GL WirelessG WiFi Routers were deployed in a roughly 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 the X and Y coordinates of all the TPs and APs were known constants. The Y 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) X coordinates of AP_{1}, AP_{2}, …, AP_{n}, respectively;(ii) distances between two adjacent APs and TPs, respectively (i.e., 13.9m and 2.07m, respectively);(iii) Y coordinates of two adjacent APs and TPs;(iv) RSSI value received from the ;(v) true X coordinate between two adjacent TPs;(vi) estimated distance between TP and AP_{1};(vii) estimated distance between TP and AP_{2};(viii) estimated X coordinate between two adjacent TPs;(ix)ABS_diff: absolute value of the difference between and .

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 Section 3. 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 the Y coordinate was a constant in this test, only X 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 the X 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 to Cases 4 and 5 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.
(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 WiFibased 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.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that there is no conflict of interest regarding the publication of this paper.
Acknowledgments
This work was supported in part by the Australian Research Council Linkage Project (LP120200413).
References
 D. Group, “Wireless LAN (WLAN) Market Revenue Will Grow to $18.2 Billion by 2022, in Networks and infrastructur,” CISION PR Newswire, 2018. View at: Google Scholar
 M. Machowinski, “New high of $4 billion for wireless LAN market in 2012,” in Wireless LAN Equipment and WiFi Phones, Infonetics Research, 2013. View at: Google Scholar
 M. Elkhodr, S. Shahrestani, and H. Cheung, “Emerging wireless technologies in the internet of things: a comparative study,” International Journal of Wireless & Mobile Networks (IJWMN), vol. 8, no. 5, pp. 67–82, 2016. View at: Google Scholar
 S. K. Mohapatra, R. R. Choudhury, and P. Das, “The future directions in evolving WiFi: technologies, applicaitons and services,” International Journal of NextGeneration Networks (IJNGN), vol. 6, no. 3, pp. 13–22, 2014. View at: Publisher Site  Google Scholar
 D. Adams, WiFi Planning: Preparing for Growth in a MobileFirst World, SecurEdge Networks, 2018.
 J. Kang, J. Lee, and D.S. Eom, “Smartphonebased traveled distance estimation using individual walking patterns for indoor localization,” Sensors, vol. 18, no. 9, article no. 3149, pp. 1–18, 2018. View at: Google Scholar
 I. H. Alshami, N. A. Ahmad, S. Sahibuddin, and F. Firdaus, “Adaptive indoor positioning model based on WLANfingerprinting for dynamic and multifloor environments,” Sensors, vol. 17, no. 8, article no. 1789, 2017. View at: Google Scholar
 M. KhalafAllah, “Time of arrival (TOA)based direct location method,” in Proceedings of the 16th International Radar Symposium, IRS 2015, pp. 812–815, Dresden, Germany, June 2015. View at: Google Scholar
 D. Humphrey and M. Hedley, “Superresolution time of arrival for indoor localization,” in Proceedings of the IEEE International Conference on Communications, ICC 2008, pp. 3286–3290, China, May 2008. View at: Google Scholar
 C. Gentner and T. Jost, “Indoor positioning using time difference of arrival between multipath components,” in Proceedings of the 2013 International Conference on Indoor Positioning and Indoor Navigation, IPIN 2013, IEEE Xplore, Montbeliard, France, October 2013. View at: Publisher Site  Google Scholar
 D. Musicki and W. Koch, “Geolocation using TDOA and FDOA measurements,” in Proceedings of The 11th International Conference on Information Fusion, IEEE Xplore, Cologne, Germany, 2008. View at: Google Scholar
 S. Wielandt and L. D. Strycker, “Indoor multipath assisted angle of arrival localization,” Sensors, vol. 17, no. 2522, pp. 1–29, 2017. View at: Publisher Site  Google Scholar
 C.C. Pu, C.H. Pu, and H.J. Lee, Indoor Location Tracking using Received Signal Strength Indicator, Emerging Communications for Wireless Sensor Networks, 2011.
 H. Zhu and T. Alsharari, “An improved rssibased positioning method using sector transmission model and distance optimization technique,” International Journal of Distributed Sensor Networks, vol. 2015, no. 4, pp. 1–12, 2015. View at: Google Scholar
 G. Li, E. Geng, Z. Ye, Y. Xu, J. Lin, and Y. Pang, “Indoor positioning algorithm based on the improved RSSI distance model,” Sensors, vol. 18, no. 9, p. 2820, 2018. View at: Publisher Site  Google Scholar
 M. N. Husen and S. Lee, “Indoor location sensing with invariant WiFi received signal strength fingerprinting,” Sensors, vol. 16, no. 11, 2016. View at: Google Scholar
 S. Xia, Y. Liu, G. Yuan, M. Zhu, and Z. Wang, “Indoor fingerprint positioning based on WiFi: an overview,” ISPRS International Journal of GeoInformation, vol. 6, no. 5, pp. 1–25, 2017. View at: Publisher Site  Google Scholar
 G. Durgin, T. S. Rappaport, and H. Xu, “Measurements and models for radio path loss and penetration loss in and around homes and trees at 5.85 GHz,” IEEE Transactions on Communications, vol. 46, no. 11, pp. 1484–1496, 1998. View at: Publisher Site  Google Scholar
 I. Cisco System, “WiFi LocationBased Services 4.1 Design Guide,” 2008. View at: Google Scholar
 M. A. Bartié, Path Loss in free space, QSL.net, 2014, http://www.qsl.net/pa2ohh/jsffield.htm.
 Y. B. Bai, S. Wu, G. Retscher et al., “A new method for improving WiFibased indoor positioning accuracy,” Journal of Location Based Services, vol. 8, no. 3, pp. 135–147, 2014. View at: Publisher Site  Google Scholar
 Y. B. Bai, “Development of a WiFi and RFID based indoor location and mobility tracking system,” in School of Mathematical and Geospatial Sciences, College of Science, Engineering and Health, pp. 135–141, RMIT University, Melbourne, Australia, 2016. View at: Google Scholar
Copyright
Copyright © 2019 Longshi Gao et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.