TL;DR
This paper introduces AURITUS, an open-source toolkit that simplifies the development of machine learning models for earable devices. It addresses the lack of large datasets and the computational constraints of earables by providing a comprehensive framework for data collection, labeling, and optimized model training, enabling highly accurate activity detection and head-pose estimation on resource-limited hardware.
What Problem Does This Paper Address?
Developing sophisticated applications for smart ear-worn devices, or "earables," is currently a significant challenge. Two primary hurdles exist:
- Data Scarcity: Training effective machine learning (ML) models requires large, labeled datasets. However, for earables, such open-source datasets are largely missing, making it difficult to develop and benchmark new applications.
- Computational Constraints: Earables have very limited memory, processing power, and battery life. This makes it infeasible to directly deploy complex ML models that are typically designed for smartphones or more powerful devices. Existing algorithms for tasks like human activity recognition and head-pose estimation often exceed these constraints.
AURITUS aims to overcome these barriers by providing a unified solution for the entire earable application development lifecycle.
Methods
AURITUS offers a multi-faceted approach:
- Data Collection and Labeling: It provides graphical tools to facilitate the collection, pre-processing, and manual labeling of time-series data from earables. This aims to make dataset creation more accessible for researchers.
- Hardware-Aware Neural Architecture Search (NAS): At its core, AURITUS employs a hardware-aware Bayesian NAS approach. This technique optimizes ML models not just for accuracy but also for resource constraints (SRAM, flash, latency) specific to target microcontroller platforms. It uses a "hardware-in-the-loop" (HIL) system that can leverage real hardware metrics during the search process.
- Model Zoo: The toolkit includes a collection of pre-trained, optimized models and filters for activity detection and head-pose estimation. These models are designed to be lightweight and efficient for deployment on embedded systems.
- Optimization Workflow: AURITUS integrates these components into a pipeline that allows for automated model development and generation, aiming to produce models that balance accuracy with the strict resource limitations of earables.
Datasets
- Newly Introduced Dataset: AURITUS introduces a large, IRB-approved open-source dataset comprising 2.43 million inertial samples. This dataset captures head and full-body movements from 45 volunteers, including 34 distinct head poses and 9 common daily activities. This dataset is crucial for training and evaluating models for earable applications.
Key Insights and Ideas
- Hardware-Awareness is Crucial for TinyML: The paper strongly emphasizes that simply compressing existing models is insufficient for earables. True optimization requires designing models with the specific hardware constraints in mind from the outset, which AURITUS's HIL NAS achieves.
- Open-Source Ecosystem for Earables: The creation of a comprehensive, open-source toolkit like AURITUS is vital for democratizing research and development in the earable space. It lowers the barrier to entry for researchers and developers.
- Trade-offs Between Accuracy and Model Size: The results highlight that smaller models don't always mean lower accuracy. Intelligent architectural design and optimization can lead to highly accurate models that are orders of magnitude smaller than their counterparts.
- Generalizability Challenges for Lightweight Models: While lightweight models excel in efficiency, they can struggle with domain shifts and cross-user variations, indicating a need for further research into domain adaptation techniques.
Key Results
- Activity Detection: AURITUS achieved 91% leave-1-out test accuracy and 98% test accuracy using real-time models as small as 6-13 kB. These models are reported to be 98-740x smaller and 3-6% more accurate than state-of-the-art methods.
- Head-Pose Estimation: The developed filters achieved absolute errors as low as 5 degrees using 20 kB filters, offering a 1.6x precision improvement over existing techniques.
- Dataset Size: The newly introduced dataset contains 2.43 million inertial samples, providing a substantial resource for training.
- Model Size Reduction: Lightweight models like FastRNN and FastGRNN achieved high accuracy with sizes as small as 6.04 kB, making them suitable for ultra-resource-constrained devices.
Limitations and Future Work
- Dataset Limitations: The current dataset consists of scripted activities of short duration. This means the evaluation might not fully capture the complexities of natural, continuous human movement in the wild, and the effects of earable placement/displacement are not well-represented.
- Inertial Data Only: AURITUS currently focuses on inertial sensor data. Future work could expand to include other modalities available in smart earbuds, such as audio, BLE, and temperature, to support a wider range of physiological applications.
- Over-the-Air Model Adaptation: The framework currently doesn't handle over-the-air model adaptation for cross-user variations. Future work could explore domain adversarial training or on-device learning to address this.
- Sensor Data Imperfections: The paper notes that earable sensor data can suffer from missing data, timestamp misalignment, and window jitter. Future research could investigate uncertainty-aware ML models or hardware enhancements for precise time synchronization.
- Commercial Earable Limitations: Most commercial earables currently lack firmware update capabilities, limiting onboard programming. The authors speculate that future earables will offer more flexibility, making AURITUS's framework even more relevant.
Summary updated