← Latest papers
💻 computer science

ScratNet: A Swin-Based Multi-Scale Dilated Network with Precision Refinement for Semiconductor Scratch Segmentation

The paper proposes ScratNet, a novel end-to-end framework combining a modified Swin Transformer backbone with a specialized decoder featuring multi-scale aggregation and precision refinement modules to achieve superior accuracy in segmenting irregular, low-contrast semiconductor scratch defects.

Original authors: Sachin Ranjan, Hoon Kim

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Sachin Ranjan, Hoon Kim

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 a detective trying to find the tiniest, most stubborn scratches on a shiny, high-tech silicon chip. These aren't just any scratches; they are like invisible spiderwebs or hair-thin lines that can ruin the whole chip if missed. The problem? The background is noisy, the lighting is tricky, and the scratches change shape and size constantly.

For a long time, detectives (or rather, engineers) tried to find these scratches using old-school rules and manual looking. But the paper explains that this is like trying to find a needle in a haystack while wearing thick gloves—it's slow, tiring, and you often miss the needle or mistake a piece of dust for one.

Then came "Deep Learning," a type of computer brain that gets really good at spotting patterns. But even these smart computers had a blind spot: they were great at seeing big blobs of defects but terrible at seeing the super-fine, jagged edges of a thin scratch. It's like having a camera that can see a whole mountain clearly but blurs out the tiny pebbles at the base.

The Big Idea: ScratNet
The authors of this paper built a new tool called ScratNet to fix this. Think of ScratNet as a super-powered magnifying glass combined with a detective's intuition. It's designed specifically to hunt down those tricky, thin scratches on semiconductor wafers.

Here is how ScratNet works, broken down into three cool tricks:

  1. The "Big Picture" and "Small Detail" Team:
    The paper uses a special "brain" called a Swin Transformer as its foundation. Imagine this as a team of scouts. Some scouts climb high up a tree to see the whole forest (global context), while others stay on the ground to look at individual leaves (local details). ScratNet mixes these views together so it doesn't miss a scratch just because it's small or just because it's in a weird spot.

  2. The "Stem" Connection:
    Sometimes, when you zoom out to see the big picture, you lose the fine texture. ScratNet has a special module called the Stem Integration Module (SIM). Think of this like a "memory lane" that brings the super-sharp, early details back into the mix. It ensures that when the computer decides "Yes, that's a scratch," it remembers exactly what the edge looked like, not just a blurry guess.

  3. The "Edge Sharpening" Tool:
    This is the paper's secret weapon. The authors added a Precision Refinement (PR) branch. Imagine you have a sketch of a scratch, but the lines are a bit fuzzy. This module uses special "anisotropic" filters (which just means they stretch in specific directions, like a ruler) to sharpen the edges. It's like taking a blurry photo and using a filter to make the lines crisp and clear, specifically targeting those thin, irregular lines that other methods miss.

What They Ruled Out
The paper is very clear about what doesn't work well enough on its own.

  • Old Rules: They explicitly say that traditional methods (like manual checking or simple image processing) are too slow and inconsistent.
  • Standard AI: They argue that standard deep learning models (like regular CNNs) often fail to capture those fine-grained edge details.
  • The "Magic Bullet" of General AI: The authors tested a famous, general-purpose AI model called SAM (Segment Anything Model). They tried using it in two ways: letting it guess without training (zero-shot) and teaching it with bounding boxes. The results? SAM struggled. In the "zero-shot" test, it got an IoU (a score for how well the shapes match) of only 42.81% on the IC dataset. Even when they fine-tuned it with boxes, it only reached 78.33%. The paper concludes that while SAM is amazing for general photos, it isn't the right tool for these specific, tiny industrial scratches. You need a specialized tool like ScratNet.

How Sure Are They?
The authors didn't just guess; they ran extensive experiments on two real datasets:

  1. IC Images: 749 images of integrated circuits.
  2. Wafer Images: 8,200 images of silicon wafers.

They measured everything using strict math. On the IC dataset, their best model (Swin-Base backbone with ScratNet) achieved an IoU of 87.32% (with data augmentation) and a Dice score of 93.48%. Without augmentation, the IoU was 85.82%. On the Wafer dataset, it hit an IoU of 81.17% and a Dice of 87.96%.

Crucially, they looked at the edges. They measured Boundary IoU (how well the outline matches) and Hausdorff Distance (how far off the edges are). ScratNet reduced the edge error (Hausdorff Distance) down to as low as 23.35 pixels on the IC dataset (specifically with the Swin-Base backbone and data augmentation), which is a massive improvement over other methods that were off by 40+ pixels.

The Verdict
The paper proves that by combining a powerful "scout" system (Swin Transformer) with a "detail-restorer" (Stem Integration) and an "edge-sharpener" (Precision Refinement), you can find scratches that other methods miss.

They measured that ScratNet consistently beats the competition. For example, on the IC dataset, a standard model called UNet got an IoU of 79.48%, while ScratNet got 87.32% (with augmentation). That's a significant jump in accuracy.

The authors are confident in these numbers because they tested them against many other famous models (like ResNet, HRNet, and various decoder types) and found ScratNet to be the winner every time. They suggest that this approach offers a "scalable and robust solution" for the future of chip manufacturing, but they stop short of saying it's a perfect, solved problem for every single scenario in the world. They simply show that, for the data they tested, ScratNet is currently the best tool in the box.

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 →