手把手教如何在微型设备上跑机器学习,从数据到部署全链路优化。
Embedded Machine Learning for Microcontroller-Class Edge Devices: Data, Feature, Evaluation, and Deployment Pipelines
- 用信号处理+降维方法提取特征,降低计算开销
- 在不平衡数据下验证模型,提升实际场景准确率
- 适合嵌入式开发与边缘智能落地的工程师参考
嵌入式机器学习将推理从云端转移到资源受限的微控制器设备上,要求在内存、能耗和延迟严格限制下完成数据采集、信号预处理、模型运行与响应。本文面向微控制器平台,系统性地梳理了嵌入式机器学习全流程工作流。以惯性运动识别为例,两秒三轴加速度数据经采样、缓冲后转化为均方根与频谱特征;以关键词识别为例,音频经抗混叠采样、转换为梅尔频率倒谱系数(MFCC),再由轻量一维卷积网络处理。文中强调常被忽略的工程决策:采样与缓存策略、特征提取作为降维手段、类别不平衡下的验证、模型与运行时协同设计、流式部署机制。最后提出实用设计准则,涵盖数据整理、量化、阈值设定、调度策略与现场监控,确保设备端推理鲁棒可靠。
原文摘要 · Abstract (English)
Embedded machine learning moves inference from cloud services to resource-constrained devices that must acquire data, preprocess signals, run a model, and act within tight limits on memory, energy, and latency. This paper presents a systems-oriented synthesis of an embedded machine-learning workflow for microcontroller-class platforms. The emphasis is placed on engineering decisions that are often hidden in generic machine-learning introductions: sampling and buffering, feature extraction as dimensionality reduction, validation under class imbalance, model/runtime co-design, and streaming deployment. Two representative signal families are used throughout the paper. The first is inertial motion recognition, where a two-second, three-axis accelerometer window is transformed from raw samples into root-mean-square and spectral features before classification. The second is keyword spotting, where audio is sampled, anti-aliased, transformed into mel-frequency cepstral coefficients, and processed by a compact one-dimensional convolutional network. The paper concludes with practical design rules for robust on-device inference, including data curation, quantization, thresholding, scheduling, and field monitoring.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。