The SEFR classifier

· Source: Blog on Machine, Think! · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Internet of Things (IoT) & Connected Devices · Depth: Intermediate, long

Summary

The SEFR (Scalable, Efficient, and Fast classifieR) algorithm, initially published by Iranian researchers, offers a lightweight solution for machine learning on resource-constrained devices like the Arduino Uno, which features an 8-bit CPU, 16 MHz clock speed, and 2KB RAM. Implemented in Swift for iOS and Mac, SEFR is a supervised learning binary classifier that can be extended to multiclass tasks using a one-vs-rest strategy. During training, SEFR computes a weight for each feature, indicating its correlation with positive or negative classes, and a bias value to define the decision boundary. The algorithm's simplicity results in O(M*N) training time complexity and O(M) testing time, where M is features and N is examples, making it fast and memory-efficient. A demo app using Vision framework's FeaturePrint.Scene model achieved 100% accuracy on a small image classification dataset.

Key takeaway

For Machine Learning Engineers developing solutions for microcontrollers or embedded systems, SEFR offers a highly efficient and low-memory classification algorithm. You should consider SEFR when computational resources are severely limited, prioritizing speed and small footprint over peak accuracy. Its feature weighting also provides valuable interpretability for feature selection.

Key insights

SEFR is a simple, efficient, and fast classifier suitable for resource-constrained devices and interpretable feature weighting.

Principles

Method

SEFR trains by calculating feature weights based on average feature values for positive and negative examples, and a bias from weighted average scores, then predicts by summing weighted features and bias.

In practice

Topics

Code references

Best for: Machine Learning Engineer, Software Engineer, AI Student

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Blog on Machine, Think!.