Abstract
SemCloud addresses the complexity of configuring cloud resources for industrial data pipelines by integrating logical reasoning with predictive modeling. Using a neuro-symbolic approach, the system employs Datalog rules to manage the structural logic of Extract-Transform-Load (ETL) workflows while leveraging external Machine Learning (ML) functions to estimate resource requirements. Experimental results from a manufacturing use case show that this hybrid approach, particularly using Polynomial Regression, achieves high accuracy (nmae: 0.0671) with minimal training data, significantly lowering the barrier for domain experts to deploy large-scale cloud applications.
Introduction
The rise of Industry 4.0 has led to an explosion of data from smart factories, necessitating robust cloud-based processing. However, the precise configuration of cloud resources—such as RAM, CPU, and storage—remains a significant challenge. Data scientists often understand the logic of their ETL pipelines but lack the specialized knowledge required to optimize infrastructure for specific data volumes or operations. This "configuration bottleneck" often requires manual intervention from cloud experts, slowing down deployment and scaling.
Methods
The proposed system, SemCloud, automates this process through a three-stage workflow powered by Datalog and ML:
- Graph Extraction: ETL pipelines (comprising Retrieve, Slice, Prepare, and Store tasks) are defined via a graphical interface and converted into a Knowledge Graph (KG). Datalog rules extract the structural dependencies of the pipeline.
- Resource Estimation: This core stage utilizes "adaptive" Datalog rules that call external ML functions. These models predict resource consumption based on historical pilot runs.
- Resource Configuration: Final Datalog rules use these predictions to determine optimal hardware allocations and storage strategies.
The implementation uses the DLV reasoner with Python plugins to execute ML models like Polynomial Regression (PolyR), Multilayer Perceptrons (MLP), and K-Nearest Neighbors (KNN).
Key Results
SemCloud was evaluated using a real-world industrial dataset from manufacturing quality monitoring in welding, consisting of over 3,500 pipeline runs. The evaluation compared the performance of different ML models in the resource estimation step.
The results indicate that Polynomial Regression (PolyR) is the most effective model for this task. It achieved the lowest Normalised Mean Absolute Error (nmae: 0.0671) and required significantly less training data (7.42%) to reach peak performance compared to more complex models like MLP. Furthermore, PolyR demonstrated superior efficiency with a training time of just 20.82ms and inference times under 1ms, making it suitable for dynamic cloud environments.
Conclusion
SemCloud demonstrates the power of neuro-symbolic synergy, where Datalog provides the logical framework and ML provides the quantitative predictions necessary for cloud orchestration. By automating the configuration burden, the system democratizes cloud deployment for domain experts. Future research will focus on enhancing Knowledge Graph embeddings and improving the transparency of the integrated ML models.
Summary updated