Causality for Cyber-Physical Systems
Hugo Araujo, Hana Chockler, Mohammad Reza Mousavi, Gustavo Carvalho, Augusto Sampaio
TL;DR
The paper tackles the challenge of identifying root causes of failures in cyber-physical systems by extending Halpern-Pearl actual causality to continuous, time-evolving dynamics. It defines trajectory slices and causal models for CPSs, and develops a search-based algorithm, mechanised in MATLAB/Simulink and integrated with HyConf for conformance testing. Through running examples and two empirical case studies (suspension system and connected platoon), it demonstrates how to uncover single and multi-variable causes within trajectory intervals and quantify their impact on hazards. The approach yields actionable insights for fault localization and design corrections, with benchmarks showing scalable performance and guiding practical use in CPS verification and debugging.
Abstract
We present a formal theory for analysing causality in cyber-physical systems. To this end, we extend the theory of actual causality by Halpern and Pearl to cope with the continuous nature of cyber-physical systems. Based on our theory, we develop an analysis technique that is used to uncover the causes for examples of failures resulting from verification, which are represented as continuous trajectories. We develop a search-based technique to efficiently produce such causes and provide an implementation for such a technique. Moreover, we apply our solution to case studies (a suspension system and a connected platoon) and benchmark systems to evaluate its effectiveness; in the experiment, we show that we were able to detect causes for inserted faults.
