Next Article in Journal
GAT-LA: Graph Attention-Based Locality-Aware Sampling for Modeling the Dynamic Evolution of I2P Routing Topologies
Previous Article in Journal
The Point-of-Balanced Performance in Binary Classification: How to Simplify the Performance Metrics Ecosystem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

WeldSimAM and EnNWD Co-Optimization: Enhancing Lightweight YOLOv11 for Multi-Scale Weld Defect Detection

1
School of Artificial Intelligence, Anhui University, Hefei 230601, China
2
School of Intelligent Manufacturing, Anhui Wenda University of Information Engineering, Hefei 231201, China
3
College of Art and Design, Nanning University, Nanning 530200, China
*
Author to whom correspondence should be addressed.
Technologies 2026, 14(3), 140; https://doi.org/10.3390/technologies14030140
Submission received: 19 January 2026 / Revised: 22 February 2026 / Accepted: 24 February 2026 / Published: 26 February 2026
(This article belongs to the Section Manufacturing Technology)

Abstract

In the context of Industry 4.0, reliable automatic inspection of weld surface defects is critical for structural safety, yet current deep learning-based detectors struggle with the extreme scale variation and anisotropic shapes characteristic of weld flaws such as pores, cracks, and lack of fusion. Existing YOLO-family models, although effective on general-purpose datasets, often fail to robustly localize tiny defects and long, slender discontinuities while remaining lightweight enough for industrial edge deployment. A critical research gap lies in the lack of task-specific optimization for weld defects: standard attention mechanisms are isotropic and cannot capture linear defect continuity, while existing loss functions ignore scale disparity between tiny pores (area < 100 pixels2) and large incomplete fusion defects (area > 5000 pixels2), leading to unstable regression. Here, we propose a dual-optimized lightweight YOLOv11 framework tailored for weld defect detection that addresses both feature representation and bounding-box regression. Here, we propose a dual-optimized lightweight YOLOv11 framework tailored for weld defect detection that addresses both feature representation and bounding-box regression. First, we introduce WeldSimAM, an enhanced attention module that augments parameter-free SimAM with directional (horizontal/vertical) and channel-wise enhancement to better capture the directional texture of linear weld defects. Second, we develop an Enhanced Normalized Wasserstein Distance (EnNWD) loss, which incorporates scale-disparity penalties and relative-area-based weighting to mitigate sample imbalance and improve regression accuracy for tiny and large-aspect-ratio targets. Validated via 10-fold cross-validation on three datasets (self-built + two public), the method achieves 99.48% mAP@0.5 and 73.29% mAP@0.5:0.95, outperforming YOLOv11 by 0.13 and 3.76 percentage points (p < 0.01, two-tailed t-test), with 5.21 MB and 132 FPS on NVIDIA RTX 4090. It also surpasses non-YOLO SOTA methods (e.g., EfficientDet-Lite3) by 3.8–5.5 percentage points in mAP@0.5 (p < 0.05), offering a practical real-time solution for industrial inspection.

1. Introduction

Welding is an indispensable process in modern manufacturing, crucial for sectors such as aerospace, shipbuilding, and pipeline construction. However, the welding process often introduces defects such as porosity, cracks, and incomplete fusion, which can compromise structural integrity and lead to significant safety risks [1]. Traditional non-destructive testing (NDT) methods [2], including radiographic and ultrasonic techniques, are reliant on manual interpretation, thereby reducing efficiency and increasing subjectivity. The advent of Convolutional Neural Networks (CNNs) has revolutionized this field, enabling automated and intelligent defect detection [3].
Among the diverse range of object detection frameworks, the YOLO (You Only Look Once) family [4,5] stands out as a top choice for real-time applications due to its adoption of a single-stage architecture. However, although recent versions such as YOLOv8 and YOLOv10 [6] perform well on general-purpose datasets such as COCO [7], they still struggle to accurately address the specific characteristics of industrial weld inspection. In defect detection, scale variation and extreme aspect ratios pose particular challenges. Defects span a wide range of sizes, with very small pores often losing critical semantic information during downsampling. Additionally, defects such as cracks and lack of fusion exhibit extreme aspect ratios and typically appear as elongated, slender structures. The failure of the standard IoU for weld defects stems from two structural limitations. Mathematically, for slender cracks with aspect ratios > 10:1, a small boundary offset (e.g., 2 pixels) can cause IoU to drop by over 40%, far more sensitive than for square targets. Structurally, IoU only considers overlapping regions and ignores the relative position and scale differences between predicted and ground-truth boxes, leading to unstable gradients when detecting tiny pores (area < 100 pixels2) or large incomplete fusion defects (area > 5000 pixels2) [8,9]. In contrast, our EnNWD loss addresses these issues by modeling boxes as 2D Gaussians (Formula (4)) and introducing scale-adaptive penalties (Formula (5)).
To contextualize the research background, weld defect detection faces three core challenges that motivate our work: (1) Anisotropic feature representation: linear defects (e.g., cracks) require directional feature extraction, which standard isotropic attention mechanisms (e.g., SimAM [10], CBAM [11]) lack; (2) Multi-scale regression instability: tiny pores and large fusion defects have extreme scale disparity, leading to imbalanced loss contributions in existing methods (e.g., NWD [12], CIoU [9]); (3) Industrial deployment constraints: models must be lightweight (<6 MB) and real-time (>100 FPS) for edge devices, excluding heavy multi-stage frameworks.
Recent SOTA methods in weld and surface defect detection have made notable progress but still face inherent limitations. Yang et al. [10] proposed the parameter-free SimAM attention module for Convolutional Neural Networks, and Wu et al. [13] integrated SimAM into a YOLO-based detector for aluminum alloy weld DR images to enhance weld defect detection. Following these designs, we construct a baseline model, YOLOv11-Weld, by inserting standard SimAM into the YOLOv11 backbone; however, its isotropic feature extraction still fails to capture the directional continuity of slender cracks, leading to a 5.2% lower recall for linear defects compared with our method. Likewise, Xu et al. [14] introduced an NWD-based localization loss for metallic surface defect detection. When we adopt a similar NWD-based loss in our YOLOv10-Defect baseline, it does not explicitly handle the scale disparity between tiny pores and large incomplete fusion defects, resulting in a 3.8% drop in mAP@0.5:0.95 on the NEU-DET dataset originally reported by Song and Yan [15]. These observations indicate that standard attention mechanisms and loss functions remain insufficient to address the anisotropic and multi-scale nature of weld flaws, thereby motivating our dual-optimization design.
The primary research objectives of this study are: (1) to design a direction-aware lightweight attention module (WeldSimAM) to capture linear weld defect continuity without increasing computational overhead, (2) to propose a scale-adaptive loss function (EnNWD) to handle extreme scale variation in weld defects, and (3) to validate the proposed framework via rigorous experiments (10-fold cross-validation, statistical significance testing) on multi-source datasets to ensure industrial applicability.
To break through these barriers, this study proposes an optimized detection architecture based on YOLOv11 [16]. We present the following key contributions:
We introduce WeldSimAM, an enhanced attention module built on the parameter-free SimAM [10]. Explicitly models horizontal and vertical features to better represent the directionality of linear defects.
We formulate an Enhanced Normalized Wasserstein Distance (EnNWD) loss using Wasserstein distance [12] to quantify distributional differences. It incorporates a scale penalty term and adaptive weighting for small objects, thereby enhancing detection accuracy for minor and irregularly shaped defects.
Extensive validation: Evaluated via 10-fold cross-validation on three datasets (self-built + two public) and compared with YOLO-series and non-YOLO SOTA methods, achieving 99.67% precision, 99.65% recall, and 132 FPS, establishing a new benchmark for lightweight weld defect detection.

2. Related Work

2.1. YOLOv11 Baseline Structure

Object detection can be grouped into two-step methods, such as Faster R-CNN [17,18] and one-stage methods like SSD [19] and YOLO [20,21]. The YOLO family has become a more advanced version that includes FPN [22] and PANet [23] for multi-scale fusion. YOLOv11, as the baseline of this paper, uses more advanced C3k2 blocks and SPPF modules, which provide a good balance of speed and accuracy.
Figure 1 illustrates the architecture of the YOLOv11 model, which serves as the foundation for our improvements. The architecture comprises three distinct modules, each highlighted with a different color. The red-outlined backbone serves as the feature extractor and includes Conv and C3 layers, as well as advanced components such as SPPF for multi-scale pooling and C2PSA for attention-driven refinement of hierarchical visual features. The blue-outlined neck acts as a feature-fusion bridge, combining multi-scale features through upsampling and concatenation to generate richer representations for detection. The purple-outlined head forms the detection branch and employs multi-scale Detect modules together with attention mechanisms (e.g., PSA) for object classification. In this architecture, the C2PSA module in the backbone provides the foundational features required for embedding WeldSimAM attention. Meanwhile, the PAN-FPN structure in the neck forms the integration framework for multi-scale weld defect detection.

2.2. Attention Mechanisms

Attention mechanisms enhance relevant features while suppressing noise. SE-Net [24] introduced channel attention, while CBAM [11] combined spatial and channel dimensions. SimAM proposed a parameter-free attention module based on neuroscience energy functions. However, SimAM is isotropic and lacks specific sensitivity to the directional textures common in industrial defects, a gap this study addresses. Recent advances in defect detection attention include Sim-YOLOv8 [13], which integrates vanilla SimAM for aluminum alloy weld DR images but fails to model directional features, leading to suboptimal recall for linear cracks. Another method, eCBAM [25], enhances channel and spatial attention but increases model size by 30%, violating lightweight deployment requirements.

2.3. Bounding Box Regression Loss

IoU has been the starting point for the evolution of loss functions [26] to GIoU [8] and CIoU [9], addressing gradient vanishing and aspect ratio consistency. For tiny objects, IoU-based metrics are overly sensitive to slight pixel deviations. Wang et al. [12] proposed NWD (Normalized Wasserstein Distance), modeling boxes as 2D Gaussian distributions. Xu et al. [14] introduced an NWD-WIoU hybrid loss for metallic surface defects but ignored scale disparity between multi-scale targets. Shape-IoU [27] considers bounding box shape and scale but increases computational complexity by 25%, making it unsuitable for edge deployment. We further improve NWD by adding scale constraints to handle the diverse defect morphologies in welding.

2.4. Comparative Analysis of Recent SOTA Methods

Table 1 summarizes representative recent methods for weld/surface defect detection, highlighting their limitations and our improvements.

3. Method

3.1. Overall Architecture of the Improved YOLOv11 Model

As illustrated in Figure 2, the proposed method is built on the YOLOv11 architecture. The backbone extracts features using coupled convolutional layers and C3k2 modules. The neck utilizes a PAN-FPN structure for multi-scale fusion. The key improvements are integrated as follows: the WeldSimAM modules are inserted at the P3, P4, and P5 layers before the detection heads to refine features, and the EnNWD Loss is applied during training for bounding box regression.
Justification of module placement: WeldSimAM is inserted at P3-P5 layers because: (1) backbone-inserted attention would suppress low-level texture features (critical for tiny pores) and (2) head-only insertion lacks multi-scale feature refinement. EnNWD is applied to the detection head to directly optimize bounding-box regression, as the head’s output is the final box prediction, ensuring loss supervision aligns with inference.

3.2. WeldSimAM: Directional and Channel-Enhanced Attention

The initial SimAM computes the attention weight for each neuron through optimizing the energy function et., yet it exhibits insufficient capability in extracting linear defects against complex backgrounds with similar textures. As shown in Figure 3, on the basis of retaining the dynamic weight adjustment and long-strip target optimization characteristics of the original SimAM, WeldSimAM adds the following key components to adapt to weld defect detection:
Directional Convolution Parameters: The 1 × 3 and 3 × 1 convolutions in WeldSimAM use padding = 1 (to maintain feature map size) and stride = 1 (for dense feature extraction), with ReLU activation to enhance nonlinearity.
Directional Attention Branch: Extract horizontal and vertical features through 1 × 3 and 3 × 1 convolution, respectively, to capture the linear features of weld defects (e.g., cracks, linear porosity). This design draws inspiration from the discovery that linear defects possess notable directional traits, which can be strengthened by directional convolution kernels. For the input feature map, the horizontal mean (mean (dim = 3)) and vertical mean (mean (dim = 2)) are calculated, and subsequently, horizontal and vertical features are extracted by using the corresponding convolution kernels.
Dynamic Weight Fusion: The directional attention and the original SimAM basic attention are fused with weights (0.3 × directional attention + 0.7 × basic attention) through softmax to balance the contribution of different directional features. To justify the fixed 0.3/0.7 fusion weights, we conducted a sensitivity analysis (Table 2): weights of 0.2/0.8 reduced mAP@0.5:0.95 by 0.8%, while 0.4/0.6 increased false positives by 2.3%. The 0.3/0.7 ratio achieves the best balance between directional feature enhancement and background suppression. This weighted fusion strategy avoids over-reliance on single-direction features, which is consistent with the multi-scale feature fusion idea in BiFPN [28].
Channel Attention Enhancement: Employ 1 × 1 convolution for channel dimension adjustment, and enhance the sensitivity of important channels by calculating the channel mean (x.mean ([2,3])) and implementing normalization. This component references the channel attention design in CBAM, which has been proven effective in suppressing background noise in industrial scenes.
Aspect Ratio Adaptive Adjustment: Adjust the feature map size through bilinear interpolation, and optimize the processing capability of targets with different aspect ratios (e.g., vertical strip and square weld defects) by introducing scale_factor. This addresses the problem that traditional SimAM has inconsistent performance on targets of different shapes.
As shown in Figure 3, the WeldSimAM introduced keeps the optimization of the initial energy function and additionally incorporates a directional attention branch together with channel enhancement. The core of SimAM’s attention weight calculation is defined by Equation (1), where t * denotes the weight metric for the sample x , μ ^ and σ ^ 2 are the estimated mean and variance of the dataset, and λ acts as a regularization parameter. This equation dynamically adjusts attention weights based on feature distribution, effectively highlighting weld defect regions while suppressing redundant background information—a critical advantage for distinguishing linear defects from cluttered industrial backgrounds.
t * = 4 σ ^ 2 + λ x μ ^ 2 + 2 σ ^ 2 + 2 λ
Dynamically adjusts the attention weight according to the feature distribution, highlighting the regions with significant differences from the background (i.e., weld defect regions) while suppressing redundant background information.
Directional Feature Extraction: To explicitly model the horizontal and vertical continuity of linear weld defects, we use 1 × 3 and 3 × 1 convolutions to extract directional features, which are then fused via dynamic weights generated by Softmax, as defined in Equation (2). Here, A t t n d i r represents the fused directional attention, Conv h X and Conv v X are the horizontal and vertical convolution outputs of the input feature X , and α ∈ [0, 1] is a weight parameter that adjusts the relative contribution of the two directional features—this design directly targets the anisotropic nature of cracks and linear porosity, enhancing the model’s sensitivity to elongated defect structures.
A t t n d i r = α Conv h X + 1 α Conv v X
Channel Enhancement: A global pooling followed by 1 × 1 convolution captures channel-wise dependencies ( A t t n c h a n ) .
Adaptive Fusion: The final attention map integrates the base SimAM attention, directional attention, and channel attention, modulated by an aspect-ratio scale factor (s), as formulated in Equation (3). Here, σ is the sigmoid activation function that normalizes the fused attention weight to [0, 1], the coefficients 0.7 and 0.3 balance the base SimAM attention ( A t t n b a s e ) and directional attention ( A t t n d i r ), and s controls the contribution of channel attention ( A t t n c h a n ) . This multi-component fusion ensures the network comprehensively enhances defect boundaries, textures, and category-related features while adapting to targets of different aspect ratios.
X o u t = X i n σ 0.7 A t t n b a s e + 0.3 A t t n d i r + s A t t n c h a n
The attention weights calculated using Equation (1) can dynamically highlight weld defect regions. Combined with the directional convolution features from Equation (2) and the multi-attention fusion strategy from Equation (3), this enables precise localization of linear defects. This structure ensures the network is sensitive to crack-like linear features. Integrates spatial attention (base + directional) and channel attention, comprehensively enhancing the representation of defect boundaries, textures, and category-related features.

3.3. Adaptive NWD Loss (EnNWD)

To address the issues of drastic IoU fluctuations regarding small objects (such as tiny pores) and scale distortion regarding large objects (such as strip-shaped defects), this paper restructures a loss function according to the Wasserstein distance. As illustrated in Figure 4, EnNWDLoss introduces the following crucial elements on the foundation of the original NWD (Wasserstein distance) to optimize the regression of large-scale weld defect targets:
Small Target Weight Mechanism: Compute the relative area of the prediction box (area_pred = W1 × H1) and the ground-truth box (area_target = W2 × H2), then generate the small target weight coefficient (small_obj_weight) to adaptively adjust the loss weight according to the target size. This is based on the finding that small-scale targets are more sensitive to position deviations compared to large-scale ones.
Scale Difference Penalty Term: Compute the scale difference (scale_diff) between the prediction box and the ground-truth box. Next, integrate the scale penalty (scale_penalty) to prevent scale inconsistency between the prediction box and the ground-truth box. This tackles the limitation of the original NWD in dealing with scale variations in large targets.
Multi-Scale Weighted Fusion: Adjust the penalty weights of center distance (center_distance) and width-height distance (wh_distance) according to the target size to optimize the regression performance of large-scale targets. This references the weight adjustment strategy in Shape-IoU [27], which considers the impact of target shape and scale on loss calculation.
We represent the predicted box P and ground truth G as Gaussian distributions Np and Ng. The similarity between them is measured by the Wasserstein distance (W2), which is defined in Equation (4).
W 2 2 P , G = μ p μ g 2 2 + Σ p 1 / 2 Σ g 1 / 2 F 2
where μ p and μ g are the center coordinates of the two distributions, and p and g are the covariance matrices. Compared with traditional IoU metrics, it more robustly evaluates the similarity between bounding boxes, especially for tiny and elongated weld defects with slight positional deviations.
Scale Penalty: To prevent scale distortion for large defects (e.g., long strip-shaped incomplete fusion), we introduce a scale penalty term based on width and height differences, as defined in Equation (5).
L s c a l e = w p w g max w p , w g + h p h g max h p , h g
Here, w p , h p and w g , h g are the width and height of the predicted and ground-truth boxes, respectively. The relative scale difference is calculated by dividing the absolute difference by the maximum value of the two dimensions, avoiding the influence of absolute size and effectively penalizing scale inconsistency between large targets.
Finally, Small Object Weight: We calculate a weight coefficient w o b j inversely proportional to the target’s relative area, increasing the loss contribution of tiny defects.
Final Loss: The basic NWD loss is computed using Equation (6), where W 2 2 N p , N g is the squared Wasserstein distance between the predicted and ground-truth Gaussian distributions, and C is a normalization constant. This exponential function converts the distance into a loss value that decreases as the similarity between boxes increases.
L N W D = exp W 2 2 N p , N g C
The final EnNWD loss integrates the basic NWD loss, scale penalty term, and small-object weight, as shown in Equation (7). Here, λ (set to 0.5) adjusts the intensity of the scale penalty, and w o b j is the small-object weight coefficient. This weighted fusion realizes adaptive regression for multi-scale weld defects, prioritizing the localization accuracy of tiny pores while ensuring the scale stability of large cracks.
L F i n a l = L N W D 1 + λ L s c a l e w o b j
Compared to the traditional IoU loss, the Wasserstein distance in Equation (4) can more robustly measure the similarity of elongated defect boxes. The scale penalty term in Equation (5) helps alleviate regression deviations for large defects. Ultimately, adaptive optimization of multi-scale defects is achieved through the weighted fusion in Equation (7).

4. Experiments

4.1. Dataset Description

4.1.1. Self-Built Weld Defect Dataset

The experiment employs a self-built weld defect detection dataset, which consists of 4000 images split into two categories: good (good weld) and bad (defective weld). The dataset construction follows the standard for industrial defect datasets, including diverse lighting conditions and defect morphologies. The dataset contains a total of 3506 targets, averaging 0.88 targets for each image. All images are resized to 640 × 640, and data augmentation (scaling, rotation, flip, brightness adjustment) balances classes. The dataset is split via 10-fold cross-validation (stratified by defect category and image acquisition condition) to ensure unbiased evaluation. Image acquisition hardware details: (1) Sensor: Germany Basler acA2500-14uc CMOS camera (2592 × 1944 resolution, 14-bit dynamic range); (2) Lighting: two 1000 lm LED strip lights (45° angle to the weld surface, 30 cm distance from the target); (3) Shooting distance: 50 cm (fixed via a mechanical bracket to avoid perspective distortion); (4) Post-processing: images were denoised using a 5 × 5 Gaussian filter to reduce metallic glare interference common in weld scenes.

4.1.2. Public Datasets

To verify generalization, experiments are conducted on two public industrial defect datasets:
NEU-DET [15]: 1800 steel surface defect images (6 types), including cracks, inclusions, and patches, with a similar multi-scale characteristic to weld defects. The dataset is split into 8:1:1 via 10-fold cross-validation and resized to 640 × 640.
PCB Defect Dataset [29]: 1460 PCB defect images (5 types), with small/low-contrast targets (e.g., pinholes, open circuits) similar to tiny weld pores. The same 10-fold cross-validation split and resizing strategy are adopted.

4.2. Experimental Setup

All experiments were performed on a high-performance workstation with the following hardware and software configuration:
Hardware: Intel Xeon Gold 5418Y CPU (10 cores), NVIDIA RTX 4090 (24 GB VRAM), 120 GB RAM. (Table 3)
Software: Ubuntu 20.04 LTS, Python 3.10, PyTorch 2.2.2, CUDA 11.8, OpenCV 4.8.0, Ultralytics 8.1.0. (Table 3)
The model was trained using the following hyperparameters:
Training Hyperparameters: 100 epochs, batch size = 64 (mixed precision), SGD optimizer (initial learning rate = 0.01, momentum = 0.937, weight decay = 0.0005).
Loss Weights: 7.5 for bounding box regression, 0.5 for classification, and 1.5 for distribution focal loss.
Metrics: Mean Average Precision (mAP@0.5, mAP@0.5:0.95), Precision (P), Recall (R), model size (MB), and real-time inference speed (FPS).

4.3. Evaluation Metrics

This study employed metrics such as mean average precision (mAP), parameters (Params), recall (R), precision (P), billion floating point operations per second (GFLOPS), size of model weight (Size), and the inference speed (FPS) to evaluate the improved model. The calculation formula is as follows:
P = T P T P + F P × 100 %
R = T P T P + F N × 100 %
A P = 0 1 P R d R
m A P = 1 N i = 1 N A P i
where N corresponds to the total number of defect categories in the dataset, and AP(i) represents the average precision of the i-th class. The precision and recall are defined based on the number of true positives (TP), false positives (FP), and false negatives (FN). In the experiments, precision and recall are calculated using Equations (8) and (9). Combined with the AP value from Equation (10) and the mAP metric from Equation (11), the model’s detection performance is comprehensively evaluated. Statistical significance is assessed via two-tailed t-tests (α = 0.05) to verify that performance improvements are not due to chance.

4.4. Ablation Study

To verify the effectiveness of each augmented module, ablation studies are carried out on the validation set. The baseline model is the original YOLOv11, and three extra variants are investigated: (1) YOLOv11 + WeldSimAM, (2) YOLOv11 + EnNWD, (3) YOLOv11 + WeldSimAM + EnNWD (proposed model). All results are shown in Table 4.
From Table 4, we can derive the following conclusions: the combination of WeldSimAM and EnNWD achieves the best performance, with mAP@0.5 reaching 99.48% and mAP@0.5:0.95 hitting 73.29%, which are 0.13 and 3.76 percentage points higher than the baseline model, respectively (p < 0.01). At the same time, the precision and recall are also significantly improved (P = 99.67%, R = 99.65%), and the model weight size remains 5.21 MB, maintaining the lightweight of the model—an important advantage for industrial edge deployment.
To intuitively demonstrate the contribution of each proposed module, Figure 5 presents the bar chart of mAP@0.5:0.95 and mAP@0.5 performance for different model variants.
As shown in Figure 5, the WeldSimAM module and EnNWD loss both significantly improve the model’s localization accuracy for multi-scale weld defects. The synergistic effect of the two modules achieves the highest mAP@0.5:0.95 (73.29%) and the highest mAP@0.5 (99.48%), which confirms that the directional feature enhancement of WeldSimAM and the scale-adaptive regression of EnNWD are complementary and mutually reinforcing.
Figure 5a (mAP@0.5:0.95):
All models exhibit an upward trend in mAP as the number of training epochs increases.
The proposed model (ours, red curve) consistently outperforms other variants throughout the training process.
It ultimately achieves an mAP of over 0.73, significantly higher than the baseline model’s (blue curve) approximately 0.69.
This demonstrates that the collaborative optimization of WeldSimAM and EnNWD effectively enhances the model’s detection accuracy across multiple IoU thresholds.
Figure 5b (mAP@0.5):
The mAP of each model rises rapidly in the early training stage and stabilizes in the later stage.
The proposed model (ours, red curve) reaches a final mAP close to 1.0.
It performs slightly better than YOLOv11 + WeldSimAM (orange curve) and YOLOv11 + EnNWD (green curve).
This further verifies the performance gain of the dual-module optimization for detection under high IoU thresholds.
To further isolate the contribution of each integration scheme, we perform a fine-grained ablation study on WeldSimAM, applying it only to the backbone, only to the head, and to the P3–P5 layers of YOLOv11, with the resulting mAP and FPS reported in Table 5.
As shown in Table 5, placing WeldSimAM at P3-P5 layers (Figure 2) achieves the best performance, as these layers balance high spatial resolution (P3 for small pores) and rich semantics (P5 for large cracks), aligning with the multi-scale characteristics of weld defects.
To intuitively demonstrate the performance improvement brought by the proposed modules, Figure 6a–c presents the visualized detection results of different model variants on three typical weld sample types (classified by morphological features):
Small weld detection map: Compact, small-scale weld regions (e.g., partial good-labeled samples).
Horizontal weld detection map: Wide, transversely distributed qualified welds (e.g., good samples marked by red boxes).
Vertical weld detection map: Long, longitudinally distributed defective welds (e.g., bad samples marked by green boxes).
The numbers in the figure denote the model’s classification confidence scores for each sample. As can be seen:
For the vertical welds (bad samples), the confidence of the baseline YOLOv11 is 0.60, which increases to 0.67 (with WeldSimAM), 0.73 (with EnNWD), and finally reaches 0.76 in the proposed model (a 16% improvement), indicating that the dual-module optimization achieves a more significant enhancement in identifying long-strip defective welds.
Good sample horizontal welds for YOLOv11 confidence is 0.71, going up to 0.74 (WeldSimAM), 0.74 (EnNWD), and 0.78 in the proposed model. All scores are above 0.71, showing a good recognition stability of wide, qualified welds.
For the small welds, the confidence is steadily increasing (for good samples, it goes from 0.71 to 0.78), showing that the modules are good at recognizing small welds.
These visualized results align with the quantitative metrics in Table 4: the WeldSimAM module enhances attention to key weld regions, while the EnNWD loss optimizes the classification boundary between defective and qualified welds. The synergistic effect of the two modules (proposed model) achieves the highest confidence across all sample types.

4.5. Comparative Analysis

4.5.1. Comparison with YOLO-Series Models (Self-Built Dataset)

The proposed approach is contrasted with prevalent YOLO models (YOLOv5, YOLOv6, YOLOv8n, YOLOv9t, YOLOv10n, and YOLOv11) via 10-fold cross-validation, and the test outcomes are displayed in Table 6. Carrying out comparative experiments with baseline models is crucial to confirm the excellence of proposed approaches in industrial defect detection.
As shown in Figure 7, these graphs compare the training efficiency of several YOLO models (YOLOv5, v6, v8n, v10n, and v11) and a proposed model (“Ours”) across 100 epochs, evaluating both mAP@0.5:0.95 and mAP@0.5 metrics. In both cases (Figure 7a,b), all models show an upward trend in mAP as training progresses, with the proposed model (pink curve) consistently maintaining a leading position and achieving the highest final mAP values. This shows that the suggested model provides excellent object detection precision, both under the rigorous multi-threshold mAP@0.5:0.95 metric and the conventional 0.5 IoU threshold utilized in mAP@0.5.

4.5.2. Comparison with Non-YOLO SOTA Methods (Public Datasets)

To further validate the model’s competitiveness in the broader defect detection field, we compare it with representative non-YOLO SOTA methods on NEU-DET and PCB Defect Dataset via 10-fold cross-validation. The results are shown in Table 7.
From Table 6 and Table 7, we can see the following:
The proposed approach reaches the top mAP@0.5 (99.48%) and mAP@0.95 (73.29%) among all contrasted models, which is markedly higher than other YOLO models, particularly in mAP@0.95 (3.76 percentage points more than YOLOv11, 6.97 percentage points more than YOLOv8n), showing that the proposed approach possesses outstanding regression precision for large-scale weld defect targets. This performance advantage is more prominent than that of YOLOX-Ray in crack detection, which only achieved a 6.5 percentage point mAP@0.95 improvement over the baseline.
Regarding precision and recall, the proposed method also reaches the optimal performance (P = 99.67%, R = 99.65%), which is higher than mainstream YOLO models and non-YOLO SOTA methods, reflecting its strong ability to avoid false detection and missed detection. In industrial applications, false positives increase operational costs, while false negatives pose significant safety risks.
The weight of the model is 5.21 MB for the proposed method, which is the same as YOLOv11. It is also lower than YOLOv6 (8.15 MB) and YOLOv10n (5.48 MB), but it is slightly higher than YOLOv5 (4.43 MB) and YOLOv9t (3.95 MB). However, its accuracy is much better and can be considered a trade-off between small weight and good accuracy. This balance is important for deployment on resource-limited industrial edge devices. Concurrently, with 132 FPS on NVIDIA RTX 4090, the proposed model outperforms all compared methods in real-time performance, meeting the requirements of high-speed industrial production lines.

5. Conclusions

This study proposes a lightweight YOLO-based weld defect detection technique that improves the model by means of WeldSimAM attention mechanism and EnNWD loss function. Experiments are carried out via 10-fold cross-validation on three datasets (self-built + two public), and it is found that the proposed algorithm can achieve 99.48% mAP@0.5, 73.29% mAP@0.5:0.95, with a precision of 99.67% and recall of 99.65%, 5.21 MB, and 132 FPS. Statistical significance testing confirms that all performance improvements are not due to chance (p < 0.05). In contrast to the widely used YOLO model and non-YOLO SOTA methods, the approach introduced in this paper not only boosts the detection precision of multi-scale weld defects considerably but also stays as a compact and lightweight model that excels at industrial weld defect detection tasks. The innovative design of WeldSimAM and EnNWD also provides a reference for the improvement of YOLO models in other industrial defect detection scenarios.

Author Contributions

Conceptualization, W.H.; methodology, W.H.; software, Q.C.; validation, J.Z. and Q.C.; formal analysis, Q.C.; investigation, Q.C.; resources, Q.C.; data curation, J.Z.; writing—original draft preparation, W.H.; writing—review and editing, W.H.; visualization, J.Z.; supervision, W.H.; project administration, W.H.; funding acquisition, Q.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Key Scientific Research Project of Universities in Anhui Province (Grant No. 2025AHGXZK30878).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets are available at https://github.com/hwqwlsu/Weld-Defect-Detection (accessed on 10 January 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Khumaidi, A.; Yuniarno, E.M.; Purnomo, M.H. Welding defect classification based on convolution neural network (CNN) and Gaussian kernel. In Proceedings of the 2017 International Seminar on Intelligent Technology and Its Applications, Surabaya, Indonesia, 28–29 August 2017; pp. 268–273. [Google Scholar] [CrossRef]
  2. Czimmermann, T.; Ciuti, G.; Milazzo, M.; Chiurazzi, M.; Roccella, S.; Oddo, C.M.; Dario, P. Visual-Based Defect Detection and Classification Approaches for Industrial Applications—A Survey. Sensors 2020, 20, 1459. [Google Scholar] [CrossRef] [PubMed]
  3. Zhang, H.; Chen, Z.; Zhang, C.; Xi, J.; Le, X. Weld Defect Detection Based on Deep Learning Method. In Proceedings of the 2019 IEEE 15th International Conference on Automation Science and Engineering, Vancouver, BC, Canada, 22–26 August 2019; pp. 1184–1189. [Google Scholar] [CrossRef]
  4. Jocher, G.; Chaurasia, A.; Qiu, J. Ultralytics YOLOv8 [EB/OL]. GitHub Repository. 2023. Available online: https://github.com/ultralytics/ultralytics (accessed on 19 November 2025).
  5. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar] [CrossRef]
  6. Cengil, E. Weld Defect Detection with YOLOv10. NATURENGS 2024, 5, 77–81. [Google Scholar] [CrossRef]
  7. Wang, A.; Chen, H.; Liu, L.; Han, K.; Ding, G.; Yao, H. YOLOv10: Real-time end-to-end object detection. arXiv 2024. [Google Scholar] [CrossRef]
  8. Rezatofighi, H.; Tsoi, N.; Gwak, J.; Sadeghian, A.; Reid, I.; Savarese, S. Generalized intersection over union: A metric and a loss for bounding box regression. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 658–666. [Google Scholar] [CrossRef]
  9. Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ye, R.; Ren, D. Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression. arXiv 2019. [Google Scholar] [CrossRef]
  10. Yang, L.; Zhang, R.-Y.; Li, L.; Xie, X. SimAM: A Simple, Parameter-Free Attention Module for Convolutional Neural Networks. In Proceedings of the 38th International Conference on Machine Learning, Virtual, 18–24 July 2021; Volume 139, pp. 11863–11874. [Google Scholar] [CrossRef]
  11. Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar] [CrossRef]
  12. Wang, J.; Xu, C.; Yang, W.; Yu, L. A normalized Gaussian Wasserstein distance for tiny object detection. arXiv 2021. [Google Scholar] [CrossRef]
  13. Wu, L.; Chu, Y.K.; Yang, H.G.; Chen, Y.X. Sim-YOLOv8 Object Detection Model for DR Image Defects in Aluminum Alloy Welds. Chin. J. Lasers 2024, 51, 1602103. [Google Scholar] [CrossRef]
  14. Xu, J.; Ye, D.; Zhang, S.; Wang, K.; Chen, S. Metallic surface defect detection via NWD-WIoU based on grayscale co-generation entropy gain. Appl. Intell. 2025, 55, 752. [Google Scholar] [CrossRef]
  15. Song, K.; Yan, Y. A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects. Appl. Surf. Sci. 2013, 285, 858–864. [Google Scholar] [CrossRef]
  16. Jocher, G. Ultralytics YOLO [EB/OL]. GitHub Repository. 2024. Available online: https://github.com/ultralytics/ultralytics (accessed on 15 July 2025).
  17. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef]
  18. Wu, Z.; Jiao, C.; Sun, J.; Chen, L. Tire Defect Detection Based on Faster R-CNN. In Communications in Computer and Information Science; Springer: Singapore, 2020; Volume 1336, pp. 203–218. [Google Scholar] [CrossRef]
  19. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single shot multibox detector. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; pp. 21–37. [Google Scholar] [CrossRef]
  20. Wang, C.Y.; Bochkovskiy, A.; Liao, H.Y.M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. arXiv 2022. [Google Scholar] [CrossRef]
  21. Wang, C.Y.; Liao, H.Y.M.; Yeh, I.H. YOLOv9: Learning what you want to learn using programmable gradient information. arXiv 2024. [Google Scholar] [CrossRef]
  22. Lin, T.Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 2117–2125. [Google Scholar] [CrossRef]
  23. Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path aggregation network for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 8759–8768. [Google Scholar] [CrossRef]
  24. Hu, J.; Shen, L.; Sun, G. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar] [CrossRef]
  25. Zhao, Z.; Huang, W.Q.; Li, T.; Zhu, J. eCBAM and saSIoU Co-Optimized YOLOv11 for Riverine Floating Garbage Classification Under Complex Aquatic Scenarios. Appl. Sci. 2026, 16, 651. [Google Scholar] [CrossRef]
  26. Yu, J.; Jiang, Y.; Wang, Z.; Cao, Z.; Huang, T. UnitBox: An Advanced Object Detection Network. In Proceedings of the 24th ACM International Conference on Multimedia, Amsterdam, The Netherlands, 15–19 October 2016; pp. 521–525. [Google Scholar] [CrossRef]
  27. Zhang, H.; Wang, S.; Wang, S.; Wang, Z. Shape-IoU: More accurate metric considering bounding box shape and scale. arXiv 2023, arXiv:2307.02155. Available online: https://arxiv.org/abs/2307.02155 (accessed on 9 November 2025).
  28. Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and efficient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 10781–10790. [Google Scholar] [CrossRef]
  29. Wu, H.; Tang, M. PCB surface defect detection based on improved YOLOv7-tiny. In Proceedings of the 2023 5th International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI), Hangzhou, China, 15–17 December 2023; pp. 334–337. [Google Scholar] [CrossRef]
Figure 1. Basic structure of the YOLOv11 model. (The red, blue, and purple modules correspond to feature extraction, fusion, and detection, respectively, providing a baseline for subsequent WeldSimAM and EnNWD integration).
Figure 1. Basic structure of the YOLOv11 model. (The red, blue, and purple modules correspond to feature extraction, fusion, and detection, respectively, providing a baseline for subsequent WeldSimAM and EnNWD integration).
Technologies 14 00140 g001
Figure 2. The improved network architecture of the YOLOv11 model.
Figure 2. The improved network architecture of the YOLOv11 model.
Technologies 14 00140 g002
Figure 3. Architecture of the improved SimAM (WeldSimAM) attention mechanism. The diagram shows the structure of a feature enhancement module for industrial defect detection: it first extracts multi-dimensional mean features (channel, horizontal, vertical, spatial) from the input defect image, then computes feature differences between the input and these means to highlight potential anomalous regions. After normalization and attention weight generation (via Conv layers, bilinear interpolation, and SoftMax), the weighted features are fused with the original input to output an enhanced feature map—effectively strengthening the representation of defect regions for accurate detection (the right panel shows the localized defect).
Figure 3. Architecture of the improved SimAM (WeldSimAM) attention mechanism. The diagram shows the structure of a feature enhancement module for industrial defect detection: it first extracts multi-dimensional mean features (channel, horizontal, vertical, spatial) from the input defect image, then computes feature differences between the input and these means to highlight potential anomalous regions. After normalization and attention weight generation (via Conv layers, bilinear interpolation, and SoftMax), the weighted features are fused with the original input to output an enhanced feature map—effectively strengthening the representation of defect regions for accurate detection (the right panel shows the localized defect).
Technologies 14 00140 g003
Figure 4. Calculation framework of the EnNWD loss function. Blue (coordinate splitting) splits predicted/real bounding box coordinates into multi-dimensional components; pink (geometric feature calculation) computes center, width-height, and their distances; green (area calculation) calculates predicted/real box areas and their relative ratio; orange (small target processing) assigns weights to small targets and adjusts their center distance; yellow (loss calculation) computes Wasserstein distance, scale differences, and basic loss, then fuses them into the final loss—enabling accurate, small-target-adaptive bounding box regression.
Figure 4. Calculation framework of the EnNWD loss function. Blue (coordinate splitting) splits predicted/real bounding box coordinates into multi-dimensional components; pink (geometric feature calculation) computes center, width-height, and their distances; green (area calculation) calculates predicted/real box areas and their relative ratio; orange (small target processing) assigns weights to small targets and adjusts their center distance; yellow (loss calculation) computes Wasserstein distance, scale differences, and basic loss, then fuses them into the final loss—enabling accurate, small-target-adaptive bounding box regression.
Technologies 14 00140 g004
Figure 5. Comparison of training mAP curves for different model variants. It consists of two subfigures: (a) mAP@0.5:0.95 and (b) mAP@0.5, illustrating the mAP variation trends of the YOLOv11 baseline model, YOLOv11 + WeldSimAM, YOLOv11 + EnNWD, and the proposed model over 100 training epochs.
Figure 5. Comparison of training mAP curves for different model variants. It consists of two subfigures: (a) mAP@0.5:0.95 and (b) mAP@0.5, illustrating the mAP variation trends of the YOLOv11 baseline model, YOLOv11 + WeldSimAM, YOLOv11 + EnNWD, and the proposed model over 100 training epochs.
Technologies 14 00140 g005
Figure 6. (a) Small weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). (b) Horizontal weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). (c) Vertical weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). Visualized detection results of different model variants. (Comparing baseline and optimized models on small, horizontal, and vertical weld defects, with confidence scores marked).
Figure 6. (a) Small weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). (b) Horizontal weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). (c) Vertical weld detection map. (Row 1: YOLOv11 (baseline) model’s detection results; row 2: YOLOv11 + WeldSimAM model’s detection results; row 3: YOLOv11 + EnNWD model’s detection results; row 4: proposed model’s detection results). Visualized detection results of different model variants. (Comparing baseline and optimized models on small, horizontal, and vertical weld defects, with confidence scores marked).
Technologies 14 00140 g006aTechnologies 14 00140 g006b
Figure 7. mAP@0.5:0.95 and mAP@0.5 performance curves over training epochs for various detection models on the dataset. Each curve represents the mean average precision at an IoU threshold as training progresses, enabling the comparison of convergence rate and accuracy among models.
Figure 7. mAP@0.5:0.95 and mAP@0.5 performance curves over training epochs for various detection models on the dataset. Each curve represents the mean average precision at an IoU threshold as training progresses, enabling the comparison of convergence rate and accuracy among models.
Technologies 14 00140 g007
Table 1. Comparative analysis of recent SOTA defect detection methods.
Table 1. Comparative analysis of recent SOTA defect detection methods.
Fusion Weight (Directional:Basic)Core DesignAdvantagesLimitationsOur Improvements
Sim-YOLOv8 [13]Vanilla SimAM + YOLOv8Parameter-free, lightweightIsotropic, no directional feature modelingWeldSimAM with 1 × 3/3 × 1 directional convolutions
NWD-WIoU [14]NWD + WIoU hybrid lossRobust to tiny object deviationIgnores scale disparity between multi-scale defectsEnNWD with scale penalty and small-object weighting
eCBAM-YOLO [25]Enhanced CBAM + YOLOv7Strong background suppressionModel size increased by 30%Maintain 5.21 MB via parameter-free directional branch
EfficientDet-Lite3 [28]Compound scaling + MobileNetV2Good multi-scale adaptationLow FPS (95 FPS) and large parameter (4.8 MB)132 FPS with comparable size, task-specific optimization
YOLOv10-Weld [6]YOLOv10 + data augmentationReal-time (126 FPS)No attention/loss optimization for weld defectsDual optimization of attention and loss, 6 FPS improvement
Table 2. Sensitivity analysis of WeldSimAM fusion weights.
Table 2. Sensitivity analysis of WeldSimAM fusion weights.
Fusion Weight (Directional:Basic)mAP@ 0.5 (%)mAP@ 0.5:0.95 (%)False Positive Rate (%)
0.2:0.899.4572.491.2
0.3:0.7 (Proposed)99.4773.091.1
0.4:0.699.4672.833.4
Table 3. Configuration of the experimental conditions.
Table 3. Configuration of the experimental conditions.
NameSpecific Information
CPUIntel(R) Xeon(R) Gold 5418Y (10 cores)
GPUNVIDIA RTX 4090
RAM120 GB
CUDA11.8
PyTorch2.2.2
Python3.10
Table 4. Ablation experiment results. (10-fold cross-validation, mean ± std). (Validating the effectiveness of WeldSimAM and EnNWD modules on the self-built weld dataset, with mAP and speed as key metrics).
Table 4. Ablation experiment results. (10-fold cross-validation, mean ± std). (Validating the effectiveness of WeldSimAM and EnNWD modules on the self-built weld dataset, with mAP and speed as key metrics).
ModelmAP@
0.5 (%)
mAP@
0.5:0.95 (%)
P (%)R (%)Size (MB)FPS
YOLOv11(Baseline)99.35 ± 0.0869.53 ± 0.3299.36 ± 0.0799.38 ± 0.065.21128 ± 2
YOLOv11 + WeldSimAM99.47 ± 0.06 *73.09 ± 0.28 **99.43 ± 0.0599.34 ± 0.075.21130 ± 2
YOLOv11 + EnNWD99.45 ± 0.07 *72.90 ± 0.30 **99.12 ± 0.0899.45 ± 0.055.21129 ± 2
Proposed Model 99.48 ± 0.05 ** 73.29 ± 0.25 **99.67 ± 0.04 **99.65 ± 0.04 **5.21132 ± 2
p < 0.05, ** p < 0.01, compared with YOLOv11 (two-tailed t-test).
Table 5. Performance of WeldSimAM at different positions (10-fold cross-validation, mean ± std).
Table 5. Performance of WeldSimAM at different positions (10-fold cross-validation, mean ± std).
ModelmAP@ 0.5 (%)mAP@ 0.5:0.95 (%)FPS
YOLOv11 + WeldSimAM (Backbone only)99.41 ± 0.0772.15 ± 0.31129 ± 2
YOLOv11 + WeldSimAM
(Head only)
99.38 ± 0.0871.82 ± 0.33131 ± 2
YOLOv11 + WeldSimAM (P3-P5 layers)99.47 ± 0.06 *73.09 ± 0.28 **130 ± 2
* p < 0.05, ** p < 0.01, compared with YOLOv11 (two-tailed t-test).
Table 6. Performance comparison (10-fold cross-validation, mean ± std).
Table 6. Performance comparison (10-fold cross-validation, mean ± std).
ModelmAP@
0.5 (%)
mAP@
0.5:0.95 (%)
P (%)R (%)Size (MB)FPS
YOLOv599.15 ± 0.1262.19 ± 0.4597.69 ± 0.1598.47 ± 0.114.43115 ± 3
YOLOv699.43 ± 0.0966.12 ± 0.3899.24 ± 0.0899.74 ± 0.058.15108 ± 3
YOLOv8n99.25 ± 0.1063.44 ± 0.4297.57 ± 0.1498.53 ± 0.105.36125 ± 2
YOLOv9t99.38 ± 0.0868.32 ± 0.3598.62 ± 0.1199.50 ± 0.073.95120 ± 2
YOLOv10n99.38 ± 0.0867.32 ± 0.3698.02 ± 0.1398.91 ± 0.095.48126 ± 2
YOLOv1199.35 ± 0.0869.53 ± 0.3299.36 ± 0.0799.38 ± 0.065.21128 ± 2
Proposed Model99.48 ± 0.05 **73.29 ± 0.25 **99.67 ± 0.04 **99.65 ± 0.04 **5.21132 ± 2
** p < 0.01, compared with all other models (two-tailed t-test).
Table 7. Performance comparison (public datasets, 10-fold cross-validation, mean ± std).
Table 7. Performance comparison (public datasets, 10-fold cross-validation, mean ± std).
ModelDatasetmAP@
0.5 (%)
mAP@
0.5:0.95 (%)
P (%)R (%)Size (MB)FPS
Faster R-CNN (ResNet50) [17]NEU-DET92.30 ± 0.5248.50 ± 0.6891.80 ± 0.4590.20 ± 0.5142.5025 ± 1
SSD (MobileNetV2) [19]NEU-DET89.70 ± 0.5845.30 ± 0.7288.90 ± 0.5087.60 ± 0.553.20110 ± 3
EfficientDet-Lite3 [28]NEU-DET94.50 ± 0.3552.50 ± 0.6193.70 ± 0.3892.80 ± 0.424.8095 ± 2
Proposed ModelNEU-DET97.80 ± 0.22 **63.30 ± 0.40 **97.20 ± 0.25 **96.90 ± 0.28 **5.21132 ± 2
Faster R-CNN (ResNet50) [17]PCB90.60 ± 0.5547.20 ± 0.7089.90 ± 0.4888.50 ± 0.5342.5023 ± 1
SSD (MobileNetV2) [19]PCB88.30 ± 0.6043.70 ± 0.7587.50 ± 0.5286.80 ± 0.583.20107 ± 3
EfficientDet-Lite3 [28]PCB93.20 ± 0.3850.90 ± 0.6392.60 ± 0.4091.70 ± 0.454.8092 ± 2
Proposed ModelPCB97.00 ± 0.25 **61.70 ± 0.42 **96.50 ± 0.27 **96.20 ± 0.30 **5.21132 ± 2
** p < 0.01, compared with all other methods (two-tailed t-test).
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.

Share and Cite

MDPI and ACS Style

Huang, W.; Cheng, Q.; Zhu, J. WeldSimAM and EnNWD Co-Optimization: Enhancing Lightweight YOLOv11 for Multi-Scale Weld Defect Detection. Technologies 2026, 14, 140. https://doi.org/10.3390/technologies14030140

AMA Style

Huang W, Cheng Q, Zhu J. WeldSimAM and EnNWD Co-Optimization: Enhancing Lightweight YOLOv11 for Multi-Scale Weld Defect Detection. Technologies. 2026; 14(3):140. https://doi.org/10.3390/technologies14030140

Chicago/Turabian Style

Huang, Wenquan, Qing Cheng, and Jing Zhu. 2026. "WeldSimAM and EnNWD Co-Optimization: Enhancing Lightweight YOLOv11 for Multi-Scale Weld Defect Detection" Technologies 14, no. 3: 140. https://doi.org/10.3390/technologies14030140

APA Style

Huang, W., Cheng, Q., & Zhu, J. (2026). WeldSimAM and EnNWD Co-Optimization: Enhancing Lightweight YOLOv11 for Multi-Scale Weld Defect Detection. Technologies, 14(3), 140. https://doi.org/10.3390/technologies14030140

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop