A Safety Framework for Critical Systems Utilising Deep Neural Networks

Xingyu Zhao, Alec Banks, James Sharp, Valentin Robu, David Flynn, Michael Fisher, Xiaowei Huang · DOI

Abstract

Increasingly sophisticated mathematical modelling processes from Machine Learning are being used to analyse complex data. However, the performance and explainability of these models within practical critical systems requires a rigorous and continuous verification of their safe utilisation. Working towards addressing this challenge, this paper presents a principled novel safety argument framework for critical systems that utilise deep neural networks. The approach allows various forms of predictions, e.g., future reliability of passing some demands, or confidence on a required reliability level. It is supported by a Bayesian analysis using operational data and the recent verification and validation techniques for deep learning. The prediction is conservative -- it starts with partial prior knowledge obtained from lifecycle activities and then determines the worst-case prediction. Open challenges are also identified.

Introduction

Deep Learning (DL) is rapidly moving into safety-critical sectors like aviation, automotive, and healthcare. However, traditional safety standards (such as IEC-61508 or ISO-26262) were designed for human-written code with traceable requirements. Deep Neural Networks (DNNs) present a unique challenge: they are non-deterministic in practice, lack explicit requirement traceability, and are notoriously difficult to explain. We cannot simply "prove" a DNN is safe through traditional code inspection. This paper addresses the need for a framework that can provide a quantitative reliability claim—specifically the probability of failure per demand (pfd)—that stands up to the scrutiny of certification bodies.

The Safety Argument Framework

The proposed approach integrates lifecycle verification evidence into a structured Goal Structuring Notation (GSN) framework. The framework views DNN reliability through the lens of generalization error, decomposed into Bayes error (irreducible noise), approximation error (model architecture limitations), and estimation error (training process limitations). Specific lifecycle activities, such as data collection or model construction, are mapped to the reduction of these specific errors.

Figure 2: GSN template for structuring DNN safety arguments, decomposing the top-level safety goal into reliability and other properties.

A key innovation is the use of Conservative Bayesian Inference (CBI). Unlike standard Bayesian analysis, which requires a complete and often arbitrary prior distribution, CBI works with partial prior knowledge. For instance, an engineer might state, "I am 90% confident the failure rate is below 0.001." This initial confidence is established using evidence from formal verification tools, such as robustness checks. One of the most elegant ideas presented is treating formal verification (usually a pass/fail check) as a source of "prior confidence."

Quantitative Reliability and Confidence

The framework incorporates operational data—failure-free runs in the field—to boost the initial confidence obtained from offline verification. Crucially, CBI is "conservative" by design; it calculates the worst-case posterior prediction to ensure safety claims are not over-optimistic. This provides a necessary safety margin for certification.

Figure 3: Future reliability of passing t demands as a function of failure-free runs n for various prior confidence levels and error bounds.

As shown in Figure 3, the future reliability of passing a set number of demands increases as more failure-free operational data ($n$) is collected. The framework allows for heterogeneous arguments, weaving together testing, formal proof, and field data into a single logical structure. This allows for the quantification of confidence in meeting specific safety integrity levels (SIL). The authors also extend this logic to other properties, proposing a probabilistic measure for "instance-wise interpretability."

Discussion and Future Work

While the framework provides a rigorous structure, several challenges remain. Establishing a precise quantitative link between specific lifecycle activities and pfd reduction currently relies heavily on expert judgment. Additionally, the current model assumes a constant environment; future work will need to address distribution shifts in the "real world" through multivariate CBI. Finally, the framework assumes the reliability of the formal verification tools themselves, suggesting that doubts in tool assumptions must be captured within the confidence parameters. The next necessary step is the application of this methodology to large-scale industrial case studies.

Summary updated

BibTeX
@inproceedings{zhao2020safety,
  author = {Xingyu Zhao and Alec Banks and James Sharp and Valentin Robu and David Flynn and Michael Fisher and Xiaowei Huang},
  title = {{A Safety Framework for Critical Systems Utilising Deep Neural Networks}},
  booktitle = {SAFECOMP},
  year = {2020},
  doi = {10.1007/978-3-030-54549-9\_16},
}
Figure