DASS-YOLO: Improved YOLOv7-Tiny with Attention-Guided Shape Awareness and DySnakeConv for Spray Code Defect Detection
To address the challenges of detecting spray code defects caused by complex morphological variations and the discrete characterization of dot-matrix spray codes, an improved YOLOv7-tiny algorithm named DASS-YOLO is proposed. Firstly, the DySnakeConv module is employed in Backbone–Neck cross-layer connections. With a dynamic structure and adaptive learning, it can capture the complex morphological features of spray codes. Secondly, we proposed an Attention-guided Shape Enhancement Module with CAA (ASEM-CAA), which adopts a symmetrical dual-branch structure to facilitate bidirectional interaction between local and global features, enabling precise prediction of the overall spray code shape. It also reduces feature discontinuity in dot-matrix codes, ensuring a more coherent representation. Furthermore, Slim-neck, which is famous for its more lightweight structure, is adopted in the Neck to reduce model complexity while maintaining accuracy. Finally, Shape-IoU is applied to improve the accuracy of the bounding box regression. Experiments show that DASS-YOLO improves the detection accuracy by 1.9%. Additionally, for small defects such as incomplete code and code spot, the method achieves better accuracy improvements of 8.7% and 2.1%, respectively.
Authors
- Lishan Yang (ORCID: https://orcid.org/0000-0001-5732-7213)
- Shiling Zheng (ORCID: https://orcid.org/0009-0006-3748-9366)
- Yi‐Xuan Shi
- Xia Zhang (ORCID: https://orcid.org/0000-0002-7996-4843)
- Meiru Bian
Institutions
- Liaocheng University (CN)
Publication Details
- Journal
- Symmetry
- Published
- 2025-06-08
- DOI
- https://doi.org/10.3390/sym17060906
- Citations
- 1
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.28
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Shandong Province