← Latest papers
💻 computer science

High-Accuracy Surface Defect Detection for Metal Strips: Lightweight YOLOv5s-SC2 with LAMP Pruning

This paper proposes a lightweight, high-accuracy surface defect detection model for metal strips, named YOLOv5s-SC2, which integrates architectural improvements like SAC and RepGFPN to achieve 84.3% mAP on the NEU-DET dataset and utilizes LAMP pruning to significantly reduce model size and computational cost for efficient edge deployment with minimal accuracy loss.

Original authors: Lifang Pan, Manman Chen, Guangming Liu, Lifeng Ma

Published 2026-08-07
📖 4 min read☕ Coffee break read

Original authors: Lifang Pan, Manman Chen, Guangming Liu, Lifeng Ma

Original paper licensed under CC BY 4.0 (https://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 quality inspector on a super-fast assembly line, but instead of checking toys or snacks, you are inspecting long, shiny ribbons of metal. These metal strips are the backbone of everything from car bodies to kitchen appliances, but they are prone to getting scratched, cracked, or pitted during their journey. If a tiny flaw slips through, it can ruin the whole product. For a long time, humans tried to spot these defects with their eyes, but they get tired, and machines using old-school sensors sometimes miss the small stuff or get confused by the metal's glare.

Enter the world of computer vision, where we teach computers to "see" just like we do, but with the speed of a lightning bolt. The most popular tool for this job is something called a "neural network," which is basically a digital brain that learns to recognize patterns by looking at thousands of pictures. One specific type of this brain, called YOLO (which stands for "You Only Look Once"), is famous for being incredibly fast. However, there's a catch: these digital brains are often too heavy and slow for the small, cheap computers used on factory floors. They need to be light enough to run in real-time but sharp enough to spot a hairline crack. This is the puzzle scientists are trying to solve: how do we make a super-smart detector that is also feather-light?

That's exactly what a team of researchers from Taiyuan University of Science and Technology tackled in their new study. They wanted to build a better version of the YOLOv5s detector specifically for spotting metal strip defects, and then shrink it down so it could run on small devices without losing its sharp eyes.

Here is how they did it. First, they realized the standard "net" the computer uses to catch defects wasn't quite right for the weird shapes of scratches and cracks. So, they tweaked the net's design. They swapped out some old parts for newer, more efficient ones called "C2f" and "Switchable Atrous Convolution." Think of this like upgrading a bicycle's gears; the new gears let the bike climb steep hills (detecting tiny, hard-to-see defects) without the rider getting exhausted (using too much computer power). They also added a special "attention mechanism," which is like giving the computer a pair of high-powered glasses that tell it, "Ignore the shiny background, look right here at that tiny scratch!"

After building this super-detector, which they named YOLOv5s-SC2, they tested it on a dataset of 1,800 images of metal strips containing six different types of defects. The results were impressive. The new model spotted defects with an accuracy score (called mAP) of 84.3%, which is 4.4 percentage points better than the original, unmodified version. It was particularly good at finding the tricky, small defects that usually slip through the cracks.

But a super-smart model is useless if it's too heavy to carry. The researchers knew that factories need these models to run on small, edge devices, so they applied a technique called LAMP pruning. Imagine you have a giant backpack full of tools. You know you only need a few specific ones for the job, so you carefully remove the heavy, redundant tools without throwing away the ones you actually need. This is what LAMP pruning did: it sliced away the unnecessary parts of the digital brain.

When they pruned the model to make it 2.5 times faster, the results were a sweet spot between speed and smarts. The model's size dropped to 56.2% of its original weight, its memory usage fell to 56.9%, and the amount of math it had to do (computational cost) plummeted to 39.4%. The best part? Its accuracy barely blinked, dropping by only 0.2 percentage points.

In short, the team successfully built a lightweight, high-speed detective for metal strips. They proved that by upgrading the internal gears and then carefully trimming the fat, you can create a system that is both incredibly accurate and light enough to run on the factory floor, ensuring that every metal strip leaving the line is as perfect as possible.

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 →