Abstract
Machine Learning (ML) engineering involves complex, multidisciplinary workflows that often lack formal documentation and repeatability. This paper introduces a specialized framework and Domain-Specific Language (DSL) designed to bridge the gap between data science and software engineering. By providing a standardized toolkit to define and export ML processes to execution engines like BPMN, the framework transforms ad-hoc AI development into a rigorous, repeatable engineering discipline.
Introduction
Building ML-based systems is notoriously difficult because it requires a "perfect storm" of diverse skill sets, involving data scientists, software engineers, business analysts, and domain experts. Traditional software engineering process models, such as BPMN or SPEM, are often too generic to capture ML-specific nuances like hyperparameter tuning, data annotation, or model drift monitoring. Without a shared language, teams often suffer from siloed knowledge, leading to inconsistent practices and significant difficulties in onboarding new members.
As illustrated in Figure 1, the ML engineering process is characterized by continuous feedback loops across various stages, from initial data collection to model deployment and monitoring. The framework addresses this complexity by providing a formal structure for these interactions, ensuring that artifacts and responsibilities are clearly defined throughout the lifecycle.
The Modeling Framework
The core of the proposed solution is a framework that allows organizations to formally define their own ML engineering processes. It centers on a DSL organized into four high-level activity clusters: Business Understanding, Data Preparation, AI Modeling, and Operations. This DSL explicitly includes specialized roles (e.g., Data Annotator, Model Operator) and artifacts (e.g., HyperParameters, AI Model Flaws), recognizing that human governance and data management are as critical as the algorithm itself.
As shown in Figure 2, the framework utilizes the Eclipse Sirius platform to provide a graphical modeling editor. To make the models actionable, an Acceleo-based converter transforms high-level ML models into BPMN 2.0 files, which are executable by standard workflow engines like Camunda. This model-driven approach allows organizations to automate the generation of documentation and the skeletons of their CI/CD pipelines.
Methods and Validation
The authors followed a rigorous multi-step research and development approach. First, they conducted a literature synthesis, analyzing 7 scientific papers and 4 major industry standards—including CRISP-DM, Microsoft’s TDSP, and Google’s MLOps—to identify common activities, roles, and artifacts. This synthesis informed the DSL design, which extends core process concepts with AI-specific primitives. The framework was validated by modeling the Microsoft Team Data Science Process (TDSP) and successfully executing a running instance of it within the Camunda BPMN engine, demonstrating its practical utility in real-world engineering environments.
Key Insights and Results
- Comprehensive Coverage: The DSL successfully maps to and encompasses activities found in 12 major scientific and industrial references, providing a standardized vocabulary previously missing from engineering notations.
- Model-Driven MLOps: By treating the ML process as a "model" itself, organizations can automate the generation of documentation and even the skeletons of their CI/CD pipelines.
- Agnosticism and Flexibility: The framework does not prescribe a single way to do ML. Instead, it provides "LEGO bricks" (activities like
FeatureEngineeringorAIModelEvaluation) so companies can build a process that fits their specific culture. - Bridging the "Valley of Death": By including an Operations cluster, the DSL forces teams to consider deployment (e.g., canary releases, batch vs. online inference) and monitoring during the design phase, rather than as an afterthought.
Conclusion
The proposed framework provides a robust and portable solution for standardizing ML engineering. By offering a standardized vocabulary and executable outputs, it helps turn experimental data science into a repeatable engineering practice. While currently focused on supervised learning, future work will focus on extending the DSL for reinforcement learning and further automating the generation of underlying pipeline code for platforms such as Kubeflow or Airflow.
Summary updated