ZHANG Junjie,SHEN Zhen,FANG Qihang,et al.A 3D printing defect detection algorithm incorporating attention mechanism[J].Chinese Journal on Internet of Things,2025,09(03):132-142.
ZHANG Junjie,SHEN Zhen,FANG Qihang,et al.A 3D printing defect detection algorithm incorporating attention mechanism[J].Chinese Journal on Internet of Things,2025,09(03):132-142. DOI: 10.11959/j.issn.2096-3750.2025.00464.
A 3D printing defect detection algorithm incorporating attention mechanism
3D printing technology has played an increasingly important role in a growing number of industries. However
as a relatively new technology
it tends to exhibit more defects during the printing process compared to traditional manufacturing methods. These defects can significantly impact the performance of the final product. Given that 3D printed parts typically have complex and highly optimized geometric shapes
traditional detection technologies struggle to meet the demands for precision and efficiency. To address this challenge
this paper introduces a 3D printing defect detection algorithm based on an improved version of YOLOv5. The algorithm makes extensive refinements to the YOLOv5 model
achieving model lightweighting by replacing the loss function and introducing an attention mechanism. The newly designed detection system is characterized by a smaller parameter scale
rapid inference speed
high detection accuracy
and strong robustness. Compared to the original YOLOv5s model
the improved lightweight model has achieved a detection accuracy of 94.2%
and has nearly halved the parameter scale. This advancement not only enhances detection efficiency but also provides an effective technical solution for 3D printing defect detection and fault diagnosis.
YU C X , GUO S T , GUO J Z . Research on rubber defect identification and detection based on industrial interconnection technology [J ] . Adhesion , 2023 , 50 ( 6 ): 19 - 22 .
YUAN H M . Research on condition detection and fault diagnosis of rotating machinery system based on industrial Internet . [D ] . Jinan : Qilu University of Technology , 2023 .
TONG X . Image and data analysis based on artificial intelligencein industrial Internet . [D ] . Guangzhou : Guangdong University of Technology and Education , 2021 .
CHEN L J . The research for recognition method of wood surface defectbased on svm combined manifold . [D ] . Harbin : Northeast Forestry University , 2015 .
LIU H , CHEN Z L , WANG S X . Tool surface defect detection based on improved YOLOv3 algorithm [J ] . Modular Machine Tool & Automatic Manufacturing Technique , 2021 ( 11 ): 87 - 90 .
QIU J H , HU Y H , CUI J R , et al . Textile defect classification based on convolutional neural network and SVM [J ] . AATCC Journal of Research , 2021 , 8 ( 1_suppl ): 75 - 81 .
舒琪 . 基于机器视觉的铆钉筛选系统设计 [D ] . 成都 : 西南交通大学 , 2022 .
SHU Q . Design of a rivet screening system based on machine vision [D ] . Chengdu : Southwest Jiaotong University , 2022 .
YU Z L , LEI Y Q , SHEN F , et al . Application of improved YOLOv5 algorithm in lightweight transmission line small target defect detection [J ] . Electronics , 2024 , 13 ( 2 ):
HU B , WANG J H . Detection of PCB surface defects with improved faster-RCNN and feature pyramid network [J ] . IEEE Access , 2020 , 8 : 108335 - 108345 .
HU Y M , WEN B , YE Y S , et al . Multi-defect detection network for high-voltage insulators based on adaptive multi-attention fusion [J ] . Applied Sciences , 2023 , 13 ( 24 ): 13351 .
YU J , JIANG Y , WANG Z , et al . UnitBox: an advanced object detection network [J ] . arXiv preprint , 2016 , arXiv: 1608.01471 .
ZHAO Y W . Machine learning algorithms for industrial scenarios applied research . [D ] . Chengdu : University of Electronic Science and Technology of China , 2023 .
REZATOFIGHI H , TSOI N , GWAK J , et al . Generalized intersection over union: a metric and a loss for bounding box regression [C ] // Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) . Piscataway : IEEE Press , 2019 : 658 - 666 .
ZHENG Z H , WANG P , LIU W , et al . Distance-IoU loss: faster and better learning for bounding box regression [J ] . Proceedings of the AAAI Conference on Artificial Intelligence , 2020 , 34 ( 7 ): 12993 - 13000 .
ZHANG Y F , REN W Q , ZHANG Z , et al . Focal and efficient IOU loss for accurate bounding box regression [J ] . Neurocomputing , 2022 , 506 : 146 - 157 .
GEVORGYAN Z . SIoU loss: more powerful learning for bounding box regression [J ] . arXiv preprint , 2022 ,arXiv: 2205.12740 .
YANG L X , ZHANG R Y , LI L D , et al . SimAM: a simple, parameter-free attention module for convolutional neural networks [C ] // Proceedings of the International Conference on Machine Learning , 2021 .
HU J , SHEN L , SUN G . Squeeze-and-excitation networks [C ] // Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition . Piscataway : IEEE Press , 2018 : 7132 - 7141 .
ZHANG Q L , YANG Y B . SA-net: shuffle attention for deep convolutional neural networks [C ] // Proceedings of the ICASSP 2021 - 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) . Piscataway : IEEE Press , 2021 : 2235 - 2239 .
HAN K , WANG Y H , TIAN Q , et al . GhostNet: more features from cheap operations [C ] // Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) . Piscataway : IEEE Press , 2020 : 1577 - 1586 .
Review of the application of deep learning in the auxiliary diagnosis of ophthalmic diseases
Model pruning techniques in the Internet of things: state of the art, methods and perspectives
Research on EEG signal classification of motor imagery based on AE and Transformer
Related Author
LI Jianjia
ZHANG Tingting
YIN Jikai
BAO Yachuan
LIU Jinting
ZHENG Bofeng
ZENG Wenmin
ZHANG Hui
Related Institution
Guangdong Provincial Key Laboratory of Space-Aerial Networking and Intelligent Sensing, Harbin Institute of Technology
The 54th Research Institute of China Electronics Technology Group Corporation
State Key Laboratory of Comprehensive PNT Network and Equipment Technology, The 54th Research Institute of China Electronics Technology Group Corporation
IOT Thrust, The Hong Kong University of Science and Technology
College of Electronic Science and Technology, National University of Defense Technology