Enabling Cooperative Inference of Deep Learning on Wearables and Smartphones

Mengwei Xu, Feng Qian, Saumay Pushp

Abstract

Due to their on-body and ubiquitous nature, wearables generate a wide range of unique sensor data, creating countless opportunities for deep learning (DL) tasks. However, these devices are often computationally constrained. We propose DeepWear, a DL framework for wearable devices designed to improve performance and reduce energy footprints. DeepWear strategically offloads DL tasks from a wearable device to its paired handheld device through a local network. Unlike remote-cloud-based offloading, DeepWear requires no Internet connectivity, consumes less energy, and is robust against privacy breaches. DeepWear introduces novel techniques such as context-aware offloading, strategic model partitioning, and pipelining to efficiently utilize the processing capacity of nearby paired handhelds. Deployed as a user-space library, DeepWear offers developer-friendly APIs compatible with traditional DL libraries like TensorFlow. Evaluated on COTS smartphones and smartwatches, DeepWear achieves up to 5.08x and 23.0x execution speedup, as well as 53.5% and 85.5% energy savings compared to wearable-only and handheld-only strategies, respectively.

Introduction

Wearable devices like smartwatches and smart glasses are ideal for continuous health and activity monitoring. However, they are "computationally impoverished." Running modern DL models directly on these devices leads to sluggish performance and rapid battery depletion. While offloading to the cloud is a common workaround, it suffers from connectivity dependencies, high latency/energy costs of cellular data, and significant privacy risks for sensitive sensor data.

DeepWear addresses these challenges by leveraging the fact that most wearables are paired with a powerful smartphone 84% of the time. By treating the smartphone as a local "edge" server, DeepWear enables high-performance inference without the data ever leaving the user's Personal Area Network.

System Design and Methods

DeepWear is an adaptive local offloading framework that optimizes the distribution of neural network layers between a wearable and a smartphone. Its core innovations include:

  • Strategic Model Partitioning: DeepWear identifies optimal "partition points" in a DL model. Instead of a binary choice between local or remote execution, it splits the model at layers where the intermediate data size is minimal, reducing Bluetooth transmission time.
  • Heuristic Graph Simplification: To handle complex, non-linear models like GoogLeNet, DeepWear prunes light nodes and identifies frequent subgraphs. This simplifies complex architectures into linear chains of virtual nodes, making the search for optimal partition points computationally efficient.
  • Context-Aware Scheduling: The framework dynamically monitors real-time factors, including Bluetooth bandwidth, battery levels, and smartphone CPU load, to adjust offloading strategies on the fly.
  • Pipelined Processing: For streaming sensor data, DeepWear implements a pipeline where the smartphone processes the current frame while the wearable begins processing the next, maximizing concurrent hardware utilization.

Evaluation and Key Results

We evaluated DeepWear using eight state-of-the-art DL models across vision (GoogLeNet, MobileNet), sensing (LSTM-HAR, DeepSense), and NLP/Audio (TextRNN, WaveNet) domains. Testing was conducted on commercial hardware, including an LG Watch Urbane and a Nexus 6 smartphone.

Latency Reduction

DeepWear significantly reduces inference latency by finding the balance between local computation and communication overhead. As shown in the performance breakdown, offloading to a smartphone (Nexus 6) drastically reduces the total execution time compared to running models entirely on the wearable (Urbane-CPU).

Latency comparison across four deep learning models showing the impact of offloading from wearables to a smartphone.

Energy Efficiency

Energy consumption is a critical metric for wearables. DeepWear achieves substantial energy savings by offloading heavy computation to the smartphone's CPU or GPU. While communication (Bluetooth) introduces an energy cost, the reduction in local computation energy leads to a net gain for the wearable device.

Energy consumption comparison between local execution on the LG Watch Urbane and offloading to a Nexus 6 smartphone.

Key Insights

  • The Bluetooth Bottleneck: In local offloading, communication is often the primary bottleneck. DeepWear succeeds by specifically targeting layers where the output data size is smaller than the original input.
  • Hardware Heterogeneity: The optimal partition point varies by hardware. DeepWear’s ability to adapt to different device profiles ensures performance gains across various wearable-smartphone pairings.

Conclusion and Future Work

DeepWear demonstrates that cooperative inference between wearables and smartphones can make sophisticated deep learning practical for everyday use. By achieving up to 23x speedup and 85% energy savings, it provides a robust alternative to cloud-based AI. Future research will explore supporting on-device training, managing peak memory constraints, and scaling the framework to support collaborative inference across multiple personal devices (e.g., a watch, phone, and tablet simultaneously).

Summary updated

BibTeX
@article{xu2019enabling,
  author = {Mengwei Xu and Feng Qian and Saumay Pushp},
  title = {{Enabling Cooperative Inference of Deep Learning on Wearables and Smartphones}},
  journal = {IEEE Transactions on Mobile Computing},
  year = {2019},
  doi = {10.1109/tmc.2019.2893250},
}
Figure