In this work, we enhanced the U-shaped network and proposed a method for detecting scratches on metal surfaces based on the Metal Surface Defect Detection U-Net (MSDD-UNet). Initially, we integrated a downsampling approach using a Space-To-Depth module and a lightweight channel attention module to address the loss of contextual information in feature maps that results from multiple convolution and pooling operations. Building on this, we developed an improved attention module that utilizes image frequency decomposition and cross-channel self-attention mechanisms, as well as the strengths of convolutional encoders and self-attention blocks. Additionally, this attention module was integrated into the skip connections between the encoder and decoder. The purpose was to capture dense contextual information, highlight small and fine target areas, and assist in localizing micro and fine scratch defects. In response to the severe foreground–background class imbalance in scratch images, a hybrid loss function combining focal loss and loss was put forward to train the model for precise scratch segmentation. Finally, experiments were conducted on two surface defect datasets. The results reveal that our proposed method is more advantageous than other state-of-the-art scratch segmentation methods.
4 September 2025 in International Journal of Image and Graphics
Accurate delineation of landslides in RGB optical remote sensing imagery supports rapid disaster mapping and post-event assessment. This remains difficult because landslides are often small and irregular, resemble bare soil or disturbed vegetation, and acquire blurred boundaries when images are resized. We developed AS-UNet, a lightweight U-Net variant with three targeted modifications. The Asymmetric Strip Attention Module uses horizontal and vertical depthwise strip convolutions with parallel channel-spatial reweighting to capture anisotropic landslide morphology. The Channel-Spatial Joint Gate uses decoder semantics to filter selected skip connections while retaining channel-specific spatial responses. The Poly-Harmonized Gradient Dice Loss (PGD Loss) combines pixel-wise, region-overlap, gradient-density, and probability-regularization terms for imbalanced segmentation. At 128 × 128 input resolution, AS-UNet achieved a best-validation IoU of 80.46 ± 0.03% and an independent-test IoU of 77.82 ± 0.32% across three random seeds. AS-UNet contains 8.634 M parameters and processed 380.79 frames per second on the reported hardware. These results indicate a favorable balance between segmentation accuracy and computational efficiency for RGB optical landslide mapping.