Skip to main content
QUICK REVIEW

[Paper Review] Bonseyes AI Pipeline -- bringing AI to you. End-to-end integration of data, algorithms and deployment tools

Miguel de Prado, Jing Su|arXiv (Cornell University)|Jan 15, 2019
Anomaly Detection Techniques and ApplicationsComputer Science23 references13 citations
TL;DR

This paper presents a modular, end-to-end AI pipeline that integrates data ingestion, model training, deployment optimization, and IoT hub connectivity to streamline AI development for embedded systems. By unifying diverse tools via a dockerized API and integrating the lightweight LPDNN inference framework, the pipeline enables efficient, high-performance deployment of AI models—consistently outperforming other frameworks by over 2x and up to 5x on embedded platforms like Raspberry Pi 3 and 4.

ABSTRACT

Next generation of embedded Information and Communication Technology (ICT) systems are collaborative systems able to perform autonomous tasks. The remarkable expansion of the embedded ICT market, together with the rise and breakthroughs of Artificial Intelligence (AI), have put the focus on the Edge as it stands as one of the keys for the next technological revolution: the seamless integration of AI in our daily life. However, training and deployment of custom AI solutions on embedded devices require a fine-grained integration of data, algorithms, and tools to achieve high accuracy. Such integration requires a high level of expertise that becomes a real bottleneck for small and medium enterprises wanting to deploy AI solutions on the Edge which, ultimately, slows down the adoption of AI on daily-life applications. In this work, we present a modular AI pipeline as an integrating framework to bring data, algorithms, and deployment tools together. By removing the integration barriers and lowering the required expertise, we can interconnect the different stages of tools and provide a modular end-to-end development of AI products for embedded devices. Our AI pipeline consists of four modular main steps: i) data ingestion, ii) model training, iii) deployment optimization and, iv) the IoT hub integration. To show the effectiveness of our pipeline, we provide examples of different AI applications during each of the steps. Besides, we integrate our deployment framework, LPDNN, into the AI pipeline and present its lightweight architecture and deployment capabilities for embedded devices. Finally, we demonstrate the results of the AI pipeline by showing the deployment of several AI applications such as keyword spotting, image classification and object detection on a set of well-known embedded platforms, where LPDNN consistently outperforms all other popular deployment frameworks.

Motivation & Objective

  • Address the fragmentation and integration challenges in deploying custom AI solutions on resource-constrained embedded devices.
  • Reduce the high expertise barrier that hinders small and medium enterprises (SMEs) from adopting AI in edge applications.
  • Enable seamless, modular integration of data, algorithms, and deployment tools across the AI development lifecycle.
  • Demonstrate end-to-end AI development with real-world applications such as keyword spotting, image classification, and object detection.
  • Establish a robust, portable, and efficient deployment framework (LPDNN) that outperforms existing solutions on embedded platforms.

Proposed method

  • Design a four-stage modular AI pipeline: (i) data ingestion, (ii) model training, (iii) deployment optimization, and (iv) IoT hub integration.
  • Use dockerized APIs to encapsulate and interconnect tools, enabling reusability and platform-agnostic deployment.
  • Integrate the LPDNN (Low-Power Deep Neural Network) framework as the core deployment engine, optimized for embedded inference.
  • Leverage ONNX and MMDNN for cross-framework model conversion to ensure compatibility with diverse training frameworks like Caffe, TensorFlow, and PyTorch.
  • Optimize LPDNN with a rich set of hand-tuned, architecture-specific primitives to maximize inference speed and efficiency on ARM-based embedded systems.
  • Benchmark performance across multiple networks (e.g., MobileNet-V2, GoogLeNet, ResNet50) and platforms (Raspberry Pi 3/4) using floating-point inference on CPU.

Experimental results

Research questions

  • RQ1How can the integration of data, algorithms, and deployment tools be streamlined to reduce expertise barriers in embedded AI development?
  • RQ2To what extent can a modular, end-to-end AI pipeline improve the performance and portability of AI models on resource-constrained embedded devices?
  • RQ3How does the LPDNN framework compare to established deployment frameworks (e.g., TF Lite, ArmCL, TensoRT) in terms of inference speed and stability across diverse neural network architectures?
  • RQ4What impact does model format conversion have on inference performance, particularly when using non-native frameworks like TF Lite with non-TF Lite models?
  • RQ5Can a unified pipeline with a lightweight, optimized inference engine like LPDNN consistently outperform existing solutions across multiple embedded platforms and AI workloads?

Key findings

  • The Bonseyes AI pipeline successfully enables end-to-end development of embedded AI applications with seamless integration of data, training, and deployment workflows.
  • LPDNN achieves a median speedup of over 2x and up to 5x compared to the slowest framework (Caffe) across multiple networks and platforms, demonstrating superior performance and stability.
  • On Raspberry Pi 4, LPDNN achieved inference times of 105ms for MobileNet-V2 and 216ms for GoogLeNet—significantly outperforming TF Lite, which was up to 2.5x slower on non-TF Lite models.
  • The performance of TF Lite was notably degraded when converting models from Caffe or TensorFlow to TF Lite, indicating that format and framework dependency severely impact performance.
  • LPDNN’s support for multiple model formats (via ONNX) and its ability to maintain high performance across diverse architectures confirm its flexibility and robustness.
  • The pipeline’s dockerized API enables tool reusability and extensibility, allowing developers to plug in new components without re-architecting the entire workflow.

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.