Personalized gait detection using a wrist-worn accelerometer