nanoML for Human Activity Recognition

Alan T. L. Bacellar, Mugdha P. Jadhao, Shashank Nag, Priscila M. V. Lima, Felipe M. G. França, Lizy K. JohnarXiv 2025 · DOI

Introduction

Human Activity Recognition (HAR) is a foundational technology in modern health informatics, enabling wearable devices to distinguish between activities such as walking, sitting, or climbing stairs. While state-of-the-art deep learning architectures like Convolutional Neural Networks (CNNs) and Transformers have achieved high accuracy, they suffer from a significant "energy gap." These models typically require millions of floating-point operations (FLOPs), which rapidly deplete the battery life of edge devices and often necessitate complex preprocessing. This research introduces a "nanoML" approach using Differentiable Weightless Neural Networks (DWNs) to bridge this gap, offering high-performance activity tracking with unprecedented energy efficiency.

Methodology: The Weightless Paradigm

Traditional neural networks rely on weighted connections and arithmetic operations. In contrast, Weightless Neural Networks (WNNs) utilize Lookup Tables (LUTs) as their primary processing units. In this architecture, input bits are concatenated to form an address, and the output is retrieved directly from the corresponding memory location in the LUT. This shift from arithmetic to memory access effectively eliminates the need for power-hungry multipliers and adders.

Architecture of the Differentiable Weightless Neural Network (DWN) for Human Activity Recognition.

To make these networks effective for HAR, the authors implemented several key innovations:

  • Thermometer Unary Encoding: Because WNNs operate on binary inputs, raw sensor data is converted using a "thermometer" scheme. This preserves the magnitude of accelerometer and gyroscope signals in a format compatible with LUT addressing.
  • Differentiability via EFD: Historically, the discrete nature of LUTs made them difficult to train using gradient-based methods. This work employs the Extended Finite Difference (EFD) technique to approximate gradients, allowing the entire model to be trained end-to-end with standard optimizers like Adam.
  • Learnable Mappings: Unlike earlier weightless models that used fixed or random connectivity, DWNs learn the optimal mapping of input signals to LUT addresses, maximizing the model's representational power.

Experimental Results

The proposed DWN models were evaluated using the UCI Human Activity Recognition (HAR) Dataset, which contains raw 3-axis accelerometer and gyroscope data. The models were deployed on a Xilinx FPGA to leverage native hardware LUTs.

As shown in the comparison below, the DWN achieves accuracy levels competitive with traditional deep learning models while operating at a fraction of the computational cost. Notably, the DWN requires zero FLOPs, as its inference logic is entirely based on memory lookups and bitwise operations.

Performance comparison of DWN against state-of-the-art HAR models.

Key Performance Metrics:

  • Accuracy: The models achieved between 96.34% and 96.67% accuracy, matching or exceeding several established deep learning benchmarks.
  • Energy Efficiency: The energy cost per sample was reduced to as low as 56nJ. Compared to traditional CNNs, this represents an energy reduction of up to 926,000x.
  • Latency and Footprint: Inference takes a mere 5 nanoseconds per sample. Furthermore, the model size is extremely compact, ranging from 19.5KiB to 39.1KiB, which is roughly 260x smaller than comparable CNN architectures.

Conclusion and Future Work

By moving away from the "weighted" paradigm, this research demonstrates that it is possible to achieve state-of-the-art HAR performance with "nanojoule-level" energy consumption. This makes DWNs an ideal candidate for permanent, always-on deployment in ultra-low-power wearables. Future research will focus on scaling these architectures to handle multi-modal sensor data (e.g., combining motion with heart rate) and exploring custom ASIC implementations to further push the boundaries of energy efficiency in the nanoML domain.

Summary updated

BibTeX
@misc{bacellar2025nanoml,
  author = {Alan T. L. Bacellar and Mugdha P. Jadhao and Shashank Nag and Priscila M. V. Lima and Felipe M. G. França and Lizy K. John},
  title = {{nanoML for Human Activity Recognition}},
  year = {2025},
  eprint = {2502.12173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.12173},
}
Figure