[Paper Review] SEFR: A Fast Linear-Time Classifier for Ultra-Low Power Devices
SEFR is a novel, linear-time, ultra-low power binary classifier designed for on-device machine learning on resource-constrained devices like microcontrollers. It achieves state-of-the-art accuracy while being 63× faster and 70× more energy efficient than baseline classifiers, with training and inference fully executable on devices such as Arduino Uno using minimal memory and power.
A fundamental challenge for running machine learning algorithms on battery-powered devices is the time and energy limitations, as these devices have constraints on resources. There are resource-efficient classifier algorithms that can run on these devices, but their accuracy is often sacrificed for resource efficiency. Here, we propose an ultra-low power classifier, SEFR, with linear time complexity, both in the training and the testing phases. SEFR is comparable to state-of-the-art classifiers in terms of classification accuracy, but it is 63 times faster and 70 times more energy efficient than the average of state-of-the-art and baseline classifiers on binary class datasets. The energy and memory consumption of SEFR is very insignificant, and it can even perform both train and test phases on microcontrollers. To our knowledge, this is the first multipurpose classification algorithm specifically designed to perform both training and testing on ultra-low power devices.
Motivation & Objective
- Address the critical challenge of deploying machine learning on ultra-low power devices due to energy, memory, and computational constraints.
- Overcome the limitations of existing on-device classifiers that sacrifice accuracy for efficiency or cannot perform on-device training.
- Design a classifier that enables both training and inference directly on microcontrollers without relying on remote servers.
- Ensure high accuracy comparable to state-of-the-art models while maintaining linear time complexity in both training and inference phases.
- Achieve extreme energy and memory efficiency to support deployment on devices with limited SRAM and battery life, such as Arduino Uno.
Proposed method
- Propose SEFR (Scalable, Efficient, and Fast classifieR), a linear-time binary classifier with O(n) complexity in both training and testing phases.
- Use a weighted linear combination of features with learnable weights and biases, optimized via a fast, iterative update rule to minimize classification error.
- Implement the algorithm in C for microcontroller compatibility, reducing memory and energy overhead compared to high-level language implementations.
- Apply feature quantization (to 8-bit integers) to compress data and fit within flash memory constraints of devices like Arduino Uno.
- Utilize a one-vs-all scheme for multi-class problems, learning separate weight vectors per class for interpretability and performance.
- Ensure model interpretability by visualizing learned weights as feature importance maps, enabling human-readable pattern recognition (e.g., digit shapes in Semeion dataset).
Experimental results
Research questions
- RQ1Can a linear-time classifier be both accurate and efficient enough to run training and inference on ultra-low power microcontrollers?
- RQ2How does SEFR's energy and time efficiency compare to state-of-the-art classifiers like XGBoost, LightGBM, and SVM on binary classification tasks?
- RQ3To what extent can SEFR maintain accuracy when trained and tested on compressed, low-precision data in embedded systems?
- RQ4Can SEFR’s model weights be meaningfully visualized to provide human-interpretable insights into learned decision boundaries?
- RQ5What is the practical feasibility of deploying SEFR on real microcontrollers like Arduino Uno for end-to-end on-device learning?
Key findings
- SEFR achieves classification accuracy comparable to state-of-the-art models such as XGBoost, LightGBM, and CatBoost on binary datasets.
- On average, SEFR is 63 times faster and 70 times more energy efficient than the average of state-of-the-art and baseline classifiers.
- SEFR consumes only 2.14% to 1.22% of the energy required by XGBoost, LightGBM, CatBoost, SVM, and Naive Bayes, respectively, on tested datasets.
- Training on 100 records and 100 features on Arduino Uno takes 195 milliseconds, and inference on the same data takes less than 1 millisecond.
- The model maintains high accuracy even when datasets are downsampled and quantized to 8-bit integers, demonstrating robustness to data compression.
- Weight visualization on the Semeion dataset reveals interpretable patterns (e.g., edges in handwritten digits), confirming SEFR’s compatibility with the xAI paradigm for explainability.
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.