Distributed CNN Inference on Resource-Constrained UAVs for Surveillance Systems: Design and Optimization

Mohammed Jouhari, Abdulla Khalid Al-Ali, Emna Baccour, Amr Mohamed, Aiman Erbad, Mohsen Guizani, Mounir Hamdi

TL;DR

This paper introduces a framework for running complex Deep Learning models on a swarm of resource-constrained drones by distributing neural network layers across the fleet. By optimizing layer placement and predicting drone movement, the authors achieve low-latency "on-device" inference, bypassing the need for unreliable and slow connections to distant cloud servers.

What Problem Does This Paper Address?

Modern surveillance—think forest fire detection or border monitoring—increasingly relies on Unmanned Aerial Vehicles (UAVs) equipped with Deep Neural Networks (DNNs). However, there is a fundamental mismatch: DNNs are getting larger and more memory-intensive, while drones remain resource-constrained in terms of RAM and battery.

Traditionally, drones offload data to the cloud or edge servers. But in "harsh" environments (like remote forests or offshore rigs), communication links are often unstable, high-latency, or non-existent. Running a full model like VGG-16 on a single drone is often impossible due to memory limits. The challenge is: how do we split a CNN across a moving swarm of drones so they can process data collectively without the communication overhead or mobility-induced disconnections ruining the performance?

Methods

The authors propose two primary strategies:

  1. OULD (Optimal UAV-based Layer Distribution): This is an optimization framework that treats the CNN as a sequence of tasks. It uses a 3D decision matrix to assign specific layers of a request to specific drones. The goal is to minimize total latency (computation time + data transfer time between drones) while respecting each drone's individual memory and CPU limits. To make this solvable in real-time, they convert the complex non-linear problem into an Integer Linear Programming (ILP) problem using "Big-M" linearization rules.
  2. OULD-MP (Mobility Prediction): Static distribution fails when drones move. This version incorporates the Reference Point Group (RPG) mobility model to predict future drone locations. By knowing where drones will be over a time horizon ($T$), the system can calculate a "one-shot" distribution plan that remains efficient even as distances (and thus wireless data rates) change, preventing communication outages.

Datasets

The researchers evaluated their system using:

  • Stanford Drone Dataset: Used for a pedestrian surveillance scenario with 595x326 RGB images.
  • CNN Architectures: They benchmarked using LeNet (a small, 7-layer model) and VGG-16 (a deep, 18-layer model) to show how the system scales from simple to complex tasks.

Key Insights and Ideas

  • The Memory Wall: The authors found that memory, rather than raw GFLOPS, is often the primary blocker for on-board AI. Distributing layers effectively "pools" the RAM of the entire swarm.
  • Communication vs. Computation Trade-off: For small models like LeNet, distributing the work can actually increase latency if the communication delay between drones is higher than the time saved by parallel processing. However, as the workload (number of requests) increases, distribution becomes the only way to avoid system failure.
  • Mobility as a Variable: In a drone swarm, the "network topology" is constantly changing. A distribution plan that works at second 1 might cause a "communication outage" at second 10 if the drones move too far apart. Prediction is the "secret sauce" that keeps the inference pipeline stable.
  • Density Paradox: Adding more drones to the swarm increases total capacity but also increases wireless interference, which can degrade the data rates between drones.

Key Results

  • Capacity Boost: A swarm of 10 drones using OULD could handle up to 18 simultaneous LeNet requests, whereas a single drone would fail much earlier due to memory exhaustion.
  • Enabling Heavy Models: VGG-16, which is typically too large for a single Raspberry Pi-class drone, was successfully executed across the swarm with optimized latency.
  • Superiority over Heuristics: The OULD optimization significantly outperformed common-sense "heuristic" approaches, such as simply sending tasks to the "Nearest Neighbor" or the drone with the "Highest Residual Memory."
  • Stability: OULD-MP successfully avoided the communication outages that plagued "offline" or static distribution methods when the drones were in motion.

Limitations and Future Work

  • Model Architecture: The current optimization assumes standard sequential CNNs. It does not explicitly discuss complex architectures with residual blocks (like ResNets) or skip connections, which would complicate the "layer-by-layer" splitting logic.
  • Fixed Altitude: The model assumes drones fly at a fixed altitude, simplifying the path loss calculations.
  • Optimization Overhead: Solving ILP problems can still be computationally expensive as the swarm size grows. The authors suggest that Reinforcement Learning (RL) could be a promising future direction to handle resource allocation more dynamically and with less mathematical overhead.

Summary updated

BibTeX
@article{jouhari2022distributed,
  author = {Mohammed Jouhari and Abdulla Khalid Al-Ali and Emna Baccour and Amr Mohamed and Aiman Erbad and Mohsen Guizani and Mounir Hamdi},
  title = {{Distributed CNN Inference on Resource-Constrained UAVs for Surveillance Systems: Design and Optimization}},
  journal = {IEEE Internet of Things Journal},
  year = {2022},
  url = {https://openreview.net/forum?id=a7pHVRwVq8},
}
Figure