Deep Reinforcement Learning for Vision-Based UAV Tracking by an Autonomous Ground Vehicle

Karan Raj Pant, Jagannath Prasad Sahoo, Sreekar Mallela, Surya Prakash S.K. and Amit Shukla

Indian Institute of Technology Mandi, India

Paper, Code, Dataset available once published

Gallery

UAV AGV tracking slide
YOLO detection slide

Abstract

This paper addresses persistent tracking of an unmanned aerial vehicle (UAV) relative to an autonomous ground vehicle (AGV) using deep reinforcement learning (DRL), with body-frame command velocities as actions. Visual feedback is provided by a YOLOv8n detector trained on a custom dataset of 5000 annotated frames of a DJI Matrice~600 UAV, executed in real time on an upward-facing camera mounted on a Diadem AGV (RigBetel Labs); the centroid of the detected bounding box yields the planar tracking error on the image plane. A composite reward is proposed that retains the prescribed linear xy-error, angular-error, and actuation-energy terms and augments them with a bounded exponential proximity kernel, a potential-based progress term with guaranteed optimal-policy invariance, and an action-smoothness penalty. Five algorithms---DQN, TD3, SAC, TQC, and TD7---are benchmarked under an identical Markov decision process in terms of tracking error over time, three-dimensional trajectory geometry, and episodic return. TD7 attains the lowest steady-state error and the fastest convergence, followed by TQC and SAC, and a reward ablation shows that the proposed shaping accelerates convergence across all algorithm classes. Detector performance is quantified through a confusion matrix and precision--recall metrics, confirming real-time, high-recall UAV detection sufficient for closed-loop tracking.

Design Overview

This RL vision-based UAV–AGV tracking system combines onboard camera perception, UAV detection, and reinforcement learning control to maintain reliable closed-loop tracking on the ground vehicle.

Visual observations are processed by a detection module, which feeds into state estimation and a trained policy network that outputs body-frame velocity commands for the AGV. The architecture is designed for real-time operation with robust feedback from the image plane.

Dataset and code resources will be made available once the work is published.

Design overview diagram

Results

Detailed benchmark results for five RL algorithms on circle and square tasks. Use the arrows to cycle through each algorithm’s performance suite.

DQN

DQN performance on visual tracking tasks with stable but conservative control behavior. The plots show 3D trajectories and error traces for circle and square benchmarks.

DQN circle 3DCircle 3D
DQN square 3DSquare 3D
DQN circle errorCircle Error
DQN square errorSquare Error
SAC

SAC delivers a strong tradeoff between sample efficiency and smooth action execution across all benchmark trajectories.

SAC circle 3DCircle 3D
SAC square 3DSquare 3D
SAC circle errorCircle Error
SAC square errorSquare Error
TQC

TQC shows consistent convergence with low overshoot, particularly visible in the square and distance-error plots.

TQC circle 3DCircle 3D
TQC square 3DSquare 3D
TQC circle errorCircle Error
TQC square errorSquare Error
TD3

TD3 balances exploration and robustness, with marked improvements on the square trajectory benchmark.

TD3 circle 3DCircle 3D
TD3 square 3DSquare 3D
TD3 circle errorCircle Error
TD3 square errorSquare Error
TD7

TD7 achieves the strongest steady-state performance and fastest convergence across the benchmark metrics.

TD7 circle 3DCircle 3D
TD7 square 3DSquare 3D
TD7 circle errorCircle Error
TD7 square errorSquare Error

Video