I just gave it a shot yesterday with the Bangle.getHealthStatus().movement method works great! Temperature adds some inference but I included the data as well.
Without temperature, the model has a 99.2% accuracy :)
The decision tree function is:
function isWorn() {
if (Bangle.isCharging())
return false;
if (Bangle.getHealthStatus().movement > 146)
return true;
return false;
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just gave it a shot yesterday with the
Bangle.getHealthStatus().movement
method works great! Temperature adds some inference but I included the data as well.Without temperature, the model has a 99.2% accuracy :)
The decision tree function is: