AI in the developing world: How ‘tiny machine learning’ can have a big impact

Infineon / Mitsubishi / Fuji / Semikron / Eupec / IXYS

AI in the developing world: How ‘tiny machine learning’ can have a big impact

Posted Date: 2024-02-11

AI in the developing world: how 'tiny machine learning' can have a big impact
Map of the TinyML Academic Network. More than 50 universities are part of the network as of February 2024. Credit: Marcelo Rovai, CC BY-SA

The landscape of artificial intelligence (AI) applications has traditionally been dominated by the use of resource-intensive servers centralized in industrialized nations. However, recent years have witnessed the emergence of small, energy-efficient devices for AI applications, a concept known as tiny machine learning (TinyML).

We’re most familiar with consumer-facing applications such as Siri, Alexa, and Google Assistant, but the limited cost and small size of such devices allow them to be deployed in the field. For example, the technology has been used to detect mosquito wingbeats and so help prevent the spread of malaria. It’s also been part of the development of low-power animal collars to support conservation efforts.

Small size, big impact

Distinguished by their small size and low cost, TinyML devices operate within constraints reminiscent of the dawn of the personal-computer era—memory is measured in kilobytes and hardware can be had for as little as US$1. This is possible because TinyML doesn’t require a laptop computer or even a mobile phone. Instead, it can instead run on simple microcontrollers that power standard electronic components worldwide. In fact, given that there are already 250 billion microcontrollers deployed globally, devices that support TinyML are already available at scale.

A number of development packages for TinyML applications are available. Two popular options are Arduino and Seeed Studio, both of which come with additional sensors for audio, vision, and motion-based applications.

How does it work?

Like classical machine learning, TinyML involves data collection—often from Internet of Things (IoT) devices—and cloud-based training. Let’s consider an outdoor object-detection application—for example, counting the number of cars on a street to see how heavy the traffic there is. In the classical ML process, images have to be gathered using a webcam and sent to a cloud server where the training takes place. Once the trained model provides an acceptable level of accuracy, the system is ready to detect cars from a new video feed. The ML model runs on the cloud, so an Internet connection is necessary.

In the TinyML system, however, the model is deployed on the device itself and is ready to detect objects with no need for connectivity. The first part of the process (gathering data and training the model on the cloud) follows the classical ML model but the inference phase (detecting objects) runs on the device itself. This is how TinyML diverges from traditional server-based architectures: it deploys pre-trained compact models optimized for limited resources onto embedded devices, enabling real-time, low-power data analysis and decision-making, all independent of cloud connectivity.

TinyML offers several advantages over traditional centralized server-based models:

  • Affordability: the technology’s low cost makes these devices accessible to a wide range of users including educational institutions and students in the developing world.
  • Sustainability: the modest energy consumption produces a low carbon footprint, reducing impact on the environment.
  • Flexibility and scalability: it enables the development of applications that address the needs of local communities rather than global agendas.
  • Internet independent: Because everything is embedded, TinyML devices can operate without online connectivity. This is particularly beneficial for the third of the world that still does not have Internet access.

TinyML applications already power personalized sensors for athletics and provide localization where GPS isn’t available. They’re also employed by startups such as Useful Sensors, which offers privacy-conserving conversational agents, QR code scanners, and person-detection hardware. Only through the use of TinyML could these smart devices run on the low-cost, low-power microcontrollers.

Source :