MIFR: A Modality-Invariant and Fair Representation Framework for Skin Disease Classification
Organizations: Department of Mathematics and Computer Science, University of Dschang, Cameroon · EFREI Research Lab, Université Paris-Panthéon-Assas, France · MIS, Université de Picardie Jules Verne, France · Hertie Institute for AI in Brain Health, University of Tübingen, Germany
Abstract
Skin diseases represent a major global public health burden, yet machine learning tools developed to assist in their diagnosis suffer from two critical limitations: reliance on only one modality for diagnosis and systematic performance disparities across skin tones. While existing approaches address each challenge separately, this work proposes a modality-invariant framework with fair representation (MIFR) for skin disease classification. The architecture pairs clinical photographs with dermoscopic images using ViT-based encoders, projecting each input into a high-dimensional embedding space via modality-specific projection heads. The resulting model is trained with a five-component multi-objective loss including weighted cross-entropy for classification, confusion and skin-type classification losses for fairness, per-modality supervised contrastive loss for class alignment, and a modality-invariance loss for clinical and dermoscopic modality alignment. Experiments on the HIBA+Derm7pt paired dataset and the external PAD-UFES-20 and ISIC 2019 datasets showed that modality-invariant representation learning provides competitive predictive performance compare to relevant baseline models and competitive fairness on the internal dataset. t-SNE visualizations confirmed that clinical and dermoscopic embeddings of the same disease are geometrically aligned, validating the joint objectives.
Figures & tables
| Dataset | # Samples | Retained | Melanoma | Nevus | BCC |
| HIBA [ 15 ] | 1,616 | 1,195 | 253 | 602 | 340 |
| Derm7pt [ 9 ] | 2,022 | 1,738 | 504 | 1,150 | 84 |
| PAD-UFES-20 [ 14 ] | 2,098 | 1,141 | 52 | 244 | 845 |
| ISIC 2019 [ 3 ] | 33,769 | 25,517 | 5,849 | 15,370 | 4,298 |
| Dataset | Model | Performance | Fairness | |||
| Acc | AUC | F1-Score | Acc | PQD | ||
| HIBA+Derm7pt | BASE | .9313 | .9738 | .9165 | .0691 | .6667 |
| BASE+SA | .9352 | .9813 | .9226 | .0562 | .6667 | |
| BASE+Contr | .9284 | .9683 | .9142 | .0887 | .8298 | |
| BASE+MI | .9188 | .9619 | .9001 | .0394 | .8723 | |
| BASE+Contr+MI | .9043 | .9664 | .8883 | .0265 | .8511 | |