UAV Obstacle Avoidance by Human-in-the-Loop Reinforcement in Arbitrary 3D Environment

Xuyang Li, Jianwu Fang, Kai Du, Kuizhi Mei, Jianru XuearXiv 2023

TL;DR

Navigating unmanned aerial vehicles (UAVs) through complex 3D environments using deep reinforcement learning (DRL) often suffers from slow training convergence due to massive action spaces and conflicting reward signals. This paper introduces a human-in-the-loop approach that trains an offline classifier to recognize when a UAV enters an "avoidance state," dynamically switching the reward function to prioritize bypassing obstacles. Evaluated across simulated urban, rural, and forest environments, this method significantly accelerates training convergence and boosts navigation success rates.

What Problem Does This Paper Address?

Autonomous UAV navigation requires continuous control over three-dimensional movement—allowing the vehicle to dynamically adjust its height, speed, and direction. Traditional non-learning methods (like SLAM and classic path planning) struggle to adapt efficiently to highly complex, unpredictable 3D environments.

While deep reinforcement learning (DRL) offers a promising alternative, applying it to continuous 3D control introduces a massive state-action space. A major bottleneck is reward conflict: standard DRL navigation algorithms penalize the UAV for turning away from its final target (a yaw penalty). However, to safely navigate around a large building or obstacle, the UAV must turn away from the target. This creates an optimization trap where the agent receives conflicting feedback, leading to exceptionally slow training convergence or outright failure to learn an optimal policy.

Methods

The authors propose two enhanced DRL algorithms: DDPG-H (Deep Deterministic Policy Gradient with Human-in-the-loop) and TD3-H (Twin Delayed DDPG with Human-in-the-loop).

Fig. 2. The flowchart of the proposed method. Firstly, the UAV senses environment information through a depth camera and m distance sensors with different perception directions. The distance sensors will return a set of distance values [d1...dm]. The depth image returned by the depth camera is encoded by a pre-defined convolution neural network (CNN), and the n-dimensional feature embedding is c = [c1...cn]. The above information constitutes the internal characteristics of the UAV, and the relationship between the UAV and the target point together, which is further treated as the state s in the deep reinforcement learning framework (DRL). We design the deep deterministic policy gradient (DDPG) algorithm and twin delayed deep deterministic policy gradient algorithm (TD3) to control the three-way speed of the UAV. To be clear, we show the DDPG flowchart in this figure. During reinforcement learning training, the UAV’s perception of the environment [d1...dm, c1...cn] and its relationship feature (ddist, yyaw) with the target point form a feature vector [d1...dm, c1...cn, ddist, yyaw]. Specially, we introduce the human expert to assist the avoidance state recognition in DDPG and TD3 and update the avoidance state label of the extracted feature vectors, which can help the UAV to avoid obstacles more efficiently.

The core innovation is a multi-stage training pipeline that leverages human expertise to resolve reward conflicts:

  1. Initial Exploration: The UAV explores the environment using standard DDPG or TD3 algorithms, collecting sensor data (depth camera images processed via a CNN and 12 directional distance sensors).
  2. Human Labeling: A human expert reviews the collected flight data. If the UAV is facing an obstacle and needs to maneuver around it, the state is labeled as an "avoidance state" (1). If the path is clear, it is labeled a "normal state" (0).
  3. Classifier Training: A fully connected neural network is trained offline on this temporary, human-labeled dataset to automatically recognize these states.
  4. Dynamic Reward Recombination: In the next training epoch, the trained classifier runs inline. When it detects an "avoidance state," it dynamically alters the DRL reward function: it strips away the restrictive yaw penalty and introduces a temporary "secondary target point" to guide the UAV safely around the obstacle. Once the obstacle is cleared, the standard navigation reward function is restored.
Fig. 5. Model training timeline. We first train the initial DDPG and TD3. Then, the collected temporary dataset is used to train an avoidance state recognition model offline. Finally, the rec- ognized avoidance state is fed into the initial algorithm (DDPG, TD3) for a new epoch of training (DDPG-H, TD3-H).

Datasets

The method was developed and evaluated using virtual 3D environments built in Unreal Engine 4 (UE4) utilizing the AirSim simulation platform. The authors tested their approach across three distinct high-fidelity scenarios representing different obstacle distributions:

  • 3D Urban Scene: Characterized by dense, tall buildings requiring complex horizontal and vertical bypassing maneuvers.
  • 3D Rural Scene: Composed of low-profile central buildings and peripheral woodlands.
  • 3D Forest Scene: Dominated by dense tree canopies, testing fine-grained obstacle avoidance.

Key Insights and Ideas

  • The Necessity of Sub-Tasks: In complex 3D environments, a monolithic reward function fails. Breaking navigation down into explicit sub-tasks (normal cruising vs. obstacle bypassing) prevents the agent from getting stuck in local minima.
  • Human Intuition as an Optimization Shortcut: Instead of relying on the agent to blindly discover how to balance target-seeking with survival through trial and error, human intervention explicitly teaches the agent when the rules of navigation change.
  • Exploiting the Third Dimension: By mapping continuous acceleration across all three axes ($a_x, a_y, a_z$), the UAV naturally learns diverse strategies—such as flying over low obstacles (like trees or small houses) rather than just navigating around them horizontally.

Key Results

The human-in-the-loop models (DDPG-H and TD3-H) were evaluated against standard baselines over 100 trial episodes after training. Performance was measured using Success Rate (SR) and Weighted Average Step Size (Weighted-ASS).

  • Urban Environment: TD3-H achieved the highest success rate at 94% (compared to 85% for standard TD3). DDPG-H dramatically improved efficiency, reducing the Weighted-ASS to 179.77 steps compared to standard DDPG's 264.36 steps.
  • Rural Environment: DDPG-H outperformed all models with a 65% success rate and a Weighted-ASS of 177.38.
  • Forest Environment: TD3-H proved superior in dense foliage, yielding an 85% success rate and the lowest step count of 185.25.

Crucially, the training curves demonstrated that DDPG-H and TD3-H reached higher, stable exponential moving average rewards much earlier in the training cycle (often around the 200th to 300th episode) compared to standard methods, proving a substantial reduction in convergence time.

Limitations and Future Work

Despite the performance gains, the authors note a few limitations:

  • Manual Labeling Dependency: The framework relies on an initial phase of human data labeling (2000 groups of scene features were used), which introduces manual effort before full automation is achieved.
  • Foliage Penetration Issues: Performance dropped in rural and forest environments compared to urban settings. The authors attribute this to the complexity of tree leaves, which complicate collision detection and trajectory planning during training.

Future Directions: The team plans to refine the human-in-the-loop mechanism to minimize human intervention and explore extending this framework to group/swarm UAV cooperative navigation.

Summary updated

BibTeX
@misc{li2023uav,
  author = {Xuyang Li and Jianwu Fang and Kai Du and Kuizhi Mei and Jianru Xue},
  title = {{UAV Obstacle Avoidance by Human-in-the-Loop Reinforcement in Arbitrary 3D Environment}},
  year = {2023},
  eprint = {2304.05959},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05959},
}
Figure