Which Way Am I Facing: Inferring Horizontal Device Orientation from an Accelerometer Signal
Using gravity to estimate accelerometer orientation