A Novel Walking Detection and Step Counting Algorithm Using Unconstrained Smartphones
<p>The 3D data derived by the gyroscope of a smartphone placed in three different positions. The horizontal axes denote time.</p> "> Figure 2
<p>The flow diagram of the walking detection and step counting algorithm.</p> "> Figure 3
<p>The spectrums of the angular velocities with respect to six different activities.</p> "> Figure 4
<p>The spectrums of the accelerations with respect to six different activities.</p> "> Figure 5
<p>The spectrums of the angular velocities produced by switching among different smartphone placement.</p> "> Figure 6
<p>The screenshots of two Android apps. (<b>a</b>) sensory data collection; (<b>b</b>) step counter using the proposed method.</p> "> Figure 7
<p>The walking detection results of one subject by using different methods in the first scenario.</p> ">
Abstract
:1. Introduction
2. Background
- The thresholding approach counts steps by judging whether sensory data satisfy some predefined thresholds that differ according to various devices held by different users at different positions. In [17], the authors used different states (e.g., not walking, possibly starting a step, stand stationary, etc.) and corresponding thresholds to calculate steps. In [18], the authors tied a sensor to the user’s ankle, and, as long as the acceleration exceeds a threshold, the step count will be increased by one accordingly. However, though the thresholding approach is simplest, it is really difficult to select one optimal threshold for all the cases, especially when smartphones are used in an unconstrained manner.
- The peak detection approach estimates steps based on the number of peaks given a sequence of sensory data, and does not rely on predefined thresholds, but suffers from interference peaks due to environmental noises and occasional disturbance. In [19], authors used low-pass filtering to remove interferences. In [20], the authors limited the time interval between two peaks to reduce misjudgment. In [21], the authors apply two filters to reduce jitters in accelerations. In [22], vertical acceleration data are used to infer steps for unconstrained smartphones, but sensor fusion is required to obtain vertical acceleration data.
- Similarly, the zero-crossing counting approach counts steps by detecting the number of zero points in sensory data, which is susceptible to disturbing sensory data and usually needs to filter and smooth original sensory data in advance. In [26], raw gyroscope data are filtered using a 6th order Butterworth filter for noise reduction. Both of the peak detection approach and zero-crossing approach search for the periods inherent in the cyclic nature of walking by using the magnitudes of accelerations or angular velocities, and can achieve better performance with e.g., vertical accelerations, but are degraded if the smartphone is not firmly attached to a human body.
- The autocorrelation approach detects cyclic periods directly in the time domain through evaluating autocorrelation [25], and is able to obtain good performance at relatively low costs in comparison with the frequency domain approaches. In [6,7], the horizontal components of accelerations and vertical component of angular velocities are respectively adopted for evaluating their autocorrelations and display good detection accuracy, but suffer from high computational costs for transforming reference systems.
3. Methodology
4. The Walking Detection Part
4.1. Sliding Time Window
4.2. Selecting Sensitive Axis
4.3. Spectrum Analysis
5. The Step Counting Part
6. Experimental Results
6.1. Setup
6.2. Experimental Results of Walking Detection
6.3. Experimental Results of Step Counting
7. Conclusions
8. Patents
Acknowledgments
Author Contributions
Conflicts of Interest
Abbreviations
3D | three-dimensional |
AC | the autocorrelation based method |
COTS | off-the-shelf |
CWT/DWT | continuous/discrete wavelet transforms |
FFT | fast Fourier transform |
FFT+ACC | the proposed method using accelerations |
GPS | global positioning system |
HMMs | hidden Markov models |
LDL | LeDongLi |
PD | the peak detection based method |
PDR | The pedestrian dead reckoning |
SR | spring rain |
STD_TH | standard deviation of accelerations |
STFT | short-term Fourier transform |
References
- Ficco, M.; Palmieri, F.; Castiglione, A. Hybrid indoor and outdoor location services for new generation mobile terminals. Pers. Ubiquitous Comput. 2014, 18, 271–285. [Google Scholar] [CrossRef]
- Zhao, H.; Huang, B.; Jia, B. Applying Kriging Interpolation for WiFi Fingerprinting based Indoor Positioning Systems. In Proceedings of the IEEE Wireless Communications and Networking Conference, Doha, Qatar, 3–6 April 2016; pp. 1822–1827. [Google Scholar]
- Zou, H.; Huang, B.; Lu, X.; Jiang, H.; Xie, L. A robust indoor positioning system based on the procrustes analysis and weighted extreme learning machine. IEEE Trans. Wirel. Commun. 2016, 15, 1252–1266. [Google Scholar] [CrossRef]
- Jia, M.; Yang, Y.; Kuang, L.; Xu, W.; Chu, T.; Song, H. An Indoor and Outdoor Seamless Positioning System Based on Android Platform. In Proceedings of the Trustcom/BigDataSE/ISPA, Tianjin, China, 23–26 August 2016; pp. 1114–1120. [Google Scholar]
- Capurso, N.; Song, T.; Cheng, W.; Yu, J.; Cheng, X. An Android-based Mechanism for Energy Efficient Localization depending on Indoor/Outdoor Context. IEEE Internet Things J. 2017, 4, 299–307. [Google Scholar] [CrossRef]
- Pan, M.S.; Lin, H.W. A Step Counting Algorithm for Smartphone Users: Design and Implementation. IEEE Sens. J. 2015, 15, 2296–2305. [Google Scholar] [CrossRef]
- Huang, B.; Qi, G.; Yang, X.; Zhao, L.; Zou, H. Exploiting cyclic features of walking for pedestrian dead reckoning with unconstrained smartphones. In Proceedings of the ACM International Joint Conference, Heidelberg, Germany, 12–16 September 2016; pp. 374–385. [Google Scholar]
- Racko, J.; Brida, P.; Perttula, A.; Parviainen, J.; Collin, J. Pedestrian Dead Reckoning with Particle Filter for handheld smartphone. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Alcala de Henares, Spain, 4–7 October 2016; pp. 1–7. [Google Scholar]
- Tian, Q.; Salcic, Z.; Wang, I.K.; Pan, Y. A Multi-Mode Dead Reckoning System for Pedestrian Tracking Using Smartphones. IEEE Sens. J. 2016, 16, 2079–2093. [Google Scholar] [CrossRef]
- Ustev, Y.E.; Incel, O.D.; Ersoy, C. User, device and orientation independent human activity recognition on mobile phones: Challenges and a proposal. In Proceedings of the ACM Conference on Pervasive and Ubiquitous Computing Adjunct Publication, Zurich, Switzerland, 8–12 September 2013; pp. 1427–1436. [Google Scholar]
- Paul, P.; George, T. An effective approach for human activity recognition on smartphone. In Proceedings of the IEEE International Conference on Engineering and Technology, Coimbatore, India, 20 March 2015; pp. 1–3. [Google Scholar]
- Xia, H.; Wang, Z. Human activity recognition based on accelerometer data from a mobile phone. Int. J. Commun. Syst. 2016, 29, 1981–1991. [Google Scholar]
- Kavanagh, J.J.; Menz, H.B. Accelerometry: A technique for quantifying movement patterns during walking. Gait Posture 2008, 28, 1–15. [Google Scholar] [CrossRef] [PubMed]
- Preece, S.J.; Goulermas, J.Y.; Kenney, L.P.; Howard, D.; Meijer, K.; Crompton, R. Activity identification using body-mounted sensors—A review of classification techniques. Physiol. Meas. 2009, 30, R1–R33. [Google Scholar] [CrossRef] [PubMed]
- Bisio, I.; Lavagetto, F.; Marchese, M.; Sciarrone, A. A smartphone centric-platform for remote health monitoring of heart failure. Int. J. Commun. Syst. 2015, 28, 1753–1771. [Google Scholar] [CrossRef]
- Shull, P.; Xu, J.; Yu, B.; Zhu, X. Magneto-Gyro Wearable Sensor Algorithm for Trunk Sway Estimation during Walking and Running Gait. IEEE Sens. J. 2017, 17, 480–486. [Google Scholar] [CrossRef]
- Alzantot, M.; Youssef, M. UPTIME: Ubiquitous pedestrian tracking using mobile phones. In Proceedings of the Wireless Communications and Networking Conference, Shanghai, China, 1–4 April 2012; pp. 3204–3209. [Google Scholar]
- Hu, W.Y.; Lu, J.L.; Jiang, S.; Shu, W. WiBEST: A hybrid personal indoor positioning system. In Proceedings of the IEEE Wireless Communications and Networking Conference, Shanghai, China, 7–10 April 2013; pp. 2149–2154. [Google Scholar]
- Ying, H.; Silex, C.; Schnitzer, A.; Leonhardt, S.; Schiek, M. Automatic Step Detection in the Accelerometer Signal. In Proceedings of the 4th International Workshop on Wearable and Implantable Body Sensor Networks (BSN 2007), Aachen Germany, 26–28 March 2007; Springer: Berlin/Heidelberg, Germany, 2007; Volume 13, pp. 80–85. [Google Scholar]
- Chen, G.L.; Fei, L.I.; Zhang, Y.Z. Pedometer method based on adaptive peak detection algorithm. J. Chin. Inert. Technol. 2015, 23, 315–321. [Google Scholar]
- Lan, K.C.; Shih, W.Y. Using smart-phones and floor plans for indoor location tracking. IEEE Trans. Hum. Mach. Syst. 2014, 44, 211–221. [Google Scholar]
- Yang, X.; Huang, B. An accurate step detection algorithm using unconstrained smartphones. In Proceedings of the 27th Chinese Control and Decision Conference, Qingdao, China, 23–25 May 2015; pp. 5682–5687. [Google Scholar]
- Kappi, J.; Syrjarinne, J.; Saarinen, J. MEMS-IMU based pedestrian navigator for handheld devices. In Proceedings of the 14th International Technical Meeting of the Satellite Division of the Institute of Navigation ION GPS, Salt Lake City, UT, USA, 11–14 September 2001. [Google Scholar]
- Ailisto, H.J.; Makela, S.M. Identifying people from gait pattern with accelerometers. In Proceedings of SPIE—The International Society for Optical Engineering, Orlando, FL, USA; SPIE: San Jose, CA, USA, 2005; Volume 5779, pp. 7–14. [Google Scholar]
- 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]
- Jayalath, S.; Abhayasinghe, N. A gyroscopic data based pedometer algorithm. In Proceedings of the International Conference on Computer Science & Education, Colombo, Sri Lanka, 26–28 April 2013; pp. 551–555. [Google Scholar]
- Godha, S.; Lachapelle, G. Foot mounted inertial system for pedestrian navigation. Meas. Sci. Technol. 2008, 19, 075202. [Google Scholar] [CrossRef]
- Goyal, P.; Ribeiro, V.J.; Saran, H.; Kumar, A. Strap-down Pedestrian Dead-Reckoning system. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Guimaraes, Portugal, 21–23 September 2011; pp. 1–7. [Google Scholar]
- Brajdic, A.; Harle, R. Walk detection and step counting on unconstrained smartphones. In Proceedings of the ACM International Joint Conference on Pervasive and Ubiquitous Computing, Zurich, Switzerland, 8–12 September 2013; pp. 225–234. [Google Scholar]
- Barralon, P.; Vuillerme, N.; Noury, N. Walk detection with a kinematic sensor: Frequency and wavelet comparison. In Proceedings of the IEEE International Conference of Engineering in Medicine and Biology Society, New York, NY, USA, 30 August–3 September 2006; pp. 1711–1714. [Google Scholar]
- Di̇ri̇can, A.C.; Aksoy, S. Step Counting Using Smartphone Accelerometer and Fast Fourier Trransform. Sigma 2017, 8, 175–182. [Google Scholar]
- Stephane. Wavelet Tour of Signal Processing; Academic Press, 1999; pp. 83–85. [Google Scholar]
- Nyan, M.N.; Tay, F.E.; Seah, K.H.; Sitoh, Y.Y. Classification of gait patterns in the time-frequency domain. J. Biomech. 2006, 39, 2647–2656. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.H.; Ding, J.J.; Chen, Y.; Chen, H.H. Real time accelerometer-based gait recognition using adaptive windowed wavelet transforms. In Proceedings of the 2012 IEEE Asia Pacific Conference on Circuits and Systems, Kaohsiung, Taiwan, 2–5 December 2012; pp. 591–594. [Google Scholar]
- Lester, J.; Hartung, C.; Pina, L.; Libby, R.; Borriello, G.; Duncan, G. Validated caloric expenditure estimation using a single body-worn sensor. In Proceedings of the 11th International Conference on Ubiquitous Computing, Orlando, FL, USA, 30 September–3 October 2009; Volume 40, pp. 225–234. [Google Scholar]
- Ho, N.H.; Truong, P.H.; Jeong, G.M. Step-Detection and Adaptive Step-Length Estimation for Pedestrian Dead-Reckoning at Various Walking Speeds Using a Smartphone. Sensors 2016, 16, 1423. [Google Scholar] [CrossRef] [PubMed]
- Pfau, T.; Ferrari, M.; Parsons, K.; Wilson, A. A hidden Markov model-based stride segmentation technique applied to equine inertial sensor trunk movement data. J. Biomech. 2008, 41, 216–220. [Google Scholar] [CrossRef] [PubMed]
- Mannini, A.; Sabatini, A.M. Accelerometry-Based Classification of Human Activities Using Markov Modeling. Comput. Intell. Neurosci. 2011, 2011, 647858. [Google Scholar] [CrossRef] [PubMed]
- Mannini, A.; Sabatini, A.M. A hidden Markov model-based technique for gait segmentation using a foot-mounted gyroscope. In Proceedings of the 2011 International Conference of the IEEE Engineering in Medicine and Biology Society, Embc, Boston, MA, USA, 30 August–3 September 2011; pp. 4369–4373. [Google Scholar]
- Pirttikangas, S.; Fujinami, K.; Nakajima, T. Feature Selection and Activity Recognition from Wearable Sensors. In Proceedings of the International Symposium on Ubiquitious Computing Systems, Seoul, Korea, 11–13 October 2006; pp. 516–527. [Google Scholar]
- Siirtola, P.; Roning, J. Recognizing Human Activities User-independently on Smartphones Based on Accelerometer Data. Int. J. Interact. Multimed. Artif. Intell. 2012, 1, 38–45. [Google Scholar] [CrossRef]
- Dargie, W. Analysis of Time and Frequency Domain Features of Accelerometer Measurements. In Proceedings of the International Conference on Computer Communications and Networks, San Francisco, CA, USA, 3–6 August 2009; pp. 1–6. [Google Scholar]
- Henriksen, M.; Lund, H.; Moe-Nilssen, R.; Bliddal, H.; Danneskiod-Samsøe, B. Test-retest reliability of trunk accelerometric gait analysis. Gait Posture 2004, 19, 288–297. [Google Scholar] [CrossRef]
Symbol | Daily Activities |
---|---|
A | Standing with the smartphone in the trousers’ front pocket |
B | Taking out the smartphone from the trousers’ front pocket |
C | Standing and holding the smartphone in the hands |
D | Walking on the flat ground with the smartphone in the swinging hand |
E | Climbing the stairs with the smartphone in the swinging hand |
F | Standing and typing |
G | Walking on the flat ground with the smartphone in the trousers’ front pocket |
H | Climbing stairs with the smartphone in the trousers’ front pocket |
I | Sitting down with the smartphone in the hand |
Symbol | Different Walking Activities |
---|---|
J | Continuously walking on the flat ground with the smartphone in the swinging hand |
K | Continuously walking on the flat ground with the smartphone in the trousers’ front pocket |
L | Intermittently walking on the flat ground with the smartphone in the swinging hand |
M | Intermittently walking on flat ground with the smartphone in the trousers’ front pocket |
N | Continuously climbing the stairs with the smartphone in the swinging hand |
O | Continuously climbing the stairs with the smartphone in the trousers’ front pocket |
Method | Frequency/Time | Window Size (s) | Sliding Distance (s) | Threshold |
---|---|---|---|---|
Proposed | Frequency | 10 | ||
FFT+ACC | Frequency | 22 | ||
STFT | Frequency | 3 | 20 | |
STD_TH | Time | |||
AC | Time | [] | [] | |
PD | Time | [] | ||
FA | Frequency | [] |
NO. | Proposed | FFT+ACC | STD_TH | STFT | ||||
---|---|---|---|---|---|---|---|---|
P (%) | R (%) | P (%) | R (%) | P (%) | R (%) | P (%) | R (%) | |
1 | ||||||||
2 | ||||||||
3 | ||||||||
4 | ||||||||
5 | ||||||||
6 | ||||||||
7 | ||||||||
8 | ||||||||
Average |
Method. | J | K | L | M | N | O | Average |
---|---|---|---|---|---|---|---|
A (%) | A (%) | A (%) | A (%) | A (%) | A (%) | A (%) | |
Proposed | |||||||
AC | |||||||
PD | |||||||
FA | |||||||
Pacer | |||||||
Spring Run | |||||||
LeDongLi | |||||||
Average |
© 2018 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/).
Share and Cite
Kang, X.; Huang, B.; Qi, G. A Novel Walking Detection and Step Counting Algorithm Using Unconstrained Smartphones. Sensors 2018, 18, 297. https://doi.org/10.3390/s18010297
Kang X, Huang B, Qi G. A Novel Walking Detection and Step Counting Algorithm Using Unconstrained Smartphones. Sensors. 2018; 18(1):297. https://doi.org/10.3390/s18010297
Chicago/Turabian StyleKang, Xiaomin, Baoqi Huang, and Guodong Qi. 2018. "A Novel Walking Detection and Step Counting Algorithm Using Unconstrained Smartphones" Sensors 18, no. 1: 297. https://doi.org/10.3390/s18010297