A Predictive Application Offloading Algorithm Using Small Datasets for Cloud Robotics

Manoj Penmetcha, Shyam Sundar Kannan, Byung-Cheol Min

Introduction

Mobile robots often face a computational "tug-of-war." While onboard hardware is fixed and limited, modern tasks such as high-resolution path planning and computer vision are increasingly resource-intensive. Cloud computing offers a scalable solution by providing on-demand processing power; however, it introduces the variable of network latency.

The challenge lies in dynamic offloading: deciding in real-time whether a specific task will execute faster locally or in the cloud. Traditional solutions often rely on complex Machine Learning (ML) models, such as Deep Reinforcement Learning, which suffer from a "cold start" problem—requiring massive datasets and extensive training before becoming operational. This paper presents a lightweight, predictive algorithm designed to make smart offloading decisions using a minimal window of recent observations.

System Architecture and Methodology

The proposed predictive algorithm ($\Psi$) learns "on the job" by maintaining a sliding window of recent execution history. The system architecture facilitates continuous data collection and model updating without prior knowledge of the environment.

System architecture showing the flow from the Gazebo environment through the planning nodes to the FIFO array and linear regression model.

The Predictive Mechanism

  1. Sliding Window: The algorithm maintains two First-In-First-Out (FIFO) queues of size $N$, storing local execution times ($t^l$) and cloud execution times ($t^c$) alongside their corresponding input data sizes ($d$).
  2. Linear Regression: For every new task, the system performs a simple linear regression on the data within these small queues. It predicts the expected execution time ($p$) based on the current input data size.
  3. Decision Rule: If the predicted cloud time (including network latency) is lower than the predicted local time, the task is offloaded. Otherwise, it is processed onboard.
  4. Online Learning: Initially, the robot executes tasks on both platforms to populate the queues. Once the window size $N$ is reached, the robot begins making optimized decisions, continuously updating the model to adapt to fluctuating network conditions or CPU loads.

Experimental Setup

The researchers validated the approach using a Gazebo simulation of a "Husky" mobile robot performing path planning via Dijkstra’s algorithm. To quantify the task complexity, the input data size ($d$) was calculated based on the number of grid nodes ($n$) the robot needed to explore, specifically using the complexity metric $n \log n$.

Schematic representation of how input data size is calculated based on the grid nodes within the navigation path area.

A dataset of 1,000 observations was generated, comparing execution times between a local laptop (Intel i7) and an AWS cloud instance (p2.xlarge). The algorithm was tested across various window sizes ($N$), ranging from 5 to 500, to identify the minimum data required for reliable performance.

Key Insights and Results

Efficiency with Small Datasets

The most significant finding is that "Big Data" is not a prerequisite for effective offloading. The algorithm reached acceptable error rates and high decision accuracy once the window size ($N$) exceeded 40 observations. At $N=40$, the system correctly chose the faster execution path 76.32% of the time, improving to 79.62% at $N=100$.

Simplicity vs. Complexity

When compared to a complex Long Short-Term Memory (LSTM) neural network, the simple linear regression model surprisingly performed better, achieving ~83% accuracy versus the LSTM’s ~75% on the same dataset. This suggests that for the linear or near-linear relationships common in many robotic algorithms, lightweight models are both more efficient and more accurate.

Sensitivity and Adaptability

Local execution time showed a strong correlation with input data size ($r = 0.69$), whereas cloud execution time was less sensitive ($r = 0.27$). This discrepancy occurs because cloud overhead and network latency often mask the actual processing time for smaller tasks. Because the model only considers the most recent $N$ points, it naturally adapts to exogenous factors like sudden drops in Wi-Fi signal strength or background processes consuming local CPU resources.

Conclusion

This research demonstrates that robots can make sophisticated offloading decisions with negligible training time. By utilizing a sliding window and simple linear regression, the system avoids the "cold start" problem of deep learning while maintaining high accuracy and adaptability. Future work will explore non-linear computational complexities and multi-dimensional regressions that incorporate energy consumption and battery levels into the decision-making process.

Summary updated

BibTeX
@inproceedings{penmetcha2021predictive,
  author = {Manoj Penmetcha and Shyam Sundar Kannan and Byung-Cheol Min},
  title = {{A Predictive Application Offloading Algorithm Using Small Datasets for Cloud Robotics}},
  booktitle = {SMC},
  year = {2021},
  url = {https://openreview.net/forum?id=iRxDJroErQ},
}
Figure