算上Android的使用accelometer步骤步骤、Android、accelometer

2023-09-06 16:03:41 作者:既然给不了,就放手

可能重复:结果  How以计数的步骤使用加速计结果数  Are有没有知名的算法来计算基于加速步骤?

您好,我已经开发Android应用程序。在一个模块我要创建一个计步器。现在,在这个阶段,我都数不过来走过的用户通过使用accelormeter的步骤。我已搜索互联网上,发现不同的方法,但没有该工作的。我曾尝试this

有没有人有一个想法如何实现我的目标是什么?任何帮助是AP preciated。

解决方案

的最简单的解决办法是有一个时间窗口和若干阈值。信号得到一个双波的形式,并且可以拆分一踏进几个部分。您可能需要有几个窗口和相应的阈值来识别一步。但请记住,如果有人上楼/下楼或跑步,或只是用不同的节奏走这个信号会发生变化。您将获得很大的变化,如果你真的要和几名与会者尝试。

阈值将设备之间有很大的不同。测量的频率也将产生影响。标准频率,允许一个以检测正常速度行走大约是10Hz的,有些设备使用20Hz的,如果你去在这个你会得到大量的数据和信息很少的。厂家做使用不同版本的加速度计,所以如果你的软件工程一部手机上,也不能保证它甚至相同型号的其他设备上运行。

我就从第一绘制你的信号开始。另外不要忘了,手机可以在口袋里的不同位置(除非你修复它以某种方式),这样的门槛值将浮动。所有临床计步器通常贴于腿一定的地位。

考虑使用单轴加速度计,而不是3轴,信号分析得到更轻松的开始。另外看看在傅立叶变换并的小波分析。

请参阅下面的图像获取的步行外观与3轴加速度计基本理念。我把它当在做类似的任务(步行是嘈杂位)。

这是走路的样子用单轴加速度计(又吵位)

Possible Duplicate: How to Count the Number of Steps Using the Accelerometer Are there any well known algorithms to count steps based on the accelerometer?

Android项目如何clean,求具体步骤

Hi i have developed android application. In one module I have to create a pedometer. Now at this stage I have to count the steps user walked by using accelormeter. I have search on internet and found different methods but none of that working. I have tried this

Does anyone have an idea how to achieve my goal? Any help is appreciated.

解决方案

The simplest solution would be to have a time-window and a number of thresholds. The signal gets a form of a double wave, and you can split a step into several parts. You may need to have several windows and corresponding threshold values to recognise one step. But keep in mind that this signal will change if someone is walking upstairs/downstairs or running or just walking with different pace. You will get great variability if you actually going to try it with several participants.

Threshold values will differ greatly between devices. Frequency of measurements will also have an impact. Standard frequency that allows one to detect walking with normal pace is about 10Hz, some devices use 20Hz, if you go over this you will get lots of data and little information. Manufacturers do use different versions of accelerometers, so if your software works on one phone, there is no guarantee it will work on the other device even of the same model.

I would start from plotting your signal first. Also don't forget that the phone can be in different positions in a pocket (unless you fix it somehow) so the threshold values will float. All clinical pedometers are usually affixed to the leg in a certain position.

Consider using mono-axial accelerometry instead of 3-axial, the signal analysis gets much more easier to begin with. Also take a look at the Fourier transformations and wavelet analyses.

See the image below to get a basic idea of how walking looks with a 3-axial accelerometer. I made it when was doing similar task (walking is the noisy bit).

And this is how walking looks with a mono-axial accelerometer (again noisy bits)