Questions tagged [activity-recognition]
Activity recognition tries to detect the user's current physical activity, such as walking, driving, or standing still.
191
questions
0
votes
1
answer
16
views
Successfully registered a BroadcastReceiver to requestActivityTransitionUpdates, but onReceive never called
I am currently working on an app that needs to know whether or not the user is currently still or not. I have followed the codelab tutorial from Android (as well as other tutorials): https://developer....
0
votes
0
answers
20
views
Q. How to apply the 'ActivityRecognitionClient' to React-Native?
friends!
I'm trying to add the function that activity-recognition for my team project with React Native.
However, since I'm very newbie to RN, I don't know How to apply the Android system to RN.
...
0
votes
1
answer
79
views
Permission is null error for ACTIVITY_RECOGNITION permission 'n React Native
I try to ger permission from React Native app via PermissionsAndroid.
It's my request:
await PermissionsAndroid.requestMultiple([PermissionsAndroid.PERMISSIONS.ACTIVITY_RECOGNITION, some other ...
0
votes
0
answers
20
views
Multi-Class imbalance with a 3D array
I have created a dataset for human activity recognition with accelerometer data (x,y,z) and HR (bpm). I have extracted the data into 2.5 seconds (20hz , equal to 50 samples), but there is class ...
2
votes
1
answer
237
views
BroadcastReceiver not receiving any activity recognition broadcast
My main activity registering broadcast for Activity Recognition but and don't see any calls to Broadcast Receiver's onReceive method. I am not able to figure out why it's not working as expected.
I am ...
0
votes
0
answers
32
views
Is it possible to detect user's activity/motion on a web app?
I am making a fitness-related web app and want the ability to detect various activities like cycling, running, walking, etc via a browser on a mobile device.
I understand there are CMMotionActivity ...
2
votes
1
answer
142
views
Activity Recognition in Background using Flutter
I want to implement activity recognition in background that means if user close the application even then it'll listening the activity recognition states whether it is in IN VEHICLE, STILL or in which ...
2
votes
0
answers
119
views
Google Activity Recognition in background
I'm working on the app which makes actions based on user activity. It uses Google Activity Recognition (AR) for that purpose. But AR updates stop when app goes to background probably. It happens not ...
3
votes
0
answers
144
views
ActivityRecognition with workmanager for background task
I am using IntentService before to make my ActivityRecognition work in the background for location updates but since Android 9+ IntentService deprecated and it's no longer working in recent Android ...
1
vote
1
answer
85
views
Android Sleep API - not getting data
I use the Sleep API in my Kotlin Android app. To get sleep data, I am following these steps:
Getting the android.permission.ACTIVITY_RECOGNITION permission from the user
Successfully registering to ...
2
votes
1
answer
159
views
Getting 'ActivityRecognitionResult.extractResult(intent)' as null while trying to initiate Activity Recognition in android
I've been trying to get the data from the 'ActivityRecognitionResult.extractResult(intent)' but always getting null. I'm using 'JobIntentService'. And I'm using Sampling API of the activity ...
1
vote
1
answer
303
views
Android ActivityRecognition and IMMUTABLE PendingIntent
I am working with Android ActivityRecognition api.
When setting the PendingIntent flag to be PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE (as recommended?) the received intent ...
1
vote
0
answers
58
views
Poor accuracy in human activity recognition
I'm trying to do human activity recognition using CNN and accelerometer.
This is the balanced dataset i'm using for training:
balanced_data['activity']. value_counts()
Walking 3555
Jogging ...
0
votes
0
answers
39
views
skeleton based action recognition using lstm
structure of panda data frame
I am trying to do activity recognition based on skeleton data (.BVH file) using lstm model.
I have converted each .bvh file to .csv file and append it into single panda ...
0
votes
1
answer
452
views
Downsample the Time Series data of Accelerometer and Gyroscope
I have time series data for Physical Activities. The data was recorded at 50hz frequency. But now I want to down sample the data at 20hz because I want to train and predict model at 20hz.
Is there an ...
0
votes
1
answer
22
views
Observing varying model performance in different machines while training an activity recognition model
I am finding that my model has different performance (train and validation accuracy) on two separate machines (Laptop and PC). The code and data used are the same.
So:
Train and Validate on Laptop (...
1
vote
0
answers
287
views
Step counter not working on Samsung phones which dont have Step sensors
i am developing simple step counter app
app works on almost devices but problem is app not working on some Samsung phones and other phone
which don't have step counter sensor. I don't want to use ...
1
vote
0
answers
87
views
Android Activity Recognition works really bad
I am trying to detect a simple state of "walking" vs. "still" on Android. For this, I have implemented the ActivityRecognitionClient following the official Google codelab.
...
1
vote
2
answers
125
views
android service always running and notify user when needed
I need a service to make a notification whenever the user is in a moving car.
I use ActivityRecognition to find out when the user is in a car.the issue is I need my service to run even when the app is ...
1
vote
1
answer
266
views
How to use GAN for Generating Human Activity Recognition Data?
Currently, I am working on Human Activity Recognition using wearable sensor data (i.e., accelerometer, gyroscope, etc). Now, I am trying to generate some synthetic sensor data from accelerometer (xyz) ...
2
votes
1
answer
2k
views
Not able to stop listening to stream in flutter
I'm using a library for activity recognition in flutter which creates a stream for activity recognition data that comes from the sensors of the phone, I'm able to start stream but not able to stop it ...
0
votes
1
answer
77
views
Discussion about Transfer Learning with Keras
I'm currently working with transfer learning on a sensor based activity dataset and I tried out two methods to transfer a model that was trained on another dataset before.
The first way of ...
3
votes
2
answers
4k
views
Android ACTIVITY RECOGNITION permission missing
I am targeting SDK 29, and activity transition API works perfectly on devices running 29 (ie Android 10). According to the docs, if you are targeting SDK 29, but running on a lower SDK, the permission ...
2
votes
1
answer
752
views
Android ACTIVITY_RECOGNITION on targetAPI = 29 and device's Android ver. < 10
My question is similar to Android 10 request permission for ACTIVITY_RECOGNITION in a way that I also do not have a permission dialog showing on a device, but conditions are different.
My app is ...
0
votes
1
answer
667
views
Transfer learning for video classification
How can I use pre-trained models to train video classification model? My dataset shape is (4000,10,150,150,1), I try to classify human action recognition with Conv2D TimeDistributed.
I can train ...
1
vote
0
answers
58
views
How to set up dependencies to get access to the ActivityRecognition API?
According to this link (Detect when users start ou end an activity), I have added the com.google.android.gms:play-services-location:17.0.0 library to use the ActivityRecognition API in my app. The ...
1
vote
0
answers
128
views
Unable to receive activity transition recognition callbacks
I'm trying a simple thing, but unfortunately, I'm unable to achieve it. I want to receive activity transition recognition callbacks from Android SDK 26 - 29:
I have registered the following ...
1
vote
0
answers
118
views
BroadCastReceiver not receiving from ActivityRecognitionService
I am trying to track the users activities with a Service + BroadCastReceiver.
ActivityTrackingService.java
public class ActivityTrackingService extends Service {
private static final String TAG = "...
3
votes
2
answers
385
views
Samsung 8+ does not receive any Activity Recognition events
I'm running the Google Codelab Android Activity Recognition API example on my Samsung 8+
https://codelabs.developers.google.com/codelabs/activity-recognition-transition/
And although the example ...
0
votes
1
answer
160
views
key error KeyError: ('accelerometerx', 'lx','mx','gx') i want to add the data of 4 hardware but when i try the error
please help i want the accelerometer data with gyro(gx) magnetometer(mx) but when ever i add this the
KeyError: ('accelerometerx', 'lx', 'mx','gx') but when ever i enter just accelerometerx the code ...
1
vote
0
answers
70
views
How does the ActivityRecognitionClient work in detail?
Developer out there,
I have some questions about the ActivityRecognitionClient, which are not described in detail in the documentation.
1. What kind of machine learning models and/or or what kind of ...
1
vote
1
answer
108
views
How to prepare the multilevel multivalued training dataset in python
I am a beginner in machine learning. My academic project involves detecting human posture from acceleration and gyro data. I am stuck at the beginning itself. My accelerometer data has x,y,z values ...
0
votes
0
answers
78
views
Classify activity person go into and go out the car (behavior detection)
I'm working on the problem classify activity get out the car and get in.
Also need to classify if upload and download activity going near the car
Need advice how to fix problem of overfitting model ...
0
votes
1
answer
100
views
Action Recognition for multiple objects and localization
I want to ask question regarding the action detection on the video with proposed frames. I've used Temporal 3D ConvNet for the action recognition on video. Successfully trained it and can recognize ...
1
vote
0
answers
89
views
How to receive update activity transition using ActivityRecognitionClient in android Oreo?
I used ActivityRecognitionClient to request update activity transition and receive result in pending intent broadcast receiver. But my broadcast receiver never trigger. It works well on android 7 ...
0
votes
1
answer
110
views
How to recognize current activity of user from a service?
I have tried to make a service to recognize the user's current activity.
But this code crashes everytime.
It throws exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'com....
0
votes
1
answer
693
views
Android User Activity Recognition in Background Task
My goal is to listen to the user activites and on change do something in the background like log the event in a database. When the app is in the foreground the events are fired correctly. When the app ...
0
votes
0
answers
42
views
Activity Recognition Api Diagram
I have done my thesis and now I have to make a presentation.
The professor asked me for diagramms at every api that I used.
So the only api that I don't have the diagramm is the Activity recognition ...
2
votes
0
answers
340
views
How can i convert IntentService to a background service which should run even after app is killed
I am working on DetectedActivity and i am currently get successful results on that. Now i want to get user's detected activity(in log or toast) while my app is killed. I have read the google document ...
3
votes
4
answers
5k
views
Activity Transition API not working
I wish to use the new Activity transition API and after following the tutorial here I am not able to get the desired result.
This is the code I have for setting the activity transition I wish to ...
0
votes
0
answers
78
views
Why my result does not show
My code does not show the result from activity recognization service.
How can I solve my problem?
This is my code ActivityRecognizeService.java
package com.kobe.internship.realtimeactivity;
import ...
4
votes
0
answers
108
views
How exactly does google activity recognition work?
On the web, google documentation and other documents I can find only information related to its implementation.
I'd like to know how does it exactly work. For example what sensors is it using, how ...
4
votes
1
answer
2k
views
Activity Recognition continues services in Oreo
I am breaking my head around it with no solution's so far. I seen many guides how to accomplish this (Documentation, Tutorial) and successfully made it happen in android 7. What I managed to do is ...
-1
votes
1
answer
234
views
Explicit intents don't works on Android 8.1
The code below works without any problem on pre-Oreo versions.
Although I user startForeground method and making explicit intent to get Activity values, onHandleIntent method is never called.
I ...
11
votes
1
answer
1k
views
The first transition is always the same - Activity Recognition API - Activity Transition
I use activity recognition api and activity transitions. When I first run the app, the first transition is always the. In this app it's WALKING-ENTER. When I tried with only IN_VEHICLE-ENTER and ...
0
votes
1
answer
303
views
Activity Recognition Client battery comsumption
I wish to use for my app ActivityRecognitionClient, and I wish it will run always in the background. But how much battery actually it consume and what is the best interval for battery optimization?
...
4
votes
1
answer
1k
views
Which one of "requestActivityTransitionUpdates" and "requestActivityUpdates" does consume battery less than other?
There are two option to play activities in Android:
1st: Detecting the activity in specific time intervals:
public Task<Void> requestActivityUpdates (
long ...
8
votes
2
answers
1k
views
Unable to detect User activity transition , using broadcast receivers
I have used the Activity Transition API launched by Google recently to detect when a User gets in and out of the vehicle. Below is the code I am using to achieve the same.
val intent = Intent(...
4
votes
2
answers
1k
views
Invalid activities specified in the ActivityTransitionRequest
I'm trying to use ActivityRecognition. However I get an error when i'm trying to get a transition update for DetectedActivity.TILTING or DetectedActivity.UNKNOWN. For all the other activity types I ...
1
vote
0
answers
90
views
RequestActivityUpdates takes way longer than detection interval
I'm currently developing an app that uses the activity recogition api.
I have a main activity and an intent service which is called using requestActivityUpdates() and returns data for the activity ...