TinyML:超低功耗机器学习
TinyML: Ultra-low power machine learning

原始链接: https://www.ikkaro.net/what-tinyml-is/

微型机器学习(TinyML)是指将机器学习原理应用于具有最少计算资源的系统,例如传感器、可穿戴设备和其他智能设备等嵌入式系统中常见的微控制器。 为了使现有技术适应极端约束下的操作,有五种关键方法包括修剪、量化、稀疏网络、网络插值和任务分解。 正如其在工业环境、医疗保健、农业等领域的成功应用所表明的那样,tinyML 在降低运营成本方面具有巨大潜力,同时以较低的计算成本促进实时决策。 然而,在整个技术的设计、开发和部署过程中,都需要考虑其在不同人群中的有效性、遵守隐私标准以及创建可访问的、以人为本的设计。 TinyML 严重依赖 Tensorflow Lite 等开源工具来支持研究人员、应用程序开发人员和爱好者等。

不必要。 虽然机器学习广泛应用于各个行业,但具体用例、实现细节和术语可能会根据应用领域的不同而有所不同。 TinyML, for instance, focuses on applying machine learning algorithms to microcontroller-based devices, while industrial ML often involves the use of larger computing resources and more complex machine learning pipelines for tasks such as quality control or predictive maintenance. 然而,TinyML 和工业 ML 在某些情况下存在重叠,特别是在工业物联网 (IIOT) 或汽车等领域。 总体而言,虽然“工业机器学习”或“TinyML”等术语可能与某些技术或应用程序类型相关,但机器学习背后的原则仍然适用于多个垂直市场和场景。
相关文章

原文
What TinyML is

TinyML or Tiny Machine Learning refers to the use of Machine Learning in microcontrollers. In systems that unlike those used in traditional ML have few resources, are systems that have little CPU, little RAM and extremely low power consumption in the order of magnitude of milliwatts or microwatts.

Its official website is the TinyML Foundation.

What is done is to reduce large models for use with equipment with very few resources and microcontrollers. The preferred field of the Makers.

I have started a series of 3 courses offered by Harvard for free

  1. Fundamentals of TinyML (What do I build, what for and what are the problems)
  2. Applications of TinyML (data-driven, bias, etc)
  3. Deploying TinyML (where do we put our models, security and privacy)

The following notes are from the first Fundamentals of TinyML where they explain what it is, when it is applied, the different techniques that are used, etc, etc.

Embedded systems using microcontrollers cannot work with the large models, as they have memories up to 256kB. Here are some examples of operating systems that can be used with microcontrollers

Machine Learning consists of algorithms that search for patterns in data.

With TinyML, techniques are used to compress these algorithms so that they remain effective in finding patterns in data.

There are 5 quintillion bytes of data produced daily by IoT and only less than 1% is analyzed.

Algorithm compression techniques

Some algorithm compression techniques are:

Pruning

Pruning Synapsis: We remove network connections from the model. Sometimes it can decrease the accuracy.

Pruning Neurons: We can also eliminate entire neurons from our model which reduces the computational demand of the network.

Quantization

It consists of discretizing the values within a small range. For example if we discretize a float within the range -128 to 127 we only have to traverse 256 values. Going from a float point value that is stored in 4 bytes to an integer value that is stored in 1 byte implies a x4 reduction in size.

Quantization is going to be critical in TinyML due to the limited resources available.

Knowledge distillation

Apply our knowledge and know how to make the model small.

Tools

We use Tensor Flow Lite. While tensorFlow is focused on ML Researcher, Tensor Flow Lite is for Application Developer.

Uses of TinyML

Although they are not cited, of course being on this website we can find uses of TinyML dedicated to the DIY, Maker and Hacker world.

Uses of TinyML in Industry

In Industry, in maintenance, to warn us when there are vibrations that indicate that there will be breakage, etc, etc. increases efficiency and reduces costs. The negative points are the accuracy that can give us false alarms. In case of false alarm whose responsibility is the operator or the system.

TinyML in the environment

Instead of collecting data that then has to be processed, with TinyML we have real-time answers about changes in the environment, for example in the life of wild animals.

TinyML for humans

Helps people with disabilities to perform more tasks without having to use their hands. Improving the UI and UX of applications to make them easier to use.

We build technology to improve our experience as humans. Technology has to help people

Risks and downsides

  • Will it work well across all population groups?
  • Is the privacy of our data assured?
  • Can we protect this data?

We have to create technology based on human-centered AI. Design, development and deployment

联系我们 contact @ memedata.com