NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Role of Explainability in Assuring Safety of Machine Learning in Healthcare

Yan Jia, John McDermid, Tom Lawton, Ibrahim HabliarXiv 2021

TL;DR

Traditional safety engineering frameworks fail when applied to the "black-box" nature of machine learning (ML) in healthcare, where clear, pre-defined specifications do not exist. This paper establishes a systematic framework for integrating Explainable AI (XAI) across the entire ML lifecycle to generate concrete evidence for clinical safety cases. By applying these methods to a mechanical ventilation weaning case study, the authors demonstrate that while XAI is a powerful tool for model debugging and clinical validation, it is a necessary but ultimately insufficient component of safety assurance on its own.

What Problem Does This Paper Address?

In safety-critical domains like healthcare, systems must be rigorously verified and validated to ensure they do not pose risks to human life. Traditional software safety relies heavily on the "V-lifecycle" model, where engineers test software against explicit, pre-defined requirements. However, ML models learn directly from data, creating an opaque, specification-free system where it is incredibly difficult to scrutinize what has actually been learned.

While the ML community has developed numerous Explainable AI (XAI) techniques to peek inside these black boxes, most work focuses on building user trust during operation rather than systematically generating safety assurance evidence during development. This paper bridges the gap between safety engineering and XAI, showing how developers can use interpretability tools to satisfy regulatory expectations (such as those from the FDA) and construct a structured safety argument.

To conceptualize this, the authors introduce a "spider diagram" that reframes safety not as a standalone metric, but as a cross-cutting concern dependent on six distinct dimensions of an ML system.

Figure 1: Spider diagram illustrating the role of explainability and safey

Methods

The authors map specific XAI techniques to different stages of the ML lifecycle (Data Management, Algorithm Selection, Model Learning, and Model Verification & Validation) to extract safety evidence.

They categorize XAI methods into a clear taxonomy based on their scope and mechanism:

Table 1: Categorisation of XAI Methods with Examples

To demonstrate how these methods yield safety evidence, the authors design a clinical decision support system using a Convolutional Neural Network (CNN) to predict whether intensive care unit (ICU) patients are ready to be weaned from mechanical ventilation. They leverage three distinct advanced XAI techniques during development:

  1. Influence Functions (Model Learning Phase): Used as a debugging tool to calculate the impact of specific training data points on the model's final predictions without computationally expensive re-training.
  2. DeepLIFT (Validation Phase): A model-specific feature relevance method that attributes importance scores to input features by comparing neuron activations to a reference baseline, bypassing the issues of gradient saturation.
  3. Diverse Counterfactual Examples (DiCE) (Validation Phase): Generates "what-if" scenarios by finding the minimum feature perturbations required to flip the model's output, testing local robustness.

Finally, they feed the outputs of these XAI methods into a formal Safety Case structured via Goal Structuring Notation (GSN), turning empirical XAI plots into explicit safety claims.

Datasets

  • MIMIC-III: A widely used, freely accessible critical care database containing de-identified health-related data from over 40,000 patients who stayed in ICUs at the Beth Israel Deaconess Medical Center. The authors extracted 25 clinical features (e.g., heart rate, SpO2, ventilator settings, Richmond Agitation-Sedation Scale) to predict extubation readiness.

Key Insights and Ideas

  • XAI as a Debugging Tool: XAI isn't just a post-deployment feature for clinicians. Using influence functions during the training phase allows developers to identify "harmful" training instances—such as data from patients who suffered extubation failure—that bias the model toward unsafe, premature weaning decisions.
  • The Fidelity Paradox: Post-hoc explanations are inherently approximations; as computer scientist Cynthia Rudin noted, they "must be wrong" to some degree, because if they were 100% faithful to the black box, you wouldn't need the black box in the first place. The authors argue XAI should be viewed as a descriptive bridge that allows human clinical judgment to normatively evaluate the model.
  • Robustness Metrics from Counterfactuals: The distance between a real patient data point and its nearest valid counterfactual provides a quantifiable local robustness score. If a model requires significant clinical changes to flip its prediction, it is "harder to fool" and inherently more robust.

Key Results

  • Performance vs. Explainability Trade-off: The CNN achieved the highest predictive performance (AUC-ROC of 0.923 ± 0.010) compared to intrinsically interpretable models like Logistic Regression (0.827) and Decision Trees (0.808), justifying the choice of a black-box model supplemented with post-hoc XAI.
  • Data Debugging: Influence functions successfully identified that including patients who failed extubation within 48 hours in the training set actively degraded the model's safety, prompting the authors to exclude them to prevent dangerous false-positive readiness predictions.
  • Clinical Alignment: DeepLIFT global feature importance rankings showed that the top five features driving the CNN's decisions (e.g., Sedation scale/RAS, Inspired O2 fraction, ventilator category) perfectly matched established clinical weaning guidelines, providing strong evidence of valid clinical association.
  • Robustness Verification: Using DiCE, the authors proved that for a given patient, a minimum of 5 distinct clinical features had to be altered to flip the model's prediction, demonstrating localized stability against minor input noise.

Limitations and Future Work

The primary limitation acknowledged is the current immaturity of XAI evaluation metrics; there is still no formal consensus on how to objectively measure the "goodness" or local fidelity of an explanation. Additionally, while counterfactuals were successfully used to evaluate local robustness for individual patient instances, scaling this approach to generate a unified, global robustness score across an entire dataset remains an open challenge. The authors emphasize that future work must include empirical studies to evaluate how these safety arguments and explanations alter clinical workflows and human-machine trust in real-world hospital operations.

Summary updated

BibTeX
@misc{jia2021role,
  author = {Yan Jia and John McDermid and Tom Lawton and Ibrahim Habli},
  title = {{The Role of Explainability in Assuring Safety of Machine Learning in Healthcare}},
  year = {2021},
  eprint = {2109.00520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.00520},
}
Figure