/SensorTemplate

Android template for sensor processing

Primary LanguageKotlinApache License 2.0Apache-2.0

SensorTemplate

The SensorTemplate provides a simple build of the Android application with centralized tools to manipulate with sensors of a phone. Whole computational unit is build on a foreground service, which can be turn on by the button in the main activity.

API license

Features

The model under foreground service connects different aspects of Android system together.

  • whole life cycle of sensors is handled
  • temporal storage for samples
  • creation of csv files, if needed
  • implementation of GPS
  • implementation of Activity Recognition Client
  • methods to handle changes in network, user activity and battery life
  • wakelock handling
  • app is added to whitelist for background processing by AutoStarter
  • examples of detector classes

Every aspect is completely modifiable.

Classifiers

  • Tensorflow lite neural network for 1D signal/features. Model can be also modified to 2D if needed.

  • Scikit-learn models like SVM, decision trees, k-neighbours classifier, Naive Bayes has been added to app with help of sklearn-porter. Outputs have been modified into the Kotlin, with one interface. Parameters for models should be extracted with help of sklearn-porter.

Third parties

Thanks goes to:

  • AutoStarter - adds your app to whitelist of battery optimizer implemented by manufacturer

    Download license API

  • Tensorflow - an open source machine learning framework

    Documentation license

  • sklearn-porter - transpile trained scikit-learn estimators to C, Java, JavaScript and others.

    license

Got a question ?

For more information visit: www.creativemotion.app

Contact us by: support@creativemotion.app