Abstract
A critical aspect in the manufacturing process is the visual quality inspection of manufactured components for defects and flaws. Human-only visual inspection can be very time-consuming and laborious, and is a significant bottleneck especially for high-throughput manufacturing scenarios. Given significant advances in the field of deep learning, automated visual quality inspection can lead to highly efficient and reliable detection of defects and flaws during the manufacturing process. However, deep learning-driven visual inspection methods often necessitate significant computational resources, thus limiting throughput and act as a bottleneck to widespread adoption for enabling smart factories. In this study, we investigated the utilization of a machine-driven design exploration approach to create TinyDefectNet, a highly compact deep convolutional network architecture tailored for high-throughput manufacturing visual quality inspection. TinyDefectNet comprises of just ~427K parameters and has a computational complexity of ~97M FLOPs, yet achieving a detection accuracy of a state-of-the-art architecture for the task of surface defect detection on the NEU defect benchmark dataset. As such, TinyDefectNet can achieve the same level of detection performance at 52x lower architectural complexity and 11x lower computational complexity. Furthermore, TinyDefectNet was deployed on an AMD EPYC 7R32, and achieved 7.6x faster throughput using the native Tensorflow environment and 9x faster throughput using AMD ZenDNN accelerator library. Finally, explainability-driven performance validation strategy was conducted to ensure correct decision-making behaviour was exhibited by TinyDefectNet to improve trust in its usage by operators and inspectors.
1. Introduction
In modern "smart factories," visual quality inspection is a critical yet challenging component of the manufacturing process. While human inspection is the traditional standard, it is often slow, laborious, and prone to fatigue, creating a significant bottleneck in high-throughput production lines. Automated deep learning-driven solutions offer a path toward higher efficiency and reliability. However, standard architectures like ResNet or VGG are computationally intensive, requiring substantial hardware resources that limit their deployment in latency-sensitive industrial environments. This paper introduces TinyDefectNet, a model designed to overcome the "Small Data Problem" and operational constraints of real-world manufacturing.
2. Methodology
TinyDefectNet was developed using Generative Synthesis, a machine-driven design exploration approach. Rather than manually tuning layers, the architecture was discovered through a constrained optimization process where a "generator-inquisitor" pair iteratively proposed and evaluated models against a hard limit of 100 million FLOPs. The resulting architecture is "heterogeneous," utilizing a diverse mix of lightweight layers and connections specifically optimized for the visual features of manufacturing defects. To further enhance performance on industrial hardware, the model was optimized using the AMD ZenDNN accelerator library for AMD EPYC processors.
3. Experimental Setup and Results
The model was evaluated on the NEU-Det (Northeastern University) surface defect benchmark dataset, which contains 1,800 grayscale images across six defect classes: rolled-in scale (RS), patches (Pa), crazing (Cr), pitted surface (PS), inclusion (In), and scratches (Sc).
TinyDefectNet achieved a detection accuracy of 98%, matching the performance of the much larger ResNet-50. Remarkably, it achieved this with only ~427K parameters (52x smaller) and ~97M FLOPs (11x lower complexity). On an AMD EPYC 7R32, TinyDefectNet demonstrated a 7.6x throughput increase in native TensorFlow and a 9x increase using ZenDNN. Furthermore, explainability-driven validation using saliency maps confirmed that the model focuses on actual physical defects rather than background artifacts, ensuring trustworthy decision-making.
4. Discussion and Conclusion
TinyDefectNet demonstrates that high-throughput manufacturing inspection does not require a trade-off between efficiency and accuracy. By leveraging machine-driven design, the researchers created a highly compact model capable of massive throughput gains on standard hardware. While the current study focuses on image classification, future work will explore extending this architecture to localization and segmentation tasks, as well as testing its robustness on high-resolution color and 3D surface data.
Summary updated