Abstract
X-ray images are commonly used to ensure the security of devices in the quality inspection industry. The recognition of signs printed on X-ray weld images plays an essential role in the digital traceability systems of the manufacturing industry. However, the scales of objects vary greatly in weld images, which hinders satisfactory recognition. In this paper, we propose a signs recognition framework based on convolutional neural networks (CNNs) for weld images. The proposed framework contains a shallow classification network for correcting the pose of images and a novel spatial and channel enhancement (SCE) module to address the scale problem. This module integrates multi-scale features and adaptively assigns weights for each feature source. Based on the SCE module, a narrow network is designed for final weld information recognition. Experimental results show that our framework achieves 99.7% accuracy with 1.1 giga floating-point operations (GFLOPs) on the classification stage, and 90.0 mean average precision (mAP) with 176.1 frames per second (FPS) on the recognition stage.
Introduction
In the manufacturing industry, X-ray images are the gold standard for inspecting weld quality. To maintain a digital traceability system, the "signs" on these images—serial numbers, dates, and quality indicators—must be accurately recorded. However, this process faces two major hurdles: random orientation and scale variance. X-ray photographs are often scanned into digital formats in random poses, and the signs vary significantly in size relative to the weld and background noise.
Standard neural networks often struggle with these scale shifts or require excessive computational power. Existing models are frequently too "heavy" for factory-floor hardware or fail to handle the specific scale challenges of weld imagery.
Methods
The proposed framework utilizes a two-stage pipeline to address orientation and recognition efficiently.
Pose Correction with GRNet
The first stage employs GRNet (Group convolution-based ResNet), a shallow 14-layer classification network. Its primary task is identifying a "cross mark" to determine image orientation. By replacing standard convolutions with Group Convolutions, the authors significantly reduced parameters and computation without sacrificing accuracy.
Sign Recognition with GYNet and SCE
Once the pose is corrected, GYNet (Greater-YOLO Network) performs sign recognition. GYNet is a "narrower" version of Tiny-YOLOv3 with fewer channels to save memory. The core innovation is the Spatial and Channel Enhancement (SCE) module, which addresses scale variance through:
- Spatial Integration: Using multiple pooling sizes to capture features at different scales simultaneously.
- Channel Weighting: An attention mechanism that adaptively assigns weights to different feature sources, allowing the network to focus on the most relevant scales for the text.
Results
The framework demonstrates an impressive balance of efficiency and performance:
- GRNet (Pose Correction): Achieved 99.7% accuracy with only 1.1 GFLOPs and 0.2M parameters. This is significantly more efficient than a standard ResNet-18, which uses 59x more parameters for similar results.
- GYNet (Sign Recognition): Achieved 90.0 mAP at 176.1 FPS. It is approximately 1.2x faster than Tiny-YOLOv3 and 6.9x faster than standard YOLOv3, while maintaining higher precision than its lightweight peers.
Conclusion
This two-stage framework provides a robust solution for industrial X-ray weld image traceability. By prioritizing pose correction and adaptive multi-scale feature enhancement, the model achieves high accuracy and real-time speeds on modest hardware. Future work will focus on deploying the algorithm to ultra-low-power embedded platforms like Raspberry Pi and Jetson Nano to further reduce industrial implementation costs.
Summary updated