Abstract
Due to their on-body and ubiquitous nature, wearables can generate a wide range of unique sensor data creating countless opportunities for deep learning tasks. We propose DeepWear, a deep learning (DL) framework for wearable devices to improve performance and reduce the energy footprint. DeepWear strategically offloads DL tasks from a wearable device to its paired handheld device through a local network. Compared to remote-cloud-based offloading, DeepWear requires no Internet connectivity, consumes less energy, and is robust to privacy breaches. DeepWear provides various novel techniques such as context-aware offloading, strategic model partition, and pipelining support to efficiently utilize the processing capacity from nearby paired handhelds. Deployed as a user-space library, DeepWear offers developer-friendly APIs that are as simple as those in traditional DL libraries such as TensorFlow. We have implemented DeepWear on the Android OS and evaluated it on COTS smartphones and smartwatches with real DL models. DeepWear brings up to 5.08X and 23.0X execution speedup, as well as 53.5% and 85.5% energy saving compared to wearable-only and handheld-only strategies, respectively.
Introduction: The Hardware Headache
Wearable devices like smartwatches and smart glasses are ubiquitous sensors, capturing a wealth of data—from heart rate and motion to vision—that is perfect for deep learning. However, running complex DL models directly on these devices is a significant challenge due to limited processing power and small battery capacities.
While offloading to the cloud is a common alternative, it introduces high latency, requires constant internet connectivity, and raises privacy concerns regarding sensitive personal data. DeepWear addresses these issues by treating a paired smartphone as a local "edge" server. The core challenge lies in determining when and how to offload, given that Bluetooth bandwidth is limited and the smartphone's resources may be constrained.
Methodology
DeepWear introduces a holistic system for Adaptive Local Offloading with several key components:
- Strategic Model Partitioning: Instead of binary offloading, DeepWear can split a DL model. Running initial layers on the wearable and the remainder on the handheld can reduce data transmission size, mitigating Bluetooth delays.
- Heuristic-based Partitioning Algorithm: To handle complex networks like GoogLeNet, the authors developed an algorithm that simplifies models into linear chains of virtual nodes, making the search for optimal split points computationally feasible.
- Context-Aware Scheduling: An online scheduler monitors real-time factors, including Bluetooth bandwidth and device CPU/battery levels, to choose the optimal execution strategy dynamically.
- Pipelining for Streaming Data: For continuous tasks, DeepWear uses a pipeline approach where the wearable and handheld process consecutive frames simultaneously, significantly boosting throughput.
Evaluation and Key Results
The framework was evaluated using eight representative DL models across vision, sensing, and NLP domains on commercial hardware (LG Watch Urbane and Nexus 6). DeepWear achieved an average speedup of 1.95x to 2.62x, with peaks of 23.0x compared to wearable-only execution.
Energy efficiency is a standout result, with the system saving up to 53.5% energy for the wearable. As shown in the energy breakdown for GoogLeNet and LSTM-HAR, offloading significantly reduces the energy burden on the wearable device.
Key Insights: Navigating the Bluetooth Bottleneck
A critical insight from the study is that the speed of a smartphone's GPU can be negated by the time required to transmit data over Bluetooth. Offloading is only advantageous when the computation time saved exceeds the communication overhead.
The research identified a "sweet spot" for partial offloading: internal layers where data size shrinks significantly. Splitting the model here minimizes the Bluetooth bottleneck. Furthermore, the system's dynamic nature allows it to adapt to changing conditions, such as spikes in the handheld's CPU load, ensuring consistent performance.
Limitations and Future Work
DeepWear currently focuses on inference. Future extensions could include support for on-device training, which would require new models to predict latency and energy for backpropagation. Additionally, incorporating memory constraints into the offloading decision and exploring multi-device ecosystems (e.g., offloading to both a phone and a tablet) are promising directions for future research.
Summary updated