Quality Inspection of Printed Circuit Board Pin Insertion via Semantic Segmentation and Board-Level Feature Extraction
This paper proposes an automated quality inspection method for printed circuit board pin insertion that combines U-Net-based semantic segmentation with contour-derived feature extraction and logistic regression, achieving near-perfect classification accuracy on both industrial and public datasets while outperforming state-of-the-art anomaly detection and instance segmentation approaches.
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
In the quiet, controlled chaos of a modern factory, a printed circuit board moves along a conveyor belt. It is a thin, green rectangle, the backbone of countless electronic devices, waiting to receive hundreds of tiny metal pins. These pins are the vital connectors that allow electricity to flow between the board and the rest of the world. If even a single pin is tilted or pushed in at the wrong angle, the entire device may fail, leading to costly repairs or dangerous malfunctions. For decades, ensuring these pins are perfectly straight has relied on rigid cameras and fixed lighting, or on human eyes that can tire and miss subtle errors. Now, a new approach is emerging from the intersection of artificial intelligence and industrial quality control. Instead of trying to program a computer with a long list of rules about what a "good" pin looks like, researchers are teaching machines to see the board the way a human would: by recognizing the shape and size of every single pin, and then using that visual information to decide if the whole board is ready for use.
The core challenge in this work is that a tilted pin does not always look dramatically different from a straight one. Sometimes the difference is just a matter of a few pixels, a slight shift in the shadow, or a tiny change in the surface area visible to the camera. To solve this, a team of researchers at the Technical University of Applied Sciences Regensburg developed a system that breaks the problem down into two distinct steps. First, the system uses a type of artificial intelligence called semantic segmentation to create a precise map of the board. Imagine this as a digital coloring book where the computer is taught to color every single pin a specific shade, separating it clearly from the green board and the surrounding air. This process turns a complex photograph into a clean, black-and-white outline of every metal pin on the board.
Once the computer has this clear map, it does not stop to look at each pin individually. Instead, it steps back to look at the board as a whole. The researchers realized that a tilted pin usually covers more surface area than a straight one because it is seen from an angle. By measuring the size and shape of the outlines for every pin on the board, the system calculates simple statistics: the average size of the pins, how much their sizes vary, and the largest pin found. These numbers are then fed into a second, simpler computer program that acts as a final judge. This judge learns from thousands of examples to draw a line between "pass" and "fail." If the board's pin sizes fit the pattern of a healthy assembly, it gets a green light; if the sizes suggest too many tilted pins, it is flagged for rejection.
The researchers tested this method on two very different sets of images to see if it could handle real-world variety. The first set came from an industrial partner and contained 827 high-resolution images of actual circuit boards, some of which had been manually altered to include tilted pins. The second set was a public collection of images with a completely different look, featuring cropped views of pin groups rather than full boards. In both cases, the system performed with remarkable consistency. On the industrial data, the method correctly separated good boards from bad ones with a score of 0.990 on a scale where 1.000 is perfect. On the public dataset, it achieved a perfect score of 1.000. This means that in the tests, the system was able to distinguish between a flawless board and a defective one almost without error.
To understand how well this new approach worked, the team compared it against other existing methods. They tested a technique called anomaly detection, which tries to find defects by learning what a perfect board looks like and flagging anything that looks different. They also tested a method that tries to find and count each pin individually, similar to how a person might count items on a shelf. While these alternative methods showed promise, they struggled more with the specific challenges of the industrial images or required different types of data to work effectively. The proposed method, which combines the detailed map-making of the first step with the statistical judgment of the second, proved to be the most robust. It successfully handled the messy, unpredictable lighting conditions of a real factory floor and the different visual styles of the public dataset, provided it was trained on data specific to that environment.
The study also highlighted the practical side of using such technology. The entire process, from taking a picture of a large board to making a pass-or-fail decision, took about 18 seconds on a powerful computer. Most of that time was spent creating the detailed map of the pins, while the final decision was made in a fraction of a second. The researchers noted that while the system is highly accurate, it is not a magic solution that works instantly on any board without preparation. It requires a specific training phase where it learns from examples of good and bad boards, and its performance depends heavily on the quality of those examples. However, the results suggest that this combination of mapping shapes and analyzing their collective statistics is a powerful tool for the future of manufacturing. It offers a way to catch tiny, costly errors that might slip past other inspection methods, ensuring that the electronic devices we rely on are built with the precision they require.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.