Causal models for specifying requirements in industrial ML-based software: A case study

• Based on the results of a series of workshops with industrial practitioners, this study proposes the use of causal models as a supplement to natural language requirements for specifying software with ML components. • The paper provides a demonstration of a proposed causality-driven development concept on an industrial use case on anomaly detection in power systems. • The paper reports on initial results from laboratory experiments that indicate positive effects of the use of causal models during software development on the performance and robustness of a trained ML model for anomaly detection in an industrial prototyping setting. Unlike conventional software systems, where rules are explicitly defined to specify the desired behaviour, software components that incorporate machine learning (ML) infer such rules as associations from data. Requirements Engineering (RE) provides methods and tools for specifying the desired behaviour as structured natural language. However, the inherent ambiguity of natural language can make these specifications difficult to interpret. Moreover, it is challenging in RE to establish a clear link between the specified desired behaviour and data requirements necessary for training and validating ML models. In this paper, we explore the use of causal models to address this gap in RE. Through an exploratory case study, we found that causal models, represented as directed acyclic graphs (DAGs), support the collaborative discovery of an ML system’s operational context from a causal perspective. We also found that causal models can serve as part of the requirements specification for ML models because they encapsulate both data and model requirements needed to achieve the desired causal behaviour. We introduce a concept for causality-driven development , in which we show that data and model requirements, as well as a causal description of the operational context, can be discovered iteratively using graphical causal models. We demonstrate this approach using an industrial use case on anomaly detection with ML.

Authors

Institutions

Publication Details

Journal
Journal of Systems and Software
Published
2025-11-06
DOI
https://doi.org/10.1016/j.jss.2025.112691
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Causal models for specifying requirements in industrial ML-based software: A case study

Roland Weiß, Eric Knauss, Hans-Martin Heyn, Yufei Mao
Journal of Systems and Software
Software Engineering Research
article

Causal models for specifying requirements in industrial ML-based software: A case study

Roland Weiß, Eric Knauss, Hans-Martin Heyn, Yufei Mao
article en

Abstract

• Based on the results of a series of workshops with industrial practitioners, this study proposes the use of causal models as a supplement to natural language requirements for specifying software with ML components. • The paper provides a demonstration of a proposed causality-driven development concept on an industrial use case on anomaly detection in power systems. • The paper reports on initial results from laboratory experiments that indicate positive effects of the use of causal models during software development on the performance and robustness of a trained ML model for anomaly detection in an industrial prototyping setting. Unlike conventional software systems, where rules are explicitly defined to specify the desired behaviour, software components that incorporate machine learning (ML) infer such rules as associations from data. Requirements Engineering (RE) provides methods and tools for specifying the desired behaviour as structured natural language. However, the inherent ambiguity of natural language can make these specifications difficult to interpret. Moreover, it is challenging in RE to establish a clear link between the specified desired behaviour and data requirements necessary for training and validating ML models. In this paper, we explore the use of causal models to address this gap in RE. Through an exploratory case study, we found that causal models, represented as directed acyclic graphs (DAGs), support the collaborative discovery of an ML system’s operational context from a causal perspective. We also found that causal models can serve as part of the requirements specification for ML models because they encapsulate both data and model requirements needed to achieve the desired causal behaviour. We introduce a concept for causality-driven development , in which we show that data and model requirements, as well as a causal description of the operational context, can be discovered iteratively using graphical causal models. We demonstrate this approach using an industrial use case on anomaly detection with ML.

Journal of Systems and SoftwareVol. 232
Siemens (Germany) (DE), Chalmers University of Technology (SE), University of Gothenburg (SE)
Openalex Percentile: Top 53%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.