Learning from Demonstrations for Human-Like Autonomous Driving: A Differentiable Optimal Control Approach
Author:
Abstract:
The successful adoption of autonomous vehicles depends not only on technical advancements but also on user acceptance, demanding a human-centered approach to the design of automated driving functionalities. To incorporate the human perspective into their development, these systems can learn from demonstrations of preferred driving behaviors. An end-to-end approach can support this by jointly optimizing perception, planning, and control for the demonstrated driving task. However, such an approach may lack safety assurances and interpretability. In contrast, a modular approach offers greater interpretability and verifiability by optimizing each task independently, but it struggles to effectively learn driving behaviors from observation-action demonstrations. Among the various techniques for autonomous driving, model predictive control (MPC) stands out as a popular model-based control method that computes control actions by optimizing the future states of the system over a time horizon while incorporating constraints on states and controls. However, MPC demands meticulous and time-consuming tuning of its cost function and may struggle with the flexibility required to imitate a wide range of human behaviors. This thesis aims to integrate MPC with imitation learning, and evaluate its effectiveness in imitating human driving behaviors. To achieve this, it leverages differentiable optimal control, a technique that enables the computation of gradients of the optimal control actions with respect to MPC parameters, such as cost function terms. This approach allows to tune the MPC to match the driving demonstrations, while preserving its advantageous properties. The thesis first addresses the development of a differentiable formulation of parametric MPC tailored for autonomous driving applications. This formulation, relying on the implicit differentiation of the optimality conditions of the problem, allows for nonlinear dynamics and state constraints. While learning with an MPC policy shows more robustness than a neural network policy, it proves less effective at generating closed-loop behaviors indistinguishable from human driving. To address this limitation, MPC needs to be integrated with other learning components, which are most effective when trained jointly with the MPC. Building on these considerations, the thesis introduces the integration of differentiable MPC into an end-to-end architecture. This framework effectively maps high-dimensional data to safe and feasible low-level control actions, all without disrupting the end-to-end pipeline. As a result, it enables safer and more interpretable imitation learning, along with an online parameter tuning mechanism for MPC cost functions. The methodologies presented in the thesis are validated through extensive simulation experiments involving human participants. A driving simulator, featuring a moving-based motion platform, is used to collect human driving demonstrations and capture various driving styles to be imitated. By training on these datasets, the proposed method outperforms other approaches involving MPC and neural networks, achieving an average 20% reduction in deviations from the demonstrated driving behaviors. Additionally, the effectiveness of the imitation is evaluated through a human-in-the-loop experiment on the simulator, targeted at determining whether passengers can distinguish between human drivers and the autonomous driving systems learned from these demonstrations. The results show that controllers integrating MPC with end-to-end learning are statistically less distinguishable from human driving than standard MPC controllers.