Data-driven Software-based Power Estimation for Embedded Devices
Haoyu Wang, Xinyi Li, Ti Zhou, Man Lin
TL;DR
The paper tackles the lack of software-based power measurement for embedded IoT devices and the unreliability of consumer-grade meters for instantaneous readings. It introduces a data-driven pipeline that collects training data from CPU-heavy workloads while recording frequency and utilization traces, then trains models—including a per-frequency polynomial regression—that can predict power with high accuracy. Among the evaluated models, the per-frequency regression achieves $R^2=0.9221$ and $MSE=0.0182$, corresponding to about 92% explained variance, validating the approach on Jetson Nano and Raspberry Pi. A platform-independent kernel module, DataTracker, enables real-time trace collection, making the method practical for energy-aware scheduling and control in devices lacking built-in power measurement capabilities.
Abstract
Energy measurement of computer devices, which are widely used in the Internet of Things (IoT), is an important yet challenging task. Most of these IoT devices lack ready-to-use hardware or software for power measurement. In this paper, we propose an easy-to-use approach to derive a software-based energy estimation model with external low-end power meters based on data-driven analysis. Our solution is demonstrated with a Jetson Nano board and Ruideng UM25C USB power meter. Various machine learning methods combined with our smart data collection & profiling method and physical measurement are explored. Periodic Long-duration measurements are utilized in the experiments to derive and validate power models, allowing more accurate power readings from the low-end power meter. Benchmarks were used to evaluate the derived software-power model for the Jetson Nano board and Raspberry Pi. The results show that 92\% accuracy can be achieved by the software-based power estimation compared to measurement. A kernel module that can collect running traces of utilization and frequencies needed is developed, together with the power model derived, for power prediction for programs running in a real environment. Our cost-effective method facilitates accurate instantaneous power estimation, which low-end power meters cannot directly provide.
