Search papers, labs, and topics across Lattice.
This paper synthesizes an embedded machine-learning workflow tailored for microcontroller-class edge devices, focusing on critical engineering decisions often overlooked in traditional machine-learning frameworks. It explores two specific applications鈥攊nertial motion recognition and keyword spotting鈥攄emonstrating how data acquisition, feature extraction, and model design can be optimized for resource-constrained environments. Key findings include practical design rules that enhance on-device inference performance while addressing challenges such as class imbalance and real-time processing constraints.
Robust on-device inference can be achieved through meticulous engineering choices that significantly enhance performance in microcontroller-class devices.
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.