Academics say that beyond enforcing the law, deploying artificial intelligence can help to identify behaviour and conditions that endanger road users.