Google Fit应用程序如何在不消耗电量的情况下始终测量步数? [英] How is it possible that Google Fit app measures number of steps all the time without draining battery?

查看:246
本文介绍了Google Fit应用程序如何在不消耗电量的情况下始终测量步数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装时, Google健身应用会采取措施您步行或跑步的持续时间,以及始终的步数。然而,奇怪的是,使用它似乎并没有耗尽电池。其他应用程序,如移动似乎记录了很多步骤相当准确地声明它使用大量的电力,因为它不断地监控GPS和加速度计。



我想象几种可能性:


  • 每分钟唤醒一次电话,然后分析传感器几秒钟,然后再次睡眠。但是,看起来记录相当精确到一分钟,所以醒来必须频繁。

  • 实际上一直打开加速度计,并且只在加速度计测量数据后才分析它缓冲区已满。不过,我认为加速度计有一个小缓冲区来存储最新的测量结果。

  • 使用GPS来估算步数,而不是实际计算它。然而,情况并非如此,因为它甚至可以在室内使用。



该应用程序仍然感觉不可思议

解决方案

感谢您提出这个问题!

电池是我们最关心的问题之一,我们努力优化Google Fit的电池使用情况并提供神奇的体验。
Google Fit使用混合传感器(加速度计,步数计数器,重要运动计数器),机器学习和启发式技术来获取正确的数据。我们的算法非常类似于您的第一个选项以及一点魔法。



我们定期轮询加速度计并使用机器学习和启发式来正确识别活动和持续时间。
对于带有硬件步计数器的设备,我们使用这些步计数器来监视步数。对于较旧的设备,我们使用检测到的活动来预测适当的步骤数量。
我们的算法将这些活动,步骤以及有时候的位置合并,以进行相关并进一步提高准确性。我们不调查GPS来估计步骤或检测活动。

p>

- Google健身小组的工程师。


The Google Fit app, when installed, measures the duration you are walking or running, and also the number of steps all the time. However, strangely, using it does not seem to drain the battery. Other apps like Moves which seems to record number of steps pretty accurately declares that it uses a lot of power because of it constantly monitoring the GPS and the accelerometer.

I imagine several possibilities:

  • Wakes up the phone every minute or so, then analyses the sensors for a few seconds and then sleeps again. However it seems that the records are pretty accurate to the minute, so the waking up must be frequent.
  • Actually turns on the accelerometer all the time, and analyzes it only after the accelerometer measurement data buffer is full. However I think the accelerometer has a small buffer to store the latest measurements.
  • Use GPS to estimate the number of steps instead of actually counting it. However this should not be the case, since it works even indoors.

The app still feels magical. Counting steps the whole time without perceptible battery drain.

解决方案

Thanks for asking this question!

Battery is one of our top most concerns and we work hard to optimize Google Fit's battery usage and provide a magical experience. Google Fit uses a mix of sensors(Accelerometer, Step counter, Significant Motion counter), Machine Learning and heuristics to get the data right. Our algorithm is pretty similar to your 1st option plus a little bit of magic.

We periodically poll accelerometer and use Machine Learning and heuristics to correctly identify the activity and duration. For devices with hardware step counters, we use these step counters to monitor step counts. For older devices, we use the activity detected to predict the right number of steps. Our algorithms merge these activities, steps and sometimes location to correlate and further increase accuracy.

We do not poll GPS to estimate steps or detect activities.

-- Engineer on Google Fit Team.

这篇关于Google Fit应用程序如何在不消耗电量的情况下始终测量步数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆