Abstract
Due to the limited smartness and abilities of machine intelligence, currently autonomous vehicles are still unable to handle all kinds of situations and completely replace drivers. Because humans exhibit strong robustness and adaptability in complex driving scenarios, it is of great importance to introduce humans into the training loop of artificial intelligence, leveraging human intelligence to further advance machine learning algorithms. In this study, a real-time human-guidance-based deep reinforcement learning (Hug-DRL) method is developed for policy training of autonomous driving. Leveraging a newly designed control transfer mechanism between human and automation, human is able to intervene and correct the agent's unreasonable actions in real time when necessary during the model training process. Based on this human-in-the-loop guidance mechanism, an improved actor-critic architecture with modified policy and value networks is developed. The fast convergence of the proposed Hug-DRL allows real-time human guidance actions to be fused into the agent's training loop, further improving the efficiency and performance of deep reinforcement learning. The developed method is validated by human-in-the-loop experiments with 40 subjects and compared with other state-of-the-art learning approaches. The results suggest that the proposed method can effectively enhance the training efficiency and performance of the deep reinforcement learning algorithm under human guidance, without imposing specific requirements on participant expertise and experience.
Introduction
Deep Reinforcement Learning (DRL) is a powerful tool for training autonomous vehicles (AVs), but it suffers from two major bottlenecks: sample inefficiency and the "cold-start" problem. In the early stages of training, an agent is essentially "blind," making random, often catastrophic mistakes that require thousands of iterations to correct. Conversely, Imitation Learning (IL)—where an AI mimics a human—suffers from distributional shift: if the AI encounters a situation slightly different from the training data, it lacks the recovery mechanisms inherent in DRL.
Existing "Human-in-the-Loop" methods often treat human input as an absolute truth, which is exhausting for the human and risky if the human isn't an "expert" driver. This paper introduces Hug-DRL (Human-guidance-based Deep Reinforcement Learning), a framework that fuses human intuition with DRL's optimization power without requiring constant supervision or professional-level driving skills.
Methods
The Hug-DRL framework is built upon the TD3 (Twin Delayed Deep Deterministic Policy Gradient) algorithm. The core innovation lies in how it integrates human intervention into the learning loop.
Key components of the architecture include:
- Real-time Control Transfer: A switch mechanism detects when a human moves the steering wheel (threshold > 5 degrees). When this happens, the human takes full control, and their actions are recorded into the experience replay buffer.
- Modified Policy Loss: The standard DRL loss function is augmented with a "human-guidance term," encouraging the actor network to output actions similar to the human's during interventions.
- Adaptive Weighting Factor ($\omega_I$): This is the system's "secret sauce." Instead of a fixed weight, the system calculates how much to trust the human based on Temporal Difference (TD) Error. It compares the predicted value ($Q$-value) of the human's action versus the agent's action. If the human's action leads to a significantly better predicted outcome, the weight increases. Additionally, a temporal decay factor ensures the agent naturally relies less on human guidance as it matures.
- Architecture: The agent processes semantic images (45x80 pixels) through a Convolutional Neural Network (CNN) to output steering commands.
Experimental Setup
The study utilized the CARLA simulator for training and testing.
- Training: Conducted in a scenario with stationary obstacles and random pedestrians.
- Testing: Five distinct environments (Scenarios 1-5) tested generalization, including high-speed freeways and complex urban traffic with buses and motorcycles.
- Human Subjects: Data was generated by 40 participants with varying levels of driving experience and task proficiency to test the system's robustness to non-expert guidance.
Key Results and Insights
- Performance Boost: Hug-DRL achieved a 31.9% improvement in asymptotic reward compared to Vanilla DRL (TD3). It also outperformed other human-in-the-loop baselines like IA-RL and HI-RL.
- Generalization and Safety: In five unseen test scenarios, Hug-DRL maintained a 100% success rate, whereas Vanilla DRL and DAgger struggled significantly in complex environments.
- Expertise is Optional: A surprising finding was that non-proficient and unlicensed participants were nearly as effective at training the agent as experienced drivers. The agent only needs "common sense" guidance to avoid immediate disasters, which is enough to jumpstart the RL optimization process.
- Reduced Human Fatigue: Humans only need to be in the loop for about 30% of the training episodes to achieve performance gains similar to constant supervision.
- Smoothness: Hug-DRL resulted in the most stable driving behavior, with a mean lateral acceleration of 0.37 m/s², compared to the much jerkier 1.85 m/s² produced by the HI-RL baseline.
Conclusion
Hug-DRL effectively addresses the sample inefficiency of DRL by leveraging real-time human guidance. By using TD error to weight human input, the system can filter out "bad" or "noisy" interventions, focusing only on actions that improve expected rewards. Future work will focus on incorporating longitudinal control (throttle/braking) and bridging the sim-to-real gap for physical vehicle deployment.
Summary updated