Sit-stand-accelerometer-detector Algorithm to detect sit-stand with the mobile phone attached to the chest.