cs.LGMar 28, 2026

K-Means Based TinyML Anomaly Detection and Distributed Model Reuse via the Distributed Internet of Learning (DIoL)

Authors: Abdulrahman Albaiz, Fathi Amsaad

Organizations: Department of Computer Science & Engineering Wright State University Dayton, Ohio, USA

Abstract

This paper presents a lightweight K-Means anomaly detection model and a distributed model-sharing workflow designed for resource-constrained microcontrollers (MCUs). Using real power measurements from a mini-fridge appliance, the system performs on-device feature extraction, clustering, and threshold estimation to identify abnormal appliance behavior. To avoid retraining models on every device, we introduce the Distributed Internet of Learning (DIoL), which enables a model trained on one MCU to be exported as a portable, text-based representation and reused directly on other devices. A two-device prototype demonstrates the feasibility of the "Train Once, Share Everywhere" (TOSE) approach using a real-world appliance case study, where Device A trains the model and Device B performs inference without retraining. Experimental results show consistent anomaly detection behavior, negligible parsing overhead, and identical inference runtimes between standalone and DIoL-based operation. The proposed framework enables scalable, low-cost TinyML deployment across fleets of embedded devices.

Explore similar work

CardsList
  1. Fully Autonomous Z-Score-Based TinyML Anomaly Detection on Resource-Constrained MCUs Using Power Side-Channel Data

    Mar 28, 2026Abdulrahman Albaiz, Fathi AmsaadAnomaly DetectionTiny ML

  2. Online Continual Learning for Anomaly Detection in IoT under Data Distribution Shifts

    Mar 8, 2026Matea Marinova, Shashi Raj Pandey, Junya Shiraishi +3Online Anomaly DetectionAnomaly Detection

  3. What changes after deployment? A survey on On-device Learning in TinyML

    May 29, 2026Massimo Pavan, Luca Pezzarossa, Fabrizio Pittorino +2On-Device TrainingDistribution Shift