← Latest papers
💻 computer science

Synthetic Data Generation for Long-Tail Medical Image Classification: A Case Study in Skin Lesions

This paper proposes a diffusion-model-driven synthetic data augmentation pipeline featuring a novel inpainting model and an Out-of-Distribution post-selection mechanism to effectively address long-tail class imbalance in medical image classification, achieving significant performance gains—particularly on rare classes—on the ISIC2019 skin lesion dataset.

Original authors: Jiaxiang Jiang, Mahesh Subedar, Omesh Tickoo

Published 2026-05-06
📖 4 min read☕ Coffee break read

Original authors: Jiaxiang Jiang, Mahesh Subedar, Omesh Tickoo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are training a student to recognize different types of skin spots. In the real world, some spots are very common (like a "Head" class), while others are extremely rare but dangerous (like a "Tail" class).

The problem is that your student only gets to study 10,000 pictures of the common spots but only 50 pictures of the rare, dangerous ones. Naturally, the student becomes an expert at spotting the common ones but fails miserably when they see a rare one. This is the "Long-Tail" problem in medical AI.

This paper proposes a clever solution: Don't just study harder; create more study material.

Here is how they did it, explained with simple analogies:

1. The Problem: The Unbalanced Library

Think of the medical dataset as a library. The "Head" classes have entire shelves full of books (images). The "Tail" classes have only a single, dusty book on the bottom shelf. When the AI tries to learn, it ignores the bottom shelf because there's nothing there to read. But in medicine, that single book might describe a deadly disease, so ignoring it is dangerous.

2. The Solution: The "Magic Photocopier" (Diffusion Model)

Instead of waiting for more real patients to show up, the authors built a "Magic Photocopier" (a Diffusion Model) that can generate new, realistic pictures of those rare skin spots.

  • The Inpainting Trick: Imagine you have a photo of a skin spot, but you erase the spot itself, leaving just the surrounding skin. The AI's job is to "paint" a new spot back into that empty space.
  • The Twist: They taught this AI to look at the surrounding skin and the specific type of disease they want to create, then "draw" a brand new, realistic version of that rare disease into the blank space.

3. The Safety Check: The "Quality Control Inspector" (OOD Filtering)

Here is the catch: When you ask an AI to imagine something it has never seen much of, it sometimes gets confused and draws nonsense (like a blue skin spot or a spot that looks like a cartoon). These are called Out-of-Distribution (OOD) samples—fake data that doesn't belong in the real world.

If you feed these fake, weird pictures to your student, they might get confused and learn the wrong things.

So, the authors added a Quality Control Inspector. Before the new pictures are added to the student's study pile, this inspector checks them. If a picture looks too weird or doesn't fit the "real world" rules of that disease, the inspector throws it away. Only the clean, realistic, "in-distribution" pictures get to stay.

4. The Result: A Better Student

The authors tested this on a famous dataset of skin lesions (ISIC2019).

  • The Setup: They took the rare diseases (the ones with very few samples), generated hundreds of new, high-quality synthetic images using their "Magic Photocopier," filtered out the bad ones, and mixed them with the original photos.
  • The Outcome: They trained a standard AI classifier on this new, balanced pile of data.
    • Overall Score: The AI got much better at recognizing all types of spots.
    • The Big Win: The rare diseases saw a massive improvement. For the rarest class (Dermatofibroma), the accuracy jumped by over 28%.
    • Comparison: Their method beat other top-tier methods that tried to fix the problem by changing the math (loss functions) or building complex team-based AI models. They did it simply by giving the AI better, more balanced data to learn from.

5. The "Sweet Spot" Finding

They also discovered a "Goldilocks" zone for their Quality Control.

  • If they kept too many generated images (including the weird ones), the AI got confused.
  • If they kept too few, they didn't get enough help for the rare diseases.
  • They found that keeping about 20% to 60% of the generated images (after filtering) was the perfect balance to boost performance without adding noise.

Summary

In short, the paper says: "Don't just try to teach a student with a tiny, unbalanced textbook. Use a smart, safety-checked photocopier to print more pages for the rare chapters, and your student will learn much better."

This approach didn't require building a super-complex new brain for the AI; it just gave the existing brain a much fairer set of study materials.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →