DeepSelective: Feature Gating and Representation Matching for Interpretable Clinical Prediction

Ruochi Zhang, Qian Yang, Xiaoyang Wang, Haoran Wu, Qiong Zhou, Yu Wang 0225, Kewei Li, Yueying Wang, Yusi Fan, Jiale Zhang, Lan Huang, Chang Liu, Fengfeng Zhou

Abstract

Predicting patient outcomes from Electronic Health Records (EHR) requires a delicate balance between predictive power and clinical interpretability. We present DeepSelective, an end-to-end deep learning framework that integrates differentiable feature selection with a Transformer-based autoencoder. By employing a "dual-compression" strategy—sparsity compression via dynamic gating and perceptual compression via representation learning—DeepSelective identifies critical biomarkers while maintaining state-of-the-art accuracy. Evaluated on the MIMIC-III dataset, the model outperforms existing benchmarks in mortality and decompensation prediction while providing clinicians with transparent, validated feature importance.

1. Introduction

The proliferation of Electronic Health Records (EHRs) has provided a rich substrate for clinical predictive modeling. However, the high dimensionality and longitudinal nature of this data present a significant challenge. Traditional machine learning models, while interpretable, often rely on manual feature engineering and fail to capture complex temporal dependencies. Conversely, modern deep learning architectures achieve high accuracy but operate as "black boxes," hindering their adoption in high-stakes clinical environments where understanding the "why" behind a prediction is as important as the prediction itself.

DeepSelective addresses this gap by providing a framework that explicitly identifies which features drive a specific prognosis. By treating sparsity as a path to interpretability, the model ensures that its internal representations are built only upon the most clinically relevant data points.

2. Methodology

The DeepSelective framework is built on four interconnected modules designed to optimize the trade-off between information retention and model transparency.

2.1 Dynamic Gating Feature Selection (DGFS)

The DGFS module performs "sparsity compression" by selecting a subset of input features. To overcome the non-differentiable nature of discrete selection, the framework utilizes the Gumbel-Softmax trick. This allows the model to learn feature importance weights through standard backpropagation, effectively "gating" the input data before it reaches the deeper layers of the network.

2.2 Attentive Transformer Autoencoder (ATA)

Following the gating process, the ATA module performs "perceptual compression." It utilizes a Transformer architecture to learn refined latent representations of the patient state. A critical design choice is that the ATA only processes features passed by the DGFS. This architectural constraint prevents "information leakage," ensuring that the model cannot rely on unselected (and thus non-interpretable) features to make predictions.

2.3 Representation Matching Layer (RML)

The RML serves as the integrative component of the architecture. It extracts two types of information:

  • Aligned Information: Features and patterns identified as significant by both the selection and representation modules.
  • Complementary Information: Unique insights derived from the interaction between discrete selection and continuous latent space.

These are fused to produce the final clinical prediction.

2.4 PID Sparsity Controller

Unlike traditional models that use static hyperparameters for sparsity, DeepSelective introduces a Proportional-Integral-Derivative (PID) controller. This feedback-based mechanism dynamically adjusts the selection threshold during training based on the model’s current error rate. This ensures an optimal balance between aggressive feature reduction and the preservation of predictive accuracy.

3. Experimental Evaluation

The framework was rigorously tested using the MIMIC-III dataset, encompassing data from over 90 Intensive Care Units. The evaluation focused on two primary tasks:

  1. Mortality Prediction: Predicting hospital survival based on early-stage ICU data.
  2. Decompensation Detection: Real-time prediction of physiological decline within a 24-hour window.

3.1 Performance Results

DeepSelective demonstrated superior performance compared to established baselines such as RETAIN, AdaCare, and ConCare.

  • Mortality Prediction: The model achieved an AUROC of 0.9054 and an AUPRC of 0.5627, a significant improvement over ConCare’s 0.8702 AUROC.
  • Decompensation Detection: The model reached an AUROC of 0.9143, surpassing the previous state-of-the-art.

4. Interpretability and Clinical Validation

A core strength of DeepSelective is its ability to reduce the input feature space by 80-85% without losing predictive power. The features retained by the DGFS module—such as Respiratory Rate, Glasgow Coma Scale (GCS) verbal response, and Glucose levels—were subjected to T-tests and Mutual Information analysis. These statistical tests confirmed that the model’s selected features align with established clinical indicators, providing a bridge between machine learning outputs and medical intuition.

5. Conclusion and Future Work

DeepSelective represents a significant step toward transparent AI in healthcare. By combining mathematical rigor (preventing information leakage) with control theory (PID-based sparsity), the framework provides a robust solution for EHR-based prediction. Future research will focus on expanding the model to handle multi-modal data, including medical imaging and unstructured clinical notes, and improving the robustness of the sparsity controller across diverse hospital systems.

Summary updated

BibTeX
@article{zhang2026deepselective,
  author = {Ruochi Zhang and Qian Yang and Xiaoyang Wang and Haoran Wu and Qiong Zhou and Yu Wang and Kewei Li and Yueying Wang and Yusi Fan and Jiale Zhang and Lan Huang and Chang Liu and Fengfeng Zhou},
  title = {{DeepSelective: Feature Gating and Representation Matching for Interpretable Clinical Prediction}},
  journal = {Pattern Recognition},
  year = {2026},
  doi = {10.1016/j.patcog.2025.112970},
}
Figure