Submitted:
10 December 2025
Posted:
11 December 2025
You are already at the latest version
Abstract
Pipelines play a critical role in industrial production and daily life as essential conduits for transportation. However, defects frequently arise because of environmental and manufacturing factors, posing potential safety hazards. To address the limitations of traditional object detection methods, such as inefficient feature extraction and loss of critical information, this paper proposes an improved algorithm named FALW-YOLOv8, based on YOLOv8. The FasterBlock is integrated into the C2f module to replace standard convolutional layers, thereby reducing redundant computations and significantly enhancing the efficiency of feature extraction. Additionally, the ADown module is employed to improve multi-scale feature retention, while the LSKA attention mechanism is incorporated to optimize detection accuracy, particularly for small defects. The Wise-IoU v2 loss function is adopted to refine bounding box precision for complex samples. Experimental results demonstrate that the proposed FALW-YOLOv8 achieves a 5.8% improvement in mAP50, alongside a 34.8% reduction in parameters and a 30.86% decrease in computational cost. This approach effectively balances accuracy and efficiency, making it suitable for real-time industrial inspection applications.

Keywords:
1. Introduction
2. Pipeline Defect Detection Algorithm
2.1. YOLOv8 Baseline Model
2.2. FALW-YOLOv8 Enhanced Model
2.2.1. FasterBlock Module
- Channel Extension: Map the number of input channels fromto(is the expansion ratio) to enhance feature expression capabilities.
- Channel Compression:Map the number of channels from back to the original dimension , ensuring consistent feature map dimensions and restoring the channel dimension to reduce computational burden on subsequent layers.
2.2.2. ADown Module
2.2.3. LSKAttention Attention Mechanism
- Horizontal convolution(1×k):.
- Vertical convolution(k×1):.
- Spatial Attention Generation(1×1):;σ is the activation function.
- Feature Adjustment:;denotes element-wise multiplication (Hadamard product).
2.2.4. Wise-IoU v2 Loss Function
3. Experimental Setup
3.1. Dataset
3.2. Laboratory Facility Configuration
3.3. Experimental Parameter Specifications
4. Results Analysis
4.1. Experimental Results
4.2. Ablation Experiment
4.3. Model Comparison Experiment
4.4. Model Interpretability and Feature Visualization Analysis
5. Summary and Conclusions
5.1. Summary
5.2. Conclusion
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| BN | Batch Normalization |
| ReLU | Rectified Linear Unit |
| LSKA | Large Selective Kernel Attention |
| WiseIoU-v2 | Wise Intersection over Union v2 |
| SGD | Stochastic Gradient Descent |
| TP | True Positives |
| TN | True Negatives |
| FP | False Positives |
| FN | False Negatives |
| mAP | Mean Average Precision |
References
- Zongren, Wang. Design of a Multi-Probe Rotating Eddy Current Detection System [D]. In Shanghai University of Applied Science; 2023. [Google Scholar]
- Qingjun, Gong; Teng, Zhang; Wei, Lan. Research status of oil and gas pipeline inspection technology and data analysis methods [J]. Pipeline protection 2025, 2(03), 35-42+73. [Google Scholar]
- Yu, Wang. Review of target detection algorithms based on deep learning [J]. Technology information 2025, 23(02), 64–66. [Google Scholar]
- Qing, Wang; Jun, Yao; Wenlu, Tan. Research on defect detection of drainage pipes based on Faster R-CNN [J]. Software Guide 2019, 18(10), 40-44+49. [Google Scholar]
- Hao, Zhu; Shunyong, Zhou; Xue, Liu. Review of single-stage target detection algorithm based on deep learning [J]. Industrial control computer 2023, 36(04), 101–103. [Google Scholar]
- JiangChao, Z; YiMing, Z; XinPing, J; et al. Research on Improved YOLOv5 Pipeline Defect Detection Algorithm [J]. Journal of Pipeline Systems Engineering and Practice 2025, 16(2). [Google Scholar]
- Wang, T; Li, Y; Zhai, Y; et al. A Sewer Pipeline Defect Detection Method Based on Improved YOLOv5 [J]. Processes 2023, 11(8), 2508. [Google Scholar] [CrossRef]
- Zhao, X; Guo, F; Wang, Y; et al. CEM-YOLO: Defect Detection in Large Hydropower Station Water Conveyance Pipelines Based on YOLOv7 [J]. Journal of Physics: Conference Series 2025, 2988(1), 012012–012012. [Google Scholar] [CrossRef]
- Zhehao, Wu; Yuan, Guo; Sheng, Huang. Improve the defect detection model of YOLOv8 drainage pipe based on ECONOMIENTVIT [J]. Water supply and drainage 2025, 61(01), 125–130. [Google Scholar]
- Chen, J. Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 2023 ; pp. 12021–12031. [Google Scholar]
- Huang, G; Sun, Y; 0003, L Z. Deep networks with stochastic depth. In European conference on computer vision; Springer: Cham, 2016; pp. 646–661. [Google Scholar]
- Cui, Z.; Xu, Y.; Jin, X.; Li, Y. An Improved Lightweight Model for Defect Detection on Paths in Images. Appl. Sci. 2025, 15, 7014. [Google Scholar] [CrossRef]
- Lecun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proceedings of the IEEE 1998, vol. 86(no. 11), 2278–2324. [Google Scholar] [CrossRef]
- Wai, K L; Lai-Man, P; Ur, A Y R. Large Separable Kernel Attention: Rethinking the Large Kernel Attention design in CNN [J]. Expert Systems With Applications 2024, 236. [Google Scholar]
- Wang, J.; Ding, J.; Ran, S.; Qin, S.; Liu, B.; Li, X. Automatic Pear Extraction from High-Resolution Images by a Visual Attention Mechanism Network. Remote Sens. 2023, 15, 3283. [Google Scholar] [CrossRef]
- Tong, Z.; Chen, Y.; Xu, Z.; Yu, R. Wise-IoU: Bounding Box Regression Loss with Dynamic Focusing Mechanism. arXiv 2023, arXiv:2301.10051. [Google Scholar]
- Lin, Tsung-Yi; et al. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017; IEEE; pp. 2980–2988. [Google Scholar]
- Simard, P. Y.; Steinkraus, D.; Platt, J. C. Best Practices for Convolutional Neural Networks Applied to Visual Document Analysis. In Proceedings of the 7th International Conference on Document Analysis and Recognition (ICDAR), 2003; pp. 958–963. [Google Scholar]









| Baseline | C2f-FasterBlock | ADown | LSKA | Wise-IoU v2 | mAP50(%) | Parameters/M | GFLOPs/G |
| ✓ | 72.1 | 3.00 | 8.1 | ||||
| ✓ | ✓ | 73.4 | 2.31 | 6.4 | |||
| ✓ | ✓ | ✓ | 75.1 | 1.89 | 5.5 | ||
| ✓ | ✓ | ✓ | ✓ | 77.7 | 1.96 | 5.6 | |
| ✓ | ✓ | ✓ | ✓ | ✓ | 77.9 | 1.96 | 5.6 |
| Model | Precision | recall | mAP50(%) | mAP50-95(%) | Parameters/M | GFLOPs/G |
| Faster R-CNN | 0.854 | 0.655 | 70.2 | 42.6 | 41.43 | 134.0 |
| RetinaNet | 0.882 | 0.714 | 72.8 | 46.0 | 36.41 | 128.6 |
| SSD300 | 0.829 | 0.650 | 63.7 | 37.1 | 26.17 | 31.4 |
| YOLOv3-t | 0.835 | 0.610 | 68.7 | 41.9 | 12.13 | 18.9 |
| YOLOv5 | 0.904 | 0.596 | 71.1 | 42.9 | 2.50 | 7.1 |
| YOLOv6 | 0.779 | 0.557 | 60.9 | 36.4 | 4.23 | 11.8 |
| YOLOv8 | 0.884 | 0.638 | 72.1 | 45.4 | 3.00 | 8.1 |
| YOLOv10n | 0.798 | 0.626 | 70.4 | 47.2 | 2.69 | 8.2 |
| YOLOv11n | 0.895 | 0.639 | 74.2 | 46.8 | 2.58 | 6.3 |
| FALW-YOLOv8 | 0.889 | 0.671 | 77.9 | 48.9 | 1.96 | 5.6 |
![]() |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
