简体   繁体   English

Android-活动识别缺乏准确性

[英]Android - Activity Recognition lack of accuracy

I'm testing the Android ActivityRecognition API and I used this tutorial . 我正在测试Android ActivityRecognition API,并且使用了本教程

In order to get more accuracy I'm checking the confidence, the common limit I saw is that the confidence must be >= 75. 为了获得更高的准确性,我正在检查置信度,我看到的常见限制是置信度必须> = 75。

My application is running on the background and the activity recognition is updated for some interval of time. 我的应用程序在后台运行,活动识别在一定时间间隔内更新。

But I've noticed some errors: 但是我注意到一些错误:

  1. When the application is on background and I'm using another application like whatsapp or facebook messenger It detects "IN_VEHICLE" 当应用程序在后台运行并且我正在使用其他应用程序(例如whatsapp或facebook Messenger)时,它会检测到“ IN_VEHICLE”

  2. When I'm actually driving it takes something like 10 minutes to detect I'm driving (I made it to notify the current activity me using Text to speech). 当我实际开车时,大约需要10分钟才能检测到自己在开车(我使用“文字转语音”功能来通知我当前的活动)。

I tried to change the interval parameter value of requestActivityUpdates but it didn't improve the accuracy.. 我试图更改requestActivityUpdates的时间间隔参数值,但并没有提高准确性。

Any suggestion on how to improve the accuracy? 关于如何提高准确性有什么建议吗?

OK. 好。 So for anyone who encountered this problem.. 因此对于遇到此问题的任何人..

I had an activity recognition using a background service so when the application is on bacgkround it should detect the user activity such : WALK, ON_VEHIClE and etc. But I noticed that when I launched another application and was typing a message, the movements of the device were translated into "ON_VEHICLE" by the activity recognition. 我使用后台服务进行活动识别,因此当应用程序在bacgkround上时,它应该检测到诸如WALK,ON_VEHIClE等用户活动。但是我注意到,当我启动另一个应用程序并键入消息时,设备的运动通过活动识别被翻译为“ ON_VEHICLE”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM