在微控制器上实现无需云端的自动异常检测,靠用电数据实时判断设备状态。
Fully Autonomous Z-Score-Based TinyML Anomaly Detection on Resource-Constrained MCUs Using Power Side-Channel Data
- 用Z-score算法在微控器上自适应训练并检测异常,全程离线运行。
- 14天测试中准确率与召回率均为1.00,推理延迟仅几十微秒。
- 适合低功耗嵌入式设备,可部署于无网络环境的智能家居监控。
本文提出一种完全自主的微型机器学习(TinyML)Z-Score异常检测系统,部署于低功耗微控制器上,利用家电的用电侧信道数据实现实时行为监控。与依赖离线训练或云分析的传统物联网异常检测方法不同,该系统在资源受限的微控制器上直接完成模型训练与推理,无需外部计算或网络连接。系统持续采样电流,本地计算均方根(RMS)值,并在初始训练阶段获取统计参数。通过轻量级Z-Score阈值实现异常检测,具有可解释性且计算高效,适用于嵌入式部署。该架构在STM32平台实现,基于14天家庭迷你冰箱正常运行及受控异常条件下的数据集进行评估。结果表明,系统实现完美检测性能,精确率与召回率均为1.00,推理延迟约为数十微秒,总内存占用约3.3 KB SRAM和63 KB Flash。这些结果证明,低成本微控制器上可实现鲁棒且全自主的TinyML异常检测。未来工作将扩展至更多轻量模型及多设备学习场景。
原文摘要 · Abstract (English)
This paper presents a fully autonomous Tiny Machine Learning (TinyML) Z-Score-based anomaly detection system deployed on a low-power microcontroller for real-time monitoring of appliance behavior using power side-channel data. Unlike existing Internet of Things (IoT) anomaly detection approaches that rely on offline training or cloud-assisted analytics, the proposed system performs both model training and inference directly on a resource-constrained microcontroller without external computation or connectivity. The system continuously samples current consumption, computes Root Mean Square (RMS) values on-device, and derives statistical parameters during an initial training phase. Anomalies are detected using lightweight Z-Score thresholds, enabling interpretable and computationally efficient inference suitable for embedded deployment. The architecture was implemented on an STM32-based platform and evaluated using a 14-day dataset collected from a household mini-fridge under normal operation and controlled anomaly conditions. Results demonstrate perfect detection performance, with Precision and Recall of 1.00, inference latencies on the order of tens of microseconds, and a total memory footprint of approximately 3.3 KB SRAM and 63 KB Flash. These results confirm that robust and fully autonomous TinyML anomaly detection can be achieved on low-cost microcontrollers. Future work includes extending the framework to incorporate additional lightweight models and multi-device learning scenarios.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。