Mondrian Forest for On-Device Learning on Resource-Constrained IoT Devices

This thesis investigates the practical feasibility of Mondrian Forests as an online learning method for resource-constrained Internet of Things (IoT) devices. Mondrian Forests are wellsuited for on-device learning because they support incremental updates without full retraining. They also offer bounded memory usage and are computationally efficient. However, their deployment on embedded systems with limited memory and processing power remains underexplored. We present a native C implementation of Mondrian Forests tailored for microcontroller-class hardware, ensuring functional parity with the original Python algorithm across multiple benchmark datasets including MNIST, USPS, DNA, and Satimage. To address the strict memory constraints typical of IoT devices, we develop and evaluate a suite of memory optimization techniques, including 8-bit integer precision conversion, PCA-based dimensionality reduction, and class-balanced data sampling, alongside model-level optimizations such as limiting tree growth and dynamic memory management. We evaluated the memory footprint of the model alone, excluding other components such as data storage and inference, across three embedded platforms, limiting forest growth once the model reached each platform’s memory capacity. This constraint on the nRF52 platform (0.25 MB memory budget) led to a 5.5 percentage point drop in accuracy on the Satimage dataset, from 84.5% (no memory constraint) to 79%, for a 6-class classification task. While peak memory usage (including model, dataset, and inference) could not be reduced to fit within the 0.25 MB budget, we came close, reaching 0.4 MB with 70% accuracy on Satimage. For more complex datasets, accuracy approached that of random guessing under tight memory constraints. Our results demonstrate that Mondrian Forests can support on-device learning in moderately constrained embedded systems, especially for simpler classification tasks and datasets. However, their need to retain training samples for online learning introduces a key bottleneck, limiting their practicality on ultra-low-memory devices such as the Zoul. This work provides a foundation for advancing memory-efficient, adaptive online learning methods tailored for embedded intelligence. Future research will focus on hybrid memory designs that leverage flash storage for node data, alongside architectural simplifications aimed at reducing memory demands and enhancing training efficiency on severely constrained devices.

Publication Details

Journal
KTH Publication Database DiVA (KTH Royal Institute of Technology)
Published
2025-01-01
Primary Topic
Literature and Culture Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mondrian Forest for On-Device Learning on Resource-Constrained IoT Devices

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Literature and Culture Studies
article

Mondrian Forest for On-Device Learning on Resource-Constrained IoT Devices

article en

Abstract

This thesis investigates the practical feasibility of Mondrian Forests as an online learning method for resource-constrained Internet of Things (IoT) devices. Mondrian Forests are wellsuited for on-device learning because they support incremental updates without full retraining. They also offer bounded memory usage and are computationally efficient. However, their deployment on embedded systems with limited memory and processing power remains underexplored. We present a native C implementation of Mondrian Forests tailored for microcontroller-class hardware, ensuring functional parity with the original Python algorithm across multiple benchmark datasets including MNIST, USPS, DNA, and Satimage. To address the strict memory constraints typical of IoT devices, we develop and evaluate a suite of memory optimization techniques, including 8-bit integer precision conversion, PCA-based dimensionality reduction, and class-balanced data sampling, alongside model-level optimizations such as limiting tree growth and dynamic memory management. We evaluated the memory footprint of the model alone, excluding other components such as data storage and inference, across three embedded platforms, limiting forest growth once the model reached each platform’s memory capacity. This constraint on the nRF52 platform (0.25 MB memory budget) led to a 5.5 percentage point drop in accuracy on the Satimage dataset, from 84.5% (no memory constraint) to 79%, for a 6-class classification task. While peak memory usage (including model, dataset, and inference) could not be reduced to fit within the 0.25 MB budget, we came close, reaching 0.4 MB with 70% accuracy on Satimage. For more complex datasets, accuracy approached that of random guessing under tight memory constraints. Our results demonstrate that Mondrian Forests can support on-device learning in moderately constrained embedded systems, especially for simpler classification tasks and datasets. However, their need to retain training samples for online learning introduces a key bottleneck, limiting their practicality on ultra-low-memory devices such as the Zoul. This work provides a foundation for advancing memory-efficient, adaptive online learning methods tailored for embedded intelligence. Future research will focus on hybrid memory designs that leverage flash storage for node data, alongside architectural simplifications aimed at reducing memory demands and enhancing training efficiency on severely constrained devices.

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Life in Land
Openalex Percentile: Top 44%
Literature and Culture Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.