[Paper Review] Artificial Neural Networks for Sensor Data Classification on Small Embedded Systems
This paper proposes deploying lightweight artificial neural networks (ANNs) directly on low-cost 8-bit microcontrollers for real-time classification of temporal sensor data, such as optical hand gestures. Using a feedforward neural network with 1,493 parameters, the system achieves 83% accuracy in gesture recognition with only 36 ms execution time on a microcontroller with 2 kB RAM and 32 kB flash, demonstrating feasible on-device inference without cloud dependency.
In this paper we investigate the usage of machine learning for interpreting measured sensor values in sensor modules. In particular we analyze the potential of artificial neural networks (ANNs) on low-cost micro-controllers with a few kilobytes of memory to semantically enrich data captured by sensors. The focus is on classifying temporal data series with a high level of reliability. Design and implementation of ANNs are analyzed considering Feed Forward Neural Networks (FFNNs) and Recurrent Neural Networks (RNNs). We validate the developed ANNs in a case study of optical hand gesture recognition on an 8-bit micro-controller. The best reliability was found for an FFNN with two layers and 1493 parameters requiring an execution time of 36 ms. We propose a workflow to develop ANNs for embedded devices.
Motivation & Objective
- To enable semantic enrichment of sensor data directly within low-cost embedded systems, avoiding reliance on cloud processing.
- To investigate the feasibility of deploying artificial neural networks (ANNs) on 8-bit microcontrollers with limited memory (2 kB RAM, 32 kB flash) and processing power (16 MHz clock).
- To compare the performance and reliability of feedforward neural networks (FFNNs) and recurrent neural networks (RNNs) for classifying temporal sensor sequences in resource-constrained environments.
- To develop a practical, end-to-end workflow for designing, training, compressing, and deploying ANNs on embedded sensor modules.
- To evaluate the impact of environmental factors—particularly lighting conditions—on classification reliability in real-world deployment.
Proposed method
- Design and implementation of FFNNs and RNNs tailored for minimal memory and processing constraints on 8-bit microcontrollers.
- Use of a sensor module with nine light sensors as a low-resolution camera to capture temporal sequences of hand gestures.
- Employment of a buffer to store a segment of sensor data as input to a feedforward network, enabling classification of gesture sequences.
- Application of manual preprocessing to split gestures into five phases, improving RNN performance by enabling meaningful neuron activation interpretation.
- Use of ReLU and Max activation functions to reduce computational overhead and execution time.
- Model compression via pruning (68% edge reduction) and Huffman encoding, though limited by model size and redundancy.
Experimental results
Research questions
- RQ1Can artificial neural networks be effectively deployed on 8-bit microcontrollers with only 2 kB of RAM and 32 kB of flash memory for real-time sensor data classification?
- RQ2How do feedforward neural networks (FFNNs) compare to recurrent neural networks (RNNs) in terms of classification accuracy and computational efficiency for temporal sensor data on embedded systems?
- RQ3What is the impact of environmental conditions—specifically changing lighting—on the reliability of gesture recognition using on-device ANNs?
- RQ4To what extent can model compression techniques like pruning and quantization reduce model size without sacrificing classification performance on ultra-low-resource devices?
- RQ5What practical workflow can be established to design, train, compress, and deploy ANNs on embedded sensor modules with minimal hardware and software overhead?
Key findings
- The best-performing model was a two-layer feedforward neural network with 1,493 parameters, achieving 83% accuracy in classifying hand gestures with a 36 ms inference time.
- An RNN achieved 71% accuracy but required manual phase segmentation of gestures and more complex annotation, indicating higher implementation overhead.
- The system operated reliably at 40 Hz frame rate on an 8-bit microcontroller without floating-point unit, using only 2 kB RAM and 32 kB flash memory.
- Classification reliability significantly decreased under degraded lighting conditions, highlighting environmental sensitivity.
- Model compression reduced the final model size to 11.5% of the original, but less effectively than in larger models like AlexNet or VGG-16, due to lower redundancy.
- The study confirms that FFNNs with input buffering are more practical and reliable than RNNs for embedded gesture recognition when minimal preprocessing is acceptable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.