FieldHAR: A Fully Integrated End-to-End RTL Framework for Human Activity Recognition with Neural Networks from Heterogeneous Sensors

Mengxi Liu, Bo Zhou, Zimin Zhao, Hyeonseok Hong, Hyun Kim, Sungho Suh, Vítor Fortes Rey, Paul Lukowicz

Introduction

Human Activity Recognition (HAR) has advanced significantly, moving from simple inertial measurements to complex multi-modal sensing environments. Modern applications often require the integration of heterogeneous sensors—such as gas sensors, thermal arrays, and optical spectrum sensors—to distinguish between nuanced activities like cooking or cleaning. However, deploying these sophisticated models to edge devices remains a challenge. Conventional microcontrollers (MCUs) process instructions sequentially, which can lead to sampling instability and data bottlenecks as sensor counts and model complexity increase.

Field-Programmable Gate Arrays (FPGAs) provide a compelling alternative due to their inherent parallelism. Despite this, the steep learning curve associated with hardware description languages (HDLs) like Verilog has limited their adoption in the HAR research community. This paper introduces FieldHAR, an open-source Register Transfer Level (RTL) framework designed to bridge this gap by providing a fully integrated, end-to-end solution for HAR on FPGAs.

The FieldHAR Architecture

The FieldHAR framework is designed for modularity and scalability. It consists of three primary components: a scalable sensor interface, a top controller module, and a dedicated neural network inference block.

The Scalable Sensor Interface utilizes a hardware library for I2C and SPI protocols, allowing multiple sensors to be sampled in parallel. This ensures that the addition of new sensors does not degrade the sampling frequency of existing ones. Data is buffered in FIFOs and managed by the Top Controller Module, which coordinates the flow between raw data acquisition and the inference engine.

Hardware-Algorithm Co-Optimization

To maximize efficiency on resource-constrained hardware, FieldHAR employs several co-optimization strategies:

  1. Branched CNN Architecture: Instead of simple data concatenation, FieldHAR uses a "feature fusion" approach. Each sensor modality is processed by a dedicated CNN branch, allowing the model to extract meaningful features from low-dimensional sensors (e.g., pressure) before merging them with high-dimensional data (e.g., thermal arrays).
  2. Modality Selection: A trainable importance weight ($\alpha$) is assigned to each sensor branch during training. This allows researchers to identify and prune "lazy" sensors that contribute minimally to accuracy, significantly reducing hardware resource requirements.
  3. Quantization and Normalization: The framework utilizes Post-Training Quantization (PTQ) to convert 32-bit floating-point weights into 11-bit fixed-point integers. Additionally, bias terms are removed through tensor normalization, further reducing the memory footprint.
Detailed RTL architecture of the inference block, showing the hardware implementation of convolution and dense layers.

The Inference Block (shown above) implements the neural network layers directly in RTL. It features optimized Multiply-Accumulate (MAC) units and state machines for weight and feature retrieval, enabling high-speed execution.

Experimental Results

The framework was validated using a sensor-rich kitchen dataset involving 10 subjects performing 10 distinct activities. The system was implemented on a low-end Intel Cyclone IV FPGA.

  • Resource Efficiency: The entire pipeline utilized only 25% of the available logic elements and 2% of the on-chip memory.
  • Performance: The 11-bit quantized hardware model maintained high fidelity, with less than a 1% drop in accuracy compared to the 32-bit offline baseline.
  • Latency and Power: Inference latency was measured at 0.25ms in parallel mode, supporting a throughput of 4,000 labels per second. Total power consumption remained under 140 mW, confirming its suitability for battery-powered wearable devices.

Conclusion

FieldHAR provides a robust, parallelized alternative to MCU-based HAR systems. By integrating data acquisition and neural inference into a single RTL framework, it enables real-time, multi-modal activity recognition at the edge. Future work will focus on expanding layer support to include Recurrent Neural Networks (RNNs) and implementing Quantization-Aware Training (QAT) for even greater efficiency.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Kitchen scenario HARFieldHAR serial ANN implementationInference latency0.54 msHuman Activity Recognition · hardware=Intel Cyclone IV · schedule=serial · precision=11-bit · measurement=inference-block latency
Source quote
L390: Latency^1 (ms) │ 0.54 │ 0.25 │ 0.54 │ 0.25
BibTeX
@inproceedings{liu2023fieldhar,
  author = {Mengxi Liu and Bo Zhou and Zimin Zhao and Hyeonseok Hong and Hyun Kim and Sungho Suh and Vítor Fortes Rey and Paul Lukowicz},
  title = {{FieldHAR: A Fully Integrated End-to-End RTL Framework for Human Activity Recognition with Neural Networks from Heterogeneous Sensors}},
  booktitle = {ASAP},
  year = {2023},
  doi = {10.1109/asap57973.2023.00029},
}
Figure