Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3410992.3411014acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiotConference Proceedingsconference-collections
research-article
Open access

Edge2Train: a framework to train machine learning models (SVMs) on resource-constrained IoT edge devices

Published: 06 October 2020 Publication History

Abstract

In recent years, ML (Machine Learning) models that have been trained in data centers can often be deployed for use on edge devices. When the model deployed on these devices encounters unseen data patterns, it will either not know how to react to that specific scenario or result in a degradation of accuracy. To tackle this, in current scenarios, most edge devices log such unseen data in the cloud via the internet. Using this logged data, the initial ML model is then re-trained/upgraded in the data center and then sent to the edge device as an OTA (Over The Air) update. When applying such an online approach, the cost of edge devices increases due to the addition of wireless modules (4G or WiFi) and it also increases the cyber-security risks. Additionally, it also requires maintaining a continuous connection between edge devices and the cloud infrastructure leading to the requirement of high network bandwidth and traffic. Finally, such online devices are not self-contained ubiquitous systems. In this work, we provide Edge2Train, a framework which enables resource-scarce edge devices to re-train ML models locally and offline. Thus, edge devices can continuously improve themselves for better analytics results by managing to understand continuously evolving real-world data on the fly. In this work, we provide algorithms for Edge2Train along with its C++ implementations. Using these functions, on-board, offline SVM training, inference, and evaluation has been performed on five popular MCU boards. The results show that our Edge2Train-trained SVMs produce classification accuracy close to that of SVMs trained on high resource setups. It also performs unit inference for values with 64-dimensional features 3.5x times faster than CPUs, while consuming only 1/350th of the energy that CPUs consume.

References

[1]
Sourav Bhattacharya and Nicholas D. Lane. 2016. Sparsification and Separation of Deep Learning Layers for Constrained Resource Inference on Wearables. In Proceedings of the 14th ACM Conference on Embedded Network Sensor Systems, SenSys 2016, Stanford, CA, USA, November 14-16, 2016. ACM, 176--189.
[2]
Chirag Gupta, Arun Sai Suggala, Ankit Goyal, Harsha Vardhan Simhadri, Bhargavi Paranjape, Ashish Kumar, Saurabh Goyal, Raghavendra Udupa, Manik Varma, and Prateek Jain. 2017. ProtoNN: Compressed and Accurate kNN for Resource-scarce Devices. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017 (Proceedings of Machine Learning Research, Vol. 70). PMLR, 1331--1340. http://proceedings.mlr.press/v70/gupta17a.html
[3]
Philipp Gysel, Mohammad Motamedi, and Soheil Ghiasi. 2016. Hardware-oriented Approximation of Convolutional Neural Networks. CoRR abs/1604.03168 (2016). arXiv:1604.03168 http://arxiv.org/abs/1604.03168
[4]
Song Han, Huizi Mao, and William J Dally. 2015. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149 (2015).
[5]
Natascha Harth and Christos Anagnostopoulos. 2017. Quality-aware aggregation & predictive analytics at the edge. In 2017 IEEE International Conference on Big Data, BigData 2017, Boston, MA, USA, December 11-14, 2017. IEEE Computer Society, 17--26.
[6]
Vinu Joseph, Saurav Muralidharan, Animesh Garg, Michael Garland, and Ganesh Gopalakrishnan. 2019. A Programmable Approach to Model Compression. CoRR abs/1911.02497 (2019). arXiv:1911.02497 http://arxiv.org/abs/1911.02497
[7]
Goutham Kamath, Pavan Agnihotri, Maria Valero, Krishanu Sarker, and Wen-Zhan Song. 2016. Pushing Analytics to the Edge. In 2016 IEEE Global Communications Conference, GLOBECOM 2016, Washington, DC, USA, December 4-8, 2016. IEEE, 1--6.
[8]
Ashish Kumar, Saurabh Goyal, and Manik Varma. 2017. Resource-efficient Machine Learning in 2 KB RAM for the Internet of Things. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017 (Proceedings of Machine Learning Research, Vol. 70). PMLR, 1935--1944. http://proceedings.mlr.press/v70/kumar17a.html
[9]
Ashish Kumar, Saurabh Goyal, and Manik Varma. 2017. Resource-efficient Machine Learning in 2 KB RAM for the Internet of Things. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017 (Proceedings of Machine Learning Research, Vol. 70). PMLR, 1935--1944. http://proceedings.mlr.press/v70/kumar17a.html
[10]
Heejin Park, Shuang Zhai, Long Lu, and Felix Xiaozhu Lin. 2019. StreamBox-TZ: Secure Stream Analytics at the Edge with TrustZone. In 2019 USENIX Annual Technical Conference, USENIX ATC 2019, Renton, WA, USA, July 10-12, 2019. USENIX Association, 537--554. https://www.usenix.org/conference/atc19/presentation/park-heejin
[11]
Fernando Pérez-Cruz, Pedro Luis Alarcón-Diana, Ángel Navia-Vázquez, and Antonio Artés-Rodríguez. 2000. Fast Training of Support Vector Classifiers. In Advances in Neural Information Processing Systems 13, Papers from Neural Information Processing Systems (NIPS) 2000, Denver, CO, USA. MIT Press, 734--740. http://papers.nips.cc/paper/1855-fast-training-of-support-vector-classifiers
[12]
Antonio Polino, Razvan Pascanu, and Dan Alistarh. 2018. Model compression via distillation and quantization. CoRR abs/1802.05668 (2018). arXiv:1802.05668 http://arxiv.org/abs/1802.05668
[13]
Shree Krishna Sharma and Xianbin Wang. 2017. Live Data Analytics With Collaborative Edge and Cloud Processing in Wireless IoT Networks. IEEE Access 5 (2017), 4621--4635.
[14]
Bharath Sudharsan and Manigandan Chockalingam. 2019. A Microphone Array and Voice Algorithm based Smart Hearing Aid. CoRR abs/1908.07324 (2019). arXiv:1908.07324 http://arxiv.org/abs/1908.07324
[15]
Bharath Sudharsan, Sree Prem Kumar, and Rakesh Dhakshinamurthy. 2019. AI Vision: Smart speaker design and implementation with object detection custom skill and advanced voice interaction capability. In 2019 11th International Conference on Advanced Computing (ICoAC). IEEE, 97--102.

Cited By

View all
  • (2024)Machine Learning and Deep Learning Techniques for Internet of Things Network Anomaly Detection—Current Research TrendsSensors10.3390/s2406196824:6(1968)Online publication date: 20-Mar-2024
  • (2024)ToEFL: A Novel Approach for Training on Edge in Smart AgricultureProceedings of the Great Lakes Symposium on VLSI 202410.1145/3649476.3660381(657-662)Online publication date: 12-Jun-2024
  • (2024)AIfES: A Next-Generation Edge AI FrameworkIEEE Transactions on Pattern Analysis and Machine Intelligence10.1109/TPAMI.2024.335549546:6(4519-4533)Online publication date: Jun-2024
  • Show More Cited By

Index Terms

  1. Edge2Train: a framework to train machine learning models (SVMs) on resource-constrained IoT edge devices

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Other conferences
      IoT '20: Proceedings of the 10th International Conference on the Internet of Things
      October 2020
      204 pages
      ISBN:9781450387583
      DOI:10.1145/3410992
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 06 October 2020

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. embedded C
      2. intelligent microcontrollers
      3. real-time machine learning
      4. self-learning IoT edge

      Qualifiers

      • Research-article

      Funding Sources

      • European Regional Development Fund
      • Science Foundation Ireland (SFI)

      Conference

      IoT '20

      Acceptance Rates

      Overall Acceptance Rate 28 of 84 submissions, 33%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)307
      • Downloads (Last 6 weeks)58
      Reflects downloads up to 10 Nov 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2024)Machine Learning and Deep Learning Techniques for Internet of Things Network Anomaly Detection—Current Research TrendsSensors10.3390/s2406196824:6(1968)Online publication date: 20-Mar-2024
      • (2024)ToEFL: A Novel Approach for Training on Edge in Smart AgricultureProceedings of the Great Lakes Symposium on VLSI 202410.1145/3649476.3660381(657-662)Online publication date: 12-Jun-2024
      • (2024)AIfES: A Next-Generation Edge AI FrameworkIEEE Transactions on Pattern Analysis and Machine Intelligence10.1109/TPAMI.2024.335549546:6(4519-4533)Online publication date: Jun-2024
      • (2024)Enhancing Edge-Based Federated Learning With Privacy-Preserving Gradient Transmission for Tool Wear DetectionIEEE Sensors Journal10.1109/JSEN.2024.339700824:12(19780-19790)Online publication date: 15-Jun-2024
      • (2024)Internet of Intelligent Things: A convergence of embedded systems, edge computing and machine learningInternet of Things10.1016/j.iot.2024.10115326(101153)Online publication date: Jul-2024
      • (2024)Equilibrium in the Computing Continuum through Active InferenceFuture Generation Computer Systems10.1016/j.future.2024.05.056160:C(92-108)Online publication date: 1-Nov-2024
      • (2024)Reinforcement Learning for Real-Time Federated Learning for Resource-Constrained Edge ClusterJournal of Network and Systems Management10.1007/s10922-024-09857-132:4Online publication date: 13-Sep-2024
      • (2024)Minimizing Data Retrieval Delay in Edge ComputingMobile and Ubiquitous Systems: Computing, Networking and Services10.1007/978-3-031-63992-0_5(63-85)Online publication date: 19-Jul-2024
      • (2023)A Deep Learning-Driven Self-Conscious Distributed Cyber-Physical System for Renewable Energy CommunitiesSensors10.3390/s2309454923:9(4549)Online publication date: 7-May-2023
      • (2023)An Adaptable and Unsupervised TinyML Anomaly Detection System for Extreme Industrial EnvironmentsSensors10.3390/s2304234423:4(2344)Online publication date: 20-Feb-2023
      • Show More Cited By

      View Options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Get Access

      Login options

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media