Submitted:
29 August 2024
Posted:
30 August 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- In this paper, we introduce SWiLoc, a novel direction correction system that leverages passive WiFi sensing to form Correction Zones for refining smartphone-based user direction estimates. Our two-phase approach not only accurately measures the user’s walking directions when they pass through a correction zone but also utilizes these measured directions to estimate their successive directions outside correction zones. This is done by first establishing a correlation in Phase 1 and using this correlation in Phase 2.
- Building on the first contribution, we extend SWiLoc’s capabilities by implementing an accurate localization technique that uses the corrected directions to achieve precise user localization. This extension enhances the system’s utility by enabling continuous and accurate tracking of the user’s movements, providing a robust solution for applications requiring high localization accuracy.
- Our third contribution is the resolution of unreliable walking directions through our innovative and distinctive hardware configurations. We discuss and resolve the unreliable direction problem in this paper. Our model is based on the Fresnel zone-based approach that not only ensures reliable direction estimations in challenging scenarios but also significantly enhances localization accuracy.
- Our system undergoes rigorous analysis and evaluation across two real-world settings, where its performance is benchmarked against state-of-the-art methods. We thoroughly assess how various factors—such as environmental conditions, ways the phone is held, walking directions, and varying locations and distances—affect the precision of our method. The results demonstrate that SWiLoc consistently outperforms other existing methods in both direction estimation and localization, regardless of whether they utilize WiFi sensing or smartphone sensor fusion.
2. Related Works
2.1. Pedestrian Dead Reckoning (PDR)
2.2. Smartphone Sensor Fusion Based Direction and Location Estimation
2.3. Calibration-Based Direction and Location Estimation
2.4. Direction and Location Estimation using WiFi
3. SWiLoc System
3.1. System Overview


3.2. SWiLoc Design Considerations
4. Methodology
4.1. Workflow of SWiLoc
- The central server integrates a Network Time Protocol (NTP) to ensure time synchronization between the smartphone and all four receivers.
- 2.
- A user with a smartphone enters a correction zone and crosses the Line-of-Sight between a pair of WiFi transceivers at time . This crossing event is identified through CSI analysis, details of which are elaborated in our system implementation section.
- 3.
- Following CSI analysis, the server transmits to the smartphone, which continues to gather data from the motion sensor as the user walks. This data includes the user’s step count, the phone’s orientation (pitch, roll, and azimuth), and the timestamp for each step, all of which are processed and recorded by the smartphone.
- 4.
- The smartphone transmits the time and distance d to the server, where represents the time taken for the user to walk k additional steps after crossing the LoS and d denotes the distance traveled between and . The value of k is predetermined and d is calculated using the individual step length of each user.
- 5.
- 6.
- The server returns the calculated direction to the smartphone.
- 7.
- The phone receives the user’s walking direction and maps the phone’s orientation to the user’s walking direction during and by using Equation (4).
- 8.
- User continues walking, relying on the mapping formed in the previous step to infer the user’s walking direction from phone’s orientation.
- 9.
- Finally, the phone computes user’s location using the corrected walking direction. Phase 1 repeats when the user moves into a next correction zone.
4.2. Computation of Direction in Correction Zone
4.3. Phone-Based Direction Estimation
4.4. Location Estimation
4.4.1. Step Detection
4.4.2. Step Length Estimation
4.4.3. Location Calculation
5. System Implementation
5.1. Hardware Setup
5.2. Software Implementation
5.2.1. LoS Crossing Detection
5.2.2. CSI Fluctuation Count
5.2.3. Direction Calculation
5.2.4. Location Calculation
5.2.5. SWiLoc App Implementation
6. Evaluation
6.1. Testbed Setup
6.2. Performance Evaluation for Phase 1 Only
6.3. Performance Evaluation for SWiLoc
6.4. Sensitivity Analysis of SWiLoc
6.4.1. Impact of Varying LoS Crossing Locations
6.4.2. Impact of Distance d on Direction Accuracy
6.4.3. Impact of Direction Accuracy on Localization Accuracy
6.5. Discussion
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Farahsari, P.S.; Farahzadi, A.; Rezazadeh, J.; Bagheri, A. A survey on indoor positioning systems for IoT-based applications. IEEE Internet of Things Journal 2022, 9, 7680–7699. [Google Scholar] [CrossRef]
- Zafari, F.; Gkelias, A.; Leung, K.K. A survey of indoor localization systems and technologies. IEEE Communications Surveys & Tutorials 2019, 21, 2568–2599. [Google Scholar]
- Xue, W.; Qiu, W.; Hua, X.; Yu, K. Improved Wi-Fi RSSI measurement for indoor localization. IEEE Sensors Journal 2017, 17. [Google Scholar] [CrossRef]
- Sung, K.; Kim, H. Bayesian navigation system with particle filtering and dead reckoning in urban canyon environments. 2012 9th Annual IEEE Communications Society Conference on Sensor, Mesh and Ad Hoc Communications and Networks (SECON). IEEE, 2012, pp. 73–75.
- Spachos, P.; Plataniotis, K.N. BLE beacons for indoor positioning at an interactive IoT-based smart museum. IEEE Systems Journal 2020, 14, 3483–3493. [Google Scholar] [CrossRef]
- Mulloni, A.; Wagner, D.; Barakonyi, I.; Schmalstieg, D. Indoor positioning and navigation with camera phones. IEEE Pervasive Computing 2009, 8, 22–31. [Google Scholar] [CrossRef]
- Mohssen, N.; Momtaz, R.; Aly, H.; Youssef, M. It’s the human that matters: Accurate user orientation estimation for mobile computing applications. arXiv 2014, arXiv:1411.2156. [Google Scholar]
- Yu, N.; Zhan, X.; Zhao, S.; Wu, Y.; Feng, R. A precise dead reckoning algorithm based on Bluetooth and multiple sensors. IEEE Internet of Things Journal 2017, 5, 336–351. [Google Scholar] [CrossRef]
- Hussain, B.; Wang, Y.; Chen, R.; Cheng, H.C.; Yue, C.P. Lidr: Visible-light-communication-assisted dead reckoning for accurate indoor localization. IEEE Internet of Things Journal 2022, 9, 15742–15755. [Google Scholar] [CrossRef]
- Chen, H.; Li, F.; Wang, Y. SoundMark: Accurate indoor localization via peer-assisted dead reckoning. IEEE Internet of Things Journal 2018, 5, 4803–4815. [Google Scholar] [CrossRef]
- Yan, D.; Shi, C.; Li, T.; Li, Y. FlexPDR: Fully flexible pedestrian dead reckoning using online multimode recognition and time-series decomposition. IEEE Internet of Things Journal 2022, 9, 15240–15254. [Google Scholar] [CrossRef]
- Perul, J.; Renaudin, V. Learning individual models to estimate the walking direction of mobile phone users. IEEE Sensors Journal 2019, 19, 12306–12315. [Google Scholar] [CrossRef]
- Xiao, Z.; Wen, H.; Markham, A.; Trigoni, N. Robust indoor positioning with lifelong learning. IEEE Journal on Selected Areas in Communications 2015, 33, 2287–2301. [Google Scholar] [CrossRef]
- Lee, J.S.; Huang, S.M. An experimental heuristic approach to multi-pose pedestrian dead reckoning without using magnetometers for indoor localization. IEEE Sensors Journal 2019, 19. [Google Scholar] [CrossRef]
- Wang, Q.; Luo, H.; Xiong, H.; Men, A.; Zhao, F.; Xia, M.; Ou, C. Pedestrian dead reckoning based on walking pattern recognition and online magnetic fingerprint trajectory calibration. IEEE Internet of Things Journal 2020, 8, 2011–2026. [Google Scholar] [CrossRef]
- Mottakin, K.; Davuluri, K.; Song, Z. SWiDir: Enhancing Smartphone-based Walking Direction Estimation with Passive WiFi Sensing. 2023 IEEE 20th International Conference on Mobile Ad Hoc and Smart Systems (MASS). IEEE, 2023, pp. 599–605.
- Lin, Y.; Dong, W.; Li, B.; Gao, Y. TinyCSI: A Rapid Development Framework for CSI-based Sensing Applications. 2020 IEEE 17th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), 2020, pp. 549–557. [CrossRef]
- Gringoli, F.; Schulz, M.; Link, J.; Hollick, M. Free your CSI: A channel state information extraction platform for modern Wi-Fi chipsets. Proceedings of the 13th International Workshop on Wireless Network Testbeds, Experimental Evaluation & Characterization, 2019, pp. 21–28.
- Gu, F.; Khoshelham, K.; Shang, J.; Yu, F.; Wei, Z. Robust and accurate smartphone-based step counting for indoor localization. IEEE Sensors Journal 2017, 17, 3453–3460. [Google Scholar] [CrossRef]
- Vandermeeren, S.; Bruneel, H.; Steendam, H. Feature selection for machine learning based step length estimation algorithms. Sensors 2020, 20, 778. [Google Scholar] [CrossRef] [PubMed]
- Bo, F.; Li, J.; Wang, W. Mode-Independent Stride Length Estimation With IMUs in Smartphones. IEEE Sensors Journal 2022, 22, 5824–5833. [Google Scholar] [CrossRef]
- Roy, N.; Wang, H.; Roy Choudhury, R. I am a smartphone and i can tell my user’s walking direction. Proceedings of the 12th annual international conference on Mobile systems, applications, and services, 2014, pp. 329–342.
- Kang, W.; Han, Y. SmartPDR: Smartphone-based pedestrian dead reckoning for indoor localization. IEEE Sensors journal 2014, 15, 2906–2916. [Google Scholar] [CrossRef]
- Deng, Z.A.; Wang, G.; Hu, Y.; Wu, D. Heading estimation for indoor pedestrian navigation using a smartphone in the pocket. Sensors 2015, 15, 21518–21536. [Google Scholar] [CrossRef] [PubMed]
- Hu, Y.; Qian, F.; Yin, Z.; Li, Z.; Ji, Z.; Han, Y.; Xu, Q.; Jiang, W. Experience: Practical indoor localization for malls. MobiCom’22, 2022, pp. 82–93.
- Chen, Z.; Zhu, Q.; Soh, Y.C. Smartphone inertial sensor-based indoor localization and tracking with iBeacon corrections. IEEE Transactions on Industrial Informatics 2016, 12, 1540–1549. [Google Scholar] [CrossRef]
- Wu, D.; Zhang, D.; Xu, C.; Wang, Y.; Wang, H. WiDir: walking direction estimation using wireless signals. Proceedings of the 2016 ACM international joint conference on pervasive and ubiquitous computing, 2016, pp. 351–362.
- Qian, K.; Wu, C.; Yang, Z.; Liu, Y.; Jamieson, K. Widar: Decimeter-level passive tracking via velocity monitoring with commodity Wi-Fi. Proceedings of the 18th ACM International Symposium on Mobile Ad Hoc Networking and Computing, 2017, pp. 1–10.
- Qian, K.; Wu, C.; Zhang, Y.; Zhang, G.; Yang, Z.; Liu, Y. Widar2. 0: Passive human tracking with a single Wi-Fi link. Proceedings of the 16th Annual International Conference on Mobile Systems, Applications, and Services, 2018, pp. 350–361.
- Ahad, M.A.R.; Mahbub, U.; Rahman, T. Contactless human activity analysis; Vol. 200, Springer, 2021.
- Schafer, R.W. What is a Savitzky-Golay filter?[lecture notes]. IEEE Signal processing magazine 2011, 28, 111–117. [Google Scholar] [CrossRef]
- iutinvg. Simple android compass implementation, 2018.
- Pizarro, A.B.; Beltrán, J.P.; Cominelli, M.; Gringoli, F.; Widmer, J. Accurate ubiquitous localization with off-the-shelf IEEE 802.11 ac devices. Proceedings of the 19th Annual International Conference on Mobile Systems, Applications, and Services, 2021, pp. 241–254.
- Kotaru, M.; Joshi, K.; Bharadia, D.; Katti, S. Spotfi: Decimeter level localization using wifi. Proceedings of the 2015 ACM Conference on Special Interest Group on Data Communication, 2015, pp. 269–282.
- Rea, M.; Abrudan, T.E.; Giustiniano, D.; Claussen, H.; Kolmonen, V.M. Smartphone positioning with radio measurements from a single wifi access point. Proceedings of the 15th international conference on emerging networking experiments and technologies, 2019, pp. 200–206.
- Jiokeng, K.; Jakllari, G.; Tchana, A.; Beylot, A.L. When FTM discovered MUSIC: Accurate WiFi-based ranging in the presence of multipath. IEEE INFOCOM 2020-IEEE Conference on Computer Communications. IEEE, 2020, pp. 1857–1866.
- Chen, Z.; Zou, H.; Jiang, H.; Zhu, Q.; Soh, Y.C.; Xie, L. Fusion of WiFi, smartphone sensors and landmarks using the Kalman filter for indoor localization. Sensors 2015, 15, 715–732. [Google Scholar] [CrossRef] [PubMed]
- Sun, M.; Wang, Y.; Xu, S.; Cao, H.; Si, M. Indoor positioning integrating PDR/geomagnetic positioning based on the genetic-particle filter. Applied Sciences 2020, 10, 668. [Google Scholar] [CrossRef]
- Zhang, M.; Jia, J.; Chen, J.; Deng, Y.; Wang, X.; Aghvami, A.H. Indoor localization fusing wifi with smartphone inertial sensors using lstm networks. IEEE Internet of Things Journal 2021, 8, 13608–13623. [Google Scholar] [CrossRef]
- Halperin, D.; Hu, W.; Sheth, A.; Wetherall, D. Tool release: Gathering 802.11 n traces with channel state information. ACM SIGCOMM computer communication review 2011, 41, 53–53. [Google Scholar] [CrossRef]















| Approaches | 75th Percentile Error (in degree) | Median Error (in degree) |
|---|---|---|
| WiDir | 23 | 10 |
| WalkCompass | 14.2 | 8 |
| WiDar | 18 | 5 |
| SWiLoc (Phase 1) | 8.89 | 6 |
| Approaches | 80th Percentile Localization Error (m) | Base Sensing Method |
|---|---|---|
| UbiLocate | 2.2 | Passive |
| Spotfi | 6.0 | Passive |
| Spring | 3.7 | Passive |
| Fusic | 3.4 | Passive |
| Kalman-filter based | 4.6 | Active Fusion |
| PDRLoc | 6.71 | Active Fusion |
| Particle-filter based | 2.21 | Active Fusion |
| LSTMLoc | 2.36 | Active Fusion (Training-based) |
| SWiLoc (Phase 1 & 2) | 1.12 | Active Fusion & Passive, Training free |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).