Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

A Neural Network Without Defect Labels Found 91% of Solder Balls With Voids in X-Ray Chip Scans

BGA chips are attached to boards with solder balls, and gas bubbles inside those balls are visible only on X-ray. The proDIS team trained an autoencoder, a network that reconstructs images, on just 312 images of healthy balls: regions it reconstructs poorly get flagged as suspicious. The network found 91% of balls with voids, and 93% of its flags were correct. No defect labeling is required, but an operator makes the final call.

AI-processed from Habr AI; edited by Hamidun News
A Neural Network Without Defect Labels Found 91% of Solder Balls With Voids in X-Ray Chip Scans
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1A U-Net cut more than 10,000 ball images out of 138 scans
Key metric #2F1 of 92% balances precision and recall; it does not assess void boundaries
Key metric #3Otsu's method builds the search area without contours but sometimes makes mistakes

BGA chips are soldered with solder balls that, after assembly, sit hidden beneath the package. The only way to look inside is with X-ray, and voids can form inside a ball: gas bubbles that make the joint conduct current and heat worse and can crack under thermal cycling. Checking thousands of balls by eye is slow and tiring, so electronics manufacturers want to automate inspection. Maria Frolova and Roman Vorotilov's team described their own approach on Habr for the Russian proDIS program: a neural network that found 91% of balls with voids while barely training on the defects themselves.

Why this matters: foreign systems such as Viscom, Comet Yxlon and Lumafield can do this, but their model architectures and training are closed, and some solutions require sending images to the vendor's servers. For companies that need independence from foreign vendors, that is a serious constraint.

Two steps: first find the ball, then look inside it

The source data was limited: 138 16-bit X-ray images up to 2000 × 2000 pixels, captured on different machines at magnifications from 10x to 20x. A single ball spans about 100 pixels across. Searching for voids on a full image is hard: the background is uneven, and other board components lie over the balls.

So the task was split. First, a U-Net segmentation model trained on labeled images finds each ball and its contour. This yielded more than 10,000 separate ball images from the 138 scans: with voids, without voids, and with overlapping neighboring parts. The team also made a version of the dataset where everything outside the ball contour is painted white, to test separately how the background affects results.

The autoencoder learns from "normal" balls

The second step rests on a simple idea. An autoencoder compresses an image into a short set of features and tries to reconstruct it. If you train it only on balls without visible voids, it learns what a normal ball looks like. When it is shown a ball with a void, it reconstructs the bright spot poorly, and that spot appears on the map of differences between the original and the reconstruction.

The main practical advantage is that no defect masks have to be drawn. It is enough to select examples without voids. The experiment used 312 of them. Images were downscaled to 128 × 128 pixels, the network was written in PyTorch, and it was trained on mean squared reconstruction error.

Next, the difference map is smoothed with a Gaussian filter to remove isolated peaks, and only the inner area of the ball is analyzed. The boundary of that area is obtained in one of two ways: from the segmentation contour, or with Otsu's method, which selects a brightness threshold automatically. Otsu is useful when ready-made contours are unavailable, but it does not always work: reconstruction error shifts the boundary, and part of the ball drops out of the analysis. For this reason, the quality of the mask has to be checked separately from the quality of the void search.

Finally, the most "erroneous" pixels are selected by a percentile threshold, merged into connected regions, and very small ones are discarded. The remaining regions are void candidates.

What the numbers show and what they do not mean

Scoring was done per whole ball: if the algorithm flagged at least one region, the ball counted as defective. The results were precision 93% (of the balls flagged, this share truly had voids), recall 91% (of all balls with voids, the algorithm found this share), F1 92% (the mean of those two numbers, penalizing imbalance in either direction), and accuracy 91% (the share of correct decisions overall).

The authors' own caveats matter here. These metrics only indicate whether a ball contains a void. They do not show how accurately the void's boundaries or size are identified. The percentile threshold picks out error maxima even on a fairly healthy ball, so the flagged regions should be treated as hints for the operator, not as confirmed defects. High error can also occur simply at the edge of a ball because of slight contour misalignment. The sample is small, and the images come from different machines, so robustness on new equipment still needs to be verified.

For developers of quality control systems, the takeaway is this: the scheme "a segmenter cuts out the object, an autoencoder looks for deviations from normal" gives a working starting point without costly labeling. The authors believe the same principle could work for cracks and foreign inclusions, but for now that is a hypothesis, not an experimental result.

Story

Key Questions Answered

What are the key details on Two steps: first find the ball, then look inside it?

The source data was limited: 138 16-bit X-ray images up to 2000 × 2000 pixels, captured on different machines at magnifications from 10x to 20x. A single ball spans about 100 pixels across. Searching for voids on a full image is hard: the background is uneven, and other board components lie over the balls. So the task was split. First, a U-Net segmentation model trained on labeled images finds each ball and its contour.

What are the key details on The autoencoder learns from "normal" balls?

The second step rests on a simple idea. An autoencoder compresses an image into a short set of features and tries to reconstruct it. If you train it only on balls without visible voids, it learns what a normal ball looks like. When it is shown a ball with a void, it reconstructs the bright spot poorly, and that spot appears on the map of differences between the original and the reconstruction. The main practical advantage is that no defect masks have to be drawn. It is enough to select examples without voids.

What the numbers show and what they do not mean?

Scoring was done per whole ball: if the algorithm flagged at least one region, the ball counted as defective. The results were precision 93% (of the balls flagged, this share truly had voids), recall 91% (of all balls with voids, the algorithm found this share), F1 92% (the mean of those two numbers, penalizing imbalance in either direction), and accuracy 91% (the share of correct decisions overall). The authors' own caveats matter here. These metrics only indicate whether a ball contains a void.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — A Neural Network Without Defect Labels Found 91% of Solder Balls With Voids in X-Ray Chip Scans https://news.hamidun.com/en/news/18849/a-neural-network-without-defect-labels-found-91-of-solder-ba

What do you think?
Loading comments…