Bolt fasteners play a critical role in securing, connecting, and sealing petrochemical equipment. Long-term vibration, high temperatures, corrosion, and other harsh environmental factors frequently lead to loosening or missing fasteners, degrading equipment performance and creating safety hazards that may ultimately trigger serious accidents. At present, defect detection and hidden-danger screening for bolt fasteners still rely mainly on manual periodic inspections, which suffer from low efficiency, heavy labor loads, and high rates of missed or false detection. In this study, a proprietary dataset was built from historical inspection images and on-site photographs of defective fasteners on petrochemical equipment. To mitigate the problems of insufficient defect samples and class imbalance, an orthogonal experiment was designed to investigate the sensitivity of dataset quality to common image-augmentation techniques. A tailored pre-processing and augmentation strategy for fastener-defect datasets was proposed, significantly enhancing sample diversity and overall dataset quality, thereby establishing a specialized dataset for petrochemical fastener defects. A mobile-oriented detection method for loosened or missing bolt fasteners in petrochemical equipment was developed based on YOLOv5s. Specifically, the BiFormer attention mechanism was incorporated into the YOLOv5s backbone to strengthen the extraction of small-target features. The original PANet in the neck was replaced with a Bi-FPN structure to improve multi-scale feature fusion and inference speed. A Focal-EIoU loss function was adopted to accelerate convergence and enhance the localization accuracy of small objects. Finally, the improved YOLOv5s model was converted into an NCNN lightweight model for mobile deployment. Experiments on the self-built dataset show that the improved YOLOv5s outperforms the original YOLOv5s by 7.9 % in precision (P), 8.8 % in mean average precision at IoU = 0.5 (mAP@0.5), and 8.2 % in recall (R). Although the detection speed decreases by 8.8 FPS, the frame rate still meets real-time requirements, enabling real-time, high-accuracy identification of missing or loosened bolt fasteners on explosion-proof equipment.
抄録全体を表示