QXAI: Explainable AI Framework for Quantitative Analysis in Patient Monitoring Systems

Thanveer Shaik, Xiaohui Tao, Haoran Xie, Lin Li, Juan D. Velásquez, Niall HigginsarXiv 2023 · DOI

Introduction

The integration of deep learning into remote patient monitoring (RPM) has the potential to transform clinical interventions by providing real-time predictions for vital signs and physical activities. However, the "black-box" nature of these high-performing models often hinders their adoption in healthcare, where transparency is a prerequisite for clinical trust. The QXAI (Quantitative Explainable AI) framework addresses this challenge by bridging the gap between predictive accuracy and interpretability.

The QXAI Framework

The QXAI framework is designed to provide both global and patient-specific explanations for model outputs. It supports diverse architectures, including Artificial Neural Networks (ANN) and Attention-based Bidirectional LSTMs (BiLSTM), ensuring flexibility across different clinical tasks such as regression (e.g., heart rate prediction) and classification (e.g., activity monitoring).

Overview of the QXAI framework, illustrating the pipeline from input features through black-box models to the generic explainable layer and final output.

The framework's interpretability is built on two distinct pillars:

  1. Intrinsic Explainability (Attention): By incorporating an attention layer into the BiLSTM architecture, the model naturally "weights" input features during training. These weights provide an internal map of feature importance as perceived by the model.
  2. Post-hoc Explainability (Shapley Values): QXAI utilizes Kernel SHAP to attribute the contribution of each feature to a specific prediction. To ensure the framework is computationally feasible for real-time monitoring, the authors integrated Monte Carlo approximation, which uses random sampling to estimate feature importance without the exponential time complexity of exact Shapley calculations.

Methodology and Data Flow

The framework was validated using two benchmark datasets: PPG-DaLiA for heart rate prediction and MHEALTH for activity classification. These datasets include multi-modal data such as 3D acceleration, ECG, respiration, and body temperature. The workflow involves mapping these high-dimensional inputs through deep learning models to generate both predictions and corresponding feature contribution tables.

Detailed workflow showing the mapping of vital signs and 3D sensor data through ANN and BiLSTM models to produce model outputs and quantitative feature contributions.

Key Insights and Results

QXAI provides a dual-level perspective that is critical for clinical utility. Global explanations identify which sensors are generally most important for the model, while local explanations allow clinicians to zoom in on a single patient record to see exactly which factors (e.g., a spike in motion vs. a change in ECG) drove a specific prediction.

  • Predictive Performance: The ANN model achieved state-of-the-art results, including a Mean Absolute Error (MAE) of 3.33 for heart rate prediction and 100% accuracy in activity classification.
  • Feature Synergy: The analysis revealed that the model's strength lies in understanding the interaction between physiological data (like R-peaks in ECG) and motion data. For instance, gyroscope data from the left ankle was identified as the primary driver for identifying complex movements like climbing stairs.
  • Validation: By comparing attention weights with Shapley values, the researchers verified that the model's internal focus aligns with the mathematical contribution of the features, providing a "consensus" that increases confidence in the explanations.

Conclusion and Future Work

While QXAI represents a significant advancement in making deep learning practical for clinical settings, challenges remain regarding the memory intensity of Kernel SHAP for massive streaming data. Future research will focus on improving the generalizability of the framework across more diverse patient demographics and translating complex technical visualizations, such as SHAP force plots, into intuitive interfaces specifically tailored for medical practitioners.

Summary updated

BibTeX
@misc{shaik2023qxai,
  author = {Thanveer Shaik and Xiaohui Tao and Haoran Xie and Lin Li and Juan D. Velásquez and Niall Higgins},
  title = {{QXAI: Explainable AI Framework for Quantitative Analysis in Patient Monitoring Systems}},
  year = {2023},
  eprint = {2309.10293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.10293},
}
Figure