面向无人机巡检的开口销状态智能检测方法

Intelligent detection method for cotter-pin status for unmanned aerial vehicle inspection

  • 摘要: 针对起重机械无人机巡检图像中开口销目标尺度小、背景结构复杂及状态难以量化判别等问题,提出一种“定位—分割—几何判别”的级联视觉方法. 首先以YOLOv12(You only look once version 12)为基线,融合P2(Pyramid level 2)浅层检测分支、高效多尺度注意力(EMA)、下采样模块(ADown)和双向特征金字塔网络(BiFPN),构建PEAB( P2–EMA–ADown–BiFPN)定位网络,实现开口销装配区域ROI(Region of Interest)的快速准确提取. 其次,以DeepLabv3+为基线,采用经感受野重构的MobileNetV3作为轻量化主干,在多尺度上下文模块和浅层特征路径中引入坐标注意力(CA),并设计交叉熵–Dice–边界联合损失以增强细长销尾及边界连续性的表征能力. 最后,基于分割掩膜统计前景像素数和销尾有效连通域面积,并由最大有效轮廓计算尾部分支张角,实现开口销状态自动判定. 构建了包含3000张原始巡检图像和6420个开口销装配区ROI样本的数据集. 实验结果表明:所提PEAB网络的平均精度均值mAP@0.5达到94.30%,改进分割模型的平均交并比mIoU和平均F1分数mF1较原生DeepLabv3+分别提高4.85和3.90个百分点. 在保持较低模型复杂度的同时,实现了开口销微小目标定位、精细分割与状态量化识别,可为钢结构节点连接安全巡检提供视觉技术支撑.

     

    Abstract: Reliable cotter-pin state identification is essential to prevent costly connection failures in industrial steel structures. Although unmanned aerial vehicle (UAV) inspection is safer and more efficient than traditional close-range manual inspection, automated visual analysis is hindered by extremely small targets, slender tails, common occlusion, and complex backgrounds. Object detection alone cannot determine whether two tail branches are opened to a fully compliant angle. To address these limitations, this paper proposes a novel cascaded computer-vision method integrating cotter-pin localization, pixel-level segmentation, and geometry-based state assessment. In the localization stage, a shallow P2(Pyramid level 2) detection branch, efficient multi-scale attention (EMA), the ADown downsampling module, and a bidirectional feature pyramid network (BiFPN) are integrated into YOLOv12(You only look once version 12). These components form the P2–EMA–ADown–BiFPN (PEAB) network, which preserves fine spatial information and improves cross-scale feature fusion to precisely extract regions of interest (ROIs) containing cotter-pin assemblies. In the segmentation stage, DeepLabv3+ is combined with an optimized receptive-field-reconstructed MobileNetV3 lightweight backbone. Coordinate attention is introduced into the multiscale context module and shallow feature path to retain positional information during feature aggregation. A composite loss function combining cross-entropy, Dice, and boundary losses, termed cross-entropy–dice–boundary loss, is designed to alleviate foreground-background imbalance and improve the continuity of slender tail boundaries. The resulting segmentation masks are converted into interpretable geometric measurements. The foreground pixel count and effective connected-component area are used to identify missing cotter pins or invalid masks. For valid masks, the largest contour is extracted, the tail branching structure is identified, and the opening angle between the two branches is calculated to distinguish normal, missing, and nonstandardized installation states. A dataset comprising 3,000 original UAV inspection images and 6,420 cotter-pin ROI samples is presented for model development and evaluation. The proposed PEAB detector achieves a mean average precision (mAP) of 94.30% at an intersection-over-union threshold of 0.5 (mAP@0.5) and mAP@0.5:0.95 of 54.28%. Factorial ablation experiments that examine the individual and interaction effects of the P2 branch, EMA, ADown, and BiFPN are presented. Furthermore, YOLO-series and representative non-YOLO detectors are comparatively analyzed to evaluate the method across different detection architectures. Compared with the original DeepLabv3+, the improved segmentation model increases the mean intersection over union and mean F1 score by 4.85 and 3.90 percentage points, respectively. The segmentation network contains 2.51 million parameters and requires 5.37 billion floating-point operations. Under the reported NVIDIA RTX 3090 environment, the localization and segmentation stages process 58.32 frame·s–1 and 84.85 s–1, respectively. On the 642-sample state-assessment test set, the geometry-based procedure achieves a micro-average F1 score of 96.11%. An independent external validation set comprising 360 images and 636 annotated ROIs collected from five construction sites yield an ROI localization rate of 97.17%, a conditional state-classification accuracy of 97.25% among successfully localized ROIs, and an abnormal-state recall of 96.55%. These results show that multiscale small-object localization, boundary-aware lightweight segmentation, and explicit geometric reasoning can provide accurate and interpretable cotter-pin state assessment in complex UAV inspection scenes. The proposed method provides a practical basis for the visual inspection of steel-structure joints, although its performance on embedded airborne hardware requires further validation.

     

/

返回文章
返回