MARATTO

article · IEEE Transactions on Artificial Intelligence

TrustTiny-HAR: Selective, Open-Set, and Calibrated Activity Recognition on Microcontrollers

2026

Abstract

Human activity recognition (HAR) increasingly executes on microcontrollers to satisfy privacy, latency, and energy constraints, yet most deployed TinyML models remain closed set and overconfident when faced with unseen behaviors, placement shifts, or sensor anomalies. We present <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">TrustTiny-HAR</i>, a resource-efficient pipeline that unifies an int8 time-series backbone with a distilled trust head and a lightweight streaming conformal layer. The unified head produces calibrated class probabilities and a compact out-of-distribution (OOD) surrogate score learned from teacher signals (energy of logits and prototype/ Mahalanobis distance), while the conformal layer maintains tiny on-device quantiles to enforce coverage-controlled acceptance thresholds. When evidence is insufficient, the device abstains and may optionally escalate using a 32–64D feature sketch, avoiding raw-signal transmission. Evaluated under leave-one-subject-out protocols on UCI HAR, PAMAP2, and WISDM with multiple OOD stressors (unseen classes, placement shift, injected anomalies), TrustTiny-HAR matches strong int8 baselines on indistribution macro-F1 (e.g., 93.8 on UCI HAR) while substantially improving calibration (ECE 2.4%) and OOD robustness (AUROC 0.96 for unseen, FPR@95 0.22 for placement shift). As a selective classifier, it attains the desired 90% coverage with conservative risk (e.g., 6.1%) from a buffer of only 128–512 windows. System profiling on nRF52840/STM32L4 shows < 10% energy overhead compared to a TinyCNN baseline, with tight RAM/Flash budgets preserved. The result is a practical template for trustworthy, on-device HAR that knows when not to guess. Our code is available at: <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/Ism-ail11/TrustTiny-HAR</uri>.

Research topics

  • Security and Verification in Computing
  • Access Control and Trust
  • User Authentication and Security Systems

Read the original research

This page summarises published work. The authoritative version sits with the publisher.

DOI: 10.1109/tai.2026.3676723

Is something wrong with this record? Report it or request removal.

Discussion

Discuss this research

Have you built on this work, tried to replicate it, or seen it applied in practice? Share what you know. Verified researchers and MARATTO™ domain experts can open a discussion, and any member can reply. Contributions are reviewed before they appear.

No discussion yet. Open the first thread.