加速度计 - 运动模式识别 (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?
推荐答案
Walking:对重力方向信号执行 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.
你最好的起点是 Apples 示例代码: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屋!