Bhumeshwer katre
Bhumeshwer katre

Reputation: 4671

User Activity Static/running/Walking/Driving based on CoreMotion data only

How can we detect user is driving/walking/running/static with CoreMotion data. We can get user activity in iPhone 5s using CMMotionActivityManager. But how to get in lower version devices.

With the help of CLLocationManager I can get the device speed and based on speed I can decide the user state, which drain battery life of device.

Is there any possibility to detect Device State based on Core motion only?

Some application like like Place me app does, It detect user activity based on Coremotion data.

Upvotes: 0

Views: 1770

Answers (1)

Ali
Ali

Reputation: 58461

It is nice Machine Learning task. You need to

  1. collect lots of data and annotate it (label each sample, whether it is driving/walking/running/static),

  2. design a feature vector,

  3. then train an appropriate classifier.

The details really wouldn't fit here, I suggest googleing "accelerometer activity recognition". In particular, among the first hits I find

quite readable, relevant and useful.

The bad news is that it is more work to implement it than you probably think. Much more work. :(

In any case, I hope this answer helps a little bit.

Upvotes: 1

Related Questions