Urban drainage pipelines are essential components of smart city infrastructure, supporting the safe and sustainable operation of underground systems. However, internal corrosion in pipelines poses significant risks to structural stability and public safety. In this study, we propose an enhanced semantic segmentation framework based on High-Resolution Network Version 2 (HRNetV2) to accurately identify corroded regions in Traditional closed-circuit television (CCTV) images. The proposed method integrates a Convolutional Block Attention Module (CBAM) to strengthen the feature representation of corrosion patterns and introduces a Lightweight Pyramid Pooling Module (LitePPM) to improve multi-scale context modeling. By preserving high-resolution details through HRNetV2’s parallel architecture, the model achieves precise and robust segmentation performance. Experiments on a real-world corrosion dataset show that our approach attains a mean Intersection over Union () of 95.92 0.03%, of 97.01 0.02%, and an overall of 98.54%. These results demonstrate the method’s effectiveness in supporting intelligent infrastructure inspection and provide technical insights for advancing automated maintenance systems in smart cities.
Urban drainage pipelines are critical infrastructure for maintaining the healthy operation of cities. Internal corrosion poses a serious threat to the structural integrity and service life of pipelines. Due to the irregular morphology, blurred edges, and frequent confusion with the background of corrosion regions, traditional image segmentation methods are limited in accuracy and robustness for such defect detection tasks. To address these challenges, this paper proposes an improved corrosion segmentation algorithm based on High-Resolution Network Version 2 (HRNetV2). HRNetV2 is employed as the backbone network, leveraging its parallel multi-branch structure to maintain high-resolution representations throughout the network and using multi-scale feature fusion to preserve fine-grained spatial details. Building upon this, we integrate a Convolutional Block Attention Module (CBAM) in the Stage 4 stage to enhance the network’s discriminative ability toward corrosion features, and embed a Lightweight Pyramid Pooling Module (LitePPM) after feature concatenation to improve the perception of corrosion patterns at different scales and strengthen contextual modeling capability. Experimental results demonstrate the superiority of the proposed method on a drainage pipe corrosion dataset, achieving 95.92% mean Intersection over Union (mIoU), 98.01% mean Pixel Accuracy (mPA), and 98.54% overall Accuracy. The final model delivers precise segmentation of corrosion regions, preserving segmentation detail without sacrificing accuracy, thus validating the effectiveness of the proposed approach.
Urban drainage pipelines are essential components of smart city infrastructure, supporting the safe and sustainable operation of underground systems. However, internal corrosion in pipelines poses significant risks to structural stability and public safety. In this study, we propose an enhanced semantic segmentation framework based on High-Resolution Network Version 2 (HRNetV2) to accurately identify corroded regions in Traditional closed-circuit television (CCTV) images. The proposed method integrates a Convolutional Block Attention Module (CBAM) to strengthen the feature representation of corrosion patterns and introduces a Lightweight Pyramid Pooling Module (LitePPM) to improve multi-scale context modeling. By preserving high-resolution details through HRNetV2’s parallel architecture, the model achieves precise and robust segmentation performance. Experiments on a real-world corrosion dataset show that our approach attains a mean Intersection over Union (mIoU) of 95.92%, a mean Pixel Accuracy (mPA) of 98.01%, and an overall Accuracy of 98.54%. These results demonstrate the method’s effectiveness in supporting intelligent infrastructure inspection and provide technical insights for advancing automated maintenance systems in smart cities.