ESOD:Edge-based Task Scheduling for Object Detection

Yihao Wang, Ling Gao, Jie Ren, Rui Cao, Hai Wang, Jie Zheng, Quanli Gao

TL;DR

This paper introduces ESOD, a novel edge-based task scheduling framework for object detection on mobile devices. ESOD intelligently offloads tasks to edge servers based on image characteristics, achieving significant reductions in latency and energy consumption while maintaining or improving detection accuracy compared to state-of-the-art models.

What Problem Does This Paper Address?

Deploying sophisticated object detection models on mobile devices presents a significant challenge. While these models achieve high precision, their computational demands are often too high for resource-constrained mobile hardware, leading to unacceptable latency and energy consumption. Existing lightweight models sacrifice accuracy for efficiency. This paper addresses the need for a system that can deliver high detection accuracy on mobile devices without incurring prohibitive computational costs, by intelligently leveraging edge computing resources.

Methods

The core of ESOD is a novel edge-based task scheduling framework. It involves:

  1. Pre-classification Model: A lightweight DNN trained to analyze image features (e.g., brightness, saturation, texture) and predict the complexity of the object detection task.
  2. Task Scheduling: Based on the pre-classification output, ESOD decides whether to perform inference locally on the mobile device using a lightweight model or offload the task to a more powerful edge server with a high-precision model.
  3. Model and Platform Selection: The framework considers multiple object detection models and edge computing platforms (e.g., Raspberry Pi, Jetson TX2, Zynq 7020) to find the optimal combination for a given task, balancing precision, latency, and energy consumption.
  4. Loss Function: A modified loss function is proposed, incorporating confidence and area loss for unmatched bounding boxes, in addition to the standard bounding box loss, to better penalize mismatches.

Datasets

The paper mentions using the Microsoft COCO 2017 dataset for pre-training models and evaluating performance.

Key Insights and Ideas

  • Intelligent Offloading is Key: The paper demonstrates that simply using lightweight models on mobile isn't enough; intelligently deciding when and where to offload tasks is crucial for balancing performance and resource usage.
  • Image Characteristics as Predictors: Using simple image features (brightness, saturation, texture) as input to a pre-classification model is an effective and low-cost way to gauge task complexity.
  • Trade-offs are Manageable: ESOD provides a framework to explicitly manage the trade-off between detection precision, inference time, and energy consumption, allowing users to prioritize based on their needs (e.g., using weighting factors α, β, γ).
  • Edge Heterogeneity Matters: The performance of models varies significantly across different edge platforms, highlighting the importance of considering platform capabilities in the scheduling strategy.

Key Results

  • Latency Reduction: ESOD reduces average inference latency by 22.13% compared to using DETR on a local platform.
  • Energy Consumption Reduction: ESOD reduces average inference energy consumption by 29.60% compared to using DETR on a local platform.
  • mAP Improvement: ESOD improves the mAP to 45.8, which is 0.9 mAP better than the SOTA DETR model.
  • When time is the primary optimization criterion, ESOD achieves a 99.87% reduction in average inference time and a 95.5% reduction in average energy consumption.
  • When energy consumption is the primary optimization criterion, ESOD achieves a 99.22% reduction in average inference time and a 98.04% reduction in average energy consumption.

Limitations and Future Work

  • Pre-classification Model Accuracy: While the MLP pre-classification model achieves 84.06% accuracy on the test set, further improvements could lead to even better scheduling decisions.
  • Model Complexity vs. Precision: The paper notes that while their modified loss function helps with medium-scale objects, it might make the model less effective for very large objects compared to DETR.
  • Future Work: The authors suggest exploring more advanced pre-classification models and expanding the range of object detection models and edge platforms considered. They also implicitly suggest further refinement of the loss function and scheduling strategy to optimize for specific object sizes or scenarios.

Summary updated

Abstract

Object Detection on the mobile system is a challenge in terms of everything. Nowadays, many object detection models have been designed, and most of them concentrate on precision. However, the computation burden of those models on mobile systems is unacceptable. Researchers have designed some lightweight networks for mobiles by sacrificing precision. We present a novel edge-based task scheduling framework for object detection (termed as ESOD) . In detail, we train a DNN model (termed as pre-model) to predict which object detection model to use for the coming task and offloads to which edge servers by physical characteristics of the image task (e.g., brightness, saturation). The results show that ESOD can reduce latency and energy consumption by an average of 22.13% and 29.60% and improve the mAP to 45.8(with 0.9 mAP better), respectively, compared with the SOTA DETR model.
BibTeX
@misc{wang2021esod,
  author = {Yihao Wang and Ling Gao and Jie Ren and Rui Cao and Hai Wang and Jie Zheng and Quanli Gao},
  title = {{ESOD:Edge-based Task Scheduling for Object Detection}},
  year = {2021},
  eprint = {2110.11342},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.11342},
}
Figure