u201c training mode u201d that remembers how hard a rider typically brakes and learns extraneous motions that a particular rider uses when not braking to filter them out during normal operation further acceleration caused by fast pitching motion of the head may be subtracted from the end result as a further increase in signal accuracy to detect only braking motions this may be done to prevent a brake detection when moving the head while quickly looking on the dashboard in yet another embodiment the calculated deceleration is low pass filtered and compared to a threshold to detect a braking condition the light on time has a minimum length and may be a multiple of the time that the threshold is exceeded a higher secondary threshold can be used to detect very fast braking which may result in a special light sequence to indicate urgency a lower lowest threshold is used to detect the end of a braking event another optional feature of the system is where light indication may be implemented when the vehicle is at standstill as many accidents occur when motorcycles are rear ended while waiting at a traffic light vibration on accelerometers and or gyroscopes can be used to estimate motion conditions also the vehicle velocity may be estimated by integrating the accelerometer signals the accuracy of this can be.