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

扶醉桌前 提交于 2019-12-08 09:52:30

问题


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.


回答1:


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

  • Human Activity Recognition from Accelerometer Data Using a Wearable Device

  • Activity Recognition from Accelerometer Data

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.



来源:https://stackoverflow.com/questions/23158090/user-activity-static-running-walking-driving-based-on-coremotion-data-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!