Pedestrian Status is a step detection app for the iPhone written with Swift.
It merely depends on the accelerometer to analyse it's users acceleration and convert it into steps taken.
Pedestrian Status mainly uses the step detection algorithm acquired from this research(PDF via RG).
The algorithm provided in the above research categorises the user's acceleration into three statuses: static, slow walking or fast walking. From there on, once the category is known, it can be concluded that:
- if slow walking, then count as one step,
- if fast walking, then count as two steps.
It’s well known that Pedestrian status is not without it’s flaws. Currently, the iPhone running Pedestrian Status should be hold a little above than the waistline level and parallel to the floor. e.g.:
Also sharply moving the hand will result in additionally detected steps as it will be detected as acceleration enough to be classified as a step.
Pedestrian Status is a proof-of-concept. Therefore such shortcomings as explained above are present. In a possible future version, it may overcome those shortcomings and provide a much better step detection.
Just download the project and run it on an iPhone.
Since neither the project is not configured nor the algorithm is not tested running on an iPad, such a scenario's results are currently unknown and left for the curious one's to test. 😏
- Xcode 9 beta 1 or higher
- Swift 4.0
- ARC
- data recording
- threshold training on-the-go
- unnecessary hand movement recognition