Search papers, labs, and topics across Lattice.
This paper compares the performance of LSTMs and 1D-CNNs for time series classification on resource-constrained microcontrollers, evaluating accuracy, memory footprint, and inference time across five benchmark datasets. The study reveals that 1D-CNNs achieve comparable or superior accuracy (around 95%) compared to LSTMs (around 89%), while significantly reducing RAM usage (35% less), Flash memory (25% less), and inference time (27.6 ms vs. 2038 ms). These findings advocate for the adoption of 1D-CNNs as a more practical and resource-efficient solution for TinyML applications on low-power devices.
Ditch the LSTM: 1D-CNNs deliver comparable or better accuracy in TinyML time series classification, while slashing memory and enabling real-time inference on microcontrollers.
Time series classification underpins applications such as human activity recognition, healthcare monitoring, and gesture detection in the IoT domain. Tiny Machine Learning enables models to run directly on low-power microcontroller units, improving efficiency, ensuring privacy, and reducing cost by avoiding reliance on cloud or edge computing. While Long Short-Term Memory networks are widely used for capturing temporal dependencies, their high computational and memory demands make real-time MCU deployment impractical. In this work, we conduct a hardware-aware feasibility study of LSTM versus 1D Convolutional Neural Networks across five benchmark datasets. Results show that 1D-CNN consistently achieves comparable or higher accuracy around 95% than LSTM which is around 89%, while requiring 35% less RAM, approx. 25% less Flash, and enabling real-time inference that is 27.6 ms vs. 2038 ms. Being so lightweight, 1D-CNN is particularly suitable for on-device processing in wearables and other low-power, battery-operated systems, establishing it as a practical and resource-efficient choice for TinyML deployment.