Safe reinforcement learning with mixture density network, with application to autonomous driving