CMS: A Continuous Machine-Learning and Serving Platform for Industrial Big Data

KeDi Li, Ning GuiFuture Internet 2020

TL;DR

This paper introduces CMS, a container-based platform designed to automate the entire lifecycle of machine learning models in industrial settings, from continuous training and validation to seamless serving and updating. It addresses the critical need for rapidly evolving models in industrial environments without interrupting ongoing operations, demonstrating its effectiveness in a 1000 MW thermal power plant.

What Problem Does This Paper Address?

Industrial environments generate massive amounts of data from sensors, and the performance of machine learning models used for prediction, control, and optimization degrades over time due to evolving conditions, equipment wear, and operational changes. Traditional machine learning workflows are often manual, slow, and require expert intervention, making it difficult to keep models up-to-date. This leads to a gap between the potential of ML and its practical application in mission-critical industrial systems, where downtime is costly and data security is paramount. The paper specifically tackles the challenge of continuously regenerating, validating, and deploying updated models in a way that is automated, resource-efficient, and ensures uninterrupted service.

Methods

The core of the CMS platform is a container-based architecture leveraging Docker for resource isolation and management. Key components include:

  • Data Accessors: Responsible for collecting, translating, and mapping data from industrial systems (e.g., DCS) to the platform.
  • Trainers: Machine learning modules that generate models from historical data using various frameworks (Spark ML, TensorFlow, Keras). These are designed with a standardized "contract" for consistent invocation.
  • Modelets: Serve the trained models in production, making real-time predictions. They are designed for low latency and scalability.
  • Orchestrator: The central component that manages the entire workflow. It triggers trainers, validates generated models, and orchestrates seamless model updates to modelets without interrupting service.
  • Model Seamless Switching Mechanism: A master-slave design for modelets ensures that when a new model is deployed, one instance is updated while the other continues serving, minimizing downtime.

The platform emphasizes automation, minimizing human intervention, and efficient resource utilization through containerization and a micro-service architecture.

Datasets

The paper describes a case study using data from a 1000 MW coal-fired thermal power plant. This plant generates approximately 3.8 GB of data per day from 15,528 physical sensors. The data was used to train and evaluate eight different prediction models for key system metrics. No new benchmark datasets were introduced; rather, real-world industrial data was utilized.

Key Insights and Ideas

  • The critical need for continuous model evolution: Industrial environments are dynamic, and models trained on historical data quickly become stale, especially after significant events like major overhauls or system adjustments.
  • Automation is key for industrial ML: Manual model retraining and deployment are bottlenecks. An automated platform like CMS is essential for maintaining model performance and operational efficiency.
  • Seamless model switching is non-negotiable: Industrial processes cannot tolerate service interruptions. The master-slave modelet design effectively handles model updates with minimal impact on prediction latency.
  • Resource isolation is crucial for multitenancy: In a platform supporting multiple trainers and modelets, effective resource isolation (CPU, memory) is vital to prevent interference and ensure predictable performance, with partial isolation offering a good balance between performance and resource utilization.
  • Model validation is a two-stage process: Both offline (test set) and online (live traffic) validation are necessary to ensure the reliability and robustness of newly generated models before deployment.

Key Results

  • The CMS platform was deployed in a 1000 MW thermal power plant for over five months, managing eight different prediction models.
  • During a major plant overhaul, the accuracy of existing models degraded significantly (MAPE increased 4-10 times).
  • With daily model updates, the platform demonstrated improved model accuracy, with MAPEs gradually decreasing.
  • The platform proved to be resource-efficient, with data processors and modelets consuming limited resources. Trainers, while resource-intensive, were managed effectively by the orchestrator, with peak consumption limited.
  • The seamless model switching mechanism introduced only a slight increase in prediction delay (around 24.2 ms) and minimal extra overhead.
  • Partial CPU isolation for trainers and modelets offered a good balance, achieving near-optimal training times and acceptable prediction delays compared to complete isolation or no isolation.

Limitations and Future Work

  • Dynamic update timing: The current platform's model update timing is not dynamic enough to automatically adapt to varying industrial conditions.
  • Retraining efficiency: The current retraining process does not leverage the old model, and more efficient retraining methods are needed to reduce computational resource consumption.
  • Online validation challenges: Distinguishing between model deviation and data deviation during online validation remains an area for investigation.
  • Domain adaptation: Research into domain adaptation is ongoing to better handle situations where training and test data distributions differ.
  • Resource allocation and scheduling: Further work is needed to achieve more efficient resource usage and scalability through dynamic allocation and scheduling.

Summary updated

BibTeX
@article{li2020cms,
  author = {KeDi Li and Ning Gui},
  title = {{CMS: A Continuous Machine-Learning and Serving Platform for Industrial Big Data}},
  journal = {Future Internet},
  year = {2020},
  doi = {10.3390/fi12060102},
}

Loading related content...

Figure