Skip to main content
QUICK REVIEW

[Paper Review] XCloud: Design and Implementation of AI Cloud Platform with RESTful API Service

Lu Xu, Yating Wang|arXiv (Cornell University)|Dec 14, 2019
IoT and Edge/Fog ComputingComputer Science19 references5 citations
TL;DR

XCloud is an open-source AI cloud platform that exposes common computer vision and data mining services via RESTful APIs, enabling researchers and developers to easily integrate pre-trained models into applications. Built on PyTorch and Django, it delivers low-latency inference (e.g., 16ms avg. latency for skin disease recognition) and supports extensibility through modular design and TensorRT optimization for high-performance deployment.

ABSTRACT

In recent years, artificial intelligence (AI) has aroused much attention among both industrial and academic areas. However, building and maintaining efficient AI systems are quite difficult for many small business companies and researchers if they are not familiar with machine learning and AI. In this paper, we first evaluate the difficulties and challenges in building AI systems. Then an cloud platform termed XCloud, which provides several common AI services in form of RESTful APIs, is constructed. Technical details are discussed in Section 2. This project is released as open-source software and can be easily accessed for late research. Code is available at https://github.com/lucasxlu/XCloud.git.

Motivation & Objective

  • To address the difficulty of building and deploying AI systems for researchers and small businesses unfamiliar with machine learning pipelines.
  • To bridge the gap between academic AI research models and production-ready applications by providing accessible, open-source cloud services.
  • To enable rapid integration of AI capabilities into diverse applications through standardized, performant RESTful APIs.
  • To support extensibility by allowing developers to plug in custom models via a modular controller architecture.
  • To ensure high performance and stability through load balancing, stress testing, and TensorRT-based inference optimization.

Proposed method

  • XCloud is implemented using Django as the backend framework and PyTorch for model training and inference.
  • It exposes AI services through RESTful APIs using HTTP POST and GET methods, with input via image URLs or raw image data.
  • The platform uses a modular MVC architecture, separating views, controllers, and models for maintainability and extensibility.
  • Pre-trained models include ResNet18, ResNet50, DenseNet121, and HMTNet, fine-tuned on specific datasets for tasks like plant and disease recognition.
  • Model inference is accelerated using TensorRT, achieving 97.63 FPS on two 2080TI GPUs—significantly faster than native PyTorch inference (29.45 FPS).
  • User and API usage data are logged in MySQL relational tables for monitoring and analytics.

Experimental results

Research questions

  • RQ1How can a cloud platform be designed to simplify the deployment of AI models for non-expert users in research and small businesses?
  • RQ2What architectural patterns enable efficient, scalable, and extensible exposure of AI services via RESTful APIs?
  • RQ3How does model optimization with TensorRT impact inference latency and throughput in a production-like environment?
  • RQ4To what extent can a unified platform support diverse AI tasks such as image classification, facial attribute prediction, and content filtering?
  • RQ5What performance and stability metrics can be achieved under real-world load conditions using standard hardware?

Key findings

  • XCloud achieves an average latency of 16ms for skin disease recognition and 25ms for facial beauty prediction, with 100% success rate in stress testing.
  • The platform demonstrates high stability, with zero errors across all tested APIs under load, as confirmed by JMeter stress tests.
  • TensorRT-based inference on two 2080TI GPUs achieves 97.63 FPS for DenseNet169, a 3.3-fold improvement over native PyTorch inference (29.45 FPS).
  • The system supports 20 queries per second (QPS) on standard hardware (2080TI GPUs and Intel Xeon CPU), indicating strong scalability potential.
  • The platform enables seamless integration of new AI models through a plug-in controller architecture, reducing deployment friction for custom models.
  • The open-source release on GitHub allows researchers to access, extend, and reproduce the system, fostering reproducibility and collaboration.

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.