Academic Jobs - Home of Higher Ed Logo

Research spotlight: Abdulrahman Albaiz - one trained model, many microcontrollers

8 min read13 Opinión

At a glance

Abdulrahman Albaiz and Fathi Amsaad pair a lightweight K-Means anomaly detector with a text-based model-sharing scheme that lets one microcontroller's trained model run on another without retraining.

A woman reading a book in a library
Photo by Syaiful Lil M on Unsplash

The model was trained on one microcontroller. It made its decisions on another. Between them sat nothing more exotic than a text file.

That is the short version of a two-device prototype described in a new paper by Abdulrahman Albaiz, a PhD researcher in the Department of Computer Science and Engineering, and his co-author Fathi Amsaad. The pair paired a lightweight K-Means anomaly detector with a model-sharing scheme they call the Distributed Internet of Learning, or DIoL, and tested it on a household mini-fridge.

The pitch is economic before it is technical. Microcontrollers — the dollar-or-two chips inside thermostats, door sensors, water pumps and vaccine refrigerators — can now run small machine-learning models directly, without a network connection. What they cannot easily do is learn. Each device that needs a trained model must first be trained, and training on a chip with a few kilobytes of working memory is slow work repeated across every unit in a fleet.

Albaiz's answer is to do it once and pass the result around. If that sounds unremarkable, consider that most deployed edge devices today either ship with a model frozen at the factory or phone home to a server that retrains them. Both options assume things small operators don't have: engineering staff, reliable connectivity, or a cloud budget that scales with the number of sensors.

Reading a fridge's current like a pulse

The detector does not look at temperature. It looks at electricity. Every appliance draws current in a pattern that reflects what its machinery is doing, and the paper describes these patterns as side-channel signatures — a term borrowed from hardware security, where the same leakage of power consumption is usually treated as a threat rather than a diagnostic.

In the mini-fridge case, a compressor that runs too long, cycles irregularly or shuts down without warning produces a current trace that departs from its normal rhythm. The paper notes that such departures often come before mechanical faults, lost efficiency or unsafe operation. That ordering matters: an early warning is only useful if it arrives before the food spoils or the motor burns out.

The processing chain runs entirely on the device:

  • Sample the appliance's power draw and compute compact features from it, so raw current readings never have to leave the chip
  • Group normal readings into clusters with K-Means, an algorithm that sorts data points by similarity rather than by any label provided in advance
  • Estimate a threshold that decides how far a new reading can sit from its cluster before it counts as abnormal
  • Package the trained clusters and threshold into a portable representation

The clustering step is the easiest to picture. Imagine a night porter at a small hotel who has never been given a guest list but learns the regulars by sight over a few weeks, sorting them into loose groups: the business travellers, the family of four, the man who always arrives at 2am. K-Means does the same with numbers. Nobody tells it what normal looks like; it works out the piles, and the threshold is the rule for when a face at the desk is strange enough to warrant a second look.

Because there are no labels, the method belongs to the unsupervised branch of machine learning, which matters for practical deployment. Labelled fault data is the hardest thing to obtain in appliance monitoring. Nobody wants to break sixty refrigerators to build a training set.

a person holding a camera

Photo by Rafi Ashraf on Unsplash

Why the model travels as text

The second half of the paper is about logistics. A trained K-Means model is small: a handful of cluster centres plus a threshold. Albaiz exports it as a text-based representation, and a second microcontroller parses that file and starts classifying, with no retraining step and no shared runtime environment.

Albaiz and Amsaad call the pattern Train Once, Share Everywhere, or TOSE, and it is the part with the longest reach. Text is the most boring possible interchange format, which is exactly why it works. A text file can move over a serial cable, a low-bandwidth radio link, a USB stick or a message queue. It can be diffed, printed, archived and read by a human when something goes wrong. Binary blobs tied to one vendor's inference library cannot make those claims.

Across the two-device prototype, the authors report three things: anomaly detection behaviour stayed consistent between the standalone device and the device running a shared model, the parsing step added negligible overhead, and inference runtimes were identical in both modes. The full write-up, including the device setup and measurement procedure, is available as a preprint on arXiv and in the proceedings of the IEEE Second International Conference on Secure IoT, Assured and Trusted Computing.

Reading a result like this correctly requires knowing what it does not say. A claim of identical runtimes is a claim about the inference path, not about detection accuracy in the wild. The paper frames the work as a feasibility demonstration, and the numbers it foregrounds are about consistency and cost, not about how many faults it caught or how many false alarms it raised.

The gap between a fridge and a pharmacy

The environments the paper points at are the unglamorous ones: homes, pharmacies, small warehouses. These are places where a monitoring system has to justify itself with a bill of materials under ten dollars and no monthly subscription. They are also places where nobody is on call at 3am to interpret a dashboard.

That framing cuts both ways. A single mini-fridge is a clean subject: one compressor, one power supply, one ambient temperature, one installation. A pharmacy with forty refrigerated cabinets is none of those things. Units are different ages, sit on different circuits, get defrosted on different schedules and occasionally get moved to a different wall socket, which changes the electrical baseline entirely.

The authors are explicit that this is a prototype rather than a field trial, and the open questions follow from that scope. Would a model trained on one unit raise false alarms on a second unit of the same model bought three years later? How often does a shared threshold need refreshing as a compressor ages? What happens when the device that trained the model is the one with the failing sensor? None of these are answered here, and the paper doesn't pretend otherwise.

There is a security question sitting underneath the sharing scheme as well, and it is the reason the venue is worth noting. DIoL moves a file that determines what a device considers normal. A tampered model could be tuned to ignore a real fault or to cry wolf until operators stop reading alerts. The paper's contribution stops at demonstrating that portable model reuse works; authenticating the file, versioning it and deciding which device is allowed to publish are problems the framework leaves open. The published version carries a DOI through IEEE.

The sceptic's case for waiting

An embedded systems engineer reviewing this work would raise a fair objection: sharing a model is a solved problem in the cloud world. Container registries and model hubs have done it for years, and the reason edge devices don't use them is not that the transfer is hard — it's that nobody has agreed on what a trustworthy model artifact for a microcontroller looks like. A text file that any device can parse is easy to copy and just as easy to alter.

There is a second objection about what gets learned. Unsupervised detectors absorb whatever happens during their training window. A compressor trained during a mild week carries an implicit assumption about ambient temperature that will surface as an anomaly wave in July, or as silence during a genuine fault if the training window happened to include one. The paper's consistency result shows the model behaved the same way on two devices. It does not show the model was right.

Neither objection invalidates the demonstration. They mark where the next round of work has to go, and the authors' own research trajectory suggests they know it: a companion preprint from the same group pushes a fully on-device statistical detector using the same appliance-monitoring hardware, and the DIoL line of work is plainly being built to let many such devices share what they learn.

A man in striped shirt looking through a microscope

Photo by Nanda Das on Unsplash

What a shared model changes at fleet scale

The economics are the interesting part. Suppose a clinic chain installs current sensors on sixty vaccine refrigerators. Under the conventional approach, each unit needs its own commissioning period and its own training run, and each site needs someone who can redo that when a unit is replaced. Under TOSE, the commissioning work collapses to a single well-instrumented unit and a distribution step. The savings aren't in the algorithm. They're in the labour you no longer repeat.

There is a privacy argument too, and it's quieter than the usual edge-computing pitch. A model built from clustered power readings contains no raw waveforms. What leaves the training device is a description of normal behaviour, not a recording of it. For a building manager who doesn't want detailed load profiles leaving the premises, that distinction is the whole point.

Where this goes over the next five to ten years probably isn't a smarter clustering algorithm. It's the infrastructure around the file: signed model packages, version histories that let an operator roll back a bad update, and registries that let a technician pull a known-good detector for a specific appliance model the way they'd pull a firmware image today. Albaiz's prototype doesn't build that infrastructure. It shows that the underlying unit of exchange — a small, human-readable model that runs identically wherever it lands — is practical on hardware that costs less than lunch.

The next time a walk-in cooler fails at a rural pharmacy, the useful question may not be whether anyone was watching. It may be whether the model doing the watching had ever been trained on a fridge that behaves like that one.

  • TinyML
  • K-Means
  • anomaly detection
  • Distributed Internet of Learning
  • microcontrollers
Retrato de Jarrod Kanizay
Sobre el autor

Jarrod KanizayVer autor

Academic Jobs In House Author

Visionary leader transforming academic recruitment with 20+ years in higher education.

Discusión

por lo menos:

Sé el primero en comentar este artículo!

tú

Se le pedirá que se conecte antes de publicar su comentario.

Browse por Facultad

Browse por tema

Frequently Asked Questions

🔁What is the Distributed Internet of Learning (DIoL)?

DIoL is the model-sharing workflow introduced in Albaiz and Amsaad's paper. A K-Means anomaly detector trained on one microcontroller is exported as a portable, text-based representation, and a second microcontroller parses that file and begins classifying without any retraining. The authors describe the resulting pattern as Train Once, Share Everywhere, or TOSE.

🔬What does TinyML mean, in plain terms?

TinyML is machine learning squeezed onto microcontrollers, the small low-power chips that cost a dollar or two and run with kilobytes of memory rather than gigabytes. The point is to make decisions on the device itself, so no sensor data has to travel to a server and the system keeps working when the network doesn't.

⚙️How does K-Means spot a misbehaving appliance?

K-Means groups data points by similarity without being told what the groups mean. On a fridge, the algorithm sorts the current readings from normal operation into clusters, then a threshold decides how far a new reading can sit from its cluster before it is called abnormal. A compressor that runs too long or cycles irregularly produces readings that land outside the usual piles.

📡Why measure power instead of temperature?

Power consumption patterns carry what the paper calls side-channel signatures that reflect the internal operating state of a device. A compressor's electrical rhythm changes before a mechanical fault becomes obvious, and a cheap current sensor picks that up without any invasive installation inside the appliance.

📊What exactly did the two-device experiment show?

Device A trained the model. Device B parsed the exported representation and performed inference without retraining. The authors report consistent anomaly detection behaviour, negligible parsing overhead, and identical inference runtimes between standalone operation and DIoL-based operation on the shared model.

⏱️Did sharing the model slow detection down?

No, according to the reported measurements. Parsing the text-based model added negligible overhead and inference runtimes were identical to running the model on the device that trained it. That is the paper's central efficiency claim, and it applies to the two-device prototype specifically.

🧪What are the study's main limitations?

The prototype uses two devices and a single mini-fridge case study, and the paper presents it as a feasibility demonstration. It does not report field performance across a large fleet, does not test appliances of different ages or installations, and does not benchmark detection accuracy or false alarm rates at scale.

🔒Could a shared model file be tampered with?

The paper demonstrates that portable model reuse works; it does not analyse authentication or provenance of the exchanged file. That is a real open question for any deployment, since a model determines what a device treats as normal, and a modified model could suppress genuine alerts. Signed and versioned model packages are an obvious next step for the field.

🏠Who benefits most from this approach?

The paper targets low-cost, distributed settings such as homes, pharmacies and small warehouses, where cloud connectivity, continuous supervision and dedicated training resources are not realistic. In those places the cost of commissioning each device separately is the barrier, and sharing a trained model removes it.

📝Who wrote the paper, and where was it presented?

Abdulrahman Albaiz, a PhD researcher in the Department of Computer Science and Engineering, wrote the paper with Fathi Amsaad. It appeared at the IEEE Second International Conference on Secure IoT, Assured and Trusted Computing (SATC) in Houston, Texas, and is also available as an arXiv preprint.

🧠Why does model sharing matter more than model accuracy here?

Because the bottleneck in cheap monitoring isn't usually the algorithm, it's the labour of commissioning every unit. A model that must be retrained on each device scales linearly with the number of devices. A model that can be trained once and parsed anywhere turns that cost into a single well-instrumented training run plus a distribution step.

📄Where can I read the full paper?

The preprint is on arXiv and the conference version is published in the IEEE SATC 2026 proceedings. Researchers interested in embedded machine learning roles can browse related openings on AcademicJobs research jobs.