Ultra-Efficient On-Device Object Detection on AI-Integrated Smart Glasses with TinyissimoYOLO

Julian Moosmann, Pietro Bonazzi, Yawei Li, Sizhen Bian, Philipp Mayer, Luca Benini, Michele Magno · DOI

Introduction

Smart glasses represent the next frontier of wearable computing, yet they are currently constrained by a "power-performance-privacy" trilemma. To remain fashionable and lightweight, these devices must utilize small batteries, which typically forces them to offload AI tasks to smartphones or the cloud. This offloading introduces latency, increases power consumption via wireless transmission, and raises significant privacy concerns.

Researchers from ETH Zürich and the University of Bologna have addressed these challenges by developing a holistic hardware-software co-design. Their platform enables real-time, multi-class object detection entirely on-device, achieving all-day battery life without compromising user privacy.

The smart glasses prototype featuring integrated AI hardware within the frame temples.

Hardware-Software Co-Design

The system's efficiency stems from the integration of specialized hardware with a custom-built model family:

  1. Hardware Platform: The core of the system is the GAP9, a multi-core RISC-V processor from Greenwaves Technologies. It features a "Neural Engine" (NE16) accelerator specifically designed to handle heavy convolutional workloads with extreme energy efficiency.
  2. TinyissimoYOLO Family: The researchers developed ultra-lightweight models based on YOLOv5, YOLOv8, and YOLOv10. By using aggressive channel and depth multipliers (e.g., 0.15x), they kept parameter counts below 1 million.
  3. Architectural Innovations: TinyissimoYOLOv1.3 incorporates a YOLOv8-style detection block, decoupling parameter growth from the number of object classes. This allows the model to detect up to 80 classes (MS-COCO) within a sub-1MB memory footprint.
System architecture overview showing the development board (a) and the functional block diagram (b) highlighting the interaction between the Master MCU and the GAP9 AI-MCU.

Optimization and Performance

The models were trained using the Ultralytics framework and optimized via Post-Training Quantization (PTQ) to 8-bit integers. An "Autotiler" tool was employed to generate optimized C-code, minimizing memory stalls between L1, L2, and L3 on-chip memory levels.

Key performance metrics include:

  • End-to-End Speed: 18 FPS (including capture, demosaicing, and inference), more than doubling the performance of previous state-of-the-art systems like MCUNet (7.3 FPS).
  • Low Latency: Core AI inference takes as little as 16.86ms.
  • Ultra-Low Power: The entire system draws only 62.9mW during continuous operation.
  • Extended Battery Life: On a 154mAh battery, the glasses achieve 9.3 hours of continuous operation, significantly outperforming commercial competitors.

Key Insights

The study demonstrates that the GAP9’s multi-core architecture is highly effective for parallelizing workloads, with TinyissimoYOLOv1.3 achieving 43.37 MACs per cycle. The researchers provide a Pareto frontier for developers: v1.3-Small offers the highest speed and lowest energy (1.27mJ/inference), while v8-Big or v10 provide higher accuracy (up to 49% mAP on PascalVOC) at the cost of increased energy consumption.

Limitations and Future Work

While the system excels in efficiency, it currently operates at a 256x256 resolution, which may limit the detection of small or distant objects. Future work will focus on improving model density to increase mAP on complex datasets like MS-COCO and adapting the architecture for specialized domains such as industrial safety and medical aids.

The project's code is open-source and available at: github.com/ETH-PBL/TinyissimoYOLO

Summary updated

BibTeX
@inproceedings{moosmann2024ultra,
  author = {Julian Moosmann and Pietro Bonazzi and Yawei Li and Sizhen Bian and Philipp Mayer and Luca Benini and Michele Magno},
  title = {{Ultra-Efficient On-Device Object Detection on AI-Integrated Smart Glasses with TinyissimoYOLO}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-91989-3\_17},
}
Figure