Step detection via the accelerometer running on iOS, written with Swift.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Pedestrian Status.xcodeproj
Pedestrian Status
Pedestrian StatusTests
Pedestrian StatusUITests
.gitignore
README.md

README.md

Pedestrian Status

Pedestrian Status is a step detection app written with Swift. It does so by analysing the acceleration of it’s user while he/she is holding his/her iPhone.

Description

Pedestrian Status uses the step detection algorithm acquired from this research(PDF via RG).

The above researches algorithm provides three statuses: static, slow walking or fast walking. If it’s a slow walking pattern, the step count will be incremented by 1. If it’s fast walking, then it will be incremented by 2.

It’s known that Pedestrian status is not without it’s flaws. Currently, the iPhone running Pedestrian Status should be hold at the waistline level and parallel to the floor. Like below:

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 future version, it will probably be much more agile.

Usage

Just download the project and run it on an iPhone.

An iPad will also work but it’s more appropriate to move with an iPhone.

Requirements

  • Xcode 9 beta 1 or higher
  • Swift 4.0
  • ARC

Future Work

  • recording sensor data
  • dynamic acceleration threshold calculation
  • recognising unnecessary hand movements