将神经网络部署到树莓派微控制器,实现低功耗实时推理。
AI-ANNE: (A) (N)eural (N)et for (E)xploration: Transferring Deep Learning Models onto Microcontrollers and Embedded Systems
- 用MicroPython在树莓派Pico上实现轻量神经网络架构。
- 支持分类任务,实测延迟低、功耗小,适合边缘计算。
- 兼顾实用与教学,适合嵌入式开发者和学习者入门AI
本文探讨将神经网络集成到资源受限的嵌入式系统(如Raspberry Pi Pico / Raspberry Pi Pico 2)中的可行性。采用TinyML方法,直接将预训练模型从TensorFlow、Keras等高性能平台迁移至微控制器,利用MicroPython语言实现低功耗、低延迟、实时的推理,同时保障数据隐私。提出AI-ANNE:(A)(N)eural(N)et for(E)xploration,展示如何在微控制器上实现神经元、层、密度及激活函数等核心结构以应对计算限制。基于Raspberry Pi Pico/Pico 2,实现了两种用于数据分类的神经网络。进一步应用示例表明,该系统可用于状态监测,依据传感器数据即时触发纠正措施。整体方案易于实现,不仅适用于实际部署,还可作为理解神经网络运作机制的教育工具。
原文摘要 · Abstract (English)
This working paper explores the integration of neural networks onto resource-constrained embedded systems like a Raspberry Pi Pico / Raspberry Pi Pico 2. A TinyML aproach transfers neural networks directly on these microcontrollers, enabling real-time, low-latency, and energy-efficient inference while maintaining data privacy. Therefore, AI-ANNE: (A) (N)eural (N)et for (E)xploration will be presented, which facilitates the transfer of pre-trained models from high-performance platforms like TensorFlow and Keras onto microcontrollers, using a lightweight programming language like MicroPython. This approach demonstrates how neural network architectures, such as neurons, layers, density and activation functions can be implemented in MicroPython in order to deal with the computational limitations of embedded systems. Based on the Raspberry Pi Pico / Raspberry Pi Pico 2, two different neural networks on microcontrollers are presented for an example of data classification. As an further application example, such a microcontroller can be used for condition monitoring, where immediate corrective measures are triggered on the basis of sensor data. Overall, this working paper presents a very easy-to-implement way of using neural networks on energy-efficient devices such as microcontrollers. This makes AI-ANNE: (A) (N)eural (N)et for (E)xploration not only suited for practical use, but also as an educational tool with clear insights into how neural networks operate.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。