Cigarette-Group End-Face Defect Detection Based on an Improved DEIM
This paper proposes a lightweight, improved DEIM-S model for real-time cigarette-group end-face defect detection that enhances accuracy and reduces computational costs through MobileNetV4, a C2F-IDWB module, and EMA attention, achieving high performance on an RK3588 edge platform.
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
In the vast, humming world of modern manufacturing, the speed of production often outpaces the ability of human eyes to catch mistakes. On a cigarette packaging line, thousands of cigarettes move in tight, orderly rows, pushed by machines into final groups before being wrapped. If even a single cigarette in a group is broken, missing its tobacco, or turned backward, the entire package is flawed. For decades, factories relied on human workers to spot these errors or on simple cameras that struggled to see the subtle differences between a perfect product and a damaged one. These older methods were often too slow or too prone to missing the tiny, critical flaws that matter most. To solve this, engineers have turned to artificial intelligence, specifically a type of computer vision that can learn to see defects the way a human does, but with the speed and consistency of a machine. The challenge, however, is that these smart systems usually require powerful, expensive computers to run. When the inspection needs to happen right on the factory floor, where space and power are limited, these heavy systems simply cannot fit.
Researchers at Hubei University of Technology and Wuhan Donghu University set out to build a smarter, lighter version of these detection systems, specifically designed to fit onto small, affordable computers that can sit directly on the packaging line. They focused on a specific problem: spotting defects at the very end of a group of cigarettes, where the tips are visible. This area is tricky because the defects can be very small, like a broken tip or a missing patch of tobacco, and they often look very similar to the normal texture of the cigarette itself. The team started with an existing detection model, a flexible framework known as DEIM, and stripped it down to its essentials. They replaced the heavy internal engine of the system with a much lighter component called MobileNetV4, which is designed to extract visual information efficiently without using up too much computing power. This change alone made the system significantly faster and smaller, but the researchers knew they needed to be even more precise to catch the tiny flaws.
To ensure the system didn't miss the small details, the team added a new layer of processing that acts like a specialized filter for the image. They combined two different techniques to create a module that looks at the image from multiple scales at once, allowing the system to see both the broad shape of the cigarette group and the fine texture of a broken tip simultaneously. This helped the system understand the context of the defect rather than just seeing a blurry patch. Furthermore, they introduced a mechanism that tells the computer where to look most closely. Imagine a spotlight that automatically brightens the area where a defect might be while dimming the rest of the image; this is essentially what the researchers added. By focusing the system's attention on the most important parts of the image and ignoring the background noise, the model became much better at distinguishing a real defect from a harmless shadow or a normal variation in the cigarette paper.
The team tested their new system on a collection of over 1,200 images they had gathered, which included five specific types of problems: flattened ends, cigarettes that were turned backward, missing tobacco, broken tips, and broken bodies. The results were striking. The new, lightweight model caught 99.1% of the defects when the criteria were standard, and it maintained a high level of accuracy even when the requirements for matching the defect were made much stricter. More importantly, the system did this while using significantly less computing power than the original version, reducing the workload by nearly 30% and shrinking the size of the software by about 22%. It could process images at a speed of nearly 190 frames per second, which is fast enough to keep up with the rapid pace of a real factory line without slowing anything down.
To prove that this system could actually work in the real world, the researchers did not just run it on a powerful computer in a lab; they converted the software into a format that could run on a small, single-board computer equipped with a specialized chip for artificial intelligence. This device, the RK3588, is the kind of hardware that can be mounted directly onto a machine on the factory floor. When they tested the system on a live packaging line, it successfully identified normal groups of cigarettes and flagged the defective ones with an overall accuracy of over 98%. While it did occasionally mistake a normal cigarette for a defective one, it rarely missed a real defect, which is the most critical requirement for keeping production running smoothly. The researchers noted that while the system performed exceptionally well on the defects they tested, it still needs more data on the rarest types of breakage to be perfect, but the path forward is clear. By making a powerful detection tool small enough to fit on a chip, they have provided a practical solution for factories that need to maintain high quality without stopping their production lines to check for errors.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.