Detection of accelerating or decelerating state