Hierarchical Early-Exit Inference for Open-World Human Activity Recognition on Microcontrollers
Abstract
Human activity recognition on microcontrollers requires reliable classification under strict computation, memory, latency, and power constraints, while real deployment may also contain activities that are absent from model training. This study develops a hierarchical early-exit framework for open-world human activity recognition using six-axis wrist inertial signals. A three-stage depthwise-separable temporal network combines fine-activity classification, hierarchical supervision, class-prototype modeling, energy-based unknown detection, and deep-to-shallow knowledge distillation. Intermediate predictions are accepted only when class confidence, hierarchy consistency, energy, and prototype distance jointly satisfy calibrated criteria. The network is quantized to signed INT8 and deployed on an Arduino Nano 33 BLE Sense Rev2 using TensorFlow Lite for Microcontrollers and CMSIS-NN. Subject-independent evaluation produced a macro-F1 of 0.918, an unknown-class AUROC of 0.938, and an open-set classification rate of 0.884. About 78% of known windows terminated before the final temporal block, reducing average computation by approximately 52%. Median embedded latency decreased to 8.34 ms and measured energy consumption reached 0.31 mJ per window. These results indicate that hierarchy-aware early exiting can jointly support adaptive computation and unknown-activity rejection on resource-constrained wearable platforms.
References
- Lattanzi, E., Donati, M., & Freschi, V. (2022). Exploring artificial neural networks efficiency in tiny wearable devices for human activity recognition.Sensors, 22(7), 2637.
- Zhang, S., Li, Y., Zhang, S., Shahabi, F., Xia, S., Deng, Y., & Alshurafa, N. (2022). Deep learning in human activity recognition with wearable sensors: A review on advances.Sensors, 22(4), 1476.
- Haresamudram, H., Essa, I., & Plötz, T. (2024). Towards learning discrete representations via self-supervision for wearables-based human activity recognition.Sensors, 24(4), 1238.
- Gonçalves, P. H. N., Bragança, H., & Souto, E. (2024). Efficient human activity recognition on wearable devices using knowledge distillation techniques.Electronics, 13(18), 3612.
- Yu, J., Zhang, L., Cheng, D., Huang, W., Wu, H., & Song, A. (2024). Improving human activity recognition with wearable sensors through BEE: Leveraging early exit and gradient boosting.IEEE Transactions on Neural Systems and Rehabilitation Engineering, 32, 3452–3464.
- Wang, J., Li, B., & Zhang, G. L. (2024). Early-exit with class exclusion for efficient inference of neural networks.2024 IEEE 6th International Conference on AI Circuits and Systems, 263–267.
- Ghanathe, N. P., & Wilton, S. J. E. (2025). QUTE: Quantifying uncertainty in TinyML models with early-exit-assisted ensembles for model-monitoring.Proceedings of the 42nd International Conference on Machine Learning, 267, 19286–19306.
- Vaze, S., Han, K., Vedaldi, A., & Zisserman, A. (2022). Open-set recognition: A good closed-set classifier is all you need?International Conference on Learning Representations.
- Du, X., Wang, Z., Cai, M., & Li, Y. (2022). VOS: Learning what you don't know by virtual outlier synthesis.International Conference on Learning Representations.
- Cortese, A., Solbiati, S., Scandelli, A., Giudici, A., Antonello, N., Trojaniello, D., Boracchi, G., & Caiani, E. G. (2026). Open-set recognition of human activities from head-mounted inertial sensor.Sensors, 26(3), 1079.