Drone-based Joint Density Map Estimation, Localization and Tracking with Space-Time Multi-Scale Attention Network

Longyin Wen, Dawei Du, Pengfei Zhu, Qinghua Hu, Qilong Wang, Liefeng Bo, Siwei LyuarXiv 2019

Introduction

Crowd analysis is a critical component of urban planning, public safety, and traffic management. While traditional methods rely on static surveillance cameras, the rise of unmanned aerial vehicles (UAVs) offers a more flexible and wide-reaching perspective. However, drone-based crowd analysis introduces significant technical hurdles. Unlike fixed cameras, drones operate at varying altitudes, leading to extreme scale variations. High-angle viewpoints often reduce individuals to indistinguishable dots, and constant camera movement introduces temporal instability that complicates tracking.

To address these challenges, this research introduces a unified framework for joint density map estimation, localization, and tracking. The core contributions include the Space-Time Multi-Scale Attention Network (STANet) and the DroneCrowd dataset, the largest and most detailed benchmark for aerial crowd analysis to date.

The DroneCrowd Dataset

A major bottleneck in aerial crowd research has been the lack of high-quality, large-scale datasets that include temporal information. Existing datasets are often limited to static images or fixed viewpoints. The authors released DroneCrowd to bridge this gap. It consists of 112 video clips (33,600 frames) captured at 1080p resolution, featuring 4.8 million manual head annotations across 20,800 unique trajectories.

Figure 5: Example of a high-altitude, crowded sunny scene from the DroneCrowd dataset, illustrating the difficulty of identifying individual heads at scale.

The dataset is meticulously categorized by illumination (Cloudy, Sunny, Night), altitude (High, Low), and density (Crowded, Sparse), providing a rigorous testing ground for robustness across diverse operational environments.

Methodology: The STANet Architecture

The proposed STANet moves beyond simple counting by integrating spatial and temporal features through a multi-task learning approach. The architecture is built on three primary pillars:

1. Multi-Scale Feature Aggregation

Using a VGG-16 backbone within a U-Net style architecture, STANet extracts features at multiple resolutions. This allows the model to maintain sensitivity to both large heads captured at low altitudes and tiny clusters of pixels seen from high above.

2. Space-Time Attention Mechanism

To handle the "moving camera" problem, the model compares the current frame ($t$) with a previous frame ($t-\tau$). By employing deformable convolutions and a coarse-to-fine attention mechanism, STANet focuses on discriminative features that persist over time. This temporal coherency acts as a filter, helping the network ignore static background objects (like manhole covers) that might otherwise be mistaken for human heads.

3. Joint Multi-Task Learning

The network is optimized using a composite loss function that balances three objectives:

  • Density Loss: Ensures overall counting accuracy.
  • Localization Loss: Refines the $(x, y)$ coordinates of individual heads.
  • Association Loss: Utilizes a Batch Hard Triplet Loss to learn unique feature signatures, which are then used by a Min-Cost Flow tracking backend to generate smooth trajectories.
Figure 6: Tracking results in a low-altitude, crowded cloudy environment. The colored lines represent the trajectories generated by the joint association features.

Experimental Results

STANet demonstrates state-of-the-art (SOTA) performance across multiple benchmarks. On the DroneCrowd dataset, it achieved a Mean Absolute Error (MAE) of 16.7, significantly outperforming established models like CSRNet (19.8).

Crucially, the research found that joint localization improves density estimation. The spatial constraints of finding individual points act as a regularizer, preventing the over-smoothing common in pure density-map approaches. The model also showed strong generalization, remaining competitive on static image datasets like UCF-QNRF with an MAE of 107.6.

Conclusion and Future Work

While STANet sets a new bar for drone-based crowd analysis, challenges remain. The model currently operates at 2.74 FPS, which is insufficient for real-time onboard processing. Future iterations will likely focus on model distillation to reach the 20-30 FPS required for live flight. Additionally, extremely high-density scenarios where heads overlap significantly continue to pose a challenge for both localization and tracking accuracy. Nevertheless, the combination of STANet and the DroneCrowd dataset provides a robust foundation for the next generation of aerial robotics in urban environments.

Summary updated

BibTeX
@misc{wen2019drone,
  author = {Longyin Wen and Dawei Du and Pengfei Zhu and Qinghua Hu and Qilong Wang and Liefeng Bo and Siwei Lyu},
  title = {{Drone-based Joint Density Map Estimation, Localization and Tracking with Space-Time Multi-Scale Attention Network}},
  year = {2019},
  eprint = {1912.01811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.01811},
}
Figure