This paper, recently accepted for the ECCV 2024 Workshops, presents a significant leap in wearable AI: a hardware-software co-design that enables smart glasses to perform real-time object detection entirely on-device, maintaining an "all-day" battery life. By combining a novel multi-core RISC-V processor with a new family of sub-million parameter neural networks called TinyissimoYOLO, the researchers achieved 18 frames per second (FPS) detection with a power envelope of just 62.9mW.
TL;DR
The authors developed a custom smart glasses platform and a family of ultra-lightweight "TinyissimoYOLO" models that perform on-device object detection at 18 FPS. Consuming only 62.9mW, the system can run for over 9 hours on a tiny 154mAh battery, significantly outperforming existing microcontroller-based vision pipelines in both speed and task complexity.
What Problem Does This Paper Address?
Current commercial smart glasses (like Ray-Ban Meta) are often "smart" in name only when it comes to AI. Due to the extreme constraints of small form factors and limited battery capacity, these devices typically act as sensors that stream data to a smartphone or the cloud for processing. This approach introduces latency, consumes significant power for wireless transmission, and raises serious privacy concerns.
The challenge lies in the "missing middle": standard mobile AI models (like YOLOv8-nano) are still too large for ultra-low-power microcontrollers (MCUs), while existing MCU-optimized models often sacrifice too much accuracy or only handle simple tasks like image classification. This paper aims to bridge that gap, enabling sophisticated, private, and persistent object detection directly on the wearer's forehead.
Methods
The researchers took a holistic hardware-software co-design approach:
- Hardware Architecture: The platform is built around the GAP9, a multi-core RISC-V SoC designed by Greenwaves Technologies. It features a "Fabric Controller" for management and a cluster of 8 cores with a dedicated neural engine (NE16) for AI acceleration. The system uses a dual-MCU setup, where a low-power nRF53 handles wireless communication and power management, while the GAP9 handles the heavy lifting of vision processing.
- TinyissimoYOLO Networks: The authors introduced a family of sub-million parameter models based on YOLOv5, v8, and v10 architectures. They scaled these down by reducing channel multiples and depth while maintaining the architectural benefits of each version (like the C2F blocks in v8).
- Optimization Pipeline: The models were trained on 256x256 images and then subjected to Post-Training Quantization (PTQ) to 8-bit integers. This allows the entire network to fit within the 1MB of memory typical for these edge devices.
- End-to-End Integration: The team implemented a full pipeline—image capture, demosaicing, inference, and post-processing—optimized to run in parallel across the GAP9’s cores.
Datasets
The models were evaluated on two primary benchmarks:
- PascalVOC: Used for general performance evaluation across 20 object classes.
- MS-COCO: Used to demonstrate the models' ability to scale up to 80 classes while remaining under the one-million parameter limit.
Key Insights and Ideas
- Architecture Matters at Scale: Even when shrunk to sub-million parameters, the architectural improvements of newer YOLO versions persist. TinyissimoYOLOv10, for instance, achieved the highest mAP (49% on PascalVOC) by utilizing an NMS-free head, which also speeds up execution.
- Hardware-Aware Layer Choice: The authors noted that while depth-wise convolutions are popular for reducing parameters, they often don't exploit hardware accelerators as efficiently as standard 3x3 convolutions. TinyissimoYOLO favors layers that the GAP9's NE16 engine can parallelize effectively.
- The Power of Parallelism: By using double-buffering and parallelizing image capture with inference, the system achieves an end-to-end latency of 56ms, which is much faster than the sum of its parts would suggest.
Key Results
- Speed: The system achieves 18 FPS for the full end-to-end pipeline. The raw inference time for the fastest model (TY-v1.3) is just 16.9ms.
- Efficiency: The total system power consumption is 62.9mW. An individual inference consumes only 1.59mJ.
- Battery Life: On a 154mAh battery, the glasses can run continuously for 9.3 hours. For comparison, Ray-Ban Meta glasses are cited as lasting only 3-4 hours under moderate usage.
- Accuracy: The TinyissimoYOLOv8-Big model achieved 44% mAP on PascalVOC, a respectable score for a model with only 840k parameters running on a milliwatt-scale device.
Limitations and Future Work
While impressive, the system has clear trade-offs. The input resolution is limited to 256x256, which may struggle with detecting very small objects in complex environments. Additionally, while the mAP is high for the "TinyML" class, it is still significantly lower than full-sized desktop or mobile GPU models.
Future work could involve exploring even more efficient architectures, such as transformers optimized for MCUs, or integrating event-based cameras (like the GENX320 mentioned in the hardware specs) to further reduce power consumption by only processing changes in the visual field.
Summary updated