Visual attention prediction improves performance of autonomous drone racing agents

Christian Pfeiffer, Simon Wengeler, Antonio Loquercio, Davide Scaramuzza

Abstract

Autonomous drone racing requires high-speed navigation through complex environments using limited visual data. While end-to-end learning approaches show promise, they often struggle with visual noise and generalization. This paper explores the integration of human-like visual attention into autonomous agents. By training a convolutional neural network to predict human eye-gaze patterns, researchers created a semantic filter that prioritizes task-relevant information, such as upcoming gates. In a simulated racing environment, agents utilizing this attention-based model achieved an 88% success rate, significantly outperforming traditional RGB-based and geometric feature-tracking methods.

Introduction: The Challenge of High-Speed Autonomy

Autonomous drone racing is a "grand challenge" for robotics. Success depends on processing first-person view (FPV) camera feeds to execute precise, high-speed maneuvers. Standard end-to-end neural networks often fail because they cannot distinguish between critical waypoints and background clutter or motion blur.

In contrast, human pilots exhibit superior agility by employing selective visual attention. They fixate on the next waypoint long before reaching it, effectively filtering out irrelevant visual data. This research investigates whether imitating this human gaze mechanism can enhance the performance and robustness of autonomous racing agents.

Overview of the experimental setup, drone model, gaze prediction, and the figure-eight racing track.

Methodology: Bridging Perception and Control

The researchers proposed a two-stage pipeline to incorporate human visual attention into robotic control.

1. Visual Attention Prediction

A Fully Convolutional Network, based on a ResNet-18 backbone, was trained to predict human gaze. Given an FPV image, the network generates a pixel-wise probability map—an "attention map"—that highlights areas a human pilot would likely focus on. This map serves as a task-specific abstraction, ignoring distractors like trees or sky.

The neural network architecture for predicting pixel-wise attention maps from raw FPV images.

2. End-to-End Control and Imitation Learning

Instead of raw RGB images, the drone controller receives high-level features extracted by the attention network. The controller was trained using Dataset Aggregation (DAgger), an imitation learning algorithm where a Model Predictive Control (MPC) expert provides ground-truth labels for thrust and body rates as the agent explores the environment.

Experimental Setup and Datasets

The study utilized two primary data sources:

  • Eye Gaze Drone Racing Dataset: Contains gaze data and control commands from 18 experienced human pilots.
  • Flightmare Simulator: An open-source environment used for closed-loop evaluation and generating ground-truth training data.

The final dataset comprised over 675,000 frames from 36 collision-free flights, primarily on a figure-eight track layout.

Results and Key Insights

The attention-based model demonstrated superior performance across several metrics:

  • Success Rate: The attention-prediction controller achieved an 88% success rate on training trajectories, compared to 61% for raw RGB models and 55% for geometric feature-track models.
  • Generalization: On unseen "hold-out" trajectories, the attention model maintained a 72% success rate, while the RGB baseline's performance dropped to 39%.
  • Intentionality: Unlike geometric features that merely identify high-contrast points, the attention model captures intent. It identifies the specific gate or corner relevant to the current stage of the race, providing a more robust representation for the controller.

Conclusion and Future Work

Teaching autonomous drones "where to look" by imitating human gaze significantly improves racing performance and generalization. By filtering visual input through a learned attention model, agents can focus on task-critical information.

While these results in the Flightmare simulator are promising, future work must address real-world challenges such as variable lighting, hardware latency, and complex multi-gate track layouts. Physical deployment on hardware like the NVIDIA Jetson TX2 remains the next critical milestone for this technology.

Summary updated

Abstract

Humans race drones faster than neural networks trained for end-to-end autonomous flight. This may be related to the ability of human pilots to select task-relevant visual information effectively. This work investigates whether neural networks capable of imitating human eye gaze behavior and attention can improve neural networks' performance for the challenging task of vision-based autonomous drone racing. We hypothesize that gaze-based attention prediction can be an efficient mechanism for visual information selection and decision making in a simulator-based drone racing task. We test this hypothesis using eye gaze and flight trajectory data from 18 human drone pilots to train a visual attention prediction model. We then use this visual attention prediction model to train an end-to-end controller for vision-based autonomous drone racing using imitation learning. We compare the drone racing performance of the attention-prediction controller to those using raw image inputs and image-based abstractions (i.e., feature tracks). Comparing success rates for completing a challenging race track by autonomous flight, our results show that the attention-prediction based controller (88% success rate) outperforms the RGB-image (61% success rate) and feature-tracks (55% success rate) controller baselines. Furthermore, visual attention-prediction and feature-track based models showed better generalization performance than image-based models when evaluated on hold-out reference trajectories. Our results demonstrate that human visual attention prediction improves the performance of autonomous vision-based drone racing agents and provides an essential step towards vision-based, fast, and agile autonomous flight that eventually can reach and even exceed human performances.
BibTeX
@inproceedings{pfeiffer2022visual,
  author = {Christian Pfeiffer and Simon Wengeler and Antonio Loquercio and Davide Scaramuzza},
  title = {{Visual attention prediction improves performance of autonomous drone racing agents}},
  booktitle = {PLoS},
  year = {2022},
  doi = {10.1371/journal.pone.0264471},
}
Figure