Boundary aware knowledge distillation for lightweight dermoscopy segmentation
Skin diseases are spread over a wide range of conditions and remain a major public health problem for humans. However, the current dermoscopy segmentation models are either too expensive or exhibit limited boundary fidelity for real-time applications. There is little scope for application on low-resource devices. In this work, we present a selective knowledge distillation framework that transfers structural and semantic knowledge from a base model to a lightweight student network. A frozen SAM-Med2D teacher provides per-pixel supervision during training, and knowledge transfer is dynamically modulated using boundary-aware weighting and uncertainty gating to focus on structurally important and reliable regions. During training, the teacher is guided by bounding-box prompts from ground truth masks, whereas the student performs fully prompt-free inference at test time. The proposed method is tested on ISIC-2018 and PH2. It measures the segmentation accuracy (Dice, IoU), boundary quality (Boundary-F1, HD95), and calibration metrics (ECE, Brier score). On ISIC-2018, the model achieves 0.95 Dice, 0.91 IoU, 0.83 BF1, 5.7 HD95, 2.7% ECE, and 0.045 Brier score, with only 2.9M parameters. The proposed student model exhibits a small performance gap compared to prompt-based teacher models, but enables efficient, prompt-free inference while showing promising segmentation accuracy, boundary fidelity, and calibration on the evaluated datasets. The final assessment marks a viable step toward its clinical application.
Authors
- Shajar Abbas (ORCID: https://orcid.org/0000-0002-1046-7064)
- Saima Riasat (ORCID: https://orcid.org/0009-0003-0121-2451)
- Akhtar Jamıl (ORCID: https://orcid.org/0000-0002-2592-1039)
- Mohamed R. Ali (ORCID: https://orcid.org/0000-0002-0795-0709)
- Syed Modassir Hussain (ORCID: https://orcid.org/0009-0008-8684-0452)
- Kamran Riasat
- Aymen Flah
- Sania Zeb
Institutions
- VSB - Technical University of Ostrava (CZ)
- Applied Science Private University (JO)
- National University of Computer and Emerging Sciences (PK)
- Biruni University (TR)
- Islamic University of Madinah (SA)
- Sohar University (OM)
- Fatima Jinnah Women University (PK)
- Chitkara University (IN)
Publication Details
- Journal
- Engineering Science and Technology an International Journal
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1016/j.jestch.2026.102597
- Primary Topic
- Cutaneous Melanoma Detection and Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00