Tailgating is actually pretty easy to measure - there are specific patterns of braking and acceleration.
Innatention may be measurable too. For example, if an inattentive driver frequently drifts from the center of the lane and makes small quick corrections periodically, that would be apparent from accelerometer data.