Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure distance travelled with the phone motion detection and with gps #1199

Open
Shaguito87 opened this issue Feb 9, 2025 · 1 comment

Comments

@Shaguito87
Copy link

Gps lies when you not are in movement making false reads of your position, of course the app continue registering this reads as long as you are active, and inform that you are travelled more than you really travelled, so instead of registering with gps all the time, if you travelled certain distance, let the phone deciding if you are in movement or not, for this add motion permission to add a motion detection in the app, so if you are in a place with no movement or with a little movement for example if you are in home or in work the app then know if you are in movement or not and will discard the fake travel

@mendhak
Copy link
Owner

mendhak commented Feb 11, 2025

Indeed, this used to be a feature a long time ago. I used to detect any kind of movement with a certain level of confidence, and based on that I could say whether or not to log at all, thereby reducing noise.

Sadly the library for it, Activity Recognition API, is not FOSS, so not accepted on F-Droid.

Instead I'd have to find some open source implementation for it. The problem is, in the FOSS world, there's only SensorEventListener which can measure raw values, but doesn't do anything like saying what the activity is. eg there could even be movement that's considered staying still.

I have not been able to find any such open source library, it would be good to know if such exists. I also don't have the know-how to build my own model. I think I've found a dataset though? And maybe another one here. But I'd suspect even training a model would come with its own overhead, such as false positives, false negatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants