An Improved Algorithm of Robot Path Planning in Complex Environment Based on Double DQN

Fei Zhang, Chaochen Gu, Feng YangarXiv 2021

Abstract

Deep Q Network (DQN) has several limitations when applied in planning a path in environment with a number of dilemmas according to our experiment. The reward function may be hard to model, and successful experience transitions are difficult to find in experience replay. In this context, this paper proposes an improved Double DQN (DDQN) to solve the problem by reference to A and Rapidly-Exploring Random Tree (RRT). In order to achieve the rich experiments in experience replay, the initialization of robot in each training round is redefined based on RRT strategy. In addition, reward for the free positions is specially designed to accelerate the learning process according to the definition of position cost in A. The simulation experimental results validate the efficiency of the improved DDQN, and robot could successfully learn the ability of obstacle avoidance and optimal path planning in which DQN or DDQN has no effect.

Introduction

Deep Reinforcement Learning (DRL) has emerged as a powerful tool for robotic path planning, allowing agents to learn complex behaviors through interaction with their environment. However, standard DRL algorithms like Deep Q-Networks (DQN) and Double DQN (DDQN) often struggle in environments characterized by "sparse rewards" and "local minima." In complex scenarios involving U-shaped obstacles or narrow corridors—referred to as "dilemmas"—a robot starting from a fixed point may fail to reach the goal by chance, leading to an empty experience replay buffer for successful trajectories.

Proposed Methodology

To address these challenges, this research introduces two primary enhancements to the DDQN framework, drawing inspiration from classical path planning algorithms.

RRT-Inspired Initialization

Standard training often initializes the robot at a fixed starting position. In complex maps, the probability of reaching the goal through random exploration is nearly zero. Inspired by Rapidly-Exploring Random Trees (RRT), the authors propose a randomized initialization strategy. With a probability $p_r$, the robot is placed at a random free position within the map. This "scaffolding" approach ensures the robot encounters "easy wins" near the goal, populating the experience replay buffer with successful transitions that the model can then generalize to the entire map.

A*-Inspired Reward Function

Traditional RL rewards are often binary (e.g., +1 for goal, -1 for collision). This provides little guidance during exploration. Borrowing from the A* algorithm's cost function ($f(n) = g(n) + h(n)$), the authors designed a continuous reward function based on:

  • Progress: The change in distance to the goal between steps.
  • Efficiency: A penalty for distance traveled to discourage redundant movement.
The 20x20 complex grid environment used for training and testing, featuring various obstacle 'dilemmas'.

Experimental Setup

The algorithm was evaluated using 20x20 grid maps. The state space is represented as an image processed by a Convolutional Neural Network (CNN) with a 3x3 convolutional layer and a fully connected layer. The action space consists of 8 discrete directions (8-adjacent grid movement). To test generalization, 300 variations of the map were generated by adding random "noise" obstacles.

Key Results and Discussion

The improved DDQN demonstrated significant performance gains over standard implementations:

  • Convergence: The model converged in approximately 15,000 steps, whereas standard DDQN failed to find a viable path even after 50,000 steps.
  • Path Optimality: The agent found paths slightly more optimal than those produced by a standard A* implementation (22.97 vs 25.31 units), likely due to the agent's learned handling of diagonal transitions.
  • Robustness: The trained model achieved a success rate of nearly 80% on 200 unseen "noisy" maps, indicating it learned generalized obstacle avoidance rather than just memorizing a specific path.
Comparison of path planning results and trajectories in different grid environments.

Conclusion

By integrating heuristics from A* and RRT into the DRL framework, the proposed improved DDQN effectively overcomes the sparse reward problem in complex environments. This hybrid approach allows robots to learn optimal paths in scenarios where standard reinforcement learning typically fails, offering a promising direction for real-time robotic navigation.

Reference: Zhang, F., Gu, C., & Yang, F. (2021). An Improved Algorithm of Robot Path Planning in Complex Environment Based on Double DQN. arXiv:2107.11245 [cs.RO].

Summary updated

BibTeX
@misc{zhang2021improved,
  author = {Fei Zhang and Chaochen Gu and Feng Yang},
  title = {{An Improved Algorithm of Robot Path Planning in Complex Environment Based on Double DQN}},
  year = {2021},
  eprint = {2107.11245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.11245},
}
Figure