Logo: to the web site of Uppsala University

uu.sePublications from Uppsala University
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Mondrian Forest for On-Device Learning on Resource-Constrained IoT Devices
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

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.

Place, publisher, year, edition, pages
2025. , p. 86
Series
IT ; mDV 25 015
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:uu:diva-562643OAI: oai:DiVA.org:uu-562643DiVA, id: diva2:1979257
External cooperation
Research Institutes of Sweden
Educational program
Master Programme in Computer Science
Presentation
2025-06-10, Uppsala, 15:15 (English)
Supervisors
Examiners
Available from: 2025-06-30 Created: 2025-06-30 Last updated: 2025-06-30Bibliographically approved

Open Access in DiVA

Mondrian Forest for On-Device Learning on Resource-Constrained IoT Devices(2364 kB)238 downloads
File information
File name FULLTEXT01.pdfFile size 2364 kBChecksum SHA-512
49b489f73083dfb2a16857e1884c08dd4cbd67c3f2c680da5ded241ccc35d8d48557b4d698d986ea6c4b5d7ea3f42af0031ac8ee8b38d768913b681a9bc1d077
Type fulltextMimetype application/pdf

By organisation
Department of Information Technology
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 238 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 450 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf