All research 05 / 05

Notes from the research

Lesion-Grouped Benchmarking of Class Imbalance Handling, Transfer Learning, Explainable Artificial Intelligence and Federated Learning for Dermoscopic Skin Cancer Classification

Dec 2026 · 2 min read · Muhammad Shakaib Arsalan with Muhammad Husnain and Muhammad Rumaan

Skin cancer datasets often hold several photos of the same lesion. Split them at random and the test partly checks memory. This paper redoes four common experiments with the split made by lesion instead.

  • Medical imaging
  • Federated learning
  • Explainable AI

The question

A dermoscopy dataset can hold several photos of one lesion. A random train and test split then puts one photo in training and another in the test, so a good score partly rewards memory.

The paper asks how much four common results change when the split is made by lesion: handling rare classes, reusing ImageNet weights, Grad-CAM heat maps, and federated training across hospitals.

How the study works

  1. 01Count shared lesions in HAM10000 (10,015 images) and Fed-ISIC2019 (23,247)
  2. 02Random and lesion-grouped splits, three seeds each
  3. 03Three backbones and six ways of handling rare classes: 84 runs
  4. 04Score on the internal test and on the official ISIC 2018 test
  5. 05Check Grad-CAM maps on 36 models
  6. 06Federated training across six centres with FedAvg and FedProx

What came out

  • About 35% of test images in a random HAM10000 split share a lesion with training. In the released Fed-ISIC2019 split it is 65.9%.
  • The random split raised internal balanced accuracy in all 42 paired comparisons, by 11.3 points on average. On the official test set the difference was 0.8 points.
  • Federated numbers shrink as well. Pooled training fell from 81.3% to 61.6% once the split was made by lesion, and FedAvg from 65.4% to 55.4%.
  • A heat map can look right and still fail. EfficientNet-B0 put 71% of its Grad-CAM inside the lesion, but beat a random map in the insertion test on only 49% of images.
How much a random split inflates the scoreAverage gain in balanced accuracy from a random split over a lesion-grouped one, in points.
  • Internal test split +11.3
  • Official ISIC 2018 test +0.8
Random against grouped balanced accuracy for each imbalance method and backbone, on the internal and the official test sets.
From the paper. Random against grouped balanced accuracy: the gap is large on the internal split and small on the official test set.

What it doesn’t show

  • Dermoscopy images only, mostly of light skin.
  • Lesion IDs do not guarantee that patients are separate, and there is no external test set.
  • Three seeds and one training recipe, and Grad-CAM is the only explanation method tested.

Paper and code

Journal paper in preparation. Code, splits and results are public.

Code, splits and results on GitHub

Want to talk about this work?

Questions about the method or the data, or a role where this kind of work matters. Email is the quickest way.

Google Meet · 30 min

Book a call with Shakaib

Loading times…

Pick a date

Choose a day to see open times.

Times in your time zone

——
  • 30 minutes on Google Meet
  • Invite and Meet link by email
  • Need another time? Just email me

You’ll get a Google Calendar invite with the Meet link.

You’re booked.

An invite with the Meet link is on its way to .