We use a combination of accelerometer and a gyrometer sensors inside the unit. Our patented algorithm takes in all the data from the sensors and determines with great accuracy any time you're slowing down, no matter how. (Engine braking, downshifting, and regular brakes)