NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HW-SW Optimization of DNNs for Privacy-preserving People Counting on Low-resolution Infrared Arrays

Matteo Risso, Chen Xie, Francesco Daghero, Alessio Burrello, Seyedmorteza Mollaei, Marco Castellano, Enrico Macii, Massimo Poncino, Daniele Jahier PagliariarXiv 2024

TL;DR

This paper introduces a full-stack hardware-software co-design flow for privacy-preserving people counting using low-resolution infrared (IR) sensors. By combining automated neural architecture search, mixed-precision quantization, and a custom RISC-V microcontroller architecture called MAUPITI, the authors achieve up to a 4.2× reduction in model size and a 15.38× reduction in energy consumption compared to state-of-the-art solutions at identical accuracy.

What Problem Does This Paper Address?

Smart buildings and cities increasingly rely on people counting to optimize space occupancy and manage pedestrian flows. However, traditional video-based systems raise significant privacy and legal concerns because they capture high-resolution visual data. Low-resolution thermal IR arrays offer a privacy-preserving alternative by capturing body heat patterns rather than facial details.

The challenge lies in the deployment: running Deep Neural Networks (DNNs) directly on edge sensor nodes is highly desirable to avoid energy-hungry wireless data transfers, but these nodes have extremely constrained memory and energy budgets. Previous attempts relied on manual, coarse-grained DNN architecture tuning, which is time-consuming and often yields sub-optimal deployment configurations.

Methods

The authors tackle this challenge with a highly automated, full-stack optimization flow spanning from software down to custom silicon:

[Seed Network] -> [1. Architecture Optimization (DNAS)] -> [2. Precision Optimization (QAT)] -> [3. Post-Processing (Majority Voting)] -> [4. Compile & Deploy (MAUPITI)]

1. Software Optimization Flow

  • Architecture Optimization: The flow starts with a mask-based Differentiable Neural Architecture Search (DNAS) using the PIT library. Instead of training massive supernets, it structurally prunes channels from a baseline "seed" network during a standard training loop, optimizing for a balance between accuracy and hardware cost (MACs/parameters).
  • Precision Optimization: The pruned models undergo Quantization-Aware Training (QAT) to convert standard FLOAT32 weights and activations into low-bitwidth integers. The authors employ a mixed-precision scheme restricted to INT4 and INT8 formats to match the hardware capabilities.
  • Post-Processing: To smooth out sporadic mispredictions, the authors implement a temporal majority-voting scheme. By storing recent predictions in a lightweight FIFO queue, they exploit temporal correlation across subsequent frames with virtually zero latency or energy overhead.

2. Hardware Platform (MAUPITI)

The software is deployed on MAUPITI, a custom smart sensor prototype taped out in 130nm CMOS technology. It integrates:

  • A 16×16 array of thermal MOSFET (TMOS) sensors.
  • A customized IBEX RISC-V core enhanced with a Single-Instruction-Multiple-Data (SIMD) Sum of Dot Product (SDOTP) unit. This unit natively accelerates 4×4-bit and 8×8-bit vector MAC operations in a single cycle, adding less than 7% area overhead to the vanilla core.

Datasets

The software flow was evaluated using the open-source LINAIGE dataset.

  • Characteristics: It contains 25,110 labeled thermal samples across 5 distinct environmental sessions.
  • Resolution: The data is captured via an 8×8 IR array sensor, with labels indicating the presence of 0 to 3 people.
  • Evaluation Protocol: The authors utilized a rigorous leave-one-session-out cross-validation scheme to ensure environmental generalization.

Key Insights and Ideas

  • Hardware-Software Co-Constraint: A key highlight is the tight coupling between hardware design choices and software search spaces. QAT experiments revealed that 2-bit precision severely degraded accuracy, which directly informed the hardware decision to support only INT4 and INT8 vector operations, saving significant silicon area.
  • Zero-Cost Temporal Smoothing: Instead of re-computing predictions over multiple frames (which incurs high latency and energy costs), simply keeping a history of past inferences in a FIFO queue provides a "free" accuracy boost by filtering out noise.
  • Pragmatic Hardware Specialization: Rather than building a highly flexible but area-heavy accelerator, the authors restricted the custom ISA extensions (e.g., avoiding unsigned variants or combined MAC&Load instructions). This minimalist approach kept the core area overhead under 7%, compared to ~17.5% in similar state-of-the-art mixed-precision extensions.

Key Results

  • Vs. State-of-the-Art (Software): Compared to the best hand-tuned models on the LINAIGE dataset, the automated flow produced models that were up to 2.4× smaller and required 3.3× fewer MACs for high-accuracy targets (>80% Balanced Accuracy Score). At the lowest memory tier, the models were 4.2× smaller at iso-accuracy.
  • Post-Processing Gains: The majority-voting mechanism provided up to a 6.7% improvement in Balanced Accuracy Score without altering the underlying model size or energy per inference.
  • Hardware Efficiency: When deployed on the custom MAUPITI platform, the hardware extensions yielded up to a 17.9% energy reduction per inference compared to a vanilla IBEX core.
  • System-Level Impact: Compared to an off-the-shelf microcontroller solution (STM32L4R5 running 8-bit quantized models via X-CUBE-AI), MAUPITI demonstrated up to a 6.78× reduction in code size, a 20.22× reduction in data footprint, and up to a 1.9× improvement in energy efficiency.

Limitations and Future Work

The primary limitation acknowledged by the authors is a resolution mismatch between their evaluation dataset and their hardware. While the MAUPITI chip features a 16×16 TMOS thermal array, it was evaluated on the 8×8 LINAIGE dataset because it is currently the largest publicly available benchmark. Consequently, the small geometry of the layers limited the full potential of the SIMD hardware extensions, which perform better on wider channel dimensions.

The authors note that future work will focus on collecting a dedicated 16×16 thermal dataset using the MAUPITI prototype to fully exploit the hardware's capabilities.

Summary updated

BibTeX
@misc{risso2024hw,
  author = {Matteo Risso and Chen Xie and Francesco Daghero and Alessio Burrello and Seyedmorteza Mollaei and Marco Castellano and Enrico Macii and Massimo Poncino and Daniele Jahier Pagliari},
  title = {{HW-SW Optimization of DNNs for Privacy-preserving People Counting on Low-resolution Infrared Arrays}},
  year = {2024},
  eprint = {2402.01226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01226},
}
Figure