Clinically grounded attention models for interpretable classification of documented myocardial infarction history using real-world tabular health records
Accurate and interpretable identification of documented myocardial infarction (MI) history from routinely collected clinical records can facilitate retrospective clinical phenotyping and improve the understanding of model decision behavior in real-world healthcare data. This study focuses on structured clinical tabular records and aims to develop an interpretable classification framework for distinguishing individuals with and without documented prior MI while providing clinically constrained explanations of the resulting model decisions. A clinically interpretable attention modeling framework was proposed by incorporating a predefined feature-modifiability mask into multi-head attention scores as a structural constraint, enabling feature interaction modeling and explanation-oriented representation learning within a unified framework. An attention-derived importance vector was further aggregated to guide a gated counterfactual branch, thereby generating sparse hypothetical feature modifications concentrated on predefined modifiable dimensions. These counterfactuals are used to characterize the behavior of the classifier around its decision boundary rather than to estimate causal intervention effects. On the in-hospital dataset, the proposed model achieved an overall performance of Acc 0.9320 ± 0.0027 and AUC 0.9804 ± 0.0042 across five independent patient-level re-splits. Additional cross-database external evaluation on two public intensive care electronic health record datasets yielded Acc 0.8762 ± 0.0104 and AUC 0.9542 ± 0.0097 on MIMIC-IV, and Acc 0.8774 ± 0.0097 and AUC 0.9478 ± 0.0104 on eICU-CRD, respectively, indicating that the model retained acceptable discrimination ability across different external cohorts. The proposed framework provides an interpretable approach for classifying documented prior MI status from real-world structured clinical records while integrating clinically constrained attention with model-level counterfactual analysis. The generated counterfactuals describe hypothetical changes associated with shifts in the model’s classification and should not be interpreted as evidence of preventive or therapeutic effects. The findings support the potential value of the framework for retrospective clinical phenotyping, interpretable analysis of structured health records, and cross-database assessment of model behavior, while prospective prediction of incident MI remains outside the scope of the present study.
Authors
- Chao Yang (ORCID: https://orcid.org/0000-0002-1711-3453)
- Runwen Li
- Fengjuan Chen
Institutions
- Panzhihua Central Hospital (CN)
Publication Details
- Journal
- BMC Cardiovascular Disorders
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1186/s12872-026-06943-x
- Primary Topic
- Machine Learning in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00