Efficient ML Model Updates for Deeply Embedded Microcontrollers
Open Access
- 26 April 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1550-1564
Abstract
Frequent updates to machine learning (ML) models are essential for maintaining accuracy in dynamic environments. However, updating models deployed on IoT devices with low-power microcontrollers remains challenging. Because the model, application, and system are all linked together into a monolithic program, model updates are typically accomplished through full device firmware updates (DFUs). Unfortunately, DFUs are disruptive, inflexible, energy-intensive, and inefficient. We present Minerva, an end-to-end ML model update system for microcontroller-based IoT devices. At the heart of Minerva is a new abstraction and mechanism called capsules. Capsules encapsulate ML models as pure, independent functions and decouple the model from the rest of the system. These properties enable updates that are lightweight, avoiding the time and energy costs of a DFU both in communication and flash reprogramming, and non-disruptive, eliminating the need for a full reboot. Because capsules work at the application level, they require no modifications to the underlying OS or firmware, and thus apply broadly to existing IoT systems. Minerva reduces model update time by up to 89× compared to a full DFU, and up to 73× compared to a state-of-the-art embedded OS, enabling the growing number of deeply embedded devices to receive regular model updates. Minerva is an open-source project available at https://github.com/ShishirPatil/minerva.Keywords
This publication has 23 references indexed in Scilit:
- LPAH: Illustrating Efficient Live Patching With Alignment Holes in Kernel DataIEEE Transactions on Computers, 2024
- AoT - Attack on Things: A security analysis of IoT firmware updates2023
- Over-the-Air Firmware Updates for Constrained NB-IoT DevicesSensors, 2022
- Secure firmware Over-The-Air updates for IoT: Survey, challenges, and discussionsInternet of Things, 2022
- CoAP: An Application Protocol for Billions of Tiny Internet NodesIEEE Internet Computing, 2012
- Dynamic TinyOS: Modular and Transparent Incremental Code-Updates for Sensor Networks2010
- A new method of fast compression of program code for ota updates in consumer devicesIEEE Transactions on Consumer Electronics, 2009
- Health Monitoring of Civil Infrastructures Using Wireless Sensor Networks2007
- Telos: enabling ultra-low power wireless research2005
- Contiki - a lightweight and flexible operating system for tiny networked sensors2004