Improving gearshift controllers for electric vehicles with reinforcement learning

Marc-Antoine Beaudoin, Benoit BouletarXiv 2021

Abstract

Calibrating gearshift controllers for multi-speed electric vehicles (EVs) typically requires thousands of physical trials to achieve seamless transitions. This paper demonstrates a data-efficient model-based reinforcement learning (RL) approach that optimizes controller parameters in just four trials. By leveraging a hybrid modeling strategy that combines physics-based nominal models with Gaussian Processes, the proposed method significantly accelerates the development of smooth, efficient EV transmissions.

Introduction

As electric vehicle technology matures, manufacturers are increasingly exploring multi-speed transmissions to enhance overall efficiency and performance across various driving cycles. However, achieving a "seamless" gearshift—where the driver experiences no perceptible jerk—presents a significant control challenge. This process requires the precise coordination of motor torques and clutch pressures.

Traditionally, engineers rely on "Design of Experiments" (DOE) methodologies. This "black box" approach involves running thousands of gearshift trials with varying settings and using statistical inference to identify optimal parameters. Such methods are inherently time-consuming and resource-intensive. This research aims to replace brute-force statistics with a smarter, data-efficient learning algorithm capable of understanding and adapting to system dynamics.

Methodology

The researchers implemented a control architecture consisting of a full-state linear feedback component and a feedforward signal. To tune the 12 parameters of this controller, they employed a modified version of the Probabilistic Inference for Learning Control (PILCO) algorithm.

The model-based reinforcement learning loop used to optimize the gearshift policy.

Hybrid Modeling and Gaussian Processes

Unlike standard RL approaches that learn from scratch, this method utilizes a hybrid modeling strategy. A linear nominal model, derived from physical principles, serves as the mean function for a Gaussian Process (GP). The GP is then tasked with learning only the "residuals"—the discrepancies between theoretical math and physical reality, such as friction and nonlinearities.

Hardware-in-the-Loop Testing

The system was validated using a physical reduced-scale EV transmission prototype. A simulated vehicle model provided real-time load, creating a robust hardware-in-the-loop environment.

Schematic of the transmission test bench, showing the physical components and the simulated vehicle load.

The algorithm's efficiency is further enhanced by leveraging automatic differentiation (via TensorFlow) to compute gradients. This flexibility allows the optimization process to update automatically even if the underlying controller structure is modified.

Key Results

The experimental results highlight extreme data efficiency and improved performance:

  • Rapid Optimization: The controller reached an optimal state in only four gearshift trials.
  • Error Reduction: Compared to initial human-tuned "best guesses," the RL-optimized controller reduced the maximum tracking error ($||e||_\infty$) by 54% and the final tracking error ($|e(1)|$) by 80%.
  • Computational Efficiency: Computing a new optimized policy required approximately 100 seconds on a standard laptop.
  • Robustness: The learned policy demonstrated consistent, high-quality performance across multiple trials and generalized well to unseen conditions, such as different shift durations and speeds.

Discussion and Future Work

A key insight from this study is that prior physical knowledge acts as a "superpower" for machine learning. By seeding the RL algorithm with a basic linear model, the learning process becomes orders of magnitude faster than model-free RL or pure statistical DOE. The RL process also revealed that initial human-tuned feedback gains were insufficient to overcome hardware nonlinearities; the algorithm significantly increased these gains to achieve tighter trajectory tracking.

While highly effective for this 12-parameter problem, the authors note that the PILCO-based approach may face scaling challenges in much higher-dimensional systems. Future research could explore applying this framework to more complex, nonlinear control structures, such as Neural Networks or Model Predictive Control (MPC), to further refine EV transmission performance.

Summary updated

BibTeX
@misc{beaudoin2021improving,
  author = {Marc-Antoine Beaudoin and Benoit Boulet},
  title = {{Improving gearshift controllers for electric vehicles with reinforcement learning}},
  year = {2021},
  eprint = {2112.00529},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.00529},
}
Figure