Somers, Richard ORCID: 0000-0002-1101-9722
(2025)
Causal Surrogate Models: Adding "What If" to Cyber-Physical System Testing.
PhD thesis, University of Sheffield.
Abstract
Cyber-physical systems (CPS) are becoming more prevalent, especially in human-interacting environments. Identifying incorrect behaviour through software testing is, therefore, paramount to their use. Surrogate-assisted testing approaches aim to effectively test such systems by searching for scenarios that may result in system violations by using surrogate models to search for potential violations and evaluating those scenarios on a high-fidelity simulator. However, the development of surrogate models requires curated datasets to accurately represent system behaviour. Such datasets are typically unavailable for CPSs due to the limitations and expense of physical execution, especially for human-interacting systems. Pre-existing datasets may be used instead, which may contain spurious associations or may not cover all behaviours (a lack of controllability). Unmeasurable environmental factors may also affect system behaviour, making system outputs appear inconsistent for a given input (a lack of observability). In this thesis, we use a motivating example of an artificial pancreas system (APS) to investigate the limitations of testing such a system.
To account for the lack of observability and controllability of CPSs, we define a causal surrogate model to enable more effective testing of their behaviour. This surrogate model integrates with existing surrogate-assisted testing techniques. Our surrogate model uses causal inference, which can account for bias in pre-existing datasets and assess the expected causal relationships between variables. As a result, we enable the testing of systems for which curated data may not be available or that exhibit behaviours affected by external factors.
We perform two evaluations, first replicating an existing study of surrogate-assisted CPS testing on an automated driving system (ADS). In this evaluation, our results demonstrate how our approach found system violations with less computational expense than the state-of-the-art. We then test a more complex, safety-critical APS. However, to test the APS, we first develop and validate a digital twin of a person using an APS to act as a high-fidelity simulator. The APS can, therefore, be disconnected from the human-in-the-loop, allowing for the testing of potentially dangerous scenarios without clinical trials. Our causal surrogate model demonstrates the ability to uncover over double the number of violations using real-world clinical APS data, compared to the state-of-the-art surrogate-assisted testing approach. We show how causal surrogate models can alleviate the requirement of curated data for systems testing and present a novel way of navigating and finding system violations for inconsistent system behaviour
Metadata
Supervisors: | Walkinshaw, Neil and Hierons, Robert |
---|---|
Awarding institution: | University of Sheffield |
Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Computer Science (Sheffield) |
Depositing User: | Mr Richard Somers |
Date Deposited: | 04 Jul 2025 10:33 |
Last Modified: | 04 Jul 2025 10:33 |
Open Archives Initiative ID (OAI ID): | oai:etheses.whiterose.ac.uk:37006 |
Download
Final eThesis - complete (pdf)
Filename: RichardSomers_PhD_Thesis__Corrections_-1.pdf
Licence:
This work is licensed under a Creative Commons Attribution NonCommercial NoDerivatives 4.0 International License
Export
Statistics
You do not need to contact us to get a copy of this thesis. Please use the 'Download' link(s) above to get a copy.
You can contact us about this thesis. If you need to make a general enquiry, please see the Contact us page.