Safe human-inspired mesoscopic hybrid automaton for autonomous vehicles