A Lightweight and Accurate Recognition Framework for Signs of X-ray Weld Images

Moyun Liu, Jingming Xie, Hao Jing, Yang Zhang, Xuzhan Chen, Youping Chen · DOI

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.

Process of generating digital X-ray weld images and examples of weld information signs.

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.

The proposed two-stage framework consisting of GRNet for pose correction and GYNet for sign recognition.

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

Abstract

X-ray images are commonly used to ensure the security of devices in quality inspection industry. The recognition of signs printed on X-ray weld images plays an essential role in digital traceability system of manufacturing industry. However, the scales of objects vary different greatly in weld images, and it hinders us to achieve satisfactory recognition. In this paper, we propose a signs recognition framework based on convolutional neural networks (CNNs) for weld images. The proposed framework firstly contains a shallow classification network for correcting the pose of images. Moreover, we present a novel spatial and channel enhancement (SCE) module to address the above scale problem. This module can integrate multi-scale features and adaptively assign weights for each feature source. Based on SCE module, a narrow network is designed for final weld information recognition. To enhance the practicability of our framework, we carefully design the architecture of framework with a few parameters and computations. Experimental results show that our framework achieves 99.7% accuracy with 1.1 giga floating-point of operations (GFLOPs) on classification stage, and 90.0 mean average precision (mAP) with 176.1 frames per second (FPS) on recognition stage.
BibTeX
@misc{liu2021lightweight,
  author = {Moyun Liu and Jingming Xie and Hao Jing and Yang Zhang and Xuzhan Chen and Youping Chen},
  title = {{A Lightweight and Accurate Recognition Framework for Signs of X-ray Weld Images}},
  year = {2021},
  eprint = {2110.09278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.09278},
}
Figure