Abstract
Deep learning models, particularly Convolutional Neural Networks (CNNs), have demonstrated exceptional performance in diagnosing skin diseases, often outperforming dermatologists. However, they have also unveiled biases linked to specific demographic traits, notably concerning diverse skin tones or gender, prompting concerns regarding fairness and limiting their widespread deployment. Researchers are actively working to ensure fairness in AI-based solutions, but existing methods incur an accuracy loss when striving for fairness. To solve this issue, we propose a ‘two-biased teachers’ (i.e., biased on different sensitive attributes) based approach to transfer fair knowledge into the student network. Our approach mitigates biases present in the student network without harming its predictive accuracy. In fact, in most cases, our approach improves the accuracy of the baseline model. To achieve this goal, we developed a weighted loss function comprising biasing and debiasing loss terms. We surpassed available state-of-the-art approaches to attain fairness and also improved the accuracy at the same time. The proposed approach has been evaluated and validated on two dermatology datasets using standard accuracy and fairness evaluation measures.
Introduction
The integration of deep learning into dermatology has shown immense promise, often matching or exceeding the diagnostic precision of human experts. However, a critical bottleneck has emerged: algorithmic bias. Models trained on datasets that over-represent certain demographics—typically lighter skin tones—frequently exhibit a performance drop when applied to minority subgroups. Historically, addressing this "fairness gap" has necessitated an "accuracy tax," where improvements in equity come at the cost of overall diagnostic performance.
This research introduces a novel framework designed to break this trade-off. By leveraging a "two-biased teachers" approach, the method transfers specialized knowledge into a student network, ensuring both high accuracy and demographic fairness across diverse patient populations.
Methodology
The core of the proposed solution is a two-stage Knowledge Distillation (KD) framework that utilizes the specialized expertise of biased models to train a fair student network.
Stage 0: Creating Biased Teachers
Rather than attempting to train a single unbiased teacher from scratch, the framework intentionally develops two biased experts. For skin tone analysis, Teacher 1 is fine-tuned specifically on "fair" skin samples, while Teacher 0 is fine-tuned on "dark" skin samples. Each model becomes an expert within its specific demographic domain.
Stage 1: Fair Knowledge Transfer
The student network is trained to synthesize the expertise of both teachers through a multi-weighted loss function. This function incorporates two primary components:
- Biasing Loss: This term encourages the student to emulate the expert teacher corresponding to the input's subgroup (e.g., learning from the "Dark Skin Expert" when processing dark skin images).
- Debiasing Loss: This term forces the student to learn from the opposite teacher to neutralize subgroup-specific artifacts (e.g., applying the "Fair Skin Expert's" logic to dark skin images to ensure the model isn't just memorizing skin-tone-specific features).
By adjusting the weights of these losses, the student model learns to prioritize disease-relevant features over sensitive attributes like skin tone or gender.
Experimental Evaluation
The framework was validated using two prominent dermatology benchmarks representing different imaging modalities and sensitive attributes:
- Fitzpatrick-17k: A dataset comprising 16,577 clinical images across 114 disease classes. Skin tones were categorized into "fair" (Fitzpatrick 1-3) and "dark" (Fitzpatrick 4-6) to test for skin tone bias.
- ISIC-2019: A collection of 25,331 dermoscopic images. In this dataset, gender (male/female) served as the sensitive attribute to test the model's generalizability beyond skin tone.
Results and Discussion
The "two-biased teachers" approach consistently outperformed state-of-the-art (SOTA) fairness techniques, such as FairPrune and AdvConf, across both datasets.
- Performance on Fitzpatrick-17k: The model achieved an F1-score of 52.35%, exceeding the VGG-11 baseline (51.0%). Crucially, it improved the Equalized Odds (Eodd) fairness metric to 0.1491, a significant reduction from the baseline's 0.182.
- Performance on ISIC-2019: The approach reached a top F1-score of 73.94% with a near-perfect Eodd of 0.01, demonstrating that the method effectively neutralizes gender bias.
- Clinical Practicality: The student model is computationally efficient. Inference for the entire test set was completed in just 2.57 seconds, making it highly suitable for real-world clinical integration where rapid diagnosis is essential.
Visual analysis using t-SNE embeddings confirmed that the student model effectively decouples disease features from sensitive attributes, leading to more distinct clustering based on pathology rather than demographic traits.
Conclusion
This research demonstrates that biased models, when utilized as specialized "teachers," can be powerful assets in training fair and accurate AI systems. By moving away from the traditional accuracy-fairness trade-off, this approach paves the way for more equitable and reliable diagnostic tools in global healthcare. Future work will explore the intersectionality of multiple sensitive attributes and the application of this framework to other medical imaging modalities like MRI or CT scans.
Summary updated