Abstract
In indoor localization scenarios, a sheer coordinate with respect to a basis is insufficient to indicate the users’ situation due to a lack of information about landmarks distributed in the environments. To extract landmarks’ information manually, however, is inefficient and thus vulnerable to changes of the environments. Simultaneous localization and mapping can solve the localization and landmarks’ information extracting problems. This paper presents WalkSLAM, a SLAM solution that estimates both the path taken by the user and the locations of Wi-fi devices in the indoor space, using a smartphone. This solution extends the previous work by introducing human walking patterns into the specific SLAM problem. Experiments demonstrate that the improvement consists of increased efficiency of the particle filter, and hence, of the overall algorithm, and a better estimation of the user’s location and path.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
In the last decades, both military and civil have seen increasing need for efficient and accurate location-based service. Location-based service, as its name indicates, controls features and provides functions regarding location data of the users. Thus, the basis of location-based service is to provide a location estimate of the user according to the measurements of devices distributed in the environment taken by the user’s device, which requires mapping measurements into exact locations.
In order to provide massive location-based service in large-scale indoor scenario both efficiently and economically, the idea of using a smartphone to run SLAM algorithm while the user carries it and walk around the indoor [1,2,3] space comes out and draws researchers’ immediate attention. But the inaccurate nature of smartphone sensors will lead to an undesirable uncertainty of both the location estimates and landmark estimates.
1.1 Related Work
Previous work has addressed this accuracy issue of smartphone SLAM in different levels. SmartSLAM [3] used path-smoothing model and building orientation model to supervise the heading orientation of the user in order to smooth the noisy path estimate; simultaneously localization and configuring [1] used fixed step length model and EKF to overcome the unreliability of motion measurements. However, fixed step length is still not optimal. Some researches also focused on elimination of Gaussian noise in a RSSI-based localization scenario [4].
This paper presents WalkSLAM, a SLAM solution runs on smartphones. WalkSLAM contributes previous work by adding human walking pattern elements into the SLAM algorithm, both on prior stage and posterior stage. The evaluation on live data shows a noticeable improvement on the path estimation and landmark estimation.
The rest of the paper is organized as follows: In Sect. 2, the problem statement and the model are discussed. In Sect. 3, we introduce a new SLAM algorithm named WalkSLAM. The implantation of WalkSLAM and some refining maneuvers are introduced shortly after. In evaluation section, live data is analyzed and the average errors of both path estimation and landmark estimation are discussed separately with a comparison between WalkSLAM solution and common FastSLAM solution.
2 Problem Definition and Modeling
The original aim of the research is to map an indoor environment using a smartphone without any prior information from the environment. The smartphone is capable of motion sensing and RSSI observing, and in a common SLAM system, the motion sensing ability guarantees the control info of a robot, where location estimation can be extracted, and the RSSI observing achieved by Wi-fi module inside the smartphone can obtain observation of the accessing points working as the landmarks. After this thought, a hidden Markov model [5,6,7] can be applied to our scenario.
Figure 1 represents a hidden Markov model. The poses make the core Markov chain, and in our situation, they are the locations on the path during the navigation; the state transition means a step of the user is taken. Because we do not know the actual coordinate of the locations, they become the hidden states.
Now, we can effectively describe our problem as a SLAM problem. The poses are the user’s location, and the current pose will be denoted \( s_{t} \). Poses evolve according to the motion model [7]:
Among which \( s_{t} \) is the current pose, \( s_{t - 1} \) the previous, and \( u_{t} \) the current control. The control consists of motion measurements from the device, which in our case is the smartphone. After initializing each pose, to map the surroundings, the device senses landmarks using sensors. Sensor observations follow the measurement model:
where \( \theta \) is a set consisting of all the landmarks. Now, the SLAM problem can be formulated. SLAM problem is to make a refined estimation of all landmarks \( \theta \) and all poses \( s^{t} = \left\{ {s_{0} ,s_{1} ,s_{2} , \ldots } \right\} \) along the user’s path from the controls and observations, which can be described as \( p(s^{t} ,\theta |z^{t} ,u^{t} ) \). The controls, as stated above, are the motion measurements from motion sensors on the phone, which indicates a step’s heading and orientation. After an initialization of the starting pose, given previous and current control, an estimate of the current state can be calculated. However, the motion sensors are alarmingly inaccurate; thus, in further discussion, we decide to add some prior information into the controls for better performance.
3 WalkSLAM
3.1 Particle Path Sampling
With the control and the observation of our SLAM system defined, we can present our SLAM problem solution in the following steps with implantation details. As shown in Fig. 2, the algorithm begins with the path particle sampling after the input of motion measurements \( u_{t} \) from motion sensors. Due to the nature of human walking pattern, we do not sample the pose \( s_{t} \) directly but rather estimate the transition from \( s_{t - 1} \) to \( s_{t} \) which is denoted \( \overrightarrow {{(s_{t} - s_{t - 1} )}} \).
The transition can be described as a combination of the fixed step length and the heading. For the filtering of the heading direction, instead of the path-smoothing method, we present a new filtering model:
The rationale behind this model is that first the motion sensor is pretty noisy and unreliable according to previous reports [1, 8], and because of that, in some degree we can safely ignore small direction changes without worrying too much about losing the details of heading since Monte Carlo method involved in the sampling phase can guarantee the coverage of most minor direction changes.
After the path sampling, we get a set of path particles, and according to our design, the next step should be landmark estimation, where we initialize and update the landmarks’ locations using the observations. However, since our observation is the 1D RSSI measurements, a single observation is not enough to initialize a landmark’s location. Thankfully this problem can be solved using the range-only localization model presented in [9], and the major requirement of this method is several consecutive poses and relative observations.
The updating of landmarks is guided by the observations, so we need a filter to refine the landmark location, in this situation a 2D coordinate, with 1D RSSI as the observations. An extended Kalman filter can be applied to this situation, using the method mentioned in [1].
3.2 Importance Weight Updating
In robotic SLAM systems, the only indicator of the reliability of a particle is how the observation matches up the landmark estimations, and it is called importance weight factor:
However, in our WalkSLAM scenario, another factor should be taken into consideration to evaluate the degree of the particle path fitting human walking pattern [10], specifically the walk ratio indicator [11]. For convenience, we call the original importance weight factor observation factor (OF), and the walk ratio indicator walk factor (WF). Then, the new weight becomes:
As the matter of implantation, for the calculation of OF, we can use the conclusion from [7]:
Since we are always sure about the identity of each RSSI scan result, the equation can be simplified to:
Then, we can calculate OF using the Gaussian function:
For the calculation of WF, since the proposal distribution is made to be a Gaussian distribution, according to the Bayesian theory we can simplify the equation as:
For implementation purpose, we first calculate the average WR of the path particle,
Then, through a Gaussian function, we can get the WF of the particle as:
where \( d_{k} \) is the step length and \( \Delta_{k} \) the time that step costs. \( R \) is the average walk ratio of a healthy man, and \( \delta_{\text{WR}} \) the variance of walk ratio.
To sum up, the new weight updating model becomes:
Then, for further use, we normalize the weights:
3.3 Resampling Particles
After getting the weights of the particle set, we now resample the particle set due to the weight of each particle. To evaluate the effectiveness of a particle set using the weight factor, the effectiveness index is introduced:
As shown in Fig. 2, every time the value of \( N_{\text{eff}}^{t} \) gets low enough, the resampling step is triggered; this way we can resample only when we need to, to effectively use all the particles and lower the time consumption.
4 Implementation and Evaluation
In the test, we choose a typical indoor scenario which is a floor of office with a long corridor. The longest part of the corridor is 47.3 m at length, and the overall corridor is 3 m at width. Thirteen access points were accessible along the corridor. A live test in comparison with the ground truth is given in Figs. 3 and 4. Since our goal is to estimate both the path and the landmarks, the localization biases of them are evaluated.
Considering the additive nature of the pedometer bias, tests were run on different lengths to indicate the difference made by navigating different lengths and the results are given in Table 1, although due to the variance of step length the tests can only be grouped by a range of distance they cover.
We can still conclude from the results that for a short run of the WalkSLAM, the average localization error falls below 3.0 m, which is good enough for a room-level localization scenario. Another essential factor of the evaluation is the localization error of the landmarks. In the three long runs, 12 access points are all observable; thus, we use them to calculate the error.
To better demonstrate the overall performance when localizing the landmarks, we take each landmark estimation in each run as an individual landmark estimation and use the cumulative distribution function to bring out the result. When compared to a common FastSLAM run with an S1 model applied and one without, as shown in Fig. 5, the improvement in performance of WalkSLAM is quite noticeable.
5 Conclusion
In this research, a simultaneous localization and mapping solution that focuses on running on smartphones was developed. Compared to traditional SLAM solutions, in this new solution, the human walking pattern was considered into the algorithm, with a new sampling model and an advanced weight updating model presented, and the implantation methods given in detail. Six live tests were run in a typical indoor environment. The result indicated that the accuracy could fit a room-level localization scenario and the landmark estimation performance of WalkSLAM is noticeably better than that of a traditional solution.
References
Bulten W, Van Rossum AC, Haselager WFG. Human SLAM, indoor localisation of devices and users. In: 2016 IEEE first international conference on internet-of-things design and implementation (IoTDI). IEEE; 2016. p. 211–22.
Ferris BD, Fox D, Lawrence N. WiFi-SLAM using Gaussian process latent variable models. Science. 2007;7:2480–5.
Shin H, Chon Y, Cha H. Unsupervised construction of an indoor floor plan using a smartphone. IEEE Trans Syst Man Cybern Part C Appl Rev. 2012;42(6):889–98.
Patri A, Rath SP. Elimination of Gaussian noise using entropy function for a RSSI based localization. In 2013 IEEE second international conference on image information processing (ICIIP-2013). IEEE; 2013. p. 690–4.
Arulampalam MS, Maskell S, Gordon N, Clapp T. A tutorial on particle filters for online nonlinear/non-Gaussian Bayesian tracking. IEEE Trans Signal Process. 2002;50(2):174–88.
Dellaert F, Fox D, Burgard W, Thrun S. Monte Carlo localization for mobile robots. In: Proceedings 1999 IEEE international conference on robotics and automation (Cat. No.99CH36288C), vol. 2; May, 1999. p. 1322–8.
Montemerlo M, Thrun S, Koller D, Wegbreit B. FastSLAM: a factored solution to the simultaneous localization and mapping problem. In: Proceedings of 8th national conference on artificial intelligence/14th conference on innovative applications of artificial intelligence, vol. 68, issue 2; 2002. p. 593–8.
Zhao N. Full-featured pedometer design realized with 3-axis digital accelerometer. Analog Dialogue. 2010;44:1–5.
Olson E, Leonard JJ, Teller S. Robust range-only beacon localization. IEEE J Oceanic Eng. 2006;31(4):949–58.
Sekiya N, Nagasaki H. Reproducibility of the walking patterns of normal young adults: test-retest reliability of the walk ratio(step-length/step-rate). Gait Posture. 1998;7(3):225–7.
Rota V, Perucca L, Simone A, Tesio L. Walk ratio (step length/cadence) as a summary index of neuromotor control of gait: application to multiple sclerosis. Int J Rehabil Res. 2011;34(3):265–9.
Acknowledgments
This paper is supported by National Natural Science Foundation of China (61571162), Ministry of Education—China Mobile Research Foundation (MCM20170106).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Ma, L., Fang, T., Qin, D. (2020). WalkSLAM: A Walking Pattern-Based Mobile SLAM Solution. In: Liang, Q., Liu, X., Na, Z., Wang, W., Mu, J., Zhang, B. (eds) Communications, Signal Processing, and Systems. CSPS 2018. Lecture Notes in Electrical Engineering, vol 516. Springer, Singapore. https://doi.org/10.1007/978-981-13-6504-1_160
Download citation
DOI: https://doi.org/10.1007/978-981-13-6504-1_160
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-6503-4
Online ISBN: 978-981-13-6504-1
eBook Packages: EngineeringEngineering (R0)