Questions tagged [activity-recognition]

Activity recognition tries to detect the user's current physical activity, such as walking, driving, or standing still.

Filter by
Sorted by
Tagged with
1 vote
0 answers
58 views

Activity Recognition Transitions API issue

I'm developing a mobility monitoring system for educational purposes and so I decided to use the Android API Activity Transitions to recognize activities such as IN_VEHICLE or ON_BICYCLING. I followed ...
NotNow's user avatar
  • 23
0 votes
0 answers
65 views

How to properly use Android Activity Recognition API in expo

I was wondering if it is possible to get the current activity of the user in expo with the Android Activity Recognition API and iOS similar. I'm willing to get the moment that the user changes from ...
João's user avatar
  • 1
0 votes
1 answer
2k views

Android Notification: at your request android is blocking this app's notifications

I'm developing an android application with Java, Node.Js as backend and Postgres as database. The application for now has an authentication and I have implemented the recognition of user activity ...
NotNow's user avatar
  • 23
0 votes
0 answers
47 views

ResNet50-LSTM activity classification fail to connect AvgPool layer with LSTM

I am trying to do a Resnet50-LSTM model (Resnet50 as Feature Extractor, feed into LSTM and then softmax classification) that classify on 3 categories of human activity. I extracted 16 frames for each ...
jackiee's user avatar
0 votes
1 answer
63 views

Transfer learning on YOLOv5 using kinetic dataset

I understand that YOLO is designed for object detection. What I was trying to do is perform a transfer learning using the Kinetic700 dataset over YOLOv5 for human activity recognition. Then I realize ...
jackiee's user avatar
2 votes
0 answers
79 views

Does Activity Recognition Transition API work on Wear OS?

I thought the Activity Recognition Transition API didn't work on Wear OS. Does Wear OS support the Activity Recognition Transition API? I checked whether the Activity Recognition Transition API works ...
Kei's user avatar
  • 134
0 votes
0 answers
30 views

How can I read skeleton pose data file and visualize it using MATLAB?

I have the human pose data file as shown in the following format and difficulties in how to visualize the skeleton data. I am currently using MATLAB and learning different ways to visualize it, but it ...
Easter012's user avatar
1 vote
0 answers
155 views

I register to Play Services Activity Recognition API successfully but don't get any transitionEvents updates. Compose Android Kotlin

I'm new to android development. Now, I'm trying to develop an app for detecting user activities. In this case, I used Google Play Services Activity Recognition API, and also, I followed the ...
Ali Vafaei's user avatar
0 votes
0 answers
95 views

Use of Google Activity Recognition API

Have been trying to use Google Activity Recognition API, but until now, can't get a single result. I have this function in Main Activity private void requestTransactionsUpdates() { if (...
Tiago Badalo's user avatar
6 votes
0 answers
334 views

Android defaultSensor TYPE_SIGNIFICANT_MOTION returns null after 24 hours

I'm little bit confused why my Transitions API solution works usually for first day or two and after that stop receiving any updates. I dug deeper into it and found a lead that talks about how we need ...
MaaAn13's user avatar
  • 286
2 votes
0 answers
140 views

ActivityTransitions API not calling BroadcastReceiver on Samsung Deivce

I implemented the Activity Transitions API with a PendingIntent and a BroadcastReceiver as seen below. The code works perfectly fine on a Pixel 3a. However, on a Samsung A32 and Samsung S22 Pro, the ...
pxbn's user avatar
  • 21
5 votes
1 answer
332 views

Android Transitions API - stops receiving any updates after 24-48 hours

I'm using Transitions API and everything works fine for the first 24-48 hours - I receive physical activity changes from the API, but after 24-48 hours there's nothing. Under Transitions API Receiver, ...
MaaAn13's user avatar
  • 286
2 votes
2 answers
156 views

When i was trying to developing GPS tracking Android APP with Google Activity Recognition Transition API, I had a API-working stop issue

When i was trying to developing GPS tracking Android APP with Google Activity Recognition Transition API, I had a API-working stop issue. I thought that it is a problem of device-model compatible but ...
barunsoft's user avatar
2 votes
1 answer
711 views

Android 12 - Activity Recognition With broadcast receiver in background not working

I am trying to get user activity states by ActivityRecognition API and it works in foreground and for few hours in background too (When user exit the app) but after more than 4/5 hours it stop sending ...
androidXP's user avatar
  • 1,712
0 votes
1 answer
213 views

Cannot get ActivityRecognitionResult

I'm registering Broadcast receiver to receive activity events from Android's ActivityRecognition api. Registering Broadcast receiver in Manifest: <receiver android:name="....
Nodar Maruashvili's user avatar
0 votes
0 answers
36 views

cannot resove symbol TransitionsReceiver

Trying to test next Google sample https://developer.android.com/codelabs/activity-recognition-transition#4 I was stuck on 5 step. private TransitionsReceiver mTransitionsReceiver; return me next ...
Nick's user avatar
  • 49
2 votes
0 answers
100 views

React Native Activity Recognition

i want to implement the user activity in react native, could you please help me which one is the best package for implementing the activity recognition of user other then react-native-activity-...
saif ur rehman ahmed's user avatar
0 votes
1 answer
376 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....
Bo Nyby's user avatar
  • 11
0 votes
1 answer
822 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 ...
I2mNew's user avatar
  • 123
2 votes
1 answer
1k 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 ...
Ritu's user avatar
  • 548
0 votes
0 answers
150 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 ...
Hussain Murani's user avatar
3 votes
1 answer
846 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 ...
Piyush Singhal's user avatar
4 votes
0 answers
514 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 ...
Vladimir Baldin's user avatar
2 votes
0 answers
335 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 ...
Ritu's user avatar
  • 548
2 votes
2 answers
369 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 ...
Sergi Domingo's user avatar
4 votes
3 answers
766 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 ...
Sanyam Saini's user avatar
5 votes
1 answer
952 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 ...
Moti Bartov's user avatar
  • 3,474
1 vote
0 answers
121 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 ...
magdizal's user avatar
0 votes
1 answer
1k 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 ...
Arsalan Khan's user avatar
0 votes
1 answer
90 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 (...
Calvin Apollos's user avatar
1 vote
0 answers
563 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 ...
kamlesh parmar's user avatar
1 vote
0 answers
211 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. ...
Andrei Mesh's user avatar
1 vote
2 answers
400 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 ...
amirreza's user avatar
1 vote
1 answer
333 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) ...
fritzp's user avatar
  • 101
2 votes
1 answer
3k 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 ...
Karan Mehta's user avatar
  • 1,466
0 votes
1 answer
96 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 ...
A.h.'s user avatar
  • 121
3 votes
3 answers
7k 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 ...
Geordie Wicks's user avatar
2 votes
1 answer
1k 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 ...
Myroslav's user avatar
  • 995
0 votes
1 answer
928 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 ...
Emre Tatbak's user avatar
1 vote
0 answers
72 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 ...
Zelig63's user avatar
  • 1,592
1 vote
0 answers
172 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 ...
Thomas's user avatar
  • 127
1 vote
0 answers
141 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 = "...
DrEichenbach's user avatar
3 votes
2 answers
665 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 ...
Michael Rumpf's user avatar
0 votes
1 answer
309 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 ...
mubashar's user avatar
1 vote
0 answers
100 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 ...
steffen's user avatar
  • 11
1 vote
1 answer
159 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 ...
Bukaida's user avatar
  • 225
0 votes
0 answers
84 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 ...
Dmitry's user avatar
  • 31
0 votes
1 answer
114 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 ...
Dmitry's user avatar
  • 31
1 vote
0 answers
97 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 ...
MichaelP's user avatar
  • 2,751
0 votes
1 answer
156 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....
user avatar

1
2 3 4 5