{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,6]],"date-time":"2026-06-06T16:01:35Z","timestamp":1780761695048,"version":"3.54.1"},"reference-count":18,"publisher":"MDPI AG","issue":"8","license":[{"start":{"date-parts":[[2024,8,15]],"date-time":"2024-08-15T00:00:00Z","timestamp":1723680000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"German Research Foundation (Deutsche Forschungsgemeinschaft (DFG))","award":["418311604"],"award-info":[{"award-number":["418311604"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Algorithms"],"abstract":"<jats:p>Data-driven models used for predictive classification and regression tasks are commonly computed using floating-point arithmetic and powerful computers. We address constraints in distributed sensor networks like the IoT, edge, and material-integrated computing, providing only low-resource embedded computers with sensor data that are acquired and processed locally. Sensor networks are characterized by strong heterogeneous systems. This work introduces and evaluates a virtual machine architecture that provides ML as a service layer (MLaaS) on the node level and addresses very low-resource distributed embedded computers (with less than 20 kB of RAM). The VM provides a unified ML instruction set architecture that can be programmed to implement decision trees, ANN, and CNN model architectures using scaled integer arithmetic only. Models are trained primarily offline using floating-point arithmetic, finally converted by an iterative scaling and transformation process, demonstrated in this work by two tests based on simulated and synthetic data. This paper is an extended version of the FedCSIS 2023 conference paper providing new algorithms and ML applications, including ANN\/CNN-based regression and classification tasks studying the effects of discretization on classification and regression accuracy.<\/jats:p>","DOI":"10.3390\/a17080356","type":"journal-article","created":{"date-parts":[[2024,8,15]],"date-time":"2024-08-15T09:29:41Z","timestamp":1723714181000},"page":"356","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["A Virtual Machine Platform Providing Machine Learning as a Programmable and Distributed Service for IoT and Edge On-Device Computing: Architecture, Transformation, and Evaluation of Integer Discretization"],"prefix":"10.3390","volume":"17","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-8774-6141","authenticated-orcid":false,"given":"Stefan","family":"Bosse","sequence":"first","affiliation":[{"name":"Department Mathematics and Computer Science, University of Bremen, 28359 Bremen, Germany"},{"name":"Department Mechanical Engineering, University of Siegen, 57072 Siegen, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,8,15]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Guo, S., and Zhou, Q. (2023). Machine Learning on Commodity Tiny Devices, Taylor & Francis.","DOI":"10.1201\/9781003340225"},{"key":"ref_2","first-page":"1595","article-title":"A review on TinyML: State-of-the-art and prospects","volume":"34","author":"Ray","year":"2021","journal-title":"J. King Saud Univ.-Comput. Inf. Sci."},{"key":"ref_3","unstructured":"Wang, X., Magno, M., Cavigelli, L., and Benini, L. (2022). FANN-on-MCU: An Open-Source Toolkit for Energy-Efficient Neural Network Inference at the Edge of the Internet of Things. arXiv."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Alajlan, N.N., and Ibrahim, D.M. (2022). TinyML: Enabling of Inference Deep Learning Models on Ultra-Low-Power IoT Edge Devices for AI Applications. Micromechanics, 13.","DOI":"10.3390\/mi13060851"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Jain, V., Giraldo, S., Roose, J.D., Mei, B.B.L., and Verhelst, M. (2023). TinyVers: A Tiny Versatile System-on-chip with State-Retentive eMRAM for ML Inference at the Extreme Edge. arXiv.","DOI":"10.1109\/JSSC.2023.3236566"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Bosse, S. (2023, January 17\u201320). IoT and Edge Computing using virtualized low-resource integer Machine Learning with support for CNN, ANN, and Decision Trees, IoT-ECAW. Proceedings of the 18th Conference on Computer Science and Intelligence Systems FedCSIS 2023 (IEEE #57573), Warsaw, Poland.","DOI":"10.15439\/2023F7745"},{"key":"ref_7","unstructured":"Banner, R., Hubara, I., Hoffer, E., and Soudry, D. (2018). Scalable Methods for 8-bit Training of Neural Networks. arXiv."},{"key":"ref_8","first-page":"27402","article-title":"Is Integer Arithmetic Enough for Deep Learning Training?","volume":"35","author":"Ghaffari","year":"2022","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Donati, G., Zonzini, F., and Marchi, L.D. (2023). Tiny Deep Learning Architectures Enabling Sensor-Near Acoustic Data Processing and Defect Localization. Computers, 12.","DOI":"10.20944\/preprints202305.1193.v1"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Magno, M., Cavigelli, L., Mayer, P., von Hagen, F., and Benini, L. (2019, January 15\u201318). FANNCortexM: An Open Source Toolkit for Deployment of Multi-layer Neural Networks on ARM Cortex-M Family Microcontrollers. Proceedings of the IEEE 5th World Forum on Internet of Things (WF-IoT), Limerick, Ireland.","DOI":"10.1109\/WF-IoT.2019.8767290"},{"key":"ref_11","unstructured":"Bosse, S., Bornemann, S., and L\u00fcssem, B. (2023). Virtualization of Tiny Embedded Systems with a robust real-time capable and extensible Stack Virtual Machine REXAVM supporting Material-integrated Intelligent Systems and Tiny Machine Learning. arXiv."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Bornemann, S., and Lang, W. (2022). Considerations and Limits of Embedding Sensor Nodes for Structural Health Monitoring into Fiber Metal Laminates. Sensors, 22.","DOI":"10.3390\/s22124511"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Finkenzeller, K. (2010). RFID Handbook: Fundamentals and Applications in Contactless Smart Cards, Radio Frequency Identification and Near-Field Communication, John Wiley & Sons.","DOI":"10.1002\/9780470665121"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Bosse, S., and Polle, C. (2023, January 14\u201316). Tiny Machine Learning Virtualization for IoT and Edge Computing using the REXA VM. Proceedings of the 10th International Conference on Future Internet of Things and Cloud (FiCloud 2023), Marrakesh, Marroco. IEEE Catalog Number: CFP23FIC-ART.","DOI":"10.1109\/FiCloud58648.2023.00026"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"42","DOI":"10.1145\/36177.36182","article-title":"An architecture for the direct execution of the Forth programming language","volume":"15","author":"Hayes","year":"1987","journal-title":"ACM SIGARCH Comput. Archit. News"},{"key":"ref_16","unstructured":"(2024, July 01). Neataptic. Available online: https:\/\/wagenaartje.github.io\/neataptic\/."},{"key":"ref_17","unstructured":"(2024, July 01). ConvNetJS. Available online: https:\/\/cs.stanford.edu\/people\/karpathy\/convnetjs\/."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"2683","DOI":"10.1016\/j.cpc.2014.05.016","article-title":"Optimized OpenCL implementation of the Elastodynamic Finite Integration Technique for viscoelastic media","volume":"185","author":"Aparicio","year":"2014","journal-title":"Comput. Phys. Comm."}],"container-title":["Algorithms"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-4893\/17\/8\/356\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T15:37:15Z","timestamp":1760110635000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-4893\/17\/8\/356"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,15]]},"references-count":18,"journal-issue":{"issue":"8","published-online":{"date-parts":[[2024,8]]}},"alternative-id":["a17080356"],"URL":"https:\/\/doi.org\/10.3390\/a17080356","relation":{},"ISSN":["1999-4893"],"issn-type":[{"value":"1999-4893","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,15]]}}}