UAV-Sim: NeRF-based Synthetic Data Generation for UAV-based Perception

Christopher Maxey, Jaehoon Choi, Hyungtae Lee, Dinesh Manocha, Heesung Kwon

TL;DR

UAV-Sim leverages Neural Radiance Fields (NeRFs) to solve the chronic shortage of high-quality training data for drone-based computer vision. By generating photorealistic synthetic images and automated bounding box labels from limited real-world footage, the researchers achieved a massive 55.85% boost in object detection accuracy at high altitudes and significantly improved dynamic scene reconstruction.

What Problem Does This Paper Address?

Training deep learning models for Unmanned Aerial Vehicles (UAVs) is a logistical nightmare. Procuring diverse data involves navigating flight restrictions, unpredictable weather, and safety concerns. While synthetic data from game engines (like AirSim) exists, it often suffers from a "domain gap"—the fine details of texture and lighting don't match reality, causing models to fail when deployed on actual drones.

Furthermore, a model trained on footage from 15 meters high often fails to recognize the same objects at 50 meters. Collecting labeled data for every possible altitude and viewing angle is impractical. UAV-Sim aims to "hallucinate" these missing perspectives with enough realism to fool—and effectively train—state-of-the-art detectors like YOLOv8.

Methods

The authors propose a pipeline that handles both static environments and dynamic scenes (where people are moving).

  1. Static Scene Synthesis: They use a standard NeRF (Nerfacto) to reconstruct the 3D scene from a few low-altitude images. To automate labeling, they train a second NeRF ($f_{bbox}$) specifically on masked images of the objects of interest. This allows the system to generate a novel view and its corresponding bounding boxes simultaneously without human intervention.
  2. Dynamic Scene Synthesis (Extended K-Planes): Standard NeRFs struggle with movement. The authors extended the "K-Planes" architecture, which factors 4D space-time into 2D planes. Their "Extended K-Planes" model explicitly separates static spatial planes from dynamic temporal planes.
  3. Loss Functions: They introduced a cosine-similarity loss to force the model to distinguish between static background features and moving foreground objects. This prevents the model from "blurring" the two together when the drone's camera shakes.
  4. Hybrid Training: The final object detection model (YOLOv8) is trained on a "Real + Synthetic" (R+S) dataset, combining original footage with NeRF-generated views from unseen altitudes and angles.

Datasets

  • Archangel: A dataset of people in various poses (standing, kneeling, prone) in an open field, captured at altitudes ranging from 15m to 50m.
  • Okutama-Action: A more complex dataset featuring multiple actors performing activities (walking, running, etc.) in a baseball stadium, used to test the dynamic scene synthesis.

Key Insights and Ideas

  • The Altitude Bridge: The most striking insight is that a NeRF trained on 15m altitude data can successfully render what that scene looks like from 50m. This "extrapolation" provides the visual variety needed to make detectors robust to different flight heights.
  • Automated Labeling via Masked NeRFs: Instead of using error-prone depth-map projections to move bounding boxes to new views, training a separate NeRF on object masks creates "perfect" labels for synthetic data.
  • Decoupling Space and Time: In dynamic UAV footage, camera jitter often gets confused with object motion. By explicitly separating static and dynamic planes in their Extended K-Planes model, they reduced artifacts and improved image sharpness (measured by a 3.85-point increase in PSNR).

Key Results

  • Static Performance: On the Archangel dataset, a YOLOv8n model trained on the hybrid (Real + Synthetic) dataset saw a 55.85% improvement in mAP50 at 50m altitude compared to a model trained only on real 15m data.
  • Dynamic Performance: For the Okutama-Action dataset, the hybrid approach yielded a 12.4% improvement in detection accuracy.
  • Visual Fidelity: The Extended K-Planes model significantly outperformed the "stock" version, effectively removing the ghosting and blur common in dynamic NeRF reconstructions.

Limitations and Future Work

While the results are promising, the authors noted a few hurdles:

  • Bounding Box Errors: The automated labeling system isn't perfect; errors in the $f_{bbox}$ NeRF can lead to noisy labels that slightly hinder the training of larger, more sensitive models (like YOLOv8s).
  • Extrapolation Limits: While NeRFs are great at interpolating between views, they still struggle if the "novel" view is too far removed from the original training trajectory.
  • Pose Estimation: The system relies on Structure-from-Motion (SfM) to determine camera positions. If the drone footage is too shaky or lacks features, the SfM fails, which in turn causes the NeRF to fail. Future work will focus on making the system more resilient to noisy camera pose data.

Summary updated

BibTeX
@inproceedings{maxey2024uav,
  author = {Christopher Maxey and Jaehoon Choi and Hyungtae Lee and Dinesh Manocha and Heesung Kwon},
  title = {{UAV-Sim: NeRF-based Synthetic Data Generation for UAV-based Perception}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10611523},
}
Figure