Aircraft skin damage LHN-YOLO small target detection algorithm incorporating attention mechanisms
-
摘要:
针对飞机蒙皮损伤小目标检测精度低、参数量大等问题,以飞机蒙皮铆钉损伤为研究对象,基于YOLOv8n算法提出了一种融合注意力机制的LHN-YOLO算法。为增强模型对小目标的检测能力,在骨干部分引入优化后的高效多尺度注意力(EMA)机制,通过轻量化卷积LightConv对EMA机制进行优化,形成Light-EMA模块,提高检测精度,降低计算复杂度;同时,引入Haar小波降采样模块和归一化高斯Wasserstein距离损失函数替换原模型的下采样操作和CIoU损失函数以提升预测性能。实验结果表明:LHN-YOLO算法的准确率、召回率、平均精度均值分别为92.7%、87.0%、91.7%,相较于改进前的原模型提升了2.2%、3.5%、2.8%,参数量减少了10%,有效提升了飞机蒙皮损伤小目标检测的效果。
Abstract:Aiming at the problems of low detection accuracy and a large number of parameters for small targets in aircraft skin damage detection, an LHN-YOLO algorithm incorporating the attention mechanism is proposed based on the YOLOv8n algorithm with aircraft skin rivet damage as the research object. To augment the model’s capacity for detecting small targets, an optimized efficient multi-scale attention (EMA) mechanism is integrated into the backbone, with the EMA mechanism refined through the lightweight convolution LightConv, resulting in the Light-EMA module that enhances detection precision while minimizing computational complexity; concurrently, the Haar wavelet downsampling module and normalized Gaussian Wasserstein are incorporated to supplant the original model’s downsampling module. Distance is introduced to replace the downsampling operation and CIoU loss function of the original model to improve the prediction performance. The results of the experiment reveal that the LHN-YOLO algorithm’s average accuracy, recall, and precision are 92.7%, 87.0%, and 91.7%, respectively, which are improvements of 2.2%, 3.5%, and 2.8% over the original model, alongside a 10% reduction in parameters, significantly boosting the detection of small target damage on aircraft surfaces.
-
Key words:
- YOLOv8n /
- attention mechanism /
- small target detection /
- rivet damage /
- skin damage detection
-
表 1 在不同位置应用EMA模块的网络效果对比
Table 1. Comparison of network effects of applying EMA modules at different locations
模型 P/% R/% mAP@0.5/% 参数量 检测速度/
(帧·s−1)浮点运算
数/109次YOLOv8n 90.5 83.5 88.9 3.0×106 159 8.1 EMA-颈部 89.2 85.2 89.9 2.9×106 140 8.4 EMA-骨干 91.0 85.0 89.4 3.1×106 123 8.4 表 2 改进EMA模块对比实验结果
Table 2. Comparative experimental results of improved EMA module
模型 P/% R/% mAP@0.5/% 参数量 检测速度/
(帧·s−1)浮点运算
数/109次YOLOv8n 90.5 83.5 88.9 3.0×106 159 8.1 EMA(L1) 90.8 84.7 90.2 3.0×106 120 8.6 EMA(L2) 91.0 85.5 90.1 3.0×106 123 8.5 EMA(L12) 91.3 87.5 90.4 2.9×106 117 8.7 表 3 LHN-YOLO的消融实验结果
Table 3. Results of ablation experiments with LHN-YOLO
模型 P/% R/% mAP@0.5/% 参数量 检测速度/(帧·s−1) 浮点运算数/109次 YOLOv8n 90.5 83.5 88.9 3.0×106 159 8.1 YOLOv8n+Light-EMA 91.3 87.5 90.4 2.9×106 117 8.7 YOLOv8n+Light-EMA+HWD 92.0 84.5 90.0 2.7×106 126 8.0 YOLOv8n+Light-EMA+HWD+NWD 92.7 87.0 91.7 2.7×106 119 8.2 表 4 不同模型的网络预测性能对比
Table 4. Comparison of network prediction performance of different models
模型 P/% R/% mAP@0.5/% 参数量 检测速度/
(帧·s−1)浮点运算
数/109次YOLOv5n 90.2 85.0 88.9 2.5×106 145 7.1 YOLOv6n 88.5 83.2 87.9 4.7×106 137 11.8 YOLOv7-tiny 78.3 77.5 77.3 6.0×106 127 13.2 YOLOv8n 90.5 83.5 88.9 3.0×106 159 8.1 YOLOv9c 89.8 82.6 88.0 25.3×106 94 102.3 LHN-YOLO 92.7 87.0 91.7 2.7×106 119 8.2 表 5 改进前后模型在LEVIR-ship数据集上的精度对比
Table 5. Comparison of accuracy of model before and after improvement on LEVIR-ship dataset
模型 P/% R/% mAP@0.5/% 参数量 检测速度/
(帧·s−1)浮点运算
数/109次YOLOv8n 80.4 78.3 81.7 3.0×106 294 8.1 LHN-YOLO 85.4 77.6 82.4 2.7×106 232 8.2 -
[1] 章东平, 王杼涛, 夏岳键, 等. 基于改进YOLOv8的飞机蒙皮缺陷检测算法[J]. 北京航空航天大学学报, 2026, 52(1): 38-48.Zhang D P, Wang Z T, Xia Y J, et al. Aircraft skin defect detection algorithm based on enhanced YOLOv8[J]. Journal of Beijing University of Aeronautics and Astronautics, 2026, 52(1): 38-48(in Chinese). [2] Wang P, Luo Y, Zhu Z L. FDI-YOLO: feature disentanglement and interaction network based on YOLO for SAR object detection[J]. Expert Systems with Applications, 2025, 260: 125442. [3] Tao X, Zhang D P, Ma W Z, et al. Automatic metallic surface defect detection and recognition with convolutional neural networks[J]. Applied Sciences, 2018, 8(9): 1575. [4] Ding M, Wu B E, Xu J, et al. Visual inspection of aircraft skin: automated pixel-level defect detection by instance segmentation[J]. Chinese Journal of Aeronautics, 2022, 35(10): 254-264. [5] 刘振江, 张会娟, 姬淼鑫, 等. 轻量级多尺度特征融合增强的空间非合作小目标检测算法[J/OL]. 北京航空航天大学学报, 2024[2024-09-20]. https://doi.org/10.13700/j.bh.1001-5965.2024.0509.Liu Z J, Zhang H J, Ji M X, et al. Lightweight multi-scale feature fusion enhanced spatial non-cooperative small target detection algorithm[J/OL]. Journal of Beijing University of Aeronautics and Astronautics, 2024[2024-09-20]. https://doi.org/10.13700/j.bh.1001-5965.2024.0509(in Chinese). [6] 郭艳, 王智文, 赵润星. YOLO-POD: 基于多维注意力机制的高精度PCB微小缺陷检测算法[J]. 电子学报, 2024, 52(7): 2515-2528.Guo Y, Wang Z W, Zhao R X. YOLO-POD: high-precision PCB tiny-defect detection algorithm based on multi-dimensional attention mechanism[J]. Acta Electronica Sinica, 2024, 52(7): 2515-2528(in Chinese). [7] 吴一全, 童康. 基于深度学习的无人机航拍图像小目标检测研究进展[J]. 航空学报, 2025, 46(3): 130755.Wu Y Q, Tong K. Research advances on deep learning-based small object detection in UAV aerial images[J]. Acta Aeronautica et Astronautica Sinica, 2025, 46(3): 130755(in Chinese). [8] 刘延芳, 佘佳宇, 袁秋帆, 等. 无人机遥感图像实时小目标检测方法[J]. 航空学报, 2024, 45(14): 53-72.Liu Y F, She J Y, Yuan Q F, et al. Real-time small target detection networks for UAV remote sensing[J]. Acta Aeronautica et Astronautica Sinica, 2024, 45(14): 53-72(in Chinese). [9] 张光华, 李聪发, 李钢硬, 等. 基于改进YOLOv7-tiny的无人机航拍图像小目标检测算法[J]. 工程科学与技术, 2025, 57(3): 235-246.ZHANG G H, LI C F, LI G Y, et al. Small target detection algorithm for UAV aerial images based on improved YOLOv7-tiny[J]. Advanced Engineering Sciences, 2025,57(3): 235-246(in Chinese). [10] 桑嘉更, 张志佳, 肖传民, 等. 基于YOLOv8s模型改进的道路交通目标检测方法研究[J]. 红外与激光工程, 2024, 53(11): 20240256.Sang J G, Zhang Z J, Xiao C M, et al. An improved YOLOv8s method and its application in road traffic target detection[J]. Infrared and Laser Engineering, 2024, 53(11): 20240256(in Chinese). [11] 李子豪, 王正平, 贺云涛. 基于自适应协同注意力机制的航拍密集小目标检测算法[J]. 航空学报, 2023, 44(13): 239-249.Li Z H, Wang Z P, He Y T. Aerial-photography dense small target detection algorithm based on adaptive cooperative attention mechanism[J]. Acta Aeronautica et Astronautica Sinica, 2023, 44(13): 239-249(in Chinese). [12] 李耀华, 刘传召. 融合注意力机制的轻量化航空发动机表面缺陷检测算法[J]. 航空动力学报, 2025, 40(6): 20240096.Li Y H, Liu C Z. Lightweight aero-engine surface defect detection algorithm fused with attention mechanism[J]. Journal of Aerospace Power, 2025, 40(6): 20240096(in Chinese). [13] Wang J X, Liu M, Du Y R, et al. PG-YOLO: an efficient detection algorithm for pomegranate before fruit thinning[J]. Engineering Applications of Artificial Intelligence, 2024, 134: 108700. [14] Zhu J X, Qin C, Choi D. YOLO-SDLUWD: YOLOv7-based small target detection network for infrared images in complex backgrounds[J]. Digital Communications and Networks, 2025, 11(2): 269-279. [15] 王海燕. 基于图像识别的飞机蒙皮铆接质量检测技术研究[D]. 沈阳: 沈阳航空航天大学, 2019.Wang H Y. Research on quality detection technology of aircraft skin riveting based on image recognition[D]. Shenyang: Shenyang Aerospace University, 2019(in Chinese). [16] Xu G P, Liao W T, Zhang X, et al. Haar wavelet downsampling: a simple but effective downsampling module for semantic segmentation[J]. Pattern Recognition, 2023, 143: 109819. [17] Xu C, Wang J W, Yang W, et al. Detecting tiny objects in aerial images: a normalized Wasserstein distance and a new benchmark[J]. ISPRS Journal of Photogrammetry and Remote Sensing, 2022, 190: 79-93. [18] JOCHER G. Ultralytics YOLOv8[EB/OL]. [2023-01-10]. https://github.com/ultralytics/ultralytics. [19] Ouyang D L, He S, Zhang G Z, et al. Efficient multi-scale attention module with cross-spatial learning[C]//Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing. Piscataway: IEEE Press, 2023: 1-5. [20] Wu F, Fan A, Baevski A, et al. Pay less attention with lightweight and dynamic convolutions[PP/OL]. arXiv (2019-02-22)[2024-09-01]. https://doi.org/10.48550/arxiv.1901.10430. [21] Chen J Q, Chen K Y, Chen H, et al. A degraded reconstruction enhancement-based method for tiny ship detection in remote sensing images with a new large-scale dataset[J]. IEEE Transactions on Geoscience and Remote Sensing, 2022, 60: 5625014. -


下载: