Skip to main content
QUICK REVIEW

[Paper Review] ThingML+ Augmenting Model-Driven Software Engineering for the Internet of Things with Machine Learning

Armin Moin, Stephan Rössler|arXiv (Cornell University)|Sep 22, 2020
IoT and Edge/Fog ComputingComputer Science4 references17 citations
TL;DR

This paper proposes ThingML+, an extension of the ThingML model-driven engineering framework that natively integrates machine learning (ML) into the modeling and code generation pipeline for IoT and cyber-physical systems (CPS). By enabling ML-based behavior specification alongside traditional state machines, ThingML+ allows developers to model ML algorithms at design time and automatically generate code for platforms like Apache SAMOA and Apama, thus unifying software engineering and data science workflows in a single, extensible toolchain.

ABSTRACT

In this paper, we present the current position of the research project ML-Quadrat, which aims to extend the methodology, modeling language and tool support of ThingML - an open source modeling tool for IoT/CPS - to address Machine Learning needs for the IoT applications. Currently, ThingML offers a modeling language and tool support for modeling the components of the system, their communication interfaces as well as their behaviors. The latter is done through state machines. However, we argue that in many cases IoT/CPS services involve system components and physical processes, whose behaviors are not well understood in order to be modeled using state machines. Hence, quite often a data-driven approach that enables inference based on the observed data, e.g., using Machine Learning is preferred. To this aim, ML-Quadrat integrates the necessary Machine Learning concepts into ThingML both on the modeling level (syntax and semantics of the modeling language) and on the code generators level. We plan to support two target platforms for code generation regarding Stream Processing and Complex Event Processing, namely Apache SAMOA and Apama.

Motivation & Objective

  • To address the growing need for AI and machine learning support in IoT and cyber-physical systems (CPS) within model-driven engineering (MDE) methodologies.
  • To overcome the limitations of state machine-based behavior modeling in IoT systems where physical processes are not well understood or predictable.
  • To enable seamless integration of data-driven ML modeling with traditional component and interface modeling in a domain-specific modeling language (DSML).
  • To support automatic code generation for ML-enabled components on stream processing platforms such as Apache SAMOA and Apama.
  • To reduce the barrier for software engineers without ML expertise to build intelligent IoT services through guided, automated ML modeling and code generation.

Proposed method

  • Extends the ThingML domain-specific modeling language with new syntax and semantics to model machine learning algorithms directly in the design phase.
  • Introduces a dual modeling approach: traditional state machine behavior for control logic and data-driven inference models for ML-based behavior.
  • Enables model-to-text transformations that generate platform-specific code for target execution environments such as Apache SAMOA and Apama.
  • Supports integration of ML pipelines through templates and abstractions that decouple ML logic from low-level implementation details.
  • Leverages the Eclipse Modeling Framework (EMF) to ensure extensibility and interoperability with existing MDE toolchains.
  • Incorporates guidance and best-practice suggestions during modeling to assist non-experts in selecting appropriate ML algorithms and data preparation steps.

Experimental results

Research questions

  • RQ1How can machine learning be natively integrated into a model-driven engineering framework for IoT and CPS applications?
  • RQ2What are the key challenges in generating executable code from models that include ML-based behavior instead of state machines?
  • RQ3How can non-expert developers be supported in modeling and deploying ML components within IoT systems without deep data science expertise?
  • RQ4What are the architectural and semantic extensions required to unify software engineering and machine learning modeling in a single DSML?
  • RQ5How can the tooling support the full lifecycle of ML-integrated IoT services, from design to deployment on stream processing platforms?

Key findings

  • The integration of machine learning into ThingML enables a holistic, systematic approach to IoT service development that unifies software engineering and data science workflows.
  • The proposed extension allows developers to model ML algorithms at design time and automatically generate platform-specific code for Apache SAMOA and Apama, reducing implementation complexity.
  • The approach supports non-experts in building intelligent IoT services by abstracting away low-level ML implementation details and offering modeling guidance.
  • The main challenge lies in reconciling the fundamentally different natures of software engineering models (state machines) and ML models (inference-based, hyperparameter-sensitive), requiring careful abstraction and tooling support.
  • The toolchain is designed to be extensible, supporting future integration with additional ML platforms and use cases beyond the initial support for SAMOA and Apama.
  • The project demonstrates that model-driven engineering can be extended to natively support AI/ML, addressing the industry-wide shortage of data scientists by empowering software engineers with ML-capable modeling abstractions.

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.