Contrastive Representation Learning on TabTransformer Latent Features for Imbalanced Post-Stroke mRS Classification
Open Access
- 26 August 2026
- journal article
- research article
- Published by MDPI AG in Information
- Vol. 17 (9) , 821
Abstract
The increasing availability of electronic clinical records has enabled new opportunities for predictive modeling in healthcare. However, clinical data are characterized by heterogeneous patient information, limited sample availability, and highly imbalanced outcome distributions, which may hinder the ability of predictive models to capture complex patterns and generalize across underrepresented groups. This work investigates deep learning-based representation learning strategies for predicting the final post-stroke functional state derived from the modified Rankin Scale (mRS) using clinical tabular data. The proposed methodology learns informative patient representations while addressing class imbalance without altering the original data distribution, avoiding limitations of conventional resampling strategies. Specifically, the proposed framework combines a TabTransformer encoder with Supervised Contrastive Learning and Focal Loss to jointly optimize discriminative representation learning and imbalance-aware classification. By obtaining more separable latent representations and reducing the bias toward majority-class predictions, the approach aims to improve the identification of patients with unfavorable functional outcomes. Experimental results show that the proposed model achieves the highest accuracy (0.92) and macro-averaged F1-score (0.80), with balanced minority-class precision (0.67) and recall (0.64), unlike the other models, which showed a trade-off between these metrics. These results demonstrate improved minority-class identification while maintaining overall predictive performance in clinical outcome prediction.Keywords
Funding Information
- Junta de Castilla y León (SA061G24)
This publication has 32 references indexed in Scilit:
- Efficacy and comparative performance of machine learning models for stroke risk prediction in hypertensive patients: A systematic review and meta-analysisInternational Journal of Cardiology Cardiovascular Risk and Prevention, 2025
- PTransformer: A Prompt-Based Multimodal Transformer Architecture For Medical Tabular Data2025
- A comprehensive survey of loss functions and metrics in deep learningArtificial Intelligence Review, 2025
- Generalizable self-supervised learning for brain CTA in acute strokeComputers in Biology and Medicine, 2024
- Challenges and applications in generative AI for clinical tabular data in physiologyPflügers Archiv - European Journal of Physiology, 2024
- Handling imbalanced medical datasets: review of a decade of researchArtificial Intelligence Review, 2024
- Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentationComputerized Medical Imaging and Graphics, 2022
- Deep representation learning of electronic health records to unlock patient stratification at scalenpj Digital Medicine, 2020
- Effective data generation for imbalanced learning using conditional generative adversarial networksExpert Systems with Applications, 2018
- Multiclassifier Systems for Predicting Neurological Outcome of Patients with Severe Trauma and Polytrauma in Intensive Care UnitsJournal of Medical Systems, 2017