加速度计 - 运动模式识别(iphone) [英] accelerometer - Movement pattern recognition (iphone)
问题描述
我必须找到解决问题的最佳方法,以便尝试识别身体动作 - 将iPhone放在口袋里 - 比如哇哇,停下来,左/右转,坐着。
I have to find the best approach for tackling a problem for trying to recognize physical movements - with an iPhone in a pocket - like waling, stopping, turning left/right, sitting.
我正在考虑只是试探性地找到与每个动作相对应的数据,然后根据这个数据(带有一个阈值)检查传入的值,看看发生了什么。
当然,这是一个非常粗略的方法,所以也许使用支持向量机
方法,但这似乎太复杂了我必须开发的时间。
I was thinking on just heuristically find the data corresponding to each action, then to check the incoming values against this data (with a threshold) and see what's happening. That's a very rough approach, of course, so maybe using something like the Support Vector Machine methods, but this seems too complicated for the amount of time I have to develop this.
你会在这里建议哪种方法?
Which approach would you suggest here?
推荐答案
行走:对重力方向信号做一个fft。测量其以不同速度行走的频率响应,然后设置一个简单的阈值。
Walking: Do an fft on the gravity direction signal. Measure its frequency response for walking at different speeds and then set a simple threshold.
停止:如果平均功率即信号中的总能量在最后几秒内降至某个阈值以下,您可以说用户已停止。
Stopping: if the average power i.e. total energy in the signal over the last few seconds drops below a certain threshold then you can say the user has stopped.
左转,右侧:使用重力矢量和陀螺仪旋转速度矢量,以确定用户是顺时针还是逆时针旋转
Turning left,right: Use the gravity vector and the gyroscopes rotation speed vector to determine whether the user is rotating clockwise or counterclockwise
坐着:这将很难确定,但如果你是幸运的是,SVM会找到合适的模式。
Sitting: This will be very hard to determine but if youre lucky the SVM will find the right pattern.
上面的每一项都可以给予加权,然后你必须找到一种获得训练数据的好方法来训练你的SVM。可能将来自手机的信号流式传输到网络服务器,同时手动记录用户的动作。
Each of the above can be given a weighting and then you will have to find a good way to obtain training data to train your SVM. Maybe stream the signals from the phone to a webserver and simultaneously record the users motions by hand.
你最好的起点是苹果示例代码:CoreMotionTeapot
Your best starting point is Apples Sample code: CoreMotionTeapot
或者你可以分析GPS信号。这将为您提供一种非常好的方法来确定用户更大规模的动作,如步行/移动或更改航向等。
Alternatively you could analyze the GPS signal. This will give you a very good way to determine the users larger scale motion like walking/moving or changing heading etc.
这篇关于加速度计 - 运动模式识别(iphone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!