← Latest papers
💻 computer science

From Full Boards to Tiny Defects: Scale-Aware Tile Inference with Topology-Aware Merging for High-Resolution PCB Defect Detection

This paper addresses the resolution collapse and boundary artifacts in high-resolution PCB defect detection by demonstrating that training detectors on tile crops and applying a novel, training-free Topology-Aware Tile Merging (TA-TM) post-processing method significantly improves small defect recall and overall detection accuracy compared to traditional full-image or standard tile inference strategies.

Original authors: Mohammad Alijanpour Shalmani, Alale Rezvani Boroujeni, Ali Amini, Jiann Shiun Yuan

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Mohammad Alijanpour Shalmani, Alale Rezvani Boroujeni, Ali Amini, Jiann Shiun Yuan

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 trying to find tiny scratches, missing screws, or broken wires on a massive, high-definition blueprint of a circuit board. This blueprint is so huge that if you shrink it down to fit on a standard computer screen (like resizing a giant mural to fit on a postage stamp), those tiny defects disappear completely. They become invisible specks.

This is the problem the paper tackles: How do you find microscopic defects on a giant image without losing the details?

Here is the story of their solution, broken down into simple concepts and analogies.

1. The Problem: The "Postage Stamp" Effect

Imagine you have a high-resolution photo of a forest. If you shrink that photo to the size of a postage stamp to fit it into a standard photo frame, you can no longer see individual leaves or small birds; they just blur into green or brown pixels.

In the world of circuit boards (PCBs), this is called "Resolution Collapse."

  • The Old Way: People took the whole giant board image, shrunk it down to fit the AI's "brain" (which expects a standard size), and tried to find defects.
  • The Result: The AI, trained to look at standard-sized images, couldn't see the tiny defects because they had shrunk to nothing. The AI essentially went blind to the very things it was supposed to find.

2. The First Fix: The "Puzzle Piece" Strategy

Instead of shrinking the whole picture, the researchers decided to cut the giant image into smaller, manageable pieces (tiles), like slicing a large pizza into slices.

  • The Strategy: They fed these smaller slices to the AI one by one. Since the slices weren't shrunk, the tiny defects remained big and clear.
  • The Catch: When you cut a picture into pieces, you create edges. If a defect sits right on the line where two slices meet, it gets chopped in half. The AI sees a half-defect in one slice and a half-defect in the next, gets confused, and might throw both away because they look "incomplete." This is called a boundary artifact.

3. The Second Fix: The "Overlapping" Strategy

To fix the chopped-up defects, the researchers made the puzzle pieces overlap.

  • The Analogy: Imagine laying down floor tiles, but instead of just touching edges, you slide them so they overlap by a few inches. Now, if a scratch is on the edge, it appears fully in the left tile and fully in the right tile.
  • The Result: This helped the AI see the defects clearly, but it created a new problem: The AI might see the same defect twice (once in the left tile, once in the right) and get confused about which one is the "real" one.

4. The Secret Sauce: "Topology-Aware Tile Merging" (TA-TM)

This is the paper's main innovation. It's a smart rulebook the computer uses after it has looked at all the tiles, but before it gives you the final answer.

  • How it works: Imagine the AI is a team of detectives.
    • Detective A looks at the left tile and sees a "half-suspect" near the edge. They aren't 100% sure, so they give it a low confidence score.
    • Detective B looks at the overlapping right tile and sees the other half of the same suspect. They also give it a low score.
    • The Old Way (Standard AI): The computer would look at these two low-confidence reports and say, "Neither is strong enough, let's ignore them." The defect is missed.
    • The New Way (TA-TM): The computer acts like a smart manager. It sees that Detective A and Detective B are looking at the same spot from different angles. It says, "Hey, if both of you see something there, even if you aren't sure individually, let's combine your notes and boost the confidence!"
    • The Result: The computer realizes, "Ah, this is a real defect!" and keeps it.

5. The Big Discovery: Training Matters More Than the Tool

The paper found something surprising that changes how people should build these AI systems.

  • The Mismatch: If you train an AI by showing it whole, shrunk-down images, it learns to look for "tiny, blurry specks." If you then try to use that same AI on the "Puzzle Piece" strategy (where defects are big and clear), the AI fails miserably. It's like training a dog to hunt rabbits by showing it pictures of rabbits, then expecting it to hunt elephants.
  • The Fix: You must train the AI exactly the way you will use it. If you plan to use the "Puzzle Piece" strategy, you must train the AI on puzzle pieces.
  • The Proof: When they trained the AI on puzzle pieces, it became a master at finding defects. When they tried to use a "whole-image" trained AI on puzzle pieces, it failed completely (dropping from 72% success to 1% success).

Summary of Results

  • The "Whole Image" approach: Missed almost all tiny defects.
  • The "Puzzle Piece" approach: Found most defects but struggled with those on the edges.
  • The "Overlapping Puzzle" + "Smart Manager" (TA-TM): Found the most defects, including the tricky ones on the edges, without needing to retrain the AI or change its brain. It just needed a smarter way to combine the clues.

In short: To find tiny things on a giant image, don't shrink the image. Cut it into overlapping pieces, train your AI on those pieces, and use a smart "manager" to combine the clues from the edges. This simple change turned a failing system into a highly accurate one.

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 →