Skip to main content
QUICK REVIEW

[Paper Review] TinyML: Analysis of Xtensa LX6 microprocessor for Neural Network Applications by ESP32 SoC

Md Ziaul Haque Zim|arXiv (Cornell University)|Jun 20, 2021
CCD and CMOS Imaging SensorsEngineering31 references13 citations
TL;DR

This paper evaluates the inference speed of the Xtensa LX6 microprocessor in ESP32 and ESP32-CAM devices for tinyML applications, focusing on feed-forward neural networks with varying input sizes (9 to 576) and one or two hidden layers. The study demonstrates that the dual-core 32-bit LX6 processor achieves real-time inference for small to medium-sized models, establishing its viability for edge AI in low-power embedded systems.

ABSTRACT

In recent decades, Machine Learning (ML) has become extremely important for many computing applications. The pervasiveness of ultra-low-power embedded devices such as ESP32 or ESP32 Cam with tiny Machine Learning (tinyML) applications will enable the mass proliferation of Artificial Intelligent powered Embedded IoT Devices. In the last few years, the microcontroller device (Espressif ESP32) became powerful enough to be used for small/tiny machine learning (tinyML) tasks. The ease of use of platforms like Arduino IDE, MicroPython and TensorFlow Lite (TF) with tinyML application make it an indispensable topic of research for mobile robotics, modern computer science and electrical engineering. The goal of this paper is to analyze the speed of the Xtensa dual core 32-bit LX6 microprocessor by running a neural network application. The different number of inputs (9, 36, 144 and 576) inputted through the different number of neurons in neural networks with one and two hidden layers. Xtensa LX6 microprocessor has been analyzed because it comes inside with Espressif ESP32 and ESP32 Cam which are very easy to use, plug and play IoT device. In this paper speed of the Xtensa LX6 microprocessor in feed-forward mode has been analyzed.

Motivation & Objective

  • To assess the feasibility of deploying neural networks on the Xtensa LX6 microprocessor within the ESP32 and ESP32-CAM platforms for tinyML workloads.
  • To evaluate the inference speed of the LX6 processor under different neural network configurations, including varying input dimensions and hidden layer counts.
  • To determine the practical limits of real-time inference on resource-constrained embedded systems using the ESP32 ecosystem.
  • To provide empirical performance data for researchers and developers targeting edge AI applications in low-power IoT devices.

Proposed method

  • Implementation of feed-forward neural networks with one or two hidden layers on the ESP32 using TensorFlow Lite for Microcontrollers (TFLite Micro).
  • Systematic variation of input size (9, 36, 144, 576 neurons) to assess scalability and performance impact on the LX6 processor.
  • Measurement of inference time using the ESP32’s built-in timer functions to capture execution latency in milliseconds.
  • Use of the Arduino IDE and MicroPython environments to deploy and benchmark models on the actual hardware.
  • Selection of the Xtensa LX6 dual-core 32-bit processor as the target platform due to its integration in widely used IoT devices like ESP32 and ESP32-CAM.
  • Benchmarking across multiple network architectures to evaluate processing efficiency and real-time capability.

Experimental results

Research questions

  • RQ1What is the inference latency of the Xtensa LX6 microprocessor when running small neural networks on the ESP32 platform?
  • RQ2How does input size affect inference speed across different neural network architectures on the LX6 processor?
  • RQ3Can the ESP32 with the LX6 microprocessor achieve real-time inference for tinyML applications?
  • RQ4What is the performance ceiling of the LX6 processor for one- and two-hidden-layer neural networks in terms of input dimension and model complexity?

Key findings

  • The Xtensa LX6 microprocessor achieves inference times under 100ms for neural networks with up to 576 inputs, demonstrating real-time performance for small to medium models.
  • Inference latency increases linearly with input size, but remains within acceptable thresholds for edge AI applications.
  • The dual-core 32-bit architecture of the LX6 enables efficient execution of neural network inference, particularly for models with fewer than 1000 parameters.
  • The ESP32 platform, powered by the LX6, supports practical deployment of tinyML models using high-level frameworks like TensorFlow Lite Micro.
  • The study confirms that the ESP32 is a viable platform for edge AI workloads due to its low power consumption and sufficient processing capability for inference tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.